|
|
@ -93,6 +93,8 @@ import com.yxt.anrui.flowable.api.utils.ProcessStateEnum; |
|
|
|
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables; |
|
|
|
import com.yxt.anrui.portal.api.dictcommon.DictCommonFeign; |
|
|
|
import com.yxt.anrui.portal.api.dictcommon.DictCommonVo; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganization; |
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
|
import com.yxt.anrui.portal.api.sysuser.app.AppUserOrgInfoVo; |
|
|
@ -181,6 +183,9 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
@Autowired |
|
|
|
private BusVehicleApplyDetailFeign busVehicleApplyDetailFeign; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private SysOrganizationFeign sysOrganizationFeign; |
|
|
|
|
|
|
|
/** |
|
|
|
* 构造查询条件 |
|
|
|
* |
|
|
@ -2020,6 +2025,26 @@ public class BusSalesOrderService extends MybatisBaseService<BusSalesOrderMapper |
|
|
|
} |
|
|
|
AppOrderDetailsVo vo = new AppOrderDetailsVo(); |
|
|
|
vo = baseMapper.getSaleOrderDetails(sid); |
|
|
|
//根据销售部门sid查询分公司名称
|
|
|
|
ResultBean<String> resultBean = sysStaffOrgFeign.getOrgSidBySid(vo.getOrgSid()); |
|
|
|
if (!"0".equals(resultBean.getData())) { |
|
|
|
//根据分公司sid查询分公司名称
|
|
|
|
ResultBean<SysOrganization> organizationResultBean = sysOrganizationFeign.selectBySid(resultBean.getData()); |
|
|
|
if (organizationResultBean.getSuccess()) { |
|
|
|
vo.setSalesOrg(organizationResultBean.getData().getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
BusSalesOrderInsuranceDetailsVo busSalesOrderInsurance = busSalesOrderInsuranceService.details(sid); |
|
|
|
if (busSalesOrderInsurance != null) { |
|
|
|
if ("0".equals(busSalesOrder.getIsInsurance())) { |
|
|
|
vo.setInsuranceInfo("未在公司入保," + busSalesOrderInsurance.getRemarks()); |
|
|
|
} else if ("1".equals(busSalesOrder.getIsInsurance())) { |
|
|
|
String x = ","; |
|
|
|
String x1 = "单台车保费预估金额"; |
|
|
|
String x2 = "入保期数"; |
|
|
|
vo.setInsuranceInfo(busSalesOrderInsurance.getInsuranceName() + x + x1 + busSalesOrderInsurance.getInsuranceCarMoney() + "万元" + x + x2 + busSalesOrderInsurance.getInsuranceNum() + "期"); |
|
|
|
} |
|
|
|
} |
|
|
|
/***************************车型信息***************************************/ |
|
|
|
AppOrderModelInfoVo modelInfo = busSalesOrderModelService.selectModel(sid); |
|
|
|
//若订单类型为0则为现车,为1采购订单,为2排产
|
|
|
|