|
@@ -152,7 +152,7 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
lastProgress = report.getProgress();
|
|
lastProgress = report.getProgress();
|
|
} else {
|
|
} else {
|
|
//今天之前没有报过工
|
|
//今天之前没有报过工
|
|
- if (todayReport == null || prodProcedureTeam.getIsChange()==0) {
|
|
|
|
|
|
+ if (todayReport == null) {
|
|
lastProgress = prodProcedureTeam.getProgress();
|
|
lastProgress = prodProcedureTeam.getProgress();
|
|
if (report.getProgress() <= lastProgress) {
|
|
if (report.getProgress() <= lastProgress) {
|
|
httpRespMsg.setError("进度必须大于上次报工进度("+lastProgress+"%)");
|
|
httpRespMsg.setError("进度必须大于上次报工进度("+lastProgress+"%)");
|
|
@@ -240,13 +240,11 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
user.setPassword(null);
|
|
user.setPassword(null);
|
|
userList.add(user);
|
|
userList.add(user);
|
|
} else if (checkType == 1) {
|
|
} else if (checkType == 1) {
|
|
- System.out.println(""+deptId+" , "+user.getDepartmentId());
|
|
|
|
//当前人员如果不在该计划部门下面,属于外调的,那他的审核人应该是该部门的主要负责人(工长)
|
|
//当前人员如果不在该计划部门下面,属于外调的,那他的审核人应该是该部门的主要负责人(工长)
|
|
if (!deptId.equals(user.getDepartmentId())) {
|
|
if (!deptId.equals(user.getDepartmentId())) {
|
|
Department department = departmentMapper.selectById(deptId);
|
|
Department department = departmentMapper.selectById(deptId);
|
|
String managerId = department.getManagerId();
|
|
String managerId = department.getManagerId();
|
|
User targetUser = userMapper.selectOne(new QueryWrapper<User>().select("id, name, corpwx_userid").eq("id", managerId));
|
|
User targetUser = userMapper.selectOne(new QueryWrapper<User>().select("id, name, corpwx_userid").eq("id", managerId));
|
|
- System.out.println("targetUser:"+targetUser.getName());
|
|
|
|
userList.add(targetUser);
|
|
userList.add(targetUser);
|
|
} else {
|
|
} else {
|
|
List<Department> allDeptList = departmentMapper.selectList(new QueryWrapper<Department>().eq("company_id", user.getCompanyId()));
|
|
List<Department> allDeptList = departmentMapper.selectList(new QueryWrapper<Department>().eq("company_id", user.getCompanyId()));
|