| | |
| | | wqa.eq(TjReport::getType, "体检报告"); |
| | | Integer count = tjReportService.getSelectCount(wqa); |
| | | if (tjOrder.getReportTime() !=null || count != 0 ) { |
| | | tjOrder.setReportTime(null); |
| | | tjOrder.setCheckTime(null); |
| | | tjOrder.setCheckStatus(0); |
| | | tjOrder.setPrintLastTime(null); |
| | | tjOrderService.updateById(tjOrder); |
| | | // tjOrder.setReportTime(null); |
| | | // tjOrder.setCheckTime(null); |
| | | // tjOrder.setCheckStatus(0); |
| | | // tjOrder.setPrintLastTime(null); |
| | | // tjOrderService.updateById(tjOrder); |
| | | return AjaxResult.error("该客户报告已生成!不能重复生成!可直接预览或打印!"); |
| | | } |
| | | |
| | |
| | | tjOrderService.update(updateWrapper); |
| | | return AjaxResult.success("已生成报告!可直接点击预览!"); |
| | | } |
| | | String hisRegistrationId = tjOrder.getCardId(); |
| | | Date createTime = tjOrder.getCreateTime(); |
| | | SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | String ksrq = dateFormat.format(createTime); |
| | | String jsrq = dateFormat.format(new Date()); |
| | | HashMap<String, Object> params = new HashMap<>(); |
| | | params.put("his_registration_id", hisRegistrationId); |
| | | params.put("ksbm", ""); |
| | | params.put("pationid", ""); |
| | | params.put("ksrq", ksrq); |
| | | params.put("jsrq", jsrq); |
| | | params.put("pagecount", 100); |
| | | params.put("page", 1); |
| | | // String hisRegistrationId = tjOrder.getCardId(); |
| | | // Date createTime = tjOrder.getCreateTime(); |
| | | // SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | // String ksrq = dateFormat.format(createTime); |
| | | // String jsrq = dateFormat.format(new Date()); |
| | | // HashMap<String, Object> params = new HashMap<>(); |
| | | // params.put("his_registration_id", hisRegistrationId); |
| | | // params.put("ksbm", ""); |
| | | // params.put("pationid", ""); |
| | | // params.put("ksrq", ksrq); |
| | | // params.put("jsrq", jsrq); |
| | | // params.put("pagecount", 100); |
| | | // params.put("page", 1); |
| | | LambdaQueryWrapper<TjCustomer> wq1 = new LambdaQueryWrapper<>(); |
| | | wq1.eq(TjCustomer::getCusId, tjOrder.getUserId()); |
| | | TjCustomer tjCustomer = tjCustomerService.getOne(wq1); |