Commit e2bdbc7b by huangjy

feat:新增appid写入设备

parent 5e51b66a
...@@ -16,6 +16,7 @@ import com.makeit.common.entity.BaseEntity; ...@@ -16,6 +16,7 @@ import com.makeit.common.entity.BaseEntity;
import com.makeit.common.page.PageReqDTO; import com.makeit.common.page.PageReqDTO;
import com.makeit.common.page.PageVO; import com.makeit.common.page.PageVO;
import com.makeit.common.response.ApiResponseEntity; import com.makeit.common.response.ApiResponseEntity;
import com.makeit.config.ShengwangProperties;
import com.makeit.dto.platform.dataScreen.PlatDataScreenQueryDTO; import com.makeit.dto.platform.dataScreen.PlatDataScreenQueryDTO;
import com.makeit.dto.platform.device.*; import com.makeit.dto.platform.device.*;
import com.makeit.dto.saas.device.PlatDeviceEditSaasDTO; import com.makeit.dto.saas.device.PlatDeviceEditSaasDTO;
...@@ -124,6 +125,8 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev ...@@ -124,6 +125,8 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
private ShengwangHttpUtil shengwangHttpUtil; private ShengwangHttpUtil shengwangHttpUtil;
@Autowired @Autowired
private ShengwangService shengwangService; private ShengwangService shengwangService;
@Autowired
private ShengwangProperties shengwangProperties;
@Override @Override
public PageVO<PlatDeviceListVO> page(PageReqDTO<PlatDeviceQueryDTO> pageReqDTO) { public PageVO<PlatDeviceListVO> page(PageReqDTO<PlatDeviceQueryDTO> pageReqDTO) {
...@@ -751,6 +754,7 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev ...@@ -751,6 +754,7 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
// 调用设备写入接口 // 调用设备写入接口
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("license",platDeviceActiveVO.getLicense()); map.put("license",platDeviceActiveVO.getLicense());
map.put("appId",shengwangProperties.getAppId());
devicePropertiesOperateService.deviceWriteAttr(platDevice.getOriDeviceId(),map); devicePropertiesOperateService.deviceWriteAttr(platDevice.getOriDeviceId(),map);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment