Commit 9666dd2e by 阮思源

修改7月封板bug

parent 13c4e991
......@@ -1042,7 +1042,20 @@ public class PushBizImpl implements PushBiz {
push.setId(pushId);
push.setCreateUser(partyId);
push.setUpdateUser(partyId);
push.setPushGroups(pushGroups);
List<PushGroup> list = new ArrayList<>();
list.addAll(pushGroups);
List<PushGroup> pushGroupsOld = pushGroupDao.getListByPushId(pushId);
if (!ListUtils.isEmpty(pushGroupsOld)) {
for (PushGroup pushGroup : list) {
for (PushGroup pushGroupIn : pushGroupsOld) {
if (pushGroup.getBookGroupQrcodeId().equals(pushGroupIn.getBookGroupQrcodeId())
&& pushGroup.getClassifyId().equals(pushGroupIn.getClassifyId())) {
pushGroup.setId(pushGroupIn.getId());
}
}
}
}
push.setPushGroups(list);
push.setPushItems(pushPlanItemDTO.getPushItems());
//没有id是新增
if (pushId != null) {
......
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