| | |
| | | if (!realpath.exists()) { |
| | | realpath.mkdirs(); |
| | | } |
| | | pathName = file.getOriginalFilename(); |
| | | pathName = file.getOriginalFilename().replace("#","&"); |
| | | urlString = realpath + "/" + pathName; |
| | | file.transferTo(new File(urlString)); |
| | | insOrderFile.setFileUrl(pathName); |
| | |
| | | insProductResultMapper.delete(Wrappers.<InsProductResult>lambdaQuery() |
| | | .eq(InsProductResult::getInsProductId, insProductResult.getInsProductId()) |
| | | .eq(InsProductResult::getNum, insProductResult.getNum())); |
| | | insProductResult.setEquipValue("[{\"v\":\""+insProductResult.getEquipValue()+"\"}]"); |
| | | insProductResult.setEquipName("[{\"v\":\""+insProductResult.getEquipName()+"\"}]"); |
| | | insProductResultMapper.insert(insProductResult); |
| | | return 0; |
| | | } |
| | |
| | | info.setViewStatus(false); |
| | | info.setJumpPath("b1-inspect-order-plan"); |
| | | informationNotificationService.addInformationNotification(info); |
| | | //todo 企业微信消息推送@zss |
| | | /* HashMap<String, Object> map = new HashMap<>(); |
| | | // todo 企业微信消息推送@zss |
| | | /*HashMap<String, Object> map = new HashMap<>(); |
| | | String account = userMapper.selectById(userId).getAccount(); |
| | | map.put("touser", account);//接收消息成员的账号'ZT-031292'这种类型(如果有多个用'|'分隔) |
| | | map.put("toparty", "");//接收部门id |
| | |
| | | /*生成电路试验的站点报告并上传到附件中*/ |
| | | if (submitPlanDto.getLaboratory().equals("电路试验")) { |
| | | wordUtils.generateWord(submitPlanDto.getTerm(), orderState); |
| | | // try { |
| | | // wordUtils.generateWord(submitPlanDto.getTerm(), orderState); |
| | | // } catch (Exception e) { |
| | | // throw new ErrorException("电路试验的站点报告生成有误,请联系开发人员调整!"); |
| | | // } |
| | | //todo 电路站点报告 正式库部署放开 |
| | | /*try { |
| | | wordUtils.generateWord(submitPlanDto.getTerm(), orderState); |
| | | } catch (Exception e) { |
| | | throw new ErrorException("电路试验的站点报告生成有误,请联系开发人员调整!"); |
| | | }*/ |
| | | } |
| | | /*// 删除数采采集次数 |
| | | String key = "frequency" + ":" + submitPlanDto.getEntrustCode() + ":*"; |