| | |
| | | processSample.setSampleName(insSample.getSample());//样品名称 |
| | | processSample.setNum(1);//样品数量=1 |
| | | processSample.setSampleSupplier(inspectionOrder.getCommissionUnit());//来样单位 |
| | | LocalDate plusMonths = inspectionOrder.getSampleData().plusMonths(1); |
| | | LocalDate plusMonths = inspectionOrder.getSampleData() == null ? null : inspectionOrder.getSampleData().plusMonths(1); |
| | | processSample.setLeaveDate(plusMonths);//留样日期=收样日期往后延一个月 |
| | | processSample.setSampleState(inspectionOrder.getSampleStatus());//样品状态 |
| | | processSample.setDealTime(plusMonths);//退样日期=留样日期 |
| | |
| | | template.write(os); |
| | | os.flush(); |
| | | os.close(); |
| | | inputStream.close(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | throw new RuntimeException("导出失败"); |