From 0aa0bbdfde221a46019f90a245e40d6b57fd251b Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 11 七月 2023 19:09:03 +0800 Subject: [PATCH] 编码规则bug修复 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeRuleController.java | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 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 bb942dc..ed6e760 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 @@ -95,7 +95,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); } /** @@ -107,7 +107,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); } /** @@ -118,7 +118,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); } @@ -214,4 +214,17 @@ return codeRuleService.clearAllCode(oid); } + /** + * 妫�鏌ョ浉浼肩紪鐮佽鍒� + * @param oid + * @return 鎵ц缁撴灉 + */ + @GetMapping("/checkLikeCodeRule") + @ApiOperationSupport(order = 15) + @ApiOperation(value = "妫�鏌ョ浉浼肩紪鐮佽鍒�", notes = "浼犲叆oid") + public R checkLikeCodeRule(String oid){ + return codeRuleService.checkLikeCodeRule(oid); + } + + } -- Gitblit v1.9.3