Commit 45191b3f by 徐高华

发送人数

parent d88d2cb1
......@@ -146,6 +146,14 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
// 新增群主日志
this.groupChatPlanOwnerLogService.batchAdd(dto.getStaffIdList(), entity);
} else {
int staffCount = entity.getStaffCount();
if (null != dto.getDelStaffIdList()) {
staffCount = staffCount - dto.getDelStaffIdList().split(",").length;
}
if (null != dto.getStaffIdList()) {
staffCount = staffCount + dto.getStaffIdList().split(",").length;
}
entity.setStaffCount(staffCount);
this.groupChatPlanMapper.updateById(entity);
// 删除本次删除的
this.groupChatPlanOwnerLogService.deleteByStaffIds(planId, dto.getDelStaffIdList());
......
......@@ -133,6 +133,7 @@
modifier_id=#{modifierId},
modifier_name=#{modifierName},
update_time=now(),
staff_count = #{staffCount},
send_type=#{sendType},
send_time=#{sendTime},
start_time=#{startTime},
......
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