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 {
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 List<SysOrderRepair> orderRepair;
private String orderChannel;
private MerchantInfo merchantInfo;
private MachanicInfo machanicInfo;
private Integer subOrderCount;
private Integer subOrderCount;
public SysArea getArea() {
......@@ -389,27 +389,27 @@ public class SysOrder {
this.repairType = repairType;
}
public Integer getCarPictureId() {
return carPictureId;
public String getCarPicture() {
return carPicture;
}
public void setCarPictureId(Integer carPictureId) {
this.carPictureId = carPictureId;
public void setCarPicture(String carPicture) {
this.carPicture = carPicture == null ? null : carPicture.trim();
}
public Integer getVinNoPictureId() {
return vinNoPictureId;
public String getVinNoPicture() {
return vinNoPicture;
}
public void setVinNoPictureId(Integer vinNoPictureId) {
this.vinNoPictureId = vinNoPictureId;
public void setVinNoPicture(String vinNoPicture) {
this.vinNoPicture = vinNoPicture == null ? null : vinNoPicture.trim();
}
public Integer getInstallLocationPictureId() {
return installLocationPictureId;
public String getInstallLocationPicture() {
return installLocationPicture;
}
public void setInstallLocationPictureId(Integer installLocationPictureId) {
this.installLocationPictureId = installLocationPictureId;
public void setInstallLocationPicture(String installLocationPicture) {
this.installLocationPicture = installLocationPicture == null ? null : installLocationPicture.trim();
}
}
\ No newline at end of file
}
......@@ -34,9 +34,9 @@
<result column="install_location" jdbcType="VARCHAR" property="installLocation" />
<result column="overdue_reason" jdbcType="VARCHAR" property="overdueReason" />
<result column="repair_type" jdbcType="TINYINT" property="repairType" />
<result column="car_picture_id" jdbcType="INTEGER" property="carPictureId" />
<result column="vin_no_picture_id" jdbcType="INTEGER" property="vinNoPictureId" />
<result column="install_location_picture_id" jdbcType="INTEGER" property="installLocationPictureId" />
<result column="car_picture" jdbcType="VARCHAR" property="carPicture" />
<result column="vin_no_picture" jdbcType="VARCHAR" property="vinNoPicture" />
<result column="install_location_picture" jdbcType="VARCHAR" property="installLocationPicture" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
......@@ -72,8 +72,7 @@
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,
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_picture_id
install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture
</sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select
......@@ -114,8 +113,8 @@
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_picture_id)
repair_type, car_picture, vin_no_picture,
install_location_picture)
values (#{orderSn,jdbcType=VARCHAR}, #{activeStatus,jdbcType=TINYINT}, #{canceled,jdbcType=TINYINT},
#{orderType,jdbcType=TINYINT}, #{shopId,jdbcType=INTEGER}, #{district,jdbcType=INTEGER},
#{address,jdbcType=VARCHAR}, #{contact,jdbcType=VARCHAR}, #{phoneNumber,jdbcType=VARCHAR},
......@@ -126,8 +125,8 @@
#{repairReason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR},
#{deviceNo,jdbcType=VARCHAR}, #{installLocation,jdbcType=VARCHAR}, #{overdueReason,jdbcType=VARCHAR},
#{repairType,jdbcType=TINYINT}, #{carPictureId,jdbcType=INTEGER}, #{vinNoPictureId,jdbcType=INTEGER},
#{installLocationPictureId,jdbcType=INTEGER})
#{repairType,jdbcType=TINYINT}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR},
#{installLocationPicture,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
......@@ -228,14 +227,14 @@
<if test="repairType != null">
repair_type,
</if>
<if test="carPictureId != null">
car_picture_id,
<if test="carPicture != null">
car_picture,
</if>
<if test="vinNoPictureId != null">
vin_no_picture_id,
<if test="vinNoPicture != null">
vin_no_picture,
</if>
<if test="installLocationPictureId != null">
install_location_picture_id,
<if test="installLocationPicture != null">
install_location_picture,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
......@@ -332,14 +331,14 @@
<if test="repairType != null">
#{repairType,jdbcType=TINYINT},
</if>
<if test="carPictureId != null">
#{carPictureId,jdbcType=INTEGER},
<if test="carPicture != null">
#{carPicture,jdbcType=VARCHAR},
</if>
<if test="vinNoPictureId != null">
#{vinNoPictureId,jdbcType=INTEGER},
<if test="vinNoPicture != null">
#{vinNoPicture,jdbcType=VARCHAR},
</if>
<if test="installLocationPictureId != null">
#{installLocationPictureId,jdbcType=INTEGER},
<if test="installLocationPicture != null">
#{installLocationPicture,jdbcType=VARCHAR},
</if>
</trim>
</insert>
......@@ -445,14 +444,14 @@
<if test="repairType != null">
repair_type = #{repairType,jdbcType=TINYINT},
</if>
<if test="carPictureId != null">
car_picture_id = #{carPictureId,jdbcType=INTEGER},
<if test="carPicture != null">
car_picture = #{carPicture,jdbcType=VARCHAR},
</if>
<if test="vinNoPictureId != null">
vin_no_picture_id = #{vinNoPictureId,jdbcType=INTEGER},
<if test="vinNoPicture != null">
vin_no_picture = #{vinNoPicture,jdbcType=VARCHAR},
</if>
<if test="installLocationPictureId != null">
install_location_picture_id = #{installLocationPictureId,jdbcType=INTEGER},
<if test="installLocationPicture != null">
install_location_picture = #{installLocationPicture,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
......@@ -490,13 +489,12 @@
install_location = #{installLocation,jdbcType=VARCHAR},
overdue_reason = #{overdueReason,jdbcType=VARCHAR},
repair_type = #{repairType,jdbcType=TINYINT},
car_picture_id = #{carPictureId,jdbcType=INTEGER},
vin_no_picture_id = #{vinNoPictureId,jdbcType=INTEGER},
install_location_picture_id = #{installLocationPictureId,jdbcType=INTEGER}
car_picture = #{carPicture,jdbcType=VARCHAR},
vin_no_picture = #{vinNoPicture,jdbcType=VARCHAR},
install_location_picture = #{installLocationPicture,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap id="OrderDetailResultMap" type="com.glsx.ordercenter.dto.QueryOrderResp"
<resultMap id="OrderDetailResultMap" type="com.glsx.ordercenter.dto.QueryOrderResp"
extends="BaseResultMap">
<result column="active_status" jdbcType="TINYINT" property="activeStatus" />
</resultMap>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!