|
|
|
@ -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+" 不存在,系统没有做任何修改");
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
|