Commit 35fa1596 authored by zhangwanglin's avatar zhangwanglin

解决合并冲突代码

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