Browse Source
Conflicts: epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/exception/EpmetErrorCode.javadev_shibei_match
703 changed files with 38520 additions and 530 deletions
@ -0,0 +1,39 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.dto.form.GovWebLoginFormDTO; |
|||
import com.epmet.dto.result.UserTokenResultDTO; |
|||
import com.epmet.service.GovWebService; |
|||
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; |
|||
|
|||
/** |
|||
* @Description PC工作端-登陆服务 |
|||
* @author sun |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("govweb") |
|||
public class GovWebController { |
|||
|
|||
@Autowired |
|||
private GovWebService govWebService; |
|||
|
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @return |
|||
* @Author sun |
|||
* @Description PC工作端-工作人员登录 |
|||
**/ |
|||
@PostMapping("login") |
|||
public Result<UserTokenResultDTO> workLogin(@RequestBody GovWebLoginFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
return new Result<UserTokenResultDTO>().ok(govWebService.login(formDTO)); |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 单客户-获取微信用户手机号 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class GetResiWxPhoneFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 4381236451736209332L; |
|||
/** |
|||
* 小程序appId |
|||
*/ |
|||
@NotBlank(message = "appId不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String appId; |
|||
/** |
|||
* 微信code |
|||
*/ |
|||
@NotBlank(message = "wxCode不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String wxCode; |
|||
/** |
|||
* 用户信息 |
|||
*/ |
|||
@NotBlank(message = "encryptedData不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String encryptedData; |
|||
/** |
|||
* 加密算法的初始向量 |
|||
*/ |
|||
@NotBlank(message = "iv不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String iv; |
|||
|
|||
public interface AddUserInternalGroup {} |
|||
|
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description PC工作端 手机号+密码登陆-接口入参 |
|||
* @Author sun |
|||
*/ |
|||
@Data |
|||
public class GovWebLoginFormDTO extends LoginCommonFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 7950477424010655108L; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
@NotBlank(message = "客户Id不能为空",groups = {AddUserShowGroup.class}) |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@NotBlank(message = "手机号不能为空",groups = {AddUserShowGroup.class}) |
|||
private String phone; |
|||
|
|||
/** |
|||
* 密码 |
|||
*/ |
|||
@NotBlank(message = "密码不能为空",groups = {AddUserShowGroup.class}) |
|||
private String password; |
|||
|
|||
/** |
|||
* 验证码 |
|||
*/ |
|||
@NotBlank(message="验证码不能为空",groups = {AddUserShowGroup.class}) |
|||
private String captcha; |
|||
|
|||
/** |
|||
* 唯一标识 |
|||
*/ |
|||
@NotBlank(message="唯一标识不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String uuid; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.service; |
|||
|
|||
import com.epmet.dto.form.GovWebLoginFormDTO; |
|||
import com.epmet.dto.result.UserTokenResultDTO; |
|||
|
|||
/** |
|||
* @Description 第三方-居民端、政府端登陆服务 |
|||
* @author sun |
|||
*/ |
|||
public interface GovWebService { |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @return |
|||
* @Author sun |
|||
* @Description PC工作端-工作人员登录 |
|||
**/ |
|||
UserTokenResultDTO login(GovWebLoginFormDTO formDTO); |
|||
} |
@ -0,0 +1,124 @@ |
|||
package com.epmet.service.impl; |
|||
|
|||
import com.epmet.common.token.constant.LoginConstant; |
|||
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|||
import com.epmet.commons.tools.exception.RenException; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.security.password.PasswordUtils; |
|||
import com.epmet.commons.tools.utils.CpUserDetailRedis; |
|||
import com.epmet.commons.tools.utils.DateUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.form.GovWebLoginFormDTO; |
|||
import com.epmet.dto.form.GovWebOperLoginFormDTO; |
|||
import com.epmet.dto.form.LoginByPassWordFormDTO; |
|||
import com.epmet.dto.form.PasswordLoginUserInfoFormDTO; |
|||
import com.epmet.dto.result.GovWebOperLoginResultDTO; |
|||
import com.epmet.dto.result.PasswordLoginUserInfoResultDTO; |
|||
import com.epmet.dto.result.UserTokenResultDTO; |
|||
import com.epmet.feign.EpmetUserFeignClient; |
|||
import com.epmet.jwt.JwtTokenProperties; |
|||
import com.epmet.jwt.JwtTokenUtils; |
|||
import com.epmet.service.CaptchaService; |
|||
import com.epmet.service.GovWebService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @author sun |
|||
* @Description 第三方-居民端、政府端登陆服务 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
public class GovWebServiceImpl implements GovWebService { |
|||
|
|||
private static final Logger logger = LoggerFactory.getLogger(GovWebServiceImpl.class); |
|||
@Autowired |
|||
private CaptchaService captchaService; |
|||
@Autowired |
|||
private JwtTokenUtils jwtTokenUtils; |
|||
@Autowired |
|||
private JwtTokenProperties jwtTokenProperties; |
|||
@Autowired |
|||
private CpUserDetailRedis cpUserDetailRedis; |
|||
@Autowired |
|||
private EpmetUserFeignClient epmetUserFeignClient; |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @return |
|||
* @Author sun |
|||
* @Description PC工作端-工作人员登录 |
|||
**/ |
|||
@Override |
|||
public UserTokenResultDTO login(GovWebLoginFormDTO formDTO) { |
|||
//1.参数校验
|
|||
if (!(LoginConstant.APP_GOV.equals(formDTO.getApp()) && LoginConstant.CLIENT_WEB.equals(formDTO.getClient()))) { |
|||
logger.error("当前接口只适用于PC工作端运营管理后台"); |
|||
throw new RenException("当前接口只适用于PC工作端运营管理后台"); |
|||
} |
|||
//2.验证码校验
|
|||
boolean flag = captchaService.validate(formDTO.getUuid(), formDTO.getCaptcha()); |
|||
if (!flag) { |
|||
logger.error(String.format("用户%s登录,验证码输入错误,暂时放行", formDTO.getPhone())); |
|||
//暂时关闭验证码校验 TODO
|
|||
//throw new RenException(EpmetErrorCode.ERR10019.getCode());
|
|||
} |
|||
//3.校验登陆账号是否存在
|
|||
//根据客户Id和手机号查询登陆用户信息(此处不需要判断登陆人是否是有效客户以及是否是客户的根管理员,前一接口获取登陆手机号对应客户列表已经判断了)
|
|||
GovWebOperLoginFormDTO form = new GovWebOperLoginFormDTO(); |
|||
form.setCustomerId(formDTO.getCustomerId()); |
|||
form.setMobile(formDTO.getPhone()); |
|||
Result<GovWebOperLoginResultDTO> result = epmetUserFeignClient.getStaffIdAndPwd(form); |
|||
if (!result.success() || null == result.getData() || null == result.getData().getUserId()) { |
|||
logger.error("根据手机号查询PC工作端登陆人员信息失败,返回10003账号不存在"); |
|||
throw new RenException(EpmetErrorCode.ERR10003.getCode()); |
|||
} |
|||
GovWebOperLoginResultDTO resultDTO = result.getData(); |
|||
|
|||
//4.密码是否正确
|
|||
//密码错误
|
|||
if (!PasswordUtils.matches(formDTO.getPassword(), resultDTO.getPassWord())) { |
|||
logger.error("登陆密码错误"); |
|||
throw new RenException(EpmetErrorCode.ERR10004.getCode()); |
|||
} |
|||
|
|||
//5.生成token存到redis并返回
|
|||
UserTokenResultDTO userTokenResultDTO = new UserTokenResultDTO(); |
|||
userTokenResultDTO.setToken(this.packagingUserToken(formDTO, resultDTO.getUserId())); |
|||
return userTokenResultDTO; |
|||
|
|||
} |
|||
|
|||
/** |
|||
* 生成PC工作端token |
|||
* @author sun |
|||
*/ |
|||
private String packagingUserToken(GovWebLoginFormDTO formDTO, String userId) { |
|||
// 生成token
|
|||
Map<String, Object> map = new HashMap<>(); |
|||
map.put("app", formDTO.getApp()); |
|||
map.put("client", formDTO.getClient()); |
|||
map.put("userId", userId); |
|||
String token = jwtTokenUtils.createToken(map); |
|||
logger.info("app:" + formDTO.getApp() + ";client:" + formDTO.getClient() + ";userId:" + userId + ";生成token[" + token + "]"); |
|||
int expire = jwtTokenProperties.getExpire(); |
|||
TokenDto tokenDto = new TokenDto(); |
|||
tokenDto.setApp(formDTO.getApp()); |
|||
tokenDto.setClient(formDTO.getClient()); |
|||
tokenDto.setUserId(userId); |
|||
tokenDto.setToken(token); |
|||
tokenDto.setUpdateTime(System.currentTimeMillis()); |
|||
tokenDto.setExpireTime(jwtTokenUtils.getExpiration(token).getTime()); |
|||
cpUserDetailRedis.set(tokenDto, expire); |
|||
logger.info("截止时间:" + DateUtils.format(jwtTokenUtils.getExpiration(token), "yyyy-MM-dd HH:mm:ss")); |
|||
return token; |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.epmet.commons.dynamic.datasource.enums; |
|||
|
|||
/** |
|||
* 服务-数据源flag-数据源名称对应关系 |
|||
*/ |
|||
public enum DataSourceEnum { |
|||
|
|||
DATA_STATISTICAL_REAL("data-statistical-server", "real", "evaluationIndex"), |
|||
DATA_STATISTICAL_FAKE("data-statistical-server", "fake", "statsDisplay"), |
|||
DATA_REPORT_REAL("data-report-server", "real", "evaluationIndex"), |
|||
DATA_REPORT_FAKE("data-report-server", "fake", "statsDisplay"), |
|||
; |
|||
|
|||
// 服务名
|
|||
private String serviceName; |
|||
// 数据源标记
|
|||
private String flag; |
|||
// 数据源,跟yml中的数据源名称保持一致
|
|||
private String dataSourceName; |
|||
|
|||
DataSourceEnum(String serviceName, String flag, String dataSourceName) { |
|||
this.serviceName = serviceName; |
|||
this.flag = flag; |
|||
this.dataSourceName = dataSourceName; |
|||
} |
|||
|
|||
public static DataSourceEnum getEnum(String serviceName, String flag) { |
|||
DataSourceEnum[] values = DataSourceEnum.values(); |
|||
for (DataSourceEnum value : values) { |
|||
if (value.serviceName.equals(serviceName) && value.flag.equals(flag)) { |
|||
return value; |
|||
} |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
public String getServiceName() { |
|||
return serviceName; |
|||
} |
|||
|
|||
public String getFlag() { |
|||
return flag; |
|||
} |
|||
|
|||
public String getDataSourceName() { |
|||
return dataSourceName; |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.epmet.commons.dynamic.datasource.util; |
|||
|
|||
import com.epmet.commons.dynamic.datasource.enums.DataSourceEnum; |
|||
|
|||
public abstract class AbstractDataSourceNameFetcher { |
|||
|
|||
public abstract String fetchDataSourceName(); |
|||
|
|||
//protected String getDataSourceName(String dataType, String serviceName) {
|
|||
// return DataSourceEnum.getEnum(serviceName, dataType)
|
|||
//}
|
|||
|
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.commons.dynamic.datasource.util; |
|||
|
|||
import com.epmet.commons.dynamic.datasource.enums.DataSourceEnum; |
|||
import com.epmet.commons.tools.exception.RenException; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.core.env.Environment; |
|||
import org.springframework.stereotype.Component; |
|||
import org.springframework.web.context.request.RequestContextHolder; |
|||
import org.springframework.web.context.request.ServletRequestAttributes; |
|||
|
|||
/** |
|||
* Http请求中获取数据源名称 |
|||
*/ |
|||
@Component |
|||
public class HttpRequestDataSourceNameFetcher extends AbstractDataSourceNameFetcher { |
|||
|
|||
protected Logger logger = LoggerFactory.getLogger(getClass()); |
|||
|
|||
@Autowired |
|||
private Environment environment; |
|||
|
|||
@Override |
|||
public String fetchDataSourceName() { |
|||
ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes(); |
|||
javax.servlet.http.HttpServletRequest request = requestAttributes.getRequest(); |
|||
String dataType = request.getHeader("Data-Type"); |
|||
|
|||
logger.info("HttpRequestDataSourceNameFetcher获取到的DataType为:{}", dataType); |
|||
if (StringUtils.isBlank(dataType)) { |
|||
return null; |
|||
} |
|||
|
|||
String serviceName = environment.getProperty("spring.application.name"); |
|||
DataSourceEnum dataSourceEnum = DataSourceEnum.getEnum(serviceName, dataType); |
|||
if (dataSourceEnum == null) { |
|||
throw new RenException(String.format("根据前端传入的DataType[%s]无法找到对应的数据源。", dataType)); |
|||
} |
|||
logger.info("HttpRequestDataSourceNameFetcher根据DataType:[{}]获取到的DataSourceEnum为{}", dataType, dataSourceEnum.getDataSourceName()); |
|||
return dataSourceEnum.getDataSourceName(); |
|||
} |
|||
} |
@ -0,0 +1,67 @@ |
|||
/** |
|||
* Copyright (c) 2018 人人开源 All rights reserved. |
|||
* <p> |
|||
* https://www.renren.io
|
|||
* <p> |
|||
* 版权所有,侵权必究! |
|||
*/ |
|||
|
|||
package com.epmet.commons.tools.aspect; |
|||
|
|||
import com.epmet.commons.tools.dto.form.DingTalkTextMsg; |
|||
import com.epmet.commons.tools.enums.EnvEnum; |
|||
import com.epmet.commons.tools.utils.HttpClientManager; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.utils.SpringContextUtils; |
|||
import org.apache.logging.log4j.LogManager; |
|||
import org.apache.logging.log4j.Logger; |
|||
import org.springframework.beans.factory.annotation.Value; |
|||
import org.springframework.boot.ApplicationArguments; |
|||
import org.springframework.boot.ApplicationRunner; |
|||
import org.springframework.cloud.commons.util.InetUtils; |
|||
import org.springframework.core.annotation.Order; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 应用 启动健康检查 通知类 |
|||
* CustomerApplicationRunner |
|||
* |
|||
* @author Mark sunlightcs@gmail.com |
|||
* @since 1.0.0 |
|||
*/ |
|||
@Component |
|||
@Order(value = 99) |
|||
public class CustomerApplicationRunner implements ApplicationRunner { |
|||
private static Logger logger = LogManager.getLogger(CustomerApplicationRunner.class); |
|||
@Value("${spring.application.name}") |
|||
private String appName; |
|||
|
|||
@Override |
|||
public void run(ApplicationArguments args) { |
|||
//发送启动成功消息
|
|||
EnvEnum currentEnv = EnvEnum.getCurrentEnv(); |
|||
logger.info(currentEnv); |
|||
if (!EnvEnum.DEV.getCode().equals(currentEnv.getCode())) { |
|||
InetUtils inetUtils = SpringContextUtils.getBean(InetUtils.class); |
|||
String serverIp = inetUtils.findFirstNonLoopbackHostInfo().getIpAddress(); |
|||
|
|||
//开发小组 群机器人地址
|
|||
String url = "https://oapi.dingtalk.com/robot/send?access_token=ffd7c972b0525e249283df1a16b65a8b9d0012601f3a458dfc588c2eac497bb5"; |
|||
StringBuilder stringBuilder = new StringBuilder(); |
|||
stringBuilder.append(EnvEnum.getCurrentEnv().getName()) |
|||
.append("【") |
|||
.append(appName) |
|||
.append("】") |
|||
.append("ip地址: ") |
|||
.append(serverIp) |
|||
.append("部署完毕!"); |
|||
DingTalkTextMsg msg = new DingTalkTextMsg(); |
|||
msg.setWebHook(url); |
|||
msg.setAtAll(true); |
|||
msg.setContent(stringBuilder.toString()); |
|||
Result<String> stringResult = HttpClientManager.getInstance().sendPostByJSON(url, msg.getMsgContent()); |
|||
logger.info(stringResult); |
|||
} |
|||
} |
|||
|
|||
} |
@ -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 EVALUATION_INDEX = "evaluationIndex"; |
|||
String STATS_DISPLAY = "statsDisplay"; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.evaluationindex.screen.constant; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/8/18 5:02 下午 |
|||
*/ |
|||
public interface ScreenConstant { |
|||
|
|||
String COMMUNITY = "community"; |
|||
|
|||
String MONTH = "月"; |
|||
|
|||
String RATIO = "%"; |
|||
|
|||
String SQUARE_BRACKETS = "[]"; |
|||
|
|||
String COMMA = ","; |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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,30 @@ |
|||
package com.epmet.evaluationindex.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; |
|||
|
|||
/** |
|||
* 机关iD |
|||
*/ |
|||
@NotBlank(message = "机关ID不能为空",groups = {ProjectDetail.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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,42 @@ |
|||
package com.epmet.evaluationindex.screen.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
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; |
|||
|
|||
/** |
|||
* 总组织次数 |
|||
* */ |
|||
private Integer totalOrganizationCount = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 总参与人数 |
|||
* */ |
|||
private Integer totalJoinUserCount = NumConstant.ZERO; |
|||
|
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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,42 @@ |
|||
package com.epmet.evaluationindex.screen.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
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; |
|||
|
|||
/** |
|||
* 党员建群数 |
|||
**/ |
|||
private Integer groupTotal = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 党成员数 |
|||
* */ |
|||
private Integer groupMemberTotal = NumConstant.ZERO; |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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,41 @@ |
|||
package com.epmet.evaluationindex.screen.dto.result; |
|||
|
|||
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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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,48 @@ |
|||
package com.epmet.evaluationindex.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
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; |
|||
|
|||
/** |
|||
* 坐标区域 |
|||
*/ |
|||
@JsonIgnore |
|||
private String areaMarks = ""; |
|||
|
|||
/** |
|||
* 可以是网格的名称,可以是组织的名称 |
|||
*/ |
|||
private String subName= ""; |
|||
|
|||
/** |
|||
* 组织:agency, 网格 : grid; |
|||
*/ |
|||
private String type = ""; |
|||
|
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.epmet.evaluationindex.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 = ""; |
|||
|
|||
/** |
|||
* 当前所选组织的坐标区域 |
|||
*/ |
|||
@JsonIgnore |
|||
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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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.evaluationindex.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,51 @@ |
|||
package com.epmet.evaluationindex.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<Double> centerMark; |
|||
|
|||
/** |
|||
* 机关级别 |
|||
*/ |
|||
@JsonIgnore |
|||
private String level; |
|||
|
|||
@JsonIgnore |
|||
private String centerMarkA; |
|||
|
|||
/** |
|||
* 子目录 |
|||
*/ |
|||
private List<TreeResultDTO> children = new ArrayList<>(); |
|||
|
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.epmet.evaluationindex.screen.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
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; |
|||
|
|||
/** |
|||
* 坐标区域 |
|||
*/ |
|||
@JsonIgnore |
|||
private String areaMarks; |
|||
|
|||
/** |
|||
* 可以是网格的名称,可以是组织的名称 |
|||
*/ |
|||
private String subName; |
|||
|
|||
/** |
|||
* 组织:agency, 网格 : grid; |
|||
*/ |
|||
private String type; |
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.evaluationindex.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,26 @@ |
|||
package com.epmet.evaluationindex.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.evaluationindex.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.evaluationindex.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,50 @@ |
|||
package com.epmet.evaluationindex.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 = ""; |
|||
|
|||
/** |
|||
* 当前所选组织的坐标区域 |
|||
*/ |
|||
@JsonIgnore |
|||
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.evaluationindex.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,47 @@ |
|||
package com.epmet.evaluationindex.screen.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
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; |
|||
|
|||
/** |
|||
* 总组织次数 |
|||
* */ |
|||
private Integer totalOrganizationCount = NumConstant.ZERO; |
|||
|
|||
/** |
|||
* 总参与人数 |
|||
* */ |
|||
private Integer totalJoinUserCount = NumConstant.ZERO; |
|||
} |
@ -0,0 +1,35 @@ |
|||
package com.epmet.evaluationindex.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; |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue