¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions are met: |
| | | * |
| | | * Redistributions of source code must retain the above copyright notice, |
| | | * this list of conditions and the following disclaimer. |
| | | * Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in the |
| | | * documentation and/or other materials provided with the distribution. |
| | | * Neither the name of the dreamlu.net developer nor the names of its |
| | | * contributors may be used to endorse or promote products derived from |
| | | * this software without specific prior written permission. |
| | | * Author: Chill åºéª (smallchill@163.com) |
| | | */ |
| | | package com.vci.ubcs.code.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.code.dto.CodeClassifyTemplateButtonDTO; |
| | | import com.vci.ubcs.code.service.ICodeClassifyTemplateButtonService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateButtonVO; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Collection; |
| | | |
| | | /** |
| | | * ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å± æ§å¶å¨ |
| | | * |
| | | * @author ludc |
| | | * @since 2023-04-20 |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/codeClsTempButtonController") |
| | | @Api(value = "ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å±", tags = "ç¼ç åºå®ä¹-æ¨¡æ¿æé®æ©å±æ¥å£") |
| | | public class CodeClassifyTemplateButtonController extends BladeController { |
| | | |
| | | /** |
| | | * 主é¢åºé模æ¿å
å«çæé® æå¡ |
| | | */ |
| | | private final ICodeClassifyTemplateButtonService codeClassifyTemplateButtonService; |
| | | |
| | | /** |
| | | * 主é¢åºé模æ¿å
å«çæé®å表 |
| | | * @param baseQueryObject åºç¡æ¥è¯¢å¯¹è±¡ï¼å
嫿¥è¯¢æ¡ä»¶ï¼åé¡µï¼æåºç |
| | | * @return 主é¢åºé模æ¿å
å«çæé®æ¾ç¤ºå¯¹è±¡å表 |
| | | */ |
| | | @GetMapping("/gridCodeClassifyTemplateButton") |
| | | public R<IPage<CodeClassifyTemplateButtonVO>> gridCodeClassifyTemplateButton(BaseQueryObject baseQueryObject){ |
| | | return R.data(codeClassifyTemplateButtonService.gridCodeClassifyTemplateButton(baseQueryObject.getConditionMap(),baseQueryObject.getPageHelper())); |
| | | } |
| | | |
| | | /** |
| | | * å¢å 主é¢åºé模æ¿å
å«çæé® |
| | | * @param codeClassifyTemplateButtonDTO 主é¢åºé模æ¿å
å«çæé®æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PostMapping( "/addSave") |
| | | public R<CodeClassifyTemplateButtonVO> addSave(@RequestBody CodeClassifyTemplateButtonDTO codeClassifyTemplateButtonDTO){ |
| | | return R.data(codeClassifyTemplateButtonService.addSave(codeClassifyTemplateButtonDTO)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ ä¸»é¢åºé模æ¿å
å«çæé® |
| | | * @param codeClassifyTemplateButtonDTO 主é¢åºé模æ¿å
å«çæé®æ°æ®ä¼ è¾å¯¹è±¡ |
| | | * @return æ§è¡ç»æï¼success为true表示æåï¼msgæ¯å¤±è´¥çæç¤ºä¿¡æ¯ï¼objæ¯æ·»å 宿åçæ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @PutMapping("/editSave") |
| | | public R<CodeClassifyTemplateButtonVO> editSave(@Valid @RequestBody CodeClassifyTemplateButtonDTO codeClassifyTemplateButtonDTO){ |
| | | return R.data(codeClassifyTemplateButtonService.editSave(codeClassifyTemplateButtonDTO)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ä¸»é¢åºé模æ¿å
å«çæé® |
| | | * @param codeClassifyTemplateButtonDTO 主é¢åºé模æ¿å
å«çæé®æ°æ®ä¼ è¾å¯¹è±¡ï¼oidåtséè¦ä¼ è¾ |
| | | * @return å é¤ç»æåé¦ï¼ï¼successï¼æåï¼failï¼å¤±è´¥ |
| | | */ |
| | | @DeleteMapping( "/deleteData") |
| | | public R delCodeClassifyTemplateButton(@Valid @RequestBody CodeClassifyTemplateButtonDTO codeClassifyTemplateButtonDTO) { |
| | | return codeClassifyTemplateButtonService.deleteCodeClassifyTemplateButton(codeClassifyTemplateButtonDTO); |
| | | } |
| | | |
| | | /** |
| | | * 主é®è·å主é¢åºé模æ¿å
å«çæé® |
| | | * @param oid ä¸»é® |
| | | * @return 主é¢åºé模æ¿å
å«çæé®æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @GetMapping("/getObjectByOid") |
| | | public R<CodeClassifyTemplateButtonVO> getObjectByOid(String oid){ |
| | | CodeClassifyTemplateButtonVO codeClassifyTemplateButtonVO = codeClassifyTemplateButtonService.getObjectByOid(oid); |
| | | return R.data(codeClassifyTemplateButtonVO); |
| | | } |
| | | |
| | | /** |
| | | * 䏻鮿¹éè·å主é¢åºé模æ¿å
å«çæé® |
| | | * @param oids 主é®ï¼å¤ä¸ªä»¥éå·åéï¼ä½æ¯åæ§è½å½±åï¼å»ºè®®ä¸æ¬¡æ¥è¯¢ä¸è¶
è¿10000个 |
| | | * @return 主é¢åºé模æ¿å
å«çæé®æ¾ç¤ºå¯¹è±¡ |
| | | */ |
| | | @GetMapping("/listDataByOids") |
| | | public R<Collection<CodeClassifyTemplateButtonVO>> listCodeClassifyTemplateButtonByOids(String oids){ |
| | | Collection<CodeClassifyTemplateButtonVO> voCollection = codeClassifyTemplateButtonService.listCodeClassifyTemplateButtonByOids(VciBaseUtil.str2List(oids)); |
| | | return R.data(voCollection); |
| | | } |
| | | |
| | | /** |
| | | * åç
§ä¸»é¢åºé模æ¿å
å«çæé®å表 |
| | | * @param baseQueryObject åºç¡æ¥è¯¢å¯¹è±¡ï¼å
嫿¥è¯¢æ¡ä»¶ï¼åé¡µï¼æåºç |
| | | * @return 主é¢åºé模æ¿å
å«çæé®æ¾ç¤ºå¯¹è±¡å表ï¼çæçå
容 |
| | | */ |
| | | @GetMapping("/refDataGrid") |
| | | public R<IPage<CodeClassifyTemplateButtonVO>> refDataGridCodeClassifyTemplateButton(BaseQueryObject baseQueryObject){ |
| | | if(baseQueryObject == null){ |
| | | baseQueryObject = new BaseQueryObject(); |
| | | } |
| | | return R.data(codeClassifyTemplateButtonService.refDataGridCodeClassifyTemplateButton(baseQueryObject.getConditionMap(),baseQueryObject.getPageHelper())); |
| | | } |
| | | |
| | | } |