|
|
@ -41,9 +41,7 @@
|
|
|
|
<select id="selectBaseSupplierList" parameterType="BaseSupplier" resultMap="BaseSupplierResult">
|
|
|
|
<select id="selectBaseSupplierList" parameterType="BaseSupplier" resultMap="BaseSupplierResult">
|
|
|
|
<include refid="selectBaseSupplierVo"/>
|
|
|
|
<include refid="selectBaseSupplierVo"/>
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="supplierCode != null and supplierCode != ''">and supplier_code like concat('%', #{supplierCode},
|
|
|
|
<if test="supplierCode != null and supplierCode != ''">and supplier_code like concat('%', #{supplierCode},'%')</if>
|
|
|
|
'%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="zhDesc != null and zhDesc != ''">and zh_desc like concat('%', #{zhDesc}, '%')</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="enDesc != null and enDesc != ''">and en_desc = #{enDesc}</if>
|
|
|
|
<if test="supplierType != null and supplierType != ''">and supplier_type = #{supplierType}</if>
|
|
|
|
<if test="supplierType != null and supplierType != ''">and supplier_type = #{supplierType}</if>
|
|
|
@ -56,9 +54,7 @@
|
|
|
|
<if test="address != null and address != ''">and address = #{address}</if>
|
|
|
|
<if test="address != null and address != ''">and address = #{address}</if>
|
|
|
|
<if test="postcode != null and postcode != ''">and postcode = #{postcode}</if>
|
|
|
|
<if test="postcode != null and postcode != ''">and postcode = #{postcode}</if>
|
|
|
|
<if test="contact != null and contact != ''">and contact like concat('%', #{contact}, '%')</if>
|
|
|
|
<if test="contact != null and contact != ''">and contact like concat('%', #{contact}, '%')</if>
|
|
|
|
<if test="contactPhone != null and contactPhone != ''">and contact_phone like concat('%', #{contactPhone},
|
|
|
|
<if test="contactPhone != null and contactPhone != ''">and contact_phone like concat('%', #{contactPhone},'%')</if>
|
|
|
|
'%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="contactPosition != null and contactPosition != ''">and contact_position = #{contactPosition}</if>
|
|
|
|
<if test="contactPosition != null and contactPosition != ''">and contact_position = #{contactPosition}</if>
|
|
|
|
<if test="contactEmail != null and contactEmail != ''">and contact_email = #{contactEmail}</if>
|
|
|
|
<if test="contactEmail != null and contactEmail != ''">and contact_email = #{contactEmail}</if>
|
|
|
|
<if test="activeFlag != null and activeFlag != ''">and active_flag = #{activeFlag}</if>
|
|
|
|
<if test="activeFlag != null and activeFlag != ''">and active_flag = #{activeFlag}</if>
|
|
|
@ -67,6 +63,7 @@
|
|
|
|
<if test="userDefined3 != null and userDefined3 != ''">and user_defined3 = #{userDefined3}</if>
|
|
|
|
<if test="userDefined3 != null and userDefined3 != ''">and user_defined3 = #{userDefined3}</if>
|
|
|
|
and del_flag = '0'
|
|
|
|
and del_flag = '0'
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
order by supplier_code asc
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBaseSupplierBySupplierId" parameterType="String" resultMap="BaseSupplierResult">
|
|
|
|
<select id="selectBaseSupplierBySupplierId" parameterType="String" resultMap="BaseSupplierResult">
|
|
|
|