|
|
@ -10,7 +10,6 @@ import com.mybatisflex.core.query.QueryColumn; |
|
|
import com.mybatisflex.core.query.QueryWrapper; |
|
|
import com.mybatisflex.core.query.QueryWrapper; |
|
|
import com.thing.carbontrack.production.entity.IotCarbonProductionVarietyEntity; |
|
|
import com.thing.carbontrack.production.entity.IotCarbonProductionVarietyEntity; |
|
|
import com.thing.carbontrack.production.mapper.IotCarbonProductionVarietyMapper; |
|
|
import com.thing.carbontrack.production.mapper.IotCarbonProductionVarietyMapper; |
|
|
import com.thing.carbontrack.production.service.IotCarbonProductionVarietyService; |
|
|
|
|
|
import com.thing.carbontrack.productionResult.dto.*; |
|
|
import com.thing.carbontrack.productionResult.dto.*; |
|
|
import com.thing.carbontrack.productionResult.entity.IotCarbonProductionResultEntity; |
|
|
import com.thing.carbontrack.productionResult.entity.IotCarbonProductionResultEntity; |
|
|
import com.thing.carbontrack.productionResult.mapper.IotCarbonProductionResultMapper; |
|
|
import com.thing.carbontrack.productionResult.mapper.IotCarbonProductionResultMapper; |
|
|
@ -717,8 +716,7 @@ public class IotCarbonProductionResultServiceImpl |
|
|
if(Objects.nonNull(start) && Objects.nonNull(end)){ |
|
|
if(Objects.nonNull(start) && Objects.nonNull(end)){ |
|
|
Date startDate = sdf.parse(start); |
|
|
Date startDate = sdf.parse(start); |
|
|
Date endDate = sdf.parse(end); |
|
|
Date endDate = sdf.parse(end); |
|
|
wrapper.and(IOT_CARBON_PRODUCTION_RESULT_ENTITY.START_TIME.between(startDate, endDate) |
|
|
|
|
|
.or(IOT_CARBON_PRODUCTION_RESULT_ENTITY.FINISH_TIME.between(startDate, endDate))); |
|
|
|
|
|
|
|
|
wrapper.between(IotCarbonProductionResultEntity::getFinishTime, startDate, endDate); |
|
|
} |
|
|
} |
|
|
return list(wrapper); |
|
|
return list(wrapper); |
|
|
} |
|
|
} |
|
|
|