Browse Source
# Conflicts: # epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/dto/BaseTokenDto.java # epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/resigroup/ResiTopicDTO.java # epmet-module/data-report/data-report-server/src/main/java/com/epmet/datareport/controller/project/ProjectController.javadev_shibei_match
338 changed files with 16357 additions and 437 deletions
@ -0,0 +1,53 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 4、自动进入组织-返回token |
|||
* @Author sun |
|||
*/ |
|||
@Data |
|||
public class SsoEnteOrgFormDTO implements Serializable { |
|||
public interface AddUserInternalGroup {} |
|||
public interface AddUserShowGroup extends CustomerClientShowGroup {} |
|||
/** |
|||
* wxCode |
|||
*/ |
|||
@NotBlank(message = "ticket不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String ticket; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@NotBlank(message = "手机号不能为空",groups = {AddUserShowGroup.class}) |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 选择的组织所属的id |
|||
*/ |
|||
@NotBlank(message = "客户id不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 选择的要进入的组织(根组织id) |
|||
*/ |
|||
@NotBlank(message = "组织id不能为空",groups = {AddUserInternalGroup.class}) |
|||
private String rootAgencyId; |
|||
|
|||
/** |
|||
* resi;居民段,gov:工作端 |
|||
*/ |
|||
@NotBlank(message = "app不能为空",groups = SsoLoginFormDTO.SsoLoginForm.class) |
|||
private String app; |
|||
|
|||
/** |
|||
* app;居民段,app:工作端 |
|||
*/ |
|||
@NotBlank(message = "client不能为空",groups = SsoLoginFormDTO.SsoLoginForm.class) |
|||
private String client; |
|||
} |
|||
|
@ -0,0 +1,34 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/1/18 下午4:43 |
|||
*/ |
|||
@Data |
|||
public class SsoLoginOperFormDTO extends LoginCommonFormDTO implements Serializable { |
|||
|
|||
|
|||
private static final long serialVersionUID = 8711491709544498082L; |
|||
|
|||
public interface ThirdPlatformLoginForm { |
|||
} |
|||
|
|||
/** |
|||
* 上游系统token |
|||
*/ |
|||
@NotBlank(message = "token不能为空", groups = {ThirdPlatformLoginForm.class}) |
|||
private String thirdToken; |
|||
|
|||
/** |
|||
* 上游系统token |
|||
* |
|||
* @see com.epmet.enums.ThirdPlatformEnum |
|||
*/ |
|||
@NotBlank(message = "token不能为空", groups = {ThirdPlatformLoginForm.class}) |
|||
private String platform; |
|||
} |
@ -0,0 +1,57 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/1/18 下午4:43 |
|||
*/ |
|||
@Data |
|||
public class ThirdPlatFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -6543952487970013031L; |
|||
|
|||
public interface SsoLoginForm { |
|||
} |
|||
|
|||
public interface ThirdPlatformLoginForm { |
|||
} |
|||
|
|||
/** |
|||
* sso票据,有效期为300秒 |
|||
*/ |
|||
@NotBlank(message = "sso票据不能为空", groups = {SsoLoginForm.class, ThirdPlatformLoginForm.class}) |
|||
private String ticket; |
|||
|
|||
/** |
|||
* 三方平台应用AppId |
|||
*/ |
|||
@NotBlank(message = "三方平台应用AppId不能为空", groups = SsoLoginForm.class) |
|||
private String appId; |
|||
|
|||
/** |
|||
* app类型 resi;居民段,work:工作端 |
|||
*/ |
|||
@NotBlank(message = "app不能为空", groups = SsoLoginForm.class) |
|||
private String app; |
|||
|
|||
@NotBlank(message = "client不能为空", groups = SsoLoginForm.class) |
|||
private String client; |
|||
|
|||
/** |
|||
* 上游系统token |
|||
*/ |
|||
@NotBlank(message = "token不能为空", groups = {ThirdPlatformLoginForm.class}) |
|||
private String thirdToken; |
|||
|
|||
/** |
|||
* 上游系统token |
|||
* |
|||
* @see com.epmet.enums.ThirdPlatformEnum |
|||
*/ |
|||
@NotBlank(message = "token不能为空", groups = {ThirdPlatformLoginForm.class}) |
|||
private String platform; |
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.epmet.enums; |
|||
|
|||
/** |
|||
* 系统环境变量枚举类 |
|||
* dev|test|prod |
|||
* |
|||
* @author jianjun liu |
|||
* @date 2020-07-03 11:14 |
|||
**/ |
|||
public enum ThirdPlatformEnum { |
|||
/** |
|||
* 平阴联动指挥平台 |
|||
*/ |
|||
PINGYIN_LIANDONG("pyld", "平阴联动指挥平台", "pyldApiService"), |
|||
; |
|||
|
|||
private String code; |
|||
private String name; |
|||
private String apiService; |
|||
|
|||
|
|||
ThirdPlatformEnum(String code, String name, String apiService) { |
|||
this.code = code; |
|||
this.name = name; |
|||
this.apiService = apiService; |
|||
} |
|||
|
|||
public static ThirdPlatformEnum getEnum(String code) { |
|||
ThirdPlatformEnum[] values = ThirdPlatformEnum.values(); |
|||
for (ThirdPlatformEnum value : values) { |
|||
if (value.getCode().equals(code)) { |
|||
return value; |
|||
} |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public String getApiService() { |
|||
return apiService; |
|||
} |
|||
} |
@ -0,0 +1,123 @@ |
|||
package com.epmet.commons.thirdplat.apiservice.pyld; |
|||
|
|||
import com.alibaba.fastjson.JSON; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.epmet.commons.thirdplat.apiservice.AbstractApiService; |
|||
import com.epmet.commons.thirdplat.bean.ThirdPlatUserInfo; |
|||
import com.epmet.commons.thirdplat.constants.PyldConstants; |
|||
import com.epmet.commons.thirdplat.dto.result.jcet.PyldUserInfoResultDTO; |
|||
import com.epmet.commons.thirdplat.properties.PyldThirdplatProps; |
|||
import com.epmet.commons.thirdplat.properties.ThirdplatProps; |
|||
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|||
import com.epmet.commons.tools.exception.RenException; |
|||
import com.epmet.commons.tools.utils.HttpClientManager; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import org.apache.commons.codec.digest.DigestUtils; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.nio.charset.StandardCharsets; |
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
@Service |
|||
public class PyldApiService extends AbstractApiService { |
|||
|
|||
Logger logger = LoggerFactory.getLogger(getClass()); |
|||
|
|||
private PyldThirdplatProps pyldThirdplatProps; |
|||
|
|||
public PyldApiService(ThirdplatProps props) { |
|||
this.thirdplatProps = props; |
|||
pyldThirdplatProps = props.getPyld(); |
|||
} |
|||
|
|||
/** |
|||
* @return |
|||
* @Description 通过第三方平台ticket获取用户信息 |
|||
* @author wxz |
|||
* @date 2021.01.19 10:26 |
|||
*/ |
|||
@Override |
|||
public ThirdPlatUserInfo getUserInfoByTicket(String platformToken) { |
|||
|
|||
logger.info("【请求平阴联动指挥平台第三方平台】getUserInfoByTicket()接口开始>>>>>>>>>>>>"); |
|||
logger.info("【请求平阴联动指挥平台第三方平台】getUserInfoByTicket()接口入参 platformToken:{}", platformToken); |
|||
|
|||
|
|||
JSONObject jsonParam = new JSONObject(); |
|||
jsonParam.put(PyldConstants.PLAT_PARAM_TOKEN, platformToken); |
|||
jsonParam.put(PyldConstants.PLAT_PARAM_MANAGEMENTKEY, PyldConstants.PLAT_PARAM_MANAGEMENTKEY_VALUE); |
|||
|
|||
String domain = pyldThirdplatProps.getDomain(); |
|||
Result<String> result = HttpClientManager.getInstance().sendPost( |
|||
domain.concat(PyldConstants.METHOD_CHECK_LOGIN), |
|||
domain.startsWith("https://"), |
|||
jsonParam.toJSONString(), |
|||
buildHeaders()); |
|||
|
|||
logger.info("【请求平阴联动指挥平台第三方平台】getUserInfoByTicket()接口返回:{}", result.getData()); |
|||
|
|||
logger.info("【请求平阴联动指挥平台第三方平台】getUserInfoByTicket()接口结束<<<<<<<<<<<<"); |
|||
|
|||
PyldUserInfoResultDTO resultDTO = this.parseResult(result); |
|||
|
|||
ThirdPlatUserInfo userInfo = new ThirdPlatUserInfo(); |
|||
userInfo.setMobile(resultDTO.getMobile()); |
|||
userInfo.setCustomerId(resultDTO.getReserved()); |
|||
return userInfo; |
|||
|
|||
} |
|||
|
|||
|
|||
/** |
|||
* 构建请求头信息 |
|||
* |
|||
* @return |
|||
*/ |
|||
private Map<String, Object> buildHeaders() { |
|||
Map<String, Object> headers = new HashMap(); |
|||
long timestamp = System.currentTimeMillis(); |
|||
headers.put(PyldConstants.PLAT_HEADER_TIMESTAMP, timestamp); |
|||
headers.put(PyldConstants.PLAT_HEADER_APP_KEY, pyldThirdplatProps.getAppkey()); |
|||
String encryptContent = pyldThirdplatProps.getAppId() + pyldThirdplatProps.getAppkey() + pyldThirdplatProps.getAppSecret() + timestamp; |
|||
headers.put(PyldConstants.PLAT_HEADER_ACCESS_TOKEN, DigestUtils.md5Hex(encryptContent.getBytes(StandardCharsets.UTF_8))); |
|||
return headers; |
|||
} |
|||
|
|||
/** |
|||
* desc: 解析结果 |
|||
* |
|||
* @param thResult |
|||
* @return com.epmet.commons.thirdplat.dto.result.jcet.JcetUserInfoResultDTO |
|||
* @author LiuJanJun |
|||
* @date 2021/2/24 10:11 上午 |
|||
*/ |
|||
private PyldUserInfoResultDTO parseResult(Result<String> thResult) { |
|||
if (!thResult.success()) { |
|||
throw new RenException(EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getCode(), |
|||
EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getMsg().concat(":").concat(thResult.getInternalMsg())); |
|||
} |
|||
JSONObject jcetResult = JSON.parseObject(thResult.getData()); |
|||
Integer code = jcetResult.getInteger("code"); |
|||
String msg = jcetResult.getString("msg"); |
|||
if (code == null || code != 0) { |
|||
throw new RenException(EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getCode(), msg.concat(",错误码:") + code); |
|||
} |
|||
JSONObject data = jcetResult.getJSONObject("data"); |
|||
if (data == null) { |
|||
throw new RenException(EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getCode(), |
|||
EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getMsg().concat(":").concat(PyldConstants.REPONSE_USER_NOT_LOGIN)); |
|||
} |
|||
PyldUserInfoResultDTO userInfo = data.getObject("userInfo", PyldUserInfoResultDTO.class); |
|||
if (userInfo == null || StringUtils.isBlank(userInfo.getMobile()) || StringUtils.isBlank(userInfo.getReserved())) { |
|||
throw new RenException(EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getCode(), |
|||
EpmetErrorCode.THIRD_PLAT_REQUEST_ERROR.getMsg().concat(":").concat(PyldConstants.REPONSE_USER_NOT_LOGIN)); |
|||
} |
|||
return userInfo; |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.commons.thirdplat.constants; |
|||
|
|||
public interface PyldConstants { |
|||
|
|||
String METHOD_CHECK_LOGIN = "/unifiedAuth/loginCheck"; |
|||
|
|||
|
|||
String PLAT_HEADER_TIMESTAMP = "timestamp"; |
|||
String PLAT_HEADER_APP_KEY = "appkey"; |
|||
String PLAT_HEADER_ACCESS_TOKEN = "accessToken"; |
|||
|
|||
|
|||
String PLAT_PARAM_TOKEN = "platformToken"; |
|||
String PLAT_PARAM_MANAGEMENTKEY = "managementKey"; |
|||
String PLAT_PARAM_MANAGEMENTKEY_VALUE = "epmet_work"; |
|||
|
|||
String REPONSE_USER_NOT_LOGIN = "用户未登陆"; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.commons.thirdplat.dto.result.jcet; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
@Data |
|||
public class PyldUserInfoResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 6176427074670949388L; |
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
private String mobile; |
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String reserved; |
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.epmet.commons.thirdplat.properties; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 酒城e通三方平台配置 |
|||
*/ |
|||
@Data |
|||
public class PyldThirdplatProps { |
|||
private String domain; |
|||
private String appId; |
|||
private String appkey; |
|||
private String appSecret; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.commons.tools.utils; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/4 20:49 |
|||
*/ |
|||
@Data |
|||
public class AgencyNode<T> implements Serializable { |
|||
|
|||
private String areaCode; |
|||
|
|||
private String parentAreaCode; |
|||
|
|||
/** |
|||
* 子节点列表 |
|||
*/ |
|||
private List<T> subAgencyList = new ArrayList<>(); |
|||
} |
@ -0,0 +1,73 @@ |
|||
package com.epmet.commons.tools.utils; |
|||
|
|||
|
|||
import com.epmet.commons.tools.validator.AssertUtils; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.LinkedHashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/4 20:49 |
|||
*/ |
|||
public class AgencyTreeUtils { |
|||
|
|||
/** |
|||
* 根据pid,构建树节点 |
|||
*/ |
|||
public static <T extends AgencyNode> List<T> build(List<T> agencyNodes, String parentAreaCode) { |
|||
//pid不能为空
|
|||
AssertUtils.isNull(parentAreaCode, "parentAreaCode"); |
|||
|
|||
List<T> treeList = new ArrayList<>(); |
|||
for (T agencyNode : agencyNodes) { |
|||
if (parentAreaCode.equals(agencyNode.getParentAreaCode())) { |
|||
treeList.add(findChildren(agencyNodes, agencyNode)); |
|||
} |
|||
} |
|||
|
|||
return treeList; |
|||
} |
|||
|
|||
/** |
|||
* 查找子节点 |
|||
*/ |
|||
private static <T extends AgencyNode> T findChildren(List<T> agencyNodes, T rootNode) { |
|||
for (T agencyNode : agencyNodes) { |
|||
if (rootNode.getAreaCode().equals(agencyNode.getParentAreaCode())) { |
|||
rootNode.getSubAgencyList().add(findChildren(agencyNodes, agencyNode)); |
|||
} |
|||
} |
|||
return rootNode; |
|||
} |
|||
|
|||
/** |
|||
* 构建树节点 |
|||
*/ |
|||
public static <T extends AgencyNode> List<T> build(List<T> agencyNodes) { |
|||
List<T> result = new ArrayList<>(); |
|||
|
|||
//list转map
|
|||
Map<String, T> nodeMap = new LinkedHashMap<>(agencyNodes.size()); |
|||
for (T agencyNode : agencyNodes) { |
|||
nodeMap.put(agencyNode.getAreaCode(), agencyNode); |
|||
} |
|||
|
|||
for (T node : nodeMap.values()) { |
|||
T parent = nodeMap.get(node.getParentAreaCode()); |
|||
if (parent != null && !(node.getAreaCode().equals(parent.getAreaCode()))) { |
|||
parent.getSubAgencyList().add(node); |
|||
continue; |
|||
} |
|||
|
|||
result.add(node); |
|||
} |
|||
|
|||
return result; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.dataaggre.dto.govissue.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 描述一下 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/24 12:12 |
|||
*/ |
|||
@Data |
|||
public class IssueInfoDTO { |
|||
private String issueId; |
|||
private String gridId; |
|||
private String topicId; |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.dataaggre.dto.govproject.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 项目分布(实时只适用于e事通客户)入参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/24 11:04 |
|||
*/ |
|||
@Data |
|||
public class ProjectDistributionFormDTO implements Serializable { |
|||
private String gridId; |
|||
@NotBlank(message = "customerId不能为空") |
|||
private String customerId; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.epmet.dataaggre.dto.govproject.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 项目分布(实时只适用于e事通客户)返参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/24 11:05 |
|||
*/ |
|||
@Data |
|||
public class ProjectDistributionResultDTO implements Serializable { |
|||
private String projectId; |
|||
private String projectTitle; |
|||
private String statusDesc; |
|||
private String longitude; |
|||
private String latitude; |
|||
// @JsonIgnore
|
|||
private String issueId; |
|||
// @JsonIgnore
|
|||
private String statusCode; |
|||
private String gridId; |
|||
} |
@ -1,8 +1,14 @@ |
|||
package com.epmet.dataaggre.service.resigroup; |
|||
|
|||
import com.epmet.dataaggre.dto.resigroup.ResiTopicDTO; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/12/25 上午9:21 |
|||
*/ |
|||
public interface ResiGroupService { |
|||
List<ResiTopicDTO> selectTopicInfoByIds(@Param("topicIds") List<String> topicIds); |
|||
} |
|||
|
@ -0,0 +1,142 @@ |
|||
/** |
|||
* 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.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 项目(事件)分类按网格_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-23 |
|||
*/ |
|||
@Data |
|||
public class ScreenProjectCategoryGridDailyDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 日期yyyyMMdd |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 网格所属的组织id |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 网格所有的父级id,以英文:或者英文,隔开 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* e世通中的项目类别编码 |
|||
*/ |
|||
private String epmetCategoryCode; |
|||
|
|||
/** |
|||
* 该分类下所有项目总数 |
|||
*/ |
|||
private Integer projectTotal; |
|||
|
|||
/** |
|||
* 该分类下,正在处理中的项目总数 |
|||
*/ |
|||
private Integer pendingTotal; |
|||
|
|||
/** |
|||
* 该分类下已结案的项目总数 |
|||
*/ |
|||
private Integer closedTotal; |
|||
|
|||
/** |
|||
* 该分类下已结案无需解决的项目总数 |
|||
*/ |
|||
private Integer unResolvedTotal; |
|||
|
|||
/** |
|||
* 该分类下已结案已解决的项目总数 |
|||
*/ |
|||
private Integer resolvedTotal; |
|||
|
|||
/** |
|||
* 该分类下项目结案率 |
|||
*/ |
|||
private BigDecimal closedRatio; |
|||
|
|||
/** |
|||
* 该分类下已结案项目解决率 |
|||
*/ |
|||
private BigDecimal resolvedRatio; |
|||
|
|||
/** |
|||
* 该分类下已结案项目未解决率 |
|||
*/ |
|||
private BigDecimal unResolvedRatio; |
|||
|
|||
/** |
|||
* 删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,147 @@ |
|||
/** |
|||
* 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.dto; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 项目(事件)分类按组织_按天统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-23 |
|||
*/ |
|||
@Data |
|||
public class ScreenProjectCategoryOrgDailyDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 日期yyyyMMdd |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 社区级:community,乡(镇、街道)级:street,区县级: district,市级: city省级:province |
|||
*/ |
|||
private String orgType; |
|||
|
|||
/** |
|||
* 当前orgId所属的上级id |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* orgId所有的父级id,以英文:或者英文,隔开 |
|||
*/ |
|||
private String pids; |
|||
|
|||
/** |
|||
* e世通中的项目类别编码 |
|||
*/ |
|||
private String epmetCategoryCode; |
|||
|
|||
/** |
|||
* 该分类下所有项目总数 |
|||
*/ |
|||
private Integer projectTotal; |
|||
|
|||
/** |
|||
* 该分类下,正在处理中的项目总数 |
|||
*/ |
|||
private Integer pendingTotal; |
|||
|
|||
/** |
|||
* 该分类下已结案的项目总数 |
|||
*/ |
|||
private Integer closedTotal; |
|||
|
|||
/** |
|||
* 该分类下已结案无需解决的项目总数 |
|||
*/ |
|||
private Integer unResolvedTotal; |
|||
|
|||
/** |
|||
* 该分类下已结案已解决的项目总数 |
|||
*/ |
|||
private Integer resolvedTotal; |
|||
|
|||
/** |
|||
* 该分类下项目结案率 |
|||
*/ |
|||
private BigDecimal closedRatio; |
|||
|
|||
/** |
|||
* 该分类下已结案项目解决率 |
|||
*/ |
|||
private BigDecimal resolvedRatio; |
|||
|
|||
/** |
|||
* 该分类下已结案项目未解决率 |
|||
*/ |
|||
private BigDecimal unResolvedRatio; |
|||
|
|||
/** |
|||
* 删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,59 @@ |
|||
/** |
|||
* 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.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 项目(事件)数量分析按组织_按月统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Data |
|||
public class ScreenProjectQuantityOrgMonthlyDTO implements Serializable { |
|||
private static final long serialVersionUID = 6821188282305837207L; |
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 日期yyyyMMdd |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 当前组织内,本月新增的项目数量:转项目日期在当前月份内 |
|||
*/ |
|||
private Integer projectIncr; |
|||
|
|||
/** |
|||
* 截止到当前月份:累计项目总数 |
|||
*/ |
|||
private Integer projectTotal; |
|||
|
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.dto.form.screen; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2021/2/23 15:26 |
|||
*/ |
|||
@Data |
|||
public class CategoryAnalysisFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -3088762710988337423L; |
|||
|
|||
public interface CategoryAnalysis{} |
|||
|
|||
@NotBlank(message = "组织ID不能为空",groups = {CategoryAnalysis.class}) |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.dto.form.screen; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 【事件分析】效率分析 入参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/1 18:27 |
|||
*/ |
|||
@Data |
|||
public class EfficiencyAnalysisFormDTO extends ScreenCommonFormDTO{ |
|||
/** |
|||
* 网格:grid; 街道:street |
|||
*/ |
|||
@NotBlank(message = "type不能为空:网格:grid; 街道:street") |
|||
private String type; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.form.screen; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 近12个月【事件分析】月度数量分析 入参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/1 16:34 |
|||
*/ |
|||
@Data |
|||
public class QueryQuantityMonthlyFormDTO extends ScreenCommonFormDTO{ |
|||
private static final long serialVersionUID = 8848067533647648347L; |
|||
|
|||
/** |
|||
* 每月项目增量:incr;累计项目数量:sum |
|||
*/ |
|||
@NotBlank(message = "type不能为空:每月项目增量:incr;累计项目数量:sum") |
|||
private String type ; |
|||
|
|||
/** |
|||
* 截止到某月格式:yyyyMM;可为空 |
|||
*/ |
|||
private String endMonthId; |
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.dto.form.screen; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
|
|||
/** |
|||
* 大屏通用入参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
*/ |
|||
@Data |
|||
public class ScreenCommonFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -5959152175751211940L; |
|||
/** |
|||
* 来源于请求头中的customerId |
|||
*/ |
|||
private String customerId; |
|||
/** |
|||
* 当前要查询的组织id |
|||
*/ |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,49 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 组织机构信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-08-21 |
|||
*/ |
|||
@Data |
|||
public class ScreenCustomerAgencyDTO implements Serializable { |
|||
private static final long serialVersionUID = 6328123559936824470L; |
|||
/** |
|||
* 客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 组织id |
|||
*/ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织名称 |
|||
*/ |
|||
private String agencyName; |
|||
|
|||
/** |
|||
* 机关级别(社区级:community, |
|||
乡(镇、街道)级:street, |
|||
区县级: district, |
|||
市级: city |
|||
省级:province) |
|||
*/ |
|||
private String level; |
|||
|
|||
/** |
|||
* 行政地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
|
|||
/** |
|||
* 当前组织的上级行政地区编码add0204;举例平阴县对应的是济南市3701 |
|||
*/ |
|||
private String parentAreaCode; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.dto.result.commonservice; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 003、新增街道或者社区地区编码 入参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/5 17:39 |
|||
*/ |
|||
@Data |
|||
public class AddAreaCodeDictResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 7505566589581480619L; |
|||
private String code; |
|||
|
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.epmet.dto.result.plugins; |
|||
|
|||
import com.epmet.commons.tools.utils.AgencyNode; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 008、当前用户的数据权限(多客户版本) 返参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/3 20:33 |
|||
*/ |
|||
@Data |
|||
public class AgencyNodeDTO extends AgencyNode<AgencyNodeDTO> implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3745920378557792529L; |
|||
/** |
|||
* 直属机关Id |
|||
* */ |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 直属机关名称 |
|||
* */ |
|||
private String agencyName; |
|||
|
|||
/** |
|||
* 机关级别(社区级:community, 乡(镇、街道)级:street, 区县级: district, 市级: city 省级:province) |
|||
* */ |
|||
private String level; |
|||
|
|||
/** |
|||
* 当前agencyId所属的客户id add02.03 |
|||
* */ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 直属机关直属网格列表 |
|||
* */ |
|||
private List<GridNodeDTO> gridList = new ArrayList<>(); |
|||
|
|||
/** |
|||
* 直属机关直属部门列表 |
|||
* */ |
|||
private List<DeptNodeDTO> departmentList = new ArrayList<>(); |
|||
|
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.epmet.dto.result.plugins; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 【146体系】竞标管理-列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/1/22 13:37 |
|||
*/ |
|||
@Data |
|||
public class BidInfoResultDTO { |
|||
private String bidName; |
|||
private String statusDesc; |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.dto.result.plugins; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 【146体系】合同监督-列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/1/22 13:30 |
|||
*/ |
|||
@Data |
|||
public class ContractResultDTO { |
|||
private String contractListName; |
|||
@JsonFormat(pattern = "yyyy.MM.dd", timezone = "GMT+8") |
|||
private Date dueDate; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.dto.result.plugins; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 部门信息 |
|||
* @ClassName ExtDeptResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-08-17 17:16 |
|||
*/ |
|||
@Data |
|||
public class DeptNodeDTO implements Serializable { |
|||
private static final long serialVersionUID = 1792371558965832432L; |
|||
|
|||
/** |
|||
* 部门Id |
|||
* */ |
|||
private String deptId; |
|||
|
|||
/** |
|||
* 部门名称 |
|||
* */ |
|||
private String deptName; |
|||
|
|||
/** |
|||
* 当前deptId所属的customerId add02.03 |
|||
* */ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 当前deptId对应的地区编码 add02.03 |
|||
* */ |
|||
private String areaCode; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.dto.result.plugins; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 008、当前用户的数据权限(多客户版本) 返参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/3 20:33 |
|||
*/ |
|||
@Data |
|||
public class GridNodeDTO implements Serializable { |
|||
private static final long serialVersionUID = -4531574240525562587L; |
|||
|
|||
/** |
|||
* 网格Id |
|||
* */ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 网格名称 |
|||
* */ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 当前gridId所属的客户id add02.03 |
|||
* */ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 当前gridId对应的地区编码 add02.03 |
|||
* */ |
|||
private String areaCode; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.epmet.dto.result.plugins; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 【146体系】清单列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/1/22 13:23 |
|||
*/ |
|||
@Data |
|||
public class OneListResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -1578923862757670664L; |
|||
private String listName; |
|||
private String listId; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.dto.result.screen; |
|||
|
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2021/2/23 15:28 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class CategoryAnalysisResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 4500337306142206855L; |
|||
/** |
|||
* 类别名称 |
|||
*/ |
|||
private String categoryName; |
|||
/** |
|||
* 项目总数 |
|||
*/ |
|||
private Integer projectTotal; |
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.epmet.dto.result.screen; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* 【事件分析】效率分析 返参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/1 18:23 |
|||
*/ |
|||
@Data |
|||
public class EfficiencyAnalysisResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 7291513498972998552L; |
|||
|
|||
/** |
|||
* 可能是网格名,也可能是组织名 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 解决率: 带%:90.74% |
|||
*/ |
|||
private String resolvedRatioStr; |
|||
|
|||
/** |
|||
* 解决率数值 90.74 |
|||
*/ |
|||
private BigDecimal resolvedRatio; |
|||
|
|||
/** |
|||
* 方便查找日志 |
|||
*/ |
|||
private String customerId; |
|||
private String agencyId; |
|||
private String gridId; |
|||
private String dateId; |
|||
} |
@ -0,0 +1,40 @@ |
|||
package com.epmet.dto.result.screen; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* 【事件分析】数量统计查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/1/29 16:39 |
|||
*/ |
|||
@Data |
|||
public class ProjectQuantityResultDTO { |
|||
/** |
|||
* 事件总数 |
|||
*/ |
|||
private Integer projectTotal; |
|||
|
|||
/** |
|||
* 已解决数 |
|||
*/ |
|||
private Integer resolvedNum; |
|||
|
|||
/** |
|||
* 解决率,带%号的字符串 |
|||
*/ |
|||
private String resolvedRatio; |
|||
|
|||
/** |
|||
* 事件总数,带%号的字符串 |
|||
*/ |
|||
private String satisfactionRatio; |
|||
|
|||
/** |
|||
* 方便查找日志 |
|||
*/ |
|||
private String customerId; |
|||
private String agencyId; |
|||
private String dateId; |
|||
|
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.dto.result.screen; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 近12个月【事件分析】月度数量分析 返参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/1 16:57 |
|||
*/ |
|||
@Data |
|||
public class QueryQuantityMonthlyResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -9214182002720799008L; |
|||
|
|||
/** |
|||
* 横坐标集合 |
|||
*/ |
|||
private List<String> xAxis; |
|||
|
|||
/** |
|||
* 每个月的项目增量或者累计数量,根据入参type决定 |
|||
*/ |
|||
private List<Integer> yAxis; |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.epmet.feign; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.result.plugins.AgencyNodeDTO; |
|||
import com.epmet.feign.impl.DataReportOpenFeignClientFallBack; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
|
|||
/** |
|||
* 本服务对外开放的API,其他服务通过引用此client调用该服务 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/3 22:05 |
|||
*/ |
|||
// @FeignClient(name = ServiceConstant.DATA_REPORT_SERVER, fallback = DataReportOpenFeignClientFallBack.class,url = "localhost:8109")
|
|||
@FeignClient(name = ServiceConstant.DATA_REPORT_SERVER, fallback = DataReportOpenFeignClientFallBack.class) |
|||
public interface DataReportOpenFeignClient { |
|||
/** |
|||
* @param agencyId |
|||
* @description 查询当前组织及下级组织树 |
|||
* @Date 2021/2/3 22:05 |
|||
**/ |
|||
@GetMapping("/data/report/screen/agency/querystaffagencytree/{agencyId}") |
|||
Result<AgencyNodeDTO> queryStaffAgencyTree(@PathVariable("agencyId") String agencyId); |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.feign.impl; |
|||
|
|||
import com.epmet.commons.tools.constant.ServiceConstant; |
|||
import com.epmet.commons.tools.utils.ModuleUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.result.plugins.AgencyNodeDTO; |
|||
import com.epmet.feign.DataReportOpenFeignClient; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
@Component |
|||
public class DataReportOpenFeignClientFallBack implements DataReportOpenFeignClient { |
|||
/** |
|||
* @param agencyId |
|||
* @description 查询当前组织及下级组织树 |
|||
* @Date 2021/2/3 22:05 |
|||
**/ |
|||
@Override |
|||
public Result<AgencyNodeDTO> queryStaffAgencyTree(String agencyId) { |
|||
return ModuleUtils.feignConError(ServiceConstant.DATA_REPORT_SERVER, "queryStaffAgencyTree",agencyId); |
|||
} |
|||
} |
@ -0,0 +1,127 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 工作日志资源字典表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-23 |
|||
*/ |
|||
@Data |
|||
public class ScreenCustomerWorkRecordDictDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键(客户每次上传,直接根据customerId全删全增) |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 数据更新至日期eg:20200101 |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 资源id |
|||
*/ |
|||
private String dictId; |
|||
|
|||
/** |
|||
* 父资源ID;如果是一级分类pid=0 |
|||
*/ |
|||
private String pid; |
|||
|
|||
/** |
|||
* 资源类型 |
|||
*/ |
|||
private String resourceType; |
|||
|
|||
/** |
|||
* 资源编码 |
|||
*/ |
|||
private String resourceCode; |
|||
|
|||
/** |
|||
* 资源标签名 |
|||
*/ |
|||
private String resourceLabel; |
|||
|
|||
/** |
|||
* 显示标识:0否,1是 |
|||
*/ |
|||
private String showFlag; |
|||
|
|||
/** |
|||
* 排序 |
|||
*/ |
|||
private Integer sort; |
|||
|
|||
/** |
|||
* 数据类别 :party:支部建设; union:联合建设;党员志愿服务:voluntaryservice;所有的一级分类需要对应到这三个key中 |
|||
*/ |
|||
private String dataType; |
|||
|
|||
/** |
|||
* 当前资源属于几级,例如:1、2、3、4.... |
|||
*/ |
|||
private Integer level; |
|||
|
|||
/** |
|||
* 逻辑删除标识 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,117 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 工作日志-组织按日统计(累计值) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-23 |
|||
*/ |
|||
@Data |
|||
public class ScreenWorkRecordOrgDailyDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 日期Id:yyyyMMdd |
|||
*/ |
|||
private String dateId; |
|||
|
|||
/** |
|||
* 组织Idor网格id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织名称或者网格名 |
|||
*/ |
|||
private String orgName; |
|||
|
|||
/** |
|||
* 会议类型编码;对应screen_customer_work_record_dict的资源编码 |
|||
*/ |
|||
private String meetingCode; |
|||
|
|||
/** |
|||
* 随手记类型编码;对应screen_customer_work_record_dict的资源编码 |
|||
*/ |
|||
private String typeCode; |
|||
|
|||
/** |
|||
* 组织次数 |
|||
*/ |
|||
private Integer organizeTotal; |
|||
|
|||
/** |
|||
* 参与人数 |
|||
*/ |
|||
private Integer participateUserTotal; |
|||
|
|||
/** |
|||
* 平均参与人数 |
|||
*/ |
|||
private Integer avgParticipateUserTotal; |
|||
|
|||
/** |
|||
* 删除标识 0未删除;1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,117 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 工作日志-组织按月统计(增量) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-23 |
|||
*/ |
|||
@Data |
|||
public class ScreenWorkRecordOrgMonthlyDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* ID 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 月份Id:yyyyMM |
|||
*/ |
|||
private String monthId; |
|||
|
|||
/** |
|||
* 组织Idor网格id |
|||
*/ |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织名称或者网格名 |
|||
*/ |
|||
private String orgName; |
|||
|
|||
/** |
|||
* 会议类型编码;对应screen_customer_work_record_dict的资源编码 |
|||
*/ |
|||
private String meetingCode; |
|||
|
|||
/** |
|||
* 随手记类型编码;对应screen_customer_work_record_dict的资源编码 |
|||
*/ |
|||
private String typeCode; |
|||
|
|||
/** |
|||
* 组织次数 |
|||
*/ |
|||
private Integer organizeTotal; |
|||
|
|||
/** |
|||
* 参与人数 |
|||
*/ |
|||
private Integer participateUserTotal; |
|||
|
|||
/** |
|||
* 平均参与人数 |
|||
*/ |
|||
private Integer avgParticipateUserTotal; |
|||
|
|||
/** |
|||
* 删除标识 0未删除;1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.epmet.plugins.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 5、【工作日志】本机及下级排名 通用入参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/23 23:08 |
|||
*/ |
|||
@Data |
|||
public class WorkRecordRankFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2934835714413031036L; |
|||
/** |
|||
* party:支部建设; union:联建共建;党员志愿服务:voluntaryservice |
|||
*/ |
|||
@NotBlank(message = "dataType不能为空;可选值:party:支部建设; union:联建共建;党员志愿服务:voluntaryservice") |
|||
private String dataType; |
|||
|
|||
/** |
|||
* 当前组织id |
|||
*/ |
|||
@NotBlank(message = "agencyId不能为空") |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 默认显示前3 |
|||
*/ |
|||
@NotNull(message = "topRow不能为空") |
|||
private Integer topRow; |
|||
|
|||
@NotBlank(message = "customerId不能为空") |
|||
private String customerId; |
|||
} |
@ -0,0 +1,46 @@ |
|||
package com.epmet.plugins.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 6、【工作日志】近12月趋势图 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class WorkRecordTrendFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -2934835714413031036L; |
|||
/** |
|||
* party:支部建设; union:联建共建;党员志愿服务:voluntaryservice |
|||
*/ |
|||
@NotBlank(message = "dataType不能为空;可选值:party:支部建设; union:联建共建;党员志愿服务:voluntaryservice") |
|||
private String dataType; |
|||
|
|||
/** |
|||
* 当前组织id |
|||
*/ |
|||
@NotBlank(message = "agencyId不能为空") |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 组织次数:organize;参与人数:joinuser;平均参与人数:avguser |
|||
*/ |
|||
@NotBlank(message = "type不能为空") |
|||
private String type; |
|||
|
|||
@NotBlank(message = "customerId不能为空") |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 查询数据起始月份Id |
|||
*/ |
|||
private String startMonth; |
|||
|
|||
/** |
|||
* 查询数据结束月份Id |
|||
*/ |
|||
private String endMonth; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.plugins.result; |
|||
|
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 5、【工作日志】本机及下级排名 返参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/23 23:11 |
|||
*/ |
|||
@AllArgsConstructor |
|||
@Data |
|||
public class WorkRecordRankResultDTO implements Serializable { |
|||
/** |
|||
* 总参与人数 |
|||
*/ |
|||
private Integer participateUserTotal; |
|||
|
|||
/** |
|||
*组织次数 |
|||
*/ |
|||
private Integer participateTotal; |
|||
|
|||
/** |
|||
*下级排行列表 |
|||
*/ |
|||
private List<WorkRecordSubRank> subRankList; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.epmet.plugins.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 下级排行列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/23 23:21 |
|||
*/ |
|||
@Data |
|||
public class WorkRecordSubRank implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -2450978606865910110L; |
|||
|
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织名称或者是网格名称 |
|||
*/ |
|||
private String name; |
|||
|
|||
/** |
|||
* 总参与人数 |
|||
*/ |
|||
private Integer participateUserTotal; |
|||
|
|||
/** |
|||
* 组织次数 |
|||
*/ |
|||
private Integer participateTotal; |
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.epmet.plugins.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 6、【工作日志】近12月趋势图 |
|||
* |
|||
* @author sun |
|||
*/ |
|||
@Data |
|||
public class WorkRecordTrendResultDTO implements Serializable { |
|||
/** |
|||
* 横轴 过去十二个月份 |
|||
* ['1月', '2月', '3月', '4月', '5月','6月','7月','8月','9月','10月','11月','12月'] |
|||
*/ |
|||
private List<String> xAxis; |
|||
/** |
|||
* 资源标签名 |
|||
* ['三会一课', '主题党日', '三述专题', '志愿服务', '党内关怀'] |
|||
*/ |
|||
private List<String> legend; |
|||
|
|||
/** |
|||
*各项资源对应数据对象 |
|||
*/ |
|||
private List<WorkRecordTrendResultDTO.SeriesResultDTO> series; |
|||
|
|||
@Data |
|||
public static class SeriesResultDTO { |
|||
/** |
|||
* 资源标签名 |
|||
* ['三会一课', '主题党日', '三述专题', '志愿服务', '党内关怀'] |
|||
*/ |
|||
private String name; |
|||
/** |
|||
* 各项资源对应12月份数据 |
|||
*/ |
|||
private List<Integer> data; |
|||
/** |
|||
* 数据对应的月份Id |
|||
*/ |
|||
@JsonIgnore |
|||
private String monthId; |
|||
/** |
|||
* 各项资源对应某一月份数据 |
|||
*/ |
|||
@JsonIgnore |
|||
private Integer value; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
package com.epmet.datareport.controller.plugins; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.datareport.service.plugins.OfsService; |
|||
import com.epmet.dto.result.plugins.BidInfoResultDTO; |
|||
import com.epmet.dto.result.plugins.ContractResultDTO; |
|||
import com.epmet.dto.result.plugins.OneListResultDTO; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestHeader; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 146体系数据查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/1/22 12:58 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("plugins/ofs") |
|||
public class OfsController { |
|||
@Autowired |
|||
private OfsService ofsService; |
|||
|
|||
/** |
|||
* @param customerId |
|||
* @author yinzuomei |
|||
* @description 【146体系】清单列表 |
|||
* @Date 2021/1/22 13:36 |
|||
**/ |
|||
@PostMapping("list") |
|||
public Result<List<OneListResultDTO>> oneList(@RequestHeader("CustomerId") String customerId){ |
|||
if(StringUtils.isNotBlank(customerId)){ |
|||
return new Result().ok(ofsService.queryOneList(customerId)); |
|||
} |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @param customerId |
|||
* @author yinzuomei |
|||
* @description 【146体系】合同监督-列表 |
|||
* @Date 2021/1/22 13:36 |
|||
**/ |
|||
@PostMapping("contractlist") |
|||
public Result<List<ContractResultDTO>> queryContractList(@RequestHeader("CustomerId") String customerId){ |
|||
if(StringUtils.isNotBlank(customerId)){ |
|||
return new Result().ok(ofsService.queryContractList(customerId)); |
|||
} |
|||
return new Result(); |
|||
} |
|||
|
|||
@PostMapping("bidlist") |
|||
public Result<List<BidInfoResultDTO>> bidList(@RequestHeader("CustomerId") String customerId){ |
|||
if(StringUtils.isNotBlank(customerId)){ |
|||
return new Result().ok(ofsService.queryBidList(customerId)); |
|||
} |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.epmet.datareport.controller.plugins; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.datareport.service.plugins.ScreenWorkRecordOrgDailyService; |
|||
import com.epmet.plugins.form.WorkRecordRankFormDTO; |
|||
import com.epmet.plugins.form.WorkRecordTrendFormDTO; |
|||
import com.epmet.plugins.result.WorkRecordRankResultDTO; |
|||
import com.epmet.plugins.result.WorkRecordTrendResultDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* 大屏工作日志相关输出接口 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2021/2/21 19:51 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("screen/plugins/workrecord") |
|||
public class WorkRecordController { |
|||
@Autowired |
|||
private ScreenWorkRecordOrgDailyService screenWorkRecordOrgDailyService; |
|||
//todo 工作日志是否要添加area_code、parent_area_code、orgType;插件是否可以提供;也可以采集的时候赋值
|
|||
//5、【工作日志】本机及下级排名
|
|||
//NEI接口地址:https://nei.netease.com/interface/detail/?pid=57068&id=348966
|
|||
//返参中的当前组织的参与人数、组织次数 直接sum所有下级的值;
|
|||
//下级根据当前组织的areaCode查询下级列表,再去查询screen_work_record_org_daily
|
|||
//legend来源于screen_customer_work_record_dict表 level=2,dataType=party
|
|||
|
|||
@PostMapping("ranklist") |
|||
public Result<WorkRecordRankResultDTO> rankList(@RequestHeader("CustomerId")String customerId, @RequestBody WorkRecordRankFormDTO formDTO){ |
|||
formDTO.setCustomerId(customerId); |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
return new Result<WorkRecordRankResultDTO>().ok(screenWorkRecordOrgDailyService.rankList(formDTO)); |
|||
} |
|||
|
|||
|
|||
//6、【工作日志】近12月趋势图
|
|||
//NEI接口地址:https://nei.netease.com/interface/detail/?pid=57068&id=348967
|
|||
//可以下级组织+下级网格 orgId 直接 in
|
|||
/** |
|||
* @Description 6、【工作日志】近12月趋势图 |
|||
* @author sun |
|||
*/ |
|||
@PostMapping("trend") |
|||
public Result<WorkRecordTrendResultDTO> trend(@RequestHeader("CustomerId")String customerId, @RequestBody WorkRecordTrendFormDTO formDTO){ |
|||
formDTO.setCustomerId(customerId); |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
return new Result<WorkRecordTrendResultDTO>().ok(screenWorkRecordOrgDailyService.trend(formDTO)); |
|||
} |
|||
} |
@ -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.evaluationindex.screen; |
|||
|
|||
import com.epmet.dto.result.screen.CategoryAnalysisResultDTO; |
|||
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 2021-02-23 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenProjectCategoryOrgDailyDao { |
|||
/** |
|||
* 类型分析 |
|||
* @author zhaoqifeng |
|||
* @date 2021/2/23 16:47 |
|||
* @param agencyId |
|||
* @return java.util.List<com.epmet.dto.result.screen.CategoryAnalysisResultDTO> |
|||
*/ |
|||
List<CategoryAnalysisResultDTO> selectCategoryAnalysis(@Param("agencyId") String agencyId, @Param("dateId") String dateId); |
|||
} |
@ -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.evaluationindex.screen; |
|||
|
|||
import com.epmet.dto.result.screen.EfficiencyAnalysisResultDTO; |
|||
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 2021-01-27 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenProjectGridDailyDao{ |
|||
|
|||
/** |
|||
* @param customerId |
|||
* @param areaCode |
|||
* @author yinzuomei |
|||
* @description 下级网格的效率(解决率)列表 |
|||
**/ |
|||
List<EfficiencyAnalysisResultDTO> queryGridEfficiencyAnalysis(@Param("customerId") String customerId, @Param("areaCode") String areaCode); |
|||
} |
@ -0,0 +1,48 @@ |
|||
/** |
|||
* 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.evaluationindex.screen; |
|||
|
|||
import com.epmet.dto.result.screen.EfficiencyAnalysisResultDTO; |
|||
import com.epmet.dto.result.screen.ProjectQuantityResultDTO; |
|||
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 2021-01-27 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenProjectOrgDailyDao { |
|||
|
|||
/** |
|||
* @author yinzuomei |
|||
* @description 【事件分析】数量统计查询 |
|||
**/ |
|||
ProjectQuantityResultDTO queryQuantity(@Param("customerId") String customerId, @Param("agencyId")String agencyId); |
|||
|
|||
/** |
|||
* @param areaCode |
|||
* @author yinzuomei |
|||
* @description 下级组织的效率(解决率)列表 |
|||
**/ |
|||
List<EfficiencyAnalysisResultDTO> queryEfficiencyAnalysis(@Param("customerId")String customerId,@Param("areaCode") String areaCode); |
|||
} |
@ -0,0 +1,32 @@ |
|||
/** |
|||
* 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.evaluationindex.screen; |
|||
|
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 项目(事件)数量分析按网格_按月统计 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-27 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenProjectQuantityGridMonthlyDao { |
|||
|
|||
|
|||
} |
@ -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.evaluationindex.screen; |
|||
|
|||
import com.epmet.dto.ScreenProjectQuantityOrgMonthlyDTO; |
|||
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 2021-01-27 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenProjectQuantityOrgMonthlyDao { |
|||
|
|||
/** |
|||
* @return java.util.List<com.epmet.dto.ScreenProjectQuantityOrgMonthlyDTO> |
|||
* @param customerId 当前客户id |
|||
* @param agencyId 当前要查询的组织 |
|||
* @param endMonthId 截止月份yyyyMM |
|||
* @author yinzuomei |
|||
* @description 近12个月【事件分析】月度数量分析 |
|||
**/ |
|||
List<ScreenProjectQuantityOrgMonthlyDTO> selectList(@Param("customerId") String customerId, @Param("agencyId")String agencyId, @Param("endMonthId")String endMonthId); |
|||
} |
@ -0,0 +1,36 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import com.epmet.dto.result.plugins.BidInfoResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 146:竞标管理 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-22 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenBidInfoDao{ |
|||
|
|||
|
|||
List<BidInfoResultDTO> selectList(String customerId); |
|||
} |
@ -0,0 +1,35 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import com.epmet.dto.result.plugins.ContractResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 146:合同基本信息 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-22 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenContractInfoDao { |
|||
|
|||
List<ContractResultDTO> selectList(String customerId); |
|||
} |
@ -0,0 +1,37 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.datareport.entity.plugins.ScreenCustomerWorkRecordDictEntity; |
|||
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 2021-02-23 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenCustomerWorkRecordDictDao extends BaseDao<ScreenCustomerWorkRecordDictEntity> { |
|||
|
|||
List<String> selectListByDataType(@Param("customerId") String customerId, @Param("dataType") String dataType); |
|||
} |
@ -0,0 +1,35 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import com.epmet.dto.result.plugins.OneListResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 146:一张清单列表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-01-22 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenListInfoDao { |
|||
|
|||
List<OneListResultDTO> selectList(String customerId); |
|||
} |
@ -0,0 +1,57 @@ |
|||
/** |
|||
* 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.plugins; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.datareport.entity.plugins.ScreenWorkRecordOrgDailyEntity; |
|||
import com.epmet.plugins.result.WorkRecordRankResultDTO; |
|||
import com.epmet.plugins.result.WorkRecordSubRank; |
|||
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 2021-02-23 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenWorkRecordOrgDailyDao extends BaseDao<ScreenWorkRecordOrgDailyEntity> { |
|||
/** |
|||
* @param areaCode 当前组织对应的areaCode; |
|||
* @param dataType |
|||
* @param topRow |
|||
* @return com.epmet.plugins.result.WorkRecordRankResultDTO |
|||
* @author yinzuomei |
|||
* @description 5、【工作日志】本机及下级排名 |
|||
* @Date 2021/2/23 23:37 |
|||
**/ |
|||
List<WorkRecordSubRank> selectSubList(@Param("areaCode") String areaCode, |
|||
@Param("agencyId") String agencyId, |
|||
@Param("dataType") String dataType, |
|||
@Param("topRow") Integer topRow, |
|||
@Param("dateId")String dateId); |
|||
|
|||
String selectLatestDateId(String customerId); |
|||
|
|||
WorkRecordRankResultDTO selectCurrentAgency(@Param("areaCode") String areaCode, |
|||
@Param("dataType") String dataType, |
|||
@Param("dateId")String dateId); |
|||
} |
@ -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.plugins; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.datareport.entity.plugins.ScreenWorkRecordOrgMonthlyEntity; |
|||
import com.epmet.plugins.form.WorkRecordTrendFormDTO; |
|||
import com.epmet.plugins.result.WorkRecordTrendResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作日志-组织按月统计(增量) |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-02-23 |
|||
*/ |
|||
@Mapper |
|||
public interface ScreenWorkRecordOrgMonthlyDao extends BaseDao<ScreenWorkRecordOrgMonthlyEntity> { |
|||
|
|||
/** |
|||
* @Description 按组织查询某项数据近12月趋势图 |
|||
* @author sun |
|||
*/ |
|||
List<WorkRecordTrendResultDTO.SeriesResultDTO> selectMonthList(WorkRecordTrendFormDTO formDTO); |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue