fix:十二分制-申请单
This commit is contained in:
@@ -3,13 +3,13 @@ package com.cool.store.controller.webb;
|
||||
import com.cool.store.context.CurrentUserHolder;
|
||||
import com.cool.store.context.LoginUserInfo;
|
||||
import com.cool.store.enums.tp.TpFormTypeEnum;
|
||||
import com.cool.store.request.tp.TpAppealApplyRequest;
|
||||
import com.cool.store.request.tp.TpApplyAuditRequest;
|
||||
import com.cool.store.request.tp.TpApplyQueryRequest;
|
||||
import com.cool.store.request.tp.TpApplyRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.tp.TpApplyService;
|
||||
import com.cool.store.vo.tp.TpRewardApplyDetailVO;
|
||||
import com.cool.store.vo.tp.TpRewardApplyListVO;
|
||||
import com.cool.store.vo.tp.*;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
@@ -28,7 +28,7 @@ import javax.validation.constraints.NotNull;
|
||||
* @author wangff
|
||||
* @since 2025/11/6
|
||||
*/
|
||||
@Api(tags = "十二分制-奖惩规则")
|
||||
@Api(tags = "十二分制-申请单")
|
||||
@RestController
|
||||
@RequestMapping("/pc/tp/apply")
|
||||
@RequiredArgsConstructor
|
||||
@@ -62,7 +62,67 @@ public class TpApplyController {
|
||||
@ApiOperation("加分申请审批")
|
||||
@PostMapping("/rewardAudit")
|
||||
public ResponseResult<Boolean> rewardAudit(@RequestBody @Validated TpApplyAuditRequest request) {
|
||||
request.setApplyType(TpFormTypeEnum.REWARD.getType());
|
||||
return ResponseResult.success(tpApplyService.rewardAudit(request));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation("惩处申请提交or保存")
|
||||
@PostMapping("/penaltyApplySubmit")
|
||||
public ResponseResult<Boolean> penaltyApplySubmit(@RequestBody @Validated TpApplyRequest request) {
|
||||
LoginUserInfo user = CurrentUserHolder.getUser();
|
||||
request.setSource(0);
|
||||
request.setApplyUserId(user.getUserId());
|
||||
request.setApplyUserName(user.getName());
|
||||
return ResponseResult.success(tpApplyService.penaltyApplySubmit(request));
|
||||
}
|
||||
|
||||
@ApiOperation("惩处申请单详情")
|
||||
@GetMapping("/penaltyDetail")
|
||||
@ApiImplicitParam(name = "applyId", value = "惩处申请单id", required = true, dataType = "Long", paramType = "query")
|
||||
public ResponseResult<TpPenaltyApplyDetailVO> penaltyDetail(@NotNull(message = "惩处申请单id不能为空") Long applyId) {
|
||||
return ResponseResult.success(tpApplyService.penaltyDetail(applyId));
|
||||
}
|
||||
|
||||
@ApiOperation("惩处申请单分页查询")
|
||||
@GetMapping("/penaltyPage")
|
||||
public ResponseResult<PageInfo<TpPenaltyApplyListVO> > penaltyPage(TpApplyQueryRequest request) {
|
||||
request.setIsPenalty(true);
|
||||
return ResponseResult.success(tpApplyService.penaltyPage(request));
|
||||
}
|
||||
|
||||
@ApiOperation("惩处申请审批")
|
||||
@PostMapping("/penaltyAudit")
|
||||
public ResponseResult<Boolean> penaltyAudit(@RequestBody @Validated TpApplyAuditRequest request) {
|
||||
return ResponseResult.success(tpApplyService.penaltyAudit(request));
|
||||
}
|
||||
|
||||
@ApiOperation("复议申请提交or保存")
|
||||
@PostMapping("/appealApplySubmit")
|
||||
public ResponseResult<Boolean> appealApplySubmit(@RequestBody @Validated TpAppealApplyRequest request) {
|
||||
LoginUserInfo user = CurrentUserHolder.getUser();
|
||||
request.setSource(0);
|
||||
request.setApplyUserId(user.getUserId());
|
||||
request.setApplyUserName(user.getName());
|
||||
return ResponseResult.success(tpApplyService.appealApplySubmit(request));
|
||||
}
|
||||
|
||||
@ApiOperation("复议申请单详情")
|
||||
@GetMapping("/appealDetail")
|
||||
@ApiImplicitParam(name = "applyId", value = "复议申请单id", required = true, dataType = "Long", paramType = "query")
|
||||
public ResponseResult<TpAppealFormDetailVO> appealDetail(@NotNull(message = "复议申请单id不能为空") Long applyId) {
|
||||
return ResponseResult.success(tpApplyService.appealDetail(applyId));
|
||||
}
|
||||
|
||||
@ApiOperation("复议申请单分页查询")
|
||||
@GetMapping("/appealPage")
|
||||
public ResponseResult<PageInfo<TpAppealListVO> > appealPage(TpApplyQueryRequest request) {
|
||||
request.setType(TpFormTypeEnum.APPEAL.getType());
|
||||
return ResponseResult.success(tpApplyService.appealPage(request));
|
||||
}
|
||||
|
||||
@ApiOperation("复议申请审批")
|
||||
@PostMapping("/appealAudit")
|
||||
public ResponseResult<Boolean> appealAudit(@RequestBody @Validated TpApplyAuditRequest request) {
|
||||
return ResponseResult.success(tpApplyService.appealAudit(request));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user