|
@@ -109,9 +109,15 @@ public class TbInvoiceOrderService extends ServiceImpl<TbInvoiceOrderMapper, TbI
|
|
|
|
|
|
for (TbBusiness tbBusiness : businessList) {
|
|
|
businessNoList.add(tbBusiness.getNo());
|
|
|
- List<String> carNoList = StrUtil.split(tbBusiness.getCardNo(), "、");
|
|
|
- List<String> chinaCarNoList = StrUtil.split(tbBusiness.getChinaCarNo(), "、");
|
|
|
- carNoList.addAll(chinaCarNoList);
|
|
|
+ List<String> carNoList = new ArrayList<>();
|
|
|
+ if(StrUtil.isNotEmpty(tbBusiness.getCardNo())){
|
|
|
+ carNoList.addAll(StrUtil.split(tbBusiness.getCardNo(), "、"));
|
|
|
+ }
|
|
|
+ if(StrUtil.isNotEmpty(tbBusiness.getChinaCarNo())){
|
|
|
+ carNoList.addAll(StrUtil.split(tbBusiness.getChinaCarNo(), "、"));
|
|
|
+ }
|
|
|
+// List<String> yuecarNoList = StrUtil.split(tbBusiness.getCardNo(), "、");
|
|
|
+// List<String> chinaCarNoList = StrUtil.split(tbBusiness.getChinaCarNo(), "、");
|
|
|
for (String no : carNoList) {
|
|
|
if(!carNos.contains(no)){
|
|
|
carNos.add(no);
|
|
@@ -137,6 +143,9 @@ public class TbInvoiceOrderService extends ServiceImpl<TbInvoiceOrderMapper, TbI
|
|
|
for (PriceBO bo1 : cars) {
|
|
|
TbBusinessCar car = tbBusinessCarService.getById(bo1.getId());
|
|
|
businessNoList.add(car.getNo());
|
|
|
+ if(!carNos.contains(car.getCarNo())){
|
|
|
+ carNos.add(car.getCarNo());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|