|
@@ -77,8 +77,8 @@ public class RabbitMqMsgController {
|
|
|
|
|
|
@PostMapping("sendDeviceLoraData")
|
|
|
public void sendDeviceLoraData(
|
|
|
- @ApiParam(value = "deviceNo", required = true) @RequestParam String deviceNo,
|
|
|
- @ApiParam(value = "json", required = true,example = "{\"VOL\":3.56,\"ALARM\":\"0\",\"VOL_STATUS\":\"0\",\"VALVE\":\"01\",\"WSV\":90,\"FORCED\":\"0\",\"DISTURB\":\"0\",\"OVERDRAFT\":\"0\"}") @RequestParam String json
|
|
|
+ @ApiParam(value = "设备编号", required = true) @RequestParam String deviceNo,
|
|
|
+ @ApiParam(value = "json", required = true) @RequestParam(defaultValue = "{\"VOL\":3.56,\"ALARM\":\"0\",\"VOL_STATUS\":\"0\",\"VALVE\":\"01\",\"WSV\":90,\"FORCED\":\"0\",\"DISTURB\":\"0\",\"OVERDRAFT\":\"0\"}") String json
|
|
|
){
|
|
|
Map<String,Object> param = JSON.parseObject(json, HashMap.class);
|
|
|
Map<Date,String> map = new HashMap<>();
|
|
@@ -87,7 +87,7 @@ public class RabbitMqMsgController {
|
|
|
DeviceOrigDataDTO dto = new DeviceOrigDataDTO();
|
|
|
dto.setId(1L);
|
|
|
dto.setAgentIdentifier("");
|
|
|
- dto.setDeviceNo("77777777");
|
|
|
+ dto.setDeviceNo(deviceNo);
|
|
|
dto.setMode("");
|
|
|
dto.setType("");
|
|
|
dto.setManufacturer("");
|
|
@@ -102,8 +102,8 @@ public class RabbitMqMsgController {
|
|
|
|
|
|
@PostMapping("sendDeviceNbData")
|
|
|
public void sendDeviceNbData(
|
|
|
- @ApiParam(value = "deviceNo", required = true) @RequestParam String deviceNo,
|
|
|
- @ApiParam(value = "json", required = true,example = "{\"REMOVE_STATUS\":\"0\",\"VOL_STATUS\":\"0\",\"VALVE\":\"01\",\"WSV\":90,\"DISTURB\":\"0\"}") @RequestParam String json
|
|
|
+ @ApiParam(value = "设备编号", required = true) @RequestParam String deviceNo,
|
|
|
+ @ApiParam(value = "json", required = true) @RequestParam(defaultValue = "{\"REMOVE_STATUS\":\"0\",\"VOL_STATUS\":\"0\",\"VALVE\":\"01\",\"WSV\":90,\"DISTURB\":\"0\"}") String json
|
|
|
){
|
|
|
|
|
|
Map<String,Object> param = JSON.parseObject(json, HashMap.class);
|
|
@@ -113,7 +113,7 @@ public class RabbitMqMsgController {
|
|
|
DeviceOrigDataDTO dto = new DeviceOrigDataDTO();
|
|
|
dto.setId(1L);
|
|
|
dto.setAgentIdentifier("");
|
|
|
- dto.setDeviceNo("77777777");
|
|
|
+ dto.setDeviceNo(deviceNo);
|
|
|
dto.setMode("");
|
|
|
dto.setType("");
|
|
|
dto.setManufacturer("");
|