admin
2024-03-08 0f704a4650edd60cea2e57778b6703509376a42c
fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushGoodsServiceImpl.java
@@ -91,7 +91,7 @@
   @Override
   @Transactional(rollbackFor=Exception.class)
   public void save(PushGoods record, List<Long> goodsIds) throws PushGoodsException, Exception {
   public void save(PushGoods record, List<String> goodsIds) throws PushGoodsException, Exception {
      // 定时时间
      if (StringUtil.isNullOrEmpty(record.getControlTime_str())) {
         SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
@@ -131,7 +131,7 @@
   }
   @Transactional(rollbackFor=Exception.class)
   public void saveGoodsInfo(boolean isAdd, Long pushId, List<Long> goodsIds) throws Exception {
   public void saveGoodsInfo(boolean isAdd, Long pushId, List<String> goodsIds) throws Exception {
      if (goodsIds == null || goodsIds.size() == 0) {
         if (!isAdd) {
            pushGoodsGroupService.deleteByPushId(pushId);
@@ -140,8 +140,8 @@
      }
      // 商品信息获取与保存
      List<Long> listCommonId = new ArrayList<Long>();
      for (Long auctionId : goodsIds) {
      List<Long> listCommonId = new ArrayList<>();
      for (String auctionId : goodsIds) {
         // 获取商品详情
         try {
            TaoBaoGoodsBrief goodsBrief = TaoKeApiUtil.searchGoodsDetail(auctionId);
@@ -500,7 +500,7 @@
            throw new PushGoodsException(1, "商品详细信息已不存在");
         }
         Long goodsId = commonGoods.getGoodsId();
         String goodsId = commonGoods.getGoodsId();
         String url = "https://item.taobao.com/item.htm?id=" + goodsId;
         pushService.pushGoods(pushGoods.getUid(), pushGoods.getTitle(), pushGoods.getContent(), url,listIOS, listAndroid,pushGoods.getSystem());
      } else {