|
@@ -39,16 +39,22 @@
|
|
<result column="mpa" property="mpa" jdbcType="INTEGER" />
|
|
<result column="mpa" property="mpa" jdbcType="INTEGER" />
|
|
<result column="factory" property="factory" jdbcType="VARCHAR" />
|
|
<result column="factory" property="factory" jdbcType="VARCHAR" />
|
|
<result column="custom_number" property="customNumber" jdbcType="VARCHAR" />
|
|
<result column="custom_number" property="customNumber" jdbcType="VARCHAR" />
|
|
- <result column="company_code" property="companyCode" jdbcType="VARCHAR" />
|
|
|
|
|
|
+ <result column="use_company_code" property="useCompanyCode" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="device_position_code" property="devicePositionCode" jdbcType="CHAR" />
|
|
|
|
+ <result column="agency" property="agency" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="reform_date" property="reformDate" jdbcType="TIMESTAMP" />
|
|
|
|
+ <result column="install_date" property="installDate" jdbcType="TIMESTAMP" />
|
|
|
|
+ <result column="inner_floor" property="innerFloor" jdbcType="TINYINT" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
- id, registration_code, category, lift_type, lift_code, manufacture_date, factory_code,
|
|
|
|
- device_usage, lift_brand, install_company, lift_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, device_position,
|
|
|
|
- coordinate, remarks, creator_id, create_date, steel_belt, cylinder_type, cylinder_num,
|
|
|
|
- top_type, control_type, mpa, factory, custom_number, company_code
|
|
|
|
|
|
+ id, registration_code, category, lift_type, lift_code, manufacture_date, factory_code,
|
|
|
|
+ device_usage, lift_brand, install_company, lift_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, device_position,
|
|
|
|
+ coordinate, remarks, creator_id, create_date, steel_belt, cylinder_type, cylinder_num,
|
|
|
|
+ top_type, control_type, mpa, factory, custom_number, use_company_code, device_position_code,
|
|
|
|
+ agency, reform_date, install_date, inner_floor
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
@@ -82,32 +88,36 @@
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
<insert id="insert" parameterType="cn.com.ty.lift.manager.library.dao.entity.Lift" >
|
|
<insert id="insert" parameterType="cn.com.ty.lift.manager.library.dao.entity.Lift" >
|
|
- insert into lift (id, registration_code, category,
|
|
|
|
- lift_type, lift_code, manufacture_date,
|
|
|
|
- factory_code, device_usage, lift_brand,
|
|
|
|
- install_company, lift_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,
|
|
|
|
- device_position, coordinate, remarks,
|
|
|
|
- creator_id, create_date, steel_belt,
|
|
|
|
- cylinder_type, cylinder_num, top_type,
|
|
|
|
- control_type, mpa, factory,
|
|
|
|
- custom_number, company_code)
|
|
|
|
- values (#{id,jdbcType=BIGINT}, #{registrationCode,jdbcType=VARCHAR}, #{category,jdbcType=TINYINT},
|
|
|
|
- #{liftType,jdbcType=INTEGER}, #{liftCode,jdbcType=CHAR}, #{manufactureDate,jdbcType=DATE},
|
|
|
|
- #{factoryCode,jdbcType=VARCHAR}, #{deviceUsage,jdbcType=TINYINT}, #{liftBrand,jdbcType=VARCHAR},
|
|
|
|
- #{installCompany,jdbcType=VARCHAR}, #{liftModel,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},
|
|
|
|
- #{devicePosition,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},
|
|
|
|
- #{customNumber,jdbcType=VARCHAR}, #{companyCode,jdbcType=VARCHAR})
|
|
|
|
|
|
+ insert into lift (id, registration_code, category,
|
|
|
|
+ lift_type, lift_code, manufacture_date,
|
|
|
|
+ factory_code, device_usage, lift_brand,
|
|
|
|
+ install_company, lift_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,
|
|
|
|
+ device_position, coordinate, remarks,
|
|
|
|
+ creator_id, create_date, steel_belt,
|
|
|
|
+ cylinder_type, cylinder_num, top_type,
|
|
|
|
+ control_type, mpa, factory,
|
|
|
|
+ custom_number, use_company_code, device_position_code,
|
|
|
|
+ agency, reform_date, install_date,
|
|
|
|
+ inner_floor)
|
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{registrationCode,jdbcType=VARCHAR}, #{category,jdbcType=TINYINT},
|
|
|
|
+ #{liftType,jdbcType=INTEGER}, #{liftCode,jdbcType=CHAR}, #{manufactureDate,jdbcType=DATE},
|
|
|
|
+ #{factoryCode,jdbcType=VARCHAR}, #{deviceUsage,jdbcType=TINYINT}, #{liftBrand,jdbcType=VARCHAR},
|
|
|
|
+ #{installCompany,jdbcType=VARCHAR}, #{liftModel,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},
|
|
|
|
+ #{devicePosition,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},
|
|
|
|
+ #{customNumber,jdbcType=VARCHAR}, #{useCompanyCode,jdbcType=VARCHAR}, #{devicePositionCode,jdbcType=CHAR},
|
|
|
|
+ #{agency,jdbcType=VARCHAR}, #{reformDate,jdbcType=TIMESTAMP}, #{installDate,jdbcType=TIMESTAMP},
|
|
|
|
+ #{innerFloor,jdbcType=TINYINT})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<insert id="insertSelective" parameterType="cn.com.ty.lift.manager.library.dao.entity.Lift" >
|
|
<insert id="insertSelective" parameterType="cn.com.ty.lift.manager.library.dao.entity.Lift" >
|
|
@@ -224,8 +234,23 @@
|
|
<if test="customNumber != null" >
|
|
<if test="customNumber != null" >
|
|
custom_number,
|
|
custom_number,
|
|
</if>
|
|
</if>
|
|
- <if test="companyCode != null" >
|
|
|
|
- company_code,
|
|
|
|
|
|
+ <if test="useCompanyCode != null" >
|
|
|
|
+ use_company_code,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="devicePositionCode != null" >
|
|
|
|
+ device_position_code,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="agency != null" >
|
|
|
|
+ agency,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reformDate != null" >
|
|
|
|
+ reform_date,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="installDate != null" >
|
|
|
|
+ install_date,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="innerFloor != null" >
|
|
|
|
+ inner_floor,
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
@@ -340,8 +365,23 @@
|
|
<if test="customNumber != null" >
|
|
<if test="customNumber != null" >
|
|
#{customNumber,jdbcType=VARCHAR},
|
|
#{customNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="companyCode != null" >
|
|
|
|
- #{companyCode,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="useCompanyCode != null" >
|
|
|
|
+ #{useCompanyCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="devicePositionCode != null" >
|
|
|
|
+ #{devicePositionCode,jdbcType=CHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="agency != null" >
|
|
|
|
+ #{agency,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reformDate != null" >
|
|
|
|
+ #{reformDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="installDate != null" >
|
|
|
|
+ #{installDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="innerFloor != null" >
|
|
|
|
+ #{innerFloor,jdbcType=TINYINT},
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
@@ -457,8 +497,23 @@
|
|
<if test="customNumber != null" >
|
|
<if test="customNumber != null" >
|
|
custom_number = #{customNumber,jdbcType=VARCHAR},
|
|
custom_number = #{customNumber,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="companyCode != null" >
|
|
|
|
- company_code = #{companyCode,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="useCompanyCode != null" >
|
|
|
|
+ use_company_code = #{useCompanyCode,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="devicePositionCode != null" >
|
|
|
|
+ device_position_code = #{devicePositionCode,jdbcType=CHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="agency != null" >
|
|
|
|
+ agency = #{agency,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="reformDate != null" >
|
|
|
|
+ reform_date = #{reformDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="installDate != null" >
|
|
|
|
+ install_date = #{installDate,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="innerFloor != null" >
|
|
|
|
+ inner_floor = #{innerFloor,jdbcType=TINYINT},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
@@ -502,7 +557,12 @@
|
|
mpa = #{mpa,jdbcType=INTEGER},
|
|
mpa = #{mpa,jdbcType=INTEGER},
|
|
factory = #{factory,jdbcType=VARCHAR},
|
|
factory = #{factory,jdbcType=VARCHAR},
|
|
custom_number = #{customNumber,jdbcType=VARCHAR},
|
|
custom_number = #{customNumber,jdbcType=VARCHAR},
|
|
- company_code = #{companyCode,jdbcType=VARCHAR}
|
|
|
|
|
|
+ use_company_code = #{useCompanyCode,jdbcType=VARCHAR},
|
|
|
|
+ device_position_code = #{devicePositionCode,jdbcType=CHAR},
|
|
|
|
+ agency = #{agency,jdbcType=VARCHAR},
|
|
|
|
+ reform_date = #{reformDate,jdbcType=TIMESTAMP},
|
|
|
|
+ install_date = #{installDate,jdbcType=TIMESTAMP},
|
|
|
|
+ inner_floor = #{innerFloor,jdbcType=TINYINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
|
|
|