|
|
@ -2160,7 +2160,7 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
int count = (int)orderProcessInfos1.stream() |
|
|
|
int count = (int)orderProcessInfos1.stream() |
|
|
|
.filter(t -> OrderInfoEnum.ORDER_STATUS_5.getKey().equals(t.getDdzt()) || OrderInfoEnum.ORDER_STATUS_7.getKey().equals(t.getDdzt())).count(); |
|
|
|
.filter(t -> OrderInfoEnum.ORDER_STATUS_5.getKey().equals(t.getDdzt()) || OrderInfoEnum.ORDER_STATUS_7.getKey().equals(t.getDdzt())).count(); |
|
|
|
if(orderProcessInfos1.size() != count){ |
|
|
|
if(orderProcessInfos1.size() != count){ |
|
|
|
sb1.append("本次作废存在商旅发票,存在未开具成功报账单:" + s); |
|
|
|
sb1.append(String.format("本次作废存在商旅发票,报账单:%s存在未开具成功的结算单;",s)); |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
fpqqlsh.addAll(orderProcessInfos1.stream().map(t -> t.getFpqqlsh()).collect(Collectors.toList())); |
|
|
|
fpqqlsh.addAll(orderProcessInfos1.stream().map(t -> t.getFpqqlsh()).collect(Collectors.toList())); |
|
|
@ -2174,7 +2174,7 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
List<OrderInvoiceInfo> invoiceInfos = orderInvoiceInfoMapper.selectInvoiceInfoByFpqqlshs(fpqqlsh); |
|
|
|
List<OrderInvoiceInfo> invoiceInfos = orderInvoiceInfoMapper.selectInvoiceInfoByFpqqlshs(fpqqlsh); |
|
|
|
List<String> collect2 = invoiceInfos.stream().filter(t -> !paramList.contains(t.getFpqqlsh())).map(t -> t.getFphm()).collect(Collectors.toList()); |
|
|
|
List<String> collect2 = invoiceInfos.stream().filter(t -> !paramList.contains(t.getFpqqlsh())).map(t -> t.getFphm()).collect(Collectors.toList()); |
|
|
|
if(!collect2.isEmpty()){ |
|
|
|
if(!collect2.isEmpty()){ |
|
|
|
return R.error("本次作废存在商旅发票,以下发票号码未作废:" + collect2.stream().collect(Collectors.joining(",")) + ",请注意"); |
|
|
|
return R.error(String.format("本次作废存在商旅发票,以下发票号码未作废:%s,请注意" ,collect2.stream().collect(Collectors.joining(",")) )); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
@ -2201,15 +2201,13 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
List<OrderProcessInfo> orderProcessInfos1 = collect.get(s); |
|
|
|
List<OrderProcessInfo> orderProcessInfos1 = collect.get(s); |
|
|
|
if(orderProcessInfos1.size() > 1){ |
|
|
|
if(orderProcessInfos1.size() > 1){ |
|
|
|
//如果全部开具成功再添加否则返回报错信息
|
|
|
|
//如果全部开具成功再添加否则返回报错信息
|
|
|
|
List<String> collect2 = orderProcessInfos1.stream() |
|
|
|
int count = (int)orderProcessInfos1.stream() |
|
|
|
.filter(t -> OrderInfoEnum.ORDER_STATUS_5.getKey().equals(t.getDdzt()) || OrderInfoEnum.ORDER_STATUS_7.getKey().equals(t.getDdzt())) |
|
|
|
.filter(t -> OrderInfoEnum.ORDER_STATUS_5.getKey().equals(t.getDdzt()) || OrderInfoEnum.ORDER_STATUS_7.getKey().equals(t.getDdzt())).count(); |
|
|
|
.map(t -> t.getFpqqlsh()).collect(Collectors.toList()); |
|
|
|
if(orderProcessInfos1.size() != count){ |
|
|
|
if(!collect2.isEmpty()){ |
|
|
|
sb2.append(String.format("本次冲红存在商旅发票,报账单:%s存在未开具成功的结算单;",s)); |
|
|
|
yfpqqlsh.addAll(collect2); |
|
|
|
continue; |
|
|
|
}else{ |
|
|
|
|
|
|
|
sb2.append("本次冲红存在商旅发票,,存在未开具成功结算单:" + collect2.stream().collect(Collectors.joining(",")));//结算单号
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
yfpqqlsh.addAll(orderProcessInfos1.stream().map(t -> t.getFpqqlsh()).collect(Collectors.toList())); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//直接return ,存在未开具情况不查作废情况了
|
|
|
|
//直接return ,存在未开具情况不查作废情况了
|
|
|
@ -2220,7 +2218,7 @@ public class OrderInfoServiceImpl implements OrderInfoService { |
|
|
|
List<OrderInvoiceInfo> invoiceInfos = orderInvoiceInfoMapper.selectInvoiceInfoByFpqqlshs(yfpqqlsh); |
|
|
|
List<OrderInvoiceInfo> invoiceInfos = orderInvoiceInfoMapper.selectInvoiceInfoByFpqqlshs(yfpqqlsh); |
|
|
|
List<String> collect2 = invoiceInfos.stream().filter(t -> !list.contains(t.getFpdm() + "-" + t.getFphm())).map(t -> t.getFphm()).collect(Collectors.toList()); |
|
|
|
List<String> collect2 = invoiceInfos.stream().filter(t -> !list.contains(t.getFpdm() + "-" + t.getFphm())).map(t -> t.getFphm()).collect(Collectors.toList()); |
|
|
|
if(!collect2.isEmpty()){ |
|
|
|
if(!collect2.isEmpty()){ |
|
|
|
return R.error("本次冲红存在商旅发票,以下发票号码未冲红:"+collect2.stream().collect(Collectors.joining(","))+",请注意"); |
|
|
|
return R.error(String.format("本次冲红存在商旅发票,以下发票号码需冲红:%s,请注意;",collect2.stream().collect(Collectors.joining(",")))); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|