|
|
@ -1261,7 +1261,7 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
/** |
|
|
|
* App初始化销售订单单据信息 |
|
|
|
* |
|
|
|
* @param saleOrderSid 销售订单sid |
|
|
|
* @param appOrderInitQuery |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public AppBusSalesOrderBillInfoVo getBillInfo(AppOrderInitQuery appOrderInitQuery) { |
|
|
@ -1550,7 +1550,10 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
} |
|
|
|
vo.setOrderInfo(orderInfo); |
|
|
|
vo.setState(type); |
|
|
|
vo.setPrice(orderInfo.getPrice()); |
|
|
|
if(StringUtils.isNotBlank(orderInfo.getPrice())){ |
|
|
|
vo.setPrice(String.valueOf((int)Math.floor(Double.valueOf(orderInfo.getPrice())))); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
return rb.success().setData(vo); |
|
|
@ -1609,6 +1612,8 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
String userSid = appBusSaleOrderInitModelInfoQuery.getUserSid(); |
|
|
|
String orgSid = sysStaffOrgFeign.getPathSidByUserSid(userSid).getData(); |
|
|
|
String special = appBusSaleOrderInitModelInfoQuery.getSpecial(); |
|
|
|
String saleOrderSid = appBusSaleOrderInitModelInfoQuery.getSaleOrderSid(); |
|
|
|
BusSalesOrder busSalesOrder = fetchBySid(saleOrderSid); |
|
|
|
AppBusSaleOrderInitModelInfoVo vo = new AppBusSaleOrderInitModelInfoVo(); |
|
|
|
//选择的车型信息的数据
|
|
|
|
AppOrderInfoVo orderInfo = new AppOrderInfoVo(); |
|
|
@ -1642,8 +1647,21 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
orderInfo.setNowCarList(appNowCarLists); |
|
|
|
//订单选择的采购订单列表
|
|
|
|
orderInfo.setReadyCarList(appReadyCarLists); |
|
|
|
vo.setPrice(data.getPrice()); |
|
|
|
if("1".equals(busSalesOrder.getPayTypeKey())){//全款
|
|
|
|
if(StringUtils.isNotBlank(data.getPrice())){ |
|
|
|
Double doublePrice = Double.valueOf(data.getPrice()); |
|
|
|
vo.setPrice(String.valueOf((int)Math.floor(doublePrice))); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if(StringUtils.isNotBlank(data.getManufactorSettlementPrice())){ |
|
|
|
vo.setPrice(String.valueOf((int)Math.floor(Double.valueOf(data.getManufactorSettlementPrice())))); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
orderInfo.setPublicModel(appBusSaleOrderInitModelInfoQuery.getPublicModel()); |
|
|
|
orderInfo.setPublicModelSid(appBusSaleOrderInitModelInfoQuery.getPublicModelSid()); |
|
|
|
|
|
|
|
|
|
|
|
vo.setOrderInfo(orderInfo); |
|
|
|
//查询该车型下的现车列表
|
|
|
@ -1921,6 +1939,20 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
if (!isDeposit) { |
|
|
|
return rb.setMsg("请完善订金信息"); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(busSalesOrder.getIsInsurance())){ |
|
|
|
return rb.setMsg("请完善保险信息"); |
|
|
|
}else{ |
|
|
|
if("0".equals(busSalesOrder.getIsInsurance())){ |
|
|
|
BusSalesOrderInsuranceDetailsVo busSalesOrderInsurance = busSalesOrderInsuranceService.details(sid); |
|
|
|
if(busSalesOrderInsurance != null){ |
|
|
|
if(StringUtils.isBlank(busSalesOrderInsurance.getRemarks())){ |
|
|
|
return rb.setMsg("请先完善保险信息"); |
|
|
|
} |
|
|
|
}else{ |
|
|
|
return rb.setMsg("请先完善保险信息"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//现车判断车架号是否已经锁定,已经锁定需要提示更换车架号。采购判断选择数量是否大于采购订单可用数量,提示车型数量超出可选数量
|
|
|
|
if ("1".equals(busSalesOrder.getType())) { |
|
|
|
boolean isVehicle = isVehicle(sid); |
|
|
@ -2226,7 +2258,11 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
if (StringUtils.isNotBlank(topInfo.getContractPath())) { |
|
|
|
List<String> stringList = Arrays.asList(topInfo.getContractPath().split(",")); |
|
|
|
if (!stringList.isEmpty()) { |
|
|
|
topInfo.setContractImages(stringList); |
|
|
|
List<String> stringList1 = new ArrayList<>(); |
|
|
|
stringList.stream().forEach(i->{ |
|
|
|
stringList1.add(fileUploadComponent.getUrlPrefix()+i); |
|
|
|
}); |
|
|
|
topInfo.setContractImages(stringList1); |
|
|
|
} |
|
|
|
} |
|
|
|
vo.setTopInfo(topInfo); |
|
|
|