Commit 55ca695b by zhanghj

V1.6.0--新增需求:订单管理-新建售后单-更换车辆新增“原品牌车型、原车身颜色”

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@26024 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 60750394
...@@ -50,6 +50,14 @@ public class CreateAfterSaleRepairReq { ...@@ -50,6 +50,14 @@ public class CreateAfterSaleRepairReq {
private String carType; private String carType;
@NotBlank(message="{param.not.null}", groups={Default.class}) @NotBlank(message="{param.not.null}", groups={Default.class})
private String carColor; private String carColor;
private Integer oldCarBrand;
private Integer oldCarSeries;
private String oldCarType;
private String oldCarColor;
@NotNull(message="{param.not.null}", groups={Default.class}) @NotNull(message="{param.not.null}", groups={Default.class})
private Integer district; private Integer district;
...@@ -244,5 +252,37 @@ public class CreateAfterSaleRepairReq { ...@@ -244,5 +252,37 @@ public class CreateAfterSaleRepairReq {
public void setOrderDeviceList(List<SysOrderDevice> orderDeviceList) { public void setOrderDeviceList(List<SysOrderDevice> orderDeviceList) {
this.orderDeviceList = orderDeviceList; this.orderDeviceList = orderDeviceList;
} }
public Integer getOldCarBrand() {
return oldCarBrand;
}
public void setOldCarBrand(Integer oldCarBrand) {
this.oldCarBrand = oldCarBrand;
}
public Integer getOldCarSeries() {
return oldCarSeries;
}
public void setOldCarSeries(Integer oldCarSeries) {
this.oldCarSeries = oldCarSeries;
}
public String getOldCarType() {
return oldCarType;
}
public void setOldCarType(String oldCarType) {
this.oldCarType = oldCarType;
}
public String getOldCarColor() {
return oldCarColor;
}
public void setOldCarColor(String oldCarColor) {
this.oldCarColor = oldCarColor;
}
} }
...@@ -4517,6 +4517,12 @@ public class OrderServiceImpl implements IOrderService { ...@@ -4517,6 +4517,12 @@ public class OrderServiceImpl implements IOrderService {
String orderSn = getOrderSn(orderType); String orderSn = getOrderSn(orderType);
SysOrder afterSaleOrder = new SysOrder(); SysOrder afterSaleOrder = new SysOrder();
BeanUtils.copyBeanProp(afterSaleOrder, order); BeanUtils.copyBeanProp(afterSaleOrder, order);
if (BizConstants.ORDER_AFTER_SALE_TYPE_CHANGE_CAR == afterSaleType && BizConstants.ORDER_TYPE_DISMANTLE == orderType) {
afterSaleOrder.setCarBrand(createAfterSaleRepairReq.getOldCarBrand());
afterSaleOrder.setCarSeries(createAfterSaleRepairReq.getOldCarSeries());
afterSaleOrder.setCarType(createAfterSaleRepairReq.getOldCarType());
afterSaleOrder.setCarColor(createAfterSaleRepairReq.getOldCarColor());
}
afterSaleOrder.setOrderSn(orderSn); afterSaleOrder.setOrderSn(orderSn);
afterSaleOrder.setOrderType(orderType); afterSaleOrder.setOrderType(orderType);
insertSelective(afterSaleOrder); insertSelective(afterSaleOrder);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!