Bläddra i källkod

1.业务数据电销合计问题

wuhp 1 år sedan
förälder
incheckning
7d1bcc3af5
1 ändrade filer med 11 tillägg och 9 borttagningar
  1. 11 9
      src/main/resources/mapper/modules/admin/TaskStatisticsMapper.xml

+ 11 - 9
src/main/resources/mapper/modules/admin/TaskStatisticsMapper.xml

@@ -103,7 +103,7 @@
         <where>
             1=1
             <if test="vo.userId !=null  and vo.userId!=''">
-                and su.leader_id=#{vo.userId}
+                and su.id=#{vo.userId}
             </if>
             <if test="vo.userIds  !=null  and vo.userIds!=''  and vo.userIds.size()>0">
                 and su.leader_id in
@@ -173,7 +173,7 @@
             </if>
 
             <if test="vo.userIds  !=null  and vo.userIds!=''  and vo.userIds.size()>0">
-                and su.id in
+                and su.leader_id in
                 <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
                     #{item}
                 </foreach>
@@ -192,13 +192,6 @@
                     #{item}
                 </foreach>
             </if>
-
-            <if test="vo.userIds != null and vo.userIds != '' and vo.userIds.size() > 0">
-                AND io.userid in
-                <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
-                    #{item}
-                </foreach>
-            </if>
         </where>
     </select>
 
@@ -233,6 +226,15 @@
                 </foreach>
             </if>
 
+
+
+            <if test="vo.userIds  !=null  and vo.userIds!=''  and vo.userIds.size()>0">
+                and su.leader_id in
+                <foreach collection="vo.userIds" item="item" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
+
             <if test="vo.managementSource !=null  and vo.managementSource!=''">
                 and sd.management_source=#{vo.managementSource}
             </if>