Commit d3127f93 by 桂前礼

limit qrcode state

parent 8c4bbdfb
......@@ -1829,7 +1829,7 @@ public class BookKeywordBizImpl implements BookKeywordBiz {
}
}
// 当群人数超过限制,或者群二维码更新状态为失败时更新群状态为满群
boolean overstaff = memberCount >= (JoinGroupTypeEnum.GROUP_QRCODE.getCode().equals(classifyQrcodeInfo.getJoinGroupType()) ? 100 : 500);
boolean overstaff = memberCount >= (JoinGroupTypeEnum.GROUP_QRCODE.getCode().equals(classifyQrcodeInfo.getJoinGroupType()) ? 200 : 500);
if (overstaff || UpdateStatusEnum.FIAL.value.equals(updatState)) {
groupQrcodeBiz.changeToOverNumber(weixinQrcodeId, groupQrcodeId);
log.info("[更新群人数] 触发更新满群状态 wxGroupId:{} memberCount:{} changeNumber:{} weixinQrcodeId:{} groupQrcodeId:{}", wxGroupId, memberCount, changeNumber, weixinQrcodeId, groupQrcodeId);
......
......@@ -318,6 +318,7 @@
SELECT id, weixin_group_id url, update_qr_time, generation
FROM weixin_qrcode
WHERE generation = #{generation}
AND use_state != 2 AND update_state != 2
ORDER BY update_qr_time ASC
LIMIT #{num}
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment