|
|
@@ -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);
|