|
@@ -10,9 +10,12 @@
|
|
|
<result property="hour" column="HOUR"/>
|
|
<result property="hour" column="HOUR"/>
|
|
|
<result property="deviceId" column="DEVICE_ID"/>
|
|
<result property="deviceId" column="DEVICE_ID"/>
|
|
|
<result property="length" column="LENGTH"/>
|
|
<result property="length" column="LENGTH"/>
|
|
|
- <result property="weight" column="WEIGHT"/>
|
|
|
|
|
<result property="distance" column="DISTANCE"/>
|
|
<result property="distance" column="DISTANCE"/>
|
|
|
<result property="remark" column="REMARK"/>
|
|
<result property="remark" column="REMARK"/>
|
|
|
|
|
+ <result property="weight" column="WEIGHT"/>
|
|
|
|
|
+ <result property="openTime" column="OPEN_TIME"/>
|
|
|
|
|
+ <result property="closeTime" column="CLOSE_TIME"/>
|
|
|
|
|
+ <result property="workDay" column="WORK_DAY"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectTwinCalcHourYhjVo">
|
|
<sql id="selectTwinCalcHourYhjVo">
|
|
@@ -21,9 +24,12 @@
|
|
|
HOUR,
|
|
HOUR,
|
|
|
DEVICE_ID,
|
|
DEVICE_ID,
|
|
|
LENGTH,
|
|
LENGTH,
|
|
|
- WEIGHT,
|
|
|
|
|
DISTANCE,
|
|
DISTANCE,
|
|
|
- REMARK
|
|
|
|
|
|
|
+ REMARK,
|
|
|
|
|
+ WEIGHT,
|
|
|
|
|
+ OPEN_TIME,
|
|
|
|
|
+ CLOSE_TIME,
|
|
|
|
|
+ WORK_DAY
|
|
|
from TWIN_CALC_HOUR_YHJ
|
|
from TWIN_CALC_HOUR_YHJ
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
@@ -34,6 +40,7 @@
|
|
|
and DATA_DATE between #{params.beginDataDate} and #{params.endDataDate}
|
|
and DATA_DATE between #{params.beginDataDate} and #{params.endDataDate}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="dataDate != null ">and DATA_DATE = #{dataDate}</if>
|
|
<if test="dataDate != null ">and DATA_DATE = #{dataDate}</if>
|
|
|
|
|
+ <if test="workDay != null ">and WORK_DAY = #{workDay}</if>
|
|
|
<if test="hour != null ">and HOUR = #{hour}</if>
|
|
<if test="hour != null ">and HOUR = #{hour}</if>
|
|
|
<if test="deviceId != null ">and DEVICE_ID = #{deviceId}</if>
|
|
<if test="deviceId != null ">and DEVICE_ID = #{deviceId}</if>
|
|
|
<if test="length != null ">and LENGTH = #{length}</if>
|
|
<if test="length != null ">and LENGTH = #{length}</if>
|
|
@@ -64,18 +71,22 @@
|
|
|
<if test="hour != null">HOUR,</if>
|
|
<if test="hour != null">HOUR,</if>
|
|
|
<if test="deviceId != null">DEVICE_ID,</if>
|
|
<if test="deviceId != null">DEVICE_ID,</if>
|
|
|
<if test="length != null">LENGTH,</if>
|
|
<if test="length != null">LENGTH,</if>
|
|
|
- <if test="weight != null">WEIGHT,</if>
|
|
|
|
|
<if test="distance != null">DISTANCE,</if>
|
|
<if test="distance != null">DISTANCE,</if>
|
|
|
<if test="remark != null">REMARK,</if>
|
|
<if test="remark != null">REMARK,</if>
|
|
|
|
|
+ <if test="weight != null">WEIGHT,</if>
|
|
|
|
|
+ <if test="openTime != null">OPEN_TIME,</if>
|
|
|
|
|
+ <if test="closeTime != null">CLOSE_TIME,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="dataDate != null">#{dataDate},</if>
|
|
<if test="dataDate != null">#{dataDate},</if>
|
|
|
<if test="hour != null">#{hour},</if>
|
|
<if test="hour != null">#{hour},</if>
|
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
<if test="deviceId != null">#{deviceId},</if>
|
|
|
<if test="length != null">#{length},</if>
|
|
<if test="length != null">#{length},</if>
|
|
|
- <if test="weight != null">#{weight},</if>
|
|
|
|
|
<if test="distance != null">#{distance},</if>
|
|
<if test="distance != null">#{distance},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
+ <if test="weight != null">#{weight},</if>
|
|
|
|
|
+ <if test="openTime != null">#{openTime},</if>
|
|
|
|
|
+ <if test="closeTime != null">#{closeTime},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -89,6 +100,8 @@
|
|
|
<if test="weight != null">WEIGHT = #{weight},</if>
|
|
<if test="weight != null">WEIGHT = #{weight},</if>
|
|
|
<if test="distance != null">DISTANCE = #{distance},</if>
|
|
<if test="distance != null">DISTANCE = #{distance},</if>
|
|
|
<if test="remark != null">REMARK = #{remark},</if>
|
|
<if test="remark != null">REMARK = #{remark},</if>
|
|
|
|
|
+ <if test="openTime != null">OPEN_TIME = #{openTime},</if>
|
|
|
|
|
+ <if test="closeTime != null">CLOSE_TIME = #{closeTime},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where ID = #{id}
|
|
where ID = #{id}
|
|
|
</update>
|
|
</update>
|