| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.rmi.ServerException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | @RestController |
| | | @RequestMapping("/codeRuleCharacterController") |
| | | public class CodeRuleCharacterController { |
| | | |
| | | @Resource |
| | | private ICodeRuleCharacterService iCodeRuleCharacterService; |
| | | |
| | |
| | | @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)); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R delete(@RequestBody CodeRuleCharacterVO codeRuleCharacterVO){ |
| | | return iCodeRuleCharacterService.saveOrUpdate(codeRuleCharacterVO,3); |
| | | } |
| | | |
| | | } |