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<>();
...@@ -134,23 +134,23 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService { ...@@ -134,23 +134,23 @@ public class SrvOrganEmpServiceImpl implements SrvOrganEmpService {
queryWrapper.eq("IS_LOCK",0); queryWrapper.eq("IS_LOCK",0);
queryResult = chSrvOrganEmpMapper.selectCount(queryWrapper); queryResult = chSrvOrganEmpMapper.selectCount(queryWrapper);
if(queryResult>0){ if(queryResult>0){
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