DDS数据同步
This commit is contained in:
@ -52,10 +52,24 @@
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="batteryNumber" column="battery_number" />
|
||||
<result property="batteryAvgVoltage" column="battery_avg_voltage" />
|
||||
<result property="batteryDifferentPressure" column="battery_different_pressure" />
|
||||
<result property="avgTemperature" column="avg_temperature" />
|
||||
<result property="batteryDifferentTemperature" column="battery_different_temperature" />
|
||||
<result property="maxInternalResistance" column="max_internal_resistance" />
|
||||
<result property="minInternalResistance" column="min_internal_resistance" />
|
||||
<result property="avgInternalResistance" column="avg_internal_resistance" />
|
||||
<result property="batteryDefferentResistance" column="battery_defferent_resistance" />
|
||||
<result property="maxResistanceCellId" column="max_resistance_cell_id" />
|
||||
<result property="minResistanceCellId" column="min_resistance_cell_id" />
|
||||
<result property="environmentTemperature" column="environment_temperature" />
|
||||
<result property="environmentHumidity" column="environment_humidity" />
|
||||
<result property="circuitBreakerStatus" column="circuit_breaker_status" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmsBatteryStackVo">
|
||||
select id, work_status, pcs_communication_status, ems_communication_status, operation_status, stack_voltage, stack_current, stack_soc, stack_soh, max_cell_voltage, max_voltage_group_id, max_voltage_cell_id, min_cell_voltage, min_voltage_group_id, min_voltage_cell_id, max_cell_temp, max_temp_group_id, max_temp_cell_id, min_cell_temp, min_temp_group_id, min_temp_cell_id, total_charge_capacity, total_discharge_capacity, session_charge_capacity, session_discharge_capacity, available_charge_capacity, available_discharge_capacity, remaining_discharge_time, remaining_charge_time, max_discharge_power, max_charge_power, max_discharge_current, max_charge_current, daily_discharge_cycles, daily_charge_cycles, daily_discharge_capacity, daily_charge_capacity, operating_temp, bms_status, bms_charge_status, stack_insulation_resistance, site_id, device_id, create_time, create_by, update_time, update_by from ems_battery_stack
|
||||
select id, work_status, pcs_communication_status, ems_communication_status, operation_status, stack_voltage, stack_current, stack_soc, stack_soh, max_cell_voltage, max_voltage_group_id, max_voltage_cell_id, min_cell_voltage, min_voltage_group_id, min_voltage_cell_id, max_cell_temp, max_temp_group_id, max_temp_cell_id, min_cell_temp, min_temp_group_id, min_temp_cell_id, total_charge_capacity, total_discharge_capacity, session_charge_capacity, session_discharge_capacity, available_charge_capacity, available_discharge_capacity, remaining_discharge_time, remaining_charge_time, max_discharge_power, max_charge_power, max_discharge_current, max_charge_current, daily_discharge_cycles, daily_charge_cycles, daily_discharge_capacity, daily_charge_capacity, operating_temp, bms_status, bms_charge_status, stack_insulation_resistance, site_id, device_id, create_time, create_by, update_time, update_by, battery_number, battery_avg_voltage, battery_different_pressure, avg_temperature, battery_different_temperature, max_internal_resistance, min_internal_resistance, avg_internal_resistance, battery_defferent_resistance, max_resistance_cell_id, min_resistance_cell_id, environment_temperature, environment_humidity, circuit_breaker_status from ems_battery_stack
|
||||
</sql>
|
||||
|
||||
<select id="selectEmsBatteryStackList" parameterType="EmsBatteryStack" resultMap="EmsBatteryStackResult">
|
||||
@ -103,6 +117,20 @@
|
||||
<if test="stackInsulationResistance != null "> and stack_insulation_resistance = #{stackInsulationResistance}</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="batteryNumber != null "> and battery_number = #{batteryNumber}</if>
|
||||
<if test="batteryAvgVoltage != null "> and battery_avg_voltage = #{batteryAvgVoltage}</if>
|
||||
<if test="batteryDifferentPressure != null "> and battery_different_pressure = #{batteryDifferentPressure}</if>
|
||||
<if test="avgTemperature != null "> and avg_temperature = #{avgTemperature}</if>
|
||||
<if test="batteryDifferentTemperature != null "> and battery_different_temperature = #{batteryDifferentTemperature}</if>
|
||||
<if test="maxInternalResistance != null "> and max_internal_resistance = #{maxInternalResistance}</if>
|
||||
<if test="minInternalResistance != null "> and min_internal_resistance = #{minInternalResistance}</if>
|
||||
<if test="avgInternalResistance != null "> and avg_internal_resistance = #{avgInternalResistance}</if>
|
||||
<if test="batteryDefferentResistance != null "> and battery_defferent_resistance = #{batteryDefferentResistance}</if>
|
||||
<if test="maxResistanceCellId != null "> and max_resistance_cell_id = #{maxResistanceCellId}</if>
|
||||
<if test="minResistanceCellId != null "> and min_resistance_cell_id = #{minResistanceCellId}</if>
|
||||
<if test="environmentTemperature != null "> and environment_temperature = #{environmentTemperature}</if>
|
||||
<if test="environmentHumidity != null "> and environment_humidity = #{environmentHumidity}</if>
|
||||
<if test="circuitBreakerStatus != null and circuitBreakerStatus != ''"> and circuit_breaker_status = #{circuitBreakerStatus}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@ -160,6 +188,20 @@
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="batteryNumber != null">battery_number,</if>
|
||||
<if test="batteryAvgVoltage != null">battery_avg_voltage,</if>
|
||||
<if test="batteryDifferentPressure != null">battery_different_pressure,</if>
|
||||
<if test="avgTemperature != null">avg_temperature,</if>
|
||||
<if test="batteryDifferentTemperature != null">battery_different_temperature,</if>
|
||||
<if test="maxInternalResistance != null">max_internal_resistance,</if>
|
||||
<if test="minInternalResistance != null">min_internal_resistance,</if>
|
||||
<if test="avgInternalResistance != null">avg_internal_resistance,</if>
|
||||
<if test="batteryDefferentResistance != null">battery_defferent_resistance,</if>
|
||||
<if test="maxResistanceCellId != null">max_resistance_cell_id,</if>
|
||||
<if test="minResistanceCellId != null">min_resistance_cell_id,</if>
|
||||
<if test="environmentTemperature != null">environment_temperature,</if>
|
||||
<if test="environmentHumidity != null">environment_humidity,</if>
|
||||
<if test="circuitBreakerStatus != null">circuit_breaker_status,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="workStatus != null">#{workStatus},</if>
|
||||
@ -208,6 +250,20 @@
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="batteryNumber != null">#{batteryNumber},</if>
|
||||
<if test="batteryAvgVoltage != null">#{batteryAvgVoltage},</if>
|
||||
<if test="batteryDifferentPressure != null">#{batteryDifferentPressure},</if>
|
||||
<if test="avgTemperature != null">#{avgTemperature},</if>
|
||||
<if test="batteryDifferentTemperature != null">#{batteryDifferentTemperature},</if>
|
||||
<if test="maxInternalResistance != null">#{maxInternalResistance},</if>
|
||||
<if test="minInternalResistance != null">#{minInternalResistance},</if>
|
||||
<if test="avgInternalResistance != null">#{avgInternalResistance},</if>
|
||||
<if test="batteryDefferentResistance != null">#{batteryDefferentResistance},</if>
|
||||
<if test="maxResistanceCellId != null">#{maxResistanceCellId},</if>
|
||||
<if test="minResistanceCellId != null">#{minResistanceCellId},</if>
|
||||
<if test="environmentTemperature != null">#{environmentTemperature},</if>
|
||||
<if test="environmentHumidity != null">#{environmentHumidity},</if>
|
||||
<if test="circuitBreakerStatus != null">#{circuitBreakerStatus},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -260,6 +316,20 @@
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="batteryNumber != null">battery_number = #{batteryNumber},</if>
|
||||
<if test="batteryAvgVoltage != null">battery_avg_voltage = #{batteryAvgVoltage},</if>
|
||||
<if test="batteryDifferentPressure != null">battery_different_pressure = #{batteryDifferentPressure},</if>
|
||||
<if test="avgTemperature != null">avg_temperature = #{avgTemperature},</if>
|
||||
<if test="batteryDifferentTemperature != null">battery_different_temperature = #{batteryDifferentTemperature},</if>
|
||||
<if test="maxInternalResistance != null">max_internal_resistance = #{maxInternalResistance},</if>
|
||||
<if test="minInternalResistance != null">min_internal_resistance = #{minInternalResistance},</if>
|
||||
<if test="avgInternalResistance != null">avg_internal_resistance = #{avgInternalResistance},</if>
|
||||
<if test="batteryDefferentResistance != null">battery_defferent_resistance = #{batteryDefferentResistance},</if>
|
||||
<if test="maxResistanceCellId != null">max_resistance_cell_id = #{maxResistanceCellId},</if>
|
||||
<if test="minResistanceCellId != null">min_resistance_cell_id = #{minResistanceCellId},</if>
|
||||
<if test="environmentTemperature != null">environment_temperature = #{environmentTemperature},</if>
|
||||
<if test="environmentHumidity != null">environment_humidity = #{environmentHumidity},</if>
|
||||
<if test="circuitBreakerStatus != null">circuit_breaker_status = #{circuitBreakerStatus},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Reference in New Issue
Block a user