Commit 8636a0b0 by zhengxj

finish 新增订单属性 on 20190218 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@17460 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 464a7a72
......@@ -177,7 +177,7 @@ public class OrderController extends BaseController{
SysOrder sysOrder = orderService.selectByPrimaryKey(orderId);
if (sysOrder != null) {
sysOrder.setActiveStatus((byte) 7);
sysOrder.setInstallDate(DateUtil.parseDateYmdHms(serviceDate));
sysOrder.setExpectInstallTime(DateUtil.parseDateYmdHms(serviceDate));
sysOrder.setActiveStatusArray(DateUtil.formatDate(DateUtil.getCurrentTime()) + ":" + "已预约" + ";"
+ sysOrder.getActiveStatusArray());
orderService.updateByPrimaryKeySelective(sysOrder);
......
......@@ -35,7 +35,7 @@ public class SysOrder {
private String carColor;
private Date installDate;
private Date expectInstallTime;
private String serviceType;
......@@ -76,6 +76,8 @@ public class SysOrder {
private String vinNoPicture;
private String installLocationPicture;
private Date completeTime;
private SysArea area;
private List<SysOrderRepair> orderRepair;
......@@ -83,8 +85,8 @@ public class SysOrder {
private MerchantInfo merchantInfo;
private MachanicInfo machanicInfo;
private Integer subOrderCount;
public SysArea getArea() {
return area;
}
......@@ -245,12 +247,12 @@ public class SysOrder {
this.carColor = carColor == null ? null : carColor.trim();
}
public Date getInstallDate() {
return installDate;
public Date getExpectInstallTime() {
return expectInstallTime;
}
public void setInstallDate(Date installDate) {
this.installDate = installDate;
public void setExpectInstallTime(Date expectInstallTime) {
this.expectInstallTime = expectInstallTime;
}
public String getServiceType() {
......@@ -412,4 +414,12 @@ public class SysOrder {
public void setInstallLocationPicture(String installLocationPicture) {
this.installLocationPicture = installLocationPicture == null ? null : installLocationPicture.trim();
}
}
public Date getCompleteTime() {
return completeTime;
}
public void setCompleteTime(Date completeTime) {
this.completeTime = completeTime;
}
}
\ No newline at end of file
......@@ -1025,63 +1025,63 @@ public class SysOrderExample {
return (Criteria) this;
}
public Criteria andInstallDateIsNull() {
addCriterion("install_date is null");
public Criteria andExpectInstallTimeIsNull() {
addCriterion("expect_install_time is null");
return (Criteria) this;
}
public Criteria andInstallDateIsNotNull() {
addCriterion("install_date is not null");
public Criteria andExpectInstallTimeIsNotNull() {
addCriterion("expect_install_time is not null");
return (Criteria) this;
}
public Criteria andInstallDateEqualTo(Date value) {
addCriterion("install_date =", value, "installDate");
public Criteria andExpectInstallTimeEqualTo(Date value) {
addCriterion("expect_install_time =", value, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateNotEqualTo(Date value) {
addCriterion("install_date <>", value, "installDate");
public Criteria andExpectInstallTimeNotEqualTo(Date value) {
addCriterion("expect_install_time <>", value, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateGreaterThan(Date value) {
addCriterion("install_date >", value, "installDate");
public Criteria andExpectInstallTimeGreaterThan(Date value) {
addCriterion("expect_install_time >", value, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateGreaterThanOrEqualTo(Date value) {
addCriterion("install_date >=", value, "installDate");
public Criteria andExpectInstallTimeGreaterThanOrEqualTo(Date value) {
addCriterion("expect_install_time >=", value, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateLessThan(Date value) {
addCriterion("install_date <", value, "installDate");
public Criteria andExpectInstallTimeLessThan(Date value) {
addCriterion("expect_install_time <", value, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateLessThanOrEqualTo(Date value) {
addCriterion("install_date <=", value, "installDate");
public Criteria andExpectInstallTimeLessThanOrEqualTo(Date value) {
addCriterion("expect_install_time <=", value, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateIn(List<Date> values) {
addCriterion("install_date in", values, "installDate");
public Criteria andExpectInstallTimeIn(List<Date> values) {
addCriterion("expect_install_time in", values, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateNotIn(List<Date> values) {
addCriterion("install_date not in", values, "installDate");
public Criteria andExpectInstallTimeNotIn(List<Date> values) {
addCriterion("expect_install_time not in", values, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateBetween(Date value1, Date value2) {
addCriterion("install_date between", value1, value2, "installDate");
public Criteria andExpectInstallTimeBetween(Date value1, Date value2) {
addCriterion("expect_install_time between", value1, value2, "expectInstallTime");
return (Criteria) this;
}
public Criteria andInstallDateNotBetween(Date value1, Date value2) {
addCriterion("install_date not between", value1, value2, "installDate");
public Criteria andExpectInstallTimeNotBetween(Date value1, Date value2) {
addCriterion("expect_install_time not between", value1, value2, "expectInstallTime");
return (Criteria) this;
}
......@@ -2424,6 +2424,66 @@ public class SysOrderExample {
addCriterion("install_location_picture not between", value1, value2, "installLocationPicture");
return (Criteria) this;
}
public Criteria andCompleteTimeIsNull() {
addCriterion("complete_time is null");
return (Criteria) this;
}
public Criteria andCompleteTimeIsNotNull() {
addCriterion("complete_time is not null");
return (Criteria) this;
}
public Criteria andCompleteTimeEqualTo(Date value) {
addCriterion("complete_time =", value, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeNotEqualTo(Date value) {
addCriterion("complete_time <>", value, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeGreaterThan(Date value) {
addCriterion("complete_time >", value, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeGreaterThanOrEqualTo(Date value) {
addCriterion("complete_time >=", value, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeLessThan(Date value) {
addCriterion("complete_time <", value, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeLessThanOrEqualTo(Date value) {
addCriterion("complete_time <=", value, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeIn(List<Date> values) {
addCriterion("complete_time in", values, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeNotIn(List<Date> values) {
addCriterion("complete_time not in", values, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeBetween(Date value1, Date value2) {
addCriterion("complete_time between", value1, value2, "completeTime");
return (Criteria) this;
}
public Criteria andCompleteTimeNotBetween(Date value1, Date value2) {
addCriterion("complete_time not between", value1, value2, "completeTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
......
......@@ -16,7 +16,7 @@
<result column="car_type" jdbcType="VARCHAR" property="carType" />
<result column="vin_no" jdbcType="VARCHAR" property="vinNo" />
<result column="car_color" jdbcType="VARCHAR" property="carColor" />
<result column="install_date" jdbcType="TIMESTAMP" property="installDate" />
<result column="expect_install_time" jdbcType="TIMESTAMP" property="expectInstallTime" />
<result column="service_type" jdbcType="VARCHAR" property="serviceType" />
<result column="car_owner" jdbcType="VARCHAR" property="carOwner" />
<result column="car_owner_phone" jdbcType="VARCHAR" property="carOwnerPhone" />
......@@ -37,6 +37,7 @@
<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" />
<result column="complete_time" jdbcType="TIMESTAMP" property="completeTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
......@@ -69,10 +70,11 @@
</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, install_date, service_type,
phone_number, car_brand, 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
install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture,
complete_time
</sql>
<select id="selectByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultMap="BaseResultMap">
select
......@@ -107,26 +109,26 @@
order_type, shop_id, district,
address, contact, phone_number,
car_brand, car_type, vin_no,
car_color, install_date, service_type,
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)
install_location_picture, complete_time)
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},
#{carColor,jdbcType=VARCHAR}, #{installDate,jdbcType=TIMESTAMP}, #{serviceType,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},
#{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}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR},
#{installLocationPicture,jdbcType=VARCHAR})
#{installLocationPicture,jdbcType=VARCHAR}, #{completeTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.glsx.ordercenter.pojo.SysOrder">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
......@@ -173,8 +175,8 @@
<if test="carColor != null">
car_color,
</if>
<if test="installDate != null">
install_date,
<if test="expectInstallTime != null">
expect_install_time,
</if>
<if test="serviceType != null">
service_type,
......@@ -236,6 +238,9 @@
<if test="installLocationPicture != null">
install_location_picture,
</if>
<if test="completeTime != null">
complete_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderSn != null">
......@@ -277,8 +282,8 @@
<if test="carColor != null">
#{carColor,jdbcType=VARCHAR},
</if>
<if test="installDate != null">
#{installDate,jdbcType=TIMESTAMP},
<if test="expectInstallTime != null">
#{expectInstallTime,jdbcType=TIMESTAMP},
</if>
<if test="serviceType != null">
#{serviceType,jdbcType=VARCHAR},
......@@ -340,6 +345,9 @@
<if test="installLocationPicture != null">
#{installLocationPicture,jdbcType=VARCHAR},
</if>
<if test="completeTime != null">
#{completeTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultType="java.lang.Long">
......@@ -390,8 +398,8 @@
<if test="carColor != null">
car_color = #{carColor,jdbcType=VARCHAR},
</if>
<if test="installDate != null">
install_date = #{installDate,jdbcType=TIMESTAMP},
<if test="expectInstallTime != null">
expect_install_time = #{expectInstallTime,jdbcType=TIMESTAMP},
</if>
<if test="serviceType != null">
service_type = #{serviceType,jdbcType=VARCHAR},
......@@ -453,6 +461,9 @@
<if test="installLocationPicture != null">
install_location_picture = #{installLocationPicture,jdbcType=VARCHAR},
</if>
<if test="completeTime != null">
complete_time = #{completeTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -471,7 +482,7 @@
car_type = #{carType,jdbcType=VARCHAR},
vin_no = #{vinNo,jdbcType=VARCHAR},
car_color = #{carColor,jdbcType=VARCHAR},
install_date = #{installDate,jdbcType=TIMESTAMP},
expect_install_time = #{expectInstallTime,jdbcType=TIMESTAMP},
service_type = #{serviceType,jdbcType=VARCHAR},
car_owner = #{carOwner,jdbcType=VARCHAR},
car_owner_phone = #{carOwnerPhone,jdbcType=VARCHAR},
......@@ -491,10 +502,11 @@
repair_type = #{repairType,jdbcType=TINYINT},
car_picture = #{carPicture,jdbcType=VARCHAR},
vin_no_picture = #{vinNoPicture,jdbcType=VARCHAR},
install_location_picture = #{installLocationPicture,jdbcType=VARCHAR}
install_location_picture = #{installLocationPicture,jdbcType=VARCHAR},
complete_time = #{completeTime,jdbcType=TIMESTAMP}
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!