From 5e7b0ed4a154ad067cbcf4aa1a1c7cce32f9864c Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期五, 26 四月 2024 18:02:17 +0800
Subject: [PATCH] 唯品会链接解析升级

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserGoodsStorageService.java |  222 +++++++++++++++++++++++++++++--------------------------
 1 files changed, 117 insertions(+), 105 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserGoodsStorageService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserGoodsStorageService.java
index 7f9b6ac..c5ec852 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserGoodsStorageService.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/user/UserGoodsStorageService.java
@@ -1,105 +1,117 @@
-package com.yeshi.fanli.service.inter.user;
-
-import java.util.List;
-import java.util.Set;
-
-import net.sf.json.JSONArray;
-import net.sf.json.JSONObject;
-
-import org.apache.ibatis.annotations.Param;
-
-import com.yeshi.fanli.entity.bus.user.UserGoodsStorage;
-import com.yeshi.fanli.exception.share.UserShareGoodsRecordException;
-import com.yeshi.fanli.exception.user.UserGoodsStorageException;
-
-public interface UserGoodsStorageService {
-
-	public int deleteByPrimaryKey(Long id);
-
-	public int insert(UserGoodsStorage record);
-
-	public int insertSelective(UserGoodsStorage record);
-
-	public UserGoodsStorage selectByPrimaryKey(Long id);
-
-	public int updateByPrimaryKeySelective(UserGoodsStorage record);
-
-	public int updateByPrimaryKey(UserGoodsStorage record);
-	
-	/**
-	 * 鏌ヨ鐢ㄦ埛瀵瑰簲鐨勯�夊搧搴�
-	 * @param start
-	 * @param count
-	 * @param uid
-	 * @return
-	 */
-	public List<UserGoodsStorage> listQueryByUid(@Param("start") long start, @Param("count") int count, 
-			@Param("uid") Long uid);
-	
-	public long countQueryByUid(@Param("uid") Long uid);
-
-	/**
-	 *  鏂板鎴栧垵濮嬪寲鐢ㄦ埛閫夊搧搴�
-	 * @param uid 鐢ㄦ埛id
-	 * @param auctionIds 鍟嗗搧id闆嗗悎
-	 * @return
-	 * @throws UserGoodsStorageException
-	 */
-	public void save(Long uid, Set<Long> auctionIds) throws UserGoodsStorageException;
-
-	/**
-	 * 鎵归噺鍒犻櫎
-	 * @param list
-	 * @return
-	 */
-	public int deleteBatchByPrimaryKey(List<Long> list);
-
-	/**
-	 * 鏌ヨ澶囬�夊簱
-	 * @param page
-	 * @param pageSize
-	 * @param uid
-	 * @return
-	 * @throws UserGoodsStorageException
-	 */
-	public JSONArray getMyStorage(int page, int pageSize, Long uid) throws UserGoodsStorageException;
-
-	/**
-	 * 鏍规嵁涓婚敭 銆乽id 鎵归噺鍒犻櫎
-	 * @param list
-	 * @return
-	 */
-	public int deleteBatchByUidAndPrimaryKey(Long uid, List<Long> list);
-
-	/**
-	 * 鏍规嵁鐢ㄦ埛id銆佹窐瀹濆晢鍝� id
-	 * @param uid 鐢ㄦ埛id
-	 * @param auctionId 娣樺疂鍟嗗搧 id
-	 * @return
-	 */
-	public UserGoodsStorage getByUidAndAuctionId(Long uid, Long auctionId);
-
-	/**
-	 *  鍒ゆ柇鏄惁灞炰簬閫夊搧搴�
-	 * @param uid 鐢ㄦ埛id
-	 * @param auctionId 鍟嗗搧id
-	 * @return 
-	 */
-	public boolean isExistStorage(Long uid, Long auctionId);
-
-	/**
-	 * 閫夊搧搴撳垎浜晢鍝�
-	 * @param uid
-	 * @param listStorageID
-	 * @throws UserGoodsStorageException
-	 * @throws UserShareGoodsRecordException
-	 */
-	public JSONObject shareGoods(Long uid, List<Long> listStorageID) throws UserGoodsStorageException, UserShareGoodsRecordException;
-
-	/**
-	 * 鏇存柊鍟嗗搧鐘舵�佷负宸插垎浜�
-	 * @param shareId 鍒嗕韩
-	 */
-	public void updateShareStateByCommonGoodsId(Long shareId);
-
-}
+package com.yeshi.fanli.service.inter.user;
+
+import java.util.List;
+import java.util.Set;
+
+import com.yeshi.fanli.entity.SystemEnum;
+import com.yeshi.fanli.entity.bus.user.UserGoodsStorage;
+import com.yeshi.fanli.exception.share.UserShareGoodsRecordException;
+import com.yeshi.fanli.exception.user.UserGoodsStorageException;
+
+import net.sf.json.JSONArray;
+import net.sf.json.JSONObject;
+
+public interface UserGoodsStorageService {
+
+	public int deleteByPrimaryKey(Long id);
+
+	public int insert(UserGoodsStorage record);
+
+	public int insertSelective(UserGoodsStorage record);
+
+	public UserGoodsStorage selectByPrimaryKey(Long id);
+
+	public int updateByPrimaryKeySelective(UserGoodsStorage record);
+
+	public int updateByPrimaryKey(UserGoodsStorage record);
+	
+	/**
+	 * 鏌ヨ鐢ㄦ埛瀵瑰簲鐨勯�夊搧搴�
+	 * @param start
+	 * @param count
+	 * @param uid
+	 * @return
+	 */
+	public List<UserGoodsStorage> listQueryByUid(long start, int count, Long uid, Integer source);
+	
+	public long countQueryByUid(Long uid, Integer source);
+
+	/**
+	 *  鏂板鎴栧垵濮嬪寲鐢ㄦ埛閫夊搧搴�
+	 * @param uid 鐢ㄦ埛id
+	 * @param auctionIds 鍟嗗搧id闆嗗悎
+	 * @return
+	 * @throws UserGoodsStorageException
+	 */
+	public void save(Long uid, Set<String> auctionIds, Integer goodsType) throws UserGoodsStorageException;
+
+	/**
+	 * 鎵归噺鍒犻櫎
+	 * @param list
+	 * @return
+	 */
+	public int deleteBatchByPrimaryKey(List<Long> list);
+
+	/**
+	 * 鏌ヨ澶囬�夊簱
+	 * @param page
+	 * @param pageSize
+	 * @param uid
+	 * @return
+	 * @throws UserGoodsStorageException
+	 */
+	public JSONArray getMyStorage(int page, int pageSize, Long uid, Integer source) throws UserGoodsStorageException;
+
+	/**
+	 * 鏍规嵁涓婚敭 銆乽id 鎵归噺鍒犻櫎
+	 * @param list
+	 * @return
+	 */
+	public int deleteBatchByUidAndPrimaryKey(Long uid, List<Long> list);
+
+	/**
+	 * 鏍规嵁鐢ㄦ埛id銆佹窐瀹濆晢鍝� id
+	 * @param uid 鐢ㄦ埛id
+	 * @param auctionId 娣樺疂鍟嗗搧 id
+	 * @return
+	 */
+	public UserGoodsStorage getByUidAndAuctionId(Long uid, String auctionId, Integer goodsType);
+
+	/**
+	 *  鍒ゆ柇鏄惁灞炰簬閫夊搧搴�
+	 * @param uid 鐢ㄦ埛id
+	 * @param auctionId 鍟嗗搧id
+	 * @return 
+	 */
+	public boolean isExistStorage(Long uid, String auctionId, Integer goodType);
+
+	/**
+	 * 閫夊搧搴撳垎浜晢鍝�
+	 * @param uid
+	 * @param listStorageID
+	 * @throws UserGoodsStorageException
+	 * @throws UserShareGoodsRecordException
+	 */
+	public JSONObject shareGoods(Long uid, List<Long> listStorageID) throws UserGoodsStorageException, UserShareGoodsRecordException;
+
+	/**
+	 * 娣诲姞绠�鐗堝晢鍝佸埌閫夊搧搴�
+	 * @param uid
+	 * @param ids
+	 * @throws UserGoodsStorageException
+	 */
+	public void addCommonGoods(Long uid, Set<Long> ids) throws UserGoodsStorageException;
+
+	/**
+	 * 鍒涘缓鍒嗕韩
+	 * @param uid
+	 * @param listStorageID
+	 * @param needDrawPicture鏄惁闇�瑕佺粯鍥�
+	 * @return
+	 * @throws UserGoodsStorageException
+	 * @throws UserShareGoodsRecordException
+	 */
+	public JSONObject createShareV2(Long uid, List<Long> listStorageID,boolean needDrawPicture)
+			throws UserGoodsStorageException, UserShareGoodsRecordException;
+
+}

--
Gitblit v1.8.0