+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.epmet.publicity.dto.result;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+
+/**
+ * 文章引用标签阅读数量【机关】统计表
+ *
+ * @author generator generator@elink-cn.com
+ * @since v1.0.0 2020-06-19
+ */
+@Data
+public class FactTagUsedAgencyDTO implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 标签名称 标签名称
+ */
+ private String name;
+
+ /**
+ * 使用改标签的数量
+ */
+ private Integer value;
+
+ /**
+ * 固定值:文章数量
+ */
+ private String type="文章数量";
+
+ /**
+ * 机关Id
+ */
+ private String agencyId;
+
+ /**
+ * 标签Id
+ */
+ private String tagId;
+
+
+}
\ No newline at end of file
diff --git a/epmet-module/data-report/data-report-client/src/main/java/com/epmet/publicity/dto/result/FactTagAgencyDTO.java b/epmet-module/data-report/data-report-client/src/main/java/com/epmet/publicity/dto/result/FactTagViewedAgencyDTO.java
similarity index 95%
rename from epmet-module/data-report/data-report-client/src/main/java/com/epmet/publicity/dto/result/FactTagAgencyDTO.java
rename to epmet-module/data-report/data-report-client/src/main/java/com/epmet/publicity/dto/result/FactTagViewedAgencyDTO.java
index 35cbbc0390..31b5334303 100644
--- a/epmet-module/data-report/data-report-client/src/main/java/com/epmet/publicity/dto/result/FactTagAgencyDTO.java
+++ b/epmet-module/data-report/data-report-client/src/main/java/com/epmet/publicity/dto/result/FactTagViewedAgencyDTO.java
@@ -30,7 +30,7 @@ import java.util.Date;
* @since v1.0.0 2020-06-19
*/
@Data
-public class FactTagAgencyDTO implements Serializable {
+public class FactTagViewedAgencyDTO implements Serializable {
private static final long serialVersionUID = 1L;
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/controller/publicity/PublicityController.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/controller/publicity/PublicityController.java
index 56d31b9d17..8612d82002 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/controller/publicity/PublicityController.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/controller/publicity/PublicityController.java
@@ -65,7 +65,7 @@ public class PublicityController {
* @author jyy
*/
@PostMapping("tagviewed")
- public Result> tagviewed(@LoginUser TokenDto tokenDto, @RequestBody TagFormDTO formDTO) {
+ public Result> tagviewed(@LoginUser TokenDto tokenDto, @RequestBody TagFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, TagFormDTO.GroupJava.class);
Integer pageSize = formDTO.getPageSize();
@@ -73,7 +73,7 @@ public class PublicityController {
pageSize = NumConstant.TEN;
}
String type = formDTO.getType();
- return new Result>().ok(publicityService.tagviewed(tokenDto, pageSize, type));
+ return new Result>().ok(publicityService.tagviewed(tokenDto, pageSize, type));
}
/**
@@ -82,7 +82,7 @@ public class PublicityController {
* @author jyy
*/
@PostMapping("tagused")
- public Result> tagused(@LoginUser TokenDto tokenDto, @RequestBody TagFormDTO formDTO) {
+ public Result> tagused(@LoginUser TokenDto tokenDto, @RequestBody TagFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, TagFormDTO.GroupJava.class);
Integer pageSize = formDTO.getPageSize();
@@ -90,7 +90,7 @@ public class PublicityController {
pageSize = NumConstant.TEN;
}
String type = formDTO.getType();
- return new Result>().ok(publicityService.tagused(tokenDto, pageSize, type));
+ return new Result>().ok(publicityService.tagused(tokenDto, pageSize, type));
}
/**
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/dao/publicity/PublicityDao.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/dao/publicity/PublicityDao.java
index 33801156b9..cf62356848 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/dao/publicity/PublicityDao.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/dao/publicity/PublicityDao.java
@@ -44,42 +44,42 @@ public interface PublicityDao {
* @param agencyId,monthId,pageSize 机关id,月,展示数量
* @author zxc
*/
- List getViewedMonthlyCountByTag(@Param("agencyId") String agencyId, @Param("monthId") String monthId, @Param("pageSize") Integer pageSize);
+ List getViewedMonthlyCountByTag(@Param("agencyId") String agencyId, @Param("monthId") String monthId, @Param("pageSize") Integer pageSize);
/**
* @Description 当季———获取机关下,获取每个标签阅读数量,按照数量降序,取前pagesize个
* @param agencyId,quarterId,pageSize 机关id,季,展示数量
* @author zxc
*/
- List getViewedQuarterlyCountByTag(@Param("agencyId") String agencyId, @Param("quarterId") String quarterId, @Param("pageSize") Integer pageSize);
+ List getViewedQuarterlyCountByTag(@Param("agencyId") String agencyId, @Param("quarterId") String quarterId, @Param("pageSize") Integer pageSize);
/**
* @Description 当年———获取机关下,获取每个标签阅读数量,按照数量降序,取前pagesize个
* @param agencyId,yearId,pageSize 机关id,年,展示数量
* @author zxc
*/
- List getViewedYearlyCountByTag(@Param("agencyId") String agencyId, @Param("yearId") String yearId, @Param("pageSize") Integer pageSize);
+ List getViewedYearlyCountByTag(@Param("agencyId") String agencyId, @Param("yearId") String yearId, @Param("pageSize") Integer pageSize);
/**
* @Description 当月———获取机关下,获取每个标签发文数量,按照数量降序,取前pagesize个
* @param agencyId,monthId,pageSize 机关id,月,展示数量
* @author zxc
*/
- List getUsedMonthlyCountByTag(@Param("agencyId") String agencyId, @Param("monthId") String monthId, @Param("pageSize") Integer pageSize);
+ List getUsedMonthlyCountByTag(@Param("agencyId") String agencyId, @Param("monthId") String monthId, @Param("pageSize") Integer pageSize);
/**
* @Description 当季———获取机关下,获取每个标签发文数量,按照数量降序,取前pagesize个
* @param agencyId,quarterId,pageSize 机关id,季,展示数量
* @author zxc
*/
- List getUsedQuarterlyCountByTag(@Param("agencyId") String agencyId, @Param("quarterId") String quarterId, @Param("pageSize") Integer pageSize);
+ List getUsedQuarterlyCountByTag(@Param("agencyId") String agencyId, @Param("quarterId") String quarterId, @Param("pageSize") Integer pageSize);
/**
* @Description 当年———获取机关下,每个标签发文数量,按照数量降序,取前pagesize个
* @param agencyId,yearId,pageSize 机关id,年,展示数量
* @author zxc
*/
- List getUsedYearlyCountByTag(@Param("agencyId") String agencyId, @Param("yearId") String yearId, @Param("pageSize") Integer pageSize);
+ List getUsedYearlyCountByTag(@Param("agencyId") String agencyId, @Param("yearId") String yearId, @Param("pageSize") Integer pageSize);
/**
* @Description 当月———下级机发文数
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/PublicityService.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/PublicityService.java
index 9eccb5b29f..bec823066c 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/PublicityService.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/PublicityService.java
@@ -18,12 +18,8 @@
package com.epmet.service.publicity;
import com.epmet.commons.tools.security.dto.TokenDto;
-import com.epmet.commons.tools.utils.DateUtils;
-import com.epmet.commons.tools.utils.Result;
import com.epmet.publicity.dto.result.*;
-import org.apache.commons.lang3.StringUtils;
-import java.util.Date;
import java.util.List;
/**
@@ -46,14 +42,14 @@ public interface PublicityService {
* @param tokenDto,formDTO
* @author jyy
*/
- public List tagviewed(TokenDto tokenDto, Integer pageSize, String type) ;
+ public List tagviewed(TokenDto tokenDto, Integer pageSize, String type) ;
/**
* @Description 宣传能力—工作端—宣传能力-获取发表最多的分类数据
* @param tokenDto,pageSize,type
* @author jyy
*/
- public List tagused(TokenDto tokenDto, Integer pageSize, String type) ;
+ public List tagused(TokenDto tokenDto, Integer pageSize, String type) ;
/**
* @param tokenDto type
diff --git a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/impl/PublicityServiceImpl.java b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/impl/PublicityServiceImpl.java
index c5e94f7633..990cc97916 100644
--- a/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/impl/PublicityServiceImpl.java
+++ b/epmet-module/data-report/data-report-server/src/main/java/com/epmet/service/publicity/impl/PublicityServiceImpl.java
@@ -64,7 +64,7 @@ public class PublicityServiceImpl implements PublicityService {
* @author jyy
*/
@Override
- public List tagviewed(TokenDto tokenDto, Integer pageSize, String type) {
+ public List tagviewed(TokenDto tokenDto, Integer pageSize, String type) {
String agencyId = this.getLoginUserDetails(tokenDto);
Date date = new Date();
String strDate = DateUtils.format(date, DateUtils.DATE_PATTERN);
@@ -92,7 +92,7 @@ public class PublicityServiceImpl implements PublicityService {
* @author jyy
*/
@Override
- public List tagused(TokenDto tokenDto, Integer pageSize, String type) {
+ public List tagused(TokenDto tokenDto, Integer pageSize, String type) {
String agencyId = this.getLoginUserDetails(tokenDto);
Date date = new Date();
String strDate = DateUtils.format(date, DateUtils.DATE_PATTERN);
diff --git a/epmet-module/data-report/data-report-server/src/main/resources/mapper/publicity/PublicityDao.xml b/epmet-module/data-report/data-report-server/src/main/resources/mapper/publicity/PublicityDao.xml
index c7d032eb43..bb4b53fd65 100644
--- a/epmet-module/data-report/data-report-server/src/main/resources/mapper/publicity/PublicityDao.xml
+++ b/epmet-module/data-report/data-report-server/src/main/resources/mapper/publicity/PublicityDao.xml
@@ -14,7 +14,7 @@
-