|
@@ -3,6 +3,9 @@ package zs.payment.service.commodity.impl;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.service.additional.update.impl.UpdateChainWrapper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -1246,12 +1249,13 @@ public class CommodityProcureServiceImpl implements CommodityProcureService {
|
|
|
|
|
|
|
|
// 取消供货
|
|
// 取消供货
|
|
|
yunMallGoodsService.saveGoods(gdId.toString(), 2);
|
|
yunMallGoodsService.saveGoods(gdId.toString(), 2);
|
|
|
- // 停止供货时取消推荐状态
|
|
|
|
|
- ImsEweiShopGoods update = new ImsEweiShopGoods();
|
|
|
|
|
- update.setId(item.getId());
|
|
|
|
|
- update.setGdId(null);
|
|
|
|
|
- update.setIssupplyRecommend(0);
|
|
|
|
|
- goodsService.updateById(update);
|
|
|
|
|
|
|
+ // 停止供货时取消推荐状态,以及gdId为null
|
|
|
|
|
+ LambdaUpdateWrapper<ImsEweiShopGoods> wrapper = new LambdaUpdateWrapper<>();
|
|
|
|
|
+ wrapper.eq(ImsEweiShopGoods::getGdId, gdId)
|
|
|
|
|
+ .set(ImsEweiShopGoods::getGdId,null)
|
|
|
|
|
+ .set(ImsEweiShopGoods::getIssupplyRecommend,0);
|
|
|
|
|
+ goodsService.update(wrapper);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|