|
|
|
@ -73,19 +73,13 @@
|
|
|
|
|
<select id="selectBaseProductList" parameterType="BaseProduct" resultMap="BaseProductResult">
|
|
|
|
|
<include refid="selectBaseProductVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="productCode != null and productCode != ''">and product_code like concat('%', #{productCode},
|
|
|
|
|
'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productDescZh != null and productDescZh != ''">and product_desc_zh like concat('%',
|
|
|
|
|
#{productDescZh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productCode != null and productCode != ''">and product_code like concat('%', #{productCode},'%')</if>
|
|
|
|
|
<if test="productDescZh != null and productDescZh != ''">and product_desc_zh like concat('%',#{productDescZh}, '%')</if>
|
|
|
|
|
<if test="productModel != null and productModel != ''">and product_model = #{productModel}</if>
|
|
|
|
|
<if test="productDescEn != null and productDescEn != ''">and product_desc_en = #{productDescEn}</if>
|
|
|
|
|
<if test="ruleCode != null and ruleCode != ''">and rule_code = #{ruleCode}</if>
|
|
|
|
|
<if test="oldProductCode != null and oldProductCode != ''">and old_product_code = #{oldProductCode}</if>
|
|
|
|
|
<if test="partsProductCode != null and partsProductCode != ''">and parts_product_code =
|
|
|
|
|
#{partsProductCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="partsProductCode != null and partsProductCode != ''">and parts_product_code = #{partsProductCode}</if>
|
|
|
|
|
<if test="skuBarcode != null and skuBarcode != ''">and sku_barcode = #{skuBarcode}</if>
|
|
|
|
|
<if test="length != null ">and length = #{length}</if>
|
|
|
|
|
<if test="width != null ">and width = #{width}</if>
|
|
|
|
@ -96,9 +90,7 @@
|
|
|
|
|
<if test="volume != null ">and volume = #{volume}</if>
|
|
|
|
|
<if test="unitPrice != null ">and unit_price = #{unitPrice}</if>
|
|
|
|
|
<if test="productGroup != null and productGroup != ''">and product_group = #{productGroup}</if>
|
|
|
|
|
<if test="productGroupName != null and productGroupName != ''">and product_group_name like concat('%',
|
|
|
|
|
#{productGroupName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productGroupName != null and productGroupName != ''">and product_group_name like concat('%',#{productGroupName}, '%')</if>
|
|
|
|
|
<if test="userDefined1 != null and userDefined1 != ''">and user_defined1 = #{userDefined1}</if>
|
|
|
|
|
<if test="userDefined2 != null and userDefined2 != ''">and user_defined2 = #{userDefined2}</if>
|
|
|
|
|
<if test="userDefined3 != null and userDefined3 != ''">and user_defined3 = #{userDefined3}</if>
|
|
|
|
@ -120,6 +112,7 @@
|
|
|
|
|
<if test="mtart != null and mtart != ''">and mtart = #{mtart}</if>
|
|
|
|
|
and del_flag = '0'
|
|
|
|
|
</where>
|
|
|
|
|
order by product_code asc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseProductByProductId" parameterType="String" resultMap="BaseProductResult">
|
|
|
|
|