电速宝智配引擎
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProductDirectcurrentMapper.xml 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.system.mapper.ProductDirectcurrentMapper">
  6. <resultMap type="ProductDirectcurrent" id="ProductDirectcurrentResult">
  7. <id property="id" column="id"/>
  8. <result property="productId" column="product_id"/>
  9. <result property="electricitycellType" column="electricitycell_type"/>
  10. <result property="ratedCapacity" column="rated_capacity"/>
  11. <result property="batteryConfiguration" column="battery_configuration"/>
  12. <result property="ratedDcVoltage" column="rated_dc_voltage"/>
  13. <result property="dcVoltageRange" column="dc_voltage_range"/>
  14. <result property="chargeDischargeRate" column="charge_discharge_rate"/>
  15. <result property="ratedPower" column="rated_power"/>
  16. <result property="maximumCycleEfficiency" column="maximum_cycle_efficiency"/>
  17. <result property="bmsProtectionArchitecture" column="bms_protection_architecture"/>
  18. <result property="confluenceMode" column="confluence_mode"/>
  19. <result property="fireFighting" column="fire_fighting"/>
  20. <result property="coolingMethod" column="cooling_method"/>
  21. <result property="protectionLevel" column="protection_level"/>
  22. <result property="antiCorrosionLevel" column="anti_corrosion_level"/>
  23. <result property="workingTemperature" column="working_temperature"/>
  24. <result property="allowableHumidityRange" column="allowable_humidity_range"/>
  25. <result property="altitude" column="altitude"/>
  26. <result property="directCurrentSize" column="direct_current_size"/>
  27. <result property="numberSockets" column="number_sockets"/>
  28. <result property="createBy" column="create_by"/>
  29. <result property="createTime" column="create_time"/>
  30. <result property="updateBy" column="update_by"/>
  31. <result property="updateTime" column="update_time"/>
  32. </resultMap>
  33. <sql id="selectProductDirectcurrentVo">
  34. select id, product_id, electricitycell_type, rated_capacity, battery_configuration, rated_dc_voltage,
  35. dc_voltage_range, charge_discharge_rate, rated_power, maximum_cycle_efficiency,
  36. bms_protection_architecture, confluence_mode, fire_fighting, cooling_method, protection_level,
  37. anti_corrosion_level, working_temperature, allowable_humidity_range, altitude, direct_current_size,
  38. number_sockets, create_by, create_time, update_by, update_time
  39. from product_directcurrent
  40. </sql>
  41. <select id="selectProductDirectcurrentList" parameterType="ProductDirectcurrent" resultMap="ProductDirectcurrentResult">
  42. <include refid="selectProductDirectcurrentVo"/>
  43. <where>
  44. <if test="productId != null and productId != ''">
  45. AND product_id = #{productId}
  46. </if>
  47. <if test="params.beginTime != null and params.beginTime != ''">
  48. and date_format(create_time,'%Y%m%d') &gt;= date_format(#{params.beginTime},'%Y%m%d')
  49. </if>
  50. <if test="params.endTime != null and params.endTime != ''">
  51. and date_format(create_time,'%Y%m%d') &lt;= date_format(#{params.endTime},'%Y%m%d')
  52. </if>
  53. </where>
  54. </select>
  55. <select id="selectProductDirectcurrentById" parameterType="String" resultMap="ProductDirectcurrentResult">
  56. <include refid="selectProductDirectcurrentVo"/>
  57. where product_id = #{productId}
  58. </select>
  59. <insert id="insertProductDirectcurrent" parameterType="ProductDirectcurrent">
  60. insert into product_directcurrent (
  61. <if test="productId != null and productId != ''">product_id,</if>
  62. <if test="electricitycellType != null and electricitycellType != ''">electricitycell_type,</if>
  63. <if test="ratedCapacity != null">rated_capacity,</if>
  64. <if test="batteryConfiguration != null and batteryConfiguration != ''">battery_configuration,</if>
  65. <if test="ratedDcVoltage != null">rated_dc_voltage,</if>
  66. <if test="dcVoltageRange != null and dcVoltageRange != ''">dc_voltage_range,</if>
  67. <if test="chargeDischargeRate != null">charge_discharge_rate,</if>
  68. <if test="ratedPower != null">rated_power,</if>
  69. <if test="maximumCycleEfficiency != null">maximum_cycle_efficiency,</if>
  70. <if test="bmsProtectionArchitecture != null and bmsProtectionArchitecture != ''">bms_protection_architecture,</if>
  71. <if test="confluenceMode != null and confluenceMode != ''">confluence_mode,</if>
  72. <if test="fireFighting != null and fireFighting != ''">fire_fighting,</if>
  73. <if test="coolingMethod != null and coolingMethod != ''">cooling_method,</if>
  74. <if test="protectionLevel != null and protectionLevel != ''">protection_level,</if>
  75. <if test="antiCorrosionLevel != null and antiCorrosionLevel != ''">anti_corrosion_level,</if>
  76. <if test="workingTemperature != null">working_temperature,</if>
  77. <if test="allowableHumidityRange != null">allowable_humidity_range,</if>
  78. <if test="altitude != null">altitude,</if>
  79. <if test="directCurrentSize != null and directCurrentSize != ''">direct_current_size,</if>
  80. <if test="numberSockets != null">number_sockets,</if>
  81. <if test="createBy != null and createBy != ''">create_by,</if>
  82. create_time
  83. )values(
  84. <if test="productId != null and productId != ''">#{productId},</if>
  85. <if test="electricitycellType != null and electricitycellType != ''">#{electricitycellType},</if>
  86. <if test="ratedCapacity != null">#{ratedCapacity},</if>
  87. <if test="batteryConfiguration != null and batteryConfiguration != ''">#{batteryConfiguration},</if>
  88. <if test="ratedDcVoltage != null">#{ratedDcVoltage},</if>
  89. <if test="dcVoltageRange != null and dcVoltageRange != ''">#{dcVoltageRange},</if>
  90. <if test="chargeDischargeRate != null">#{chargeDischargeRate},</if>
  91. <if test="ratedPower != null">#{ratedPower},</if>
  92. <if test="maximumCycleEfficiency != null">#{maximumCycleEfficiency},</if>
  93. <if test="bmsProtectionArchitecture != null and bmsProtectionArchitecture != ''">#{bmsProtectionArchitecture},</if>
  94. <if test="confluenceMode != null and confluenceMode != ''">#{confluenceMode},</if>
  95. <if test="fireFighting != null and fireFighting != ''">#{fireFighting},</if>
  96. <if test="coolingMethod != null and coolingMethod != ''">#{coolingMethod},</if>
  97. <if test="protectionLevel != null and protectionLevel != ''">#{protectionLevel},</if>
  98. <if test="antiCorrosionLevel != null and antiCorrosionLevel != ''">#{antiCorrosionLevel},</if>
  99. <if test="workingTemperature != null">#{workingTemperature},</if>
  100. <if test="allowableHumidityRange != null">#{allowableHumidityRange},</if>
  101. <if test="altitude != null">#{altitude},</if>
  102. <if test="directCurrentSize != null and directCurrentSize != ''">#{directCurrentSize},</if>
  103. <if test="numberSockets != null">#{numberSockets},</if>
  104. <if test="createBy != null and createBy != ''">#{createBy},</if>
  105. sysdate()
  106. )
  107. </insert>
  108. <update id="updateProductDirectcurrent" parameterType="ProductDirectcurrent">
  109. update product_directcurrent
  110. <set>
  111. <if test="productId != null and productId != ''">product_id = #{productId},</if>
  112. <if test="electricitycellType != null and electricitycellType != ''">electricitycell_type = #{electricitycellType},</if>
  113. <if test="ratedCapacity != null">rated_capacity = #{ratedCapacity},</if>
  114. <if test="batteryConfiguration != null and batteryConfiguration != ''">battery_configuration = #{batteryConfiguration},</if>
  115. <if test="ratedDcVoltage != null">rated_dc_voltage = #{ratedDcVoltage},</if>
  116. <if test="dcVoltageRange != null and dcVoltageRange != ''">dc_voltage_range = #{dcVoltageRange},</if>
  117. <if test="chargeDischargeRate != null">charge_discharge_rate = #{chargeDischargeRate},</if>
  118. <if test="ratedPower != null">rated_power = #{ratedPower},</if>
  119. <if test="maximumCycleEfficiency != null">maximum_cycle_efficiency = #{maximumCycleEfficiency},</if>
  120. <if test="bmsProtectionArchitecture != null and bmsProtectionArchitecture != ''">bms_protection_architecture = #{bmsProtectionArchitecture},</if>
  121. <if test="confluenceMode != null and confluenceMode != ''">confluence_mode = #{confluenceMode},</if>
  122. <if test="fireFighting != null and fireFighting != ''">fire_fighting = #{fireFighting},</if>
  123. <if test="coolingMethod != null and coolingMethod != ''">cooling_method = #{coolingMethod},</if>
  124. <if test="protectionLevel != null and protectionLevel != ''">protection_level = #{protectionLevel},</if>
  125. <if test="antiCorrosionLevel != null and antiCorrosionLevel != ''">anti_corrosion_level = #{antiCorrosionLevel},</if>
  126. <if test="workingTemperature != null">working_temperature = #{workingTemperature},</if>
  127. <if test="allowableHumidityRange != null">allowable_humidity_range = #{allowableHumidityRange},</if>
  128. <if test="altitude != null">altitude = #{altitude},</if>
  129. <if test="directCurrentSize != null and directCurrentSize != ''">direct_current_size = #{directCurrentSize},</if>
  130. <if test="numberSockets != null">number_sockets = #{numberSockets},</if>
  131. <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
  132. update_time = sysdate()
  133. </set>
  134. where id = #{id}
  135. </update>
  136. <!-- <if test="productId != null and productId != ''">product_id = #{productId},</if>-->
  137. <delete id="deleteProductDirectcurrentById" parameterType="String">
  138. delete from product_directcurrent where product_id = #{productId}
  139. </delete>
  140. <delete id="deleteProductDirectcurrentByIds" parameterType="Long">
  141. delete from product_directcurrent where id in
  142. <foreach item="id" collection="array" open="(" separator="," close=")">
  143. #{id}
  144. </foreach>
  145. </delete>
  146. </mapper>