Commit e367ad8f by huangjy

fix:放开设备激活限制

parent e84a3bf6
...@@ -844,11 +844,11 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev ...@@ -844,11 +844,11 @@ public class PlatDeviceServiceImpl extends ServiceImpl<PlatDeviceMapper, PlatDev
public void active(BaseIdDTO dto) { public void active(BaseIdDTO dto) {
PlatDevice platDevice = getById(dto.getId()); PlatDevice platDevice = getById(dto.getId());
Map<String, Object> resMap = new HashMap<>(); Map<String, Object> resMap = new HashMap<>();
/* resMap.put("appid",shengwangProperties.getAppId()); resMap.put("appid",shengwangProperties.getAppId());
String AttrResult = devicePropertiesOperateService.deviceWriteAttr(platDevice.getOriDeviceId(), resMap); String AttrResult = devicePropertiesOperateService.deviceWriteAttr(platDevice.getOriDeviceId(), resMap);
if (StringUtils.isNotEmpty(AttrResult)) { if (StringUtils.isNotEmpty(AttrResult)) {
throw new RuntimeException(AttrResult); throw new RuntimeException(AttrResult);
}*/ }
SaasPidManage saasPidManage = saasPidManageService.getOne(new QueryWrapper<SaasPidManage>().lambda() SaasPidManage saasPidManage = saasPidManageService.getOne(new QueryWrapper<SaasPidManage>().lambda()
.eq(SaasPidManage::getStatus, "1") .eq(SaasPidManage::getStatus, "1")
.orderByAsc(BaseEntity::getCreateDate) .orderByAsc(BaseEntity::getCreateDate)
......
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