|
@@ -42,6 +42,8 @@
|
|
|
<result property="uuid" column="uuid"/>
|
|
|
<result property="dt" column="dt"/>
|
|
|
<result property="id" column="id"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ <result property="recordTime" column="record_time"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMachineProcessVo">
|
|
@@ -58,7 +60,31 @@
|
|
|
longitude,
|
|
|
pile_length,
|
|
|
real_pile_length,
|
|
|
- speed, current, tilt_angle, forward_tilt_angle, vertical_angle, self_num, hold_current, spray_volume, real_drill_height, vibration_current, pump_current, spray_pressure, spray_speed, design_length, current_drill_number, start_time, end_time, current_mechanical_type, current_layer, current_layer_send_time, current_layer_hammer_number, uuid, dt, id
|
|
|
+ speed,
|
|
|
+ tilt_angle,
|
|
|
+ forward_tilt_angle,
|
|
|
+ vertical_angle,
|
|
|
+ self_num,
|
|
|
+ hold_current,
|
|
|
+ spray_volume,
|
|
|
+ real_drill_height,
|
|
|
+ vibration_current,
|
|
|
+ pump_current,
|
|
|
+ spray_pressure,
|
|
|
+ spray_speed,
|
|
|
+ design_length,
|
|
|
+ current_drill_number,
|
|
|
+ start_time,
|
|
|
+ end_time,
|
|
|
+ current_mechanical_type,
|
|
|
+ current_layer,
|
|
|
+ current_layer_send_time,
|
|
|
+ current_layer_hammer_number,
|
|
|
+ uuid,
|
|
|
+ dt,
|
|
|
+ id,
|
|
|
+ create_time,
|
|
|
+ record_time, current
|
|
|
from cons_machine_process
|
|
|
</sql>
|
|
|
|
|
@@ -102,6 +128,9 @@
|
|
|
</if>
|
|
|
<if test="uuid != null and uuid != ''">and uuid = #{uuid}</if>
|
|
|
<if test="dt != null and dt != ''">and dt = #{dt}</if>
|
|
|
+ <if test="id != null ">and id = #{id}</if>
|
|
|
+ <if test="recordTime != null">and record_time = #{recordTime}</if>
|
|
|
+ <if test="createTime != null">and create_time #{createTime}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -149,6 +178,8 @@
|
|
|
<if test="currentLayerHammerNumber != null">current_layer_hammer_number,</if>
|
|
|
<if test="uuid != null">uuid,</if>
|
|
|
<if test="dt != null">dt,</if>
|
|
|
+ <if test="recordTime != null">record_time,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="consType != null">#{consType},</if>
|
|
@@ -187,6 +218,8 @@
|
|
|
<if test="currentLayerHammerNumber != null">#{currentLayerHammerNumber},</if>
|
|
|
<if test="uuid != null">#{uuid},</if>
|
|
|
<if test="dt != null">#{dt},</if>
|
|
|
+ <if test="recordTime != null">#{recordTime},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -229,6 +262,8 @@
|
|
|
<if test="currentLayerHammerNumber != null">current_layer_hammer_number,</if>
|
|
|
<if test="uuid != null">uuid,</if>
|
|
|
<if test="dt != null">dt,</if>
|
|
|
+ <if test="recordTime != null">record_time,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="consType != null">#{consType},</if>
|
|
@@ -267,6 +302,8 @@
|
|
|
<if test="currentLayerHammerNumber != null">#{currentLayerHammerNumber},</if>
|
|
|
<if test="uuid != null">#{uuid},</if>
|
|
|
<if test="dt != null">#{dt},</if>
|
|
|
+ <if test="recordTime != null">#{recordTime},</if>
|
|
|
+ <if test="createTime != null">now(),</if>
|
|
|
</trim>
|
|
|
on duplicate key update
|
|
|
<trim suffixOverrides=",">
|
|
@@ -304,8 +341,12 @@
|
|
|
<if test="currentMechanicalType != null">current_mechanical_type = VALUES(current_mechanical_type),</if>
|
|
|
<if test="currentLayer != null">current_layer = VALUES(current_layer),</if>
|
|
|
<if test="currentLayerSendTime != null">current_layer_send_time = VALUES(current_layer_send_time),</if>
|
|
|
- <if test="currentLayerHammerNumber != null">current_layer_hammer_number = VALUES(current_layer_hammer_number),</if>
|
|
|
+ <if test="currentLayerHammerNumber != null">current_layer_hammer_number =
|
|
|
+ VALUES(current_layer_hammer_number),
|
|
|
+ </if>
|
|
|
<if test="dt != null">dt = VALUES(dt),</if>
|
|
|
+ <if test="recordTime != null">record_time = VALUES(record_time),</if>
|
|
|
+ <if test="createTime != null">create_time = NOW(),</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -348,6 +389,8 @@
|
|
|
<if test="currentLayerHammerNumber != null">current_layer_hammer_number = #{currentLayerHammerNumber},</if>
|
|
|
<if test="uuid != null">uuid = #{uuid},</if>
|
|
|
<if test="dt != null">dt = #{dt},</if>
|
|
|
+ <if test="recordTime != null">record_time = #{recordTime},</if>
|
|
|
+ <if test="createTime != null">create_time = NOW(),</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|