From ae5807029edabde0b1e1488c090bd830fccf75a7 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期一, 18 九月 2023 16:13:07 +0800 Subject: [PATCH] 代码提交 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeRuleController.java | 27 +++++++++++++++++++++++---- 1 files changed, 23 insertions(+), 4 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeRuleController.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeRuleController.java index 07b565f..34039f6 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeRuleController.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeRuleController.java @@ -29,6 +29,7 @@ import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; import com.vci.ubcs.starter.web.util.VciBaseUtil; +import com.vci.ubcs.system.user.entity.User; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; @@ -36,13 +37,18 @@ import org.springblade.core.boot.ctrl.BladeController; import org.springblade.core.mp.support.Condition; import org.springblade.core.mp.support.Query; +import org.springblade.core.secure.BladeUser; +import org.springblade.core.secure.utils.AuthUtil; +import org.springblade.core.tenant.annotation.NonDS; import org.springblade.core.tool.api.R; +import org.springblade.core.tool.constant.BladeConstant; import org.springframework.util.CollectionUtils; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; +import java.rmi.ServerException; import java.util.Collection; import java.util.Map; @@ -92,7 +98,7 @@ @ApiOperationSupport(order = 4) @ApiOperation(value = "鏂板", notes = "浼犲叆CodeRule") public R save(@Valid @RequestBody CodeRuleDTO codeRuleDTO) { - return R.status(codeRuleService.addSave(codeRuleDTO)); + return codeRuleService.addSave(codeRuleDTO); } /** @@ -104,7 +110,7 @@ @ApiOperationSupport(order = 5) @ApiOperation(value = "淇敼", notes = "浼犲叆CodeRule") public R update(@Valid @RequestBody CodeRuleDTO codeRuleDTO) { - return R.status(codeRuleService.editSave(codeRuleDTO)); + return codeRuleService.editSave(codeRuleDTO); } /** @@ -115,7 +121,7 @@ @DeleteMapping( "/deleteData") @ApiOperationSupport(order = 7) @ApiOperation(value = "鍒犻櫎", notes = "浼犲叆codeRuleDTO") - public R delCodeRule(@Valid @RequestBody CodeRuleDTO codeRuleDTO) { + public R delCodeRule(@RequestBody CodeRuleDTO codeRuleDTO) { return codeRuleService.deleteCodeRule(codeRuleDTO); } @@ -195,7 +201,7 @@ @PostMapping("/clone") @ApiOperationSupport(order = 13) @ApiOperation(value = "鍏嬮殕缂栫爜瑙勫垯", notes = "浼犲叆codeRuleDTO") - public R cloneCodeRule(@RequestBody CodeRuleDTO codeRuleDTO){ + public R cloneCodeRule(@RequestBody CodeRuleDTO codeRuleDTO) throws ServerException { return codeRuleService.cloneCodeRule(codeRuleDTO); } @@ -211,4 +217,17 @@ return codeRuleService.clearAllCode(oid); } + /** + * 妫�鏌ョ浉浼肩紪鐮佽鍒� + * @param oid + * @return 鎵ц缁撴灉 + */ + @GetMapping("/checkLikeCodeRule") + @ApiOperationSupport(order = 15) + @ApiOperation(value = "妫�鏌ョ浉浼肩紪鐮佽鍒�", notes = "浼犲叆oid") + public R checkLikeCodeRule(@Valid @RequestParam String oid){ + return codeRuleService.checkLikeCodeRule(oid); + } + + } -- Gitblit v1.9.3