| | |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("ubcs-code/CodePhaseattr") |
| | | @RequestMapping("/CodePhaseattr") |
| | | @Api(value = "编码库定义-模板阶段-属性", tags = "编码库定义-模板阶段-属性接口") |
| | | public class CodePhaseattrController extends BladeController { |
| | | |
| | |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入CodePhaseattr") |
| | | public R<CodePhaseattrVO> detail(CodePhaseAttr CodePhaseattr) { |
| | | CodePhaseAttr detail = CodePhaseattrService.getOne(Condition.getQueryWrapper(CodePhaseattr)); |
| | | public R<CodePhaseattrVO> detail(CodePhaseAttr codePhaseattr) { |
| | | CodePhaseAttr detail = CodePhaseattrService.getOne(Condition.getQueryWrapper(codePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().entityVO(detail)); |
| | | } |
| | | /** |
| | |
| | | @GetMapping("/list") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入CodePhaseattr") |
| | | public R<IPage<CodePhaseattrVO>> list(CodePhaseAttr CodePhaseattr, Query query) { |
| | | IPage<CodePhaseAttr> pages = CodePhaseattrService.page(Condition.getPage(query), Condition.getQueryWrapper(CodePhaseattr)); |
| | | public R<IPage<CodePhaseattrVO>> list(CodePhaseAttr codePhaseattr, Query query) { |
| | | IPage<CodePhaseAttr> pages = CodePhaseattrService.page(Condition.getPage(query), Condition.getQueryWrapper(codePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入CodePhaseattr") |
| | | public R save(@Valid @RequestBody CodePhaseAttr CodePhaseattr) { |
| | | return R.status(CodePhaseattrService.save(CodePhaseattr)); |
| | | public R save(@Valid @RequestBody CodePhaseAttr codePhaseattr) { |
| | | return R.status(CodePhaseattrService.save(codePhaseattr)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入CodePhaseattr") |
| | | public R update(@Valid @RequestBody CodePhaseAttr CodePhaseattr) { |
| | | return R.status(CodePhaseattrService.updateById(CodePhaseattr)); |
| | | public R update(@Valid @RequestBody CodePhaseAttr codePhaseattr) { |
| | | return R.status(CodePhaseattrService.updateById(codePhaseattr)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入CodePhaseattr") |
| | | public R submit(@Valid @RequestBody CodePhaseAttr CodePhaseattr) { |
| | | return R.status(CodePhaseattrService.saveOrUpdate(CodePhaseattr)); |
| | | public R submit(@Valid @RequestBody CodePhaseAttr codePhaseattr) { |
| | | return R.status(CodePhaseattrService.saveOrUpdate(codePhaseattr)); |
| | | } |
| | | |
| | | /** |