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{ ...@@ -177,7 +177,7 @@ public class OrderController extends BaseController{
SysOrder sysOrder = orderService.selectByPrimaryKey(orderId); SysOrder sysOrder = orderService.selectByPrimaryKey(orderId);
if (sysOrder != null) { if (sysOrder != null) {
sysOrder.setActiveStatus((byte) 7); sysOrder.setActiveStatus((byte) 7);
sysOrder.setInstallDate(DateUtil.parseDateYmdHms(serviceDate)); sysOrder.setExpectInstallTime(DateUtil.parseDateYmdHms(serviceDate));
sysOrder.setActiveStatusArray(DateUtil.formatDate(DateUtil.getCurrentTime()) + ":" + "已预约" + ";" sysOrder.setActiveStatusArray(DateUtil.formatDate(DateUtil.getCurrentTime()) + ":" + "已预约" + ";"
+ sysOrder.getActiveStatusArray()); + sysOrder.getActiveStatusArray());
orderService.updateByPrimaryKeySelective(sysOrder); orderService.updateByPrimaryKeySelective(sysOrder);
......
...@@ -35,7 +35,7 @@ public class SysOrder { ...@@ -35,7 +35,7 @@ public class SysOrder {
private String carColor; private String carColor;
private Date installDate; private Date expectInstallTime;
private String serviceType; private String serviceType;
...@@ -77,6 +77,8 @@ public class SysOrder { ...@@ -77,6 +77,8 @@ public class SysOrder {
private String installLocationPicture; private String installLocationPicture;
private Date completeTime;
private SysArea area; private SysArea area;
private List<SysOrderRepair> orderRepair; private List<SysOrderRepair> orderRepair;
private String orderChannel; private String orderChannel;
...@@ -245,12 +247,12 @@ public class SysOrder { ...@@ -245,12 +247,12 @@ public class SysOrder {
this.carColor = carColor == null ? null : carColor.trim(); this.carColor = carColor == null ? null : carColor.trim();
} }
public Date getInstallDate() { public Date getExpectInstallTime() {
return installDate; return expectInstallTime;
} }
public void setInstallDate(Date installDate) { public void setExpectInstallTime(Date expectInstallTime) {
this.installDate = installDate; this.expectInstallTime = expectInstallTime;
} }
public String getServiceType() { public String getServiceType() {
...@@ -412,4 +414,12 @@ public class SysOrder { ...@@ -412,4 +414,12 @@ public class SysOrder {
public void setInstallLocationPicture(String installLocationPicture) { public void setInstallLocationPicture(String installLocationPicture) {
this.installLocationPicture = installLocationPicture == null ? null : installLocationPicture.trim(); 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 \ No newline at end of file
...@@ -1025,63 +1025,63 @@ public class SysOrderExample { ...@@ -1025,63 +1025,63 @@ public class SysOrderExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateIsNull() { public Criteria andExpectInstallTimeIsNull() {
addCriterion("install_date is null"); addCriterion("expect_install_time is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateIsNotNull() { public Criteria andExpectInstallTimeIsNotNull() {
addCriterion("install_date is not null"); addCriterion("expect_install_time is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateEqualTo(Date value) { public Criteria andExpectInstallTimeEqualTo(Date value) {
addCriterion("install_date =", value, "installDate"); addCriterion("expect_install_time =", value, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateNotEqualTo(Date value) { public Criteria andExpectInstallTimeNotEqualTo(Date value) {
addCriterion("install_date <>", value, "installDate"); addCriterion("expect_install_time <>", value, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateGreaterThan(Date value) { public Criteria andExpectInstallTimeGreaterThan(Date value) {
addCriterion("install_date >", value, "installDate"); addCriterion("expect_install_time >", value, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateGreaterThanOrEqualTo(Date value) { public Criteria andExpectInstallTimeGreaterThanOrEqualTo(Date value) {
addCriterion("install_date >=", value, "installDate"); addCriterion("expect_install_time >=", value, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateLessThan(Date value) { public Criteria andExpectInstallTimeLessThan(Date value) {
addCriterion("install_date <", value, "installDate"); addCriterion("expect_install_time <", value, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateLessThanOrEqualTo(Date value) { public Criteria andExpectInstallTimeLessThanOrEqualTo(Date value) {
addCriterion("install_date <=", value, "installDate"); addCriterion("expect_install_time <=", value, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateIn(List<Date> values) { public Criteria andExpectInstallTimeIn(List<Date> values) {
addCriterion("install_date in", values, "installDate"); addCriterion("expect_install_time in", values, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateNotIn(List<Date> values) { public Criteria andExpectInstallTimeNotIn(List<Date> values) {
addCriterion("install_date not in", values, "installDate"); addCriterion("expect_install_time not in", values, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateBetween(Date value1, Date value2) { public Criteria andExpectInstallTimeBetween(Date value1, Date value2) {
addCriterion("install_date between", value1, value2, "installDate"); addCriterion("expect_install_time between", value1, value2, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andInstallDateNotBetween(Date value1, Date value2) { public Criteria andExpectInstallTimeNotBetween(Date value1, Date value2) {
addCriterion("install_date not between", value1, value2, "installDate"); addCriterion("expect_install_time not between", value1, value2, "expectInstallTime");
return (Criteria) this; return (Criteria) this;
} }
...@@ -2424,6 +2424,66 @@ public class SysOrderExample { ...@@ -2424,6 +2424,66 @@ public class SysOrderExample {
addCriterion("install_location_picture not between", value1, value2, "installLocationPicture"); addCriterion("install_location_picture not between", value1, value2, "installLocationPicture");
return (Criteria) this; 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 { public static class Criteria extends GeneratedCriteria {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<result column="car_type" jdbcType="VARCHAR" property="carType" /> <result column="car_type" jdbcType="VARCHAR" property="carType" />
<result column="vin_no" jdbcType="VARCHAR" property="vinNo" /> <result column="vin_no" jdbcType="VARCHAR" property="vinNo" />
<result column="car_color" jdbcType="VARCHAR" property="carColor" /> <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="service_type" jdbcType="VARCHAR" property="serviceType" />
<result column="car_owner" jdbcType="VARCHAR" property="carOwner" /> <result column="car_owner" jdbcType="VARCHAR" property="carOwner" />
<result column="car_owner_phone" jdbcType="VARCHAR" property="carOwnerPhone" /> <result column="car_owner_phone" jdbcType="VARCHAR" property="carOwnerPhone" />
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<result column="car_picture" jdbcType="VARCHAR" property="carPicture" /> <result column="car_picture" jdbcType="VARCHAR" property="carPicture" />
<result column="vin_no_picture" jdbcType="VARCHAR" property="vinNoPicture" /> <result column="vin_no_picture" jdbcType="VARCHAR" property="vinNoPicture" />
<result column="install_location_picture" jdbcType="VARCHAR" property="installLocationPicture" /> <result column="install_location_picture" jdbcType="VARCHAR" property="installLocationPicture" />
<result column="complete_time" jdbcType="TIMESTAMP" property="completeTime" />
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -69,10 +70,11 @@ ...@@ -69,10 +70,11 @@
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, order_sn, active_status, canceled, order_type, shop_id, district, address, contact, 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, 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, vin_no_picture, install_location_picture install_location, overdue_reason, repair_type, car_picture, vin_no_picture, install_location_picture,
complete_time
</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
...@@ -107,26 +109,26 @@ ...@@ -107,26 +109,26 @@
order_type, shop_id, district, order_type, shop_id, district,
address, contact, phone_number, address, contact, phone_number,
car_brand, car_type, vin_no, 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, car_owner, car_owner_phone, cancel_time,
active_status_array, merchant_id, mechanic_id, active_status_array, merchant_id, mechanic_id,
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, vin_no_picture, 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}, 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},
#{carBrand,jdbcType=VARCHAR}, #{carType,jdbcType=VARCHAR}, #{vinNo,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}, #{carOwner,jdbcType=VARCHAR}, #{carOwnerPhone,jdbcType=VARCHAR}, #{cancelTime,jdbcType=TIMESTAMP},
#{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{mechanicId,jdbcType=INTEGER}, #{activeStatusArray,jdbcType=VARCHAR}, #{merchantId,jdbcType=INTEGER}, #{mechanicId,jdbcType=INTEGER},
#{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}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR}, #{repairType,jdbcType=TINYINT}, #{carPicture,jdbcType=VARCHAR}, #{vinNoPicture,jdbcType=VARCHAR},
#{installLocationPicture,jdbcType=VARCHAR}) #{installLocationPicture,jdbcType=VARCHAR}, #{completeTime,jdbcType=TIMESTAMP})
</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">
...@@ -173,8 +175,8 @@ ...@@ -173,8 +175,8 @@
<if test="carColor != null"> <if test="carColor != null">
car_color, car_color,
</if> </if>
<if test="installDate != null"> <if test="expectInstallTime != null">
install_date, expect_install_time,
</if> </if>
<if test="serviceType != null"> <if test="serviceType != null">
service_type, service_type,
...@@ -236,6 +238,9 @@ ...@@ -236,6 +238,9 @@
<if test="installLocationPicture != null"> <if test="installLocationPicture != null">
install_location_picture, install_location_picture,
</if> </if>
<if test="completeTime != null">
complete_time,
</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderSn != null"> <if test="orderSn != null">
...@@ -277,8 +282,8 @@ ...@@ -277,8 +282,8 @@
<if test="carColor != null"> <if test="carColor != null">
#{carColor,jdbcType=VARCHAR}, #{carColor,jdbcType=VARCHAR},
</if> </if>
<if test="installDate != null"> <if test="expectInstallTime != null">
#{installDate,jdbcType=TIMESTAMP}, #{expectInstallTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="serviceType != null"> <if test="serviceType != null">
#{serviceType,jdbcType=VARCHAR}, #{serviceType,jdbcType=VARCHAR},
...@@ -340,6 +345,9 @@ ...@@ -340,6 +345,9 @@
<if test="installLocationPicture != null"> <if test="installLocationPicture != null">
#{installLocationPicture,jdbcType=VARCHAR}, #{installLocationPicture,jdbcType=VARCHAR},
</if> </if>
<if test="completeTime != null">
#{completeTime,jdbcType=TIMESTAMP},
</if>
</trim> </trim>
</insert> </insert>
<select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultType="java.lang.Long"> <select id="countByExample" parameterType="com.glsx.ordercenter.pojo.SysOrderExample" resultType="java.lang.Long">
...@@ -390,8 +398,8 @@ ...@@ -390,8 +398,8 @@
<if test="carColor != null"> <if test="carColor != null">
car_color = #{carColor,jdbcType=VARCHAR}, car_color = #{carColor,jdbcType=VARCHAR},
</if> </if>
<if test="installDate != null"> <if test="expectInstallTime != null">
install_date = #{installDate,jdbcType=TIMESTAMP}, expect_install_time = #{expectInstallTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="serviceType != null"> <if test="serviceType != null">
service_type = #{serviceType,jdbcType=VARCHAR}, service_type = #{serviceType,jdbcType=VARCHAR},
...@@ -453,6 +461,9 @@ ...@@ -453,6 +461,9 @@
<if test="installLocationPicture != null"> <if test="installLocationPicture != null">
install_location_picture = #{installLocationPicture,jdbcType=VARCHAR}, install_location_picture = #{installLocationPicture,jdbcType=VARCHAR},
</if> </if>
<if test="completeTime != null">
complete_time = #{completeTime,jdbcType=TIMESTAMP},
</if>
</set> </set>
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
...@@ -471,7 +482,7 @@ ...@@ -471,7 +482,7 @@
car_type = #{carType,jdbcType=VARCHAR}, car_type = #{carType,jdbcType=VARCHAR},
vin_no = #{vinNo,jdbcType=VARCHAR}, vin_no = #{vinNo,jdbcType=VARCHAR},
car_color = #{carColor,jdbcType=VARCHAR}, car_color = #{carColor,jdbcType=VARCHAR},
install_date = #{installDate,jdbcType=TIMESTAMP}, expect_install_time = #{expectInstallTime,jdbcType=TIMESTAMP},
service_type = #{serviceType,jdbcType=VARCHAR}, service_type = #{serviceType,jdbcType=VARCHAR},
car_owner = #{carOwner,jdbcType=VARCHAR}, car_owner = #{carOwner,jdbcType=VARCHAR},
car_owner_phone = #{carOwnerPhone,jdbcType=VARCHAR}, car_owner_phone = #{carOwnerPhone,jdbcType=VARCHAR},
...@@ -491,7 +502,8 @@ ...@@ -491,7 +502,8 @@
repair_type = #{repairType,jdbcType=TINYINT}, repair_type = #{repairType,jdbcType=TINYINT},
car_picture = #{carPicture,jdbcType=VARCHAR}, car_picture = #{carPicture,jdbcType=VARCHAR},
vin_no_picture = #{vinNoPicture,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} 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"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!