|
@@ -1567,6 +1567,16 @@ public class ProjectService {
|
|
|
.eq(KwsDeviceRelation::getId, Long.parseLong(deviceRelationId))
|
|
.eq(KwsDeviceRelation::getId, Long.parseLong(deviceRelationId))
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
|
|
+ /**删除所存在的关联设备组网关系*/
|
|
|
|
|
+ projectDeviceMapper.update(null,
|
|
|
|
|
+ new LambdaUpdateWrapper<KwsProjectDevice>()
|
|
|
|
|
+ .set(KwsProjectDevice::getDelFlag, 1)
|
|
|
|
|
+ .set(KwsProjectDevice::getUpdateBy, headerData.getUpdateBy())
|
|
|
|
|
+ .set(KwsProjectDevice::getUpdateTime, LocalDateTime.now())
|
|
|
|
|
+ .eq(KwsProjectDevice::getDeviceId, Long.parseLong(deviceIds))
|
|
|
|
|
+ .eq(KwsProjectDevice::getProjectId, Long.parseLong(bindDevice.getProjectId()))
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**新增组网设备*/
|
|
/**新增组网设备*/
|
|
|
Long projectId = Long.parseLong(bindDevice.getProjectId());
|
|
Long projectId = Long.parseLong(bindDevice.getProjectId());
|