| | |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import com.vci.ubcs.code.entity.CodePhaseAttr; |
| | | import com.vci.ubcs.code.mapper.CodePhaseattrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseattrService; |
| | | import com.vci.ubcs.code.vo.CodePhaseattrVO; |
| | | import com.vci.ubcs.code.wrapper.CodePhaseattrWrapper; |
| | | import com.vci.ubcs.code.mapper.CodePhaseAttrMapper; |
| | | import com.vci.ubcs.code.service.ICodePhaseAttrService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodePhaseAttrVO; |
| | | import com.vci.ubcs.code.wrapper.CodePhaseAttrWrapper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | @Api(value = "编码库定义-模板阶段-属性", tags = "编码库定义-模板阶段-属性接口") |
| | | public class CodePhaseattrController extends BladeController { |
| | | |
| | | private final ICodePhaseattrService CodePhaseattrService; |
| | | private final ICodePhaseAttrService codePhaseattrService; |
| | | |
| | | private CodePhaseattrMapper codePhaseAttrMapper; |
| | | private CodePhaseAttrMapper codePhaseAttrMapper; |
| | | |
| | | /** |
| | | * 编码库定义-模板阶段-属性 详情 |
| | |
| | | @GetMapping("/detail") |
| | | @ApiOperationSupport(order = 1) |
| | | @ApiOperation(value = "详情", notes = "传入CodePhaseattr") |
| | | public R<CodePhaseattrVO> detail(CodePhaseAttr codePhaseattr) { |
| | | CodePhaseAttr detail = CodePhaseattrService.getOne(Condition.getQueryWrapper(codePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().entityVO(detail)); |
| | | 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)); |
| | | return R.data(CodePhaseattrWrapper.build().pageVO(pages)); |
| | | 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)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @GetMapping("/page") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入CodePhaseattr") |
| | | public R<IPage<CodePhaseattrVO>> page(CodePhaseattrVO CodePhaseattr, Query query) { |
| | | IPage<CodePhaseattrVO> pages = CodePhaseattrService.selectCodePhaseattrPage(Condition.getPage(query), CodePhaseattr); |
| | | public R<IPage<CodePhaseAttrVO>> page(CodePhaseAttrVO codePhaseAttr, Query query) { |
| | | IPage<CodePhaseAttrVO> pages = codePhaseattrService.selectCodePhaseattrPage(Condition.getPage(query), codePhaseAttr); |
| | | return R.data(pages); |
| | | } |
| | | |
| | |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入CodePhaseattr") |
| | | public R save(@Valid @RequestBody CodePhaseAttr codePhaseattr) { |
| | | return R.status(CodePhaseattrService.save(codePhaseattr)); |
| | | return R.status(codePhaseattrService.save(codePhaseattr)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入CodePhaseattr") |
| | | public R update(@Valid @RequestBody CodePhaseAttr codePhaseattr) { |
| | | return R.status(CodePhaseattrService.updateById(codePhaseattr)); |
| | | return R.status(codePhaseattrService.updateById(codePhaseattr)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入CodePhaseattr") |
| | | public R submit(@Valid @RequestBody CodePhaseAttr codePhaseattr) { |
| | | return R.status(CodePhaseattrService.saveOrUpdate(codePhaseattr)); |
| | | return R.status(codePhaseattrService.saveOrUpdate(codePhaseattr)); |
| | | } |
| | | |
| | | /** |