|
@@ -24,10 +24,16 @@ public interface PtProfitLogMapper extends BaseMapperX<PtProfitLogDO> {
|
|
|
.eqIfPresent(PtProfitLogDO::getPercentTemplate, reqVO.getPercentTemplate())
|
|
|
.eqIfPresent(PtProfitLogDO::getUserId, reqVO.getUserId())
|
|
|
.orderByDesc(PtProfitLogDO::getCreateTime);
|
|
|
- if(reqVO.getIsFreeze()){
|
|
|
- queryWrapper.isNotNull(PtProfitLogDO::getAmount);
|
|
|
+ if(!reqVO.getIsFreeze()){
|
|
|
+ queryWrapper
|
|
|
+ .isNotNull(PtProfitLogDO::getAmount)
|
|
|
+ .ne(PtProfitLogDO::getAmount,0)
|
|
|
+ ;
|
|
|
}else{
|
|
|
- queryWrapper.isNotNull(PtProfitLogDO::getFreezeAmount);
|
|
|
+ queryWrapper
|
|
|
+ .isNotNull(PtProfitLogDO::getFreezeAmount)
|
|
|
+ .ne(PtProfitLogDO::getFreezeAmount,0)
|
|
|
+ ;
|
|
|
}
|
|
|
return selectPage(reqVO, queryWrapper);
|
|
|
}
|