新增算法布点模块
This commit is contained in:
parent
7928e671de
commit
90254b22bb
@ -0,0 +1,20 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/algorithm/algorithm-arrange")
|
||||||
|
public class AlgorithmArrangeController {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/algorithm/algorithm-arrange-device")
|
||||||
|
public class AlgorithmArrangeDeviceController {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,115 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@TableName("iis_algorithm_arrange")
|
||||||
|
public class AlgorithmArrange implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* uuid
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 布点方案名称
|
||||||
|
*/
|
||||||
|
private String arrangeName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 变电站id
|
||||||
|
*/
|
||||||
|
private String stationId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 变电站名称
|
||||||
|
*/
|
||||||
|
private String stationName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 和中台对应资源 ID 保持一致
|
||||||
|
*/
|
||||||
|
private String stationCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 变电站类型
|
||||||
|
*/
|
||||||
|
private String stationType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 电压等级
|
||||||
|
*/
|
||||||
|
private String voltLevel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 业务类型;1:远程智能巡视;2:一次设备在线监测;3:智能锁控;4:动环监测
|
||||||
|
*/
|
||||||
|
private String businessType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主设备类型,逗号分隔
|
||||||
|
*/
|
||||||
|
private String deviceTypeList;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 变电站平面原图地址
|
||||||
|
*/
|
||||||
|
private String imageUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 变电站布点图地址
|
||||||
|
*/
|
||||||
|
private String arrangeImageUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否有图纸0:无;1:有
|
||||||
|
*/
|
||||||
|
private String isImageFlag;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据状态
|
||||||
|
*/
|
||||||
|
private String datastatus;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改人
|
||||||
|
*/
|
||||||
|
private String lastmodifier;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 最近修改时间
|
||||||
|
*/
|
||||||
|
private LocalDateTime lastmodifydate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备用1(排序编号)
|
||||||
|
*/
|
||||||
|
private Integer custom1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备用2
|
||||||
|
*/
|
||||||
|
private String custom2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 备用3
|
||||||
|
*/
|
||||||
|
private String custom3;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.domain;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@TableName("iis_algorithm_arrange_device")
|
||||||
|
public class AlgorithmArrangeDevice implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* uuid
|
||||||
|
*/
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 布点id
|
||||||
|
*/
|
||||||
|
private String arrangeId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主设备id
|
||||||
|
*/
|
||||||
|
private String mainDeviceId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主设备类型
|
||||||
|
*/
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主设备名称
|
||||||
|
*/
|
||||||
|
private String mainDeviceName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备类型;1:摄像机;2:声纹传感器;3:局放传感器;4:温湿度传感器
|
||||||
|
*/
|
||||||
|
private String patroldeviceType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备坐标;{"x":1868,"y":1060}
|
||||||
|
*/
|
||||||
|
private String patroldevicePos;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 设备描述
|
||||||
|
*/
|
||||||
|
private String patroldeviceDes;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.mapper;
|
||||||
|
|
||||||
|
import com.yfd.platform.modules.algorithm.domain.AlgorithmArrangeDevice;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
public interface AlgorithmArrangeDeviceMapper extends BaseMapper<AlgorithmArrangeDevice> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.mapper;
|
||||||
|
|
||||||
|
import com.yfd.platform.modules.algorithm.domain.AlgorithmArrange;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
public interface AlgorithmArrangeMapper extends BaseMapper<AlgorithmArrange> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.service;
|
||||||
|
|
||||||
|
import com.yfd.platform.modules.algorithm.domain.AlgorithmArrangeDevice;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
public interface IAlgorithmArrangeDeviceService extends IService<AlgorithmArrangeDevice> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.service;
|
||||||
|
|
||||||
|
import com.yfd.platform.modules.algorithm.domain.AlgorithmArrange;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
public interface IAlgorithmArrangeService extends IService<AlgorithmArrange> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.service.impl;
|
||||||
|
|
||||||
|
import com.yfd.platform.modules.algorithm.domain.AlgorithmArrangeDevice;
|
||||||
|
import com.yfd.platform.modules.algorithm.mapper.AlgorithmArrangeDeviceMapper;
|
||||||
|
import com.yfd.platform.modules.algorithm.service.IAlgorithmArrangeDeviceService;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AlgorithmArrangeDeviceServiceImpl extends ServiceImpl<AlgorithmArrangeDeviceMapper, AlgorithmArrangeDevice> implements IAlgorithmArrangeDeviceService {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.yfd.platform.modules.algorithm.service.impl;
|
||||||
|
|
||||||
|
import com.yfd.platform.modules.algorithm.domain.AlgorithmArrange;
|
||||||
|
import com.yfd.platform.modules.algorithm.mapper.AlgorithmArrangeMapper;
|
||||||
|
import com.yfd.platform.modules.algorithm.service.IAlgorithmArrangeService;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhengsl
|
||||||
|
* @since 2025-06-06
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AlgorithmArrangeServiceImpl extends ServiceImpl<AlgorithmArrangeMapper, AlgorithmArrange> implements IAlgorithmArrangeService {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.yfd.platform.modules.algorithm.mapper.AlgorithmArrangeDeviceMapper">
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.yfd.platform.modules.algorithm.mapper.AlgorithmArrangeMapper">
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue
Block a user