Explorar el Código

服务专利资源的平台浏览量统计

XMTT %!s(int64=6) %!d(string=hace) años
padre
commit
63edefe747

+ 3 - 3
src/main/java/com/ekexiu/portal/views/dao/DayDao.java

181
            additional = 1, isAnd = false, force = true) String author, @Nullable @GtEq @Alias("modifyTime") String bt, @Nullable @Alias("modifyTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
181
            additional = 1, isAnd = false, force = true) String author, @Nullable @GtEq @Alias("modifyTime") String bt, @Nullable @Alias("modifyTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
182
182
183
    @PageQuery
183
    @PageQuery
184
    @OrderBy("ORDER BY cds.SUM DESC")
184
    @OrderBy("ORDER BY SUM DESC")
185
    @Exclude("descp")
185
    @Exclude("descp")
186
    public abstract PageQueryResult<WareSum> queryWareViews(Connection con, String platform, @Nullable @Like String name, @Nullable @GroupSqlColumn(handlerClass = StringHandler.class, value = {
186
    public abstract PageQueryResult<WareSum> queryWareViews(Connection con, String platform, @Nullable @Like String name, @Nullable @GroupSqlColumn(handlerClass = StringHandler.class, value = {
187
            "CATEGORY='1' AND OWNER IN(SELECT ID FROM PROFESSOR WHERE NAME LIKE ?)",
187
            "CATEGORY='1' AND OWNER IN(SELECT ID FROM PROFESSOR WHERE NAME LIKE ?)",
195
195
196
    @Exclude("summary")
196
    @Exclude("summary")
197
    @PageQuery
197
    @PageQuery
198
    @OrderBy("ORDER BY cds.SUM DESC NULLS LAST")
198
    @OrderBy("ORDER BY SUM DESC NULLS LAST")
199
    public abstract PageQueryResult<PpatentSum> queryPpatentViews(Connection con, String platform, @Nullable @Like String name,@Nullable @Like String authors,@Nullable @GtEq @Alias("createTime") String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
199
    public abstract PageQueryResult<PpatentSum> queryPpatentViews(Connection con, String platform, @Nullable @Like String name,@Nullable @Like String authors,@Nullable @GtEq @Alias("createTime") String bt, @Nullable @Alias("createTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
200
200
201
201
208
            additional = 1, isAnd = false, force = true) String author, @Nullable @GtEq @Alias("publishTime") String bt, @Nullable @Alias("publishTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
208
            additional = 1, isAnd = false, force = true) String author, @Nullable @GtEq @Alias("publishTime") String bt, @Nullable @Alias("publishTime") @LtEq String et, int pageSize, int pageNo) throws SQLException;
209
209
210
    @PageQuery
210
    @PageQuery
211
    @OrderBy(" ORDER BY cds.sum DESC")
211
    @OrderBy(" ORDER BY sum DESC")
212
    @Exclude("descp")
212
    @Exclude("descp")
213
    public abstract PageQueryResult<ResourceSum> queryResourceViews(Connection con, String platform, @Nullable @Like String resourceName,@Nullable @GroupSqlColumn(handlerClass = StringHandler.class, value = {
213
    public abstract PageQueryResult<ResourceSum> queryResourceViews(Connection con, String platform, @Nullable @Like String resourceName,@Nullable @GroupSqlColumn(handlerClass = StringHandler.class, value = {
214
            "RESOURCE_TYPE='1' AND PROFESSOR_ID IN(SELECT ID FROM PROFESSOR WHERE NAME LIKE ?)",
214
            "RESOURCE_TYPE='1' AND PROFESSOR_ID IN(SELECT ID FROM PROFESSOR WHERE NAME LIKE ?)",

+ 1 - 1
src/main/java/com/ekexiu/portal/views/pojo/PpatentSum.java

24
    }
24
    }
25
25
26
26
27
    @CalcColumn(handlerClass = IntHandler.class, column = "cds.sum")
27
    @CalcColumn(handlerClass = IntHandler.class, column = "COALESCE(cds.sum,0) as sum")
28
    public int getSum() {
28
    public int getSum() {
29
        return sum;
29
        return sum;
30
    }
30
    }

+ 1 - 1
src/main/java/com/ekexiu/portal/views/pojo/ResourceSum.java

24
        this.platform = platform;
24
        this.platform = platform;
25
    }
25
    }
26
26
27
    @CalcColumn(handlerClass = IntHandler.class, column = "cds.sum")
27
    @CalcColumn(handlerClass = IntHandler.class, column = "COALESCE(cds.sum,0) as sum")
28
    public int getSum() {
28
    public int getSum() {
29
        return sum;
29
        return sum;
30
    }
30
    }

+ 1 - 1
src/main/java/com/ekexiu/portal/views/pojo/WareSum.java

23
        this.platform = platform;
23
        this.platform = platform;
24
    }
24
    }
25
25
26
    @CalcColumn(handlerClass = IntHandler.class, column = "cds.sum")
26
    @CalcColumn(handlerClass = IntHandler.class, column = "COALESCE(cds.sum,0) as sum")
27
    public int getSum() {
27
    public int getSum() {
28
        return sum;
28
        return sum;
29
    }
29
    }