|
|
@@ -87,10 +87,10 @@ public class TemperatureRecordController {
|
|
87
|
87
|
@ApiImplicitParam(name = "vCfCode", value = "库房编码", paramType = "query"),
|
|
88
|
88
|
@ApiImplicitParam(name = "vDatatime", value = "测温时间", paramType = "query")
|
|
89
|
89
|
})
|
|
90
|
|
- public ResponseEntity findByHouseAndTime(String lqId, String vCfCode, String vDatatime) {
|
|
|
90
|
+ public ResponseEntity findByHouseAndTime(String lqId, String vCfCode, String vDatatime, String orgId) {
|
|
91
|
91
|
List<TTestdataLayer> tTestdataLayer = null;
|
|
92
|
92
|
try {
|
|
93
|
|
- tTestdataLayer = temperatureRecordService.findByHouseAndTime(lqId, vCfCode, vDatatime);
|
|
|
93
|
+ tTestdataLayer = temperatureRecordService.findByHouseAndTime(lqId, vCfCode, vDatatime, orgId);
|
|
94
|
94
|
} catch (Exception e) {
|
|
95
|
95
|
e.printStackTrace();
|
|
96
|
96
|
return ResponseEntity.failed("查询失败");
|
|
|
@@ -145,13 +145,13 @@ public class TemperatureRecordController {
|
|
145
|
145
|
@ApiImplicitParam(name = "tType", value = "检测类型0测温,1粮油,2测水分", paramType = "query")
|
|
146
|
146
|
})
|
|
147
|
147
|
public ResponseEntity<PageInfo<TTestdata>> getComparisonLeft(Integer pageNum, Integer pageSize, String vCfCodeLeft,
|
|
148
|
|
- String startTimeLeft, String endTimeLeft, String tType) {
|
|
|
148
|
+ String startTimeLeft, String endTimeLeft, String tType, String orgId) {
|
|
149
|
149
|
List<TTestdata> list = null;
|
|
150
|
150
|
try {
|
|
151
|
151
|
if (null != pageNum && null != pageSize) {
|
|
152
|
152
|
PageHelper.startPage(pageNum, pageSize);
|
|
153
|
153
|
}
|
|
154
|
|
- list = temperatureRecordService.getComparison(vCfCodeLeft, startTimeLeft, endTimeLeft, null, null, null, tType);
|
|
|
154
|
+ list = temperatureRecordService.getComparison(vCfCodeLeft, startTimeLeft, endTimeLeft, null, null, null, tType, orgId);
|
|
155
|
155
|
} catch (Exception e) {
|
|
156
|
156
|
e.printStackTrace();
|
|
157
|
157
|
return ResponseEntity.failed(e.getMessage());
|
|
|
@@ -181,13 +181,13 @@ public class TemperatureRecordController {
|
|
181
|
181
|
@ApiImplicitParam(name = "tType", value = "检测类型0测温,1粮油,2测水分", paramType = "query")
|
|
182
|
182
|
})
|
|
183
|
183
|
public ResponseEntity<PageInfo<TTestdata>> getComparisonRight(Integer pageNum, Integer pageSize, String vCfCodeRight,
|
|
184
|
|
- String startTimeRight, String endTimeRight, String tType) {
|
|
|
184
|
+ String startTimeRight, String endTimeRight, String tType, String orgId) {
|
|
185
|
185
|
List<TTestdata> list = null;
|
|
186
|
186
|
try {
|
|
187
|
187
|
if (null != pageNum && null != pageSize) {
|
|
188
|
188
|
PageHelper.startPage(pageNum, pageSize);
|
|
189
|
189
|
}
|
|
190
|
|
- list = temperatureRecordService.getComparison(null, null, null, vCfCodeRight, startTimeRight, endTimeRight, tType);
|
|
|
190
|
+ list = temperatureRecordService.getComparison(null, null, null, vCfCodeRight, startTimeRight, endTimeRight, tType, orgId);
|
|
191
|
191
|
} catch (Exception e) {
|
|
192
|
192
|
e.printStackTrace();
|
|
193
|
193
|
return ResponseEntity.failed(e.getMessage());
|
|
|
@@ -214,13 +214,13 @@ public class TemperatureRecordController {
|
|
214
|
214
|
@ApiImplicitParam(name = "storehouse", value = "仓库编号", paramType = "query"),
|
|
215
|
215
|
@ApiImplicitParam(name = "id", value = "粮情,水分id", paramType = "query")
|
|
216
|
216
|
})
|
|
217
|
|
- public ResponseEntity<PageInfo<Map<String, Object>>> getGrainPointAll(Integer pageNum, Integer pageSize, String storehouse, String time, String id) {
|
|
|
217
|
+ public ResponseEntity<PageInfo<Map<String, Object>>> getGrainPointAll(Integer pageNum, Integer pageSize, String storehouse, String time, String id, String orgId) {
|
|
218
|
218
|
List<Map<String, Object>> list = null;
|
|
219
|
219
|
try {
|
|
220
|
220
|
if (null != pageNum && null != pageSize) {
|
|
221
|
221
|
PageHelper.startPage(pageNum, pageSize);
|
|
222
|
222
|
}
|
|
223
|
|
- list = tpointsService.getGrainPointAll(storehouse, time, id);
|
|
|
223
|
+ list = tpointsService.getGrainPointAll(storehouse, time, id, orgId);
|
|
224
|
224
|
} catch (Exception e) {
|
|
225
|
225
|
e.printStackTrace();
|
|
226
|
226
|
return ResponseEntity.failed(e.getMessage());
|