fix(standard): 添加标准树参数空值校验
| | |
| | | @ApiOperation(value = "根据标准树进行标准查询") |
| | | @GetMapping("/selectsStandardMethodByFLSSM") |
| | | public Result selectsStandardMethodByFLSSM(String tree) { |
| | | if (tree == null || tree.trim().isEmpty()) { |
| | | return Result.fail("标准树参数不能为空"); |
| | | } |
| | | return Result.success(standardMethodService.selectsStandardMethodByFLSSM(tree)); |
| | | } |
| | | |
| | |
| | | |
| | | @Override |
| | | public Map<String, List<?>> selectsStandardMethodByFLSSM(String tree) { |
| | | if (tree == null || tree.trim().isEmpty()) { |
| | | return Collections.emptyMap(); |
| | | } |
| | | String[] trees = tree.split(" - "); |
| | | Map<String, List<?>> map = new HashMap<>(); |
| | | String str = ""; |