添加domain层的接口和实现
This commit is contained in:
parent
40e1878d76
commit
3772e1d6de
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Aircraft;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IAircraftDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询无人机列表
|
||||||
|
*
|
||||||
|
* @param aircraft 无人机
|
||||||
|
* @return 无人机集合
|
||||||
|
*/
|
||||||
|
List<Aircraft> selectAircraftList(Aircraft aircraft);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据无人机主键查询无人机
|
||||||
|
*
|
||||||
|
* @param aircraftId 无人机主键
|
||||||
|
* @return 无人机
|
||||||
|
*/
|
||||||
|
Aircraft selectAircraftByAircraftId(Long aircraftId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增无人机
|
||||||
|
*
|
||||||
|
* @param aircraft 无人机
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertAircraft(Aircraft aircraft);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改无人机
|
||||||
|
*
|
||||||
|
* @param aircraft 无人机
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateAircraft(Aircraft aircraft);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除无人机
|
||||||
|
*
|
||||||
|
* @param aircraftId 无人机主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteAircraftByAircraftId(Long aircraftId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除无人机
|
||||||
|
*
|
||||||
|
* @param aircraftIds 无人机主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteAircraftByAircraftIds(Long[] aircraftIds);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,85 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.AircraftPayload;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机挂载关联Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IAircraftPayloadDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询无人机挂载关联列表
|
||||||
|
*
|
||||||
|
* @param aircraftPayload 无人机挂载关联
|
||||||
|
* @return 无人机挂载关联集合
|
||||||
|
*/
|
||||||
|
List<AircraftPayload> selectAircraftPayloadList(AircraftPayload aircraftPayload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据关联主键查询无人机挂载关联
|
||||||
|
*
|
||||||
|
* @param id 关联主键
|
||||||
|
* @return 无人机挂载关联
|
||||||
|
*/
|
||||||
|
AircraftPayload selectAircraftPayloadById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据无人机主键查询关联列表
|
||||||
|
*
|
||||||
|
* @param aircraftId 无人机主键
|
||||||
|
* @return 无人机挂载关联集合
|
||||||
|
*/
|
||||||
|
List<AircraftPayload> selectAircraftPayloadByAircraftId(Long aircraftId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据挂载主键查询关联列表
|
||||||
|
*
|
||||||
|
* @param payloadId 挂载主键
|
||||||
|
* @return 无人机挂载关联集合
|
||||||
|
*/
|
||||||
|
List<AircraftPayload> selectAircraftPayloadByPayloadId(Long payloadId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据机场主键查询关联列表
|
||||||
|
*
|
||||||
|
* @param dockId 机场主键
|
||||||
|
* @return 无人机挂载关联集合
|
||||||
|
*/
|
||||||
|
List<AircraftPayload> selectAircraftPayloadByDockId(Long dockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增无人机挂载关联
|
||||||
|
*
|
||||||
|
* @param aircraftPayload 无人机挂载关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertAircraftPayload(AircraftPayload aircraftPayload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改无人机挂载关联
|
||||||
|
*
|
||||||
|
* @param aircraftPayload 无人机挂载关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateAircraftPayload(AircraftPayload aircraftPayload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除无人机挂载关联
|
||||||
|
*
|
||||||
|
* @param id 关联主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteAircraftPayloadById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除无人机挂载关联
|
||||||
|
*
|
||||||
|
* @param ids 关联主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteAircraftPayloadByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Device;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IDeviceDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询设备列表
|
||||||
|
*
|
||||||
|
* @param device 设备
|
||||||
|
* @return 设备集合
|
||||||
|
*/
|
||||||
|
List<Device> selectDeviceList(Device device);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据设备主键查询设备
|
||||||
|
*
|
||||||
|
* @param deviceId 设备主键
|
||||||
|
* @return 设备
|
||||||
|
*/
|
||||||
|
Device selectDeviceByDeviceId(Long deviceId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增设备
|
||||||
|
*
|
||||||
|
* @param device 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertDevice(Device device);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改设备
|
||||||
|
*
|
||||||
|
* @param device 设备
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateDevice(Device device);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除设备
|
||||||
|
*
|
||||||
|
* @param deviceId 设备主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDeviceByDeviceId(Long deviceId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除设备
|
||||||
|
*
|
||||||
|
* @param deviceIds 设备主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDeviceByDeviceIds(Long[] deviceIds);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,77 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.DockAircraft;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场无人机关联Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IDockAircraftDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询机场无人机关联列表
|
||||||
|
*
|
||||||
|
* @param dockAircraft 机场无人机关联
|
||||||
|
* @return 机场无人机关联集合
|
||||||
|
*/
|
||||||
|
List<DockAircraft> selectDockAircraftList(DockAircraft dockAircraft);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据关联主键查询机场无人机关联
|
||||||
|
*
|
||||||
|
* @param id 关联主键
|
||||||
|
* @return 机场无人机关联
|
||||||
|
*/
|
||||||
|
DockAircraft selectDockAircraftById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据机场主键查询关联列表
|
||||||
|
*
|
||||||
|
* @param dockId 机场主键
|
||||||
|
* @return 机场无人机关联集合
|
||||||
|
*/
|
||||||
|
List<DockAircraft> selectDockAircraftByDockId(Long dockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据无人机主键查询关联列表
|
||||||
|
*
|
||||||
|
* @param aircraftId 无人机主键
|
||||||
|
* @return 机场无人机关联集合
|
||||||
|
*/
|
||||||
|
List<DockAircraft> selectDockAircraftByAircraftId(Long aircraftId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增机场无人机关联
|
||||||
|
*
|
||||||
|
* @param dockAircraft 机场无人机关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertDockAircraft(DockAircraft dockAircraft);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改机场无人机关联
|
||||||
|
*
|
||||||
|
* @param dockAircraft 机场无人机关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateDockAircraft(DockAircraft dockAircraft);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除机场无人机关联
|
||||||
|
*
|
||||||
|
* @param id 关联主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDockAircraftById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除机场无人机关联
|
||||||
|
*
|
||||||
|
* @param ids 关联主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDockAircraftByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Dock;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IDockDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询机场列表
|
||||||
|
*
|
||||||
|
* @param dock 机场
|
||||||
|
* @return 机场集合
|
||||||
|
*/
|
||||||
|
List<Dock> selectDockList(Dock dock);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据机场主键查询机场
|
||||||
|
*
|
||||||
|
* @param dockId 机场主键
|
||||||
|
* @return 机场
|
||||||
|
*/
|
||||||
|
Dock selectDockByDockId(Long dockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增机场
|
||||||
|
*
|
||||||
|
* @param dock 机场
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertDock(Dock dock);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改机场
|
||||||
|
*
|
||||||
|
* @param dock 机场
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateDock(Dock dock);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除机场
|
||||||
|
*
|
||||||
|
* @param dockId 机场主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDockByDockId(Long dockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除机场
|
||||||
|
*
|
||||||
|
* @param dockIds 机场主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDockByDockIds(Long[] dockIds);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,77 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.DockGroup;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场分组关联Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IDockGroupDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询机场分组关联列表
|
||||||
|
*
|
||||||
|
* @param dockGroup 机场分组关联
|
||||||
|
* @return 机场分组关联集合
|
||||||
|
*/
|
||||||
|
List<DockGroup> selectDockGroupList(DockGroup dockGroup);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据关联主键查询机场分组关联
|
||||||
|
*
|
||||||
|
* @param id 关联主键
|
||||||
|
* @return 机场分组关联
|
||||||
|
*/
|
||||||
|
DockGroup selectDockGroupById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据机场主键查询关联列表
|
||||||
|
*
|
||||||
|
* @param dockId 机场主键
|
||||||
|
* @return 机场分组关联集合
|
||||||
|
*/
|
||||||
|
List<DockGroup> selectDockGroupByDockId(Long dockId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据分组主键查询关联列表
|
||||||
|
*
|
||||||
|
* @param groupId 分组主键
|
||||||
|
* @return 机场分组关联集合
|
||||||
|
*/
|
||||||
|
List<DockGroup> selectDockGroupByGroupId(Long groupId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增机场分组关联
|
||||||
|
*
|
||||||
|
* @param dockGroup 机场分组关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertDockGroup(DockGroup dockGroup);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改机场分组关联
|
||||||
|
*
|
||||||
|
* @param dockGroup 机场分组关联
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateDockGroup(DockGroup dockGroup);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除机场分组关联
|
||||||
|
*
|
||||||
|
* @param id 关联主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDockGroupById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除机场分组关联
|
||||||
|
*
|
||||||
|
* @param ids 关联主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteDockGroupByIds(Long[] ids);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Group;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IGroupDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询分组列表
|
||||||
|
*
|
||||||
|
* @param group 分组
|
||||||
|
* @return 分组集合
|
||||||
|
*/
|
||||||
|
List<Group> selectGroupList(Group group);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据分组主键查询分组
|
||||||
|
*
|
||||||
|
* @param groupId 分组主键
|
||||||
|
* @return 分组
|
||||||
|
*/
|
||||||
|
Group selectGroupByGroupId(Long groupId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增分组
|
||||||
|
*
|
||||||
|
* @param group 分组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertGroup(Group group);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改分组
|
||||||
|
*
|
||||||
|
* @param group 分组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updateGroup(Group group);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除分组
|
||||||
|
*
|
||||||
|
* @param groupId 分组主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteGroupByGroupId(Long groupId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除分组
|
||||||
|
*
|
||||||
|
* @param groupIds 分组主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deleteGroupByGroupIds(Long[] groupIds);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.ruoyi.device.domain.api;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Payload;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 挂载Domain接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public interface IPayloadDomain
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询挂载列表
|
||||||
|
*
|
||||||
|
* @param payload 挂载
|
||||||
|
* @return 挂载集合
|
||||||
|
*/
|
||||||
|
List<Payload> selectPayloadList(Payload payload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据挂载主键查询挂载
|
||||||
|
*
|
||||||
|
* @param payloadId 挂载主键
|
||||||
|
* @return 挂载
|
||||||
|
*/
|
||||||
|
Payload selectPayloadByPayloadId(Long payloadId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增挂载
|
||||||
|
*
|
||||||
|
* @param payload 挂载
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int insertPayload(Payload payload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改挂载
|
||||||
|
*
|
||||||
|
* @param payload 挂载
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int updatePayload(Payload payload);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除挂载
|
||||||
|
*
|
||||||
|
* @param payloadId 挂载主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deletePayloadByPayloadId(Long payloadId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除挂载
|
||||||
|
*
|
||||||
|
* @param payloadIds 挂载主键数组
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
int deletePayloadByPayloadIds(Long[] payloadIds);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Aircraft;
|
||||||
|
import com.ruoyi.device.mapper.entity.AircraftEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class AircraftDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static Aircraft toModel(AircraftEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Aircraft model = new Aircraft();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static AircraftEntity toEntity(Aircraft model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
AircraftEntity entity = new AircraftEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<Aircraft> toModelList(List<AircraftEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(AircraftDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.AircraftPayload;
|
||||||
|
import com.ruoyi.device.mapper.entity.AircraftPayloadEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机挂载关联Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class AircraftPayloadDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static AircraftPayload toModel(AircraftPayloadEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
AircraftPayload model = new AircraftPayload();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static AircraftPayloadEntity toEntity(AircraftPayload model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
AircraftPayloadEntity entity = new AircraftPayloadEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<AircraftPayload> toModelList(List<AircraftPayloadEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(AircraftPayloadDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Device;
|
||||||
|
import com.ruoyi.device.mapper.entity.DeviceEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class DeviceDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static Device toModel(DeviceEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Device model = new Device();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static DeviceEntity toEntity(Device model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
DeviceEntity entity = new DeviceEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<Device> toModelList(List<DeviceEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(DeviceDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.DockAircraft;
|
||||||
|
import com.ruoyi.device.mapper.entity.DockAircraftEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场无人机关联Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class DockAircraftDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static DockAircraft toModel(DockAircraftEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
DockAircraft model = new DockAircraft();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static DockAircraftEntity toEntity(DockAircraft model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
DockAircraftEntity entity = new DockAircraftEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<DockAircraft> toModelList(List<DockAircraftEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(DockAircraftDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Dock;
|
||||||
|
import com.ruoyi.device.mapper.entity.DockEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class DockDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static Dock toModel(DockEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Dock model = new Dock();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static DockEntity toEntity(Dock model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
DockEntity entity = new DockEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<Dock> toModelList(List<DockEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(DockDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.DockGroup;
|
||||||
|
import com.ruoyi.device.mapper.entity.DockGroupEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场分组关联Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class DockGroupDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static DockGroup toModel(DockGroupEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
DockGroup model = new DockGroup();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static DockGroupEntity toEntity(DockGroup model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
DockGroupEntity entity = new DockGroupEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<DockGroup> toModelList(List<DockGroupEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(DockGroupDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Group;
|
||||||
|
import com.ruoyi.device.mapper.entity.GroupEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class GroupDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static Group toModel(GroupEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Group model = new Group();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static GroupEntity toEntity(Group model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
GroupEntity entity = new GroupEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<Group> toModelList(List<GroupEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(GroupDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ruoyi.device.domain.convert;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.model.Payload;
|
||||||
|
import com.ruoyi.device.mapper.entity.PayloadEntity;
|
||||||
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 挂载Domain层转换器
|
||||||
|
* Domain Model ↔ Mapper Entity
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class PayloadDomainConvert
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Entity 转 Model
|
||||||
|
*/
|
||||||
|
public static Payload toModel(PayloadEntity entity)
|
||||||
|
{
|
||||||
|
if (entity == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Payload model = new Payload();
|
||||||
|
BeanUtils.copyProperties(entity, model);
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model 转 Entity
|
||||||
|
*/
|
||||||
|
public static PayloadEntity toEntity(Payload model)
|
||||||
|
{
|
||||||
|
if (model == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
PayloadEntity entity = new PayloadEntity();
|
||||||
|
BeanUtils.copyProperties(model, entity);
|
||||||
|
return entity;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Entity List 转 Model List
|
||||||
|
*/
|
||||||
|
public static List<Payload> toModelList(List<PayloadEntity> entityList)
|
||||||
|
{
|
||||||
|
if (entityList == null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return entityList.stream().map(PayloadDomainConvert::toModel).collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IAircraftDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.AircraftDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.Aircraft;
|
||||||
|
import com.ruoyi.device.mapper.AircraftMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.AircraftEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class AircraftDomainImpl implements IAircraftDomain
|
||||||
|
{
|
||||||
|
private final AircraftMapper aircraftMapper;
|
||||||
|
|
||||||
|
public AircraftDomainImpl(AircraftMapper aircraftMapper)
|
||||||
|
{
|
||||||
|
this.aircraftMapper = aircraftMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Aircraft> selectAircraftList(Aircraft aircraft)
|
||||||
|
{
|
||||||
|
AircraftEntity entity = AircraftDomainConvert.toEntity(aircraft);
|
||||||
|
List<AircraftEntity> entityList = aircraftMapper.selectAircraftList(entity);
|
||||||
|
return AircraftDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Aircraft selectAircraftByAircraftId(Long aircraftId)
|
||||||
|
{
|
||||||
|
AircraftEntity entity = aircraftMapper.selectAircraftByAircraftId(aircraftId);
|
||||||
|
return AircraftDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertAircraft(Aircraft aircraft)
|
||||||
|
{
|
||||||
|
AircraftEntity entity = AircraftDomainConvert.toEntity(aircraft);
|
||||||
|
return aircraftMapper.insertAircraft(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateAircraft(Aircraft aircraft)
|
||||||
|
{
|
||||||
|
AircraftEntity entity = AircraftDomainConvert.toEntity(aircraft);
|
||||||
|
return aircraftMapper.updateAircraft(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteAircraftByAircraftId(Long aircraftId)
|
||||||
|
{
|
||||||
|
return aircraftMapper.deleteAircraftByAircraftId(aircraftId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteAircraftByAircraftIds(Long[] aircraftIds)
|
||||||
|
{
|
||||||
|
return aircraftMapper.deleteAircraftByAircraftIds(aircraftIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,89 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IAircraftPayloadDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.AircraftPayloadDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.AircraftPayload;
|
||||||
|
import com.ruoyi.device.mapper.AircraftPayloadMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.AircraftPayloadEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机挂载关联Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class AircraftPayloadDomainImpl implements IAircraftPayloadDomain
|
||||||
|
{
|
||||||
|
private final AircraftPayloadMapper aircraftPayloadMapper;
|
||||||
|
|
||||||
|
public AircraftPayloadDomainImpl(AircraftPayloadMapper aircraftPayloadMapper)
|
||||||
|
{
|
||||||
|
this.aircraftPayloadMapper = aircraftPayloadMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AircraftPayload> selectAircraftPayloadList(AircraftPayload aircraftPayload)
|
||||||
|
{
|
||||||
|
AircraftPayloadEntity entity = AircraftPayloadDomainConvert.toEntity(aircraftPayload);
|
||||||
|
List<AircraftPayloadEntity> entityList = aircraftPayloadMapper.selectAircraftPayloadList(entity);
|
||||||
|
return AircraftPayloadDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AircraftPayload selectAircraftPayloadById(Long id)
|
||||||
|
{
|
||||||
|
AircraftPayloadEntity entity = aircraftPayloadMapper.selectAircraftPayloadById(id);
|
||||||
|
return AircraftPayloadDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AircraftPayload> selectAircraftPayloadByAircraftId(Long aircraftId)
|
||||||
|
{
|
||||||
|
List<AircraftPayloadEntity> entityList = aircraftPayloadMapper.selectAircraftPayloadListByAircraftId(aircraftId);
|
||||||
|
return AircraftPayloadDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AircraftPayload> selectAircraftPayloadByPayloadId(Long payloadId)
|
||||||
|
{
|
||||||
|
List<AircraftPayloadEntity> entityList = aircraftPayloadMapper.selectAircraftPayloadListByPayloadId(payloadId);
|
||||||
|
return AircraftPayloadDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<AircraftPayload> selectAircraftPayloadByDockId(Long dockId)
|
||||||
|
{
|
||||||
|
List<AircraftPayloadEntity> entityList = aircraftPayloadMapper.selectAircraftPayloadListByDockId(dockId);
|
||||||
|
return AircraftPayloadDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertAircraftPayload(AircraftPayload aircraftPayload)
|
||||||
|
{
|
||||||
|
AircraftPayloadEntity entity = AircraftPayloadDomainConvert.toEntity(aircraftPayload);
|
||||||
|
return aircraftPayloadMapper.insertAircraftPayload(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateAircraftPayload(AircraftPayload aircraftPayload)
|
||||||
|
{
|
||||||
|
AircraftPayloadEntity entity = AircraftPayloadDomainConvert.toEntity(aircraftPayload);
|
||||||
|
return aircraftPayloadMapper.updateAircraftPayload(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteAircraftPayloadById(Long id)
|
||||||
|
{
|
||||||
|
return aircraftPayloadMapper.deleteAircraftPayloadById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteAircraftPayloadByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return aircraftPayloadMapper.deleteAircraftPayloadByIds(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IDeviceDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.DeviceDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.Device;
|
||||||
|
import com.ruoyi.device.mapper.DeviceMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.DeviceEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class DeviceDomainImpl implements IDeviceDomain
|
||||||
|
{
|
||||||
|
private final DeviceMapper deviceMapper;
|
||||||
|
|
||||||
|
public DeviceDomainImpl(DeviceMapper deviceMapper)
|
||||||
|
{
|
||||||
|
this.deviceMapper = deviceMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Device> selectDeviceList(Device device)
|
||||||
|
{
|
||||||
|
DeviceEntity entity = DeviceDomainConvert.toEntity(device);
|
||||||
|
List<DeviceEntity> entityList = deviceMapper.selectDeviceList(entity);
|
||||||
|
return DeviceDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Device selectDeviceByDeviceId(Long deviceId)
|
||||||
|
{
|
||||||
|
DeviceEntity entity = deviceMapper.selectDeviceByDeviceId(deviceId);
|
||||||
|
return DeviceDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertDevice(Device device)
|
||||||
|
{
|
||||||
|
DeviceEntity entity = DeviceDomainConvert.toEntity(device);
|
||||||
|
return deviceMapper.insertDevice(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateDevice(Device device)
|
||||||
|
{
|
||||||
|
DeviceEntity entity = DeviceDomainConvert.toEntity(device);
|
||||||
|
return deviceMapper.updateDevice(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceByDeviceId(Long deviceId)
|
||||||
|
{
|
||||||
|
return deviceMapper.deleteDeviceByDeviceId(deviceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceByDeviceIds(Long[] deviceIds)
|
||||||
|
{
|
||||||
|
return deviceMapper.deleteDeviceByDeviceIds(deviceIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IDockAircraftDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.DockAircraftDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.DockAircraft;
|
||||||
|
import com.ruoyi.device.mapper.DockAircraftMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.DockAircraftEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场无人机关联Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class DockAircraftDomainImpl implements IDockAircraftDomain
|
||||||
|
{
|
||||||
|
private final DockAircraftMapper dockAircraftMapper;
|
||||||
|
|
||||||
|
public DockAircraftDomainImpl(DockAircraftMapper dockAircraftMapper)
|
||||||
|
{
|
||||||
|
this.dockAircraftMapper = dockAircraftMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DockAircraft> selectDockAircraftList(DockAircraft dockAircraft)
|
||||||
|
{
|
||||||
|
DockAircraftEntity entity = DockAircraftDomainConvert.toEntity(dockAircraft);
|
||||||
|
List<DockAircraftEntity> entityList = dockAircraftMapper.selectDockAircraftList(entity);
|
||||||
|
return DockAircraftDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DockAircraft selectDockAircraftById(Long id)
|
||||||
|
{
|
||||||
|
DockAircraftEntity entity = dockAircraftMapper.selectDockAircraftById(id);
|
||||||
|
return DockAircraftDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DockAircraft> selectDockAircraftByDockId(Long dockId)
|
||||||
|
{
|
||||||
|
List<DockAircraftEntity> entityList = dockAircraftMapper.selectDockAircraftListByDockId(dockId);
|
||||||
|
return DockAircraftDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DockAircraft> selectDockAircraftByAircraftId(Long aircraftId)
|
||||||
|
{
|
||||||
|
List<DockAircraftEntity> entityList = dockAircraftMapper.selectDockAircraftListByAircraftId(aircraftId);
|
||||||
|
return DockAircraftDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertDockAircraft(DockAircraft dockAircraft)
|
||||||
|
{
|
||||||
|
DockAircraftEntity entity = DockAircraftDomainConvert.toEntity(dockAircraft);
|
||||||
|
return dockAircraftMapper.insertDockAircraft(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateDockAircraft(DockAircraft dockAircraft)
|
||||||
|
{
|
||||||
|
DockAircraftEntity entity = DockAircraftDomainConvert.toEntity(dockAircraft);
|
||||||
|
return dockAircraftMapper.updateDockAircraft(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDockAircraftById(Long id)
|
||||||
|
{
|
||||||
|
return dockAircraftMapper.deleteDockAircraftById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDockAircraftByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return dockAircraftMapper.deleteDockAircraftByIds(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IDockDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.DockDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.Dock;
|
||||||
|
import com.ruoyi.device.mapper.DockMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.DockEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class DockDomainImpl implements IDockDomain
|
||||||
|
{
|
||||||
|
private final DockMapper dockMapper;
|
||||||
|
|
||||||
|
public DockDomainImpl(DockMapper dockMapper)
|
||||||
|
{
|
||||||
|
this.dockMapper = dockMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Dock> selectDockList(Dock dock)
|
||||||
|
{
|
||||||
|
DockEntity entity = DockDomainConvert.toEntity(dock);
|
||||||
|
List<DockEntity> entityList = dockMapper.selectDockList(entity);
|
||||||
|
return DockDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Dock selectDockByDockId(Long dockId)
|
||||||
|
{
|
||||||
|
DockEntity entity = dockMapper.selectDockByDockId(dockId);
|
||||||
|
return DockDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertDock(Dock dock)
|
||||||
|
{
|
||||||
|
DockEntity entity = DockDomainConvert.toEntity(dock);
|
||||||
|
return dockMapper.insertDock(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateDock(Dock dock)
|
||||||
|
{
|
||||||
|
DockEntity entity = DockDomainConvert.toEntity(dock);
|
||||||
|
return dockMapper.updateDock(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDockByDockId(Long dockId)
|
||||||
|
{
|
||||||
|
return dockMapper.deleteDockByDockId(dockId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDockByDockIds(Long[] dockIds)
|
||||||
|
{
|
||||||
|
return dockMapper.deleteDockByDockIds(dockIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,82 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IDockGroupDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.DockGroupDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.DockGroup;
|
||||||
|
import com.ruoyi.device.mapper.DockGroupMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.DockGroupEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场分组关联Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class DockGroupDomainImpl implements IDockGroupDomain
|
||||||
|
{
|
||||||
|
private final DockGroupMapper dockGroupMapper;
|
||||||
|
|
||||||
|
public DockGroupDomainImpl(DockGroupMapper dockGroupMapper)
|
||||||
|
{
|
||||||
|
this.dockGroupMapper = dockGroupMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DockGroup> selectDockGroupList(DockGroup dockGroup)
|
||||||
|
{
|
||||||
|
DockGroupEntity entity = DockGroupDomainConvert.toEntity(dockGroup);
|
||||||
|
List<DockGroupEntity> entityList = dockGroupMapper.selectDockGroupList(entity);
|
||||||
|
return DockGroupDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DockGroup selectDockGroupById(Long id)
|
||||||
|
{
|
||||||
|
DockGroupEntity entity = dockGroupMapper.selectDockGroupById(id);
|
||||||
|
return DockGroupDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DockGroup> selectDockGroupByDockId(Long dockId)
|
||||||
|
{
|
||||||
|
List<DockGroupEntity> entityList = dockGroupMapper.selectDockGroupListByDockId(dockId);
|
||||||
|
return DockGroupDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<DockGroup> selectDockGroupByGroupId(Long groupId)
|
||||||
|
{
|
||||||
|
List<DockGroupEntity> entityList = dockGroupMapper.selectDockGroupListByGroupId(groupId);
|
||||||
|
return DockGroupDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertDockGroup(DockGroup dockGroup)
|
||||||
|
{
|
||||||
|
DockGroupEntity entity = DockGroupDomainConvert.toEntity(dockGroup);
|
||||||
|
return dockGroupMapper.insertDockGroup(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateDockGroup(DockGroup dockGroup)
|
||||||
|
{
|
||||||
|
DockGroupEntity entity = DockGroupDomainConvert.toEntity(dockGroup);
|
||||||
|
return dockGroupMapper.updateDockGroup(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDockGroupById(Long id)
|
||||||
|
{
|
||||||
|
return dockGroupMapper.deleteDockGroupById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteDockGroupByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return dockGroupMapper.deleteDockGroupByIds(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IGroupDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.GroupDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.Group;
|
||||||
|
import com.ruoyi.device.mapper.GroupMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.GroupEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class GroupDomainImpl implements IGroupDomain
|
||||||
|
{
|
||||||
|
private final GroupMapper groupMapper;
|
||||||
|
|
||||||
|
public GroupDomainImpl(GroupMapper groupMapper)
|
||||||
|
{
|
||||||
|
this.groupMapper = groupMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Group> selectGroupList(Group group)
|
||||||
|
{
|
||||||
|
GroupEntity entity = GroupDomainConvert.toEntity(group);
|
||||||
|
List<GroupEntity> entityList = groupMapper.selectGroupList(entity);
|
||||||
|
return GroupDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Group selectGroupByGroupId(Long groupId)
|
||||||
|
{
|
||||||
|
GroupEntity entity = groupMapper.selectGroupByGroupId(groupId);
|
||||||
|
return GroupDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertGroup(Group group)
|
||||||
|
{
|
||||||
|
GroupEntity entity = GroupDomainConvert.toEntity(group);
|
||||||
|
return groupMapper.insertGroup(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updateGroup(Group group)
|
||||||
|
{
|
||||||
|
GroupEntity entity = GroupDomainConvert.toEntity(group);
|
||||||
|
return groupMapper.updateGroup(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteGroupByGroupId(Long groupId)
|
||||||
|
{
|
||||||
|
return groupMapper.deleteGroupByGroupId(groupId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deleteGroupByGroupIds(Long[] groupIds)
|
||||||
|
{
|
||||||
|
return groupMapper.deleteGroupByGroupIds(groupIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,68 @@
|
||||||
|
package com.ruoyi.device.domain.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.device.domain.api.IPayloadDomain;
|
||||||
|
import com.ruoyi.device.domain.convert.PayloadDomainConvert;
|
||||||
|
import com.ruoyi.device.domain.model.Payload;
|
||||||
|
import com.ruoyi.device.mapper.PayloadMapper;
|
||||||
|
import com.ruoyi.device.mapper.entity.PayloadEntity;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 挂载Domain实现
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class PayloadDomainImpl implements IPayloadDomain
|
||||||
|
{
|
||||||
|
private final PayloadMapper payloadMapper;
|
||||||
|
|
||||||
|
public PayloadDomainImpl(PayloadMapper payloadMapper)
|
||||||
|
{
|
||||||
|
this.payloadMapper = payloadMapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<Payload> selectPayloadList(Payload payload)
|
||||||
|
{
|
||||||
|
PayloadEntity entity = PayloadDomainConvert.toEntity(payload);
|
||||||
|
List<PayloadEntity> entityList = payloadMapper.selectPayloadList(entity);
|
||||||
|
return PayloadDomainConvert.toModelList(entityList);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Payload selectPayloadByPayloadId(Long payloadId)
|
||||||
|
{
|
||||||
|
PayloadEntity entity = payloadMapper.selectPayloadByPayloadId(payloadId);
|
||||||
|
return PayloadDomainConvert.toModel(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int insertPayload(Payload payload)
|
||||||
|
{
|
||||||
|
PayloadEntity entity = PayloadDomainConvert.toEntity(payload);
|
||||||
|
return payloadMapper.insertPayload(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int updatePayload(Payload payload)
|
||||||
|
{
|
||||||
|
PayloadEntity entity = PayloadDomainConvert.toEntity(payload);
|
||||||
|
return payloadMapper.updatePayload(entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deletePayloadByPayloadId(Long payloadId)
|
||||||
|
{
|
||||||
|
return payloadMapper.deletePayloadByPayloadId(payloadId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int deletePayloadByPayloadIds(Long[] payloadIds)
|
||||||
|
{
|
||||||
|
return payloadMapper.deletePayloadByPayloadIds(payloadIds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,120 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class Aircraft implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 无人机主键 */
|
||||||
|
private Long aircraftId;
|
||||||
|
|
||||||
|
/** 无人机名称 */
|
||||||
|
private String aircraftName;
|
||||||
|
|
||||||
|
/** 设备表主键 */
|
||||||
|
private Long deviceId;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getAircraftId()
|
||||||
|
{
|
||||||
|
return aircraftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftId(Long aircraftId)
|
||||||
|
{
|
||||||
|
this.aircraftId = aircraftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAircraftName()
|
||||||
|
{
|
||||||
|
return aircraftName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftName(String aircraftName)
|
||||||
|
{
|
||||||
|
this.aircraftName = aircraftName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeviceId()
|
||||||
|
{
|
||||||
|
return deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceId(Long deviceId)
|
||||||
|
{
|
||||||
|
this.deviceId = deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,133 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 无人机挂载关联领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class AircraftPayload implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 关联主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 无人机主键 */
|
||||||
|
private Long aircraftId;
|
||||||
|
|
||||||
|
/** 挂载主键 */
|
||||||
|
private Long payloadId;
|
||||||
|
|
||||||
|
/** 机场主键 */
|
||||||
|
private Long dockId;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAircraftId()
|
||||||
|
{
|
||||||
|
return aircraftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftId(Long aircraftId)
|
||||||
|
{
|
||||||
|
this.aircraftId = aircraftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPayloadId()
|
||||||
|
{
|
||||||
|
return payloadId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayloadId(Long payloadId)
|
||||||
|
{
|
||||||
|
this.payloadId = payloadId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDockId()
|
||||||
|
{
|
||||||
|
return dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDockId(Long dockId)
|
||||||
|
{
|
||||||
|
this.dockId = dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,198 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class Device implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 设备主键 */
|
||||||
|
private Long deviceId;
|
||||||
|
|
||||||
|
/** 设备名称 */
|
||||||
|
private String deviceName;
|
||||||
|
|
||||||
|
/** IOT中的设备ID */
|
||||||
|
private String iotDeviceId;
|
||||||
|
|
||||||
|
/** 设备类型 */
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/** 设备厂商 */
|
||||||
|
private String deviceManufacturer;
|
||||||
|
|
||||||
|
/** 设备型号 */
|
||||||
|
private String deviceModel;
|
||||||
|
|
||||||
|
/** 设备SN号 */
|
||||||
|
private String deviceSn;
|
||||||
|
|
||||||
|
/** 所属部门主键 */
|
||||||
|
private Long deptId;
|
||||||
|
|
||||||
|
/** 网关 */
|
||||||
|
private String gateway;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getDeviceId()
|
||||||
|
{
|
||||||
|
return deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceId(Long deviceId)
|
||||||
|
{
|
||||||
|
this.deviceId = deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceName()
|
||||||
|
{
|
||||||
|
return deviceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceName(String deviceName)
|
||||||
|
{
|
||||||
|
this.deviceName = deviceName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIotDeviceId()
|
||||||
|
{
|
||||||
|
return iotDeviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIotDeviceId(String iotDeviceId)
|
||||||
|
{
|
||||||
|
this.iotDeviceId = iotDeviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceType()
|
||||||
|
{
|
||||||
|
return deviceType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceType(String deviceType)
|
||||||
|
{
|
||||||
|
this.deviceType = deviceType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceManufacturer()
|
||||||
|
{
|
||||||
|
return deviceManufacturer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceManufacturer(String deviceManufacturer)
|
||||||
|
{
|
||||||
|
this.deviceManufacturer = deviceManufacturer;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceModel()
|
||||||
|
{
|
||||||
|
return deviceModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceModel(String deviceModel)
|
||||||
|
{
|
||||||
|
this.deviceModel = deviceModel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDeviceSn()
|
||||||
|
{
|
||||||
|
return deviceSn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceSn(String deviceSn)
|
||||||
|
{
|
||||||
|
this.deviceSn = deviceSn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeptId()
|
||||||
|
{
|
||||||
|
return deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeptId(Long deptId)
|
||||||
|
{
|
||||||
|
this.deptId = deptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGateway()
|
||||||
|
{
|
||||||
|
return gateway;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGateway(String gateway)
|
||||||
|
{
|
||||||
|
this.gateway = gateway;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,133 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class Dock implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 机场主键 */
|
||||||
|
private Long dockId;
|
||||||
|
|
||||||
|
/** 机场名称 */
|
||||||
|
private String dockName;
|
||||||
|
|
||||||
|
/** 机场位置 */
|
||||||
|
private String dockLocation;
|
||||||
|
|
||||||
|
/** 设备表主键 */
|
||||||
|
private Long deviceId;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getDockId()
|
||||||
|
{
|
||||||
|
return dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDockId(Long dockId)
|
||||||
|
{
|
||||||
|
this.dockId = dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDockName()
|
||||||
|
{
|
||||||
|
return dockName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDockName(String dockName)
|
||||||
|
{
|
||||||
|
this.dockName = dockName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDockLocation()
|
||||||
|
{
|
||||||
|
return dockLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDockLocation(String dockLocation)
|
||||||
|
{
|
||||||
|
this.dockLocation = dockLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDeviceId()
|
||||||
|
{
|
||||||
|
return deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDeviceId(Long deviceId)
|
||||||
|
{
|
||||||
|
this.deviceId = deviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,120 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场无人机关联领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class DockAircraft implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 关联主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 机场主键 */
|
||||||
|
private Long dockId;
|
||||||
|
|
||||||
|
/** 无人机主键 */
|
||||||
|
private Long aircraftId;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDockId()
|
||||||
|
{
|
||||||
|
return dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDockId(Long dockId)
|
||||||
|
{
|
||||||
|
this.dockId = dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getAircraftId()
|
||||||
|
{
|
||||||
|
return aircraftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAircraftId(Long aircraftId)
|
||||||
|
{
|
||||||
|
this.aircraftId = aircraftId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,120 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 机场分组关联领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class DockGroup implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 关联主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 机场主键 */
|
||||||
|
private Long dockId;
|
||||||
|
|
||||||
|
/** 分组主键 */
|
||||||
|
private Long groupId;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getDockId()
|
||||||
|
{
|
||||||
|
return dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDockId(Long dockId)
|
||||||
|
{
|
||||||
|
this.dockId = dockId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getGroupId()
|
||||||
|
{
|
||||||
|
return groupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupId(Long groupId)
|
||||||
|
{
|
||||||
|
this.groupId = groupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,107 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分组领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class Group implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 分组主键 */
|
||||||
|
private Long groupId;
|
||||||
|
|
||||||
|
/** 分组名称 */
|
||||||
|
private String groupName;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getGroupId()
|
||||||
|
{
|
||||||
|
return groupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupId(Long groupId)
|
||||||
|
{
|
||||||
|
this.groupId = groupId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGroupName()
|
||||||
|
{
|
||||||
|
return groupName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGroupName(String groupName)
|
||||||
|
{
|
||||||
|
this.groupName = groupName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,172 @@
|
||||||
|
package com.ruoyi.device.domain.model;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 挂载领域模型
|
||||||
|
* Domain 层对外暴露的对象
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2026-01-16
|
||||||
|
*/
|
||||||
|
public class Payload implements Serializable
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 挂载主键 */
|
||||||
|
private Long payloadId;
|
||||||
|
|
||||||
|
/** 挂载名称 */
|
||||||
|
private String payloadName;
|
||||||
|
|
||||||
|
/** 挂载类型 */
|
||||||
|
private String payloadType;
|
||||||
|
|
||||||
|
/** 挂载显示名称 */
|
||||||
|
private String payloadDisplayName;
|
||||||
|
|
||||||
|
/** 挂载动态信息 */
|
||||||
|
private String payloadDynamicInfo;
|
||||||
|
|
||||||
|
/** 挂载SN号 */
|
||||||
|
private String payloadSn;
|
||||||
|
|
||||||
|
/** IOT中的设备ID */
|
||||||
|
private String iotDeviceId;
|
||||||
|
|
||||||
|
/** 创建者 */
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
/** 创建时间 */
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
/** 更新者 */
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
/** 更新时间 */
|
||||||
|
private Date updateTime;
|
||||||
|
|
||||||
|
/** 备注 */
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
public Long getPayloadId()
|
||||||
|
{
|
||||||
|
return payloadId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayloadId(Long payloadId)
|
||||||
|
{
|
||||||
|
this.payloadId = payloadId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayloadName()
|
||||||
|
{
|
||||||
|
return payloadName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayloadName(String payloadName)
|
||||||
|
{
|
||||||
|
this.payloadName = payloadName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayloadType()
|
||||||
|
{
|
||||||
|
return payloadType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayloadType(String payloadType)
|
||||||
|
{
|
||||||
|
this.payloadType = payloadType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayloadDisplayName()
|
||||||
|
{
|
||||||
|
return payloadDisplayName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayloadDisplayName(String payloadDisplayName)
|
||||||
|
{
|
||||||
|
this.payloadDisplayName = payloadDisplayName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayloadDynamicInfo()
|
||||||
|
{
|
||||||
|
return payloadDynamicInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayloadDynamicInfo(String payloadDynamicInfo)
|
||||||
|
{
|
||||||
|
this.payloadDynamicInfo = payloadDynamicInfo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPayloadSn()
|
||||||
|
{
|
||||||
|
return payloadSn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPayloadSn(String payloadSn)
|
||||||
|
{
|
||||||
|
this.payloadSn = payloadSn;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getIotDeviceId()
|
||||||
|
{
|
||||||
|
return iotDeviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIotDeviceId(String iotDeviceId)
|
||||||
|
{
|
||||||
|
this.iotDeviceId = iotDeviceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCreateBy()
|
||||||
|
{
|
||||||
|
return createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateBy(String createBy)
|
||||||
|
{
|
||||||
|
this.createBy = createBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getCreateTime()
|
||||||
|
{
|
||||||
|
return createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCreateTime(Date createTime)
|
||||||
|
{
|
||||||
|
this.createTime = createTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUpdateBy()
|
||||||
|
{
|
||||||
|
return updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateBy(String updateBy)
|
||||||
|
{
|
||||||
|
this.updateBy = updateBy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getUpdateTime()
|
||||||
|
{
|
||||||
|
return updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUpdateTime(Date updateTime)
|
||||||
|
{
|
||||||
|
this.updateTime = updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getRemark()
|
||||||
|
{
|
||||||
|
return remark;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setRemark(String remark)
|
||||||
|
{
|
||||||
|
this.remark = remark;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue