| | |
| | | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入taskResidencePermitApply") |
| | | public R<IPage<TaskResidencePermitApplyVO>> list(TaskResidencePermitApplyEntity taskResidencePermitApply, Query query) { |
| | | // 查询自己的记录 |
| | | taskResidencePermitApply.setUpdateUser(AuthUtil.getUserId()); |
| | | IPage<TaskResidencePermitApplyEntity> pages = taskResidencePermitApplyService.page(Condition.getPage(query), Condition.getQueryWrapper(taskResidencePermitApply)); |
| | | return R.data(TaskResidencePermitApplyWrapper.build().pageVO(pages)); |
| | | } |
| | |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入taskResidencePermitApply") |
| | | public R save(@Valid @RequestBody TaskResidencePermitApplyEntity taskResidencePermitApply) { |
| | | return R.status(taskResidencePermitApplyService.save(taskResidencePermitApply)); |
| | | return R.status(taskResidencePermitApplyService.saveResidencePermitApplyEntity(taskResidencePermitApply)); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 居住证申请 审核 |
| | | */ |
| | | @PostMapping("/auditing") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "审核", notes = "传入taskResidencePermitApply") |
| | | public R updateResidencePermitApply(@Valid @RequestBody TaskResidencePermitApplyEntity taskResidencePermitApply) { |
| | | return R.status(taskResidencePermitApplyService.updateResidencePermitApplyEntity(taskResidencePermitApply)); |
| | | } |
| | | |
| | | /** |
| | | * 居住证申请 新增或修改 |
| | | */ |
| | | @PostMapping("/submit") |