|
|
|
@ -40,47 +40,56 @@ public class OperDefectStatisticsServiceImpl extends BaseServiceImpl<OperDefectS
|
|
|
|
|
@Override |
|
|
|
|
public LambdaQueryWrapper<OperDefectStatisticsEntity> getQueryWrapper(OperDefectStatisticsVO statistics) { |
|
|
|
|
LambdaQueryWrapper<OperDefectStatisticsEntity> queryWrapper = Condition.getQueryWrapper(new OperDefectStatisticsEntity(),statistics); |
|
|
|
|
if(statistics.getActStartTime()!=null){ |
|
|
|
|
queryWrapper.ge(OperDefectStatisticsEntity::getActStartTime,statistics.getActStartTime()); |
|
|
|
|
} |
|
|
|
|
if(statistics.getActEndTime()!=null){ |
|
|
|
|
queryWrapper.le(OperDefectStatisticsEntity::getActStartTime,statistics.getActEndTime()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getDefectLevel() != null) { |
|
|
|
|
queryWrapper.like(OperDefectStatisticsEntity::getDefectLevel, statistics.getDefectLevel()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getDisposer() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getDisposer, statistics.getDisposer()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getConclusion() != null) { |
|
|
|
|
queryWrapper.like(OperDefectStatisticsEntity::getConclusion, statistics.getConclusion()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getConclusionTime() != null) { |
|
|
|
|
queryWrapper.le(OperDefectStatisticsEntity::getConclusionTime, statistics.getConclusionTime()); |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(statistics.getConclusionEndTime())) { |
|
|
|
|
queryWrapper.ge(OperDefectStatisticsEntity::getConclusionTime, statistics.getConclusionEndTime()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getCreateTime() != null) { |
|
|
|
|
queryWrapper.le(OperDefectStatisticsEntity::getCreateTime, statistics.getCreateTime()); |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(statistics.getCreateEndTime())) { |
|
|
|
|
queryWrapper.ge(OperDefectStatisticsEntity::getCreateTime, statistics.getCreateEndTime()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getEmCode() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getEmCode, statistics.getEmCode()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getIsWarehousing() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getIsWarehousing, statistics.getIsWarehousing()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getSourceCode() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getSourceCode, statistics.getSourceCode()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getConclusionPeople() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getConclusionPeople, statistics.getConclusionPeople()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getCreateDept() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getCreateDept, statistics.getCreateDept()); |
|
|
|
|
if(Func.isNotEmpty(statistics)) { |
|
|
|
|
if (statistics.getActStartTime() != null) { |
|
|
|
|
queryWrapper.ge(OperDefectStatisticsEntity::getActStartTime, statistics.getActStartTime()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getActEndTime() != null) { |
|
|
|
|
queryWrapper.le(OperDefectStatisticsEntity::getActStartTime, statistics.getActEndTime()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getDefectLevel() != null) { |
|
|
|
|
queryWrapper.like(OperDefectStatisticsEntity::getDefectLevel, statistics.getDefectLevel()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getDisposer() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getDisposer, statistics.getDisposer()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getConclusion() != null) { |
|
|
|
|
queryWrapper.like(OperDefectStatisticsEntity::getConclusion, statistics.getConclusion()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getName() != null) { |
|
|
|
|
queryWrapper.like(OperDefectStatisticsEntity::getName, statistics.getName()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getConclusionTime() != null) { |
|
|
|
|
queryWrapper.le(OperDefectStatisticsEntity::getConclusionTime, statistics.getConclusionTime()); |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(statistics.getConclusionEndTime())) { |
|
|
|
|
queryWrapper.ge(OperDefectStatisticsEntity::getConclusionTime, statistics.getConclusionEndTime()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getCreateTime() != null) { |
|
|
|
|
queryWrapper.le(OperDefectStatisticsEntity::getCreateTime, statistics.getCreateTime()); |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(statistics.getCreateEndTime())) { |
|
|
|
|
queryWrapper.ge(OperDefectStatisticsEntity::getCreateTime, statistics.getCreateEndTime()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getIsDefect() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getIsDefect, statistics.getIsDefect()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getEmCode() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getEmCode, statistics.getEmCode()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getIsWarehousing() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getIsWarehousing, statistics.getIsWarehousing()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getSourceCode() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getSourceCode, statistics.getSourceCode()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getConclusionPeople() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getConclusionPeople, statistics.getConclusionPeople()); |
|
|
|
|
} |
|
|
|
|
if (statistics.getCreateDept() != null) { |
|
|
|
|
queryWrapper.eq(OperDefectStatisticsEntity::getCreateDept, statistics.getCreateDept()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
queryWrapper.orderByDesc(OperDefectStatisticsEntity::getCreateTime); |
|
|
|
|
return queryWrapper; |
|
|
|
|