|
@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deviceId" column="DEVICE_ID" />
|
|
|
<result property="kwh" column="KWH" />
|
|
|
<result property="weight" column="WEIGHT" />
|
|
|
+ <result property="height" column="HEIGHT" />
|
|
|
<result property="length" column="LENGTH" />
|
|
|
<result property="openTime" column="OPEN_TIME" />
|
|
|
<result property="closeTime" column="CLOSE_TIME" />
|
|
@@ -22,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTwinCalcHourVo">
|
|
|
- select ID, DATA_DATE, HOUR, DEVICE_ID, KWH, WEIGHT, LENGTH, OPEN_TIME, CLOSE_TIME, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, REMARK from TWIN_CALC_HOUR
|
|
|
+ select ID, DATA_DATE, HOUR, DEVICE_ID, KWH, WEIGHT, HEIGHT,LENGTH, OPEN_TIME, CLOSE_TIME, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME, REMARK from TWIN_CALC_HOUR
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTwinCalcHourList" parameterType="TwinCalcHour" resultMap="TwinCalcHourResult">
|
|
@@ -33,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deviceId != null "> and DEVICE_ID = #{deviceId}</if>
|
|
|
<if test="kwh != null "> and KWH = #{kwh}</if>
|
|
|
<if test="weight != null "> and WEIGHT = #{weight}</if>
|
|
|
+ <if test="height != null "> and HEIGHT = #{height}</if>
|
|
|
<if test="length != null "> and LENGTH = #{length}</if>
|
|
|
<if test="openTime != null "> and OPEN_TIME = #{openTime}</if>
|
|
|
<if test="closeTime != null "> and CLOSE_TIME = #{closeTime}</if>
|
|
@@ -60,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deviceId != null">DEVICE_ID,</if>
|
|
|
<if test="kwh != null">KWH,</if>
|
|
|
<if test="weight != null">WEIGHT,</if>
|
|
|
+ <if test="height != null">HEIGHT,</if>
|
|
|
<if test="length != null">LENGTH,</if>
|
|
|
<if test="openTime != null">OPEN_TIME,</if>
|
|
|
<if test="closeTime != null">CLOSE_TIME,</if>
|
|
@@ -75,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
|
<if test="kwh != null">#{kwh},</if>
|
|
|
<if test="weight != null">#{weight},</if>
|
|
|
+ <if test="height != null">#{height},</if>
|
|
|
<if test="length != null">#{length},</if>
|
|
|
<if test="openTime != null">#{openTime},</if>
|
|
|
<if test="closeTime != null">#{closeTime},</if>
|
|
@@ -94,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="deviceId != null">DEVICE_ID = #{deviceId},</if>
|
|
|
<if test="kwh != null">KWH = #{kwh},</if>
|
|
|
<if test="weight != null">WEIGHT = #{weight},</if>
|
|
|
+ <if test="height != null">HEIGHT = #{height},</if>
|
|
|
<if test="length != null">LENGTH = #{length},</if>
|
|
|
<if test="openTime != null">OPEN_TIME = #{openTime},</if>
|
|
|
<if test="closeTime != null">CLOSE_TIME = #{closeTime},</if>
|
|
@@ -102,9 +107,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updatedBy != null">UPDATED_BY = #{updatedBy},</if>
|
|
|
<if test="updatedTime != null">UPDATED_TIME = #{updatedTime},</if>
|
|
|
<if test="remark != null">REMARK = #{remark},</if>
|
|
|
- <if test="params.sTime != null and params.eTime != null">
|
|
|
- and DATEADD(hour, HOUR, DATA_DATE) between #{params.sTime} and #{params.eTime}
|
|
|
- </if>
|
|
|
</trim>
|
|
|
where ID = #{id}
|
|
|
</update>
|