master:系统调优;初始化商品是否私款设置为0;商品列表改为left join
parent
446f2ca274
commit
362cc89940
|
|
@ -296,7 +296,7 @@ public class GtAndFhbBizController extends BaseController {
|
|||
// 获取GT匹配的商品中的第一个商品
|
||||
List<GtProdSkuVO> gtMatchSkuList = this.getGtFirstSku(multiSaleSameGoMap, gtSaleGroupMap, cleanArtNo);
|
||||
// 初始化档口商品
|
||||
StoreProduct storeProd = new StoreProduct().setStoreId(initVO.getStoreId()).setProdCateId(cateRelationMap.get(gtMatchSkuList.get(0).getCategory_nid()))
|
||||
StoreProduct storeProd = new StoreProduct().setStoreId(initVO.getStoreId()).setProdCateId(cateRelationMap.get(gtMatchSkuList.get(0).getCategory_nid())).setPrivateItem(0)
|
||||
.setProdArtNum(gtMatchSkuList.get(0).getArticle_number()).setProdTitle(gtMatchSkuList.get(0).getCharacters()).setListingWay(ListingType.RIGHT_NOW.getValue())
|
||||
.setVoucherDate(voucherDate).setProdStatus(EProductStatus.ON_SALE.getValue()).setRecommendWeight(0L).setSaleWeight(0L).setPopularityWeight(0L);
|
||||
// 提前设置档口商品的类目属性
|
||||
|
|
|
|||
|
|
@ -39,8 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
store_product_color spc
|
||||
JOIN store_product sp ON spc.store_prod_id = sp.id
|
||||
JOIN sys_product_category pc ON sp.prod_cate_id = pc.id
|
||||
JOIN store_product_file spf ON sp.id = spf.store_prod_id AND spf.file_type = 1 AND spf.order_num = 1 AND spf.del_flag = 0
|
||||
JOIN sys_file sf ON spf.file_id = sf.id
|
||||
LEFT JOIN store_product_file spf ON sp.id = spf.store_prod_id AND spf.file_type = 1 AND spf.order_num = 1 AND spf.del_flag = 0
|
||||
LEFT JOIN sys_file sf ON spf.file_id = sf.id
|
||||
WHERE
|
||||
spc.del_flag = #{delFlag} AND spc.store_id = #{storeId}
|
||||
<if test="prodStatusList != null and prodStatusList.size() > 0">
|
||||
|
|
|
|||
Loading…
Reference in New Issue