修改site_id & device_id

This commit is contained in:
2025-06-29 10:55:05 +08:00
parent 177e235c0e
commit d1aa8dbd2c
50 changed files with 2142 additions and 336 deletions

View File

@ -18,10 +18,30 @@
<result property="siteId" column="site_id" />
<result property="deviceId" column="device_id" />
<result property="branchId" column="branch_id" />
<result property="gridUVoltage" column="grid_u_voltage" />
<result property="gridVVoltage" column="grid_v_voltage" />
<result property="gridWVoltage" column="grid_w_voltage" />
<result property="outputUCurrent" column="output_u_current" />
<result property="outputVCurrent" column="output_v_current" />
<result property="outputWCurrent" column="output_w_current" />
<result property="apparentPower" column="apparent_power" />
<result property="activePower" column="active_power" />
<result property="reactivePower" column="reactive_power" />
<result property="powerFactor" column="power_factor" />
<result property="frequency" column="frequency" />
<result property="internalTemp" column="internal_temp" />
<result property="uIgbtTemp" column="u_igbt_temp" />
<result property="vIgbtTemp" column="v_igbt_temp" />
<result property="wIgbtTemp" column="w_igbt_temp" />
<result property="gridStatus" column="grid_status" />
<result property="availablePower" column="available_power" />
<result property="totalLoadRatio" column="total_load_ratio" />
<result property="acLeakageCurrent" column="ac_leakage_current" />
<result property="insulationResistance" column="insulation_resistance" />
</resultMap>
<sql id="selectEmsPcsBranchDataVo">
select id, discharge_status, dc_power, dc_voltage, dc_current, create_by, create_time, update_by, update_time, remark, site_id, device_id, branch_id from ems_pcs_branch_data
select id, discharge_status, dc_power, dc_voltage, dc_current, create_by, create_time, update_by, update_time, remark, site_id, device_id, branch_id, grid_u_voltage, grid_v_voltage, grid_w_voltage, output_u_current, output_v_current, output_w_current, apparent_power, active_power, reactive_power, power_factor, frequency, internal_temp, u_igbt_temp, v_igbt_temp, w_igbt_temp, grid_status, available_power, total_load_ratio, ac_leakage_current, insulation_resistance from ems_pcs_branch_data
</sql>
<select id="selectEmsPcsBranchDataList" parameterType="EmsPcsBranchData" resultMap="EmsPcsBranchDataResult">
@ -31,9 +51,29 @@
<if test="dcPower != null "> and dc_power = #{dcPower}</if>
<if test="dcVoltage != null "> and dc_voltage = #{dcVoltage}</if>
<if test="dcCurrent != null "> and dc_current = #{dcCurrent}</if>
<if test="siteId != null "> and site_id = #{siteId}</if>
<if test="deviceId != null "> and device_id = #{deviceId}</if>
<if test="siteId != null and siteId != ''"> and site_id = #{siteId}</if>
<if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
<if test="branchId != null "> and branch_id = #{branchId}</if>
<if test="gridUVoltage != null "> and grid_u_voltage = #{gridUVoltage}</if>
<if test="gridVVoltage != null "> and grid_v_voltage = #{gridVVoltage}</if>
<if test="gridWVoltage != null "> and grid_w_voltage = #{gridWVoltage}</if>
<if test="outputUCurrent != null "> and output_u_current = #{outputUCurrent}</if>
<if test="outputVCurrent != null "> and output_v_current = #{outputVCurrent}</if>
<if test="outputWCurrent != null "> and output_w_current = #{outputWCurrent}</if>
<if test="apparentPower != null "> and apparent_power = #{apparentPower}</if>
<if test="activePower != null "> and active_power = #{activePower}</if>
<if test="reactivePower != null "> and reactive_power = #{reactivePower}</if>
<if test="powerFactor != null "> and power_factor = #{powerFactor}</if>
<if test="frequency != null "> and frequency = #{frequency}</if>
<if test="internalTemp != null "> and internal_temp = #{internalTemp}</if>
<if test="uIgbtTemp != null "> and u_igbt_temp = #{uIgbtTemp}</if>
<if test="vIgbtTemp != null "> and v_igbt_temp = #{vIgbtTemp}</if>
<if test="wIgbtTemp != null "> and w_igbt_temp = #{wIgbtTemp}</if>
<if test="gridStatus != null and gridStatus != ''"> and grid_status = #{gridStatus}</if>
<if test="availablePower != null "> and available_power = #{availablePower}</if>
<if test="totalLoadRatio != null "> and total_load_ratio = #{totalLoadRatio}</if>
<if test="acLeakageCurrent != null "> and ac_leakage_current = #{acLeakageCurrent}</if>
<if test="insulationResistance != null "> and insulation_resistance = #{insulationResistance}</if>
</where>
</select>
@ -55,8 +95,28 @@
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="siteId != null">site_id,</if>
<if test="deviceId != null">device_id,</if>
<if test="deviceId != null and deviceId != ''">device_id,</if>
<if test="branchId != null">branch_id,</if>
<if test="gridUVoltage != null">grid_u_voltage,</if>
<if test="gridVVoltage != null">grid_v_voltage,</if>
<if test="gridWVoltage != null">grid_w_voltage,</if>
<if test="outputUCurrent != null">output_u_current,</if>
<if test="outputVCurrent != null">output_v_current,</if>
<if test="outputWCurrent != null">output_w_current,</if>
<if test="apparentPower != null">apparent_power,</if>
<if test="activePower != null">active_power,</if>
<if test="reactivePower != null">reactive_power,</if>
<if test="powerFactor != null">power_factor,</if>
<if test="frequency != null">frequency,</if>
<if test="internalTemp != null">internal_temp,</if>
<if test="uIgbtTemp != null">u_igbt_temp,</if>
<if test="vIgbtTemp != null">v_igbt_temp,</if>
<if test="wIgbtTemp != null">w_igbt_temp,</if>
<if test="gridStatus != null">grid_status,</if>
<if test="availablePower != null">available_power,</if>
<if test="totalLoadRatio != null">total_load_ratio,</if>
<if test="acLeakageCurrent != null">ac_leakage_current,</if>
<if test="insulationResistance != null">insulation_resistance,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="dischargeStatus != null">#{dischargeStatus},</if>
@ -69,8 +129,28 @@
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="siteId != null">#{siteId},</if>
<if test="deviceId != null">#{deviceId},</if>
<if test="deviceId != null and deviceId != ''">#{deviceId},</if>
<if test="branchId != null">#{branchId},</if>
<if test="gridUVoltage != null">#{gridUVoltage},</if>
<if test="gridVVoltage != null">#{gridVVoltage},</if>
<if test="gridWVoltage != null">#{gridWVoltage},</if>
<if test="outputUCurrent != null">#{outputUCurrent},</if>
<if test="outputVCurrent != null">#{outputVCurrent},</if>
<if test="outputWCurrent != null">#{outputWCurrent},</if>
<if test="apparentPower != null">#{apparentPower},</if>
<if test="activePower != null">#{activePower},</if>
<if test="reactivePower != null">#{reactivePower},</if>
<if test="powerFactor != null">#{powerFactor},</if>
<if test="frequency != null">#{frequency},</if>
<if test="internalTemp != null">#{internalTemp},</if>
<if test="uIgbtTemp != null">#{uIgbtTemp},</if>
<if test="vIgbtTemp != null">#{vIgbtTemp},</if>
<if test="wIgbtTemp != null">#{wIgbtTemp},</if>
<if test="gridStatus != null">#{gridStatus},</if>
<if test="availablePower != null">#{availablePower},</if>
<if test="totalLoadRatio != null">#{totalLoadRatio},</if>
<if test="acLeakageCurrent != null">#{acLeakageCurrent},</if>
<if test="insulationResistance != null">#{insulationResistance},</if>
</trim>
</insert>
@ -87,8 +167,28 @@
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="siteId != null">site_id = #{siteId},</if>
<if test="deviceId != null">device_id = #{deviceId},</if>
<if test="deviceId != null and deviceId != ''">device_id = #{deviceId},</if>
<if test="branchId != null">branch_id = #{branchId},</if>
<if test="gridUVoltage != null">grid_u_voltage = #{gridUVoltage},</if>
<if test="gridVVoltage != null">grid_v_voltage = #{gridVVoltage},</if>
<if test="gridWVoltage != null">grid_w_voltage = #{gridWVoltage},</if>
<if test="outputUCurrent != null">output_u_current = #{outputUCurrent},</if>
<if test="outputVCurrent != null">output_v_current = #{outputVCurrent},</if>
<if test="outputWCurrent != null">output_w_current = #{outputWCurrent},</if>
<if test="apparentPower != null">apparent_power = #{apparentPower},</if>
<if test="activePower != null">active_power = #{activePower},</if>
<if test="reactivePower != null">reactive_power = #{reactivePower},</if>
<if test="powerFactor != null">power_factor = #{powerFactor},</if>
<if test="frequency != null">frequency = #{frequency},</if>
<if test="internalTemp != null">internal_temp = #{internalTemp},</if>
<if test="uIgbtTemp != null">u_igbt_temp = #{uIgbtTemp},</if>
<if test="vIgbtTemp != null">v_igbt_temp = #{vIgbtTemp},</if>
<if test="wIgbtTemp != null">w_igbt_temp = #{wIgbtTemp},</if>
<if test="gridStatus != null">grid_status = #{gridStatus},</if>
<if test="availablePower != null">available_power = #{availablePower},</if>
<if test="totalLoadRatio != null">total_load_ratio = #{totalLoadRatio},</if>
<if test="acLeakageCurrent != null">ac_leakage_current = #{acLeakageCurrent},</if>
<if test="insulationResistance != null">insulation_resistance = #{insulationResistance},</if>
</trim>
where id = #{id}
</update>