ÎļþÃû´Ó Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodePhaseattrController.java ÐÞ¸Ä |
| | |
| | | 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; |
| | |
| | | @AllArgsConstructor |
| | | @RequestMapping("/CodePhaseattr") |
| | | @Api(value = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§", tags = "ç¼ç åºå®ä¹-模æ¿é¶æ®µ-屿§æ¥å£") |
| | | public class CodePhaseattrController extends BladeController { |
| | | 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) { |
| | | public R<CodePhaseAttrVO> detail(CodePhaseAttr codePhaseattr) { |
| | | CodePhaseAttr detail = CodePhaseattrService.getOne(Condition.getQueryWrapper(codePhaseattr)); |
| | | return R.data(CodePhaseattrWrapper.build().entityVO(detail)); |
| | | 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) { |
| | | 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)); |
| | | 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); |
| | | } |
| | | |