| | |
| | | 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.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")); |