Commit 6e58960a by chaizheng

大搜车工单需求

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26665 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7409c61c
......@@ -9,9 +9,11 @@
<result column="install_location" jdbcType="VARCHAR" property="installLocation" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="deviceTypeName" jdbcType="VARCHAR" property="deviceTypeName" />
<result column="repair_type" jdbcType="TINYINT" property="repairType" />
<result column="old_device_no" jdbcType="VARCHAR" property="oldDeviceNo" />
</resultMap>
<sql id="Base_Column_List">
id, order_id, device_no, device_type, install_location, sort
id, order_id, device_no, device_type, install_location, sort,repair_type,old_device_no
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
......@@ -53,6 +55,12 @@
<if test="sort != null">
sort,
</if>
<if test="repairType != null">
repair_type,
</if>
<if test="oldDeviceNo != null">
old_device_no,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">
......@@ -70,6 +78,12 @@
<if test="sort != null">
#{sort,jdbcType=INTEGER},
</if>
<if test="repairType != null">
#{repair_type,jdbcType=TINYINT},
</if>
<if test="oldDeviceNo != null">
#{old_device_no,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.ordercenter.pojo.SysOrderDevice">
......@@ -90,6 +104,12 @@
<if test="sort != null">
sort = #{sort,jdbcType=INTEGER},
</if>
<if test="repairType != null">
#{repair_type,jdbcType=TINYINT},
</if>
<if test="oldDeviceNo != null">
#{old_device_no,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!