refactor(ems):重构ems模块分页查询功能
-为多个基础实体类添加 Lombok 注解简化代码 - 引入 MyBatis-Plus 注解优化数据库映射 - 统一调整 Controller 层请求路径前缀 - 实现基于 MPJLambdaWrapper 的分页查询方法 - 构建通用查询条件构造器支持动态筛选 - 移除冗余的 remark 字段序列化逻辑hwmom-htk
parent
864edab0ea
commit
502088b009
@ -0,0 +1,19 @@
|
||||
package org.dromara;
|
||||
|
||||
// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
|
||||
// then press Enter. You can now see whitespace characters in your code.
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
// Press Alt+Enter with your caret at the highlighted text to see how
|
||||
// IntelliJ IDEA suggests fixing it.
|
||||
System.out.printf("Hello and welcome!");
|
||||
|
||||
// Press Shift+F10 or click the green arrow button in the gutter to run the code.
|
||||
for (int i = 1; i <= 5; i++) {
|
||||
|
||||
// Press Shift+F9 to start debugging your code. We have set one breakpoint
|
||||
// for you, but you can always add more by pressing Ctrl+F8.
|
||||
System.out.println("i = " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package org.dromara.ems;
|
||||
|
||||
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
|
||||
import org.dromara.common.properties.MesProperties;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
|
||||
/**
|
||||
* 系统模块
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@EnableDubbo
|
||||
@SpringBootApplication
|
||||
@EnableConfigurationProperties(MesProperties.class)
|
||||
public class HwMomEmsApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication application = new SpringApplication(HwMomEmsApplication.class);
|
||||
application.setApplicationStartup(new BufferingApplicationStartup(2048));
|
||||
application.run(args);
|
||||
System.out.println("(♥◠‿◠)ノ゙ 能源模块启动成功 ლ(´ڡ`ლ)゙ ");
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,112 @@
|
||||
package org.dromara.ems.report.domain;
|
||||
|
||||
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
|
||||
/**
|
||||
* 峰平谷耗量报表
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2023-10-12
|
||||
*/
|
||||
public class PeaksValleysConsumptionReport extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 统计单元编号
|
||||
*/
|
||||
//@ExcelProperty(value = "统计单元编号")
|
||||
private String workUnitCode;
|
||||
|
||||
/**
|
||||
* 统计单元名称
|
||||
*/
|
||||
//@ExcelProperty(value = "统计单元名称")
|
||||
private String workUnitName;
|
||||
|
||||
/**
|
||||
* 统计日期
|
||||
*/
|
||||
//@ExcelProperty(value = "统计日期")
|
||||
private String pointTime;
|
||||
|
||||
/**
|
||||
* 分时类型
|
||||
*/
|
||||
//@ExcelProperty(value = "分时类型")
|
||||
private String priceType;
|
||||
|
||||
/**
|
||||
* 耗量(kwh)
|
||||
*/
|
||||
//@ExcelProperty(value = "耗量(kwh)")
|
||||
private BigDecimal expend;
|
||||
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
//@ExcelProperty(value = "价格")
|
||||
private BigDecimal price;
|
||||
|
||||
public String getWorkUnitCode() {
|
||||
return workUnitCode;
|
||||
}
|
||||
|
||||
public void setWorkUnitCode(String workUnitCode) {
|
||||
this.workUnitCode = workUnitCode;
|
||||
}
|
||||
|
||||
public String getWorkUnitName() {
|
||||
return workUnitName;
|
||||
}
|
||||
|
||||
public void setWorkUnitName(String workUnitName) {
|
||||
this.workUnitName = workUnitName;
|
||||
}
|
||||
|
||||
public String getPointTime() {
|
||||
return pointTime;
|
||||
}
|
||||
|
||||
public void setPointTime(String pointTime) {
|
||||
this.pointTime = pointTime;
|
||||
}
|
||||
|
||||
public String getPriceType() {
|
||||
return priceType;
|
||||
}
|
||||
|
||||
public void setPriceType(String priceType) {
|
||||
this.priceType = priceType;
|
||||
}
|
||||
|
||||
public BigDecimal getExpend() {
|
||||
return expend;
|
||||
}
|
||||
|
||||
public void setExpend(BigDecimal expend) {
|
||||
this.expend = expend;
|
||||
}
|
||||
|
||||
public BigDecimal getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(BigDecimal price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PeaksValleysConsumptionReport{" +
|
||||
"workUnitCode='" + workUnitCode + '\'' +
|
||||
", workUnitName='" + workUnitName + '\'' +
|
||||
", pointTime='" + pointTime + '\'' +
|
||||
", priceType='" + priceType + '\'' +
|
||||
", expend=" + expend +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue