Showing
1 changed file
with
2 additions
and
2 deletions
@@ -17,7 +17,7 @@ | @@ -17,7 +17,7 @@ | ||
17 | <select id="selectTotalByUidAndMerchantUids" resultType="java.lang.Integer"> | 17 | <select id="selectTotalByUidAndMerchantUids" resultType="java.lang.Integer"> |
18 | select count(1) from seller_wallet | 18 | select count(1) from seller_wallet |
19 | <where> | 19 | <where> |
20 | - <if test="uid != null">uid=#{uid}</if> | 20 | + <if test="uid != null and uid != ''">uid=#{uid}</if> |
21 | <if test="merchantUids != null"> | 21 | <if test="merchantUids != null"> |
22 | and uid in | 22 | and uid in |
23 | <foreach collection="merchantUids" item="muid" open="(" separator="," close=")"> | 23 | <foreach collection="merchantUids" item="muid" open="(" separator="," close=")"> |
@@ -29,7 +29,7 @@ | @@ -29,7 +29,7 @@ | ||
29 | <select id="selectByUidAndMerchantUids" resultType="com.yoho.order.model.SellerWallet"> | 29 | <select id="selectByUidAndMerchantUids" resultType="com.yoho.order.model.SellerWallet"> |
30 | select <include refid="Base_Column_List" /> from seller_wallet | 30 | select <include refid="Base_Column_List" /> from seller_wallet |
31 | <where> | 31 | <where> |
32 | - <if test="uid != null">uid=#{uid}</if> | 32 | + <if test="uid != null and uid != ''">uid=#{uid}</if> |
33 | <if test="merchantUids != null"> | 33 | <if test="merchantUids != null"> |
34 | and uid in | 34 | and uid in |
35 | <foreach collection="merchantUids" item="muid" open="(" separator="," close=")"> | 35 | <foreach collection="merchantUids" item="muid" open="(" separator="," close=")"> |
-
Please register or login to post a comment