| | |
| | | <result property="planId" column="plan_id" jdbcType="BIGINT"/> |
| | | <result property="processId" column="process_id" jdbcType="BIGINT"/> |
| | | <result property="nodeId" column="node_id" jdbcType="BIGINT"/> |
| | | <result property="nodeType" column="node_type" jdbcType="VARCHAR"/> |
| | | <result property="dt" column="dt" jdbcType="TIMESTAMP"/> |
| | | <result property="status" column="status" jdbcType="TINYINT"/> |
| | | <result property="startTime" column="start_time" jdbcType="TIMESTAMP"/> |
| | |
| | | <result property="planId" column="plan_id" jdbcType="BIGINT"/> |
| | | <result property="processId" column="process_id" jdbcType="BIGINT"/> |
| | | <result property="nodeId" column="node_id" jdbcType="BIGINT"/> |
| | | <result property="nodeType" column="node_type" jdbcType="VARCHAR"/> |
| | | <result property="dt" column="dt" jdbcType="TIMESTAMP"/> |
| | | <result property="status" column="status" jdbcType="TINYINT"/> |
| | | <result property="startTime" column="start_time" jdbcType="TIMESTAMP"/> |
| | |
| | | <sql id="Base_Column_List"> |
| | | id,user_id,line_id, |
| | | station_id,plan_id,process_id, |
| | | node_id,dt,status, |
| | | node_id,node_type,dt,status, |
| | | start_time,end_time,assistants |
| | | </sql> |
| | | <sql id="part_Column_List"> |
| | |
| | | ${alias}.plan_id, |
| | | ${alias}.process_id, |
| | | ${alias}.node_id, |
| | | ${alias}.node_type, |
| | | ${alias}.dt, |
| | | ${alias}.status, |
| | | ${alias}.start_time, |
| | |
| | | insert into sta_assembly_work_last |
| | | ( id,user_id,line_id |
| | | ,station_id,plan_id,process_id |
| | | ,node_id,dt,status |
| | | ,node_id,node_type,dt,status |
| | | ,start_time,end_time,assistants |
| | | ) |
| | | values (#{id,jdbcType=BIGINT},#{userId,jdbcType=BIGINT},#{lineId,jdbcType=BIGINT} |
| | | ,#{stationId,jdbcType=BIGINT},#{planId,jdbcType=BIGINT},#{processId,jdbcType=BIGINT} |
| | | ,#{nodeId,jdbcType=BIGINT},#{dt,jdbcType=TIMESTAMP},#{status,jdbcType=TINYINT} |
| | | ,#{nodeId,jdbcType=BIGINT},#{nodeType,jdbcType=VARCHAR},#{dt,jdbcType=TIMESTAMP},#{status,jdbcType=TINYINT} |
| | | ,#{startTime,jdbcType=TIMESTAMP},#{endTime,jdbcType=TIMESTAMP},#{assistants,jdbcType=VARCHAR} |
| | | ) |
| | | </insert> |
| | |
| | | <if test="planId != null">plan_id,</if> |
| | | <if test="processId != null">process_id,</if> |
| | | <if test="nodeId != null">node_id,</if> |
| | | <if test="nodeType != null">node_Type,</if> |
| | | <if test="dt != null">dt,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="startTime != null">start_time,</if> |
| | |
| | | <if test="planId != null">#{planId,jdbcType=BIGINT},</if> |
| | | <if test="processId != null">#{processId,jdbcType=BIGINT},</if> |
| | | <if test="nodeId != null">#{nodeId,jdbcType=BIGINT},</if> |
| | | <if test="nodeType != null">#{nodeType,jdbcType=BIGINT},</if> |
| | | <if test="dt != null">#{dt,jdbcType=TIMESTAMP},</if> |
| | | <if test="status != null">#{status,jdbcType=TINYINT},</if> |
| | | <if test="startTime != null">#{startTime,jdbcType=TIMESTAMP},</if> |
| | |
| | | <if test="nodeId != null"> |
| | | node_id = #{nodeId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="nodeType != null"> |
| | | node_type = #{nodeType,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="dt != null"> |
| | | dt = #{dt,jdbcType=TIMESTAMP}, |
| | | </if> |
| | |
| | | plan_id = #{planId,jdbcType=BIGINT}, |
| | | process_id = #{processId,jdbcType=BIGINT}, |
| | | node_id = #{nodeId,jdbcType=BIGINT}, |
| | | node_type = #{nodeType,jdbcType=BIGINT}, |
| | | dt = #{dt,jdbcType=TIMESTAMP}, |
| | | status = #{status,jdbcType=TINYINT}, |
| | | start_time = #{startTime,jdbcType=TIMESTAMP}, |