|
|
|
@ -56,8 +56,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<select id="selectBaseProductList" parameterType="BaseProduct" resultMap="BaseProductResult">
|
|
|
|
|
<include refid="selectBaseProductVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="productCode != null and productCode != ''"> and product_code = #{productCode}</if>
|
|
|
|
|
<if test="productDescZh != null and productDescZh != ''"> and product_desc_zh = #{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>
|
|
|
|
@ -250,4 +250,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
#{productId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="checkNameUnique" parameterType="BaseProduct" resultType ="java.lang.String">
|
|
|
|
|
select product_desc_zh
|
|
|
|
|
from base_product
|
|
|
|
|
where product_desc_zh = #{productDescZh}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="checkCodeUnique" parameterType="BaseProduct" resultType ="java.lang.String">
|
|
|
|
|
select product_code
|
|
|
|
|
from base_product
|
|
|
|
|
where product_code = #{productCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|