| | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.core.util.RandomUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import cn.hutool.json.JSONArray; |
| | | import cn.hutool.json.JSONObject; |
| | | import cn.hutool.json.JSONUtil; |
| | |
| | | hashMap.put("examNo", examNo); |
| | | hashMap.put("name", name); |
| | | log.info("作废检查 ->{}", JSONUtil.toJsonStr(hashMap)); |
| | | return getMethodService.getPacsData("updatePacsApply", hashMap); |
| | | // TODO 暂不发出pacs请求 |
| | | // return getMethodService.getPacsData("updatePacsApply", hashMap); |
| | | JSONObject object = JSONUtil.createObj(); |
| | | object.putOpt("ResultCode","1"); |
| | | return AjaxResult.success().put("data",JSONUtil.toJsonStr(object)); |
| | | } |
| | | |
| | | public Boolean save(TjOrder tjOrder, TjCustomer tjCustomer, List<TbTransition> detailList) { |
| | | if (true) |
| | | return true; |
| | | JSONArray array = JSONUtil.createArray(); |
| | | ArrayList<SavePacsApply> errorPacsList = new ArrayList<>(); |
| | | ArrayList<SavePacsApply> successPacsList = new ArrayList<>(); |
| | |
| | | savePacsApply.setCardNumber(tjCustomer.getCusIdcard()); |
| | | savePacsApply.setTel(tjCustomer.getCusPhone()); |
| | | Date date = new Date(); |
| | | String regNo = "jk_" + DateFormatUtils.format(date, "yyyyMMddHHmmss") + "_" + project.getHisXmbm(); |
| | | String regNo = "jk" + DateFormatUtils.format(date, "yyyyMMddHHmmss")+ StrUtil.subSuf(tjOrder.getCardId(),4) + project.getHisXmbm(); |
| | | savePacsApply.setRegNo(regNo); |
| | | JSONObject jsonObject = JSONUtil.createObj(); |
| | | jsonObject.putOpt("cardId", tjOrder.getCardId()); |
| | |
| | | savePacsApply.setDevice(""); |
| | | // TODO 检查设备类型 |
| | | savePacsApply.setDeviceType(""); |
| | | log.info("检查申请 ->{}", JSONUtil.toJsonStr(savePacsApply)); |
| | | log.info("PACS检查申请 ->{}", JSONUtil.toJsonStr(savePacsApply)); |
| | | AjaxResult ajaxResult = savePacsApply(savePacsApply); |
| | | String result = ajaxResult.get("data").toString(); |
| | | JSONObject object = JSONUtil.parseObj(JSONUtil.parseObj(result).getStr("Response")); |
| | | log.info("请求返回 ->{}", object); |
| | | log.info("PACS请求返回 ->{}", object); |
| | | String code = object.getStr("ResultCode"); |
| | | allTotal++; |
| | | if (code.equals("1")) { |