| | |
| | | ltkjExamJcsqd.setBw(checkParts); |
| | | ltkjExamJcsqd.setJgzt(pacs.getStr("diagnosis")); |
| | | ltkjExamJcsqd.setJgbx(pacs.getStr("examination")); |
| | | ltkjExamJcsqd.setCreateTime(new Date()); |
| | | |
| | | ltkjExamJcsqdService.deletedLtkjJcsqdByTjhAndXmId(ltkjExamJcsqd.getTjh(),ltkjExamJcsqd.getJcxmid()); |
| | | boolean save1 = ltkjExamJcsqdService.save(ltkjExamJcsqd); |
| | | |
| | | LtkjExamJcbgd ltkjExamJcbgd = new LtkjExamJcbgd(); |
| | |
| | | ltkjExamJcbgd.setBgNr(ltkjExamJcsqd.getJgbx()); |
| | | ltkjExamJcbgd.setYxbx(ltkjExamJcsqd.getJgzt()); |
| | | ltkjExamJcbgd.setYxzd(ltkjExamJcsqd.getJgzt()); |
| | | ltkjExamJcsqd.setCreateTime(new Date()); |
| | | ltkjExamJcbgdService.deletedLtkjJcbgdByTjhAndTmh(ltkjExamJcsqd.getTjh()); |
| | | boolean save2 = ltkjExamJcbgdService.save(ltkjExamJcbgd); |
| | | if (save1 && save2) { |
| | | try { |
| | |
| | | queryWrapper.eq(LtkjJianchajianyanTree::getType,"检验"); |
| | | queryWrapper.eq(LtkjJianchajianyanTree::getHisXmdm,xmdm); |
| | | LtkjJianchajianyanTree tree = ltkjJianchajianyanTreeService.getOne(queryWrapper); |
| | | String tmh; |
| | | if (tree == null) { |
| | | tree = new LtkjJianchajianyanTree(); |
| | | tree.setHisXmdm(xmdm); |
| | |
| | | } |
| | | } |
| | | } |
| | | tmh = tree.getSqdh()+"_"+tree.getHisXmdm(); |
| | | }else{ |
| | | tmh = tree.getSqdh(); |
| | | } |
| | | String tmh = tree.getSqdh()+"_"+tree.getHisXmdm(); |
| | | String shys = ""; |
| | | for (Object o : lis) { |
| | | cn.hutool.json.JSONObject jsonObject = (cn.hutool.json.JSONObject) o; |
| | |
| | | hysqd.setSqsj(format.format(tree.getCreateTime())); |
| | | hysqd.setJgsj(format.format(new Date())); |
| | | hysqd.setShrxm(shys); |
| | | hysqd.setCreateTime(new Date()); |
| | | // hysqd.setBbmc(); |
| | | hysqdService.deletedByTjhAndXmId(hysqd.getTjh(),hysqd.getXmid()); |
| | | hybgdService.deletedLtkjHybgdByTjhAndTmh(tree.getSqdh()+"_"+tree.getHisXmdm()); |
| | | hybgdService.deletedLtkjHybgdByTjhAndTmh(tmh); |
| | | hysqdService.save(hysqd); |
| | | for (Object object : lis) { |
| | | cn.hutool.json.JSONObject jsonObject = (cn.hutool.json.JSONObject) object; |
| | | LtkjHybgd hybgd = new LtkjHybgd(); |
| | | hybgd.setTmh(tree.getSqdh()+"_"+tree.getHisXmdm()); |
| | | hybgd.setTmh(tmh); |
| | | hybgd.setJcxmid(jsonObject.getStr("jcxmid")); |
| | | hybgd.setJcxm(jsonObject.getStr("proName")); |
| | | hybgd.setJyjg(jsonObject.getStr("proResult")); |
| | |
| | | hybgd.setJyys(jsonObject.getStr("checkDoctorName")); |
| | | hybgd.setShysmc(shys); |
| | | hybgd.setYcbz(jsonObject.getStr("ycbz")); |
| | | hybgd.setCreateTime(new Date()); |
| | | hybgdService.save(hybgd); |
| | | } |
| | | try { |