ludc
2023-07-11 0aa0bbdfde221a46019f90a245e40d6b57fd251b
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);
   }
}