mengy лет назад: 4
Родитель
Сommit
b10b5a10ff

+ 5 - 3
src/main/java/com/chinaitop/depot/agent/basic/controller/AgentPeopleController.java

@@ -42,18 +42,20 @@ public class AgentPeopleController {
42 42
             @ApiImplicitParam(name = "pageNum", value = "页码", paramType = "query"),
43 43
             @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
44 44
             @ApiImplicitParam(name = "PeopleName", value = "人员名称", paramType = "query"),
45
-            @ApiImplicitParam(name = "agentDepotName", value = "粮库名称", paramType = "query"),
45
+            @ApiImplicitParam(name = "agentDepotId", value = "粮库名称", paramType = "query"),
46 46
             @ApiImplicitParam(name = "orgId", value = "组织id", paramType = "query")
47 47
     })
48
-    public PageInfo<BusinessAgentPeople> getAgentPeopleList(Integer pageNum, Integer pageSize,String PeopleName,String agentDepotName,String orgId){
48
+    public PageInfo<BusinessAgentPeople> getAgentPeopleList(Integer pageNum, Integer pageSize,String PeopleName,String agentDepotId,String orgId){
49 49
 
50 50
         BusinessAgentPeopleExample example = new BusinessAgentPeopleExample();
51 51
         BusinessAgentPeopleExample.Criteria criteria = example.createCriteria();
52 52
         criteria.andOrgIdEqualTo(Integer.valueOf(orgId));
53
+        if(ParameterUtil.isnotnull(agentDepotId)){
54
+            criteria.andDepotIdEqualTo(Integer.valueOf(agentDepotId));
55
+        }
53 56
         if(ParameterUtil.isnotnull(PeopleName)){
54 57
             criteria.andPeopleNameLike("%"+PeopleName+"%");
55 58
         }
56
-
57 59
         example.setOrderByClause("updatetime desc");
58 60
         PageHelper.startPage(pageNum, pageSize);
59 61
         List<BusinessAgentPeople> list = agentPeopleService.getAgentList(example);

+ 21 - 1
src/main/java/com/chinaitop/depot/agent/quality/controller/AgentQualityController.java

@@ -1,6 +1,7 @@
1 1
 package com.chinaitop.depot.agent.quality.controller;
2 2
 
3 3
 
4
+import com.alibaba.fastjson.JSON;
4 5
 import com.chinaitop.depot.agent.basic.service.agentService;
5 6
 import com.chinaitop.depot.agent.quality.model.BusinessAgentQuality;
6 7
 import com.chinaitop.depot.agent.quality.model.BusinessAgentQualityExample;
@@ -63,13 +64,18 @@ public class AgentQualityController {
63 64
             @ApiImplicitParam(name = "pageSize", value = "每页条数", paramType = "query"),
64 65
             @ApiImplicitParam(name = "checktype", value = "检查的类型", paramType = "query"),
65 66
             @ApiImplicitParam(name = "checkResult", value = "检查结果", paramType = "query"),
67
+            @ApiImplicitParam(name = "quality", value = "储粮性质", paramType = "query"),
68
+            @ApiImplicitParam(name = "subType", value = "粮食品种", paramType = "query"),
69
+            @ApiImplicitParam(name = "searchStartDate", value = "开始日期", paramType = "query"),
70
+            @ApiImplicitParam(name = "searchEndDate", value = "结束日期", paramType = "query"),
66 71
             @ApiImplicitParam(name = "orgId", value = "粮库id", paramType = "query"),
67 72
             @ApiImplicitParam(name = "agentId", value = "代储点名称", paramType = "query"),
68 73
             @ApiImplicitParam(name = "agentDepotId", value = "粮库名称", paramType = "query"),
69 74
             @ApiImplicitParam(name = "storehouseId", value = "仓房名称", paramType = "query"),
70 75
             @ApiImplicitParam(name = "warehouseId", value = "货位名称", paramType = "query"),
71 76
     })
72
-    public PageInfo<BusinessAgentQuality> listPage(Integer pageNum, Integer pageSize,String checktype, String checkResult, Integer orgId,
77
+    public PageInfo<BusinessAgentQuality> listPage(Integer pageNum, Integer pageSize,String checktype, String checkResult,
78
+                                                   String quality, Integer subType, String searchStartDate, String searchEndDate, Integer orgId,
73 79
     Integer agentId,Integer agentDepotId,Integer storehouseId,Integer warehouseId) {
74 80
     	BusinessAgentQuality qualityCheck = new BusinessAgentQuality();
75 81
         //根据后台传来的参数进行查找相应类型的类别0:初检 1:验收 2:质量普查 3:出库
@@ -103,6 +109,20 @@ public class AgentQualityController {
103 109
         if (StringUtils.isNotBlank(checkResult)) {
104 110
             qualityCheck.setCheckResult(checkResult);
105 111
         }
112
+        if (StringUtils.isNotBlank(quality)){
113
+            HashMap hashMap = JSON.parseObject(quality, HashMap.class);
114
+            String ax = String.valueOf(hashMap.get("id"));
115
+            qualityCheck.setQuality(ax);
116
+        }
117
+        if (subType!= null){
118
+            qualityCheck.setSubType(subType);
119
+        }
120
+
121
+        if(ParameterUtil.isnotnull(searchStartDate) && ParameterUtil.isnotnull(searchEndDate)){
122
+            qualityCheck.setSearchStartDate(searchStartDate);
123
+            qualityCheck.setSearchEndDate(searchEndDate);
124
+        }
125
+
106 126
         qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
107 127
         //查询出未封仓的质量管理信息 封仓状态:0:未封仓,1:已封仓
108 128
         //qualityCheck.setSealStatus("0");

+ 14 - 1
src/main/java/com/chinaitop/depot/agent/quality/mapper/BusinessAgentQualityMapper.xml

@@ -1856,7 +1856,8 @@
1856 1856
         LEFT JOIN business_agent agent ON agent.id = sqk.agent_id
1857 1857
         LEFT JOIN business_agent_depot depot ON depot.id = sqk.agent_depot_id
1858 1858
       <where>
1859
-          ware.library_type = 1 AND store.library_type = 1
1859
+        (ware.library_type = 1
1860
+        OR store.library_type = 1 )
1860 1861
           <if test="agentId !=null">
1861 1862
               and sqk.agent_id = #{agentId}
1862 1863
           </if>
@@ -1887,6 +1888,18 @@
1887 1888
           <if test="checkResult !=null">
1888 1889
               and sqk.check_result = #{checkResult}
1889 1890
           </if>
1891
+          <if test="quality !=null">
1892
+            and sqk.quality = #{quality}
1893
+          </if>
1894
+          <if test="subType !=null">
1895
+            and sqk.sub_type = #{subType}
1896
+          </if>
1897
+          <if test="searchStartDate !=null">
1898
+            and STR_TO_DATE(sqk.check_time, '%Y-%m-%d')  <![CDATA[ >= ]]> #{searchStartDate}
1899
+          </if>
1900
+          <if test="searchEndDate !=null">
1901
+            and STR_TO_DATE(sqk.check_time, '%Y-%m-%d')  &lt;= #{searchEndDate}
1902
+          </if>
1890 1903
           AND sqk.org_id = #{orgId}
1891 1904
       </where>
1892 1905
       GROUP BY sqk.id

+ 20 - 0
src/main/java/com/chinaitop/depot/agent/quality/model/BusinessAgentQuality.java

@@ -4,6 +4,26 @@ import java.math.BigDecimal;
4 4
 import java.util.Date;
5 5
 
6 6
 public class BusinessAgentQuality {
7
+    //开始日期和结束日期
8
+    private String searchStartDate;
9
+
10
+    public String getSearchStartDate() {
11
+        return searchStartDate;
12
+    }
13
+
14
+    public void setSearchStartDate(String searchStartDate) {
15
+        this.searchStartDate = searchStartDate;
16
+    }
17
+
18
+    public String getSearchEndDate() {
19
+        return searchEndDate;
20
+    }
21
+
22
+    public void setSearchEndDate(String searchEndDate) {
23
+        this.searchEndDate = searchEndDate;
24
+    }
25
+
26
+    private String searchEndDate;
7 27
     private Integer id;
8 28
 
9 29
     private Integer agentId;

+ 6 - 2
src/main/java/com/chinaitop/depot/agent/temperature/controller/AgentTemperatureController.java

@@ -59,10 +59,11 @@ public class AgentTemperatureController {
59 59
             @ApiImplicitParam(name = "startTime", value = "检测开始时间", paramType = "query"),
60 60
             @ApiImplicitParam(name = "endTime", value = "检测结束时间", paramType = "query"),
61 61
             @ApiImplicitParam(name = "temperId", value = "粮情id", paramType = "query"),
62
-            @ApiImplicitParam(name = "orgid", value = "组织id", paramType = "query")
62
+            @ApiImplicitParam(name = "orgid", value = "组织id", paramType = "query"),
63
+            @ApiImplicitParam(name = "lspz", value = "粮油品种", paramType = "query")
63 64
     })
64 65
     public PageInfo<Map<String, Object>> getAgentTemperatureList(Integer pageNum, Integer pageSize, Integer agentId, Integer agentDepotId,
65
-                                                                 Integer storehouseId, String startTime, String endTime, String temperId, String orgid) {
66
+                                                                 Integer storehouseId, String startTime, String endTime, String temperId, String orgid, Integer lspz) {
66 67
         Map<String, Object> map = new HashMap<>();
67 68
         map.put("orgId", orgid);
68 69
         if (ParameterUtil.isnotnull(agentId)) {
@@ -81,6 +82,9 @@ public class AgentTemperatureController {
81 82
             map.put("startTime", startTime + " 00:00:00");
82 83
             map.put("endTime", endTime + " 23:59:59");
83 84
         }
85
+        if (null != lspz && !"".equals(lspz)) {
86
+            map.put("lspz", lspz);
87
+        }
84 88
         PageHelper.clearPage();
85 89
 
86 90
         List<Map<String, Object>> dataList = this.getDataByMap(map);

+ 95 - 15
src/main/java/com/chinaitop/depot/agent/temperature/mapper/BusinessAgentTemperatureMapper.xml

@@ -588,40 +588,117 @@
588 588
   </update>
589 589
 
590 590
   <select id="getDataByExample" parameterType="java.util.Map" resultType="java.util.HashMap">
591
+    SELECT
592
+    temperAll.*
593
+    FROM
594
+    (
591 595
     SELECT DISTINCT
596
+    temper.id id,
597
+    temper.org_id orgId,
592 598
     depot.depot_id agentOrgId,
593 599
     depot.depot_id agentStoreOrgId,
594
-    agent.agent_name agentName,
600
+    '1' sign,
595 601
     depot.agent_depot_name agentDepotName,
596
-    depot.updatetime,
597 602
     store.storehouse_name storehouseName,
603
+    ba.agent_name agentName,
604
+    temper.lspz lspz,
605
+    temper.detection_time detectionTime,
606
+    temper.house_temperature houseTemperature,
607
+    temper.house_humidity houseHumidity,
608
+    temper.max max,
609
+    temper.min min,
610
+    temper.avg avg,
598 611
     store.storehouse_type storehouseType,
599 612
     store.design_capacity designCapacity,
600
-    store.storehouse_code storehouseCode,
601
-    store.storehouse_id storehouseId,
602
-    keeper.name keeper
613
+    temper.enter_time enterTime,
614
+    temper.nature nature,
615
+    temper.level level,
616
+    temper.actual_amount actualAmount,
617
+    temper.harvest_year harvestYear,
618
+    temper.gas_temperature gasTemperature,
619
+    temper.gas_humidity gasHumidity,
620
+    temper.keeper keeper,
621
+    temper.updatetime updatetime
622
+    FROM
623
+    business_agent_temperature temper
624
+    LEFT JOIN business_agent_depot depot ON depot.id = temper.agent_depot_id
625
+    AND depot.org_id = #{orgId,jdbcType=INTEGER}
626
+    LEFT JOIN basic_storehouse store ON store.storehouse_id = temper.storehouse_id
627
+    LEFT JOIN business_agent ba ON depot.org_id = ba.org_id
628
+    WHERE temper.org_id = #{orgId,jdbcType=INTEGER}
629
+    <if test="agentDepotId != null">
630
+      AND temper.agent_depot_id = #{agentDepotId,jdbcType=INTEGER}
631
+    </if>
632
+    <if test="storehouseId != null">
633
+      AND temper.storehouse_id = #{storehouseId,jdbcType=INTEGER}
634
+    </if>
635
+    <if test="startTime != null and endTime != null">
636
+      AND temper.detection_time BETWEEN #{startTime} AND #{endTime}
637
+    </if>
638
+    <if test="temperId != null">
639
+      AND temper.id = #{temperId,jdbcType=INTEGER}
640
+    </if>
641
+    <if test="lspz != null">
642
+      AND temper.lspz = #{lspz,jdbcType=INTEGER}
643
+    </if>
644
+    UNION ALL
645
+    SELECT DISTINCT
646
+    tt.id id,
647
+    tt.org_id orgId,
648
+    depot.depot_id agentOrgId,
649
+    depot.depot_id agentStoreOrgId,
650
+    '0' sign,
651
+    depot.agent_depot_name agentDepotName,
652
+    store.storehouse_name storehouseName,
653
+    ba.agent_name agentName,
654
+    tt.storehouse lspz,
655
+    tt.time detectionTime,
656
+    tt.inTemp houseTemperature,
657
+    tt.inH houseHumidity,
658
+    tt.max max,
659
+    tt.min min,
660
+    tt.avg avg,
661
+    store.storehouse_type storehouseType,
662
+    store.design_capacity designCapacity,
663
+    tt.storehouse enterTime,
664
+    tt.storehouse nature,
665
+    tt.storehouse level,
666
+    tt.storehouse actualAmount,
667
+    tt.storehouse harvestYear,
668
+    tt.outTemp gasTemperature,
669
+    tt.outH gasHumidity,
670
+    '' keeper,
671
+    tt.updatetime updatetime
603 672
     FROM
604 673
     business_agent_depot depot
605
-    LEFT JOIN business_agent agent ON depot.agent_id = agent.id
606
-    AND agent.org_id = #{orgId,jdbcType=INTEGER}
607 674
     INNER JOIN business_agent_storehouse agentStore ON depot.id = agentStore.agent_depot_id
675
+    INNER JOIN business_agent ba ON depot.org_id = ba.org_id
608 676
     INNER JOIN basic_storehouse store ON store.storehouse_id = agentStore.storehouse_id
609 677
     AND store.del_flag = 1
610
-    LEFT JOIN basic_keeper_house keepHouse ON keepHouse.house_Id = agentStore.storehouse_id
611
-    AND depot.depot_id = keepHouse.org_id
612
-    LEFT JOIN basic_keeper keeper ON keeper.id = keepHouse.keeper_Id
613
-    WHERE depot.org_id = #{orgId,jdbcType=INTEGER}
678
+    LEFT JOIN t_testdata tt ON depot.depot_id = tt.org_id
679
+    AND tt.storehouse = store.storehouse_code
680
+    AND tt.org_id != #{orgId,jdbcType=INTEGER}
681
+    AND tt.updatetime >= depot.updatetime
682
+    WHERE
683
+    tt.iLq_yq = '0'
684
+    AND depot.org_id = #{orgId,jdbcType=INTEGER}
614 685
     AND depot.del_flag = 1
615
-    <if test="agentId != null">
616
-      AND agent.id = #{agentId,jdbcType=INTEGER}
617
-    </if>
618 686
     <if test="agentDepotId != null">
619 687
       AND depot.id = #{agentDepotId,jdbcType=INTEGER}
620 688
     </if>
621 689
     <if test="storehouseId != null">
622 690
       AND store.storehouse_id = #{storehouseId,jdbcType=INTEGER}
623 691
     </if>
624
-    order by depot.depot_id
692
+    <if test="startTime != null and endTime != null">
693
+      AND tt.time BETWEEN #{startTime} AND #{endTime}
694
+    </if>
695
+    <if test="lspz != null and endTime != null">
696
+      AND tt.storehouse = #{lspz,jdbcType=INTEGER}
697
+    </if>
698
+    ) temperAll
699
+    WHERE temperAll.orgId IS NOT NULL AND temperAll.id IS NOT NULL
700
+    ORDER BY
701
+    temperAll.updatetime DESC
625 702
   </select>
626 703
 
627 704
   <select id="getTestDataList" parameterType="java.util.Map" resultType="java.util.HashMap">
@@ -655,6 +732,9 @@
655 732
     <if test="startTime != null and endTime != null">
656 733
       AND tt.time BETWEEN #{startTime} AND #{endTime}
657 734
     </if>
735
+    <if test="lspz != null">
736
+      AND tt.lspz = #{lspz,jdbcType=INTEGER}
737
+    </if>
658 738
     order by tt.updatetime desc
659 739
     LIMIT 100
660 740
   </select>

+ 88 - 87
src/main/java/com/chinaitop/depot/agent/temperature/service/impl/AgentTemperatureServiceImpl.java

@@ -38,93 +38,94 @@ public class AgentTemperatureServiceImpl implements agentTemperatureService {
38 38
      */
39 39
     @Override
40 40
     public List<Map<String, Object>> getAgentTemperatureList(List<Map<String, Object>> dataList,Map<String, Object> map) {
41
-        List<String> houseCode = new ArrayList<>();
42
-        String depotId = "";
43
-        String updatetime = "";
44
-        Integer idNum = 0;
45
-        List<Map<String, Object>> AllList = new ArrayList<Map<String, Object>>();
46
-        String houseIds = "";
47
-        for (int i = 0; i <= dataList.size(); i++) {
48
-            //如果是最后一次循环则直接查询数据,不往下走
49
-            if(i == dataList.size()){
50
-                map.put("depotId",depotId);
51
-                map.put("updatetime",updatetime);
52
-                map.put("houseCode",houseCode);
53
-                List<Map<String, Object>> testList = businessAgentTemperatureMapper.getTestDataList(map);
54
-                Map<String, Object> modelMap = new HashMap<String, Object>();
55
-                if(ParameterUtil.isnotnull(testList) && testList.size() != 0){
56
-                    for (Map<String, Object> testData:testList) {
57
-                        modelMap = testData;
58
-                        modelMap.put("agentOrgId",dataList.get(i-1).get("agentOrgId"));
59
-                        modelMap.put("agentStoreOrgId",dataList.get(i-1).get("agentStoreOrgId"));
60
-                        modelMap.put("agentName",dataList.get(i-1).get("agentName"));
61
-                        modelMap.put("agentDepotName",dataList.get(i-1).get("agentDepotName"));
62
-                        modelMap.put("designCapacity",dataList.get(i-1).get("designCapacity"));
63
-                        modelMap.put("storehouseName",dataList.get(i-1).get("storehouseName"));
64
-                        modelMap.put("storehouseId",dataList.get(i-1).get("storehouseId"));
65
-                        modelMap.put("keeper",dataList.get(i-1).get("keeper"));
66
-                        AllList.add(modelMap);
67
-                        if(AllList.size() == 100){
68
-                            break;
69
-                        }
70
-                    }
71
-                }
72
-                break;
73
-            }
74
-            houseIds += dataList.get(i).get("storehouseId") + ",";
75
-            if(idNum == 0){//判断算是否是一个库的仓房编号
76
-                depotId = dataList.get(i).get("agentOrgId").toString();
77
-                updatetime = dataList.get(i).get("updatetime").toString();
78
-                houseCode.add(dataList.get(i).get("storehouseCode").toString());
79
-                idNum++;
80
-            }else if(ParameterUtil.isequal(depotId,dataList.get(i).get("agentOrgId").toString())){//如果是一个库的则组成字符串
81
-                houseCode.add(dataList.get(i).get("storehouseCode").toString());
82
-            }else{//不是一个库的还原idNum值,以便下回循环,然后把这个库的100条温度数据查出来加入list集合,继续循环查下一个库
83
-                idNum = 0;
84
-                map.put("depotId",depotId);
85
-                map.put("updatetime",updatetime);
86
-                map.put("houseCode",houseCode);
87
-                List<Map<String, Object>> testList = businessAgentTemperatureMapper.getTestDataList(map);
88
-                Map<String, Object> modelMap = new HashMap<String, Object>();
89
-                if(ParameterUtil.isnotnull(testList) && testList.size() != 0){
90
-                    for (Map<String, Object> testData:testList) {
91
-                        modelMap = testData;
92
-                        modelMap.put("agentOrgId",dataList.get(i-1).get("agentOrgId"));
93
-                        modelMap.put("agentStoreOrgId",dataList.get(i-1).get("agentStoreOrgId"));
94
-                        modelMap.put("agentName",dataList.get(i-1).get("agentName"));
95
-                        modelMap.put("agentDepotName",dataList.get(i-1).get("agentDepotName"));
96
-                        modelMap.put("designCapacity",dataList.get(i-1).get("designCapacity"));
97
-                        modelMap.put("storehouseName",dataList.get(i-1).get("storehouseName"));
98
-                        modelMap.put("storehouseId",dataList.get(i-1).get("storehouseId"));
99
-                        modelMap.put("keeper",dataList.get(i-1).get("keeper"));
100
-                        AllList.add(modelMap);
101
-                        if(AllList.size() == 100){
102
-                            break;
103
-                        }
104
-                    }
105
-                }
106
-            }
107
-            if(AllList.size() == 100){
108
-                break;
109
-            }
110
-        }
111
-
112
-        String url = "http://localhost:9026/agile/kcsw/getDateByHouseIds";
113
-        Map<String, Object> dataMap = new HashMap<String, Object>();
114
-        dataMap.put("houseIds",houseIds.substring(0,houseIds.length()-1));
115
-        String strResult = HTTPUtils.doPost(url,dataMap);
116
-        JSONArray json = JSONArray.parseArray(strResult);
117
-        if(ParameterUtil.isnotnull(json) && json.size() != 0){
118
-            for (int i = 0; i < AllList.size(); i++) {
119
-                for (int j = 0; j < json.size(); j++) {
120
-                    JSONObject job = json.getJSONObject(j);
121
-                    if(ParameterUtil.isequal(AllList.get(i).get("storehouseId").toString(),job.get("ch").toString())){
122
-                        AllList.get(i).put("lspz",Integer.parseInt(job.get("pz").toString()));
123
-                    }
124
-                }
125
-            }
126
-        }
127
-        return AllList;
41
+//        List<String> houseCode = new ArrayList<>();
42
+//        String depotId = "";
43
+//        String updatetime = "";
44
+//        Integer idNum = 0;
45
+//        List<Map<String, Object>> AllList = new ArrayList<Map<String, Object>>();
46
+//        String houseIds = "";
47
+//        for (int i = 0; i <= dataList.size(); i++) {
48
+//            //如果是最后一次循环则直接查询数据,不往下走
49
+//            if(i == dataList.size()){
50
+//                map.put("depotId",depotId);
51
+//                map.put("updatetime",updatetime);
52
+//                map.put("houseCode",houseCode);
53
+//                List<Map<String, Object>> testList = businessAgentTemperatureMapper.getTestDataList(map);
54
+//                Map<String, Object> modelMap = new HashMap<String, Object>();
55
+//                if(ParameterUtil.isnotnull(testList) && testList.size() != 0){
56
+//                    for (Map<String, Object> testData:testList) {
57
+//                        modelMap = testData;
58
+//                        modelMap.put("agentOrgId",dataList.get(i-1).get("agentOrgId"));
59
+//                        modelMap.put("agentStoreOrgId",dataList.get(i-1).get("agentStoreOrgId"));
60
+//                        modelMap.put("agentName",dataList.get(i-1).get("agentName"));
61
+//                        modelMap.put("agentDepotName",dataList.get(i-1).get("agentDepotName"));
62
+//                        modelMap.put("designCapacity",dataList.get(i-1).get("designCapacity"));
63
+//                        modelMap.put("storehouseName",dataList.get(i-1).get("storehouseName"));
64
+//                        modelMap.put("storehouseId",dataList.get(i-1).get("storehouseId"));
65
+//                        modelMap.put("keeper",dataList.get(i-1).get("keeper"));
66
+//                        AllList.add(modelMap);
67
+//                        if(AllList.size() == 100){
68
+//                            break;
69
+//                        }
70
+//                    }
71
+//                }
72
+//                break;
73
+//            }
74
+//            houseIds += dataList.get(i).get("storehouseId") + ",";
75
+//            if(idNum == 0){//判断算是否是一个库的仓房编号
76
+//                depotId = dataList.get(i).get("agentOrgId").toString();
77
+//                updatetime = dataList.get(i).get("updatetime").toString();
78
+//                houseCode.add(dataList.get(i).get("storehouseCode").toString());
79
+//                idNum++;
80
+//            }else if(ParameterUtil.isequal(depotId,dataList.get(i).get("agentOrgId").toString())){//如果是一个库的则组成字符串
81
+//                houseCode.add(dataList.get(i).get("storehouseCode").toString());
82
+//            }else{//不是一个库的还原idNum值,以便下回循环,然后把这个库的100条温度数据查出来加入list集合,继续循环查下一个库
83
+//                idNum = 0;
84
+//                map.put("depotId",depotId);
85
+//                map.put("updatetime",updatetime);
86
+//                map.put("houseCode",houseCode);
87
+//                List<Map<String, Object>> testList = businessAgentTemperatureMapper.getTestDataList(map);
88
+//                Map<String, Object> modelMap = new HashMap<String, Object>();
89
+//                if(ParameterUtil.isnotnull(testList) && testList.size() != 0){
90
+//                    for (Map<String, Object> testData:testList) {
91
+//                        modelMap = testData;
92
+//                        modelMap.put("agentOrgId",dataList.get(i-1).get("agentOrgId"));
93
+//                        modelMap.put("agentStoreOrgId",dataList.get(i-1).get("agentStoreOrgId"));
94
+//                        modelMap.put("agentName",dataList.get(i-1).get("agentName"));
95
+//                        modelMap.put("agentDepotName",dataList.get(i-1).get("agentDepotName"));
96
+//                        modelMap.put("designCapacity",dataList.get(i-1).get("designCapacity"));
97
+//                        modelMap.put("storehouseName",dataList.get(i-1).get("storehouseName"));
98
+//                        modelMap.put("storehouseId",dataList.get(i-1).get("storehouseId"));
99
+//                        modelMap.put("keeper",dataList.get(i-1).get("keeper"));
100
+//                        AllList.add(modelMap);
101
+//                        if(AllList.size() == 100){
102
+//                            break;
103
+//                        }
104
+//                    }
105
+//                }
106
+//            }
107
+//            if(AllList.size() == 100){
108
+//                break;
109
+//            }
110
+//        }
111
+//
112
+//        String url = "http://localhost:9026/agile/kcsw/getDateByHouseIds";
113
+//        Map<String, Object> dataMap = new HashMap<String, Object>();
114
+//        dataMap.put("houseIds",houseIds.substring(0,houseIds.length()-1));
115
+//        String strResult = HTTPUtils.doPost(url,dataMap);
116
+//        JSONArray json = JSONArray.parseArray(strResult);
117
+//        if(ParameterUtil.isnotnull(json) && json.size() != 0){
118
+//            for (int i = 0; i < AllList.size(); i++) {
119
+//                for (int j = 0; j < json.size(); j++) {
120
+//                    JSONObject job = json.getJSONObject(j);
121
+//                    if(ParameterUtil.isequal(AllList.get(i).get("storehouseId").toString(),job.get("ch").toString())){
122
+//                        AllList.get(i).put("lspz",Integer.parseInt(job.get("pz").toString()));
123
+//                    }
124
+//                }
125
+//            }
126
+//        }
127
+//        return AllList;
128
+        return businessAgentTemperatureMapper.getDataByExample(map);
128 129
     }
129 130
 
130 131
     @Override