| | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @PostMapping("/saveOrder") |
| | | public R batchSave4Order(@RequestBody Map<String,Object> param){ |
| | | JSONArray json = JSONArray.parseArray(String.valueOf(param.get("dtoList"))); |
| | | List<CodeFixedValueDTO> dtoList = new ArrayList<>(); |
| | | List<CodeFixedValueDTO> dtoList = new ArrayList<>(); |
| | | for (int i = 0; i < json.size(); i++) { |
| | | CodeFixedValueDTO codeFixedValueDTO = JSONObject.toJavaObject(JSONObject.parseObject(JSONObject.toJSONString(json.get(i))), CodeFixedValueDTO.class); |
| | | dtoList.add(codeFixedValueDTO); |
| | | } |
| | | String codefixedsecoid = (String) param.get("codeFixedSecOid"); |
| | | VciBaseUtil.alertNotNull(dtoList,"码值对象集合",codefixedsecoid,"固定码段的主键"); |
| | | VciBaseUtil.alertNotNull(codefixedsecoid,"固定码段的主键"); |
| | | if (CollectionUtils.isEmpty(dtoList)){ |
| | | return R.status(codeFixedValueService.batchDeleteBySecOid(codefixedsecoid)); |
| | | } |