查询地址列表条件补充

This commit is contained in:
donqi 2022-08-25 00:05:50 +08:00
parent 2baa5e3ddf
commit 685f26d8a6
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@
<select id="getCustomerAddressList" resultMap="CustomerAddressResult"> <select id="getCustomerAddressList" resultMap="CustomerAddressResult">
<include refid="selectCustomerAddress" /> <include refid="selectCustomerAddress" />
<where>
<if test="customerId != null">
AND customer_id = #{customerId}
</if>
</where>
</select> </select>
<delete id="deleteByIds"> <delete id="deleteByIds">