完成请假模块
This commit is contained in:
@ -16,9 +16,9 @@ import com.ruoyi.wgz.bo.rests.WgzAppGetTestPaperThree;
|
||||
import com.ruoyi.wgz.bo.rests.WgzAppGetTestPaperTwo;
|
||||
import com.ruoyi.wgz.bo.rests.WgzAutonymAnnex;
|
||||
import com.ruoyi.wgz.bo.req.*;
|
||||
import com.ruoyi.wgz.domain.WgzDailyClock;
|
||||
import com.ruoyi.wgz.domain.WgzQuestionsConfiguration;
|
||||
import com.ruoyi.wgz.service.*;
|
||||
import com.sun.org.apache.xpath.internal.operations.Bool;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@ -169,14 +169,33 @@ public class WgzAppController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 【我的】【请假】 提交请假
|
||||
* 【我的】【请假】 历史请假列表
|
||||
*/
|
||||
@ApiOperation("我的-请假·提交请假")
|
||||
@ApiOperation("我的-请假·历史请假列表")
|
||||
@PreAuthorize("@ss.hasPermi('wgzApp:user:userLeaveHistoryList')")
|
||||
@GetMapping("/WgzAppUserLeaveHistoryListPage")//PageReq
|
||||
public TableDataInfo<WgzAppLeaveHistoryListPageRes> userLeaveHistoryListPage(@Validated WgzAppLeaveHistoryListPageReq req) {
|
||||
return iWgzLeaveService.userLeaveHistoryListPage(req);
|
||||
}
|
||||
|
||||
/**
|
||||
* 【我的】【请假】 提交请假(上下班的时间需要等待zt创建好mysql字段)
|
||||
*/
|
||||
@ApiOperation("我的-请假·提交请假(上下班的时间需要等待zt创建好mysql字段)")
|
||||
@PreAuthorize("@ss.hasPermi('wgzApp:user:userSubmitLeave')")
|
||||
@PostMapping("/WgzAppSubmitLeave")
|
||||
public AjaxResult<Boolean> userSubmitLeave(@Validated @RequestBody WgzAppSubmitLeaveRes req) {
|
||||
// iWgzLeaveService
|
||||
return AjaxResult.success(true);
|
||||
public AjaxResult<Boolean> userSubmitLeave(@Validated @RequestBody WgzAppSubmitLeaveReq req) {
|
||||
return AjaxResult.success(iWgzLeaveService.userSubmitLeave(req));
|
||||
}
|
||||
|
||||
/**
|
||||
* 【我的】【请假】 取消请假
|
||||
*/
|
||||
@ApiOperation("我的-请假·取消请假")
|
||||
@PreAuthorize("@ss.hasPermi('wgzApp:user:userCancelLeave')")
|
||||
@PutMapping("/WgzAppUserCancelLeave")
|
||||
public AjaxResult<Boolean> userCancelLeave(@Validated @RequestBody WgzAppCancelLeaveReq req) {
|
||||
return AjaxResult.success(iWgzLeaveService.userCancelLeave(req));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -185,8 +204,8 @@ public class WgzAppController {
|
||||
@ApiOperation("日报-日报日历")
|
||||
@PreAuthorize("@ss.hasPermi('wgzApp:user:userDailyCalendar')")
|
||||
@GetMapping("/WgzUserDailyCalendar")
|
||||
public AjaxResult<WfzUserDailyCalendarRes> userDailyCalendar(@Validated WgzAppUserDailyCalendarRes req) {
|
||||
WfzUserDailyCalendarRes wfzUserDailyCalendarRes = iWgzDailyClockService.userDailyCalendar(req);
|
||||
public AjaxResult<WgzUserDailyCalendarRes> userDailyCalendar(@Validated WgzAppUserDailyCalendarRes req) {
|
||||
WgzUserDailyCalendarRes wfzUserDailyCalendarRes = iWgzDailyClockService.userDailyCalendar(req);
|
||||
return AjaxResult.success(wfzUserDailyCalendarRes);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user