细节调整
This commit is contained in:
@ -81,7 +81,7 @@ public class DeviceOtherMsgConsumer {
|
||||
try {
|
||||
//处理emq订阅的非 property/post 属性上报的消息 ,因为其他消息量小,放在一起处理
|
||||
Long productId;//产品id,设备所属产品
|
||||
Long packetId;//包号
|
||||
Long pacSn;//包号
|
||||
byte[] data = bo.getData();//数据
|
||||
String topic=bo.getTopicName();//主题
|
||||
//从主题中解析出产品id
|
||||
@ -128,6 +128,9 @@ public class DeviceOtherMsgConsumer {
|
||||
if(runStatus!=null){
|
||||
new LambdaUpdateChainWrapper<>(deviceReportInfoMapper).set(DeviceReportInfo::getRunStatus,runStatus).eq(DeviceReportInfo::getSerialNumber,serialNumber).update();
|
||||
}
|
||||
//获取流量计累计用水量/瞬时流量
|
||||
Float meterSum = data1.getFloat("meterSum");
|
||||
Float meterIns = data1.getFloat("meterIns");
|
||||
}
|
||||
//收到关阀时定时报文
|
||||
else if(JSONUtil.parseObj(data1).get("action").equals("safeMsg")){
|
||||
|
@ -42,7 +42,7 @@ public class NgMerchantsController extends BaseController
|
||||
/**
|
||||
* 查询商户信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:merchants:list')")
|
||||
// @PreAuthorize("@ss.hasPermi('iot:merchants:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询商户信息列表")
|
||||
public TableDataInfo list(NgMerchants ngMerchants)
|
||||
@ -56,7 +56,7 @@ public class NgMerchantsController extends BaseController
|
||||
* 导出商户信息列表
|
||||
*/
|
||||
@ApiOperation("导出商户信息列表")
|
||||
@PreAuthorize("@ss.hasPermi('iot:merchants:export')")
|
||||
// @PreAuthorize("@ss.hasPermi('iot:merchants:export')")
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, NgMerchants ngMerchants)
|
||||
{
|
||||
@ -69,7 +69,7 @@ public class NgMerchantsController extends BaseController
|
||||
/**
|
||||
* 获取商户信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:merchants:query')")
|
||||
// @PreAuthorize("@ss.hasPermi('iot:merchants:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取商户信息详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
@ -80,7 +80,7 @@ public class NgMerchantsController extends BaseController
|
||||
/**
|
||||
* 新增商户信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('iot:merchants:add')")
|
||||
// @PreAuthorize("@ss.hasPermi('iot:merchants:add')")
|
||||
@PostMapping
|
||||
@ApiOperation("新增商户信息")
|
||||
public AjaxResult add(@RequestBody NgMerchants ngMerchants)
|
||||
|
Reference in New Issue
Block a user