|
|
@ -29,6 +29,7 @@ |
|
|
|
<result property="createBy" column="create_by"/> |
|
|
|
<result property="updateBy" column="update_by"/> |
|
|
|
<result property="costFlag" column="cost_flag"/> |
|
|
|
<result property="belong" column="belong"/> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="goodsSkuSql"> |
|
|
@ -55,7 +56,9 @@ |
|
|
|
goods_sku.`del_flag`, |
|
|
|
goods_sku.`create_by`, |
|
|
|
goods_sku.`cost_flag`, |
|
|
|
goods_sku.`update_by` </sql> |
|
|
|
goods_sku.`update_by`, |
|
|
|
goods_sku.`belong` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectGoodsSkuList" parameterType="com.qs.serve.modules.goods.entity.GoodsSku" resultMap="goodsSkuMap"> |
|
|
|
SELECT <include refid="goodsSkuSql"/> FROM `goods_sku` `goods_sku` |
|
|
@ -66,6 +69,7 @@ |
|
|
|
<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.costPrice != null"> and `goods_sku`.`cost_price` = #{query.costPrice}</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.stock != null"> and `goods_sku`.`stock` = #{query.stock}</if> |
|
|
|
<if test="query.unitId != null"> and `goods_sku`.`unit_id` = #{query.unitId}</if> |
|
|
@ -109,6 +113,7 @@ |
|
|
|
<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` = #{query.specInfos}</if> |
|
|
|
<if test="query.stock != null"> and `goods_sku`.`stock` = #{query.stock}</if> |
|
|
|
<if test="query.belong != null"> and `goods_sku`.`belong` = #{query.belong}</if> |
|
|
|
<if test="query.unitId != null"> and `goods_sku`.`unit_id` = #{query.unitId}</if> |
|
|
|
<if test="query.unitName != null and query.unitName != ''"> and `goods_sku`.`unit_name` = #{query.unitName}</if> |
|
|
|
<if test="query.weight != null"> and `goods_sku`.`weight` = #{query.weight}</if> |
|
|
|