瀏覽代碼

bug修复

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>