操作控制
This commit is contained in:
1 parent
b8cea4af69
commit
d4b1bc60b1
1 file changed
+7
@@ -179,6 +179,13 @@ public class DmPlayerentServiceImpl extends ServiceImpl<DmPlayerentMapper, DmPla
|
||||
|
||||
@Override
|
||||
public boolean operate(DmOperateVo vo) {
|
||||
DmPlayerent dmPlayerent = this.dmPlayerentMapper.selectDmPlayerentById(Long.parseLong(vo.getPlayerId()));
|
||||
if(dmPlayerent == null){
|
||||
throw new RuntimeException("找不到对象");
|
||||
}
|
||||
if(dmPlayerent.getOnlineStatus().equals("0")){
|
||||
throw new RuntimeException("设备离线");
|
||||
}
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("params", "");
|
||||
if (vo.getType() == null) {
|
||||
|
||||
Reference in new issue
Block a user