|
@@ -6,6 +6,7 @@ import cn.hutool.core.collection.ListUtil;
|
|
|
import cn.hutool.core.date.DatePattern;
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
+import cn.hutool.core.lang.Console;
|
|
|
import cn.hutool.core.map.MapUtil;
|
|
|
import cn.hutool.core.text.StrBuilder;
|
|
|
import cn.hutool.core.util.BooleanUtil;
|
|
@@ -598,6 +599,9 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
if(Emptys.check(update.getPlaceId()) && !Objects.equals(deviceInfo.getPlaceId(),update.getPlaceId())){
|
|
|
//把设备绑定给点位管理员
|
|
|
MercUserBindDeviceDto.BindByDeviceUpdate bindByPlaceIdDTto = new MercUserBindDeviceDto.BindByDeviceUpdate();
|
|
|
+ bindByPlaceIdDTto.setDeviceId(update.getDeviceId())
|
|
|
+ .setPlaceId(update.getPlaceId())
|
|
|
+ .setMercId(deviceInfo.getMercId());
|
|
|
mercUserBindDeviceService.bindByDeviceUpdate(bindByPlaceIdDTto);
|
|
|
}
|
|
|
DeviceInfo deviceSave = copy(DeviceInfo.class, update)
|