‘linchangsheng’ 2 weeks ago
parent
commit
78e8bacc12

+ 1 - 3
src/main/java/com/gree/mall/manager/logic/goods/GoodsApplyLogic.java

@@ -153,7 +153,6 @@ public class GoodsApplyLogic {
         AdminWebsit adminWebsit = adminWebsitService.getById(goodsApplyAddUp.getWebsitId());
 
         goodsApplyAddUp.setCompanyName(adminWebsit.getCompanyName());
-        goodsApplyAddUp.setCompanyName(adminWebsit.getCompanyWechatId());
         goodsApplyAddUp.setWebsitName(adminWebsit.getName());
         goodsApplyAddUp.insert();
 
@@ -163,13 +162,12 @@ public class GoodsApplyLogic {
     @Transactional(rollbackFor = Exception.class)
     public void update(GoodsApplyAddUp goodsApplyAddUp, HttpServletRequest request) {
         goodsApplyService.removeById(goodsApplyAddUp.getGoodsApplyId());
-        goodsApplyItemService.lambdaUpdate().eq(GoodsApplyItem::getGoodsSpecId,goodsApplyAddUp.getGoodsApplyId()).remove();
+        goodsApplyItemService.lambdaUpdate().eq(GoodsApplyItem::getGoodsApplyId,goodsApplyAddUp.getGoodsApplyId()).remove();
 
 
         AdminWebsit adminWebsit = adminWebsitService.getById(goodsApplyAddUp.getWebsitId());
 
         goodsApplyAddUp.setCompanyName(adminWebsit.getCompanyName());
-        goodsApplyAddUp.setCompanyName(adminWebsit.getCompanyWechatId());
         goodsApplyAddUp.setWebsitName(adminWebsit.getName());
 
         goodsApplyAddUp.insert();