浏览代码

修改查询积分记录

Yangzw 2 周之前
父节点
当前提交
c9b89eaf90

+ 4 - 0
feifan-module-distri/feifan-module-distri-biz/src/main/java/cn/newfeifan/mall/module/distri/dal/mysql/consumptionchangelog/ConsumptionChangeLogMapper.java

@@ -5,6 +5,7 @@ import cn.newfeifan.mall.framework.mybatis.core.query.LambdaQueryWrapperX;
 import cn.newfeifan.mall.framework.mybatis.core.mapper.BaseMapperX;
 import cn.newfeifan.mall.module.distri.controller.app.integralchangelog.vo.IntegralChangeLogPageReqVO;
 import cn.newfeifan.mall.module.distri.dal.dataobject.integralchangelog.IntegralChangeLogDO;
+import cn.newfeifan.mall.module.distri.enums.IntegralTypeEnum;
 import org.apache.ibatis.annotations.Mapper;
 
 /**
@@ -24,6 +25,9 @@ public interface ConsumptionChangeLogMapper extends BaseMapperX<IntegralChangeLo
         if (reqVO.getIntegralType() == null ){
             wrapper.ne(IntegralChangeLogDO::getMaxAvailablePointsAmount, 0);
         }
+        if (reqVO.getIntegralType().equals(IntegralTypeEnum.GREEN_INTEGRAL.getType())){
+            wrapper.ne(IntegralChangeLogDO::getIntegralPoints, 0);
+        }
         return selectPage(reqVO, wrapper);
     }