| | |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.ArrayList; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | */ |
| | | @GetMapping("/treeCodeClassifyValue") |
| | | public List<Tree> treeCodeClassifyValue(TreeQueryObject treeQueryObject) { |
| | | return codeClassifyValueService.treeCodeClassifyValue(treeQueryObject); |
| | | return codeClassifyValueService.treeCodeClassifyValue(treeQueryObject); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 删除结果反馈::success:成功,fail:失败 |
| | | */ |
| | | @DeleteMapping( "/deleteData") |
| | | public R delCodeClassifyValue(@RequestBody CodeClassifyValueDTO codeClassifyValueDTO) { |
| | | public R delCodeClassifyValue(@Valid @RequestBody CodeClassifyValueDTO codeClassifyValueDTO) { |
| | | return codeClassifyValueService.deleteCodeClassifyValue(codeClassifyValueDTO); |
| | | } |
| | | |
| | |
| | | CodeClassifyValueDTO codeFixedValueDTO = JSONObject.toJavaObject(JSONObject.parseObject(JSONObject.toJSONString(json.get(i))), CodeClassifyValueDTO.class); |
| | | dtoList.add(codeFixedValueDTO); |
| | | } |
| | | String codeclassifysecoid = (String) param.get("codeClassifySecOid"); |
| | | String codeclassifysecoid = (String) param.get("codeclassifysecoid"); |
| | | VciBaseUtil.alertNotNull(dtoList,"码值集合"); |
| | | if (CollectionUtils.isEmpty(dtoList)){ |
| | | return R.success(""); |