weicd
2023-11-28 fd7ee4d47858ce5a392dfc203ca21fa0aca2fee7
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/treatment/rest/UserLevelWageController.java
@@ -31,6 +31,7 @@
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;
/**
@@ -104,4 +105,20 @@
        userLevelWageService.deleteAll(ids);
        return new ResponseEntity<>(HttpStatus.OK);
    }
    @GetMapping(value = "/getTravelAllowance")
    @Log("查询指定员工的出差补助")
    @ApiOperation("查询指定员工的出差补助")
    @PreAuthorize("@el.check('userLevelWage:list')")
    public ResponseEntity<Object> queryTravelAllowance(UserLevelWageQueryCriteria criteria) throws ParseException {
        return new ResponseEntity<>(userLevelWageService.queryTravelAllowance(criteria), HttpStatus.OK);
    }
    @GetMapping(value = "/getOvertimeAllowance")
    @Log("查询指定员工的加班工资")
    @ApiOperation("查询指定员工的加班工资")
    @PreAuthorize("@el.check('userLevelWage:list')")
    public ResponseEntity<Object> queryOverTimeAllowance(UserLevelWageQueryCriteria criteria) throws ParseException {
        return new ResponseEntity<>(userLevelWageService.queryOverTimeAllowance(criteria), HttpStatus.OK);
    }
}