Commit 3832e262 by 徐高华

匹配商户

parent 5f40ff5d
......@@ -361,7 +361,8 @@ public class GroupChatServiceImpl implements GroupChatService {
} else {
logger.info("群主未关联好办,不同步群成员,userid={}", owner);
}
if (StringUtils.isBlank(enterpriseId)) {
int statusFlag = chat.getStatusFlag() ;
if (StringUtils.isBlank(enterpriseId) && statusFlag==0) {
logger.info("开始匹配群的gic商户id,staffid={}", staff.getStaffId());
List<StaffClerkRelationDTO> clerkList = this.staffClerkRelationService.listByStaffId(wxEnterpriseId,
staff.getStaffId());
......@@ -376,6 +377,9 @@ public class GroupChatServiceImpl implements GroupChatService {
}
}
logger.info("更新群信息={}", JSON.toJSONString(chat));
if(statusFlag==0 && StringUtils.isNotEmpty(chat.getEnterpriseId())) {
chat.setStatusFlag(1);
}
this.groupChatMapper.update(chat);
if (null == staff) {
logger.info("不同步群成员信息,群主未关联好办,owner={}", owner);
......
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