|
@@ -99,7 +99,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
}
|
|
|
//先查询上游是否是已经备案
|
|
|
VehicleQueryRequest vehicleQueryRequest = new VehicleQueryRequest();
|
|
|
- vehicleQueryRequest.setCompanyNum(customerRec.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ vehicleQueryRequest.setCompanyNum(companyNum);
|
|
|
vehicleQueryRequest.setPlateColor(Integer.parseInt(customerCarRec.getCarColor()));
|
|
|
vehicleQueryRequest.setPlateNum(customerCarRec.getCarNum());
|
|
|
vehicleQueryRequest.setWaybillSource(1);
|
|
@@ -170,7 +171,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
}*/
|
|
|
|
|
|
VehicleQueryRequest vehicleQueryRequest = new VehicleQueryRequest();
|
|
|
- vehicleQueryRequest.setCompanyNum(customerCarRec.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ vehicleQueryRequest.setCompanyNum(companyNum);
|
|
|
vehicleQueryRequest.setWaybillSource(1);//1 无车承运人
|
|
|
vehicleQueryRequest.setPlateNum(customerCarRec.getCarNum());
|
|
|
vehicleQueryRequest.setPlateColor(Integer.valueOf(customerCarRec.getCarColor()));
|
|
@@ -228,7 +230,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
*/
|
|
|
public WaybillStartRequest buildWaybillStartRequest(NoCarWayBill noCarWayBill){
|
|
|
WaybillStartRequest waybillStartRequest = new WaybillStartRequest();
|
|
|
- waybillStartRequest.setCompanyNum(noCarWayBill.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ waybillStartRequest.setCompanyNum(companyNum);
|
|
|
waybillStartRequest.setNum(noCarWayBill.getBillNum());
|
|
|
waybillStartRequest.setPlateNum(noCarWayBill.getPlateNum());
|
|
|
waybillStartRequest.setPlateColor(Integer.parseInt(noCarWayBill.getPlateColor()));
|
|
@@ -287,7 +290,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
}
|
|
|
|
|
|
WaybillEndRequest waybillEndRequest = new WaybillEndRequest();
|
|
|
- waybillEndRequest.setCompanyNum(noCarWayBill1.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ waybillEndRequest.setCompanyNum(companyNum);
|
|
|
waybillEndRequest.setNum(noCarWayBill1.getBillNum());
|
|
|
waybillEndRequest.setRealDestAddr(noCarWayBill1.getDestAddr());
|
|
|
waybillEndRequest.setEndTime(DateUtil.dateFormate(noCarWayBill1.getPredictEndTime()));
|
|
@@ -332,7 +336,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
|
|
|
public WaybillHistoryStartRequest BuildNoCarHisWaybill(NoCarWayBill noCarWayBill){
|
|
|
WaybillHistoryStartRequest waybillStartRequest = new WaybillHistoryStartRequest();
|
|
|
- waybillStartRequest.setCompanyNum(noCarWayBill.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ waybillStartRequest.setCompanyNum(companyNum);
|
|
|
waybillStartRequest.setNum(noCarWayBill.getBillNum());
|
|
|
waybillStartRequest.setPlateNum(noCarWayBill.getPlateNum());
|
|
|
waybillStartRequest.setPlateColor(Integer.parseInt(noCarWayBill.getPlateColor()));
|
|
@@ -364,7 +369,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
return new RespR(false,"当前运单状态无法结束");
|
|
|
}
|
|
|
WaybillEndRequest waybillEndRequest = new WaybillEndRequest();
|
|
|
- waybillEndRequest.setCompanyNum(noCarWayBill1.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ waybillEndRequest.setCompanyNum(companyNum);
|
|
|
waybillEndRequest.setNum(noCarWayBill1.getBillNum());
|
|
|
waybillEndRequest.setRealDestAddr(noCarWayBill1.getDestAddr());
|
|
|
waybillEndRequest.setEndTime(noCarWayBill1.getPredictEndTime());
|
|
@@ -414,7 +420,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
}*/
|
|
|
//进行取票操作
|
|
|
WaybillNumFindInvoiceRequest waybillNumFindInvoiceRequest = new WaybillNumFindInvoiceRequest();
|
|
|
- waybillNumFindInvoiceRequest.setCompanyNum(noCarWayBillDb.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ waybillNumFindInvoiceRequest.setCompanyNum(companyNum);
|
|
|
waybillNumFindInvoiceRequest.setWaybillNum(noCarWayBillDb.getBillNum());
|
|
|
RespR<WaybillNumFindInvoiceResponse> responseRespR = noCarInterface.waybillNumFindInvoice(waybillNumFindInvoiceRequest);
|
|
|
if(responseRespR.getCode() == 1){
|
|
@@ -486,7 +493,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
@Override
|
|
|
public RespR hCInvoiceQuery(HCInvoiceQueryVo hcInvoiceQueryVo) {
|
|
|
WaybillInvoiceRedQueryRequest redQueryRequest = new WaybillInvoiceRedQueryRequest();
|
|
|
- redQueryRequest.setCompanyNum(hcInvoiceQueryVo.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ redQueryRequest.setCompanyNum(companyNum);
|
|
|
redQueryRequest.setMonth(hcInvoiceQueryVo.getMonth());
|
|
|
RespR<WaybillInvoiceRedQueryResponse> respR = noCarInterface.waybillInvoiceRedQuery(redQueryRequest);
|
|
|
if(respR.getCode() == 1){
|
|
@@ -509,7 +517,8 @@ public class NoCarServiceImpl implements NoCarService{
|
|
|
return new RespR(false,"客户未备案或备案失败");
|
|
|
}
|
|
|
WaybillCountQueryRequest waybillCountQueryRequest = new WaybillCountQueryRequest();
|
|
|
- waybillCountQueryRequest.setCompanyNum(customerRec.getCompanyNum());
|
|
|
+ String companyNum = paramService.getParamsByParamName("REQUEST_COMPANY_NUM").getParamValue();
|
|
|
+ waybillCountQueryRequest.setCompanyNum(companyNum);
|
|
|
waybillCountQueryRequest.setTaxCode(monthAccountQueryVo.getTaxCode());
|
|
|
waybillCountQueryRequest.setTradeMonth(monthAccountQueryVo.getTradeMonth());
|
|
|
waybillCountQueryRequest.setWaybillSource(monthAccountQueryVo.getWaybillSource());
|