소스 검색

训练营修复

mac 2 년 전
부모
커밋
7d5239ca57
1개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 4
      kxs-system/kxs-system-biz/src/main/resources/mapper/KxsCampBonusLogMapper.xml

+ 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}