| | |
| | | /** |
| | | * 根据用户ID和单位ID查询购物车商品列表 |
| | | */ |
| | | List<Cart> selectByUserIdAndUnitId(@Param("userId") Long userId, @Param("unitId") Long unitId); |
| | | List<Cart> selectByUserIdAndUnitId(@Param("userId") String userId, @Param("unitId") String unitId, @Param("productId") String productId); |
| | | |
| | | /** |
| | | * 根据用户ID、单位ID和定价ID查询购物车商品 |
| | | */ |
| | | Cart selectByUserIdUnitIdAndPricingId(@Param("userId") Long userId, @Param("unitId") Long unitId, @Param("pricingId") Long pricingId); |
| | | Cart selectByUserIdUnitIdAndPricingId(@Param("userId") String userId, @Param("unitId") String unitId,@Param("productId") String productId, @Param("pricingId") Long pricingId); |
| | | |
| | | /** |
| | | * 根据用户ID和单位ID统计购物车商品数量 |
| | | */ |
| | | Integer countByUserIdAndUnitId(@Param("userId") Long userId, @Param("unitId") Long unitId); |
| | | Integer countByUserIdAndUnitId(@Param("userId") String userId, @Param("unitId") String unitId, @Param("productId") String productId); |
| | | |
| | | /** |
| | | * 根据用户ID和单位ID计算购物车总金额 |
| | | */ |
| | | java.math.BigDecimal sumTotalAmountByUserIdAndUnitId(@Param("userId") Long userId, @Param("unitId") Long unitId); |
| | | java.math.BigDecimal sumTotalAmountByUserIdAndUnitId(@Param("userId") String userId, @Param("unitId") String unitId); |
| | | |
| | | Integer deleteByCustomerCondition(@Param("id") Long id); |
| | | } |