|
|
@ -40,6 +40,8 @@ public class ReceivablesTaskGetEAIService extends AbsEAIService { |
|
|
|
EAIRequest eaiRequest = EAIRequest.build(messageBody); |
|
|
|
List<CollectionDetailEntity> collectionDetailEntities = eaiRequest.getObject("get_data", new TypeReference<List<CollectionDetailEntity>>() {}); |
|
|
|
|
|
|
|
String status = eaiRequest.getString("receivables_status"); |
|
|
|
|
|
|
|
for (CollectionDetailEntity collectionDetailEntity : collectionDetailEntities) { |
|
|
|
if (StringUtils.isEmpty(collectionDetailEntity.getSalesOrder()) |
|
|
|
||StringUtils.isEmpty(collectionDetailEntity.getSalesOrderNumber())){ |
|
|
@ -47,8 +49,10 @@ public class ReceivablesTaskGetEAIService extends AbsEAIService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LambdaQueryWrapper<CollectionDetailEntity> lmq = new LambdaQueryWrapper<>(); |
|
|
|
lmq.eq(CollectionDetailEntity::getStatus, TabStatusEnums.PENDING.getValue()); |
|
|
|
lmq.eq(CollectionDetailEntity::getStatus, status); |
|
|
|
lmq.eq(CollectionDetailEntity::getTenantSid, SecurityUtil.getUserProfile().getTenantSid()); |
|
|
|
lmq.and(queryWrapperInner -> { |
|
|
|
for (CollectionDetailEntity collectionDetailEntity : collectionDetailEntities) { |
|
|
|