Commit 35fa1596 authored by zhangwanglin's avatar zhangwanglin

解决合并冲突代码

parent 14af107b
...@@ -125,8 +125,8 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -125,8 +125,8 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
@Override @Override
public int saveOrUpdateSrvOrganEmp(SrvOrganEmpVo srvOrganEmpVo) { public int saveOrUpdateSrvOrganEmp(SrvOrganEmpVo srvOrganEmpVo) {
Long empId = srvOrganEmpVo.getEmpId(); Long empId = srvOrganEmpVo.getEmpId();
ChSrvOrganEmpApply chSrvOrganEmpApply = new ChSrvOrganEmpApply(); ChSrvOrganEmp chSrvOrganEmp = new ChSrvOrganEmp();
BeanUtils.copyProperties(srvOrganEmpVo, chSrvOrganEmpApply); BeanUtils.copyProperties(srvOrganEmpVo, chSrvOrganEmp);
int queryResult = 0; int queryResult = 0;
if (null == empId) { if (null == empId) {
QueryWrapper<ChSrvOrganEmp> queryWrapper = new QueryWrapper<>(); QueryWrapper<ChSrvOrganEmp> queryWrapper = new QueryWrapper<>();
...@@ -137,20 +137,20 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -137,20 +137,20 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
return queryResult; return queryResult;
} }
// 新增 // 新增
chSrvOrganEmpApply.setEffTime(new Date()); chSrvOrganEmp.setEffTime(new Date());
chSrvOrganEmpApply.setIsLock((short) 0); chSrvOrganEmp.setIsLock((short) 0);
chSrvOrganEmpApplyMapper.insert(chSrvOrganEmpApply); chSrvOrganEmpMapper.insert(chSrvOrganEmp);
updateAttachs(srvOrganEmpVo, chSrvOrganEmpApply.getEmpId()); updateAttachs(srvOrganEmpVo, chSrvOrganEmp.getEmpId());
ChSrvempRiskLevel chSrvempRiskLevel = new ChSrvempRiskLevel(); ChSrvempRiskLevel chSrvempRiskLevel = new ChSrvempRiskLevel();
chSrvempRiskLevel.setRiskLevel(0L); chSrvempRiskLevel.setRiskLevel(0L);
chSrvempRiskLevel.setSrvEmpId(Long.valueOf(chSrvOrganEmpApply.getEmpId())); chSrvempRiskLevel.setSrvEmpId(Long.valueOf(chSrvOrganEmp.getEmpId()));
chSrvempRiskLevel.setStatus(0); chSrvempRiskLevel.setStatus(0);
chSrvempRiskLevel.setFcd(new Date()); chSrvempRiskLevel.setFcd(new Date());
chSrvempRiskLevelMapper.insert(chSrvempRiskLevel); chSrvempRiskLevelMapper.insert(chSrvempRiskLevel);
} else { } else {
// 修改 // 修改
chSrvOrganEmpApplyMapper.updateById(chSrvOrganEmpApply); chSrvOrganEmpMapper.updateById(chSrvOrganEmp);
updateAttachs(srvOrganEmpVo, empId); updateAttachs(srvOrganEmpVo, empId);
} }
return queryResult; return queryResult;
......
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