guoqiang 7 hónapja
szülő
commit
81b3cc3a44

+ 113 - 0
jeecg-module-gather/src/main/java/org/jeecg/modules/fpgJob/entity/FpgLeanModel.java

@@ -0,0 +1,113 @@
+package org.jeecg.modules.fpgJob.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+
+/**
+ * @Description: 峰平谷模型
+ * @Author: jeecg-boot
+ * @Date:   2024-10-31
+ * @Version: V1.0
+ */
+@Data
+@TableName("fpg_lean_model")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="fpg_lean_model对象", description="峰平谷模型")
+public class FpgLeanModel implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键")
+    private String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+	/**创建日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建日期")
+    private Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+	/**更新日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新日期")
+    private Date updateTime;
+	/**所属部门*/
+    @ApiModelProperty(value = "所属部门")
+    private String sysOrgCode;
+	/**名称*/
+	@Excel(name = "名称", width = 15)
+    @ApiModelProperty(value = "名称")
+    private String title;
+	/**模型编号*/
+	@Excel(name = "模型编号", width = 15)
+    @ApiModelProperty(value = "模型编号")
+    private String leanModelCode;
+	/**功率 1: 开启 2: 关闭*/
+	@Excel(name = "功率 1: 开启 2: 关闭", width = 15)
+    @ApiModelProperty(value = "功率 1: 开启 2: 关闭")
+    private Integer power;
+	/**统计单位*/
+	@Excel(name = "统计单位", width = 15)
+    @Dict(dicCode = "lean_model_unit")
+    @ApiModelProperty(value = "统计单位")
+    private String totalUnit;
+	/**班次 1*/
+	@Excel(name = "班次 1", width = 15)
+    @Dict(dicCode = "lean_model_class")
+    @ApiModelProperty(value = "班次 1")
+    private String classUnit;
+	/**尖计费单价(元)*/
+	@Excel(name = "尖计费单价(元)", width = 15)
+    @ApiModelProperty(value = "尖计费单价(元)")
+    private BigDecimal topsPrice;
+	/**状态*/
+	@Excel(name = "状态", width = 15)
+    @ApiModelProperty(value = "状态")
+    private String status;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private String remark;
+	/**峰计费单价(元)*/
+	@Excel(name = "峰计费单价(元)", width = 15)
+    @ApiModelProperty(value = "峰计费单价(元)")
+    private BigDecimal peaksPrice;
+	/**平计费单价(元)*/
+	@Excel(name = "平计费单价(元)", width = 15)
+    @ApiModelProperty(value = "平计费单价(元)")
+    private BigDecimal flatPrice;
+	/**谷计费单价(元)*/
+	@Excel(name = "谷计费单价(元)", width = 15)
+    @ApiModelProperty(value = "谷计费单价(元)")
+    private BigDecimal valleysPrice;
+	/**核算占比% 1:开启 2: 关闭*/
+	@Excel(name = "核算占比% 1:开启 2: 关闭", width = 15)
+    @Dict(dicCode = "proportion_run_status")
+    @ApiModelProperty(value = "核算占比% 1:开启 2: 关闭")
+    private Integer proportion;
+	/**运行时长 1:开启 2: 关闭*/
+	@Excel(name = "运行时长 1:开启 2: 关闭", width = 15)
+    @Dict(dicCode = "proportion_run_status")
+    @ApiModelProperty(value = "运行时长 1:开启 2: 关闭")
+    private Integer runTime;
+}

+ 14 - 0
jeecg-module-gather/src/main/java/org/jeecg/modules/fpgJob/mapper/FpgLeanModelMapper.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.fpgJob.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.fpgJob.entity.FpgLeanModel;
+
+/**
+ * @Description: 峰平谷模型
+ * @Author: jeecg-boot
+ * @Date:   2024-10-31
+ * @Version: V1.0
+ */
+public interface FpgLeanModelMapper extends BaseMapper<FpgLeanModel> {
+
+}

+ 5 - 0
jeecg-module-gather/src/main/java/org/jeecg/modules/fpgJob/mapper/xml/FpgLeanModelMapper.xml

@@ -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="org.jeecg.modules.fpgJob.mapper.FpgLeanModelMapper">
+
+</mapper>

+ 14 - 0
jeecg-module-gather/src/main/java/org/jeecg/modules/fpgJob/service/IFpgLeanModelService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.fpgJob.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.fpgJob.entity.FpgLeanModel;
+
+/**
+ * @Description: 峰平谷模型
+ * @Author: jeecg-boot
+ * @Date:   2024-10-31
+ * @Version: V1.0
+ */
+public interface IFpgLeanModelService extends IService<FpgLeanModel> {
+
+}

+ 18 - 0
jeecg-module-gather/src/main/java/org/jeecg/modules/fpgJob/service/impl/FpgLeanModelServiceImpl.java

@@ -0,0 +1,18 @@
+package org.jeecg.modules.fpgJob.service.impl;
+
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.jeecg.modules.fpgJob.entity.FpgLeanModel;
+import org.jeecg.modules.fpgJob.mapper.FpgLeanModelMapper;
+import org.jeecg.modules.fpgJob.service.IFpgLeanModelService;
+import org.springframework.stereotype.Service;
+
+/**
+ * @Description: 峰平谷模型
+ * @Author: jeecg-boot
+ * @Date:   2024-10-31
+ * @Version: V1.0
+ */
+@Service
+public class FpgLeanModelServiceImpl extends ServiceImpl<FpgLeanModelMapper, FpgLeanModel> implements IFpgLeanModelService {
+}