Ver código fonte

发补贴-列表改成下拉滚动条的展示,取消翻页

bing 1 ano atrás
pai
commit
2620676353

+ 1 - 1
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/payment/domain/vo/PtUserAccount4SelectVo.java

@@ -101,7 +101,7 @@ public class PtUserAccount4SelectVo implements Serializable {
     /**
      * 手机号码
      */
-    @Sensitive(strategy= SensitiveStrategy.PHONE)
+//    @Sensitive(strategy= SensitiveStrategy.PHONE)
     @ExcelProperty(value = "手机号码")
     private String phone;
 

+ 3 - 1
ruoyi-modules/ruoyi-backstage/src/main/java/org/dromara/backstage/payment/service/impl/PtUserAccountServiceImpl.java

@@ -94,10 +94,12 @@ public class PtUserAccountServiceImpl implements IPtUserAccountService {
     public TableDataInfo<PtUserAccount4SelectVo> queryPageList4Select(PtUserAccountBo bo, PageQuery pageQuery) {
         // 方法1. 使用子查询,使得where 后 只有一个表(效率会低点) 方法2. 使用queryWrapper 自己指定字段,字段名带表别名
         QueryWrapper<PtUserAccount> wrapper = buildQueryWrapper4Select(bo, "u");
+        wrapper.eq("u.del_flag","0");
+        wrapper.eq("a.del_flag","0");
         if(bo.getDeptId() != null){
             wrapper.and(wrapper1 -> wrapper1.eq("u.dept_id", bo.getDeptId()).or().like("a.ancestors", bo.getDeptId()));
         }
-        wrapper.orderByAsc("u.dept_id").orderByAsc("u.user_id");
+        wrapper.orderByAsc("u.dept_id").orderByAsc("u.create_time");
         Page<PtUserAccount4SelectVo> result = baseMapper.customPageList(pageQuery.build(), wrapper);
         return TableDataInfo.build(result);
     }

+ 3 - 2
ruoyi-modules/ruoyi-backstage/src/main/resources/mapper/payment/PtUserAccountMapper.xml

@@ -47,7 +47,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <select id="customPageList" resultType="org.dromara.backstage.payment.domain.vo.PtUserAccount4SelectVo">
-        select u.*,a.dept_name deptName from t_pt_userAccount u left join t_sys_dept a
-        on u.dept_id = a.dept_id and u.del_flag = '0' and a.del_flag = '0' ${ew.customSqlSegment}
+        select u.user_name,u.user_id,u.dept_id,u.real_name,u.user_numb,u.phone,u.account_status,u.freeze_status,u.status,a.dept_name deptName
+        from t_pt_userAccount u left join t_sys_dept a
+        on u.dept_id = a.dept_id ${ew.customSqlSegment}
     </select>
 </mapper>