gaodd 1 年之前
父节点
当前提交
014227165b

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

@@ -44,7 +44,7 @@
44 44
     	td.outh, td.t_max maxtemp, td.t_min mintemp, td.t_avg avgtemp, bs.remark, sq.water, 
45 45
     	keeps.user_alias dutystoreman, sq.location
46 46
 	FROM basic_storehouse bs
47
-	LEFT JOIN storage_qualitycheck sq on bs.storehouse_id = sq.house_id AND sq.org_id = bs.org_id and sq.type = 0
47
+	LEFT JOIN storage_qualitycheck sq on bs.storehouse_id = sq.house_id AND sq.org_id = bs.org_id <!-- and sq.type = 0 -->
48 48
 	LEFT JOIN (
49 49
 		SELECT concat(c.user_alias) user_alias,a.house_id FROM basic_keeper_house a
50 50
 		INNER JOIN basic_keeper b on a.keeper_Id = b.id
@@ -61,7 +61,7 @@
61 61
 			    and STR_TO_DATE(t_time, '%Y-%m-%d') = #{startDate}
62 62
 		    </if>
63 63
 		    GROUP BY storehouse
64
-		  ) b on a.storehouse = b.storehouse and a.t_time = b.t_time and a.org_id = 49
64
+		  ) b on a.storehouse = b.storehouse and a.t_time = b.t_time and a.org_id = ${orgId}
65 65
 	) td on bs.storehouse_code = td.storehouse
66 66
 	<where>
67 67
 		<if test="orgId!=null">