|
|
@ -22,6 +22,7 @@ import lombok.RequiredArgsConstructor; |
|
|
|
|
|
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
|
|
import org.apache.commons.lang3.ObjectUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
import org.apache.commons.lang3.tuple.Pair; |
|
|
import org.apache.commons.lang3.tuple.Pair; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
@ -76,7 +77,7 @@ public class CarbonPubProductionReportServiceImpl extends BaseServiceImpl<Carbon |
|
|
.leftJoin(CARBON_PUB_PRODUCTION_REPORT_CONFIG_ENTITY) |
|
|
.leftJoin(CARBON_PUB_PRODUCTION_REPORT_CONFIG_ENTITY) |
|
|
.on(CARBON_PUB_PRODUCTION_REPORT_ENTITY.CONFIG_ID.eq(CARBON_PUB_PRODUCTION_REPORT_CONFIG_ENTITY.ID)) |
|
|
.on(CARBON_PUB_PRODUCTION_REPORT_ENTITY.CONFIG_ID.eq(CARBON_PUB_PRODUCTION_REPORT_CONFIG_ENTITY.ID)) |
|
|
.eq(CarbonPubProductionReportEntity::getId, id, Objects::nonNull) |
|
|
.eq(CarbonPubProductionReportEntity::getId, id, Objects::nonNull) |
|
|
.in(CarbonPubProductionReportEntity::getProductId, productIds, CollectionUtils.isNotEmpty(productIds)) |
|
|
|
|
|
|
|
|
.in(CarbonPubProductionReportEntity::getProductId, productIds, ObjectUtils.isNotEmpty(productIds)) |
|
|
.ge(CarbonPubProductionReportEntity::getCreateDate, startTs, Objects::nonNull) |
|
|
.ge(CarbonPubProductionReportEntity::getCreateDate, startTs, Objects::nonNull) |
|
|
.le(CarbonPubProductionReportEntity::getCreateDate, endTs, Objects::nonNull) |
|
|
.le(CarbonPubProductionReportEntity::getCreateDate, endTs, Objects::nonNull) |
|
|
.eq(CarbonPubProductionReportEntity::getTenantCode, tenantCode, Objects::nonNull); |
|
|
.eq(CarbonPubProductionReportEntity::getTenantCode, tenantCode, Objects::nonNull); |
|
|
|