提示信息修改

master 38
hshansha 7 months ago
parent a14c9c3528
commit b1ddfef9ec

@ -122,7 +122,12 @@ public class PayEmployeeInfoController extends BaseController {
@PutMapping("/edithour") @PutMapping("/edithour")
public R<Void> edit(@RequestParam("oldHour") String oldHour, @RequestParam("newHour") String newHour,@RequestParam("tenantId") Long tenantId) public R<Void> 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+" 不存在,系统没有做任何修改");
}
} }
/** /**

Loading…
Cancel
Save