2024-3-4 基础数据管理客户供应商优化

master
A0010407 11 months ago
parent 04ee02c8e9
commit c9778a767e

@ -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">

@ -45,10 +45,8 @@
<include refid="selectSysCustomerVo"/> <include refid="selectSysCustomerVo"/>
<where> <where>
<if test="clientId != null and clientId != ''">and client_id = #{clientId}</if> <if test="clientId != null and clientId != ''">and client_id = #{clientId}</if>
<if test="clientCode != null and clientCode != ''">and client_code like concat('%', #{clientCode}, '%') <if test="clientCode != null and clientCode != ''">and client_code like concat('%', #{clientCode}, '%')</if>
</if> <if test="clientName != null and clientName != ''">and client_name like concat('%', #{clientName}, '%')</if>
<if test="clientName != null and clientName != ''">and client_name like concat('%', #{clientName}, '%')
</if>
<if test="clientNick != null and clientNick != ''">and client_nick = #{clientNick}</if> <if test="clientNick != null and clientNick != ''">and client_nick = #{clientNick}</if>
<if test="clientEn != null and clientEn != ''">and client_en = #{clientEn}</if> <if test="clientEn != null and clientEn != ''">and client_en = #{clientEn}</if>
<if test="clientDes != null and clientDes != ''">and client_des = #{clientDes}</if> <if test="clientDes != null and clientDes != ''">and client_des = #{clientDes}</if>
@ -72,6 +70,7 @@
<if test="attr4 != null ">and attr4 = #{attr4}</if> <if test="attr4 != null ">and attr4 = #{attr4}</if>
and del_flag = '0' and del_flag = '0'
</where> </where>
order by client_code asc
</select> </select>
<select id="selectSysCustomerByClientId" parameterType="java.lang.String" resultMap="SysCustomerResult"> <select id="selectSysCustomerByClientId" parameterType="java.lang.String" resultMap="SysCustomerResult">

Loading…
Cancel
Save