From b1ddfef9ec8407921ed01e64c5e6702fcdd5e7bf Mon Sep 17 00:00:00 2001 From: hshansha Date: Thu, 5 Jun 2025 16:11:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/pay/controller/PayEmployeeInfoController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ruoyi-pay/src/main/java/com/ruoyi/pay/controller/PayEmployeeInfoController.java b/ruoyi-pay/src/main/java/com/ruoyi/pay/controller/PayEmployeeInfoController.java index 92a0b93..55dd67f 100644 --- a/ruoyi-pay/src/main/java/com/ruoyi/pay/controller/PayEmployeeInfoController.java +++ b/ruoyi-pay/src/main/java/com/ruoyi/pay/controller/PayEmployeeInfoController.java @@ -122,7 +122,12 @@ public class PayEmployeeInfoController extends BaseController { @PutMapping("/edithour") public R edit(@RequestParam("oldHour") String oldHour, @RequestParam("newHour") String newHour,@RequestParam("tenantId") Long tenantId) { - return toAjax(iPayEmployeeInfoService.updateSgrEmployeeHour(oldHour,newHour,tenantId)); + int result = iPayEmployeeInfoService.updateSgrEmployeeHour(oldHour,newHour,tenantId); + if(result>0){ + return R.ok(); + }else{ + return R.fail("出勤小时:"+oldHour+" 不存在,系统没有做任何修改"); + } } /**