Commit fe2dca0c authored by huyuchen's avatar huyuchen

huych-派单更新档案完整度监控

parent 041ffc80
......@@ -441,7 +441,7 @@ public class TEmployeeInfoController {
@Operation(summary = "通过EMP_ID查询人员档案变更日志", description = "通过EMP_ID查询人员档案变更日志")
@Inner
@PostMapping("/inner/updateEmpInfo")
public Boolean updateEmpInfo(@RequestBody UpdateEmpVo vo) {
public Boolean updateEmpInfo(@RequestBody UpdateEmpVo vo) throws IllegalAccessException {
return tEmployeeInfoService.updateEmpInfo(vo);
}
......
......@@ -195,7 +195,7 @@ public interface TEmployeeInfoService extends IService<TEmployeeInfo> {
EmpDispatchAddVo addDispatchInfo(EmpDispatchAddVo addVo);
Boolean updateEmpInfo(UpdateEmpVo vo);
Boolean updateEmpInfo(UpdateEmpVo vo) throws IllegalAccessException;
Boolean checkMobile(String mobile);
......
......@@ -10,10 +10,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yifu.cloud.plus.v1.yifu.admin.api.vo.AreaMap;
import com.yifu.cloud.plus.v1.yifu.archives.entity.*;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TArchivesExportLimitMapper;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TArchivesLimitMapper;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TCompleteMonitorMapper;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.TEmployeeProjectMapper;
import com.yifu.cloud.plus.v1.yifu.archives.mapper.*;
import com.yifu.cloud.plus.v1.yifu.archives.service.*;
import com.yifu.cloud.plus.v1.yifu.archives.utils.ExcelStyle;
import com.yifu.cloud.plus.v1.yifu.archives.vo.*;
......@@ -69,7 +66,7 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
// 员工家庭信息表
private final TEmpFamilyService tEmpFamilyService;
// 人员档案表
private final TEmployeeInfoService tEmployeeInfoService;
private final TEmployeeInfoMapper tEmployeeInfoMapper;
// 项目档案表
private final TEmployeeProjectService tEmployeeProjectService;
// 员工职业资格信息表
......@@ -756,7 +753,7 @@ public class TCompleteMonitorServiceImpl extends ServiceImpl<TCompleteMonitorMap
List<TEmpFamily> tEmpFamily = tEmpFamilyService.getListByEmpId(id);
vo.setTEmpFamilyList(tEmpFamily);
// 人员档案表
TEmployeeInfo tEmployeeInfo = tEmployeeInfoService.getById(id);
TEmployeeInfo tEmployeeInfo = tEmployeeInfoMapper.selectById(id);
vo.setTEmployeeInfo(tEmployeeInfo);
// 项目档案表
TEmployeeProject tEmployeeProject = tEmployeeProjectService.getByEmpIdAndDeptId(id,deptId);
......
......@@ -129,6 +129,8 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
private final TArchivesLimitMapper tArchivesLimitMapper;
private final AtomicInteger updateAtomicInteger = new AtomicInteger(0);
private final TCompleteMonitorService completeMonitorService;
@Autowired
private OSSUtil ossUtil;
......@@ -2517,7 +2519,7 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
* @Param
**/
@Override
public Boolean updateEmpInfo(UpdateEmpVo vo) {
public Boolean updateEmpInfo(UpdateEmpVo vo) throws IllegalAccessException {
if (Common.isNotNull(vo)) {
TEmployeeInfo employeeInfo = null;
TEmployeeProject p = null;
......@@ -2587,6 +2589,10 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
}
}
//重新刷新一下项目编码对应的档案完整度监控的数据
if (Common.isNotNull(vo.getProjectNo()) && CommonConstants.ZERO_STRING.equals(vo.getType())) {
completeMonitorService.updateProjectStatusByDeptNo(vo.getProjectNo());
}
}
return true;
}
......
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