Commit 3e472029 by zhengxj

finish 新增订单属性 on 20190218 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17452 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent a5774914
...@@ -71,18 +71,18 @@ public class SysOrder { ...@@ -71,18 +71,18 @@ public class SysOrder {
private Byte repairType; private Byte repairType;
private Integer carPictureId; private String carPicture;
private Integer vinNoPictureId; private String vinNoPicture;
private Integer installLocationPictureId; private String installLocationPicture;
private SysArea area; private SysArea area;
private List<SysOrderRepair> orderRepair; private List<SysOrderRepair> orderRepair;
private String orderChannel; private String orderChannel;
private MerchantInfo merchantInfo; private MerchantInfo merchantInfo;
private MachanicInfo machanicInfo; private MachanicInfo machanicInfo;
private Integer subOrderCount; private Integer subOrderCount;
public SysArea getArea() { public SysArea getArea() {
...@@ -389,27 +389,27 @@ public class SysOrder { ...@@ -389,27 +389,27 @@ public class SysOrder {
this.repairType = repairType; this.repairType = repairType;
} }
public Integer getCarPictureId() { public String getCarPicture() {
return carPictureId; return carPicture;
} }
public void setCarPictureId(Integer carPictureId) { public void setCarPicture(String carPicture) {
this.carPictureId = carPictureId; this.carPicture = carPicture == null ? null : carPicture.trim();
} }
public Integer getVinNoPictureId() { public String getVinNoPicture() {
return vinNoPictureId; return vinNoPicture;
} }
public void setVinNoPictureId(Integer vinNoPictureId) { public void setVinNoPicture(String vinNoPicture) {
this.vinNoPictureId = vinNoPictureId; this.vinNoPicture = vinNoPicture == null ? null : vinNoPicture.trim();
} }
public Integer getInstallLocationPictureId() { public String getInstallLocationPicture() {
return installLocationPictureId; return installLocationPicture;
} }
public void setInstallLocationPictureId(Integer installLocationPictureId) { public void setInstallLocationPicture(String installLocationPicture) {
this.installLocationPictureId = installLocationPictureId; this.installLocationPicture = installLocationPicture == null ? null : installLocationPicture.trim();
} }
}
\ No newline at end of file \ No newline at end of file
}
...@@ -34,9 +34,9 @@ ...@@ -34,9 +34,9 @@
<result column="install_location" jdbcType="VARCHAR" property="installLocation" /> <result column="install_location" jdbcType="VARCHAR" property="installLocation" />
<result column="overdue_reason" jdbcType="VARCHAR" property="overdueReason" /> <result column="overdue_reason" jdbcType="VARCHAR" property="overdueReason" />
<result column="repair_type" jdbcType="TINYINT" property="repairType" /> <result column="repair_type" jdbcType="TINYINT" property="repairType" />
<result column="car_picture_id" jdbcType="INTEGER" property="carPictureId" /> <result column="car_picture" jdbcType="VARCHAR" property="carPicture" />
<result column="vin_no_picture_id" jdbcType="INTEGER" property="vinNoPictureId" /> <result column="vin_no_picture" jdbcType="VARCHAR" property="vinNoPicture" />
<result column="install_location_picture_id" jdbcType="INTEGER" property="installLocationPictureId" /> <result column="install_location_picture" jdbcType="VARCHAR" property="installLocationPicture" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -72,8 +72,7 @@ ...@@ -72,8 +72,7 @@
phone_number, car_brand, car_type, vin_no, car_color, install_date, service_type, phone_number, car_brand, car_type, vin_no, car_color, install_date, service_type,
car_owner, car_owner_phone, cancel_time, active_status_array, merchant_id, mechanic_id, car_owner, car_owner_phone, cancel_time, active_status_array, merchant_id, mechanic_id,
repair_reason, remark, create_time, update_time, create_by, update_by, device_no, repair_reason, remark, create_time, update_time, create_by, update_by, device_no,
install_location, overdue_reason, repair_type, car_picture_id, vin_no_picture_id, install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture
install_location_picture_id
</sql> </sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select select
...@@ -114,8 +113,8 @@ ...@@ -114,8 +113,8 @@
repair_reason, remark, create_time, repair_reason, remark, create_time,
update_time, create_by, update_by, update_time, create_by, update_by,
device_no, install_location, overdue_reason, device_no, install_location, overdue_reason,
repair_type, car_picture_id, vin_no_picture_id, repair_type, car_picture, vin_no_picture,
install_location_picture_id) install_location_picture)
values (#{orderSn,jdbcType=VARCHAR}, #{activeStatus,jdbcType=TINYINT}, #{canceled,jdbcType=TINYINT}, values (#{orderSn,jdbcType=VARCHAR}, #{activeStatus,jdbcType=TINYINT}, #{canceled,jdbcType=TINYINT},
#{orderType,jdbcType=TINYINT}, #{shopId,jdbcType=INTEGER}, #{district,jdbcType=INTEGER}, #{orderType,jdbcType=TINYINT}, #{shopId,jdbcType=INTEGER}, #{district,jdbcType=INTEGER},
#{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
...@@ -126,8 +125,8 @@ ...@@ -126,8 +125,8 @@
#{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR},
#{deviceNo,jdbcType=VARCHAR}, #{installLocation,jdbcType=VARCHAR}, #{overdueReason,jdbcType=VARCHAR}, #{deviceNo,jdbcType=VARCHAR}, #{installLocation,jdbcType=VARCHAR}, #{overdueReason,jdbcType=VARCHAR},
#{repairType,jdbcType=TINYINT}, #{carPictureId,jdbcType=INTEGER}, #{vinNoPictureId,jdbcType=INTEGER}, #{repairType,jdbcType=TINYINT}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR},
#{installLocationPictureId,jdbcType=INTEGER}) #{installLocationPicture,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder"> <insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
...@@ -228,14 +227,14 @@ ...@@ -228,14 +227,14 @@
<if test="repairType != null"> <if test="repairType != null">
repair_type, repair_type,
</if> </if>
<if test="carPictureId != null"> <if test="carPicture != null">
car_picture_id, car_picture,
</if> </if>
<if test="vinNoPictureId != null"> <if test="vinNoPicture != null">
vin_no_picture_id, vin_no_picture,
</if> </if>
<if test="installLocationPictureId != null"> <if test="installLocationPicture != null">
install_location_picture_id, install_location_picture,
</if> </if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
...@@ -332,14 +331,14 @@ ...@@ -332,14 +331,14 @@
<if test="repairType != null"> <if test="repairType != null">
#{repairType,jdbcType=TINYINT}, #{repairType,jdbcType=TINYINT},
</if> </if>
<if test="carPictureId != null"> <if test="carPicture != null">
#{carPictureId,jdbcType=INTEGER}, #{carPicture,jdbcType=VARCHAR},
</if> </if>
<if test="vinNoPictureId != null"> <if test="vinNoPicture != null">
#{vinNoPictureId,jdbcType=INTEGER}, #{vinNoPicture,jdbcType=VARCHAR},
</if> </if>
<if test="installLocationPictureId != null"> <if test="installLocationPicture != null">
#{installLocationPictureId,jdbcType=INTEGER}, #{installLocationPicture,jdbcType=VARCHAR},
</if> </if>
</trim> </trim>
</insert> </insert>
...@@ -445,14 +444,14 @@ ...@@ -445,14 +444,14 @@
<if test="repairType != null"> <if test="repairType != null">
repair_type = #{repairType,jdbcType=TINYINT}, repair_type = #{repairType,jdbcType=TINYINT},
</if> </if>
<if test="carPictureId != null"> <if test="carPicture != null">
car_picture_id = #{carPictureId,jdbcType=INTEGER}, car_picture = #{carPicture,jdbcType=VARCHAR},
</if> </if>
<if test="vinNoPictureId != null"> <if test="vinNoPicture != null">
vin_no_picture_id = #{vinNoPictureId,jdbcType=INTEGER}, vin_no_picture = #{vinNoPicture,jdbcType=VARCHAR},
</if> </if>
<if test="installLocationPictureId != null"> <if test="installLocationPicture != null">
install_location_picture_id = #{installLocationPictureId,jdbcType=INTEGER}, install_location_picture = #{installLocationPicture,jdbcType=VARCHAR},
</if> </if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
...@@ -490,13 +489,12 @@ ...@@ -490,13 +489,12 @@
install_location = #{installLocation,jdbcType=VARCHAR}, install_location = #{installLocation,jdbcType=VARCHAR},
overdue_reason = #{overdueReason,jdbcType=VARCHAR}, overdue_reason = #{overdueReason,jdbcType=VARCHAR},
repair_type = #{repairType,jdbcType=TINYINT}, repair_type = #{repairType,jdbcType=TINYINT},
car_picture_id = #{carPictureId,jdbcType=INTEGER}, car_picture = #{carPicture,jdbcType=VARCHAR},
vin_no_picture_id = #{vinNoPictureId,jdbcType=INTEGER}, vin_no_picture = #{vinNoPicture,jdbcType=VARCHAR},
install_location_picture_id = #{installLocationPictureId,jdbcType=INTEGER} install_location_picture = #{installLocationPicture,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<resultMap id="OrderDetailResultMap" type="com.glsx.ordercenter.dto.QueryOrderResp"
<resultMap id="OrderDetailResultMap" type="com.glsx.ordercenter.dto.QueryOrderResp"
extends="BaseResultMap"> extends="BaseResultMap">
<result column="active_status" jdbcType="TINYINT" property="activeStatus" /> <result column="active_status" jdbcType="TINYINT" property="activeStatus" />
</resultMap> </resultMap>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!