|
@@ -222,6 +222,7 @@ public interface FsStoreProductScrmMapper
|
|
"where is_del=0 and is_show=1 and product_id=#{productId} " +
|
|
"where is_del=0 and is_show=1 and product_id=#{productId} " +
|
|
"</script>"})
|
|
"</script>"})
|
|
FsStoreProductQueryVO selectFsStoreProductByIdQueryOld(Long productId);
|
|
FsStoreProductQueryVO selectFsStoreProductByIdQueryOld(Long productId);
|
|
|
|
+
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
"select p.* from fs_store_product_scrm p " +
|
|
"select p.* from fs_store_product_scrm p " +
|
|
//新增审核状态及所属店铺审核状态
|
|
//新增审核状态及所属店铺审核状态
|
|
@@ -234,7 +235,7 @@ public interface FsStoreProductScrmMapper
|
|
"</if>" +
|
|
"</if>" +
|
|
"and p.product_id=#{productId} " +
|
|
"and p.product_id=#{productId} " +
|
|
"</script>"})
|
|
"</script>"})
|
|
- FsStoreProductQueryVO selectFsStoreProductByIdQuery(Long productId, String storeId,@Param("config") MedicalMallConfig config);
|
|
|
|
|
|
+ FsStoreProductQueryVO selectFsStoreProductByIdQuery(@Param("productId") Long productId, @Param("storeId") String storeId, @Param("config") MedicalMallConfig config);
|
|
@Update("update fs_store_product_scrm set stock=stock-#{num}, sales=sales+#{num}" +
|
|
@Update("update fs_store_product_scrm set stock=stock-#{num}, sales=sales+#{num}" +
|
|
" where product_id=#{productId} and stock >= #{num}")
|
|
" where product_id=#{productId} and stock >= #{num}")
|
|
int decProductAttrStock(@Param("productId")Long productId, @Param("num")Integer cartNum);
|
|
int decProductAttrStock(@Param("productId")Long productId, @Param("num")Integer cartNum);
|
|
@@ -274,19 +275,6 @@ public interface FsStoreProductScrmMapper
|
|
"</if>" +
|
|
"</if>" +
|
|
"and p.is_good=1 and p.is_display=1 order by p.sort desc limit #{count}")
|
|
"and p.is_good=1 and p.is_display=1 order by p.sort desc limit #{count}")
|
|
List<FsStoreProductListQueryVO> selectFsStoreProductGoodQuery(int count,@Param("config") MedicalMallConfig config);
|
|
List<FsStoreProductListQueryVO> selectFsStoreProductGoodQuery(int count,@Param("config") MedicalMallConfig config);
|
|
- @Select("SELECT COUNT(*) OVER (PARTITION BY fsp.product_name) AS storeCount,p1.storeIds,fsp.* " +
|
|
|
|
- "FROM fs_store_product_scrm fsp " +
|
|
|
|
- "left join (select GROUP_CONCAT(distinct fsp1.store_id SEPARATOR ',' ) AS storeIds,fsp1.product_name " +
|
|
|
|
- "from fs_store_product_scrm fsp1 group by fsp1.product_name) p1 on p1.product_name = fsp.product_name "+
|
|
|
|
- "inner join fs_store_scrm fs on fs.store_id = fsp.store_id " +
|
|
|
|
- "<if test='config.isAudit == \"1\" '>" +
|
|
|
|
- "and fs.is_audit = '1'" +
|
|
|
|
- "</if>" +
|
|
|
|
- "where fsp.is_del=0 and fsp.is_show=1 " +
|
|
|
|
- "<if test='config.isAudit == \"1\" '>" +
|
|
|
|
- "and fsp.is_audit = '1'" +
|
|
|
|
- "</if>" +
|
|
|
|
- "and fsp.is_best=1 and fsp.is_display=1 order by fsp.sort desc,fsp.product_id desc")
|
|
|
|
List<FsStoreProductListQueryVO> selectFsStoreProductTuiListQuery(@Param("config") MedicalMallConfig config);
|
|
List<FsStoreProductListQueryVO> selectFsStoreProductTuiListQuery(@Param("config") MedicalMallConfig config);
|
|
@Select("select p.* from fs_store_product_scrm p " +
|
|
@Select("select p.* from fs_store_product_scrm p " +
|
|
//新增审核状态及所属店铺审核状态
|
|
//新增审核状态及所属店铺审核状态
|