Commit 67d3fb86 by zhengxj

finish 修复技工技能编辑问题 on 20191104 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24596 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7dc23e6e
...@@ -538,9 +538,11 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -538,9 +538,11 @@ public class SysUserServiceImpl implements SysUserService {
} }
//删除不在传入列表的服务项 //删除不在传入列表的服务项
SysUserServicesExample sysUserServicesExample = new SysUserServicesExample(); SysUserServicesExample sysUserServicesExample = new SysUserServicesExample();
sysUserServicesExample.createCriteria().andUserIdEqualTo(sysUser.getUserId()).andServiceKeyNotIn(sysUserServices); if (sysUserServices.size() > 0) {
sysUserServicesMapper.deleteByExample(sysUserServicesExample); sysUserServicesExample.createCriteria().andUserIdEqualTo(sysUser.getUserId())
.andServiceKeyNotIn(sysUserServices);
sysUserServicesMapper.deleteByExample(sysUserServicesExample);
}
//添加新增的服务项 //添加新增的服务项
for (int i = 0; i < sysUser.getServiceKeyList().size(); i++) { for (int i = 0; i < sysUser.getServiceKeyList().size(); i++) {
sysUserServicesExample.clear(); sysUserServicesExample.clear();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!