|
@@ -520,7 +520,7 @@ public interface FsStoreOrderScrmMapper
|
|
|
List<FsStoreOrderTuiVO> selectFsStoreOrderTuiListVO(String userId);
|
|
List<FsStoreOrderTuiVO> selectFsStoreOrderTuiListVO(String userId);
|
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
|
"select ifnull(count(1),0) from fs_store_order_scrm o " +
|
|
"select ifnull(count(1),0) from fs_store_order_scrm o " +
|
|
|
- "where o.user_id=#{uid} and o.package_id=#{packageId} and o.status > 0 and o.paid = 1 " +
|
|
|
|
|
|
|
+ "where o.user_id=#{uid} and o.package_id=#{packageId} and o.status <> -3 " +
|
|
|
"</script>"})
|
|
"</script>"})
|
|
|
int checkPackageOrderCount(@Param("uid") long uid, @Param("packageId")String packageId);
|
|
int checkPackageOrderCount(@Param("uid") long uid, @Param("packageId")String packageId);
|
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
@@ -1276,6 +1276,15 @@ public interface FsStoreOrderScrmMapper
|
|
|
Integer selectUserPurchasedCount(@Param("userId") Long userId,
|
|
Integer selectUserPurchasedCount(@Param("userId") Long userId,
|
|
|
@Param("productAttrValueId") Long productAttrValueId);
|
|
@Param("productAttrValueId") Long productAttrValueId);
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 根据商品ID查询用户已购买数量(不区分规格)
|
|
|
|
|
+ * @param userId 用户ID
|
|
|
|
|
+ * @param productId 商品ID
|
|
|
|
|
+ * @return 已购买数量
|
|
|
|
|
+ */
|
|
|
|
|
+ Integer selectUserPurchasedCountByProductId(@Param("userId") Long userId,
|
|
|
|
|
+ @Param("productId") Long productId);
|
|
|
|
|
+
|
|
|
List<FsStoreOrderVO> selectFsStoreOrderListVOByErpAccount(@Param("maps")FsStoreOrderParam param);
|
|
List<FsStoreOrderVO> selectFsStoreOrderListVOByErpAccount(@Param("maps")FsStoreOrderParam param);
|
|
|
|
|
|
|
|
int batchUpdateErpByOrderIds(@Param("maps")ArrayList<Map<String, String>> maps);
|
|
int batchUpdateErpByOrderIds(@Param("maps")ArrayList<Map<String, String>> maps);
|