Bladeren bron

研发打卡修改

anderx 2 jaren geleden
bovenliggende
commit
2a8f76da6d

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ProjectTaskController.java

@@ -78,7 +78,7 @@ public class ProjectTaskController extends BaseController {
     public AjaxResult addRecord( @RequestBody ProjectStaffRecord in){
         Long userId = SecurityUtils.getUserId();
         in.setAid(userId);
-        if (projectStaffRecordService.addCheckMaxDuation(in)){
+        if (projectStaffRecordService.addCheckMaxDuration(in)){
             return AjaxResult.error("每天工时超出最大限制");
         }
         return projectStaffRecordService.add(in);
@@ -94,7 +94,7 @@ public class ProjectTaskController extends BaseController {
     public AjaxResult updateRecord( @RequestBody ProjectStaffRecord in){
         Long userId = SecurityUtils.getUserId();
         in.setAid(userId);
-        if (projectStaffRecordService.updateCheckMaxDuation(in)){
+        if (projectStaffRecordService.updateCheckMaxDuration(in)){
             return AjaxResult.error("每天工时超出最大限制");
         }
         return projectStaffRecordService.update(in);

+ 2 - 2
ruoyi-system/src/main/java/com/ruoyi/project/service/ProjectStaffRecordService.java

@@ -20,7 +20,7 @@ public interface ProjectStaffRecordService {
 
     AjaxResult myDuration(Long id);
 
-    boolean addCheckMaxDuation(ProjectStaffRecord in);
+    boolean addCheckMaxDuration(ProjectStaffRecord in);
 
-    boolean updateCheckMaxDuation(ProjectStaffRecord in);
+    boolean updateCheckMaxDuration(ProjectStaffRecord in);
 }

+ 2 - 2
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffRecordServiceImpl.java

@@ -84,7 +84,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
     }
 
     @Override
-    public boolean addCheckMaxDuation(ProjectStaffRecord in) {
+    public boolean addCheckMaxDuration(ProjectStaffRecord in) {
         BigDecimal maxDuration= new BigDecimal(SecurityUtils.getLoginUser().getUser().getDept().getMaxDuration());
         String maxDurationProjectFlag = configService.selectConfigByKey("maxDurationProject");
         Boolean maxflag = Boolean.parseBoolean(maxDurationProjectFlag);
@@ -104,7 +104,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
     }
 
     @Override
-    public boolean updateCheckMaxDuation(ProjectStaffRecord in) {
+    public boolean updateCheckMaxDuration(ProjectStaffRecord in) {
         BigDecimal maxDuration= new BigDecimal(SecurityUtils.getLoginUser().getUser().getDept().getMaxDuration());
         String maxDurationProjectFlag = configService.selectConfigByKey("maxDurationProject");
         AtomicReference<Double> aDouble = new AtomicReference<>(0d);