Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/controller/CodeRuleCharacterController.java
@@ -6,6 +6,7 @@
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.rmi.ServerException;
import java.util.List;
import java.util.Map;
@@ -17,6 +18,7 @@
@RestController
@RequestMapping("/codeRuleCharacterController")
public class CodeRuleCharacterController {
   @Resource
    private ICodeRuleCharacterService iCodeRuleCharacterService;
@@ -28,6 +30,26 @@
   @GetMapping("/list")
   public R<List<Map<String,String>>> getDataByOid(@RequestParam("codeRuleId")String codeRuleId,@RequestParam("chartType")String chartType){
      return R.data(iCodeRuleCharacterService.getDataByRuleId(codeRuleId,chartType));
   }
   /**
    * 使用编码规则oid获取数据下拉数据源
    * @param codeRuleId 规则oid
    * @return 数据内容
    */
   @GetMapping("/selectList")
   public R<List<Map<String, String>>> getSelectListByRuleId(@RequestParam("codeRuleId")String codeRuleId,@RequestParam("chartType")String chartType) throws ServerException {
      return R.data(iCodeRuleCharacterService.getSelectListByRuleId(codeRuleId,chartType));
   }
   /**
    * 使用编码规则oid获取数据下拉数据源
    * @param codeRuleId 规则oid
    * @return 数据内容
    */
   @GetMapping("/getRegexStr")
   public R<String> getRegexStrByCodeRuleId(@RequestParam("codeRuleId")String codeRuleId,@RequestParam("chartType")String chartType) throws ServerException {
      return R.data(iCodeRuleCharacterService.getRegexStrByCodeRuleId(codeRuleId,chartType));
   }
   /**
@@ -59,4 +81,5 @@
   public R delete(@RequestBody CodeRuleCharacterVO codeRuleCharacterVO){
      return iCodeRuleCharacterService.saveOrUpdate(codeRuleCharacterVO,3);
   }
}