Browse Source

训练营修复

mac 2 years ago
parent
commit
7d5239ca57

+ 7 - 4
kxs-system/kxs-system-biz/src/main/resources/mapper/KxsCampBonusLogMapper.xml

@@ -35,10 +35,10 @@
                 AND cbl.camp_id = #{param.campId}
             </if>
             <if test="param.userCode != null and param.userCode != ''">
-                and cr.user_code = #{param.userCode}
+                and cu.user_code = #{param.userCode}
             </if>
             <if test="param.username != null and param.username != ''">
-                and cr.username = #{param.username}
+                and cu.username = #{param.username}
             </if>
             <if test="param.sourceType != null">
                 AND cbl.source_type = #{param.sourceType}
@@ -65,8 +65,11 @@
             <if test="param.campId != null">
                 AND cbl.camp_id = #{param.campId}
             </if>
-            <if test="param.userCode != null">
-                AND cu.user_code = #{param.userCode}
+            <if test="param.userCode != null and param.userCode != ''">
+                and cu.user_code = #{param.userCode}
+            </if>
+            <if test="param.username != null and param.username != ''">
+                and cu.username = #{param.username}
             </if>
             <if test="param.sourceType != null">
                 AND cbl.source_type = #{param.sourceType}