From 594a88ca5bee4d0f876e2759341db61b554a6d9a Mon Sep 17 00:00:00 2001 From: lxw <810412026@qq.com> Date: 星期四, 30 十一月 2023 16:22:12 +0800 Subject: [PATCH] 提交反馈submitFeedback接口加上setpHistoryEnable锁定 --- src/main/java/com/whyc/service/BOMFeedbakService.java | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/service/BOMFeedbakService.java b/src/main/java/com/whyc/service/BOMFeedbakService.java index c42dab7..a08d6a2 100644 --- a/src/main/java/com/whyc/service/BOMFeedbakService.java +++ b/src/main/java/com/whyc/service/BOMFeedbakService.java @@ -11,8 +11,10 @@ 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; @@ -39,6 +41,12 @@ @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; @@ -257,6 +265,13 @@ mailDTO.setMailList(receiverMailList); mailService.sendMail(mailDTO); //mailUtil.sendMailBatch(senderName,receiverMailList,subject,content); + //鍙嶉鏃剁洿鎺ユ牴鎹畃roductid鐩存帴閿佸畾 + //鏌ヨ浜у搧鐨勪俊鎭� + 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,"鍙嶉瀹屾垚"); } //鏍规嵁鏂囦欢璺緞涓嬭浇 -- Gitblit v1.9.1