Commit 1a53302a by zhengxj

finish 组织编辑 on 20190228 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17951 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 48d4eed4
......@@ -160,20 +160,19 @@ public class SysOrganizationServiceImpl implements ISysOrganizationService{
}
SysOrganization source = orgDao.selectByPrimaryKey(record.getId());
int sort = 0;
Integer sort = null;
int effectRows=0;
if (source != null) {
sort = source.getSort();
if (record.getSort() != null) {
source.setSort(record.getSort());
}
BeanUtils.copyProperties(record, source);
effectRows=orgDao.updateByPrimaryKeySelective(source);
}
if (targets != null && targets.size() == 1) {
SysOrganization target = targets.get(0);
BeanUtils.copyProperties(record, target);
SysOrganization target = targets.get(0);
target.setSort(sort);
orgDao.updateByPrimaryKeySelective(target);
}
return orgDao.updateByPrimaryKeySelective(source);
return effectRows;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!