| | |
| | | import com.whyc.dto.ZipUtils; |
| | | import com.whyc.mapper.BOMFeedbakMapper; |
| | | import com.whyc.mapper.DocUserMapper; |
| | | import com.whyc.mapper.ProductHistoryMapper; |
| | | import com.whyc.pojo.BOMFeedback; |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.pojo.ProductHistory; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.CommonUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private DocLogService logService; |
| | | |
| | | @Autowired |
| | | private ProductHistoryService phisService; |
| | | |
| | | @Resource |
| | | private ProductHistoryMapper phisMapper; |
| | | //统计 |
| | | public Map<String, Integer> getFkStatistic(DocUser user,Map<String, Integer> map) { |
| | | int sendFk=0; |
| | |
| | | mailDTO.setMailList(receiverMailList); |
| | | mailService.sendMail(mailDTO); |
| | | //mailUtil.sendMailBatch(senderName,receiverMailList,subject,content); |
| | | //反馈时直接根据productid直接锁定 |
| | | //查询产品的信息 |
| | | QueryWrapper hisWrapper=new QueryWrapper(); |
| | | hisWrapper.eq("id",feedback.getProductId()); |
| | | hisWrapper.last("limit 1"); |
| | | ProductHistory phis=phisMapper.selectOne(hisWrapper); |
| | | phisService.setpHistoryEnable(phis.getParentCode(),phis.getCustomCode(),phis.getVersion(),0,feedback.getContent(),ActionUtil.sdfwithALL.format(phis.getVersionTime())); |
| | | return new Response().set(1,true,"反馈完成"); |
| | | } |
| | | //根据文件路径下载 |