feat(ems): 添加告警、能耗记录和能源费率模块- 新增告警实体类 EmsAlert 及相关业务对象、控制器、映射器和服务实现
- 新增能耗记录实体类 EmsEnergyConsumption 及相关业务对象、控制器、映射器和服务实现 - 新增能源费率实体类 EmsEnergyRate 及相关业务对象、控制器、映射器和服务实现 - 实现各模块的基础 CRUD 功能,包括分页查询、导出 Excel 等操作 - 配置 MyBatis 映射文件及逻辑删除支持
This commit is contained in:
15
klp-ems/src/main/java/com/klp/ems/mapper/EmsAlertMapper.java
Normal file
15
klp-ems/src/main/java/com/klp/ems/mapper/EmsAlertMapper.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.klp.ems.mapper;
|
||||
|
||||
import com.klp.ems.domain.EmsAlert;
|
||||
import com.klp.ems.domain.vo.EmsAlertVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 告警Mapper接口
|
||||
*
|
||||
* @author klp
|
||||
* @date 2025-09-28
|
||||
*/
|
||||
public interface EmsAlertMapper extends BaseMapperPlus<EmsAlertMapper, EmsAlert, EmsAlertVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.klp.ems.mapper;
|
||||
|
||||
import com.klp.ems.domain.EmsEnergyConsumption;
|
||||
import com.klp.ems.domain.vo.EmsEnergyConsumptionVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 能耗记录Mapper接口
|
||||
*
|
||||
* @author Joshi
|
||||
* @date 2025-09-28
|
||||
*/
|
||||
public interface EmsEnergyConsumptionMapper extends BaseMapperPlus<EmsEnergyConsumptionMapper, EmsEnergyConsumption, EmsEnergyConsumptionVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.klp.ems.mapper;
|
||||
|
||||
import com.klp.ems.domain.EmsEnergyRate;
|
||||
import com.klp.ems.domain.vo.EmsEnergyRateVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 能源费率(currency 为 INT:0=CNY,1=USD,2=EUR)Mapper接口
|
||||
*
|
||||
* @author Joshi
|
||||
* @date 2025-09-28
|
||||
*/
|
||||
public interface EmsEnergyRateMapper extends BaseMapperPlus<EmsEnergyRateMapper, EmsEnergyRate, EmsEnergyRateVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.klp.ems.mapper;
|
||||
|
||||
import com.klp.ems.domain.EmsEnergyType;
|
||||
import com.klp.ems.domain.vo.EmsEnergyTypeVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 能源类型(阈值已移除)Mapper接口
|
||||
*
|
||||
* @author Joshi
|
||||
* @date 2025-09-28
|
||||
*/
|
||||
public interface EmsEnergyTypeMapper extends BaseMapperPlus<EmsEnergyTypeMapper, EmsEnergyType, EmsEnergyTypeVo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.klp.ems.mapper;
|
||||
|
||||
import com.klp.ems.domain.EmsLocation;
|
||||
import com.klp.ems.domain.vo.EmsLocationVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 位置Mapper接口
|
||||
*
|
||||
* @author Joshi
|
||||
* @date 2025-09-28
|
||||
*/
|
||||
public interface EmsLocationMapper extends BaseMapperPlus<EmsLocationMapper, EmsLocation, EmsLocationVo> {
|
||||
|
||||
}
|
||||
15
klp-ems/src/main/java/com/klp/ems/mapper/EmsMeterMapper.java
Normal file
15
klp-ems/src/main/java/com/klp/ems/mapper/EmsMeterMapper.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package com.klp.ems.mapper;
|
||||
|
||||
import com.klp.ems.domain.EmsMeter;
|
||||
import com.klp.ems.domain.vo.EmsMeterVo;
|
||||
import com.klp.common.core.mapper.BaseMapperPlus;
|
||||
|
||||
/**
|
||||
* 计量设备(阈值移至此处)Mapper接口
|
||||
*
|
||||
* @author Joshi
|
||||
* @date 2025-09-28
|
||||
*/
|
||||
public interface EmsMeterMapper extends BaseMapperPlus<EmsMeterMapper, EmsMeter, EmsMeterVo> {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user