Commit 1e0e58c2 by zhanghj

V1.0.0--订单汽车品牌相关改动

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17478 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 0b490e21
......@@ -3,6 +3,12 @@ package com.glsx.ordercenter.pojo;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;
import org.springframework.format.annotation.DateTimeFormat;
import com.glsx.ordercenter.dto.MachanicInfo;
import com.glsx.ordercenter.dto.MerchantInfo;
......@@ -19,24 +25,63 @@ public class SysOrder {
private Integer shopId;
/**
* 订单服务区域(默认是门店地址)
*/
@NotNull(message="{param.not.null}", groups={Default.class})
private Integer district;
/**
* 详细地址
*/
@NotBlank(message="{param.not.null}", groups={Default.class})
private String address;
/**
* 联系人姓名
*/
@NotBlank(message="{param.not.null}", groups={Default.class})
private String contact;
/**
* 联系人电话
*/
@NotBlank(message="{param.not.null}", groups={Default.class})
private String phoneNumber;
private String carBrand;
/**
* 车辆品牌id
*/
@NotNull(message="{param.not.null}", groups={Default.class})
private Integer carBrand;
/**
* 车辆车型id
*/
@NotNull(message="{param.not.null}", groups={Default.class})
private Integer caSeries;
/**
* 车辆车型
*/
@NotBlank(message="{param.not.null}", groups={Default.class})
private String carType;
/**
* 车架号
*/
private String vinNo;
/**
* 车辆颜色
*/
@NotBlank(message="{param.not.null}", groups={Default.class})
private String carColor;
/**
* 安装日期
*/
@NotNull(message="{param.not.null}", groups={Default.class})
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date expectInstallTime;
/**
* 服务类型
*/
@NotBlank(message="{param.not.null}", groups={Default.class})
private String serviceType;
private String carOwner;
......@@ -215,13 +260,6 @@ public class SysOrder {
this.phoneNumber = phoneNumber == null ? null : phoneNumber.trim();
}
public String getCarBrand() {
return carBrand;
}
public void setCarBrand(String carBrand) {
this.carBrand = carBrand == null ? null : carBrand.trim();
}
public String getCarType() {
return carType;
......@@ -247,15 +285,31 @@ public class SysOrder {
this.carColor = carColor == null ? null : carColor.trim();
}
public Date getExpectInstallTime() {
return expectInstallTime;
}
public Integer getCarBrand() {
return carBrand;
}
public void setExpectInstallTime(Date expectInstallTime) {
this.expectInstallTime = expectInstallTime;
}
public void setCarBrand(Integer carBrand) {
this.carBrand = carBrand;
}
public Integer getCaSeries() {
return caSeries;
}
public void setCaSeries(Integer caSeries) {
this.caSeries = caSeries;
}
public Date getExpectInstallTime() {
return expectInstallTime;
}
public void setExpectInstallTime(Date expectInstallTime) {
this.expectInstallTime = expectInstallTime;
}
public String getServiceType() {
public String getServiceType() {
return serviceType;
}
......
......@@ -12,7 +12,8 @@
<result column="address" jdbcType="VARCHAR" property="address" />
<result column="contact" jdbcType="VARCHAR" property="contact" />
<result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" />
<result column="car_brand" jdbcType="VARCHAR" property="carBrand" />
<result column="car_brand" jdbcType="INTEGER" property="carBrand" />
<result column="car_series" jdbcType="INTEGER" property="carSeries" />
<result column="car_type" jdbcType="VARCHAR" property="carType" />
<result column="vin_no" jdbcType="VARCHAR" property="vinNo" />
<result column="car_color" jdbcType="VARCHAR" property="carColor" />
......@@ -70,7 +71,7 @@
</sql>
<sql id="Base_Column_List">
id, order_sn, active_status, canceled, order_type, shop_id, district, address, contact,
phone_number, car_brand, car_type, vin_no, car_color, expect_install_time, service_type,
phone_number, car_brand, car_series, car_type, vin_no, car_color, expect_install_time, 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, vin_no_picture, install_location_picture,
......@@ -108,7 +109,7 @@
insert into sys_order (order_sn, active_status, canceled,
order_type, shop_id, district,
address, contact, phone_number,
car_brand, car_type, vin_no,
car_brand, car_series, car_type, vin_no,
car_color, expect_install_time, service_type,
car_owner, car_owner_phone, cancel_time,
active_status_array, merchant_id, mechanic_id,
......@@ -120,7 +121,7 @@
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},
#{carBrand,jdbcType=VARCHAR}, #{carType,jdbcType=VARCHAR}, #{vinNo,jdbcType=VARCHAR},
#{carBrand,jdbcType=INTEGER}, #{carSeries,jdbcType=INTEGER}, #{carType,jdbcType=VARCHAR}, #{vinNo,jdbcType=VARCHAR},
#{carColor,jdbcType=VARCHAR}, #{expectInstallTime,jdbcType=TIMESTAMP}, #{serviceType,jdbcType=VARCHAR},
#{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP},
#{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{mechanicId,jdbcType=INTEGER},
......@@ -166,6 +167,9 @@
<if test="carBrand != null">
car_brand,
</if>
<if test="carSeries != null">
car_series,
</if>
<if test="carType != null">
car_type,
</if>
......@@ -271,7 +275,10 @@
#{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="carBrand != null">
#{carBrand,jdbcType=VARCHAR},
#{carBrand,jdbcType=INTEGER},
</if>
<if test="carSeries != null">
#{carSeries,jdbcType=INTEGER},
</if>
<if test="carType != null">
#{carType,jdbcType=VARCHAR},
......@@ -387,7 +394,10 @@
phone_number = #{phoneNumber,jdbcType=VARCHAR},
</if>
<if test="carBrand != null">
car_brand = #{carBrand,jdbcType=VARCHAR},
car_brand = #{carBrand,jdbcType=INTEGER},
</if>
<if test="carSeries != null">
car_series = #{carSeries,jdbcType=INTEGER},
</if>
<if test="carType != null">
car_type = #{carType,jdbcType=VARCHAR},
......@@ -479,6 +489,7 @@
contact = #{contact,jdbcType=VARCHAR},
phone_number = #{phoneNumber,jdbcType=VARCHAR},
car_brand = #{carBrand,jdbcType=VARCHAR},
car_series = #{carSeries,jdbcType=INTEGER},
car_type = #{carType,jdbcType=VARCHAR},
vin_no = #{vinNo,jdbcType=VARCHAR},
car_color = #{carColor,jdbcType=VARCHAR},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!