|
|
@ -21,20 +21,23 @@ public interface CustomMapper extends ExtendMapper<CustomEntity> {
|
|
|
|
LambdaAliasQueryWrapperX<CustomEntity> wrapperX = WrappersX.lambdaAliasQueryX(CustomEntity.class);
|
|
|
|
LambdaAliasQueryWrapperX<CustomEntity> wrapperX = WrappersX.lambdaAliasQueryX(CustomEntity.class);
|
|
|
|
wrapperX.eqIfPresent(CustomEntity::getCreateBy, qo.getCreateBy())
|
|
|
|
wrapperX.eqIfPresent(CustomEntity::getCreateBy, qo.getCreateBy())
|
|
|
|
.likeIfPresent(CustomEntity::getCustomName, qo.getCustomName())
|
|
|
|
.likeIfPresent(CustomEntity::getCustomName, qo.getCustomName())
|
|
|
|
|
|
|
|
.likeIfPresent(CustomEntity::getBatchNo, qo.getBatchNo())
|
|
|
|
.eqIfPresent(CustomEntity::getCustomId,qo.getCompanyId())
|
|
|
|
.eqIfPresent(CustomEntity::getCustomId,qo.getCompanyId())
|
|
|
|
.eqIfPresent(CustomEntity::getType,qo.getSalesmanType())
|
|
|
|
.eqIfPresent(CustomEntity::getType,qo.getSalesmanType())
|
|
|
|
.eqIfPresent(CustomEntity::getCustomNid, qo.getCustomNid())
|
|
|
|
.eqIfPresent(CustomEntity::getCustomNid, qo.getCustomNid())
|
|
|
|
.eqIfPresent(CustomEntity::getEnrollStatus, qo.getEnrollStatus())
|
|
|
|
.eqIfPresent(CustomEntity::getEnrollStatus, qo.getEnrollStatus());
|
|
|
|
.orderByDesc(CustomEntity::getCreateTime);
|
|
|
|
if (StringUtils.isNotBlank(qo.getDistributeStartTime()) && StringUtils.isNotBlank(qo.getDistributeEndTime())) {
|
|
|
|
|
|
|
|
wrapperX.between(CustomEntity::getDistributeTime, qo.getDistributeStartTime(), qo.getDistributeEndTime());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(qo.getStartTime()) && StringUtils.isNotBlank(qo.getEndTime())) {
|
|
|
|
if (StringUtils.isNotBlank(qo.getStartTime()) && StringUtils.isNotBlank(qo.getEndTime())) {
|
|
|
|
wrapperX.between(CustomEntity::getCreateTime, qo.getStartTime(), qo.getEndTime());
|
|
|
|
wrapperX.between(CustomEntity::getCreateTime, qo.getStartTime(), qo.getEndTime());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.selectByPage(page, wrapperX);
|
|
|
|
this.selectByPage(page, wrapperX, qo.getStoreId());
|
|
|
|
return new PageResult<>(page.getRecords(), page.getTotal());
|
|
|
|
return new PageResult<>(page.getRecords(), page.getTotal());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
IPage<CustomVO> selectByPage(IPage<CustomVO> page, @Param(Constants.WRAPPER) Wrapper<CustomEntity> wrapper);
|
|
|
|
IPage<CustomVO> selectByPage(IPage<CustomVO> page, @Param(Constants.WRAPPER) Wrapper<CustomEntity> wrapper, @Param("storeId") Long storeId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|