pcs表新增字段

This commit is contained in:
2025-07-07 15:32:30 +08:00
parent b2a964cb82
commit 11a95c19fd
3 changed files with 79 additions and 14 deletions

View File

@ -53,10 +53,13 @@
<result property="acSwitchStatus" column="ac_switch_status" />
<result property="dcSwitchStatus" column="dc_switch_status" />
<result property="remoteControlStatus" column="remote_control_status" />
<result property="sysUCurrent" column="sys_u_current" />
<result property="sysVCurrent" column="sys_v_current" />
<result property="sysWCurrent" column="sys_w_current" />
</resultMap>
<sql id="selectEmsPcsDataVo">
select id, data_update_time, work_status, grid_status, device_status, control_mode, total_active_power, daily_ac_charge_energy, a_phase_voltage, a_phase_current, total_reactive_power, daily_ac_discharge_energy, b_phase_voltage, b_phase_current, total_apparent_power, pcs_module_temperature, c_phase_voltage, c_phase_current, total_power_factor, pcs_environment_temperature, ac_frequency, branch_status, discharge_status, dc_power, dc_voltage, dc_current, create_by, create_time, update_by, update_time, remark, site_id, device_id, date_month, date_day, total_ac_charge_energy, total_ac_discharge_energy, ac_charge_active_power, ac_capacitive_reactive_power, ac_discharge_active_power, ac_inductive_reactive_power, max_capacitive_power_capacity, max_inductive_power_capacity, max_charge_power_capacity, max_discharge_power_capacity, ac_switch_status, dc_switch_status, remote_control_status from ems_pcs_data
select id, data_update_time, work_status, grid_status, device_status, control_mode, total_active_power, daily_ac_charge_energy, a_phase_voltage, a_phase_current, total_reactive_power, daily_ac_discharge_energy, b_phase_voltage, b_phase_current, total_apparent_power, pcs_module_temperature, c_phase_voltage, c_phase_current, total_power_factor, pcs_environment_temperature, ac_frequency, branch_status, discharge_status, dc_power, dc_voltage, dc_current, create_by, create_time, update_by, update_time, remark, site_id, device_id, date_month, date_day, total_ac_charge_energy, total_ac_discharge_energy, ac_charge_active_power, ac_capacitive_reactive_power, ac_discharge_active_power, ac_inductive_reactive_power, max_capacitive_power_capacity, max_inductive_power_capacity, max_charge_power_capacity, max_discharge_power_capacity, ac_switch_status, dc_switch_status, remote_control_status, sys_u_current, sys_v_current, sys_w_current from ems_pcs_data
</sql>
<select id="selectEmsPcsDataList" parameterType="EmsPcsData" resultMap="EmsPcsDataResult">
@ -104,6 +107,9 @@
<if test="acSwitchStatus != null and acSwitchStatus != ''"> and ac_switch_status = #{acSwitchStatus}</if>
<if test="dcSwitchStatus != null and dcSwitchStatus != ''"> and dc_switch_status = #{dcSwitchStatus}</if>
<if test="remoteControlStatus != null and remoteControlStatus != ''"> and remote_control_status = #{remoteControlStatus}</if>
<if test="sysUCurrent != null "> and sys_u_current = #{sysUCurrent}</if>
<if test="sysVCurrent != null "> and sys_v_current = #{sysVCurrent}</if>
<if test="sysWCurrent != null "> and sys_w_current = #{sysWCurrent}</if>
</where>
</select>
@ -162,6 +168,9 @@
<if test="acSwitchStatus != null">ac_switch_status,</if>
<if test="dcSwitchStatus != null">dc_switch_status,</if>
<if test="remoteControlStatus != null">remote_control_status,</if>
<if test="sysUCurrent != null">sys_u_current,</if>
<if test="sysVCurrent != null">sys_v_current,</if>
<if test="sysWCurrent != null">sys_w_current,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dataUpdateTime != null">#{dataUpdateTime},</if>
@ -211,6 +220,9 @@
<if test="acSwitchStatus != null">#{acSwitchStatus},</if>
<if test="dcSwitchStatus != null">#{dcSwitchStatus},</if>
<if test="remoteControlStatus != null">#{remoteControlStatus},</if>
<if test="sysUCurrent != null">#{sysUCurrent},</if>
<if test="sysVCurrent != null">#{sysVCurrent},</if>
<if test="sysWCurrent != null">#{sysWCurrent},</if>
</trim>
</insert>
@ -264,6 +276,9 @@
<if test="acSwitchStatus != null">ac_switch_status = #{acSwitchStatus},</if>
<if test="dcSwitchStatus != null">dc_switch_status = #{dcSwitchStatus},</if>
<if test="remoteControlStatus != null">remote_control_status = #{remoteControlStatus},</if>
<if test="sysUCurrent != null">sys_u_current = #{sysUCurrent},</if>
<if test="sysVCurrent != null">sys_v_current = #{sysVCurrent},</if>
<if test="sysWCurrent != null">sys_w_current = #{sysWCurrent},</if>
</trim>
where id = #{id}
</update>