| | |
| | | // 5.发送消息通知给复核人 |
| | | // 查询当前人信息 |
| | | Integer userId = SecurityUtils.getUserId().intValue(); |
| | | Map<String, String> userMap = insProductMapper.selectUserById(verifyUser); |
| | | String userName = userMap.get("name"); |
| | | String userName = insProductMapper.selectUserById(userId).get("name"); |
| | | // 查询发送人信息 |
| | | String sendUserAccount = userMap.get("account"); |
| | | String sendUserAccount = insProductMapper.selectUserById(verifyUser).get("account"); |
| | | InformationNotification info = new InformationNotification(); |
| | | info.setCreateUser(userName); |
| | | info.setMessageType("2"); |
| | |
| | | insReportMapper.delete(Wrappers.<InsReport>lambdaQuery() |
| | | .eq(InsReport::getInsOrderId, insOrder.getId())); |
| | | insReportMapper.insert(insReport); |
| | | |
| | | inputStream.close(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | |
| | | insReportMapper.delete(Wrappers.<InsReport>lambdaQuery() |
| | | .eq(InsReport::getInsOrderId, insOrder.getId())); |
| | | insReportMapper.insert(insReport); |
| | | inputStream.close(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | |
| | | |
| | | // 保存到附件里面 |
| | | uploadFile(insOrderId, multipartFile); |
| | | try { |
| | | inputStream.close(); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | } |
| | | |