321 changed files with 17681 additions and 86 deletions
@ -0,0 +1,81 @@ |
|||
package com.epmet.commons.tools.utils; |
|||
|
|||
|
|||
import org.apache.commons.lang3.StringUtils; |
|||
|
|||
import java.util.Date; |
|||
import java.util.Random; |
|||
import java.util.concurrent.atomic.AtomicLong; |
|||
|
|||
/** |
|||
* 唯一ID生成器 |
|||
*/ |
|||
public class UniqueIdGenerator { |
|||
|
|||
private static UniqueValue uniqueValue = new UniqueValue(); |
|||
private static String middle; |
|||
static { |
|||
String threadCode = StringUtils.right(String.valueOf(Math.abs(System.nanoTime()+"".hashCode())), 2); |
|||
middle = StringUtils.leftPad(threadCode, 2, "0"); |
|||
} |
|||
|
|||
/** |
|||
* 唯一时间值 |
|||
*/ |
|||
private static class UniqueValue { |
|||
|
|||
private AtomicLong uniqueValue = new AtomicLong(0L); |
|||
private volatile String currentTime = DateUtils.format(new Date(), DateUtils.DATE_TIME_NO_SPLIT); |
|||
private volatile String lastTime = currentTime; |
|||
|
|||
/** |
|||
* 获取当前时间:yyyyMMddHHmmSS |
|||
* 如果到了下一秒,则唯一值从0开始 |
|||
* |
|||
* @return |
|||
*/ |
|||
public String getCurrentTime() { |
|||
currentTime = DateUtils.format(new Date(), DateUtils.DATE_TIME_NO_SPLIT); |
|||
if (!currentTime.equals(lastTime)) { |
|||
lastTime = currentTime; |
|||
Random random = new Random(); |
|||
uniqueValue.set(Long.valueOf(random.nextInt(10))); |
|||
} |
|||
return currentTime; |
|||
} |
|||
|
|||
public String getCurrentValue() { |
|||
return StringUtils.leftPad(String.valueOf(uniqueValue.incrementAndGet()), 5, "0"); |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 生成一个24位唯一ID |
|||
* 15位时间+2位中间值(防止多服务冲突)+2个线程code+5位秒级递增值 |
|||
* |
|||
* @return |
|||
*/ |
|||
public static String generate() { |
|||
StringBuilder builder = new StringBuilder(32); |
|||
builder.append(uniqueValue.getCurrentTime()) |
|||
.append(middle) |
|||
.append(getUniqueThreadCode()) |
|||
.append(uniqueValue.getCurrentValue()); |
|||
|
|||
return builder.toString(); |
|||
} |
|||
|
|||
public static String getUniqueThreadCode() { |
|||
String threadCode = StringUtils.left(String.valueOf(Thread.currentThread().hashCode()), 2); |
|||
return StringUtils.leftPad(threadCode, 2, "0"); |
|||
} |
|||
|
|||
public static void main(String[] args) throws InterruptedException { |
|||
|
|||
System.out.println(UniqueIdGenerator.uniqueValue.currentTime); |
|||
System.out.println(UniqueIdGenerator.middle); |
|||
System.out.println(UniqueIdGenerator.getUniqueThreadCode()); |
|||
System.out.println(uniqueValue.getCurrentValue()); |
|||
|
|||
} |
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.epmet.constant; |
|||
|
|||
public interface DataSourceConstant { |
|||
|
|||
/** |
|||
* 统计数据库 |
|||
*/ |
|||
String STATS = "stats"; |
|||
String STATS_DISPLAY = "statsDisplay"; |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.epmet.screen.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 5:02 下午 |
|||
*/ |
|||
public interface ScreenConstant { |
|||
|
|||
String COMMUNITY = "community"; |
|||
|
|||
String MONTH = "月"; |
|||
|
|||
String RATIO = "%"; |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 通用的agencyId topNum入参 |
|||
* @ClassName AgencyAndNumFormDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 10:29 |
|||
*/ |
|||
@Data |
|||
public class AgencyAndNumFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -8674763412362557239L; |
|||
|
|||
/** |
|||
* 显示多少条 不在这里设置默认值 不同的接口使用的默认值不同 在逻辑中判断 |
|||
* */ |
|||
private Integer topNum; |
|||
|
|||
/** |
|||
* 机关Id |
|||
* */ |
|||
@NotBlank(message = "机关Id不能为空" , groups = AgencyFormDTO.CommonAgencyIdGroup.class) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 通用 agencyId 入参 |
|||
ClassName AgencyFormDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 10:29 |
|||
*/ |
|||
@Data |
|||
public class AgencyFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2880432640584616651L; |
|||
|
|||
public interface CommonAgencyIdGroup extends CustomerClientShowGroup{} |
|||
|
|||
@NotBlank(message = "机关Id不能为空" , groups = CommonAgencyIdGroup.class) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 通用 agencyId topNum type(各种类型)传参dto |
|||
* @ClassName AgencyNumTypeParamFormDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 13:36 |
|||
*/ |
|||
@Data |
|||
public class AgencyNumTypeParamFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -8049013016922130410L; |
|||
|
|||
public interface AgencyNumTypeParamGroup extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* agencyId |
|||
* */ |
|||
@NotBlank(message = "机关Id不能为空", groups = AgencyNumTypeParamGroup.class) |
|||
private String agencyId; |
|||
|
|||
private Integer topNum; |
|||
|
|||
/** |
|||
* 各种类型 |
|||
* */ |
|||
@NotBlank(message = "类型不能为空", groups = AgencyNumTypeParamGroup.class) |
|||
private String type; |
|||
|
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 4、支部建设情况|联建共建情况-排行 入参dto |
|||
* @NEI https://nei.netease.com/interface/detail/?pid=57068&id=321982
|
|||
* @ClassName BranchBuildRankFormDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-19 15:06 |
|||
*/ |
|||
@Data |
|||
public class BranchBuildRankFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -6580433475773171870L; |
|||
|
|||
public interface BranchBuildRankGroup extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 机关Id |
|||
* */ |
|||
@NotBlank(message = "机关Id不能为空",groups = BranchBuildRankGroup.class) |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 支部建设情况:zbjs; 联建共建情况:ljgj;联建党员志愿服务情况:ljdyzy |
|||
* */ |
|||
@NotBlank(message = "类型key不能为空" , groups = BranchBuildRankGroup.class) |
|||
private String category; |
|||
|
|||
/** |
|||
* 默认显示前4,显示全部传入0 |
|||
* */ |
|||
private Integer topNum = NumConstant.FOUR; |
|||
|
|||
private String monthId; |
|||
|
|||
private String bottomMonthId; |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 3、支部建设情况|联建共建情况-折线图 入参DTO |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321981
|
|||
* @ClassName BranchBuildTrendFormDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-19 10:01 |
|||
*/ |
|||
@Data |
|||
public class BranchBuildTrendFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 2998463730542699247L; |
|||
|
|||
public interface branchBuildTrendGroup extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 机关Id |
|||
* */ |
|||
@NotBlank(message = "agencyId不可为空" , groups = branchBuildTrendGroup.class) |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织次数:organize; 参加人数:joinuser; 平均参加人数:averagejoinuser |
|||
* */ |
|||
@NotBlank(message = "基层党建折线图类型不可为空" , groups = branchBuildTrendGroup.class) |
|||
private String type; |
|||
|
|||
/** |
|||
* 支部建设情况:zbjs; 联建共建情况:ljgj |
|||
* */ |
|||
@NotBlank(message = "基层党建情况不可为空" , groups = branchBuildTrendGroup.class) |
|||
private String category; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 10:49 上午 |
|||
*/ |
|||
@Data |
|||
public class BranchFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -8256381995441422191L; |
|||
|
|||
public interface Branch{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {Branch.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 2:14 下午 |
|||
*/ |
|||
@Data |
|||
public class CompartmentFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3354777434424878413L; |
|||
|
|||
public interface Compartment{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {Compartment.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 2:28 下午 |
|||
*/ |
|||
@Data |
|||
public class ContactMassLineChartFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5627978767044772204L; |
|||
|
|||
public interface ContactMassLineChart{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {ContactMassLineChart.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 1:46 下午 |
|||
*/ |
|||
@Data |
|||
public class FineExampleFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5402747414542735700L; |
|||
|
|||
public interface FineExample{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {FineExample.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 5:20 下午 |
|||
*/ |
|||
@Data |
|||
public class MonthBarchartFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 4852721296827851714L; |
|||
|
|||
public interface MonthBarchart{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {MonthBarchart.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 3:10 下午 |
|||
*/ |
|||
@Data |
|||
public class MonthPieChartFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3163410637094615814L; |
|||
|
|||
public interface MonthPieChart{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {MonthPieChart.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 10:49 上午 |
|||
*/ |
|||
@Data |
|||
public class ParymemberFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5589396567320406525L; |
|||
|
|||
public interface Parymember{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {Parymember.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 4:34 下午 |
|||
*/ |
|||
@Data |
|||
public class ProjectDetailFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 6588246858516674808L; |
|||
|
|||
public interface ProjectDetail{} |
|||
|
|||
/** |
|||
* 项目ID |
|||
*/ |
|||
@NotBlank(message = "项目ID不能为空",groups = {ProjectDetail.class}) |
|||
private String projectId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 1:25 下午 |
|||
*/ |
|||
@Data |
|||
public class ProjectFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 7114390205886348751L; |
|||
|
|||
public interface Project{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {Project.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,33 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 9:54 上午 |
|||
*/ |
|||
@Data |
|||
public class SubAgencyIndexRankFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2920561669035794486L; |
|||
|
|||
public interface SubAgencyIndexRank{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {SubAgencyIndexRank.class}) |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 默认查询前几名 |
|||
*/ |
|||
@NotNull(message = "默认查询名次不能为空",groups = {SubAgencyIndexRank.class}) |
|||
private Integer topNum; |
|||
|
|||
private String yearId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 1:43 下午 |
|||
*/ |
|||
@Data |
|||
public class TopProfileFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -287352242311433250L; |
|||
|
|||
public interface TopProfile{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {TopProfile.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 10:49 上午 |
|||
*/ |
|||
@Data |
|||
public class UserFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 4863908542899315106L; |
|||
|
|||
public interface User{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {User.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 3:12 下午 |
|||
*/ |
|||
@Data |
|||
public class VolunteerServiceFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 7916606646764729831L; |
|||
|
|||
public interface VolunteerService{} |
|||
|
|||
/** |
|||
* 机关ID |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {VolunteerService.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.screen.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 2:40 下午 |
|||
*/ |
|||
@Data |
|||
public class YearAverageIndexFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2389432085360116229L; |
|||
|
|||
public interface YearAverageIndex{} |
|||
|
|||
/** |
|||
* 机关Id |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {YearAverageIndex.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,53 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 4、先进排行榜单-先进支部排行 返参dto |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321539
|
|||
* @ClassName AdvanceBranchRankResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-21 10:47 |
|||
*/ |
|||
@Data |
|||
public class AdvanceBranchRankResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 330099297596334388L; |
|||
|
|||
/** |
|||
* 名称 XXXX社区党委 |
|||
* */ |
|||
private String name; |
|||
|
|||
/** |
|||
* 满意度 90.64% 返回字符串,前端直接显示 |
|||
* */ |
|||
private String satisfactionRatio; |
|||
|
|||
/** |
|||
* 结案率 94.3% 返回字符串,前端直接显示 |
|||
* */ |
|||
private String closedProjectRatio; |
|||
|
|||
/** |
|||
* 党员数 |
|||
* */ |
|||
private Integer partyMemberNum; |
|||
|
|||
/** |
|||
* 支部建设 GROUP_TOTAL |
|||
* */ |
|||
private Integer branchNum; |
|||
|
|||
/** |
|||
* 议题数 |
|||
* */ |
|||
private Integer issueNum; |
|||
|
|||
/** |
|||
* 项目数 |
|||
* */ |
|||
private Integer projectNum; |
|||
|
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 2:20 下午 |
|||
*/ |
|||
@Data |
|||
public class AgencyDistributionResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -8404806508669824731L; |
|||
|
|||
/** |
|||
* 可能是gridId,可能是agencyId |
|||
*/ |
|||
private String subId; |
|||
|
|||
/** |
|||
* 名称 |
|||
*/ |
|||
private String subName; |
|||
|
|||
/** |
|||
* 坐标区域 |
|||
*/ |
|||
private String subAreaMarks; |
|||
|
|||
/** |
|||
* 中心点位 |
|||
*/ |
|||
private String subCenterMark; |
|||
|
|||
/** |
|||
* 组织:agency; 网格:grid ; 部门:dept |
|||
*/ |
|||
private String type; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 查询机关组织次数、参加人数的排序返参 |
|||
* @ClassName BranchBuildOrderByCountResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 09:20 |
|||
*/ |
|||
@Data |
|||
public class BranchBuildOrderByCountResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -8268706123005848128L; |
|||
|
|||
private String orgName; |
|||
|
|||
private Integer organizeData; |
|||
|
|||
private Integer joinData; |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 4、支部建设情况|联建共建情况-排行 返参dto |
|||
* @NEI https://nei.netease.com/interface/detail/?pid=57068&id=321982
|
|||
* @Auth wangc |
|||
* @Date 2020-08-19 15:09 |
|||
*/ |
|||
@Data |
|||
public class BranchBuildRankResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 6213072175254509349L; |
|||
|
|||
/** |
|||
* 组织次数 |
|||
* */ |
|||
private List<Integer> organizeData; |
|||
|
|||
/** |
|||
* 组织名称数组 |
|||
* */ |
|||
private List<String> xAxis; |
|||
|
|||
/** |
|||
* 参与人数 |
|||
* */ |
|||
private List<Integer> joinData; |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 3、支部建设情况|联建共建情况-折线图 返参DTO |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321981
|
|||
* @ClassName BranchBuildTrendResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-19 10:06 |
|||
*/ |
|||
@Data |
|||
public class BranchBuildTrendResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2453727230656371207L; |
|||
|
|||
/** |
|||
* 分类数组 ["三会党课","主体党日","三述专题","志愿服务","党内关怀"] |
|||
* */ |
|||
private List<String> legend; |
|||
|
|||
/** |
|||
* 横坐标,近12个月的结合 ["8月","9月"] |
|||
* */ |
|||
private List<String> xAxis; |
|||
|
|||
private List<BranchTrendSeriesDataResultDTO> seriesData; |
|||
|
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName BranchIssueDataResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-19 10:50 |
|||
*/ |
|||
@Data |
|||
public class BranchIssueDataResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2417543749267496482L; |
|||
|
|||
private String issue; |
|||
|
|||
private String monthId; |
|||
|
|||
private Integer data; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 10:52 上午 |
|||
*/ |
|||
@Data |
|||
public class BranchResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -8001714892170166320L; |
|||
|
|||
/** |
|||
* 网格ID |
|||
*/ |
|||
private String gridId = ""; |
|||
|
|||
/** |
|||
* 网格名称 |
|||
*/ |
|||
private String gridName = ""; |
|||
|
|||
/** |
|||
* 党支部(网格)位置 |
|||
*/ |
|||
private String partyMark = ""; |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 3、支部建设情况|联建共建情况-折线图 返参中的系列数组 |
|||
* @ClassName BranchTrendSeriesDataResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-19 10:22 |
|||
*/ |
|||
@Data |
|||
public class BranchTrendSeriesDataResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -2288264050517402039L; |
|||
|
|||
/** |
|||
* 和legend集合值一致 |
|||
* */ |
|||
private String name; |
|||
|
|||
/** |
|||
* 对应每个月的数值 |
|||
* */ |
|||
private List<Integer> data; |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 14:18 |
|||
*/ |
|||
@Data |
|||
public class CompartmentResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 7963177476365327829L; |
|||
|
|||
/** |
|||
* 当前所选组织 |
|||
*/ |
|||
private String agencyId = ""; |
|||
|
|||
/** |
|||
* 当前所选组织名称 |
|||
*/ |
|||
private String name = ""; |
|||
|
|||
/** |
|||
* 当前所选组织的坐标区域 |
|||
*/ |
|||
private String areaMarks = ""; |
|||
|
|||
/** |
|||
* 机关级别 |
|||
* 社区级:community, |
|||
* 乡(镇、街道)级:street, |
|||
* 区县级: district, |
|||
* 市级: city |
|||
* 省级:province |
|||
*/ |
|||
@JsonIgnore |
|||
private String level; |
|||
|
|||
/** |
|||
* 子级用户分布 |
|||
*/ |
|||
private List<AgencyDistributionResultDTO> agencyDistribution = new ArrayList<>(); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 2:45 下午 |
|||
*/ |
|||
@Data |
|||
public class ContactMassLineChartResult implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5668549816473850787L; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String orgName; |
|||
|
|||
/** |
|||
* 党员建群数 |
|||
*/ |
|||
private Integer groupTotal; |
|||
|
|||
/** |
|||
* 群成员数 |
|||
*/ |
|||
private Integer userTotal; |
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 2:31 下午 |
|||
*/ |
|||
@Data |
|||
public class ContactMassLineChartResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 192666933158635787L; |
|||
|
|||
/** |
|||
* 横坐标集合 |
|||
*/ |
|||
private List<String> xAxis; |
|||
|
|||
/** |
|||
* 党员建群数 |
|||
*/ |
|||
private List<Integer> groupData; |
|||
|
|||
/** |
|||
* 群成员数 |
|||
*/ |
|||
private List<Integer> groupMemberData; |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 2、难点赌点-耗时最长|涉及部门最多|处理次数 返参DTO |
|||
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321614
|
|||
* @ClassName DifficultProjectResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 13:43 |
|||
*/ |
|||
@Data |
|||
public class DifficultProjectResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -7338625142484943434L; |
|||
|
|||
private String projectId; |
|||
|
|||
private String title; |
|||
|
|||
/** |
|||
* 状态: 待处理: pending; 结案closed |
|||
* */ |
|||
private String status; |
|||
|
|||
private Integer totalHours; |
|||
|
|||
/** |
|||
* yyyy-MM-dd HH:mm |
|||
* */ |
|||
private String createDateTime; |
|||
|
|||
private String gridName; |
|||
|
|||
private String imgUrl; |
|||
|
|||
private String categoryName; |
|||
|
|||
private Integer handleDepts; |
|||
|
|||
private Integer handleCount; |
|||
|
|||
} |
@ -0,0 +1,81 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 1:48 下午 |
|||
*/ |
|||
@Data |
|||
public class FineExampleResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2754696449087950719L; |
|||
|
|||
/** |
|||
* 党员参与议事 |
|||
*/ |
|||
private Integer issueTotal = 0; |
|||
|
|||
@JsonIgnore |
|||
private Double issueRatioA; |
|||
|
|||
/** |
|||
* 党员参与议事占比 |
|||
*/ |
|||
private String issueRatio = "0.00%"; |
|||
|
|||
/** |
|||
* 党员发布话题总数 |
|||
*/ |
|||
private Integer topicTotal = 0; |
|||
|
|||
@JsonIgnore |
|||
private Double topicRatioA; |
|||
|
|||
/** |
|||
* 党员发布话题占比 |
|||
*/ |
|||
private String topicRatio = "0.00%"; |
|||
|
|||
/** |
|||
* 议题转项目 |
|||
*/ |
|||
private Integer shiftProjectTotal = 0; |
|||
|
|||
@JsonIgnore |
|||
private Double shiftProjectRatioA; |
|||
|
|||
/** |
|||
* 议题转项目占比 |
|||
*/ |
|||
private String shiftProjectRatio = "0.00%"; |
|||
|
|||
/** |
|||
* 解决项目 |
|||
*/ |
|||
private Integer resolvedProjectTotal = 0; |
|||
|
|||
@JsonIgnore |
|||
private Double resolvedProjectRatioA; |
|||
|
|||
/** |
|||
* 解决项目占比 |
|||
*/ |
|||
private String resolvedProjectRatio = "0.00%"; |
|||
|
|||
/** |
|||
* 党员发布议题数 |
|||
*/ |
|||
private Integer publishIssueTotal = 0; |
|||
|
|||
@JsonIgnore |
|||
private Double publishIssueRatioA; |
|||
|
|||
/** |
|||
* 党员发布议题数占比 |
|||
*/ |
|||
private String publishIssueRatio = "0.00%"; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 治理能力榜单返参dto |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321627
|
|||
* @ClassName GovernCapacityRankResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 17:30 |
|||
*/ |
|||
@Data |
|||
public class GovernCapacityRankResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -3891870459284304022L; |
|||
|
|||
/** |
|||
* 名称 |
|||
* */ |
|||
private String agencyName; |
|||
|
|||
/** |
|||
* 响应率 |
|||
* */ |
|||
private String responseRatio; |
|||
|
|||
/** |
|||
* 解决率 |
|||
* */ |
|||
private String resolvedRatio; |
|||
|
|||
/** |
|||
* 自治率 |
|||
* */ |
|||
private String governRatio; |
|||
|
|||
/** |
|||
* 满意率 |
|||
* */ |
|||
private String satisfactionRatio; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* @Description 治理能力查询结果dto |
|||
* @ClassName GovernCapacityResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 17:24 |
|||
*/ |
|||
@Data |
|||
public class GovernCapacityResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -2834039644611050304L; |
|||
|
|||
/** |
|||
* 名称 |
|||
* */ |
|||
private String agencyName; |
|||
|
|||
/** |
|||
* 响应率 |
|||
* */ |
|||
private BigDecimal responseRatio; |
|||
|
|||
/** |
|||
* 解决率 |
|||
* */ |
|||
private BigDecimal resolvedRatio; |
|||
|
|||
/** |
|||
* 自治率 |
|||
* */ |
|||
private BigDecimal governRatio; |
|||
|
|||
/** |
|||
* 满意率 |
|||
* */ |
|||
private BigDecimal satisfactionRatio; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 9:12 上午 |
|||
*/ |
|||
@Data |
|||
public class MonthBarchartResult implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3777652772902180088L; |
|||
|
|||
private String monthId; |
|||
|
|||
private Double serviceAbility; |
|||
|
|||
private Double partyDevAbility; |
|||
|
|||
private Double governAbility; |
|||
|
|||
private Double indexTotal; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 5:23 下午 |
|||
*/ |
|||
@Data |
|||
public class MonthBarchartResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 561457498288576566L; |
|||
|
|||
/** |
|||
* 服务能力 |
|||
*/ |
|||
private List<Double> serviceAbilityData; |
|||
|
|||
/** |
|||
* 党建能力 |
|||
*/ |
|||
private List<Double> partyDevAbilityData; |
|||
|
|||
/** |
|||
* 治理能力 |
|||
*/ |
|||
private List<Double> governAbilityData; |
|||
|
|||
/** |
|||
* 横坐标月份集合 |
|||
*/ |
|||
private List<String> xAxis; |
|||
|
|||
/** |
|||
* 总指数集合 |
|||
*/ |
|||
private List<Double> totalIndexData; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 3:12 下午 |
|||
*/ |
|||
@Data |
|||
public class MonthPieChartResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 8399158251970739021L; |
|||
|
|||
/** |
|||
* 服务能力 |
|||
*/ |
|||
private Double serviceAbility = 0.0; |
|||
|
|||
/** |
|||
* 党建能力 |
|||
*/ |
|||
private Double partyDevAbility = 0.0; |
|||
|
|||
/** |
|||
* 治理能力 |
|||
*/ |
|||
private Double governAbility = 0.0; |
|||
} |
@ -0,0 +1,54 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* @Description 党建引领-组织先进排行榜 查询结果dto |
|||
* @ClassName OrgRankDataResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-21 11:16 |
|||
*/ |
|||
@Data |
|||
public class OrgRankDataResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2980098512184391207L; |
|||
|
|||
/** |
|||
* 名称 XXXX社区党委 |
|||
* */ |
|||
private String name; |
|||
|
|||
/** |
|||
* 满意度 90.64% 返回字符串,前端直接显示 |
|||
* */ |
|||
private BigDecimal satisfactionRatio; |
|||
|
|||
/** |
|||
* 结案率 94.3% 返回字符串,前端直接显示 |
|||
* */ |
|||
private BigDecimal closedProjectRatio; |
|||
|
|||
/** |
|||
* 党员数 |
|||
* */ |
|||
private Integer partyMemberNum; |
|||
|
|||
/** |
|||
* 支部建设 GROUP_TOTAL |
|||
* */ |
|||
private Integer branchNum; |
|||
|
|||
/** |
|||
* 议题数 |
|||
* */ |
|||
private Integer issueNum; |
|||
|
|||
/** |
|||
* 项目数 |
|||
* */ |
|||
private Integer projectNum; |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 党员积分查询结果 dto 作为接口【5、先进排行榜单-先进党员排行】的返参对象 NEI地址: https://nei.netease.com/interface/detail/res/?pid=57068&id=321624
|
|||
* @ClassName PartyUserPointResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-21 14:18 |
|||
*/ |
|||
@Data |
|||
public class PartyUserPointResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -288523161283142460L; |
|||
|
|||
/** |
|||
* 用户Id |
|||
* */ |
|||
private String userId; |
|||
|
|||
/** |
|||
* 用户姓名 |
|||
* */ |
|||
private String name; |
|||
|
|||
/** |
|||
* 用户积分 |
|||
* */ |
|||
private Integer point; |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName PartymemberAgeDistributionResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-18 17:04 |
|||
*/ |
|||
@Data |
|||
public class PartymemberAgeDistributionResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -3477512511475784330L; |
|||
|
|||
/** |
|||
* 30岁以下 的党员 |
|||
* */ |
|||
private Integer under30Count = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 31-50岁 的党员 |
|||
* */ |
|||
private Integer between31And50Count = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 51-60岁 的党员 |
|||
* */ |
|||
private Integer between51And60Count = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 61岁以上 的党员 |
|||
* */ |
|||
private Integer above61Count = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 党员总数 |
|||
* */ |
|||
private Integer partyTotal = NumConstant.ZERO; |
|||
|
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName PartymemberAgePercentResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-19 09:13 |
|||
*/ |
|||
@Data |
|||
public class PartymemberAgePercentResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2228109850328978771L; |
|||
|
|||
/** |
|||
* 30岁以下 的党员占 注册党员总数的百分比 (返回数字,小数点后保留两位) |
|||
* */ |
|||
private BigDecimal under30Ratio; |
|||
|
|||
/** |
|||
* 31-50岁 的党员占 注册党员总数的百分比(返回数字,小数点后保留两位) |
|||
* */ |
|||
private BigDecimal between31And50Ratio; |
|||
|
|||
/** |
|||
* 51-60岁 的党员占 注册党员总数的百分比(返回数字,小数点后保留两位) |
|||
* */ |
|||
private BigDecimal between51And60Ratio; |
|||
|
|||
/** |
|||
* 61岁以上 的党员占 注册党员总数的百分比(返回数字,小数点后保留两位) |
|||
* */ |
|||
private BigDecimal above61; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 1、党员基本情况-饼状图概况 |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321324
|
|||
* @ClassName PartymemberPercentResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-18 14:54 |
|||
*/ |
|||
@Data |
|||
public class PartymemberPercentResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -2864099044581782674L; |
|||
|
|||
/** |
|||
* 注册党员总数 |
|||
* */ |
|||
private Integer partyMemberTotal = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 注册党员占比 |
|||
* */ |
|||
private String percentInPlatForm; |
|||
|
|||
/** |
|||
* 注册用户总数 |
|||
* */ |
|||
private Integer platFormTotal = NumConstant.ZERO; |
|||
|
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 11:06 上午 |
|||
*/ |
|||
@Data |
|||
public class ParymemberDistributionResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 9180892033529262049L; |
|||
|
|||
/** |
|||
* 可能是gridId,可能是agencyId |
|||
*/ |
|||
private String subId = ""; |
|||
|
|||
/** |
|||
* 中心点位 |
|||
*/ |
|||
private String centerMark = ""; |
|||
|
|||
/** |
|||
* 党员总人数 |
|||
*/ |
|||
private Integer totalNum = 0; |
|||
|
|||
/** |
|||
* 坐标区域 |
|||
*/ |
|||
private String areaMarks = ""; |
|||
|
|||
/** |
|||
* 可以是网格的名称,可以是组织的名称 |
|||
*/ |
|||
private String subName= ""; |
|||
|
|||
/** |
|||
* 组织:agency, 网格 : grid; |
|||
*/ |
|||
private String type = ""; |
|||
|
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 11:03 上午 |
|||
*/ |
|||
@Data |
|||
public class ParymemberResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7230556020628357047L; |
|||
|
|||
/** |
|||
* 当前所选组织 |
|||
*/ |
|||
private String agencyId = ""; |
|||
|
|||
/** |
|||
* 当前所选组织名称 |
|||
*/ |
|||
private String name = ""; |
|||
|
|||
/** |
|||
* 当前所选组织的坐标区域 |
|||
*/ |
|||
private String areaMarks = ""; |
|||
|
|||
/** |
|||
* 机关级别 |
|||
* 社区级:community, |
|||
* 乡(镇、街道)级:street, |
|||
* 区县级: district, |
|||
* 市级: city |
|||
* 省级:province |
|||
*/ |
|||
@JsonIgnore |
|||
private String level; |
|||
|
|||
/** |
|||
* 子级用户分布 |
|||
*/ |
|||
private List<ParymemberDistributionResultDTO> userDistribution = new ArrayList<>(); |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 4:37 下午 |
|||
*/ |
|||
@Data |
|||
public class ProjectDetailResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 2884179183725459493L; |
|||
|
|||
/** |
|||
* 项目内容 |
|||
*/ |
|||
private String projectContent = ""; |
|||
|
|||
/** |
|||
* 当前状态 |
|||
*/ |
|||
private String status = ""; |
|||
|
|||
/** |
|||
* 最后一次处理的部门 |
|||
*/ |
|||
private String latestHandleDept = ""; |
|||
|
|||
/** |
|||
* 最后一次处理的时间yyyy-MM-dd HH:mm |
|||
*/ |
|||
private String latestHandleTime = ""; |
|||
|
|||
/** |
|||
* 操作描述 |
|||
*/ |
|||
private String operDesc = ""; |
|||
|
|||
/** |
|||
* 图片列表 |
|||
*/ |
|||
private List<String> imgList = new ArrayList<>(); |
|||
} |
@ -0,0 +1,45 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 1:27 下午 |
|||
*/ |
|||
@Data |
|||
public class ProjectResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 7130615407473171093L; |
|||
|
|||
/** |
|||
* 项目标题 |
|||
*/ |
|||
private String projectTitle = ""; |
|||
|
|||
/** |
|||
* red, green,yellow |
|||
*/ |
|||
private String color = ""; |
|||
|
|||
/** |
|||
* 项目id |
|||
*/ |
|||
private String projectId = ""; |
|||
|
|||
/** |
|||
* 网格名称 |
|||
*/ |
|||
private String orgName = ""; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private Double longitude = 0.0; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private Double latitude = 0.0; |
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName PublicPartiChartResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-21 09:16 |
|||
*/ |
|||
@Data |
|||
public class PublicPartiChartResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 8366701017042226713L; |
|||
|
|||
/** |
|||
* 横坐标:近一年(不包含当前月) |
|||
* */ |
|||
private List<String> xAxis; |
|||
|
|||
/** |
|||
* 组织次数 |
|||
* */ |
|||
private List<Integer> organizeNumList; |
|||
|
|||
/** |
|||
* 参与人数 |
|||
* */ |
|||
private List<Integer> joinUserNumList; |
|||
|
|||
/** |
|||
* 平均参与人次 |
|||
* */ |
|||
private List<Integer> averageJoinNumList; |
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 3、公众参与概况返参DTO |
|||
* @ClassName PublicPartiProfileResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 14:33 |
|||
*/ |
|||
@Data |
|||
public class PublicPartiProfileResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2520835419152912027L; |
|||
|
|||
private Integer total = NumConstant.ZERO; |
|||
|
|||
private String monthIncr = ""; |
|||
|
|||
/** |
|||
* incr上升, decr下降 |
|||
* */ |
|||
private String monthTrend = ""; |
|||
|
|||
private Integer averageIssue = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 较上月百分比 |
|||
* */ |
|||
private String issueCompareLatestMonth = ""; |
|||
|
|||
/** |
|||
* 较上月趋势:incr上升,decr下降 |
|||
* */ |
|||
private String issueCompareLatestTrend = ""; |
|||
|
|||
/** |
|||
* 平均参与度 |
|||
* */ |
|||
private Integer averageJoin = NumConstant.ZERO; |
|||
|
|||
private String joinCompareLatestMonth = ""; |
|||
|
|||
private String joinCompareLatestTrend = ""; |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 公众参与-排行榜 传参dto |
|||
* @ClassName PublicPartiRankResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 15:29 |
|||
*/ |
|||
@Data |
|||
public class PublicPartiRankResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -2958188980327497507L; |
|||
|
|||
private String name; |
|||
|
|||
private Integer regNum; |
|||
|
|||
private Integer joinNum; |
|||
|
|||
private Integer topicNum; |
|||
|
|||
private Integer issueNum; |
|||
|
|||
private Integer projectNum; |
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 9:58 上午 |
|||
*/ |
|||
@Data |
|||
public class SubAgencyIndexRankResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2767000156092731932L; |
|||
|
|||
/** |
|||
* 名称(组织或者网格名称,部门名称) |
|||
*/ |
|||
private String name = ""; |
|||
|
|||
/** |
|||
* 总指数 |
|||
*/ |
|||
private Double totalIndex = 0.0; |
|||
|
|||
/** |
|||
* 党建能力 |
|||
*/ |
|||
private Double governAbility = 0.0; |
|||
|
|||
/** |
|||
* 治理能力 |
|||
*/ |
|||
private Double partyDevAbility = 0.0; |
|||
|
|||
/** |
|||
* 服务能力 |
|||
*/ |
|||
private Double serviceAbility = 0.0; |
|||
} |
@ -0,0 +1,45 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 1:46 下午 |
|||
*/ |
|||
@Data |
|||
public class TopProfileResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5081563117620857359L; |
|||
|
|||
/** |
|||
* 用户总数 |
|||
*/ |
|||
private Integer userNum = 0; |
|||
|
|||
/** |
|||
* 党员总数 |
|||
*/ |
|||
private Integer partyMemberNum = 0; |
|||
|
|||
/** |
|||
* 党群总数 |
|||
*/ |
|||
private Integer groupNum = 0; |
|||
|
|||
/** |
|||
* 话题总数 |
|||
*/ |
|||
private Integer topicNum = 0; |
|||
|
|||
/** |
|||
* 议题总数 |
|||
*/ |
|||
private Integer issueNum = 0; |
|||
|
|||
/** |
|||
* 项目总数 |
|||
*/ |
|||
private Integer projectNum = 0; |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 2:00 下午 |
|||
*/ |
|||
@Data |
|||
public class TreeResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3860268744336541373L; |
|||
|
|||
/** |
|||
* 显示名称 |
|||
*/ |
|||
private String label = ""; |
|||
|
|||
/** |
|||
* agencyId下拉框value |
|||
*/ |
|||
private String value = ""; |
|||
|
|||
@JsonIgnore |
|||
private String pids; |
|||
|
|||
/** |
|||
* 子目录 |
|||
*/ |
|||
private List<TreeResultDTO> children = new ArrayList<>(); |
|||
|
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 11:06 上午 |
|||
*/ |
|||
@Data |
|||
public class UserDistributionResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7679590088019724244L; |
|||
|
|||
/** |
|||
* 可能是gridId,可能是agencyId |
|||
*/ |
|||
private String subId; |
|||
|
|||
/** |
|||
* 中心点位 |
|||
*/ |
|||
private String centerMark; |
|||
|
|||
/** |
|||
* 用户总人数 |
|||
*/ |
|||
private Integer totalNum; |
|||
|
|||
/** |
|||
* 坐标区域 |
|||
*/ |
|||
private String areaMarks; |
|||
|
|||
/** |
|||
* 可以是网格的名称,可以是组织的名称 |
|||
*/ |
|||
private String subName; |
|||
|
|||
/** |
|||
* 组织:agency, 网格 : grid; |
|||
*/ |
|||
private String type; |
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* @Description 用户参与各项指标以及增长查询结果dto |
|||
* @ClassName UserJoinIndicatorGrowthRateResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-21 16:07 |
|||
*/ |
|||
@Data |
|||
public class UserJoinIndicatorGrowthRateResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -8830240350298414599L; |
|||
|
|||
private Integer total; |
|||
|
|||
private BigDecimal monthIncr; |
|||
|
|||
/** |
|||
* incr上升, decr下降 |
|||
* */ |
|||
private String monthTrend; |
|||
|
|||
private Integer averageIssue; |
|||
|
|||
/** |
|||
* 较上月百分比 |
|||
* */ |
|||
private BigDecimal issueCompareLatestMonth; |
|||
|
|||
/** |
|||
* 较上月趋势:incr上升,decr下降 |
|||
* */ |
|||
private String issueCompareLatestTrend; |
|||
|
|||
/** |
|||
* 平均参与度 |
|||
* */ |
|||
private Integer averageJoin; |
|||
|
|||
private BigDecimal joinCompareLatestMonth; |
|||
|
|||
private String joinCompareLatestTrend; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
|
|||
import lombok.Data; |
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* @Description 阅读用户参与查询返参dto screen_user_join |
|||
* @ClassName UserJoinMonthlyResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-21 09:20 |
|||
*/ |
|||
@Data |
|||
public class UserJoinMonthlyResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 4078219053108425375L; |
|||
|
|||
private String monthId; |
|||
|
|||
private Integer organizeNum; |
|||
|
|||
private Integer joinUserNum; |
|||
|
|||
private Integer averageJoinNum; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.LinkedList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName UserPointRankResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 10:46 |
|||
*/ |
|||
@Data |
|||
public class UserPointRankResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2829557017489626022L; |
|||
|
|||
/** |
|||
* 横坐标:姓名 |
|||
* */ |
|||
private List<String> nameData = new LinkedList<>(); |
|||
|
|||
/** |
|||
* 纵坐标:积分 |
|||
* */ |
|||
private List<Integer> pointsData = new LinkedList<>(); |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 用户积分DTO - 查询结果 |
|||
* @ClassName UserPointResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-20 10:50 |
|||
*/ |
|||
@Data |
|||
public class UserPointResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -5174248184514429116L; |
|||
|
|||
private String name; |
|||
|
|||
private Integer point; |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 11:03 上午 |
|||
*/ |
|||
@Data |
|||
public class UserResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -6633682494274511121L; |
|||
|
|||
/** |
|||
* 当前所选组织 |
|||
*/ |
|||
private String agencyId = ""; |
|||
|
|||
/** |
|||
* 当前所选组织名称 |
|||
*/ |
|||
private String name = ""; |
|||
|
|||
/** |
|||
* 当前所选组织的坐标区域 |
|||
*/ |
|||
private String areaMarks = ""; |
|||
|
|||
/** |
|||
* 机关级别 |
|||
* 社区级:community, |
|||
* 乡(镇、街道)级:street, |
|||
* 区县级: district, |
|||
* 市级: city |
|||
* 省级:province |
|||
*/ |
|||
@JsonIgnore |
|||
private String level; |
|||
|
|||
/** |
|||
* 子级用户分布 |
|||
*/ |
|||
private List<UserDistributionResultDTO> userDistribution = new ArrayList<>(); |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 3:16 下午 |
|||
*/ |
|||
@Data |
|||
public class VolunteerServiceResult implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 959536759114517195L; |
|||
|
|||
/** |
|||
* 月份ID |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 组织次数 |
|||
*/ |
|||
private Integer organizeData; |
|||
|
|||
/** |
|||
* 参与次数 |
|||
*/ |
|||
private Integer joinData; |
|||
|
|||
/** |
|||
* 平均参与人次 |
|||
*/ |
|||
private Integer averageJoinUserData; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/20 3:14 下午 |
|||
*/ |
|||
@Data |
|||
public class VolunteerServiceResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -6227889392267793005L; |
|||
|
|||
/** |
|||
* x轴,返回近12个月,不包含当前月 |
|||
*/ |
|||
private List<String> xAxis; |
|||
|
|||
/** |
|||
* 组织次数 |
|||
*/ |
|||
private List<Integer> organizeData; |
|||
|
|||
/** |
|||
* 参与次数 |
|||
*/ |
|||
private List<Integer> joinData; |
|||
|
|||
/** |
|||
* 平均参与人次 |
|||
*/ |
|||
private List<Integer> averageJoinUserData; |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.epmet.screen.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/19 2:45 下午 |
|||
*/ |
|||
@Data |
|||
public class YearAverageIndexResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 6453379153616899440L; |
|||
|
|||
/** |
|||
* 年度平均指数 |
|||
*/ |
|||
private Double yearAverageIndex = 0.0; |
|||
|
|||
/** |
|||
* 服务能力 |
|||
*/ |
|||
private Double serviceAbility = 0.0; |
|||
|
|||
/** |
|||
* 党建能力 |
|||
*/ |
|||
private Double partyDevAbility = 0.0; |
|||
|
|||
/** |
|||
* 治理能力 |
|||
*/ |
|||
private Double governAbility = 0.0; |
|||
} |
@ -1,11 +1,11 @@ |
|||
package com.epmet.controller.issue; |
|||
package com.epmet.datareport.controller.issue; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.issue.dto.form.IssueIncrtrendFormDTO; |
|||
import com.epmet.issue.dto.result.*; |
|||
import com.epmet.service.issue.IssueService; |
|||
import com.epmet.datareport.service.issue.IssueService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
@ -0,0 +1,59 @@ |
|||
package com.epmet.datareport.controller.screen; |
|||
|
|||
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|||
import com.epmet.commons.extappauth.bean.ExternalAppRequestParam; |
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.screen.dto.form.CompartmentFormDTO; |
|||
import com.epmet.screen.dto.result.CompartmentResultDTO; |
|||
import com.epmet.screen.dto.result.TreeResultDTO; |
|||
import com.epmet.datareport.service.screen.AgencyService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 组织相关api |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/18 10:15 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/screen/agency") |
|||
public class AgencyController { |
|||
|
|||
@Autowired |
|||
private AgencyService agencyService; |
|||
|
|||
/** |
|||
* @Description 1、组织机构树 |
|||
* @param |
|||
* @author zxc |
|||
* @date 2020/8/18 2:04 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("tree") |
|||
public Result<TreeResultDTO> tree(ExternalAppRequestParam externalAppRequestParam){ |
|||
return new Result<TreeResultDTO>().ok(agencyService.tree(externalAppRequestParam)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 2、组织区域查询 |
|||
* @param compartmentFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/18 2:33 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("compartment") |
|||
public Result<CompartmentResultDTO> compartment(@RequestBody CompartmentFormDTO compartmentFormDTO){ |
|||
ValidatorUtils.validateEntity(compartmentFormDTO, CompartmentFormDTO.Compartment.class); |
|||
return new Result<CompartmentResultDTO>().ok(agencyService.compartment(compartmentFormDTO)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,95 @@ |
|||
package com.epmet.datareport.controller.screen; |
|||
|
|||
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.screen.dto.form.*; |
|||
import com.epmet.screen.dto.result.*; |
|||
import com.epmet.datareport.service.screen.DistributionService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 中央区相关各指标查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/18 10:14 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/screen/distribution") |
|||
public class DistributionController { |
|||
|
|||
@Autowired |
|||
private DistributionService distributionService; |
|||
|
|||
/** |
|||
* @Description 1、党支部 |
|||
* @param formDTO |
|||
* @author zxc |
|||
* @date 2020/8/18 10:59 上午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("branch") |
|||
public Result<List<BranchResultDTO>> branch(@RequestBody BranchFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO, BranchFormDTO.Branch.class); |
|||
return new Result<List<BranchResultDTO>>().ok(distributionService.branch(formDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 2、用户分布 |
|||
* @param userFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/18 11:10 上午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("user") |
|||
public Result<UserResultDTO> user(@RequestBody UserFormDTO userFormDTO){ |
|||
ValidatorUtils.validateEntity(userFormDTO, UserFormDTO.User.class); |
|||
return new Result<UserResultDTO>().ok(distributionService.user(userFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 3、党员分布 |
|||
* @param parymemberFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/18 11:20 上午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("parymember") |
|||
public Result<ParymemberResultDTO> parymember(@RequestBody ParymemberFormDTO parymemberFormDTO){ |
|||
ValidatorUtils.validateEntity(parymemberFormDTO, ParymemberFormDTO.Parymember.class); |
|||
return new Result<ParymemberResultDTO>().ok(distributionService.parymember(parymemberFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 4、事件 |
|||
* @param projectFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/19 1:29 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("project") |
|||
public Result<List<ProjectResultDTO>> project(@RequestBody ProjectFormDTO projectFormDTO){ |
|||
ValidatorUtils.validateEntity(projectFormDTO, ProjectFormDTO.Project.class); |
|||
return new Result<List<ProjectResultDTO>>().ok(distributionService.project(projectFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 5、top区概况 |
|||
* @param topProfileFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/19 1:52 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("topprofile") |
|||
public Result<TopProfileResultDTO> topProfile(@RequestBody TopProfileFormDTO topProfileFormDTO){ |
|||
ValidatorUtils.validateEntity(topProfileFormDTO, TopProfileFormDTO.TopProfile.class); |
|||
return new Result<TopProfileResultDTO>().ok(distributionService.topProfile(topProfileFormDTO)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,109 @@ |
|||
package com.epmet.datareport.controller.screen; |
|||
|
|||
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.datareport.service.screen.GrassRootsGovernService; |
|||
import com.epmet.screen.dto.form.AgencyAndNumFormDTO; |
|||
import com.epmet.screen.dto.form.AgencyFormDTO; |
|||
import com.epmet.screen.dto.form.AgencyNumTypeParamFormDTO; |
|||
import com.epmet.screen.dto.result.*; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 基层治理相关各指标查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/18 10:12 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/screen/grassrootsgovern") |
|||
public class GrassRootsGovernController { |
|||
|
|||
@Autowired |
|||
private GrassRootsGovernService grassRootsGovernService; |
|||
|
|||
|
|||
|
|||
/** |
|||
* @Description 1、热心市民积分排行 |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321544
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.20 11:16 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("userpointrank") |
|||
public Result<UserPointRankResultDTO> userPointRank(@RequestBody AgencyAndNumFormDTO param){ |
|||
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class); |
|||
return new Result<UserPointRankResultDTO>().ok(grassRootsGovernService.userPointRank(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 2、难点赌点-耗时最长|涉及部门最多|处理次数 |
|||
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321614
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.20 13:55 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("difficultprojects") |
|||
public Result<List<DifficultProjectResultDTO>> difficultProject(@RequestBody AgencyNumTypeParamFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, AgencyNumTypeParamFormDTO.AgencyNumTypeParamGroup.class); |
|||
return new Result<List<DifficultProjectResultDTO>>().ok(grassRootsGovernService.difficultProject(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 3、公众参与概况 |
|||
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321975
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.20 14:37 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("publicpartiprofile") |
|||
public Result<PublicPartiProfileResultDTO> publicPartiProfile(@RequestBody AgencyFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, AgencyFormDTO.CommonAgencyIdGroup.class); |
|||
return new Result<PublicPartiProfileResultDTO>().ok(grassRootsGovernService.publicPartiProfile(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 4、公众参与-排行榜 |
|||
* @NEI https://nei.netease.com/interface/detail/?pid=57068&id=321978
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.20 15:32 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("publicpartirank") |
|||
public Result<List<PublicPartiRankResultDTO>> publicPartiRank(@RequestBody AgencyAndNumFormDTO param){ |
|||
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class); |
|||
return new Result<List<PublicPartiRankResultDTO>>().ok(grassRootsGovernService.publicPartiRank(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 5、治理能力榜单 |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321627
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.20 17:46 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("governcapacityrank") |
|||
public Result<List<GovernCapacityRankResultDTO>> governCapacityRank(@RequestBody AgencyAndNumFormDTO param){ |
|||
ValidatorUtils.validateEntity(param,AgencyFormDTO.CommonAgencyIdGroup.class); |
|||
return new Result<List<GovernCapacityRankResultDTO>>().ok(grassRootsGovernService.governCapacityRank(param)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,93 @@ |
|||
package com.epmet.datareport.controller.screen; |
|||
|
|||
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.datareport.service.screen.GrassrootsPartyDevService; |
|||
import com.epmet.screen.dto.form.BranchBuildRankFormDTO; |
|||
import com.epmet.screen.dto.form.BranchBuildTrendFormDTO; |
|||
import com.epmet.screen.dto.form.ParymemberFormDTO; |
|||
import com.epmet.screen.dto.result.BranchBuildRankResultDTO; |
|||
import com.epmet.screen.dto.result.BranchBuildTrendResultDTO; |
|||
import com.epmet.screen.dto.result.PartymemberAgeDistributionResultDTO; |
|||
import com.epmet.screen.dto.result.PartymemberPercentResultDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* 基层党建相关各指标查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/18 10:11 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/screen/grassrootspartydev") |
|||
public class GrassrootsPartyDevController { |
|||
|
|||
@Autowired |
|||
private GrassrootsPartyDevService grassrootsPartyDevService; |
|||
|
|||
/** |
|||
* @Description 党员基本情况-饼状图概况 |
|||
* @NEI https://nei.netease.com/interface/detail/?pid=57068&id=321324
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.18 16:59 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("basicinfo") |
|||
public Result<PartymemberPercentResultDTO> baseInfo(@RequestBody ParymemberFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, ParymemberFormDTO.Parymember.class); |
|||
return new Result<PartymemberPercentResultDTO>().ok(grassrootsPartyDevService.partymemberBaseInfo(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 2、党员基本情况-年龄分布 |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321980
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.18 17:54 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("ageinfo") |
|||
public Result<PartymemberAgeDistributionResultDTO> ageInfo(@RequestBody ParymemberFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, ParymemberFormDTO.Parymember.class); |
|||
return new Result<PartymemberAgeDistributionResultDTO>().ok(grassrootsPartyDevService.partymemberAgeDistribution(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 3、支部建设情况|联建共建情况-折线图 |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321981
|
|||
* @param param |
|||
* @return BranchBuildTrendResultDTO |
|||
* @author wangc |
|||
* @date 2020.08.19 11:02 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("branchbuildtrend") |
|||
public Result<BranchBuildTrendResultDTO> branchBuildTrend(@RequestBody BranchBuildTrendFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, BranchBuildTrendFormDTO.branchBuildTrendGroup.class); |
|||
return new Result<BranchBuildTrendResultDTO>().ok(grassrootsPartyDevService.branchBuildTrend(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 4、支部建设情况|联建共建情况-排行 |
|||
* @NEI https://nei.netease.com/interface/detail/res/?pid=57068&id=321982
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.19 15:25 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("branchbuildrank") |
|||
public Result<BranchBuildRankResultDTO> branchBuildRank(@RequestBody BranchBuildRankFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, BranchBuildRankFormDTO.BranchBuildRankGroup.class); |
|||
return new Result<BranchBuildRankResultDTO>().ok(grassrootsPartyDevService.branchBuildRank(param)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,89 @@ |
|||
package com.epmet.datareport.controller.screen; |
|||
|
|||
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|||
import com.epmet.commons.extappauth.bean.ExternalAppRequestParam; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.datareport.service.screen.IndexService; |
|||
import com.epmet.screen.dto.form.MonthBarchartFormDTO; |
|||
import com.epmet.screen.dto.form.MonthPieChartFormDTO; |
|||
import com.epmet.screen.dto.form.SubAgencyIndexRankFormDTO; |
|||
import com.epmet.screen.dto.form.YearAverageIndexFormDTO; |
|||
import com.epmet.screen.dto.result.MonthBarchartResultDTO; |
|||
import com.epmet.screen.dto.result.MonthPieChartResultDTO; |
|||
import com.epmet.screen.dto.result.SubAgencyIndexRankResultDTO; |
|||
import com.epmet.screen.dto.result.YearAverageIndexResultDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 指数相关相关各指标查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/18 10:13 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/screen/index") |
|||
public class IndexController { |
|||
|
|||
@Autowired |
|||
private IndexService indexService; |
|||
|
|||
/** |
|||
* @Description 1、年度平均指数 |
|||
* @param yearAverageIndexFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/19 2:53 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("yearaverageindex") |
|||
public Result<YearAverageIndexResultDTO> yearAverageIndex(@RequestBody YearAverageIndexFormDTO yearAverageIndexFormDTO){ |
|||
ValidatorUtils.validateEntity(yearAverageIndexFormDTO, YearAverageIndexFormDTO.YearAverageIndex.class); |
|||
return new Result<YearAverageIndexResultDTO>().ok(indexService.yearAverageIndex(yearAverageIndexFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 2、月度指数分析-饼状图 |
|||
* @param monthPieChartFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/19 3:17 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("monthindexanalysis/piechart") |
|||
public Result<MonthPieChartResultDTO> monthPieChart(@RequestBody MonthPieChartFormDTO monthPieChartFormDTO){ |
|||
ValidatorUtils.validateEntity(monthPieChartFormDTO, MonthPieChartFormDTO.MonthPieChart.class); |
|||
return new Result<MonthPieChartResultDTO>().ok(indexService.monthPieChart(monthPieChartFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 3、月度指数分析-柱状图 |
|||
* @param monthBarchartFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/19 5:27 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("monthindexanalysis/barchart") |
|||
public Result<MonthBarchartResultDTO> monthBarchart(@RequestBody MonthBarchartFormDTO monthBarchartFormDTO, ExternalAppRequestParam externalAppRequestParam){ |
|||
ValidatorUtils.validateEntity(monthBarchartFormDTO, MonthBarchartFormDTO.MonthBarchart.class); |
|||
return new Result<MonthBarchartResultDTO>().ok(indexService.monthBarchart(monthBarchartFormDTO,externalAppRequestParam)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 4、下级部门指数排行 |
|||
* @param subAgencyIndexRankFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/20 10:02 上午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("subagencyindexrank") |
|||
public Result<List<SubAgencyIndexRankResultDTO>> subAgencyIndexRank(@RequestBody SubAgencyIndexRankFormDTO subAgencyIndexRankFormDTO){ |
|||
ValidatorUtils.validateEntity(subAgencyIndexRankFormDTO, SubAgencyIndexRankFormDTO.SubAgencyIndexRank.class); |
|||
return new Result<List<SubAgencyIndexRankResultDTO>>().ok(indexService.subAgencyIndexRank(subAgencyIndexRankFormDTO)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,99 @@ |
|||
package com.epmet.datareport.controller.screen; |
|||
|
|||
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.datareport.service.screen.PartyMemberLeadService; |
|||
import com.epmet.screen.dto.form.*; |
|||
import com.epmet.screen.dto.result.*; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 党建引领相关各指标查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/18 10:10 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/screen/partymemberlead") |
|||
public class PartyMemberLeadController { |
|||
|
|||
@Autowired |
|||
private PartyMemberLeadService partyMemberLeadService; |
|||
|
|||
/** |
|||
* @Description 1、先锋模范 |
|||
* @param fineExampleFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/20 1:56 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("fineexample") |
|||
public Result<FineExampleResultDTO> fineExample(@RequestBody FineExampleFormDTO fineExampleFormDTO){ |
|||
ValidatorUtils.validateEntity(fineExampleFormDTO, FineExampleFormDTO.FineExample.class); |
|||
return new Result<FineExampleResultDTO>().ok(partyMemberLeadService.fineExample(fineExampleFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 2、党员联系群众 |
|||
* @param contactMassLineChartFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/20 2:35 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("contactmasslinechart") |
|||
public Result<ContactMassLineChartResultDTO> contactMassLineChart(@RequestBody ContactMassLineChartFormDTO contactMassLineChartFormDTO){ |
|||
ValidatorUtils.validateEntity(contactMassLineChartFormDTO, ContactMassLineChartFormDTO.ContactMassLineChart.class); |
|||
return new Result<ContactMassLineChartResultDTO>().ok(partyMemberLeadService.contactMassLineChart(contactMassLineChartFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 3、党员志愿服务 |
|||
* @param volunteerServiceFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/20 3:19 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("volunteerservice") |
|||
public Result<VolunteerServiceResultDTO> volunteerService(@RequestBody VolunteerServiceFormDTO volunteerServiceFormDTO){ |
|||
ValidatorUtils.validateEntity(volunteerServiceFormDTO, VolunteerServiceFormDTO.VolunteerService.class); |
|||
return new Result<VolunteerServiceResultDTO>().ok(partyMemberLeadService.volunteerService(volunteerServiceFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 4、先进排行榜单-先进支部排行 |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321539
|
|||
* @param param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.21 11:05 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("advancedbranchrank") |
|||
Result<List<AdvanceBranchRankResultDTO>> advancedBranchRank(@RequestBody AgencyAndNumFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, AgencyFormDTO.CommonAgencyIdGroup.class); |
|||
return new Result<List<AdvanceBranchRankResultDTO>>().ok(partyMemberLeadService.advancedBranchRank(param)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 5、先进排行榜单-先进党员排行 |
|||
* @NEI https://nei.netease.com/interface/detail/req/?pid=57068&id=321624
|
|||
* @param param |
|||
* @return List<PartyUserPointResultDTO> |
|||
* @author wangc |
|||
* @date 2020.08.21 14:22 |
|||
**/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("advancedpartymemberrank") |
|||
Result<List<PartyUserPointResultDTO>> advancedPartymemberRank(@RequestBody AgencyAndNumFormDTO param){ |
|||
ValidatorUtils.validateEntity(param, AgencyFormDTO.CommonAgencyIdGroup.class); |
|||
return new Result<List<PartyUserPointResultDTO>>().ok(partyMemberLeadService.advancedPartymemberRank(param)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.epmet.datareport.controller.screen; |
|||
|
|||
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.datareport.service.screen.ScreenProjectService; |
|||
import com.epmet.screen.dto.form.ProjectDetailFormDTO; |
|||
import com.epmet.screen.dto.result.ProjectDetailResultDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* 项目 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/8/18 10:16 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/screen/project") |
|||
public class ScreenProjectController { |
|||
|
|||
@Autowired |
|||
private ScreenProjectService screenProjectService; |
|||
|
|||
/** |
|||
* @Description 3、项目详情 |
|||
* @param projectDetailFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/19 4:36 下午 |
|||
*/ |
|||
@ExternalAppRequestAuth |
|||
@PostMapping("detail") |
|||
public Result<ProjectDetailResultDTO> projectDetail(@RequestBody ProjectDetailFormDTO projectDetailFormDTO){ |
|||
ValidatorUtils.validateEntity(projectDetailFormDTO, ProjectDetailFormDTO.ProjectDetail.class); |
|||
return new Result<ProjectDetailResultDTO>().ok(screenProjectService.projectDetail(projectDetailFormDTO)); |
|||
} |
|||
|
|||
} |
@ -1,10 +1,10 @@ |
|||
package com.epmet.controller.topic; |
|||
package com.epmet.datareport.controller.topic; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.service.topic.TopicService; |
|||
import com.epmet.datareport.service.topic.TopicService; |
|||
import com.epmet.topic.dto.form.TopicIncrTrendFormDTO; |
|||
import com.epmet.topic.dto.result.*; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
@ -1,4 +1,4 @@ |
|||
package com.epmet.dao.group; |
|||
package com.epmet.datareport.dao.group; |
|||
|
|||
import com.epmet.group.dto.result.*; |
|||
import org.apache.ibatis.annotations.Mapper; |
@ -1,4 +1,4 @@ |
|||
package com.epmet.dao.issue; |
|||
package com.epmet.datareport.dao.issue; |
|||
|
|||
import com.epmet.issue.dto.result.IssueDataDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
@ -1,4 +1,4 @@ |
|||
package com.epmet.dao.project; |
|||
package com.epmet.datareport.dao.project; |
|||
|
|||
import com.epmet.project.dto.FactAgencyProjectDailyDTO; |
|||
import com.epmet.project.dto.result.*; |
@ -0,0 +1,44 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.PartymemberAgeDistributionResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
|
|||
/** |
|||
* 基层党建-党员基本情况 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenCpcBaseDataDao{ |
|||
|
|||
/** |
|||
* @Description 查询党员年龄分布情况 |
|||
* @param agencyId |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.18 17:47 |
|||
**/ |
|||
PartymemberAgeDistributionResultDTO selectPartymemberAgeDistribution(@Param("agencyId") String agencyId); |
|||
|
|||
|
|||
} |
@ -0,0 +1,83 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.*; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 组织机构信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenCustomerAgencyDao { |
|||
|
|||
/** |
|||
* @Description 查询客户根组织ID |
|||
* @param customerId |
|||
* @author zxc |
|||
* @date 2020/8/18 2:44 下午 |
|||
*/ |
|||
TreeResultDTO selectRootAgencyId(@Param("customerId")String customerId); |
|||
|
|||
/** |
|||
* @Description 查询下级机关的 名称和id |
|||
* @param subAgencyPids |
|||
* @author zxc |
|||
* @date 2020/8/18 4:48 下午 |
|||
*/ |
|||
List<TreeResultDTO> selectSubAgencyList(@Param("subAgencyPids") String subAgencyPids); |
|||
|
|||
/** |
|||
* @Description 查询当前机关的区域信息 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/18 4:51 下午 |
|||
*/ |
|||
CompartmentResultDTO getAgencyAreaInfo(@Param("agencyId")String agencyId); |
|||
|
|||
/** |
|||
* @Description 查询子级区域分布信息【机关级别】 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/18 5:12 下午 |
|||
*/ |
|||
List<AgencyDistributionResultDTO> selectSubDistribution(@Param("agencyId")String agencyId); |
|||
|
|||
/** |
|||
* @Description 查询子级用户分布【机关级别】 |
|||
* @param parentId |
|||
* @author zxc |
|||
* @date 2020/8/19 9:33 上午 |
|||
*/ |
|||
List<UserDistributionResultDTO> selectUserDistributionAgency(@Param("parentId")String parentId); |
|||
|
|||
/** |
|||
* @Description 查询子级党员分布【机关级别】 |
|||
* @param parentId |
|||
* @author zxc |
|||
* @date 2020/8/19 10:30 上午 |
|||
*/ |
|||
List<ParymemberDistributionResultDTO> selectParymemberDistribution(@Param("parentId")String parentId); |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 部门信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenCustomerDeptDao { |
|||
|
|||
} |
@ -0,0 +1,70 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.AgencyDistributionResultDTO; |
|||
import com.epmet.screen.dto.result.BranchResultDTO; |
|||
import com.epmet.screen.dto.result.ParymemberDistributionResultDTO; |
|||
import com.epmet.screen.dto.result.UserDistributionResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 网格(党支部)信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenCustomerGridDao { |
|||
|
|||
/** |
|||
* @Description 查询子级区域分布信息【网格级别】 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/18 5:12 下午 |
|||
*/ |
|||
List<AgencyDistributionResultDTO> selectSubDistribution(@Param("agencyId")String agencyId); |
|||
|
|||
/** |
|||
* @Description 查询党支部信息 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/19 9:13 上午 |
|||
*/ |
|||
List<BranchResultDTO> selectBranch(@Param("agencyId")String agencyId); |
|||
|
|||
/** |
|||
* @Description 查询子级用户分布【网格级别】 |
|||
* @param parentId |
|||
* @author zxc |
|||
* @date 2020/8/19 9:33 上午 |
|||
*/ |
|||
List<UserDistributionResultDTO> selectUserDistribution(@Param("parentId")String parentId); |
|||
|
|||
/** |
|||
* @Description 查询子级党员分布【网格级别】 |
|||
* @param parentId |
|||
* @author zxc |
|||
* @date 2020/8/19 10:30 上午 |
|||
*/ |
|||
List<ParymemberDistributionResultDTO> selectParymemberDistribution(@Param("parentId")String parentId); |
|||
|
|||
} |
@ -0,0 +1,44 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.DifficultProjectResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 基层治理-难点堵点(耗时最长|设计部门最多|处理次数) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenDifficultyDataDao { |
|||
|
|||
/** |
|||
* @Description 查询难点赌点-耗时最长|涉及部门最多|处理次数 |
|||
* @param |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.20 14:26 |
|||
**/ |
|||
List<DifficultProjectResultDTO> selectDifficulty(@Param("agencyId")String agencyId,@Param("type")String type); |
|||
|
|||
} |
@ -0,0 +1,52 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.ProjectDetailResultDTO; |
|||
import com.epmet.screen.dto.result.ProjectResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 中央区-事件数据 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenEventDataDao{ |
|||
|
|||
/** |
|||
* @Description 查询事件 |
|||
* @param parentId |
|||
* @author zxc |
|||
* @date 2020/8/19 2:09 下午 |
|||
*/ |
|||
List<ProjectResultDTO> selectEvent(@Param("parentId")String parentId); |
|||
|
|||
/** |
|||
* @Description 3、项目详情 |
|||
* @param projectId |
|||
* @author zxc |
|||
* @date 2020/8/19 4:36 下午 |
|||
*/ |
|||
ProjectDetailResultDTO selectEventDetail(@Param("projectId")String projectId); |
|||
|
|||
} |
@ -0,0 +1,42 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 中央区-事件数据图片数据 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenEventImgDataDao { |
|||
|
|||
/** |
|||
* @Description 查询事件imgUrl集合 |
|||
* @param projectId |
|||
* @author zxc |
|||
* @date 2020/8/19 5:11 下午 |
|||
*/ |
|||
List<String> selectEventImgList(@Param("projectId")String projectId); |
|||
|
|||
} |
@ -0,0 +1,44 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.GovernCapacityResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 基层治理-治理能力排行数据 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenGovernRankDataDao{ |
|||
|
|||
/** |
|||
* @Description 查询政府治理能力各项指标 |
|||
* @param monthId |
|||
* @param agencyId |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.20 17:34 |
|||
**/ |
|||
List<GovernCapacityResultDTO> selectGovernCapacityRatio(@Param("monthId") String monthId,@Param("agencyId") String agencyId); |
|||
} |
@ -0,0 +1,64 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.form.SubAgencyIndexRankFormDTO; |
|||
import com.epmet.screen.dto.result.MonthBarchartResult; |
|||
import com.epmet.screen.dto.result.MonthBarchartResultDTO; |
|||
import com.epmet.screen.dto.result.MonthPieChartResultDTO; |
|||
import com.epmet.screen.dto.result.SubAgencyIndexRankResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 指数-指数数据 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenIndexDataMonthlyDao{ |
|||
|
|||
/** |
|||
* @Description 2、月度指数分析-饼状图 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/19 3:43 下午 |
|||
*/ |
|||
MonthPieChartResultDTO selectMonthPieChart(@Param("agencyId")String agencyId); |
|||
|
|||
/** |
|||
* @Description 查询近一年的指数值【不包括本月】 |
|||
* @param customerId |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/20 9:02 上午 |
|||
*/ |
|||
List<MonthBarchartResult> selectMonthBarchart(@Param("customerId")String customerId, @Param("agencyId")String agencyId); |
|||
|
|||
/** |
|||
* @Description 4、下级部门指数排行 |
|||
* @param subAgencyIndexRankFormDTO |
|||
* @author zxc |
|||
* @date 2020/8/20 10:04 上午 |
|||
*/ |
|||
List<SubAgencyIndexRankResultDTO> selectSubAgencyIndexRank(SubAgencyIndexRankFormDTO subAgencyIndexRankFormDTO); |
|||
|
|||
} |
@ -0,0 +1,41 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.YearAverageIndexResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* 指数-指数数据(按年统计) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-19 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenIndexDataYearlyDao{ |
|||
|
|||
/** |
|||
* @Description 1、年度平均指数 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/19 3:43 下午 |
|||
*/ |
|||
YearAverageIndexResultDTO selectYearAverageIndex(@Param("agencyId")String agencyId); |
|||
|
|||
} |
@ -0,0 +1,45 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.OrgRankDataResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 党建引领-组织排行榜 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenOrgRankDataDao{ |
|||
|
|||
/** |
|||
* @Description 查询指定机关的直属网格月度数据 |
|||
* @param agencyId |
|||
* @param monthId |
|||
* @return |
|||
* @author wangc |
|||
* @date 2020.08.21 13:58 |
|||
**/ |
|||
List<OrgRankDataResultDTO> selectGridDataMonthly(@Param("agencyId") String agencyId, @Param("monthId") String monthId); |
|||
|
|||
} |
@ -0,0 +1,71 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.BranchBuildOrderByCountResultDTO; |
|||
import com.epmet.screen.dto.result.BranchIssueDataResultDTO; |
|||
import com.epmet.screen.dto.result.VolunteerServiceResult; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 基层党建-建设情况数据(支部,联建) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenPartyBranchDataDao { |
|||
|
|||
/** |
|||
* @Description 根据agencyTd、type(数据类别 party:支部建设;union:联合建设)查出共有多少议题主题 |
|||
* @param agencyId |
|||
* @param type |
|||
* @return List<String> |
|||
* @author wangc |
|||
* @date 2020.08.19 10:44 |
|||
**/ |
|||
List<String> selectIssueGroup(@Param("agencyId") String agencyId , @Param("type") String type); |
|||
|
|||
/** |
|||
* @Description 根据议题名称查找近12个月的数据 |
|||
* @param agencyId .. |
|||
* @return List<BranchIssueDataResultDTO> |
|||
* @author wangc |
|||
* @date 2020.08.19 10:59 |
|||
**/ |
|||
List<BranchIssueDataResultDTO> selectBranchDataByTypeAndTimeZone(@Param("agencyId") String agencyId , @Param("type") String type, @Param("category") String category, @Param("bottomMonthId") String bottomMonthId); |
|||
|
|||
/** |
|||
* @Description 查询党员志愿服务 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/20 3:30 下午 |
|||
*/ |
|||
List<VolunteerServiceResult> selectVolunteerServiceResult(@Param("agencyId")String agencyId); |
|||
/** |
|||
* @Description 查找指定组织的下一级组织的数据排行 |
|||
* @param agencyId .. |
|||
* @return List<BranchBuildOrderByCountResultDTO> |
|||
* @author wangc |
|||
* @date 2020.08.20 09:46 |
|||
**/ |
|||
List<BranchBuildOrderByCountResultDTO> selectBranchDataByTypeOrder(@Param("agencyId")String agencyId,@Param("category")String category,@Param("monthId")String monthId,@Param("bottomMonthId")String bottomMonthId); |
|||
} |
@ -0,0 +1,43 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* 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. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.datareport.dao.screen; |
|||
|
|||
import com.epmet.screen.dto.result.ContactMassLineChartResult; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 党建引领-党员联系群众数据 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-18 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenPartyLinkMassesDataDao { |
|||
|
|||
/** |
|||
* @Description 查询党员联系群众 |
|||
* @param agencyId |
|||
* @author zxc |
|||
* @date 2020/8/20 2:48 下午 |
|||
*/ |
|||
List<ContactMassLineChartResult> selectContactMassLineChart(@Param("agencyId")String agencyId); |
|||
|
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue