|
|
|
@ -40,8 +40,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<select id="selectBaseSupplierList" parameterType="BaseSupplier" resultMap="BaseSupplierResult">
|
|
|
|
|
<include refid="selectBaseSupplierVo"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test="supplierCode != null and supplierCode != ''"> and supplier_code = #{supplierCode}</if>
|
|
|
|
|
<if test="zhDesc != null and zhDesc != ''"> and zh_desc = #{zhDesc}</if>
|
|
|
|
|
<if test="supplierCode != null and supplierCode != ''"> and supplier_code like concat('%', #{supplierCode}, '%')</if>
|
|
|
|
|
<if test="zhDesc != null and zhDesc != ''"> and zh_desc like concat('%', #{zhDesc}, '%')</if>
|
|
|
|
|
<if test="enDesc != null and enDesc != ''"> and en_desc = #{enDesc}</if>
|
|
|
|
|
<if test="supplierType != null and supplierType != ''"> and supplier_type = #{supplierType}</if>
|
|
|
|
|
<if test="accountNumber != null and accountNumber != ''"> and account_number = #{accountNumber}</if>
|
|
|
|
@ -52,7 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="area != null and area != ''"> and area = #{area}</if>
|
|
|
|
|
<if test="address != null and address != ''"> and address = #{address}</if>
|
|
|
|
|
<if test="postcode != null and postcode != ''"> and postcode = #{postcode}</if>
|
|
|
|
|
<if test="contact != null and contact != ''"> and contact = #{contact}</if>
|
|
|
|
|
<if test="contact != null and contact != ''"> and contact like concat('%', #{contact}, '%')</if>
|
|
|
|
|
<if test="contactPhone != null and contactPhone != ''"> and contact_phone = #{contactPhone}</if>
|
|
|
|
|
<if test="contactPosition != null and contactPosition != ''"> and contact_position = #{contactPosition}</if>
|
|
|
|
|
<if test="contactEmail != null and contactEmail != ''"> and contact_email = #{contactEmail}</if>
|
|
|
|
@ -170,4 +170,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
#{supplierId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="checkNameUnique" parameterType="BaseSupplier" resultType ="java.lang.String">
|
|
|
|
|
select zh_desc
|
|
|
|
|
from base_supplier
|
|
|
|
|
where zh_desc = #{zhDesc}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="checkCodeUnique" parameterType="BaseSupplier" resultType ="java.lang.String">
|
|
|
|
|
select supplier_code
|
|
|
|
|
from base_supplier
|
|
|
|
|
where supplier_code = #{supplierCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|