Commit 69707ffa authored by ZWT's avatar ZWT

feat(能源管理系统): 基础信息配置

1.开发基础信息配置-输电线路配置模块修改功能,完成接口冒烟测试并生成接口文档;
2.开发基础信息配置-输电线路配置模块删除功能,完成接口冒烟测试并生成接口文档;
3.开发基础信息配置-输电线路配置模块详情功能,完成接口冒烟测试并生成接口文档;

BREAKING CHANGE: 无

Closes 无

[skip ci]
parent 41bf536e
......@@ -8,6 +8,7 @@ import lombok.NoArgsConstructor;
import xstartup.annotation.XText;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
......@@ -65,4 +66,17 @@ public class BasePowerLinePlantView implements Serializable {
@TableField
private String ouId;
/**
* 电站名称
*/
@XText("电站名称")
@TableField
private String stationName;
/**
* 装机总量
*/
@XText("装机总量(KWP)")
@TableField
private BigDecimal totalPower;
}
<?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="pps.core.base.mapper.BasePowerLinePlantViewMapper">
<resultMap id="BaseResultMap" type="pps.core.base.entity.BasePowerLinePlantView">
<id column="id" property="id" jdbcType="VARCHAR" />
<result column="is_deleted" property="isDeleted" jdbcType="INTEGER" />
<result column="create_by_id" property="createById" jdbcType="VARCHAR" />
<result column="create_by_name" property="createByName" jdbcType="VARCHAR" />
<result column="create_time" property="createTime" jdbcType="DATE" />
<result column="modify_by_id" property="modifyById" jdbcType="VARCHAR" />
<result column="modify_by_name" property="modifyByName" jdbcType="VARCHAR" />
<result column="modify_time" property="modifyTime" jdbcType="DATE" />
<result column="line_id" property="lineId" jdbcType="VARCHAR" />
<result column="plant_id" property="plantId" jdbcType="VARCHAR" />
<result column="ou_id" property="ouId" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id,
<resultMap id="BaseResultMap" type="pps.core.base.entity.BasePowerLinePlantView">
<id column="id" property="id" jdbcType="VARCHAR"/>
<result column="is_deleted" property="isDeleted" jdbcType="INTEGER"/>
<result column="create_by_id" property="createById" jdbcType="VARCHAR"/>
<result column="create_by_name" property="createByName" jdbcType="VARCHAR"/>
<result column="create_time" property="createTime" jdbcType="DATE"/>
<result column="modify_by_id" property="modifyById" jdbcType="VARCHAR"/>
<result column="modify_by_name" property="modifyByName" jdbcType="VARCHAR"/>
<result column="modify_time" property="modifyTime" jdbcType="DATE"/>
<result column="line_id" property="lineId" jdbcType="VARCHAR"/>
<result column="plant_id" property="plantId" jdbcType="VARCHAR"/>
<result column="ou_id" property="ouId" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
id
,
is_deleted,
create_by_id,
create_by_name,
......@@ -26,19 +27,29 @@
line_id,
plant_id,
ou_id
</sql>
<select id="selectOne" parameterType="pps.core.base.entity.BasePowerLinePlantView" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from base_power_line_plant
where
id=#{id}
</select>
<select id="selectList" parameterType="pps.core.base.entity.BasePowerLinePlantView" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from base_power_line_plant
where
id=#{id}
</select>
</sql>
<resultMap id="ExtendsResultMap" type="pps.core.base.entity.BasePowerLinePlantView" extends="BaseResultMap">
<result column="station_name" property="stationName" jdbcType="VARCHAR"/>
<result column="total_power" property="totalPower" jdbcType="DECIMAL"/>
</resultMap>
<select id="selectOne" parameterType="pps.core.base.entity.BasePowerLinePlantView" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from base_power_line_plant
where
id=#{id}
</select>
<select id="selectList" parameterType="pps.core.base.entity.BasePowerLinePlantView" resultMap="BaseResultMap">
SELECT l.id,
l.plant_id,
p.station_name,
p.total_power
FROM base_power_line_plant l
LEFT JOIN base_photovoltaic_plant p ON l.plant_id = p.id
AND p.is_deleted = 1
WHERE l.line_id = #{lineId}
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment