gaodd 3 月之前
父節點
當前提交
601b63bf84

+ 3 - 3
src/main/java/com/chinaitop/depot/storage/controller/StorageThreetempCheckController.java

@@ -46,12 +46,12 @@ public class StorageThreetempCheckController {
46 46
             @ApiImplicitParam(name = "searchStartDate", value = "开始日期", paramType = "query"),
47 47
             @ApiImplicitParam(name = "searchEndDate", value = "结束日期", paramType = "query")
48 48
     })
49
-    public PageInfo<Map<String, Object>> listPage(Integer pageNum, Integer pageSize, String houseId, String searchStartDate, String searchEndDate, Integer orgId) {
49
+    public PageInfo<Map<String, Object>> listPage(Integer pageNum, Integer pageSize, String houseCode, String searchStartDate, String searchEndDate, Integer orgId) {
50 50
         // 查询条件map
51 51
         Map<String, Object> map = new HashMap<>();
52 52
         // 仓房编码
53
-        if (ParameterUtil.isnotnull(houseId))
54
-            map.put("storehouse", houseId);
53
+        if (ParameterUtil.isnotnull(houseCode))
54
+            map.put("storehouse", houseCode);
55 55
         // 查询开始时间
56 56
         if (StringUtils.isNotBlank(searchStartDate))
57 57
             map.put("startDate", ParameterUtil.string2datetime(searchStartDate + " 00:00:00"));

+ 16 - 15
src/main/java/com/chinaitop/depot/storage/mapper/StorageThreetempcheckMapper.xml

@@ -490,36 +490,37 @@
490 490
     SELECT
491 491
         id id,
492 492
         org_id orgId,
493
-        storehouse houseId,
494
-        t_time checkDate,
495
-        inTemp inTemp,
496
-        outTemp outTemp,
497
-        inH inWater,
498
-        outH outWater,
499
-        t_max maxTemp,
500
-        t_min minTemp,
501
-        t_avg avgTemp,
502
-        t_avg lsTemp
493
+        storehouse_code houseCode,
494
+        storehouse_name houseName,
495
+        gather_time checkDate,
496
+        in_temp inTemp,
497
+        out_temp outTemp,
498
+        in_h inWater,
499
+        out_temp outWater,
500
+        temp_max maxTemp,
501
+        temp_min minTemp,
502
+        temp_avg avgTemp,
503
+        temp_avg lsTemp
503 504
     FROM
504
-        t_testdata
505
+        t_lq_data 
505 506
     <where>
506 507
       iLq_yq = '0'
507 508
       <if test="storehouse != null">
508
-        AND storehouse = #{storehouse}
509
+        AND storehouse_code = #{storehouse}
509 510
       </if>
510 511
       <if test="orgId != null">
511 512
         AND org_id = #{orgId}
512 513
       </if>
513 514
       <if test="startDate != null and endDate != null">
514
-        AND t_time BETWEEN #{startDate} AND #{endDate}
515
+        AND gather_time BETWEEN #{startDate} AND #{endDate}
515 516
       </if>
516 517
       <if test="endDate != null">
517
-        AND t_time &lt;= #{endDate}
518
+        AND gather_time &lt;= #{endDate}
518 519
       </if>
519 520
     </where>
520 521
       <if test="weekParams != null">
521 522
          GROUP BY  DATE(checkDate)
522 523
       </if>
523
-    ORDER BY t_time DESC
524
+    ORDER BY id DESC
524 525
   </select>
525 526
 </mapper>