|
@@ -0,0 +1,491 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
+<mapper namespace="cn.com.ty.lift.mapper.LiftMapper" >
|
|
|
+ <resultMap id="BaseResultMap" type="Lift" >
|
|
|
+ <id column="id" property="id" jdbcType="BIGINT" />
|
|
|
+ <result column="registration_code" property="registrationCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="category" property="category" jdbcType="TINYINT" />
|
|
|
+ <result column="type" property="type" jdbcType="INTEGER" />
|
|
|
+ <result column="code" property="code" jdbcType="CHAR" />
|
|
|
+ <result column="manufacture_date" property="manufactureDate" jdbcType="DATE" />
|
|
|
+ <result column="factory_code" property="factoryCode" jdbcType="VARCHAR" />
|
|
|
+ <result column="usage" property="usage" jdbcType="TINYINT" />
|
|
|
+ <result column="brand" property="brand" jdbcType="VARCHAR" />
|
|
|
+ <result column="install_company" property="installCompany" jdbcType="VARCHAR" />
|
|
|
+ <result column="model" property="model" jdbcType="VARCHAR" />
|
|
|
+ <result column="pulley_diameter" property="pulleyDiameter" jdbcType="DECIMAL" />
|
|
|
+ <result column="rope_num" property="ropeNum" jdbcType="INTEGER" />
|
|
|
+ <result column="lock_model" property="lockModel" jdbcType="VARCHAR" />
|
|
|
+ <result column="rated_load" property="ratedLoad" jdbcType="INTEGER" />
|
|
|
+ <result column="promote_height" property="promoteHeight" jdbcType="DECIMAL" />
|
|
|
+ <result column="step_width" property="stepWidth" jdbcType="DECIMAL" />
|
|
|
+ <result column="sidewalk_length" property="sidewalkLength" jdbcType="DECIMAL" />
|
|
|
+ <result column="tilt_angle" property="tiltAngle" jdbcType="DECIMAL" />
|
|
|
+ <result column="motor_power" property="motorPower" jdbcType="DECIMAL" />
|
|
|
+ <result column="rated_speed" property="ratedSpeed" jdbcType="DECIMAL" />
|
|
|
+ <result column="layer_station_door" property="layerStationDoor" jdbcType="VARCHAR" />
|
|
|
+ <result column="clamp_type" property="clampType" jdbcType="TINYINT" />
|
|
|
+ <result column="reform_company" property="reformCompany" jdbcType="VARCHAR" />
|
|
|
+ <result column="position" property="position" jdbcType="VARCHAR" />
|
|
|
+ <result column="coordinate" property="coordinate" jdbcType="VARCHAR" />
|
|
|
+ <result column="remarks" property="remarks" jdbcType="VARCHAR" />
|
|
|
+ <result column="creator_id" property="creatorId" jdbcType="BIGINT" />
|
|
|
+ <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
|
|
+ <result column="steel_belt" property="steelBelt" jdbcType="INTEGER" />
|
|
|
+ <result column="cylinder_type" property="cylinderType" jdbcType="VARCHAR" />
|
|
|
+ <result column="cylinder_num" property="cylinderNum" jdbcType="INTEGER" />
|
|
|
+ <result column="top_type" property="topType" jdbcType="TINYINT" />
|
|
|
+ <result column="control_type" property="controlType" jdbcType="VARCHAR" />
|
|
|
+ <result column="mpa" property="mpa" jdbcType="INTEGER" />
|
|
|
+ <result column="factory" property="factory" jdbcType="VARCHAR" />
|
|
|
+ <result column="code1" property="code1" jdbcType="VARCHAR" />
|
|
|
+ <result column="use_company_code" property="useCompanyCode" jdbcType="VARCHAR" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
+ id, registration_code, category, type, code, manufacture_date, factory_code, usage,
|
|
|
+ brand, install_company, model, pulley_diameter, rope_num, lock_model, rated_load,
|
|
|
+ promote_height, step_width, sidewalk_length, tilt_angle, motor_power, rated_speed,
|
|
|
+ layer_station_door, clamp_type, reform_company, position, coordinate, remarks, creator_id,
|
|
|
+ create_date, steel_belt, cylinder_type, cylinder_num, top_type, control_type, mpa,
|
|
|
+ factory, code1, use_company_code
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from lift
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|
|
|
+ delete from lift
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <insert id="insert" parameterType="cn.com.ty.lift.entity.Lift" >
|
|
|
+ insert into lift (id, registration_code, category,
|
|
|
+ type, code, manufacture_date,
|
|
|
+ factory_code, usage, brand,
|
|
|
+ install_company, model, pulley_diameter,
|
|
|
+ rope_num, lock_model, rated_load,
|
|
|
+ promote_height, step_width, sidewalk_length,
|
|
|
+ tilt_angle, motor_power, rated_speed,
|
|
|
+ layer_station_door, clamp_type, reform_company,
|
|
|
+ position, coordinate, remarks,
|
|
|
+ creator_id, create_date, steel_belt,
|
|
|
+ cylinder_type, cylinder_num, top_type,
|
|
|
+ control_type, mpa, factory,
|
|
|
+ code1, use_company_code)
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{registrationCode,jdbcType=VARCHAR}, #{category,jdbcType=TINYINT},
|
|
|
+ #{type,jdbcType=INTEGER}, #{code,jdbcType=CHAR}, #{manufactureDate,jdbcType=DATE},
|
|
|
+ #{factoryCode,jdbcType=VARCHAR}, #{usage,jdbcType=TINYINT}, #{brand,jdbcType=VARCHAR},
|
|
|
+ #{installCompany,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{pulleyDiameter,jdbcType=DECIMAL},
|
|
|
+ #{ropeNum,jdbcType=INTEGER}, #{lockModel,jdbcType=VARCHAR}, #{ratedLoad,jdbcType=INTEGER},
|
|
|
+ #{promoteHeight,jdbcType=DECIMAL}, #{stepWidth,jdbcType=DECIMAL}, #{sidewalkLength,jdbcType=DECIMAL},
|
|
|
+ #{tiltAngle,jdbcType=DECIMAL}, #{motorPower,jdbcType=DECIMAL}, #{ratedSpeed,jdbcType=DECIMAL},
|
|
|
+ #{layerStationDoor,jdbcType=VARCHAR}, #{clampType,jdbcType=TINYINT}, #{reformCompany,jdbcType=VARCHAR},
|
|
|
+ #{position,jdbcType=VARCHAR}, #{coordinate,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR},
|
|
|
+ #{creatorId,jdbcType=BIGINT}, #{createDate,jdbcType=TIMESTAMP}, #{steelBelt,jdbcType=INTEGER},
|
|
|
+ #{cylinderType,jdbcType=VARCHAR}, #{cylinderNum,jdbcType=INTEGER}, #{topType,jdbcType=TINYINT},
|
|
|
+ #{controlType,jdbcType=VARCHAR}, #{mpa,jdbcType=INTEGER}, #{factory,jdbcType=VARCHAR},
|
|
|
+ #{code1,jdbcType=VARCHAR}, #{useCompanyCode,jdbcType=VARCHAR})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <insert id="insertSelective" parameterType="cn.com.ty.lift.entity.Lift" >
|
|
|
+ insert into lift
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="id != null" >
|
|
|
+ id,
|
|
|
+ </if>
|
|
|
+ <if test="registrationCode != null" >
|
|
|
+ registration_code,
|
|
|
+ </if>
|
|
|
+ <if test="category != null" >
|
|
|
+ category,
|
|
|
+ </if>
|
|
|
+ <if test="type != null" >
|
|
|
+ type,
|
|
|
+ </if>
|
|
|
+ <if test="code != null" >
|
|
|
+ code,
|
|
|
+ </if>
|
|
|
+ <if test="manufactureDate != null" >
|
|
|
+ manufacture_date,
|
|
|
+ </if>
|
|
|
+ <if test="factoryCode != null" >
|
|
|
+ factory_code,
|
|
|
+ </if>
|
|
|
+ <if test="usage != null" >
|
|
|
+ usage,
|
|
|
+ </if>
|
|
|
+ <if test="brand != null" >
|
|
|
+ brand,
|
|
|
+ </if>
|
|
|
+ <if test="installCompany != null" >
|
|
|
+ install_company,
|
|
|
+ </if>
|
|
|
+ <if test="model != null" >
|
|
|
+ model,
|
|
|
+ </if>
|
|
|
+ <if test="pulleyDiameter != null" >
|
|
|
+ pulley_diameter,
|
|
|
+ </if>
|
|
|
+ <if test="ropeNum != null" >
|
|
|
+ rope_num,
|
|
|
+ </if>
|
|
|
+ <if test="lockModel != null" >
|
|
|
+ lock_model,
|
|
|
+ </if>
|
|
|
+ <if test="ratedLoad != null" >
|
|
|
+ rated_load,
|
|
|
+ </if>
|
|
|
+ <if test="promoteHeight != null" >
|
|
|
+ promote_height,
|
|
|
+ </if>
|
|
|
+ <if test="stepWidth != null" >
|
|
|
+ step_width,
|
|
|
+ </if>
|
|
|
+ <if test="sidewalkLength != null" >
|
|
|
+ sidewalk_length,
|
|
|
+ </if>
|
|
|
+ <if test="tiltAngle != null" >
|
|
|
+ tilt_angle,
|
|
|
+ </if>
|
|
|
+ <if test="motorPower != null" >
|
|
|
+ motor_power,
|
|
|
+ </if>
|
|
|
+ <if test="ratedSpeed != null" >
|
|
|
+ rated_speed,
|
|
|
+ </if>
|
|
|
+ <if test="layerStationDoor != null" >
|
|
|
+ layer_station_door,
|
|
|
+ </if>
|
|
|
+ <if test="clampType != null" >
|
|
|
+ clamp_type,
|
|
|
+ </if>
|
|
|
+ <if test="reformCompany != null" >
|
|
|
+ reform_company,
|
|
|
+ </if>
|
|
|
+ <if test="position != null" >
|
|
|
+ position,
|
|
|
+ </if>
|
|
|
+ <if test="coordinate != null" >
|
|
|
+ coordinate,
|
|
|
+ </if>
|
|
|
+ <if test="remarks != null" >
|
|
|
+ remarks,
|
|
|
+ </if>
|
|
|
+ <if test="creatorId != null" >
|
|
|
+ creator_id,
|
|
|
+ </if>
|
|
|
+ <if test="createDate != null" >
|
|
|
+ create_date,
|
|
|
+ </if>
|
|
|
+ <if test="steelBelt != null" >
|
|
|
+ steel_belt,
|
|
|
+ </if>
|
|
|
+ <if test="cylinderType != null" >
|
|
|
+ cylinder_type,
|
|
|
+ </if>
|
|
|
+ <if test="cylinderNum != null" >
|
|
|
+ cylinder_num,
|
|
|
+ </if>
|
|
|
+ <if test="topType != null" >
|
|
|
+ top_type,
|
|
|
+ </if>
|
|
|
+ <if test="controlType != null" >
|
|
|
+ control_type,
|
|
|
+ </if>
|
|
|
+ <if test="mpa != null" >
|
|
|
+ mpa,
|
|
|
+ </if>
|
|
|
+ <if test="factory != null" >
|
|
|
+ factory,
|
|
|
+ </if>
|
|
|
+ <if test="code1 != null" >
|
|
|
+ code1,
|
|
|
+ </if>
|
|
|
+ <if test="useCompanyCode != null" >
|
|
|
+ use_company_code,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
+ <if test="id != null" >
|
|
|
+ #{id,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="registrationCode != null" >
|
|
|
+ #{registrationCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="category != null" >
|
|
|
+ #{category,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="type != null" >
|
|
|
+ #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="code != null" >
|
|
|
+ #{code,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="manufactureDate != null" >
|
|
|
+ #{manufactureDate,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="factoryCode != null" >
|
|
|
+ #{factoryCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="usage != null" >
|
|
|
+ #{usage,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="brand != null" >
|
|
|
+ #{brand,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="installCompany != null" >
|
|
|
+ #{installCompany,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="model != null" >
|
|
|
+ #{model,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pulleyDiameter != null" >
|
|
|
+ #{pulleyDiameter,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="ropeNum != null" >
|
|
|
+ #{ropeNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="lockModel != null" >
|
|
|
+ #{lockModel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ratedLoad != null" >
|
|
|
+ #{ratedLoad,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="promoteHeight != null" >
|
|
|
+ #{promoteHeight,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="stepWidth != null" >
|
|
|
+ #{stepWidth,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="sidewalkLength != null" >
|
|
|
+ #{sidewalkLength,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="tiltAngle != null" >
|
|
|
+ #{tiltAngle,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="motorPower != null" >
|
|
|
+ #{motorPower,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="ratedSpeed != null" >
|
|
|
+ #{ratedSpeed,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="layerStationDoor != null" >
|
|
|
+ #{layerStationDoor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="clampType != null" >
|
|
|
+ #{clampType,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="reformCompany != null" >
|
|
|
+ #{reformCompany,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="position != null" >
|
|
|
+ #{position,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="coordinate != null" >
|
|
|
+ #{coordinate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remarks != null" >
|
|
|
+ #{remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="creatorId != null" >
|
|
|
+ #{creatorId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="createDate != null" >
|
|
|
+ #{createDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="steelBelt != null" >
|
|
|
+ #{steelBelt,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="cylinderType != null" >
|
|
|
+ #{cylinderType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cylinderNum != null" >
|
|
|
+ #{cylinderNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="topType != null" >
|
|
|
+ #{topType,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="controlType != null" >
|
|
|
+ #{controlType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mpa != null" >
|
|
|
+ #{mpa,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="factory != null" >
|
|
|
+ #{factory,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="code1 != null" >
|
|
|
+ #{code1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="useCompanyCode != null" >
|
|
|
+ #{useCompanyCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="cn.com.ty.lift.entity.Lift" >
|
|
|
+ update lift
|
|
|
+ <set >
|
|
|
+ <if test="registrationCode != null" >
|
|
|
+ registration_code = #{registrationCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="category != null" >
|
|
|
+ category = #{category,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="type != null" >
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="code != null" >
|
|
|
+ code = #{code,jdbcType=CHAR},
|
|
|
+ </if>
|
|
|
+ <if test="manufactureDate != null" >
|
|
|
+ manufacture_date = #{manufactureDate,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="factoryCode != null" >
|
|
|
+ factory_code = #{factoryCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="usage != null" >
|
|
|
+ usage = #{usage,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="brand != null" >
|
|
|
+ brand = #{brand,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="installCompany != null" >
|
|
|
+ install_company = #{installCompany,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="model != null" >
|
|
|
+ model = #{model,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="pulleyDiameter != null" >
|
|
|
+ pulley_diameter = #{pulleyDiameter,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="ropeNum != null" >
|
|
|
+ rope_num = #{ropeNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="lockModel != null" >
|
|
|
+ lock_model = #{lockModel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ratedLoad != null" >
|
|
|
+ rated_load = #{ratedLoad,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="promoteHeight != null" >
|
|
|
+ promote_height = #{promoteHeight,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="stepWidth != null" >
|
|
|
+ step_width = #{stepWidth,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="sidewalkLength != null" >
|
|
|
+ sidewalk_length = #{sidewalkLength,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="tiltAngle != null" >
|
|
|
+ tilt_angle = #{tiltAngle,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="motorPower != null" >
|
|
|
+ motor_power = #{motorPower,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="ratedSpeed != null" >
|
|
|
+ rated_speed = #{ratedSpeed,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="layerStationDoor != null" >
|
|
|
+ layer_station_door = #{layerStationDoor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="clampType != null" >
|
|
|
+ clamp_type = #{clampType,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="reformCompany != null" >
|
|
|
+ reform_company = #{reformCompany,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="position != null" >
|
|
|
+ position = #{position,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="coordinate != null" >
|
|
|
+ coordinate = #{coordinate,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remarks != null" >
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="creatorId != null" >
|
|
|
+ creator_id = #{creatorId,jdbcType=BIGINT},
|
|
|
+ </if>
|
|
|
+ <if test="createDate != null" >
|
|
|
+ create_date = #{createDate,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="steelBelt != null" >
|
|
|
+ steel_belt = #{steelBelt,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="cylinderType != null" >
|
|
|
+ cylinder_type = #{cylinderType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="cylinderNum != null" >
|
|
|
+ cylinder_num = #{cylinderNum,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="topType != null" >
|
|
|
+ top_type = #{topType,jdbcType=TINYINT},
|
|
|
+ </if>
|
|
|
+ <if test="controlType != null" >
|
|
|
+ control_type = #{controlType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="mpa != null" >
|
|
|
+ mpa = #{mpa,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="factory != null" >
|
|
|
+ factory = #{factory,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="code1 != null" >
|
|
|
+ code1 = #{code1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="useCompanyCode != null" >
|
|
|
+ use_company_code = #{useCompanyCode,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="updateByPrimaryKey" parameterType="cn.com.ty.lift.entity.Lift" >
|
|
|
+ update lift
|
|
|
+ set registration_code = #{registrationCode,jdbcType=VARCHAR},
|
|
|
+ category = #{category,jdbcType=TINYINT},
|
|
|
+ type = #{type,jdbcType=INTEGER},
|
|
|
+ code = #{code,jdbcType=CHAR},
|
|
|
+ manufacture_date = #{manufactureDate,jdbcType=DATE},
|
|
|
+ factory_code = #{factoryCode,jdbcType=VARCHAR},
|
|
|
+ usage = #{usage,jdbcType=TINYINT},
|
|
|
+ brand = #{brand,jdbcType=VARCHAR},
|
|
|
+ install_company = #{installCompany,jdbcType=VARCHAR},
|
|
|
+ model = #{model,jdbcType=VARCHAR},
|
|
|
+ pulley_diameter = #{pulleyDiameter,jdbcType=DECIMAL},
|
|
|
+ rope_num = #{ropeNum,jdbcType=INTEGER},
|
|
|
+ lock_model = #{lockModel,jdbcType=VARCHAR},
|
|
|
+ rated_load = #{ratedLoad,jdbcType=INTEGER},
|
|
|
+ promote_height = #{promoteHeight,jdbcType=DECIMAL},
|
|
|
+ step_width = #{stepWidth,jdbcType=DECIMAL},
|
|
|
+ sidewalk_length = #{sidewalkLength,jdbcType=DECIMAL},
|
|
|
+ tilt_angle = #{tiltAngle,jdbcType=DECIMAL},
|
|
|
+ motor_power = #{motorPower,jdbcType=DECIMAL},
|
|
|
+ rated_speed = #{ratedSpeed,jdbcType=DECIMAL},
|
|
|
+ layer_station_door = #{layerStationDoor,jdbcType=VARCHAR},
|
|
|
+ clamp_type = #{clampType,jdbcType=TINYINT},
|
|
|
+ reform_company = #{reformCompany,jdbcType=VARCHAR},
|
|
|
+ position = #{position,jdbcType=VARCHAR},
|
|
|
+ coordinate = #{coordinate,jdbcType=VARCHAR},
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ creator_id = #{creatorId,jdbcType=BIGINT},
|
|
|
+ create_date = #{createDate,jdbcType=TIMESTAMP},
|
|
|
+ steel_belt = #{steelBelt,jdbcType=INTEGER},
|
|
|
+ cylinder_type = #{cylinderType,jdbcType=VARCHAR},
|
|
|
+ cylinder_num = #{cylinderNum,jdbcType=INTEGER},
|
|
|
+ top_type = #{topType,jdbcType=TINYINT},
|
|
|
+ control_type = #{controlType,jdbcType=VARCHAR},
|
|
|
+ mpa = #{mpa,jdbcType=INTEGER},
|
|
|
+ factory = #{factory,jdbcType=VARCHAR},
|
|
|
+ code1 = #{code1,jdbcType=VARCHAR},
|
|
|
+ use_company_code = #{useCompanyCode,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+
|
|
|
+</mapper>
|