7 changed files with 271 additions and 5 deletions
@ -0,0 +1,131 @@ |
|||
package com.epmet.feign; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.feign.impl.DataStatisticalOpenFeignClientFallBack; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
|
|||
/** |
|||
* desc: 数据统计 对外feign client |
|||
* |
|||
* @return: |
|||
* @date: 2020/6/22 17:39 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@FeignClient(name = ServiceConstant.DATA_STATISTICAL, fallback = DataStatisticalOpenFeignClientFallBack.class) |
|||
public interface DataStatisticalOpenFeignClient { |
|||
|
|||
/** |
|||
* desc: 【日】统计文章总数及在线文章总数 包含 机关 部门 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@PostMapping(value = "data/stats/statspublicity/articleSummaryDailyStatsjob") |
|||
Result articleSummaryDailyStatsjob(); |
|||
|
|||
/** |
|||
* desc: 定时任务 【日】统计文章总数及在线文章总数 包含 机关 部门 网格 |
|||
* |
|||
* @return: |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@PostMapping(value = "data/stats/statspublicity/tagUsedDailyStatsjob") |
|||
Result tagUsedDailyStatsjob(); |
|||
|
|||
/** |
|||
* desc: 【月】 统计发表文章最多的分类 包含 机关 部门 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@PostMapping(value = "data/stats/statspublicity/tagUsedMonthlyStatsjob") |
|||
Result tagUsedMonthlyStatsjob(); |
|||
|
|||
/** |
|||
* desc: 【季,年】 统计发表文章最多的分类 包含 机关 部门 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@PostMapping(value = "data/stats/statspublicity/tagUsedQuarterlyStatsjob") |
|||
Result tagUsedQuarterlyStatsjob(); |
|||
|
|||
/** |
|||
* desc: 【日】 统计阅读最多的标签 包含 机关 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@PostMapping(value = "data/stats/statspublicity/tagViewedDailyStatsjob") |
|||
Result tagViewedDailyStatsjob(); |
|||
|
|||
/** |
|||
* desc: 【月】 统计阅读最多的标签 包含 机关 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@PostMapping(value = "data/stats/statspublicity/tagViewedMonthlyStatsjob") |
|||
Result tagViewedMonthlyStatsjob(); |
|||
|
|||
/** |
|||
* desc: 【季,年】 统计阅读最多的标签 包含 机关 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@PostMapping(value = "data/stats/statspublicity/tagViewedQuarterlyStatsjob") |
|||
Result tagViewedQuarterlyStatsjob(); |
|||
|
|||
/** |
|||
* @Description 统计 “网格小组”, dim:【网格-日】 |
|||
* @param |
|||
* @author zxc |
|||
*/ |
|||
@PostMapping("/data/stats/statsgroup/groupgriddaily") |
|||
Result groupGridDaily(); |
|||
|
|||
/** |
|||
* @Description 统计 “网格小组”, dim:【机关-日】 |
|||
* @param |
|||
* @author zxc |
|||
*/ |
|||
@PostMapping("/data/stats/statsgroup/groupagencydaily") |
|||
Result groupAgencyDaily(); |
|||
|
|||
/** |
|||
* @Description 统计 “网格小组”, dim:【机关-月】 |
|||
* @param |
|||
* @author zxc |
|||
*/ |
|||
@PostMapping("/data/stats/statsgroup/groupagencymonthly") |
|||
Result groupAgencyMonthly(); |
|||
|
|||
/** |
|||
* 议题统计 |
|||
* @author zhaoqifeng |
|||
* @date 2020/6/23 14:34 |
|||
* @param |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
*/ |
|||
@PostMapping("/data/stats/statsissue/issuestats") |
|||
Result agencyGridIssueStats(); |
|||
|
|||
/** |
|||
* @Description 数据统计-项目-机关日月统计 |
|||
* @Author sun |
|||
*/ |
|||
@PostMapping("/data/stats/statsproject/agencyprojectstats") |
|||
Result agencyProjectStats(); |
|||
|
|||
/** |
|||
* @Description 数据统计-项目-网格日月统计 |
|||
* @Author sun |
|||
*/ |
|||
@PostMapping("/data/stats/statsproject/gridprojectstats") |
|||
Result gridProjectStats(); |
|||
|
|||
} |
@ -0,0 +1,135 @@ |
|||
package com.epmet.feign.impl; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.ModuleUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.feign.DataStatisticalOpenFeignClient; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* desc: |
|||
* |
|||
* @return: |
|||
* @date: 2020/6/22 9:38 |
|||
* @author: jianjun liu |
|||
* email:liujianjun@git.elinkit.com.cn |
|||
*/ |
|||
@Component |
|||
public class DataStatisticalOpenFeignClientFallBack implements DataStatisticalOpenFeignClient { |
|||
|
|||
/** |
|||
* desc: 【日】统计文章总数及在线文章总数 包含 机关 部门 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@Override |
|||
public Result articleSummaryDailyStatsjob() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "articleSummaryDailyStatsjob"); |
|||
} |
|||
|
|||
/** |
|||
* desc: 定时任务 【日】统计文章总数及在线文章总数 包含 机关 部门 网格 |
|||
* |
|||
* @return: |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@Override |
|||
public Result tagUsedDailyStatsjob() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "tagUsedDailyStatsjob"); |
|||
} |
|||
|
|||
/** |
|||
* desc: 【月】 统计发表文章最多的分类 包含 机关 部门 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@Override |
|||
public Result tagUsedMonthlyStatsjob() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "tagUsedMonthlyStatsjob"); |
|||
} |
|||
|
|||
/** |
|||
* desc: 【季,年】 统计发表文章最多的分类 包含 机关 部门 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@Override |
|||
public Result tagUsedQuarterlyStatsjob() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "tagUsedQuarterlyStatsjob"); |
|||
} |
|||
|
|||
/** |
|||
* desc: 【日】 统计阅读最多的标签 包含 机关 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@Override |
|||
public Result tagViewedDailyStatsjob() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "tagViewedDailyStatsjob"); |
|||
} |
|||
|
|||
/** |
|||
* desc: 【月】 统计阅读最多的标签 包含 机关 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@Override |
|||
public Result tagViewedMonthlyStatsjob() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "tagViewedMonthlyStatsjob"); |
|||
} |
|||
|
|||
/** |
|||
* desc: 【季,年】 统计阅读最多的标签 包含 机关 网格 |
|||
* |
|||
* @date: 2020/6/22 9:09 |
|||
* @author: jianjun liu |
|||
*/ |
|||
@Override |
|||
public Result tagViewedQuarterlyStatsjob() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "tagViewedQuarterlyStatsjob"); |
|||
} |
|||
|
|||
@Override |
|||
public Result groupGridDaily() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "groupGridDaily"); |
|||
} |
|||
|
|||
@Override |
|||
public Result groupAgencyDaily() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "groupAgencyDaily"); |
|||
} |
|||
|
|||
@Override |
|||
public Result groupAgencyMonthly() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "groupAgencyMonthly"); |
|||
} |
|||
|
|||
@Override |
|||
public Result agencyGridIssueStats() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "agencyGridIssueStats"); |
|||
} |
|||
|
|||
/** |
|||
* @Description 数据统计-项目-机关日月统计 |
|||
* @Author sun |
|||
*/ |
|||
@Override |
|||
public Result agencyProjectStats() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "agencyProjectStats"); |
|||
} |
|||
|
|||
/** |
|||
* @Description 数据统计-项目-网格日月统计 |
|||
* @Author sun |
|||
*/ |
|||
@Override |
|||
public Result gridProjectStats() { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_STATISTICAL, "gridProjectStats"); |
|||
} |
|||
} |
Loading…
Reference in new issue