|
|
@ -36,14 +36,19 @@ import com.yxt.anrui.buscenter.api.buscenterfile.BuscenterFile; |
|
|
|
import com.yxt.anrui.buscenter.api.buscenterfile.BuscenterFileEnum; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverprepare.BusHandoverPrepare; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverprepare.BusHandoverPrepareAddDto; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverprepare.HandoverInformationIntemVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverprepare.HandoverInformationVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverprepare.app.*; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverpreparevehicle.AppBusHandoverPrepareVehicleDto; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverpreparevehicle.AppBusHandoverPrepareVehicleInfoVo; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverpreparevehicle.BusHandoverPrepareVehicle; |
|
|
|
import com.yxt.anrui.buscenter.api.bushandoverwait.BusHandoverWaitDto; |
|
|
|
import com.yxt.anrui.buscenter.api.busvehicleinformationhandover.BusVehicleInformationHandover; |
|
|
|
import com.yxt.anrui.buscenter.biz.buscenterfile.BuscenterFileService; |
|
|
|
import com.yxt.anrui.buscenter.biz.bushandoverpreparevehicle.BusHandoverPrepareVehicleService; |
|
|
|
import com.yxt.anrui.buscenter.biz.bushandoverwait.BusHandoverWaitService; |
|
|
|
import com.yxt.anrui.buscenter.biz.busvehicleinformation.BusVehicleInformationService; |
|
|
|
import com.yxt.anrui.buscenter.biz.busvehicleinformationhandover.BusVehicleInformationHandoverService; |
|
|
|
import com.yxt.anrui.fin.api.finbillvehicle.FinBillVehicleFeign; |
|
|
|
import com.yxt.anrui.fin.api.finvehicleinvoice.FinVehicleInvoiceFeign; |
|
|
|
import com.yxt.anrui.fin.api.finvehicleinvoice.VehicleInvoiceVo; |
|
|
@ -99,6 +104,10 @@ public class BusHandoverPrepareService extends MybatisBaseService<BusHandoverPre |
|
|
|
private SysUserFeign sysUserFeign; |
|
|
|
@Autowired |
|
|
|
private FinVehicleInvoiceFeign finVehicleInvoiceFeign; |
|
|
|
@Autowired |
|
|
|
private BusVehicleInformationHandoverService busVehicleInformationHandoverService; |
|
|
|
@Autowired |
|
|
|
private BusVehicleInformationService busVehicleInformationService; |
|
|
|
|
|
|
|
/* private QueryWrapper<BusHandoverPrepare> createQueryWrapper(BusHandoverPrepareQuery query) { |
|
|
|
// todo: 这里根据具体业务调整查询条件
|
|
|
@ -279,11 +288,11 @@ public class BusHandoverPrepareService extends MybatisBaseService<BusHandoverPre |
|
|
|
* @param dto |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
public ResultBean saveState(AppStateDateDto dto) { |
|
|
|
/* public ResultBean saveState(AppStateDateDto dto) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
busHandoverPrepareVehicleService.saveState(dto); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取交车准备 发票信息 |
|
|
@ -488,4 +497,22 @@ public class BusHandoverPrepareService extends MybatisBaseService<BusHandoverPre |
|
|
|
updateById(busHandoverPrepare); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|
public ResultBean<HandoverInformationVo> getVehicleInformationInfo(String sid) { |
|
|
|
ResultBean<HandoverInformationVo> rb = ResultBean.fireFail(); |
|
|
|
HandoverInformationVo handoverInformationVo = new HandoverInformationVo(); |
|
|
|
BusHandoverPrepareVehicle busHandoverPrepareVehicle = busHandoverPrepareVehicleService.fetchBySid(sid); |
|
|
|
BusVehicleInformationHandover busVehicleInformationHandover = busVehicleInformationHandoverService.getVehicleInformationInfo(busHandoverPrepareVehicle.getVinSid()); |
|
|
|
if(busVehicleInformationHandover != null){ |
|
|
|
handoverInformationVo.setContractNo(busVehicleInformationHandover.getContractNo()); |
|
|
|
handoverInformationVo.setCustomerName(busVehicleInformationHandover.getCustomerName()); |
|
|
|
handoverInformationVo.setVinNo(busVehicleInformationHandover.getVinNo()); |
|
|
|
handoverInformationVo.setModel(busVehicleInformationHandover.getModel()); |
|
|
|
//根据随车资料主表sid查询随车资料的记录
|
|
|
|
List<HandoverInformationIntemVo> list = busVehicleInformationService.selectByMainSid(busVehicleInformationHandover.getSid()); |
|
|
|
list.removeAll(Collections.singleton(null)); |
|
|
|
handoverInformationVo.setItemList(list); |
|
|
|
} |
|
|
|
return rb.success().setData(handoverInformationVo); |
|
|
|
} |
|
|
|
} |