|
|
@ -658,46 +658,38 @@ public class BusMainDepositService extends MybatisBaseService<BusMainDepositMapp |
|
|
|
AppBusDepositBusDetailsVo vo = baseMapper.selDepositByBillsid(virtualOrderSid); |
|
|
|
record.setPayName(vo.getPayName()); |
|
|
|
record.setMobile(vo.getMobile()); |
|
|
|
if (StringUtils.isNotBlank(record.getUsedDeposit())) { |
|
|
|
record.setDescribe("订金: " + vo.getDeposit() + "元 已用:" + record.getUsedDeposit() + "元"); |
|
|
|
} else { |
|
|
|
record.setDescribe("订金: " + vo.getDeposit() + "元 已用:" + "0" + "元"); |
|
|
|
} |
|
|
|
/*List<BusDepositRecordsVo> depositRecords = busDepositFictitiousService.getDepositRecords(record.getVirtualOrderId()); |
|
|
|
if (depositRecords.size() > 0) { |
|
|
|
for (BusDepositRecordsVo depositRecord : depositRecords) { |
|
|
|
String usePrice = depositRecord.getUsePrice(); |
|
|
|
if (StringUtils.isNotBlank(usePrice)) { |
|
|
|
BigDecimal priceBig = new BigDecimal(usePrice); |
|
|
|
bigDecimalAll = bigDecimalAll.add(priceBig); |
|
|
|
} |
|
|
|
} |
|
|
|
record.setDescribe("订金: " + vo.getDeposit() + "元 已用:" + bigDecimalAll.toString() + "元"); |
|
|
|
} else { |
|
|
|
record.setDescribe("订金: " + vo.getDeposit() + "元 已用:" + "0" + "元"); |
|
|
|
}*/ |
|
|
|
record.setCarNumber(vo.getCarNumber()); |
|
|
|
//财务确认状态字段
|
|
|
|
if("已办结".equals(record.getVirtualOrderState())){ |
|
|
|
//判断财务是否已审核
|
|
|
|
if ("已办结".equals(record.getVirtualOrderState())) { |
|
|
|
//查询款项确认的busSid是否存在该申请的sid
|
|
|
|
ResultBean<FinCollectionConfirmation> finCollectionConfirmationResultBean = finCollectionConfirmationFeign.selectByBusSid(record.getVirtualOrderSid()); |
|
|
|
//审核状态(1待审核/2已驳回/3已审核)
|
|
|
|
FinCollectionConfirmation finCollectionConfirmation = finCollectionConfirmationResultBean.getData(); |
|
|
|
if(finCollectionConfirmation != null){ |
|
|
|
if("1".equals(finCollectionConfirmation.getAuditState())){ |
|
|
|
record.setPaymentState("待确认"); |
|
|
|
}else if("2".equals(finCollectionConfirmation.getAuditState())){ |
|
|
|
record.setPaymentState("驳回"); |
|
|
|
if (finCollectionConfirmation != null) { |
|
|
|
if(finCollectionConfirmation.getAuditState() != null){ |
|
|
|
if(finCollectionConfirmation.getAuditState() ==1){ |
|
|
|
record.setPaymentState("待确认"); |
|
|
|
}else if(finCollectionConfirmation.getAuditState() ==2){ |
|
|
|
record.setPaymentState("驳回"); |
|
|
|
}else{ |
|
|
|
record.setPaymentState("已确认"); |
|
|
|
if (StringUtils.isNotBlank(record.getUsedDeposit())) { |
|
|
|
record.setDescribe("订金: " + vo.getDeposit() + "元 已用:" + record.getUsedDeposit() + "元"); |
|
|
|
} else { |
|
|
|
record.setDescribe("订金: " + vo.getDeposit() + "元 已用:" + "0" + "元"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
record.setPaymentState("已确认"); |
|
|
|
record.setPaymentState("待确认"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
record.setCarNumber(vo.getCarNumber()); |
|
|
|
} else if (record.getVirtualOrderType().equals("02")) { |
|
|
|
BusDepositVehicleCustomer busDepositVehicleCustomer = baseMapper.selectVehicleCustomerByBillSid(virtualOrderSid); |
|
|
|
int count = baseMapper.selByBillSidCount(virtualOrderSid); |
|
|
|
record.setCarNumber(String.valueOf(count)); |
|
|
|
if(busDepositVehicleCustomer != null){ |
|
|
|
if (busDepositVehicleCustomer != null) { |
|
|
|
record.setCustomerSid(busDepositVehicleCustomer.getCustomerSid()); |
|
|
|
record.setCustomerName(busDepositVehicleCustomer.getCustomerName()); |
|
|
|
record.setMobile(busDepositVehicleCustomer.getCustomerMobile()); |
|
|
@ -1910,7 +1902,7 @@ public class BusMainDepositService extends MybatisBaseService<BusMainDepositMapp |
|
|
|
*/ |
|
|
|
public ResultBean submitVirtualVehicleOrder(SubmitVirtualOrderVehicleDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
if(StringUtils.isBlank(dto.getCustomerSid())){ |
|
|
|
if (StringUtils.isBlank(dto.getCustomerSid())) { |
|
|
|
return rb.setMsg("客户不能为空"); |
|
|
|
} |
|
|
|
//根据用户sid获取staffSid
|
|
|
@ -1948,9 +1940,9 @@ public class BusMainDepositService extends MybatisBaseService<BusMainDepositMapp |
|
|
|
// return rb.setMsg("您所选车辆已被预定或锁定!");
|
|
|
|
} |
|
|
|
} |
|
|
|
if(isLock){ |
|
|
|
String vinNos = String.join(",",stringList); |
|
|
|
return rb.setMsg("您所选车辆:"+vinNos+"已被预定或锁定"); |
|
|
|
if (isLock) { |
|
|
|
String vinNos = String.join(",", stringList); |
|
|
|
return rb.setMsg("您所选车辆:" + vinNos + "已被预定或锁定"); |
|
|
|
} |
|
|
|
//新增修改保存
|
|
|
|
ResultBean<String> resultBean = reserveCarInfo(dto); |
|
|
@ -2138,7 +2130,7 @@ public class BusMainDepositService extends MybatisBaseService<BusMainDepositMapp |
|
|
|
List<String> orgList = Arrays.asList(bv.getOrgSidPath().split("/")); |
|
|
|
String deptSid = orgList.get(orgList.size() - 1); |
|
|
|
ResultBean<SysOrganizationVo> sysOrganizationVoResultBean = sysOrganizationFeign.fetchBySid(deptSid); |
|
|
|
if(sysOrganizationVoResultBean.getData() != null){ |
|
|
|
if (sysOrganizationVoResultBean.getData() != null) { |
|
|
|
finConfirmDto.setCreateDept(sysOrganizationVoResultBean.getData().getName()); |
|
|
|
} |
|
|
|
//申请日期
|
|
|
|