|
|
@ -43,14 +43,13 @@ public class SalesOrderDetailGetEAIService extends AbsEAIService { |
|
|
|
List<Long> idList = salesOrderDetailDTOList.stream().map(SalesOrderDetailEntity::getId).collect(Collectors.toList()); |
|
|
|
|
|
|
|
// 两次调get查询 |
|
|
|
LambdaQueryWrapper queryWrapper; |
|
|
|
LambdaQueryWrapper<SalesOrderDetailEntity> queryWrapper; |
|
|
|
if(request.getParameter().get(ParameterConstant.OPTION).equals(ParameterConstant.SET_NUMBER)){ |
|
|
|
queryWrapper = Wrappers.<SalesOrderDetailEntity>lambdaQuery() |
|
|
|
.eq(SalesOrderDetailEntity::getTenantSid,0L); |
|
|
|
}else{ |
|
|
|
queryWrapper = Wrappers.<SalesOrderDetailEntity>lambdaQuery() |
|
|
|
.eq(SalesOrderDetailEntity::getTenantSid,1L) |
|
|
|
.in(SalesOrderDetailEntity::getId,idList) |
|
|
|
.in(SalesOrderDetailEntity::getId,idList) |
|
|
|
.eq(SalesOrderDetailEntity::getStatus,salesOrderDetailDTOList.get(0).getStatus()); |
|
|
|
} |
|
|
|
|
|
|
|