|
@@ -30,29 +30,24 @@ public class EnvDayagePeizhiController {
|
|
|
private IEnvDeviceService deviceService;
|
|
|
|
|
|
@PostMapping("/getDayAgePeiZhi")
|
|
|
- public String getDayAgePeiZhi(@RequestBody Map<String, String> paramsMap) {
|
|
|
- String list = paramsMap.get("list");
|
|
|
- String idCode = paramsMap.get("idCode");
|
|
|
+ public String getDayAgePeiZhi(@RequestParam("idCode") String idCode,@RequestParam("list") String list) {
|
|
|
String[] split = list.split(",");
|
|
|
return dayagePeizhiService.getDayAgePeiZhi(split, idCode);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/getFengPeiZhi")
|
|
|
- public String getFengPeiZhi(@RequestBody Map<String, String> paramsMap) {
|
|
|
- String list = paramsMap.get("list");
|
|
|
+ public String getFengPeiZhi(@RequestParam("list") String list) {
|
|
|
String[] split = list.split(",");
|
|
|
return peizhiService.getFengPeiZhi(split);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/getDeviceCodeByChipId")
|
|
|
- public String getDeviceCodeByChipId(@RequestBody Map<String, String> paramsMap) {
|
|
|
- String idCode = paramsMap.get("idCode");
|
|
|
+ public String getDeviceCodeByChipId(@RequestParam("idCode") String idCode) {
|
|
|
return deviceService.getDeviceCodeByChipId(idCode);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/updateStatus")
|
|
|
- public void updateStatus(@RequestBody Map<String, String> paramsMap) {
|
|
|
- String idCode = paramsMap.get("idCode");
|
|
|
+ public void updateStatus(@RequestParam("idCode") String idCode) {
|
|
|
deviceService.updateStatus(idCode);
|
|
|
}
|
|
|
}
|