|
|
@@ -22,6 +22,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
22
|
22
|
import org.springframework.http.MediaType;
|
|
23
|
23
|
import org.springframework.util.LinkedMultiValueMap;
|
|
24
|
24
|
import org.springframework.util.MultiValueMap;
|
|
|
25
|
+import org.springframework.validation.annotation.Validated;
|
|
25
|
26
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
26
|
27
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
27
|
28
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
@@ -29,6 +30,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|
29
|
30
|
import org.springframework.web.client.RestTemplate;
|
|
30
|
31
|
|
|
31
|
32
|
import javax.annotation.Resource;
|
|
|
33
|
+import javax.validation.constraints.NotBlank;
|
|
|
34
|
+import javax.validation.constraints.NotEmpty;
|
|
32
|
35
|
import javax.validation.constraints.NotNull;
|
|
33
|
36
|
import java.util.*;
|
|
34
|
37
|
|
|
|
@@ -254,7 +257,7 @@ public class TemperatureRecordController {
|
|
254
|
257
|
requestEntity.add("storeCode", storeCode);
|
|
255
|
258
|
return remoteControlUtil.remoteScan(
|
|
256
|
259
|
String.format("%s%s", url, remoteControlUtil.chooseCFCode),
|
|
257
|
|
- requestEntity, "POST", null
|
|
|
260
|
+ requestEntity
|
|
258
|
261
|
);
|
|
259
|
262
|
}
|
|
260
|
263
|
|
|
|
@@ -273,7 +276,7 @@ public class TemperatureRecordController {
|
|
273
|
276
|
requestEntity.put("tType", tType);
|
|
274
|
277
|
return remoteControlUtil.remoteScan(
|
|
275
|
278
|
String.format("%s%s", url, remoteControlUtil.foodAll),
|
|
276
|
|
- null, "GET", requestEntity
|
|
|
279
|
+ requestEntity
|
|
277
|
280
|
);
|
|
278
|
281
|
}
|
|
279
|
282
|
|
|
|
@@ -300,7 +303,7 @@ public class TemperatureRecordController {
|
|
300
|
303
|
requestEntity.add("tType", tType);
|
|
301
|
304
|
return remoteControlUtil.remoteScan(
|
|
302
|
305
|
String.format("%s%s", url, remoteControlUtil.foodOnly),
|
|
303
|
|
- requestEntity, "POST", null
|
|
|
306
|
+ requestEntity
|
|
304
|
307
|
);
|
|
305
|
308
|
}
|
|
306
|
309
|
|