java110
2020-10-29 b30fbb595fea61af7ddb357305a0f442bb705b71
java110-db/src/main/resources/mapper/goods/GroupBuyProductServiceDaoImplMapper.xml
@@ -21,10 +21,14 @@
        productId,t.user_count,t.user_count userCount,t.group_id,t.group_id groupId,t.group_prod_desc,t.group_prod_desc
        groupProdDesc,t.status_cd,t.status_cd statusCd,t.sort,t.state,t.store_id,t.store_id
        storeId,t.batch_id,t.batch_id batchId,p.prod_name prodName,p.prod_desc prodDesc,
        gbb.batch_start_time batchStartTime,gbb.batch_end_time batchEndTime
        gbb.batch_start_time batchStartTime,gbb.batch_end_time batchEndTime,
        psv.cost_price costPrice,psv.ot_price otPrice,psv.price,psv.vip_price vipPrice,gbps.group_price groupPrice,
        gbps.group_sales groupSales,gbps.group_stock groupStock
        from group_buy_product t
        inner join product p on t.product_id = p.product_id and p.status_cd = '0' and t.store_id = p.store_id
        LEFT JOIN group_buy_batch gbb on t.batch_id = gbb.batch_id and gbb.store_id = t.store_id and gbb.status_cd = '0'
        left join product_spec_value psv on p.product_id = psv.product_id and psv.store_id = p.store_id and psv.is_default = 'T' and psv.status_cd = '0'
        left join group_buy_product_spec gbps on psv.value_id = gbps.value_id and gbps.store_id = p.store_id and gbps.product_id = p.product_id and gbps.status_cd = '0'
        where 1 =1
        <if test="groupProdName !=null and groupProdName != ''">
            and t.group_prod_name= #{groupProdName}