Commit 3201a51d by zhanghj

V1.3.0--pc端订单列表新增是否有正在进行的售后字段

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@22784 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 0ab4802f
......@@ -308,6 +308,10 @@ public class SysOrder {
*是否关注工单
*/
private Integer isConcern;
/**
* 是否有正在进行的售后:true:有,false:没有
*/
private boolean isAfterSaling;
public String getCheckInAddress() {
return checkInAddress;
......@@ -952,7 +956,15 @@ public class SysOrder {
this.orderChannelOrgId = orderChannelOrgId;
}
@Override
public boolean isAfterSaling() {
return isAfterSaling;
}
public void setAfterSaling(boolean isAfterSaling) {
this.isAfterSaling = isAfterSaling;
}
@Override
public String toString() {
return "SysOrder [id=" + id + ", orderSn=" + orderSn
+ ", activeStatus=" + activeStatus + ", canceled=" + canceled
......
......@@ -2650,7 +2650,7 @@ public class OrderServiceImpl implements IOrderService {
@Override
public SysOrder getAfterSaleDetail(Integer orderId, String orderSn) {
SysOrder order = null;
byte activeStatus = 8;
byte activeStatus = (byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_FINISH.getActiveStatus();
if (orderId != null) {
order = orderDao.getAfterSaleDetail(orderId, null, activeStatus);
}
......@@ -2659,25 +2659,28 @@ public class OrderServiceImpl implements IOrderService {
}
// 门店名称
// order=orderDao.getAfterSaleDetail(orderId, orderSn, activeStatus);
if (order != null && order.getShopId() != null) {
MerchantInfo merchantInfo = new MerchantInfo();
SysMerchantExample example = new SysMerchantExample();
example.createCriteria().andUserIdEqualTo(order.getShopId());
merchantInfo.setName(sysMerchantDao.selectByExample(example).get(0).getShopName());
order.setMerchantInfo(merchantInfo);
if (order != null) {
if (order.getShopId() != null) {
MerchantInfo merchantInfo = new MerchantInfo();
SysMerchantExample example = new SysMerchantExample();
example.createCriteria().andUserIdEqualTo(order.getShopId());
merchantInfo.setName(sysMerchantDao.selectByExample(example).get(0).getShopName());
order.setMerchantInfo(merchantInfo);
}
if (order.getDistrict() != null) {
order.setArea(areaService.getAllChargeItems(order.getDistrict()));
}
// 车辆信息信息
Integer serId = order.getCarSeries();
if (serId != null) {
int brandId = order.getCarBrand();
String carType = order.getCarType();
CarInfo carInfo = getCarInfo(brandId, serId, carType);
order.setCarInfo(carInfo);
}
}
if (null != order.getDistrict()) {
order.setArea(areaService.getAllChargeItems(order.getDistrict()));
}
// 车辆信息信息
Integer serId = order.getCarSeries();
if (serId != null) {
int brandId = order.getCarBrand();
String carType = order.getCarType();
CarInfo carInfo = getCarInfo(brandId, serId, carType);
order.setCarInfo(carInfo);
}
return order;
}
......@@ -3254,6 +3257,16 @@ public class OrderServiceImpl implements IOrderService {
order.setMachanicInfo(machanicInfo);
}
}
/*
*检查是否有正在进行的售后
*/
boolean isAfterSaling = false;
Integer orderId = order.getId();
SysOrder sysOrder = getAfterSaleDetail(orderId, null);
if (sysOrder != null) {
isAfterSaling = true;
}
order.setAfterSaling(isAfterSaling);
}
return orderList;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!