|
|
@@ -23,10 +23,7 @@ import org.springframework.http.MediaType;
|
|
23
|
23
|
import org.springframework.util.LinkedMultiValueMap;
|
|
24
|
24
|
import org.springframework.util.MultiValueMap;
|
|
25
|
25
|
import org.springframework.validation.annotation.Validated;
|
|
26
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
27
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
28
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
29
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
26
|
+import org.springframework.web.bind.annotation.*;
|
|
30
|
27
|
import org.springframework.web.client.RestTemplate;
|
|
31
|
28
|
|
|
32
|
29
|
import javax.annotation.Resource;
|
|
|
@@ -58,7 +55,7 @@ public class TemperatureRecordController {
|
|
58
|
55
|
@ApiImplicitParam(name = "vCfCode", value = "仓库名称", paramType = "query"),
|
|
59
|
56
|
@ApiImplicitParam(name = "tType", value = "检测类型0测温,1粮油,2测水分", paramType = "query")
|
|
60
|
57
|
})
|
|
61
|
|
- public ResponseEntity<PageInfo<TTestdata>> getList(Integer pageNum, Integer pageSize, String vCfCode, String vDatatime, String startTime, String endTime, String tType, String orgId) {
|
|
|
58
|
+ public ResponseEntity<PageInfo<TTestdata>> getList(Integer pageNum, Integer pageSize, String vCfCode, String vDatatime, String startTime, String endTime, String tType, @RequestParam @NotNull String orgId) {
|
|
62
|
59
|
List<TTestdata> list = null;
|
|
63
|
60
|
try {
|
|
64
|
61
|
if (null != pageNum && null != pageSize) {
|
|
|
@@ -87,7 +84,7 @@ public class TemperatureRecordController {
|
|
87
|
84
|
@ApiImplicitParam(name = "vCfCode", value = "库房编码", paramType = "query"),
|
|
88
|
85
|
@ApiImplicitParam(name = "vDatatime", value = "测温时间", paramType = "query")
|
|
89
|
86
|
})
|
|
90
|
|
- public ResponseEntity findByHouseAndTime(String lqId, String vCfCode, String vDatatime, String orgId) {
|
|
|
87
|
+ public ResponseEntity findByHouseAndTime(String lqId, String vCfCode, String vDatatime, @RequestParam @NotNull String orgId) {
|
|
91
|
88
|
List<TTestdataLayer> tTestdataLayer = null;
|
|
92
|
89
|
try {
|
|
93
|
90
|
tTestdataLayer = temperatureRecordService.findByHouseAndTime(lqId, vCfCode, vDatatime, orgId);
|
|
|
@@ -145,7 +142,7 @@ public class TemperatureRecordController {
|
|
145
|
142
|
@ApiImplicitParam(name = "tType", value = "检测类型0测温,1粮油,2测水分", paramType = "query")
|
|
146
|
143
|
})
|
|
147
|
144
|
public ResponseEntity<PageInfo<TTestdata>> getComparisonLeft(Integer pageNum, Integer pageSize, String vCfCodeLeft,
|
|
148
|
|
- String startTimeLeft, String endTimeLeft, String tType, String orgId) {
|
|
|
145
|
+ String startTimeLeft, String endTimeLeft, String tType,@RequestParam @NotNull String orgId) {
|
|
149
|
146
|
List<TTestdata> list = null;
|
|
150
|
147
|
try {
|
|
151
|
148
|
if (null != pageNum && null != pageSize) {
|
|
|
@@ -181,7 +178,7 @@ public class TemperatureRecordController {
|
|
181
|
178
|
@ApiImplicitParam(name = "tType", value = "检测类型0测温,1粮油,2测水分", paramType = "query")
|
|
182
|
179
|
})
|
|
183
|
180
|
public ResponseEntity<PageInfo<TTestdata>> getComparisonRight(Integer pageNum, Integer pageSize, String vCfCodeRight,
|
|
184
|
|
- String startTimeRight, String endTimeRight, String tType,String orgId) {
|
|
|
181
|
+ String startTimeRight, String endTimeRight, String tType,@RequestParam @NotNull String orgId) {
|
|
185
|
182
|
|
|
186
|
183
|
List<TTestdata> list = null;
|
|
187
|
184
|
try {
|
|
|
@@ -215,7 +212,7 @@ public class TemperatureRecordController {
|
|
215
|
212
|
@ApiImplicitParam(name = "storehouse", value = "仓库编号", paramType = "query"),
|
|
216
|
213
|
@ApiImplicitParam(name = "id", value = "粮情,水分id", paramType = "query")
|
|
217
|
214
|
})
|
|
218
|
|
- public ResponseEntity<PageInfo<Map<String, Object>>> getGrainPointAll(Integer pageNum, Integer pageSize, String storehouse, String time, String id, String orgId) {
|
|
|
215
|
+ public ResponseEntity<PageInfo<Map<String, Object>>> getGrainPointAll(Integer pageNum, Integer pageSize, String storehouse, String time, String id,@RequestParam @NotNull String orgId) {
|
|
219
|
216
|
List<Map<String, Object>> list = null;
|
|
220
|
217
|
try {
|
|
221
|
218
|
if (null != pageNum && null != pageSize) {
|
|
|
@@ -248,7 +245,7 @@ public class TemperatureRecordController {
|
|
248
|
245
|
@ApiImplicitParams({
|
|
249
|
246
|
@ApiImplicitParam(name = "storeCode", defaultValue = "001", value = "仓库编号", paramType = "query")
|
|
250
|
247
|
})
|
|
251
|
|
- public ResponseEntity<Map<String, String>> sendTemperatureDetection(String storeCode, @NotNull String orgId) {
|
|
|
248
|
+ public ResponseEntity<Map<String, String>> sendTemperatureDetection(String storeCode,@RequestParam @NotNull String orgId) {
|
|
252
|
249
|
// 1.获取库端url
|
|
253
|
250
|
String url = temperatureRecordService.getRemoteUrl(orgId);
|
|
254
|
251
|
if (StringUtils.isBlank(url))
|
|
|
@@ -267,7 +264,7 @@ public class TemperatureRecordController {
|
|
267
|
264
|
@ApiImplicitParams({
|
|
268
|
265
|
@ApiImplicitParam(name = "tType", value = "检测类型0测温,1粮油,2测水分", paramType = "query")
|
|
269
|
266
|
})
|
|
270
|
|
- public ResponseEntity sendTemperatureDetectionAll(String tType, @NotNull String orgId) {
|
|
|
267
|
+ public ResponseEntity sendTemperatureDetectionAll(String tType,@RequestParam @NotNull String orgId) {
|
|
271
|
268
|
// 1.获取库端url
|
|
272
|
269
|
String url = temperatureRecordService.getRemoteUrl(orgId);
|
|
273
|
270
|
if (StringUtils.isBlank(url))
|
|
|
@@ -293,7 +290,7 @@ public class TemperatureRecordController {
|
|
293
|
290
|
@ApiImplicitParam(name = "storeCode", defaultValue = "001", value = "仓库编号", paramType = "query"),
|
|
294
|
291
|
@ApiImplicitParam(name = "tType", value = "检测类型0测温,1粮油,2测水分", paramType = "query")
|
|
295
|
292
|
})
|
|
296
|
|
- public ResponseEntity sendOnlyStoreDetection(String storeCode, String tType, @NotNull String orgId) {
|
|
|
293
|
+ public ResponseEntity sendOnlyStoreDetection(String storeCode, String tType,@RequestParam @NotNull String orgId) {
|
|
297
|
294
|
// 1.获取库端url
|
|
298
|
295
|
String url = temperatureRecordService.getRemoteUrl(orgId);
|
|
299
|
296
|
if (StringUtils.isBlank(url))
|
|
|
@@ -323,4 +320,5 @@ public class TemperatureRecordController {
|
|
323
|
320
|
}
|
|
324
|
321
|
return ResponseEntity.ok(byId);
|
|
325
|
322
|
}
|
|
|
323
|
+
|
|
326
|
324
|
}
|