| | |
| | | import com.deepoove.poi.config.ConfigureBuilder; |
| | | import com.deepoove.poi.data.PictureRenderData; |
| | | import com.deepoove.poi.data.Pictures; |
| | | import com.ruoyi.common.constant.MenuJumpPathConstants; |
| | | import com.ruoyi.common.core.domain.entity.InformationNotification; |
| | | import com.ruoyi.common.core.domain.entity.User; |
| | | import com.ruoyi.common.utils.DateImageUtil; |
| | |
| | | info.setSenderId(userId); |
| | | // 接收人 |
| | | info.setConsigneeId(supervise.getRatifyUserId()); |
| | | info.setJumpPath("a7-quality-control-plan"); |
| | | info.setJumpPath(MenuJumpPathConstants.QUALITY_SUPERVISE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // 发送企业微信通知 |
| | |
| | | */ |
| | | @Override |
| | | public List<Map<String, String>> getRecordUser(Integer superviseDetailsId) { |
| | | List<Map<String, String>> recordUser = baseMapper.getRecordUser(superviseDetailsId); |
| | | return baseMapper.getRecordUser(superviseDetailsId); |
| | | } |
| | | |
| | |
| | | } |
| | | // 添加批准人名称 |
| | | if (detailsRecord.getRatifyUserId() != null) { |
| | | User user = userMapper.selectById(SecurityUtils.getUserId().intValue()); |
| | | User user = userMapper.selectById(detailsRecord.getRatifyUserId()); |
| | | detailsRecord.setRatifyUserName(user.getName()); |
| | | } |
| | | return detailsRecord; |
| | |
| | | info.setCreateUser(user.getName()); |
| | | info.setMessageType("6"); |
| | | info.setTheme("CNAS质量监督记录审批通知"); |
| | | info.setContent("监督项目为: " + superviseDetails.getSuperviseProject() + " 监督记录带审批"); |
| | | info.setContent("监督项目为: " + superviseDetails.getSuperviseProject() + " 监督记录待审批"); |
| | | info.setSenderId(userId); |
| | | // 接收人 |
| | | info.setConsigneeId(qualitySuperviseDetailsRecord.getRatifyUserId()); |
| | | info.setJumpPath("a7-quality-control-plan"); |
| | | info.setJumpPath(MenuJumpPathConstants.QUALITY_SUPERVISE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // 发送企业微信通知 |
| | |
| | | String message = ""; |
| | | message += "CNAS质量监督记录审批通知"; |
| | | message += "\n请去过程要求-质量监督计划"; |
| | | message += "\n" + "监督项目为: " + superviseDetails.getSuperviseProject() + " 监督记录带审批"; |
| | | message += "\n" + "监督项目为: " + superviseDetails.getSuperviseProject() + " 监督记录待审批"; |
| | | //发送企业微信消息通知 |
| | | try { |
| | | WxCpUtils.inform(people.getAccount(), message, null); |
| | |
| | | info.setSenderId(userId); |
| | | // 接收人 |
| | | info.setConsigneeId(detailsAccording.getApproverUserId()); |
| | | info.setJumpPath("a7-quality-control-plan"); |
| | | info.setJumpPath(MenuJumpPathConstants.QUALITY_SUPERVISE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // 发送企业微信通知 |
| | |
| | | info.setSenderId(userId); |
| | | // 接收人 |
| | | info.setConsigneeId(detailsCorrect.getApproverUserId()); |
| | | info.setJumpPath("a7-quality-control-plan"); |
| | | info.setJumpPath(MenuJumpPathConstants.QUALITY_SUPERVISE); |
| | | informationNotificationService.addInformationNotification(info); |
| | | |
| | | // 发送企业微信通知 |