Browse Source

sql修改2

hanqingsong 5 years ago
parent
commit
4fcea75aa7

+ 2 - 2
src/main/java/com/unissoft/mapper/GrainConditionRecordMapper.xml

@@ -45,8 +45,8 @@
45
                     grain_condition_record gcr
45
                     grain_condition_record gcr
46
                 LEFT JOIN grain_abnormal_describe gad ON gcr.id = gad.grain_record_id
46
                 LEFT JOIN grain_abnormal_describe gad ON gcr.id = gad.grain_record_id
47
                 WHERE
47
                 WHERE
48
-                    gcr.house_id = 1
49
-                AND gcr.depot_id = 1
48
+                    gcr.house_id = #{houseId}
49
+                AND gcr.depot_id = #{depotId}
50
                 ORDER BY
50
                 ORDER BY
51
                     gcr.check_time DESC
51
                     gcr.check_time DESC
52
                 LIMIT 10000000
52
                 LIMIT 10000000