Commit 58b6f20d by zhanghj

V1.5.0--售后详情增加旧的车架号

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24611 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent efd4f207
...@@ -405,6 +405,11 @@ public class SysOrder { ...@@ -405,6 +405,11 @@ public class SysOrder {
* *
*/ */
private SysOrderStatus sysOrderProgress; private SysOrderStatus sysOrderProgress;
/**
* 售后详情中原单的车架号
*/
private String oldVinNo;
public SysOrderStatus getSysOrderProgress() { public SysOrderStatus getSysOrderProgress() {
return sysOrderProgress; return sysOrderProgress;
...@@ -1235,6 +1240,14 @@ public class SysOrder { ...@@ -1235,6 +1240,14 @@ public class SysOrder {
this.orderDevices = orderDevices; this.orderDevices = orderDevices;
} }
public String getOldVinNo() {
return oldVinNo;
}
public void setOldVinNo(String oldVinNo) {
this.oldVinNo = oldVinNo;
}
@Override @Override
public String toString() { public String toString() {
return "SysOrder [noBidingDuration=" + noBidingDuration return "SysOrder [noBidingDuration=" + noBidingDuration
......
...@@ -2309,7 +2309,7 @@ public class OrderServiceImpl implements IOrderService { ...@@ -2309,7 +2309,7 @@ public class OrderServiceImpl implements IOrderService {
orderDeviceDao.insertSelective(oDevice); orderDeviceDao.insertSelective(oDevice);
} }
} else if (BizConstants.ORDER_AFTER_SALE_TYPE_REPAIR == afterSaleType) { } else if (BizConstants.ORDER_AFTER_SALE_TYPE_REPAIR == afterSaleType) {
String orderDeviceIds = order.getOrderDeviceIds(); String orderDeviceIds = orderParam.getOrderDeviceIds();
if (StringUtil.isNotEmpty(orderDeviceIds)) { if (StringUtil.isNotEmpty(orderDeviceIds)) {
String[] orderDeviceIdArray = orderDeviceIds.split(BizConstants.SEPARATOR); String[] orderDeviceIdArray = orderDeviceIds.split(BizConstants.SEPARATOR);
for(String deviceId : orderDeviceIdArray) { for(String deviceId : orderDeviceIdArray) {
......
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
<result column="reserve_man_phone" jdbcType="VARCHAR" property="reserveManPhone"/> <result column="reserve_man_phone" jdbcType="VARCHAR" property="reserveManPhone"/>
<result column="quote_last_time" jdbcType="TIMESTAMP" property="quoteLastTime"/> <result column="quote_last_time" jdbcType="TIMESTAMP" property="quoteLastTime"/>
<result column="service_code" jdbcType="VARCHAR" property="serviceCode"/> <result column="service_code" jdbcType="VARCHAR" property="serviceCode"/>
<result column="oldVinNo" jdbcType="VARCHAR" property="oldVinNo"/>
</resultMap> </resultMap>
<sql id="Example_Where_Clause"> <sql id="Example_Where_Clause">
<where> <where>
...@@ -859,10 +860,12 @@ ...@@ -859,10 +860,12 @@
so.device_no, so.install_location, so.overdue_reason, so.repair_type, so.car_picture, so.device_no, so.install_location, so.overdue_reason, so.repair_type, so.car_picture,
so.vin_no_picture, so.install_location_picture, so.complete_time, so.install_remark, --> so.vin_no_picture, so.install_location_picture, so.complete_time, so.install_remark, -->
so.install_device_type, so.install_device_type,
sor.after_sale_type sor.after_sale_type,
so2.vin_no as oldVinNo
from from
sys_order_repair sor sys_order_repair sor
LEFT JOIN sys_order so on sor.sub_order_id = so.id LEFT JOIN sys_order so on sor.sub_order_id = so.id
LEFT JOIN sys_order so2 on sor.order_id = so2.id
where 1=1 where 1=1
<if test="orderId != null"> <if test="orderId != null">
and so.canceled = 1 and so.canceled = 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!