Sfoglia il codice sorgente

用户信息管理 按浏览量排序

XMTT 7 anni fa
parent
commit
469d7669df

+ 4 - 0
src/main/java/com/ekexiu/console/system/dao/ProfessorDao.java

@ -84,6 +84,10 @@ public interface ProfessorDao {
84 84
    @OrderBy("ORDER BY create_time DESC NULLS LAST")
85 85
    PageQueryResult<UserDetail> pageQueryUserDetail(Connection con, @Nullable @Like String name,@Nullable String activeStatus,@Nullable Integer sendMailStatus,@Nullable @Alias("createTime") @GtEq String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
86 86
87
    @PageQuery
88
    @OrderBy("ORDER BY page_views DESC NULLS Last")
89
    PageQueryResult<UserDetail> pageQueryUserDetailBV(Connection con, @Nullable @Like String name,@Nullable String activeStatus,@Nullable Integer sendMailStatus,@Nullable @Alias("createTime") @GtEq String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
90
87 91
    @UpdateWith
88 92
    @From(Professor.class)
89 93
    int updateBusinessData(Connection con,String id,@Set int authentication,@Set int authStatus,@Set int authStatusExpert ,@Set int sortFirst)throws SQLException;

+ 6 - 2
src/main/java/com/ekexiu/console/system/service/ProfessorService.java

@ -263,8 +263,12 @@ public class ProfessorService {
263 263
264 264
    @Get
265 265
    @Path("/pqUserDetail")
266
    public PageQueryResult<UserDetail> userDetailPageQueryResult(@JdbcConn Connection con, @Nullable String name, @Nullable String activeStatus, @Nullable Integer sendMailStatus, @Nullable String bt, @Nullable String et, @DefaultValue("10") int pageSize, @DefaultValue("1") int pageNo) throws SQLException {
267
        return this.professorDao.pageQueryUserDetail(con, name == null ? null : "%" + name + "%", activeStatus, sendMailStatus, bt, et, pageSize, pageNo);
266
    public PageQueryResult<UserDetail> userDetailPageQueryResult(@JdbcConn Connection con, @Nullable String name, @Nullable String activeStatus, @Nullable Integer sendMailStatus,int orderBy, @Nullable String bt, @Nullable String et, @DefaultValue("10") int pageSize, @DefaultValue("1") int pageNo) throws SQLException {
267
        if(orderBy==1) {
268
            return this.professorDao.pageQueryUserDetail(con, name == null ? null : "%" + name + "%", activeStatus, sendMailStatus, bt, et, pageSize, pageNo);
269
        }else{
270
            return this.professorDao.pageQueryUserDetailBV(con, name == null ? null : "%" + name + "%", activeStatus, sendMailStatus, bt, et, pageSize, pageNo);
271
        }
268 272
    }
269 273
270 274
    @Post