Commit ea65f5ad by 邓实川 Committed by chenzg

编辑优化

parent b1341bdb
......@@ -144,7 +144,9 @@ public class CrmController {
CrmSeaRule crmSeaRule = crmBusinessGroup.getCrmSeaRules();
crmSeaRule.setGid(gid);
crmSeaRule.insert();
return ResultUtil.success("新增业务组成功");
} else {
crmBusinessGroup.updateById();
List<Integer> memberIds = crmBusinessGroup.getMemberIds();
List<Integer> managerIds = crmBusinessGroup.getManagerIds();
// 更新组成员
......@@ -152,8 +154,9 @@ public class CrmController {
updateMembers(orgCode, gid, managerIds, 1);
// 更新公海规则
crmBusinessGroup.getCrmSeaRules().update(new LambdaQueryWrapper<CrmSeaRule>().eq(CrmSeaRule::getGid, gid));
return ResultUtil.success("编辑业务组成功");
}
return ResultUtil.success("新增业务组成功");
}
private void insertMembers(Integer gid, Integer empId, Integer orgCode, Integer type) {
......
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