|
|
@@ -2615,13 +2615,20 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
if(StrUtil.isNotEmpty(incomeAbanda)){
|
|
|
errrMsg.append("车牌号为").append(incomeAbanda).append("的应收数据不存在. ");
|
|
|
}
|
|
|
+
|
|
|
+ String settlementedDatas = datas.stream().filter(action -> StrUtil.isNotEmpty(action.getOrderNo())).filter(action-> action.getInsPlyIncome() != null)
|
|
|
+ .filter(action -> "1".equals(action.getInsPlyIncome().getSettlementStatus())).map(ImportContentExt::getLicenseNo).collect(Collectors.joining(","));
|
|
|
+ if(StrUtil.isNotEmpty(settlementedDatas)){
|
|
|
+ errrMsg.append("车牌号为").append(settlementedDatas).append("的应收数据已结算.");
|
|
|
+ }
|
|
|
+
|
|
|
if("20".equals(type)){
|
|
|
-// List<String> contactPersons = datas.stream().map(ImportContentExt::getContactPerson).filter(Objects::nonNull).distinct().toList();
|
|
|
-// if(CollUtil.size(contactPersons) > 1){
|
|
|
-// errrMsg.append("该批数据的对接人不唯一");
|
|
|
-// }else if(CollUtil.isEmpty(contactPersons)){
|
|
|
-// errrMsg.append("该批数据的对接人为空");
|
|
|
-// }
|
|
|
+ List<String> contactPersons = datas.stream().map(ImportContentExt::getContactPerson).filter(Objects::nonNull).distinct().toList();
|
|
|
+ if(CollUtil.size(contactPersons) > 1){
|
|
|
+ errrMsg.append("该批数据的对接人不唯一. ");
|
|
|
+ }else if(CollUtil.isEmpty(contactPersons)){
|
|
|
+ errrMsg.append("该批数据的对接人为空");
|
|
|
+ }
|
|
|
}else if("11".equals(type) || "12".equals(type)){
|
|
|
List<String> parternerCompanyIds = datas.stream().map(ImportContentExt::getParternerCompanyId).filter(Objects::nonNull).distinct().toList();
|
|
|
if(CollUtil.size(parternerCompanyIds) > 1){
|
|
|
@@ -2631,6 +2638,7 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
for (ImportContentExt data : datas) {
|
|
|
boolean all = false;
|
|
|
boolean jq = false;
|