Browse Source

暂停计划限制报工

seyason 1 year ago
parent
commit
5b4aec558d

+ 4 - 0
fhKeeper/formulahousekeeper/management-workshop/src/main/java/com/management/platform/service/impl/ReportServiceImpl.java

@@ -163,6 +163,10 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
                 return httpRespMsg;
             }
         }
+        if (plan.getStatus() == 2) {
+            httpRespMsg.setError("该计划已经停止,无法报工");
+            return httpRespMsg;
+        }
 
         //检查当天该员工的该工序是否已经有报工
         Report todayReport = reportMapper.selectOne(new QueryWrapper<Report>().eq("creator_id", token).eq("user_procedure_team_id", report.getUserProcedureTeamId()).eq("create_date", targetDate));