Kaynağa Gözat

统计报表添加去除油罐条件

hefeng 5 yıl önce
ebeveyn
işleme
199af0e665

+ 2 - 2
src/main/java/com/chinaitop/depot/statisticalReport/mapper/StatisticalReportMapper.xml

@@ -28,7 +28,7 @@
28 28
 	    	 and a.org_id = ${orgId}   
29 29
 	  	  </if>
30 30
 		) td on td.storehouse = bs.storehouse_code
31
-    where bs.del_flag = 1 
31
+    where bs.del_flag = 1 and bs.datatype = '0'
32 32
     <if test="orgId!=null">
33 33
     	 and bs.org_id = ${orgId}   
34 34
   	</if>
@@ -104,7 +104,7 @@
104 104
 		    	  and a.org_id = ${orgId}   
105 105
 		  </if>
106 106
 		) td on td.storehouse = bs.storehouse_code
107
-        where bs.del_flag = 1 
107
+        where bs.del_flag = 1 and bs.datatype = '0'
108 108
         <if test="orgId!=null">
109 109
 		    	  and bs.org_id = ${orgId}   
110 110
 		</if>