| | |
| | | <resultMap id="BaseResultMap" type="com.dy.pmsGlobal.pojoSta.StaRepairInfo"> |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <result property="equipNo" column="equip_no" jdbcType="VARCHAR"/> |
| | | <result property="fromNode" column="from_node" jdbcType="VARCHAR"/> |
| | | <result property="fromNode" column="from_node" jdbcType="BIGINT"/> |
| | | <result property="repairReason" column="repair_reason" jdbcType="VARCHAR"/> |
| | | <result property="toNode" column="to_node" jdbcType="VARCHAR"/> |
| | | <result property="repairBy" column="repair_by" jdbcType="VARCHAR"/> |
| | | <result property="toNode" column="to_node" jdbcType="BIGINT"/> |
| | | <result property="repairBy" column="repair_by" jdbcType="BIGINT"/> |
| | | <result property="repairTime" column="repair_time" jdbcType="TIMESTAMP"/> |
| | | <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
| | | <result property="createBy" column="create_by" jdbcType="BIGINT"/> |
| | |
| | | ,repair_reason,to_node,repair_by |
| | | ,repair_time,create_time,create_by |
| | | ) |
| | | values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{fromNode,jdbcType=VARCHAR} |
| | | ,#{repairReason,jdbcType=VARCHAR},#{toNode,jdbcType=VARCHAR},#{repairBy,jdbcType=VARCHAR} |
| | | values (#{id,jdbcType=BIGINT},#{equipNo,jdbcType=VARCHAR},#{fromNode,jdbcType=BIGINT} |
| | | ,#{repairReason,jdbcType=VARCHAR},#{toNode,jdbcType=BIGINT},#{repairBy,jdbcType=BIGINT} |
| | | ,#{repairTime,jdbcType=TIMESTAMP},#{createTime,jdbcType=TIMESTAMP},#{createBy,jdbcType=BIGINT} |
| | | ) |
| | | </insert> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="equipNo != null">#{equipNo,jdbcType=VARCHAR},</if> |
| | | <if test="fromNode != null">#{fromNode,jdbcType=VARCHAR},</if> |
| | | <if test="fromNode != null">#{fromNode,jdbcType=BIGINT},</if> |
| | | <if test="repairReason != null">#{repairReason,jdbcType=VARCHAR},</if> |
| | | <if test="toNode != null">#{toNode,jdbcType=VARCHAR},</if> |
| | | <if test="repairBy != null">#{repairBy,jdbcType=VARCHAR},</if> |
| | | <if test="toNode != null">#{toNode,jdbcType=BIGINT},</if> |
| | | <if test="repairBy != null">#{repairBy,jdbcType=BIGINT},</if> |
| | | <if test="repairTime != null">#{repairTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createTime != null">#{createTime,jdbcType=TIMESTAMP},</if> |
| | | <if test="createBy != null">#{createBy,jdbcType=BIGINT},</if> |
| | |
| | | equip_no = #{equipNo,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="fromNode != null"> |
| | | from_node = #{fromNode,jdbcType=VARCHAR}, |
| | | from_node = #{fromNode,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="repairReason != null"> |
| | | repair_reason = #{repairReason,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="toNode != null"> |
| | | to_node = #{toNode,jdbcType=VARCHAR}, |
| | | to_node = #{toNode,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="repairBy != null"> |
| | | repair_by = #{repairBy,jdbcType=VARCHAR}, |
| | | repair_by = #{repairBy,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="repairTime != null"> |
| | | repair_time = #{repairTime,jdbcType=TIMESTAMP}, |
| | |
| | | update sta_repair_info |
| | | set |
| | | equip_no = #{equipNo,jdbcType=VARCHAR}, |
| | | from_node = #{fromNode,jdbcType=VARCHAR}, |
| | | from_node = #{fromNode,jdbcType=BIGINT}, |
| | | repair_reason = #{repairReason,jdbcType=VARCHAR}, |
| | | to_node = #{toNode,jdbcType=VARCHAR}, |
| | | repair_by = #{repairBy,jdbcType=VARCHAR}, |
| | | to_node = #{toNode,jdbcType=BIGINT}, |
| | | repair_by = #{repairBy,jdbcType=BIGINT}, |
| | | repair_time = #{repairTime,jdbcType=TIMESTAMP}, |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | create_by = #{createBy,jdbcType=BIGINT} |