xie.kaifeng преди 7 месеца
родител
ревизия
1df2a749e3
променени са 1 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 6 2
      mtp3-century/src/main/resources/mapper/ReckonDaydividecountdetailMapper.xml

+ 6 - 2
mtp3-century/src/main/resources/mapper/ReckonDaydividecountdetailMapper.xml

@@ -639,7 +639,9 @@
                 and (ra.reckondate >= #{vo.reckondate,jdbcType=CHAR} and ra.reckondate <=
                 #{vo.reckondateend,jdbcType=CHAR})
             </if>
-             and ua.usertype=5
+            <if test="vo.flag != null and vo.flag == 0">
+                and ua.usertype=5
+            </if>
             <if test="vo.memberid !=null and vo.memberid != ''">
                 and ua.subarealevelpath like '%'||#{vo.memberid}||'%'
             </if>
@@ -931,7 +933,9 @@
         left join useraccount u on ta.userid = u.userid
         left join useraccount t on u.memberuserid = t.userid
         <where>
-            and ua.usertype=5
+            <if test="vo.flag != null and vo.flag == 0">
+                and ua.usertype=5
+            </if>
             <if test="vo.usertype != null">
                 and ua.usertype=#{vo.usertype}
             </if>