|
@@ -3,7 +3,7 @@
|
|
|
<mapper namespace="com.yc.ship.module.ota.dal.mysql.distributorproduct.DistributorProductMapper">
|
|
|
|
|
|
<select id="getPage"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
select t1.id,t4.id distributorId,t4.name distributorName,t2.id productId,t2.product_name productName,t2.category_id categoryId,t3.spec_type
|
|
|
specType,t1.product_sku_id,t1.sale_price salePrice,t1.sale_price_raw salePriceRaw,ifnull(t1.is_use,0) isUse,t1.start_date startDate,t1.end_date endDate,
|
|
|
t1.route_plan_id routePlanId,t5.name planName
|
|
@@ -42,7 +42,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getDistributorProductList"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
select t1.* from ota_distributor_product t1
|
|
|
where 1=1
|
|
|
<if test="distributorId != null and distributorId !=''">
|
|
@@ -57,7 +57,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getProductPage"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.product.ProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.product.ProductRespVO">
|
|
|
<choose>
|
|
|
<when test="params.channelType == 1">
|
|
|
<include refid="otaProductPage"/>
|
|
@@ -120,7 +120,7 @@
|
|
|
</sql>
|
|
|
|
|
|
<select id="getProductSku"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
select t1.id productSkuId,
|
|
|
t1.product_id productId,
|
|
|
t1.cost_price costPrice,
|
|
@@ -133,7 +133,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getProductSkuList"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
select t1.id productSkuId,
|
|
|
t1.product_id productId,
|
|
|
t1.cost_price costPrice,
|
|
@@ -146,7 +146,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getProductSpu"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
select t1.id product_id, t1.sale_price salePrice, t1.cost_price costPrice
|
|
|
from product_spu t1
|
|
|
where t1.deleted = 0
|
|
@@ -168,7 +168,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectProjectType"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.product.ProductGroupRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.product.ProductGroupRespVO">
|
|
|
SELECT
|
|
|
pg.product_id,pg.product_base_id,pb.`name` productBaseName,pg.specification_id,pp.`name` specificationName,
|
|
|
pg.cost_price,pg.sale_price,pg.spec_type,pg.need_choose
|
|
@@ -246,7 +246,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectDistributorProductList"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.DistributorProductRespVO">
|
|
|
SELECT dp.id, spu.id productId, spu.category_id categoryId, spu.product_name productName,
|
|
|
if(dp.id is null, spu.is_use, dp.is_use) isUse,
|
|
|
sku.id productSkuId, sku.spec_type specType,
|
|
@@ -284,7 +284,7 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectProductList"
|
|
|
- resultType="com.yc.ship.module.ota.admin.distributorproduct.vo.product.ProductRespVO">
|
|
|
+ resultType="com.yc.ship.module.ota.controller.admin.distributorproduct.vo.product.ProductRespVO">
|
|
|
SELECT spu.id productId, spu.category_id categoryId, spu.product_name productName, spu.is_use isUse,
|
|
|
spu.sort_num sort, sku.id productSkuId, sku.spec_type specType, sku.sale_price salePrice,
|
|
|
br.sale_start_date startDate, br.sale_end_date endDate
|