| | |
| | | |
| | | @Override |
| | | public Object uploadFile(Integer orderId, MultipartFile file, String sonLaboratory, Integer sampleId) { |
| | | InsOrder insOrder = insOrderMapper.selectById(orderId); |
| | | String urlString; |
| | | String pathName; |
| | | String path; |
| | |
| | | dianLuUtils.readDianLuFile1(sampleId, insOrderFile); |
| | | } else if (ObjectUtils.isNotEmpty(sonLaboratory) && sonLaboratory.equals("电路试验") && split[split.length - 1].equals("csv") && filename.contains("驻波")) { |
| | | dianLuUtils.readDianLuFile2(sampleId, insOrderFile); |
| | | }else if (ObjectUtils.isNotEmpty(sonLaboratory) && sonLaboratory.equals("电路试验") && split[split.length - 1].equals("csv") && insOrder.getSampleType().equals("无源器件")) { |
| | | dianLuUtils.readDianLuFile3(sampleId, insOrderFile); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new ErrorException(e.getMessage()); |
| | |
| | | // wordUtils.generateWord(submitPlanDto.getTerm(), orderState); |
| | | //todo 电路站点报告 正式库部署放开 |
| | | try { |
| | | wordUtils.generateWord(submitPlanDto.getTerm(), orderState); |
| | | if (!insOrder.getSampleType().equals("无源器件")) { |
| | | wordUtils.generateWord(submitPlanDto.getTerm(), orderState); |
| | | }else { |
| | | wordUtils.generateWord2(submitPlanDto.getTerm(), orderState); |
| | | } |
| | | } catch (Exception e) { |
| | | throw new ErrorException("电路试验的站点报告生成有误,请联系开发人员调整!"); |
| | | } |