|
@ -24,6 +24,8 @@ |
|
|
<result property="remark" column="remark"/> |
|
|
<result property="remark" column="remark"/> |
|
|
<result property="updateTime" column="update_time"/> |
|
|
<result property="updateTime" column="update_time"/> |
|
|
<result property="createTime" column="create_time"/> |
|
|
<result property="createTime" column="create_time"/> |
|
|
|
|
|
<result property="orderOfflineFlag" column="order_offline_flag"/> |
|
|
|
|
|
<result property="orderOnlineFlag" column="order_online_flag"/> |
|
|
<result property="tenantId" column="tenant_id"/> |
|
|
<result property="tenantId" column="tenant_id"/> |
|
|
<result property="delFlag" column="del_flag"/> |
|
|
<result property="delFlag" column="del_flag"/> |
|
|
<result property="createBy" column="create_by"/> |
|
|
<result property="createBy" column="create_by"/> |
|
@ -37,6 +39,7 @@ |
|
|
<sql id="goodsSkuSql"> |
|
|
<sql id="goodsSkuSql"> |
|
|
goods_sku.`id`, |
|
|
goods_sku.`id`, |
|
|
goods_sku.`sku_code`, |
|
|
goods_sku.`sku_code`, |
|
|
|
|
|
goods_sku.`sku_add_code`, |
|
|
goods_sku.`sku_name`, |
|
|
goods_sku.`sku_name`, |
|
|
goods_sku.`spu_id`, |
|
|
goods_sku.`spu_id`, |
|
|
goods_sku.`pic_url`, |
|
|
goods_sku.`pic_url`, |
|
@ -49,6 +52,8 @@ |
|
|
goods_sku.`unit_name`, |
|
|
goods_sku.`unit_name`, |
|
|
goods_sku.`weight`, |
|
|
goods_sku.`weight`, |
|
|
goods_sku.`volume`, |
|
|
goods_sku.`volume`, |
|
|
|
|
|
`goods_sku`.`order_online_flag`, |
|
|
|
|
|
`goods_sku`.`order_offline_flag`, |
|
|
goods_sku.`wrap_val`, |
|
|
goods_sku.`wrap_val`, |
|
|
goods_sku.`taste_val`, |
|
|
goods_sku.`taste_val`, |
|
|
goods_sku.`min_purchase`, |
|
|
goods_sku.`min_purchase`, |
|
@ -77,6 +82,8 @@ |
|
|
<if test="query.salesPrice != null"> and `goods_sku`.`sales_price` = #{query.salesPrice}</if> |
|
|
<if test="query.salesPrice != null"> and `goods_sku`.`sales_price` = #{query.salesPrice}</if> |
|
|
<if test="query.marketPrice != null"> and `goods_sku`.`market_price` = #{query.marketPrice}</if> |
|
|
<if test="query.marketPrice != null"> and `goods_sku`.`market_price` = #{query.marketPrice}</if> |
|
|
<if test="query.costPrice != null"> and `goods_sku`.`cost_price` = #{query.costPrice}</if> |
|
|
<if test="query.costPrice != null"> and `goods_sku`.`cost_price` = #{query.costPrice}</if> |
|
|
|
|
|
<if test="query.orderOnlineFlag != null"> and `goods_sku`.`order_online_flag` = #{query.orderOnlineFlag}</if> |
|
|
|
|
|
<if test="query.orderOfflineFlag != null"> and `goods_sku`.`order_offline_flag` = #{query.orderOfflineFlag}</if> |
|
|
<if test="query.belong != null"> and `goods_sku`.`belong` = #{query.belong}</if> |
|
|
<if test="query.belong != null"> and `goods_sku`.`belong` = #{query.belong}</if> |
|
|
<if test="query.specInfos != null and query.specInfos != ''"> and `goods_sku`.`spec_infos` = #{query.specInfos}</if> |
|
|
<if test="query.specInfos != null and query.specInfos != ''"> and `goods_sku`.`spec_infos` = #{query.specInfos}</if> |
|
|
<if test="query.stock != null"> and `goods_sku`.`stock` = #{query.stock}</if> |
|
|
<if test="query.stock != null"> and `goods_sku`.`stock` = #{query.stock}</if> |
|
@ -121,11 +128,14 @@ |
|
|
and `goods_spu`.`del_flag` = 0 |
|
|
and `goods_spu`.`del_flag` = 0 |
|
|
<if test="query.id != null"> and `goods_sku`.`id` = #{query.id}</if> |
|
|
<if test="query.id != null"> and `goods_sku`.`id` = #{query.id}</if> |
|
|
<if test="query.skuCode != null and query.skuCode != ''"> and `goods_sku`.`sku_code` like concat('%',#{query.skuCode},'%') </if> |
|
|
<if test="query.skuCode != null and query.skuCode != ''"> and `goods_sku`.`sku_code` like concat('%',#{query.skuCode},'%') </if> |
|
|
|
|
|
<if test="query.skuAddCode != null and query.skuAddCode != ''"> and `goods_sku`.`sku_add_code` like concat('%',#{query.skuAddCode},'%') </if> |
|
|
<if test="query.spuCode != null and query.spuCode != ''"> and `goods_spu`.`spu_code` like concat('%',#{query.spuCode},'%') </if> |
|
|
<if test="query.spuCode != null and query.spuCode != ''"> and `goods_spu`.`spu_code` like concat('%',#{query.spuCode},'%') </if> |
|
|
<if test="query.skuName != null and query.skuName != ''"> and `goods_sku`.`sku_name` like concat('%',#{query.skuName},'%') </if> |
|
|
<if test="query.skuName != null and query.skuName != ''"> and `goods_sku`.`sku_name` like concat('%',#{query.skuName},'%') </if> |
|
|
<if test="query.spuId != null"> and `goods_sku`.`spu_id` = #{query.spuId}</if> |
|
|
<if test="query.spuId != null"> and `goods_sku`.`spu_id` = #{query.spuId}</if> |
|
|
<if test="query.salesPrice != null"> and `goods_sku`.`sales_price` = #{query.salesPrice}</if> |
|
|
<if test="query.salesPrice != null"> and `goods_sku`.`sales_price` = #{query.salesPrice}</if> |
|
|
<if test="query.marketPrice != null"> and `goods_sku`.`market_price` = #{query.marketPrice}</if> |
|
|
<if test="query.marketPrice != null"> and `goods_sku`.`market_price` = #{query.marketPrice}</if> |
|
|
|
|
|
<if test="query.orderOnlineFlag != null"> and `goods_sku`.`order_online_flag` = #{query.orderOnlineFlag}</if> |
|
|
|
|
|
<if test="query.orderOfflineFlag != null"> and `goods_sku`.`order_offline_flag` = #{query.orderOfflineFlag}</if> |
|
|
<if test="query.costPrice != null"> and `goods_sku`.`cost_price` = #{query.costPrice}</if> |
|
|
<if test="query.costPrice != null"> and `goods_sku`.`cost_price` = #{query.costPrice}</if> |
|
|
<if test="query.specInfos != null and query.specInfos != ''"> and `goods_sku`.`spec_infos` like concat('%',#{query.specInfos},'%') </if> |
|
|
<if test="query.specInfos != null and query.specInfos != ''"> and `goods_sku`.`spec_infos` like concat('%',#{query.specInfos},'%') </if> |
|
|
<if test="query.stock != null"> and `goods_sku`.`stock` = #{query.stock}</if> |
|
|
<if test="query.stock != null"> and `goods_sku`.`stock` = #{query.stock}</if> |
|
|