Explorar o código

1.导出工号数比控制台工号数多,多的是闲置工号和出单工号(例如:王冰、王冰-出单员);改返了,不统计王冰-出单元(控制台的到处均不现实和统计)

wuhp hai 1 ano
pai
achega
9779368c91

+ 6 - 6
src/main/resources/mapper/modules/console/userReportMapper.xml

@@ -179,16 +179,16 @@
             <if test="vo.provinceId != null and vo.provinceId != ''">
                 and d.id like concat('%',#{vo.provinceId},'%')
             </if>
-            <if test="vo.managementSource  != null  and  vo.managementSource!=''">
-                AND  d.management_source  =#{vo.managementSource}
-            </if>
+<!--            <if test="vo.managementSource  != null  and  vo.managementSource!=''">-->
+<!--                AND  d.management_source  =#{vo.managementSource}-->
+<!--            </if>-->
 
             <if test="vo.managementSource  !=null  and   vo.managementSource  !=''">
                 <choose>
-                    <when test="vo.managementSource == '1'">
-                       and  r.role_id = 21  and   d.management_source  =#{vo.managementSource}
+                    <when test="vo.managementSource == 1 ">
+                       and  r.role_id = '21'  and   d.management_source  =#{vo.managementSource}
                     </when>
-                    <when test="vo.managementSource == '3'">
+                    <when test="vo.managementSource == 3">
                         and (  r.role_id = 3 or r.role_id = 72  )  and   d.management_source  =#{vo.managementSource}
                     </when>
                 </choose>