admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/controller/client/v1/UserGoodsStorageController.java
@@ -39,14 +39,12 @@
   /**
    *  单个商品加入选品库
    *
    * @param callback
    * @param storageIds
    *
    *            id数组
    * @param out
    */
   @RequestMapping(value = "accordtorage", method = RequestMethod.POST)
   public void accordtorage(AcceptData acceptData, Long uid, Long auctionId, PrintWriter out) {
   public void accordtorage(AcceptData acceptData, Long uid, String auctionId, PrintWriter out) {
      if (auctionId == null) {
         out.print(JsonUtil.loadFalseResult("未选择商品"));
@@ -67,7 +65,7 @@
            userGoodsStorageService.deleteByPrimaryKey(userGoodsStorage.getId());
         } else {
            // 加入选品库
            Set<Long> set = new HashSet<Long>();
            Set<String> set = new HashSet<>();
            set.add(auctionId);
            userGoodsStorageService.save(uid, set, Constant.SOURCE_TYPE_TAOBAO);
            storageState = true;
@@ -89,7 +87,6 @@
    * @param acceptData
    * @param uid
    *            用户id
    * @param auctionId
    *            淘宝商品id
    * @param out
    */
@@ -97,7 +94,7 @@
   public void addStorage(AcceptData acceptData, Long uid, String auctionIds, Integer goodsType,PrintWriter out) {
      try {
         Gson gson = new Gson();
         Set<Long> set = gson.fromJson(auctionIds, new TypeToken<HashSet<Long>>() {}.getType());
         Set<String> set = gson.fromJson(auctionIds, new TypeToken<HashSet<String>>() {}.getType());
         if (set == null || set.size() == 0) {
            out.print(JsonUtil.loadFalseResult("未选择商品"));
            return;
@@ -163,8 +160,7 @@
   /**
    * 删除
    *
    * @param callback
    *
    * @param storageIds
    *            id数组
    * @param out
@@ -204,8 +200,7 @@
   /**
    * 分享商品返回二维码图片
    *
    * @param callback
    *
    * @param storageIds
    *            id数组
    * @param out