|
@@ -11,6 +11,7 @@ import com.jkcredit.invoice.model.entity.customer.CustomerCarRec;
|
|
import com.jkcredit.invoice.model.entity.customer.CustomerOper;
|
|
import com.jkcredit.invoice.model.entity.customer.CustomerOper;
|
|
import com.jkcredit.invoice.model.entity.invoice.BillInvoice;
|
|
import com.jkcredit.invoice.model.entity.invoice.BillInvoice;
|
|
import com.jkcredit.invoice.model.entity.waybill.NoCarWayBill;
|
|
import com.jkcredit.invoice.model.entity.waybill.NoCarWayBill;
|
|
|
|
+import com.jkcredit.invoice.model.vo.CodeAndNumVo;
|
|
import com.jkcredit.invoice.service.CalculateInfor.NoCarCalculateInfoService;
|
|
import com.jkcredit.invoice.service.CalculateInfor.NoCarCalculateInfoService;
|
|
import com.jkcredit.invoice.service.customer.CustomerOperService;
|
|
import com.jkcredit.invoice.service.customer.CustomerOperService;
|
|
import com.jkcredit.invoice.service.lowerService.NoCarService;
|
|
import com.jkcredit.invoice.service.lowerService.NoCarService;
|
|
@@ -33,6 +34,7 @@ import java.io.*;
|
|
import java.net.URLEncoder;
|
|
import java.net.URLEncoder;
|
|
import java.text.DateFormat;
|
|
import java.text.DateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
import java.text.SimpleDateFormat;
|
|
|
|
+import java.util.ArrayList;
|
|
import java.util.Arrays;
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@Api(tags = "无车操作")
|
|
@Api(tags = "无车操作")
|
|
@@ -277,14 +279,25 @@ public class NoCarController {
|
|
billInvoice.setWaybillNums(Arrays.asList(billNumArr));
|
|
billInvoice.setWaybillNums(Arrays.asList(billNumArr));
|
|
}
|
|
}
|
|
|
|
|
|
- if(!StringUtils.isEmpty(billInvoice.getInvoiceCode())){
|
|
|
|
|
|
+ if(!StringUtils.isEmpty(billInvoice.getInvoiceCode()) && billInvoice.getInvoiceCode().indexOf(',')>0){
|
|
String [] invoiceCodeArr = billInvoice.getInvoiceCode().split(",");
|
|
String [] invoiceCodeArr = billInvoice.getInvoiceCode().split(",");
|
|
- billInvoice.setInvoiceCodes(Arrays.asList(invoiceCodeArr));
|
|
|
|
- }
|
|
|
|
|
|
+ String [] invoiceNumArr=null;
|
|
|
|
+ if( billInvoice.getInvoiceNum()!=null){
|
|
|
|
+ invoiceNumArr = billInvoice.getInvoiceNum().split(",");
|
|
|
|
+ }
|
|
|
|
+ List<CodeAndNumVo> codeAndNumVos = new ArrayList<>();
|
|
|
|
+ for (int i=0;i<invoiceCodeArr.length;i++){
|
|
|
|
+ CodeAndNumVo codeAndNumVo = new CodeAndNumVo();
|
|
|
|
+ codeAndNumVo.setCode(invoiceCodeArr[i]);
|
|
|
|
+ if(invoiceNumArr!=null && invoiceNumArr.length>=i+1){
|
|
|
|
+ codeAndNumVo.setNum(invoiceNumArr[i]);
|
|
|
|
+ }else{
|
|
|
|
+ codeAndNumVo.setNum("");
|
|
|
|
+ }
|
|
|
|
+ codeAndNumVos.add(codeAndNumVo);
|
|
|
|
+ }
|
|
|
|
+ billInvoice.setCodeAndNumVos(codeAndNumVos);
|
|
|
|
|
|
- if(!StringUtils.isEmpty(billInvoice.getInvoiceNum())){
|
|
|
|
- String [] invoiceNumArr = billInvoice.getInvoiceNum().split(",");
|
|
|
|
- billInvoice.setInvoiceNums(Arrays.asList(invoiceNumArr));
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/**
|
|
/**
|