Преглед на файлове

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

XMTT преди 6 години
родител
ревизия
63edefe747

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

@ -181,7 +181,7 @@ public abstract class DayDao {
181 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 183
    @PageQuery
184
    @OrderBy("ORDER BY cds.SUM DESC")
184
    @OrderBy("ORDER BY SUM DESC")
185 185
    @Exclude("descp")
186 186
    public abstract PageQueryResult<WareSum> queryWareViews(Connection con, String platform, @Nullable @Like String name, @Nullable @GroupSqlColumn(handlerClass = StringHandler.class, value = {
187 187
            "CATEGORY='1' AND OWNER IN(SELECT ID FROM PROFESSOR WHERE NAME LIKE ?)",
@ -195,7 +195,7 @@ public abstract class DayDao {
195 195
196 196
    @Exclude("summary")
197 197
    @PageQuery
198
    @OrderBy("ORDER BY cds.SUM DESC NULLS LAST")
198
    @OrderBy("ORDER BY SUM DESC NULLS LAST")
199 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,7 +208,7 @@ public abstract class DayDao {
208 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 210
    @PageQuery
211
    @OrderBy(" ORDER BY cds.sum DESC")
211
    @OrderBy(" ORDER BY sum DESC")
212 212
    @Exclude("descp")
213 213
    public abstract PageQueryResult<ResourceSum> queryResourceViews(Connection con, String platform, @Nullable @Like String resourceName,@Nullable @GroupSqlColumn(handlerClass = StringHandler.class, value = {
214 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,7 +24,7 @@ public class PpatentSum extends Ppatent {
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 28
    public int getSum() {
29 29
        return sum;
30 30
    }

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

@ -24,7 +24,7 @@ public class ResourceSum extends Resource {
24 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 28
    public int getSum() {
29 29
        return sum;
30 30
    }

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

@ -23,7 +23,7 @@ public class WareSum extends Ware {
23 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 27
    public int getSum() {
28 28
        return sum;
29 29
    }