| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <?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="com.ruoyi.system.mapper.ProductDirectcurrentMapper">
-
- <resultMap type="ProductDirectcurrent" id="ProductDirectcurrentResult">
- <id property="id" column="id"/>
- <result property="productId" column="product_id"/>
- <result property="electricitycellType" column="electricitycell_type"/>
- <result property="ratedCapacity" column="rated_capacity"/>
- <result property="batteryConfiguration" column="battery_configuration"/>
- <result property="ratedDcVoltage" column="rated_dc_voltage"/>
- <result property="dcVoltageRange" column="dc_voltage_range"/>
- <result property="chargeDischargeRate" column="charge_discharge_rate"/>
- <result property="ratedPower" column="rated_power"/>
- <result property="maximumCycleEfficiency" column="maximum_cycle_efficiency"/>
- <result property="bmsProtectionArchitecture" column="bms_protection_architecture"/>
- <result property="confluenceMode" column="confluence_mode"/>
- <result property="fireFighting" column="fire_fighting"/>
- <result property="coolingMethod" column="cooling_method"/>
- <result property="protectionLevel" column="protection_level"/>
- <result property="antiCorrosionLevel" column="anti_corrosion_level"/>
- <result property="workingTemperature" column="working_temperature"/>
- <result property="allowableHumidityRange" column="allowable_humidity_range"/>
- <result property="altitude" column="altitude"/>
- <result property="directCurrentSize" column="direct_current_size"/>
- <result property="numberSockets" column="number_sockets"/>
- <result property="createBy" column="create_by"/>
- <result property="createTime" column="create_time"/>
- <result property="updateBy" column="update_by"/>
- <result property="updateTime" column="update_time"/>
- </resultMap>
-
- <sql id="selectProductDirectcurrentVo">
- select id, product_id, electricitycell_type, rated_capacity, battery_configuration, rated_dc_voltage,
- dc_voltage_range, charge_discharge_rate, rated_power, maximum_cycle_efficiency,
- bms_protection_architecture, confluence_mode, fire_fighting, cooling_method, protection_level,
- anti_corrosion_level, working_temperature, allowable_humidity_range, altitude, direct_current_size,
- number_sockets, create_by, create_time, update_by, update_time
- from product_directcurrent
- </sql>
-
- <select id="selectProductDirectcurrentList" parameterType="ProductDirectcurrent" resultMap="ProductDirectcurrentResult">
- <include refid="selectProductDirectcurrentVo"/>
- <where>
- <if test="productId != null and productId != ''">
- AND product_id = #{productId}
- </if>
- <if test="params.beginTime != null and params.beginTime != ''">
- and date_format(create_time,'%Y%m%d') >= date_format(#{params.beginTime},'%Y%m%d')
- </if>
- <if test="params.endTime != null and params.endTime != ''">
- and date_format(create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
- </if>
- </where>
- </select>
-
- <select id="selectProductDirectcurrentById" parameterType="String" resultMap="ProductDirectcurrentResult">
- <include refid="selectProductDirectcurrentVo"/>
- where product_id = #{productId}
- </select>
-
- <insert id="insertProductDirectcurrent" parameterType="ProductDirectcurrent">
- insert into product_directcurrent (
- <if test="productId != null and productId != ''">product_id,</if>
- <if test="electricitycellType != null and electricitycellType != ''">electricitycell_type,</if>
- <if test="ratedCapacity != null">rated_capacity,</if>
- <if test="batteryConfiguration != null and batteryConfiguration != ''">battery_configuration,</if>
- <if test="ratedDcVoltage != null">rated_dc_voltage,</if>
- <if test="dcVoltageRange != null and dcVoltageRange != ''">dc_voltage_range,</if>
- <if test="chargeDischargeRate != null">charge_discharge_rate,</if>
- <if test="ratedPower != null">rated_power,</if>
- <if test="maximumCycleEfficiency != null">maximum_cycle_efficiency,</if>
- <if test="bmsProtectionArchitecture != null and bmsProtectionArchitecture != ''">bms_protection_architecture,</if>
- <if test="confluenceMode != null and confluenceMode != ''">confluence_mode,</if>
- <if test="fireFighting != null and fireFighting != ''">fire_fighting,</if>
- <if test="coolingMethod != null and coolingMethod != ''">cooling_method,</if>
- <if test="protectionLevel != null and protectionLevel != ''">protection_level,</if>
- <if test="antiCorrosionLevel != null and antiCorrosionLevel != ''">anti_corrosion_level,</if>
- <if test="workingTemperature != null">working_temperature,</if>
- <if test="allowableHumidityRange != null">allowable_humidity_range,</if>
- <if test="altitude != null">altitude,</if>
- <if test="directCurrentSize != null and directCurrentSize != ''">direct_current_size,</if>
- <if test="numberSockets != null">number_sockets,</if>
- <if test="createBy != null and createBy != ''">create_by,</if>
- create_time
- )values(
- <if test="productId != null and productId != ''">#{productId},</if>
- <if test="electricitycellType != null and electricitycellType != ''">#{electricitycellType},</if>
- <if test="ratedCapacity != null">#{ratedCapacity},</if>
- <if test="batteryConfiguration != null and batteryConfiguration != ''">#{batteryConfiguration},</if>
- <if test="ratedDcVoltage != null">#{ratedDcVoltage},</if>
- <if test="dcVoltageRange != null and dcVoltageRange != ''">#{dcVoltageRange},</if>
- <if test="chargeDischargeRate != null">#{chargeDischargeRate},</if>
- <if test="ratedPower != null">#{ratedPower},</if>
- <if test="maximumCycleEfficiency != null">#{maximumCycleEfficiency},</if>
- <if test="bmsProtectionArchitecture != null and bmsProtectionArchitecture != ''">#{bmsProtectionArchitecture},</if>
- <if test="confluenceMode != null and confluenceMode != ''">#{confluenceMode},</if>
- <if test="fireFighting != null and fireFighting != ''">#{fireFighting},</if>
- <if test="coolingMethod != null and coolingMethod != ''">#{coolingMethod},</if>
- <if test="protectionLevel != null and protectionLevel != ''">#{protectionLevel},</if>
- <if test="antiCorrosionLevel != null and antiCorrosionLevel != ''">#{antiCorrosionLevel},</if>
- <if test="workingTemperature != null">#{workingTemperature},</if>
- <if test="allowableHumidityRange != null">#{allowableHumidityRange},</if>
- <if test="altitude != null">#{altitude},</if>
- <if test="directCurrentSize != null and directCurrentSize != ''">#{directCurrentSize},</if>
- <if test="numberSockets != null">#{numberSockets},</if>
- <if test="createBy != null and createBy != ''">#{createBy},</if>
- sysdate()
- )
- </insert>
-
- <update id="updateProductDirectcurrent" parameterType="ProductDirectcurrent">
- update product_directcurrent
- <set>
- <if test="productId != null and productId != ''">product_id = #{productId},</if>
- <if test="electricitycellType != null and electricitycellType != ''">electricitycell_type = #{electricitycellType},</if>
- <if test="ratedCapacity != null">rated_capacity = #{ratedCapacity},</if>
- <if test="batteryConfiguration != null and batteryConfiguration != ''">battery_configuration = #{batteryConfiguration},</if>
- <if test="ratedDcVoltage != null">rated_dc_voltage = #{ratedDcVoltage},</if>
- <if test="dcVoltageRange != null and dcVoltageRange != ''">dc_voltage_range = #{dcVoltageRange},</if>
- <if test="chargeDischargeRate != null">charge_discharge_rate = #{chargeDischargeRate},</if>
- <if test="ratedPower != null">rated_power = #{ratedPower},</if>
- <if test="maximumCycleEfficiency != null">maximum_cycle_efficiency = #{maximumCycleEfficiency},</if>
- <if test="bmsProtectionArchitecture != null and bmsProtectionArchitecture != ''">bms_protection_architecture = #{bmsProtectionArchitecture},</if>
- <if test="confluenceMode != null and confluenceMode != ''">confluence_mode = #{confluenceMode},</if>
- <if test="fireFighting != null and fireFighting != ''">fire_fighting = #{fireFighting},</if>
- <if test="coolingMethod != null and coolingMethod != ''">cooling_method = #{coolingMethod},</if>
- <if test="protectionLevel != null and protectionLevel != ''">protection_level = #{protectionLevel},</if>
- <if test="antiCorrosionLevel != null and antiCorrosionLevel != ''">anti_corrosion_level = #{antiCorrosionLevel},</if>
- <if test="workingTemperature != null">working_temperature = #{workingTemperature},</if>
- <if test="allowableHumidityRange != null">allowable_humidity_range = #{allowableHumidityRange},</if>
- <if test="altitude != null">altitude = #{altitude},</if>
- <if test="directCurrentSize != null and directCurrentSize != ''">direct_current_size = #{directCurrentSize},</if>
- <if test="numberSockets != null">number_sockets = #{numberSockets},</if>
- <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
- update_time = sysdate()
- </set>
- where id = #{id}
- </update>
- <!-- <if test="productId != null and productId != ''">product_id = #{productId},</if>-->
-
- <delete id="deleteProductDirectcurrentById" parameterType="String">
- delete from product_directcurrent where product_id = #{productId}
- </delete>
-
- <delete id="deleteProductDirectcurrentByIds" parameterType="Long">
- delete from product_directcurrent where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
-
- </mapper>
|