| | |
| | | return AjaxResult.error("体检号和名字不能都为空"); |
| | | } |
| | | if (tjNum != null) { |
| | | LambdaQueryWrapper<TjOrder> wrapper = new LambdaQueryWrapper<>(); |
| | | wrapper.eq(TjOrder::getTjNumber,tjNum); |
| | | TjOrder order = tjOrderService.getOne(wrapper); |
| | | TjOrder order = tjOrderService.getOrderByTjNum(tjNum); |
| | | mzh = order.getCardId(); |
| | | LambdaQueryWrapper<TjCustomer> wrapper1 = new LambdaQueryWrapper<>(); |
| | | wrapper1.eq(TjCustomer::getCusId,order.getUserId()); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | hysqd.setTmh(tree.getSqdh()+"_"+tree.getHisXmdm()); |
| | | String tmh = tree.getSqdh()+"_"+tree.getHisXmdm(); |
| | | String shys = ""; |
| | | for (Object o : lis) { |
| | | cn.hutool.json.JSONObject jsonObject = (cn.hutool.json.JSONObject) o; |
| | | if (StrUtil.isNotBlank(jsonObject.getStr("jyxh"))) tmh = jsonObject.getStr("jyxh"); |
| | | if (StrUtil.isNotBlank(jsonObject.getStr("shys"))) shys = jsonObject.getStr("shys"); |
| | | if (StrUtil.isNotBlank(tmh) && StrUtil.isNotBlank(shys) && StrUtil.isNotBlank(jsonObject.getStr("jyxh"))) break; |
| | | } |
| | | hysqd.setTmh(tmh); |
| | | if (StrUtil.isNotBlank(xmdm)) { |
| | | hysqd.setXmid(xmdm); |
| | | hysqd.setXmmc(project.getHisXmmc()); |
| | |
| | | } |
| | | hysqd.setSqsj(format.format(tree.getCreateTime())); |
| | | hysqd.setJgsj(format.format(new Date())); |
| | | hysqd.setShrxm(shys); |
| | | // hysqd.setBbmc(); |
| | | hysqdService.deletedByTjhAndXmId(hysqd.getTjh(),hysqd.getXmid()); |
| | | hybgdService.deletedLtkjHybgdByTjhAndTmh(tree.getSqdh()+"_"+tree.getHisXmdm()); |
| | |
| | | hybgd.setJysj(jsonObject.getStr("examinationDate")); |
| | | hybgd.setShsj(jsonObject.getStr("examinationDate")); |
| | | hybgd.setJyys(jsonObject.getStr("checkDoctorName")); |
| | | hybgd.setShys(jsonObject.getStr("shys")); |
| | | hybgd.setShysmc(shys); |
| | | hybgd.setYcbz(jsonObject.getStr("ycbz")); |
| | | hybgdService.save(hybgd); |
| | | } |
| | | try { |