181 changed files with 5555 additions and 321 deletions
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -1,70 +0,0 @@ |
|||||
package com.epmet.commons.tools.enums; |
|
||||
|
|
||||
import com.epmet.commons.tools.utils.SpringContextUtils; |
|
||||
import org.springframework.core.env.Environment; |
|
||||
|
|
||||
/** |
|
||||
* 系统环境变量枚举类 |
|
||||
* dev|test|prod |
|
||||
* |
|
||||
* @author jianjun liu |
|
||||
* @date 2020-07-03 11:14 |
|
||||
**/ |
|
||||
public enum KongCunCustomerEnvEnum { |
|
||||
/** |
|
||||
* 环境变量枚举 |
|
||||
*/ |
|
||||
DEV("dev", "开发环境", "613cc61a6b8ce4c70d21bd413dac72cc"), |
|
||||
TEST("test", "体验环境", "b272625617e53620b2b3cbc65d1ecbbb"), |
|
||||
PROD("prod", "生产环境", "6f203e30de1a65aab7e69c058826cd80"), |
|
||||
UN_KNOWN("prod", "生产环境", "6f203e30de1a65aab7e69c058826cd80") |
|
||||
; |
|
||||
|
|
||||
private String code; |
|
||||
private String name; |
|
||||
private String customerId; |
|
||||
|
|
||||
|
|
||||
|
|
||||
KongCunCustomerEnvEnum(String code, String name, String customerId) { |
|
||||
this.code = code; |
|
||||
this.name = name; |
|
||||
this.customerId = customerId; |
|
||||
} |
|
||||
|
|
||||
public static KongCunCustomerEnvEnum getEnum(String code) { |
|
||||
KongCunCustomerEnvEnum[] values = KongCunCustomerEnvEnum.values(); |
|
||||
for (KongCunCustomerEnvEnum value : values) { |
|
||||
if (value.getCode().equals(code)) { |
|
||||
return value; |
|
||||
} |
|
||||
} |
|
||||
return KongCunCustomerEnvEnum.UN_KNOWN; |
|
||||
} |
|
||||
|
|
||||
public static KongCunCustomerEnvEnum getCurrentEnv(){ |
|
||||
try { |
|
||||
Environment environment = SpringContextUtils.getBean(Environment.class); |
|
||||
String[] activeProfiles = environment.getActiveProfiles(); |
|
||||
if (activeProfiles.length > 0) { |
|
||||
return getEnum(activeProfiles[0]); |
|
||||
} |
|
||||
} catch (Exception e) { |
|
||||
e.printStackTrace(); |
|
||||
} |
|
||||
return KongCunCustomerEnvEnum.UN_KNOWN; |
|
||||
} |
|
||||
|
|
||||
|
|
||||
public String getCode() { |
|
||||
return code; |
|
||||
} |
|
||||
|
|
||||
public String getName() { |
|
||||
return name; |
|
||||
} |
|
||||
|
|
||||
public String getCustomerId(){ |
|
||||
return customerId; |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,38 @@ |
|||||
|
/** |
||||
|
* Copyright (c) 2018 人人开源 All rights reserved. |
||||
|
* |
||||
|
* https://www.renren.io
|
||||
|
* |
||||
|
* 版权所有,侵权必究! |
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.commons.tools.utils; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 树节点,所有需要实现树节点的,都需要继承该类 |
||||
|
* |
||||
|
* @author Mark sunlightcs@gmail.com |
||||
|
* @since 1.0.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TreeAreaCodeNode<T> extends TreeStringNode<T> implements Serializable { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
/** |
||||
|
* 主键 |
||||
|
*/ |
||||
|
private String areaCode; |
||||
|
/** |
||||
|
* 上级ID |
||||
|
*/ |
||||
|
private String parentAreaCode; |
||||
|
/** |
||||
|
* 子节点列表 |
||||
|
*/ |
||||
|
private List<T> children = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,27 @@ |
|||||
|
package com.epmet.dataaggre.dto.app.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 查询底部footBar信息(两端通用) |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/7/27 18:54 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppFootBarFormDTO implements Serializable { |
||||
|
public interface AddUserInternalGroup {} |
||||
|
/** |
||||
|
* 产品配置:default; 客户定制化里面就传客户id |
||||
|
*/ |
||||
|
@NotBlank(message = "customerId不能为空",groups = AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
/** |
||||
|
* 工作端:gov;居民端resi |
||||
|
*/ |
||||
|
@NotBlank(message = "appType不能为空",groups = AddUserInternalGroup.class) |
||||
|
private String appType; |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
package com.epmet.dataaggre.dto.app.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 查询底部footBar信息(两端通用) |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/7/27 19:00 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class AppFootBarResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -2219461245919203814L; |
||||
|
|
||||
|
/** |
||||
|
* 水平:flat;浮起:float |
||||
|
*/ |
||||
|
private String pattern; |
||||
|
/** |
||||
|
* 默认返回0,如果是浮起模式且是奇数,返回是footBarList的索引 |
||||
|
*/ |
||||
|
private Integer highLightNum; |
||||
|
|
||||
|
|
||||
|
private List<CustomerFootBarDTO> footBarList; |
||||
|
|
||||
|
/** |
||||
|
* 是否是奇数,true:是奇数 |
||||
|
*/ |
||||
|
private Boolean isOddNum; |
||||
|
|
||||
|
/** |
||||
|
* 是否都上传了图标,true:都上传了 |
||||
|
*/ |
||||
|
// private Boolean bothUploaded;
|
||||
|
} |
@ -0,0 +1,49 @@ |
|||||
|
package com.epmet.dataaggre.dto.app.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 查询底部footBar信息(两端通用) |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/7/27 19:01 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CustomerFootBarDTO implements Serializable { |
||||
|
/** |
||||
|
* KEY |
||||
|
*/ |
||||
|
private String barKey; |
||||
|
|
||||
|
/** |
||||
|
* bar名称 |
||||
|
*/ |
||||
|
private String barName; |
||||
|
|
||||
|
/** |
||||
|
* 页面标题 |
||||
|
*/ |
||||
|
private String pageTitle; |
||||
|
|
||||
|
/** |
||||
|
* 图标路径 |
||||
|
*/ |
||||
|
private String iconPath; |
||||
|
|
||||
|
/** |
||||
|
* 选中页面图标路径 |
||||
|
*/ |
||||
|
private String selectedIconPath; |
||||
|
|
||||
|
/** |
||||
|
* 凸起时图标路径 |
||||
|
*/ |
||||
|
private String floatIconPath; |
||||
|
|
||||
|
/** |
||||
|
* 客户id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础参数实体类 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BaseDataFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 6766797386944333123L; |
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空",groups = {BaseDataFormDTO.BaseData.class, AgencyIdAndLevel.class}) |
||||
|
private String agencyId; |
||||
|
@NotBlank(message = "组织级别不能为空",groups = AgencyIdAndLevel.class) |
||||
|
private String agencyLevel; |
||||
|
private String type; |
||||
|
/** |
||||
|
* 日维度Id |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
private String startDateId; |
||||
|
private String endDateId; |
||||
|
public interface BaseData extends CustomerClientShowGroup{} |
||||
|
public interface AgencyIdAndLevel extends CustomerClientShowGroup{} |
||||
|
|
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 对外接口-查询下级话题和小组数-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubTopicAndGroupFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 当前组织id;从组织树取 |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空", groups = SubTopicAndGroupFormDTO.Agency.class) |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 当前组织级别;从组织树取 |
||||
|
* 机关级别(社区级:community, |
||||
|
* 乡(镇、街道)级:street, |
||||
|
* 区县级: district, |
||||
|
* 市级: city |
||||
|
* 省级:province) |
||||
|
*/ |
||||
|
@NotBlank(message = "组织级别不能为空", groups = SubTopicAndGroupFormDTO.Agency.class) |
||||
|
private String agencyLevel; |
||||
|
/** |
||||
|
* 日维度Id【yyyyMMdd eg:20210808,默认前一天】 |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
public interface Agency extends CustomerClientShowGroup{} |
||||
|
|
||||
|
} |
@ -0,0 +1,38 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.form; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 对外接口-查询下级用户党员数-接口入参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubUserTotalFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3381286960911634231L; |
||||
|
/** |
||||
|
* 当前组织id;从组织树取 |
||||
|
*/ |
||||
|
@NotBlank(message = "组织ID不能为空", groups = SubUserTotalFormDTO.Agency.class) |
||||
|
private String agencyId; |
||||
|
/** |
||||
|
* 当前组织级别;从组织树取 |
||||
|
* 机关级别(社区级:community, |
||||
|
* 乡(镇、街道)级:street, |
||||
|
* 区县级: district, |
||||
|
* 市级: city |
||||
|
* 省级:province) |
||||
|
*/ |
||||
|
@NotBlank(message = "组织级别不能为空", groups = SubUserTotalFormDTO.Agency.class) |
||||
|
private String agencyLevel; |
||||
|
/** |
||||
|
* 日维度Id【yyyyMMdd eg:20210808,默认前一天】 |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
public interface Agency extends CustomerClientShowGroup{} |
||||
|
|
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 基础数据-组织各种数据汇总-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class BaseStatsDataResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -771436069527114021L; |
||||
|
|
||||
|
private Integer topicTotal; |
||||
|
private Integer topicIncr; |
||||
|
// private Integer topicToIssueTotal;
|
||||
|
private Integer issueTotal; |
||||
|
private Integer issueIncr; |
||||
|
// private Integer issueToProjectTotal;
|
||||
|
private Integer projectTotal; |
||||
|
private Integer projectIncr; |
||||
|
private Integer closedProjectTotal; |
||||
|
private Integer closedProjectIncr; |
||||
|
// private Integer patrolTotal;
|
||||
|
// private Integer patrolTotalTime;
|
||||
|
// private Integer orgId;
|
||||
|
// private Integer orgName;
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 对外接口-查询下级话题和小组数-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubTopicAndGroupResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
//组织或网格ID
|
||||
|
private String orgId; |
||||
|
//组织或网格名称
|
||||
|
private String orgName = ""; |
||||
|
//话题总数
|
||||
|
private Integer topicTotal = 0; |
||||
|
//小组总数
|
||||
|
private Integer groupTotal = 0; |
||||
|
|
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 对外接口-查询下级用户党员数-接口返参 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class SubUserTotalResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 466974582608407121L; |
||||
|
//组织或网格ID
|
||||
|
private String orgId; |
||||
|
//组织或网格名称
|
||||
|
private String orgName = ""; |
||||
|
//用户总数
|
||||
|
private Integer userTotal = 0; |
||||
|
//党员总数
|
||||
|
private Integer partyMemberTotal = 0; |
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Description 总数及增量 返回结果 |
||||
|
* @Auth sun |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TotalAndIncrResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -6624315950853255235L; |
||||
|
private Integer total; |
||||
|
private Integer incr; |
||||
|
private Integer total2; |
||||
|
private Integer incr2; |
||||
|
|
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.dataaggre.dto.datastats.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* desc: |
||||
|
* |
||||
|
* @author: LiuJanJun |
||||
|
* @date: 2021/8/5 4:51 下午 |
||||
|
* @version: 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WorkFactResultDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -8149310637601355664L; |
||||
|
private Integer topicToIssueTotal = 0; |
||||
|
private Integer issueToProjectTotal = 0; |
||||
|
private Integer closedProjectTotal = 0; |
||||
|
private Integer patrolTotal = 0; |
||||
|
private String patrolTotalTime = "0"; |
||||
|
private String orgId; |
||||
|
private String orgName; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.dataaggre.dto.epmetuser.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* desc: |
||||
|
* |
||||
|
* @author: LiuJanJun |
||||
|
* @date: 2021/8/8 11:01 上午 |
||||
|
* @version: 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PatrolDailySumResult implements Serializable { |
||||
|
private static final long serialVersionUID = 310405655189243944L; |
||||
|
|
||||
|
private String fullAgencyId; |
||||
|
private Integer patrolTotal; |
||||
|
private Integer totalTime; |
||||
|
} |
@ -0,0 +1,40 @@ |
|||||
|
package com.epmet.dataaggre.controller; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.dataaggre.dto.app.form.AppFootBarFormDTO; |
||||
|
import com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO; |
||||
|
import com.epmet.dataaggre.service.opercustomize.CustomerFootBarService; |
||||
|
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; |
||||
|
|
||||
|
/** |
||||
|
* 小程序相关配置,可以放在这,目前只放了footbar |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/7/27 18:36 |
||||
|
*/ |
||||
|
@RestController |
||||
|
@RequestMapping("app") |
||||
|
public class AppController { |
||||
|
@Autowired |
||||
|
private CustomerFootBarService customerFootBarService; |
||||
|
|
||||
|
/** |
||||
|
* 查询底部footBar信息(两端通用) |
||||
|
* |
||||
|
* @param footBarFormDTO |
||||
|
* @return com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/27 18:59 |
||||
|
*/ |
||||
|
@PostMapping("footbars") |
||||
|
public Result<AppFootBarResultDTO> queryAppFootBars(@RequestBody AppFootBarFormDTO footBarFormDTO){ |
||||
|
ValidatorUtils.validateEntity(footBarFormDTO,AppFootBarFormDTO.AddUserInternalGroup.class); |
||||
|
AppFootBarResultDTO resultDTO=customerFootBarService.queryAppFootBars(footBarFormDTO); |
||||
|
return new Result<AppFootBarResultDTO>().ok(resultDTO); |
||||
|
} |
||||
|
} |
@ -0,0 +1,118 @@ |
|||||
|
package com.epmet.dataaggre.controller.pub; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import com.epmet.commons.tools.validator.ValidatorUtils; |
||||
|
import com.epmet.dataaggre.dto.datastats.form.BaseDataFormDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.BaseStatsDataResultDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.SubTopicAndGroupResultDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.SubUserTotalResultDTO; |
||||
|
import com.epmet.dataaggre.dto.datastats.result.WorkFactResultDTO; |
||||
|
import com.epmet.dataaggre.service.datastats.DataStatsService; |
||||
|
import lombok.extern.log4j.Log4j; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import javax.servlet.http.HttpServletResponse; |
||||
|
import java.io.IOException; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 小程序相关配置,可以放在这,目前只放了footbar |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/7/27 18:36 |
||||
|
*/ |
||||
|
@Log4j |
||||
|
@RestController |
||||
|
@RequestMapping("pub") |
||||
|
public class PubController { |
||||
|
@Autowired |
||||
|
private DataStatsService dataStatsService; |
||||
|
|
||||
|
/** |
||||
|
* 查询 话题 议题 项目数 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/27 18:59 |
||||
|
*/ |
||||
|
@PostMapping("baseDataAgg") |
||||
|
public Result<BaseStatsDataResultDTO> getBaseStatsData(@RequestBody BaseDataFormDTO formDTO){ |
||||
|
ValidatorUtils.validateEntity(formDTO,BaseDataFormDTO.BaseData.class); |
||||
|
BaseStatsDataResultDTO baseStatsData = dataStatsService.getBaseStatsData(formDTO); |
||||
|
return new Result<BaseStatsDataResultDTO>().ok(baseStatsData); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询下级工作实况 |
||||
|
* |
||||
|
* @param formDTO |
||||
|
* @return com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/27 18:59 |
||||
|
*/ |
||||
|
@PostMapping("subWorkFact") |
||||
|
public Result<List<WorkFactResultDTO>> getSubWorkFact(@RequestBody BaseDataFormDTO formDTO){ |
||||
|
ValidatorUtils.validateEntity(formDTO, BaseDataFormDTO.AgencyIdAndLevel.class); |
||||
|
List<WorkFactResultDTO> subWorkFact = dataStatsService.getSubWorkFact(formDTO); |
||||
|
return new Result<List<WorkFactResultDTO>>().ok(subWorkFact); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 对外接口--查询下级用户党员数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subUserTotal") |
||||
|
public Result<List<SubUserTotalResultDTO>> subUserTotal(@RequestBody BaseDataFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, BaseDataFormDTO.AgencyIdAndLevel.class); |
||||
|
List<SubUserTotalResultDTO> data = dataStatsService.subUserTotal(formDTO); |
||||
|
return new Result<List<SubUserTotalResultDTO>>().ok(data); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* @Param formDTO |
||||
|
* @Description 对外接口--查询下级话题和小组数 |
||||
|
* @author sun |
||||
|
*/ |
||||
|
@PostMapping("subTopicAndGroup") |
||||
|
public Result<List<SubTopicAndGroupResultDTO>> subTopicAndGroup(@RequestBody BaseDataFormDTO formDTO) { |
||||
|
ValidatorUtils.validateEntity(formDTO, BaseDataFormDTO.AgencyIdAndLevel.class); |
||||
|
List<SubTopicAndGroupResultDTO> data = dataStatsService.subTopicAndGroup(formDTO); |
||||
|
return new Result<List<SubTopicAndGroupResultDTO>>().ok(data); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出数据,使用map接收 |
||||
|
* |
||||
|
* @param map |
||||
|
* @param response |
||||
|
* @throws IOException |
||||
|
*/ |
||||
|
@PostMapping("/exportExcel") |
||||
|
public void exportExcel(@RequestBody BaseDataFormDTO formDTO, HttpServletResponse response) throws IOException { |
||||
|
/* try { |
||||
|
Map<String, Object> mapData = new HashMap<>(); |
||||
|
BaseStatsDataResultDTO baseStatsData = dataStatsService.getBaseStatsData(formDTO); |
||||
|
String templatePath = "excel/trace_temp.xlsx"; |
||||
|
log.info("exportExcel templatePath:{}",templatePath); |
||||
|
mapData.put("dataType", baseStatsData); |
||||
|
|
||||
|
start = System.currentTimeMillis(); |
||||
|
Workbook workbook = ExcelExportUtil.exportExcel(new TemplateExportParams(templatePath, "数据汇总"), baseStatsData); |
||||
|
//header
|
||||
|
response.setHeader("content-Type", "application/vnd.ms-excel"); |
||||
|
response.addHeader("Content-Disposition", "attachment;fileName=" + URLEncoder.encode("继续追踪导出详情-".concat(DateUtils.formatDate()) + ".xlsx", "UTF-8")); |
||||
|
//加密
|
||||
|
log.error("excelExport build wb cost:{}",System.currentTimeMillis()-start); |
||||
|
} catch (UnsupportedEncodingException e) { |
||||
|
e.printStackTrace(); |
||||
|
}*/ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,46 @@ |
|||||
|
/** |
||||
|
* 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.dataaggre.dao.epmetuser; |
||||
|
|
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.dataaggre.dto.epmetuser.result.PatrolDailySumResult; |
||||
|
import com.epmet.dataaggre.entity.epmetuser.StatsStaffPatrolRecordDailyEntity; |
||||
|
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-06-07 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface StatsStaffPatrolRecordDailyDao extends BaseDao<StatsStaffPatrolRecordDailyEntity> { |
||||
|
|
||||
|
/** |
||||
|
* desc:获取巡查次数和时间 |
||||
|
* @param agencyFullIdList |
||||
|
* @param startDateId |
||||
|
* @param endDateId |
||||
|
* @return |
||||
|
*/ |
||||
|
List<PatrolDailySumResult> getPatrolSumList(@Param("agencyFullIdList") List<String> agencyFullIdList, @Param("startDateId") String startDateId, @Param("endDateId") String endDateId); |
||||
|
} |
@ -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.dataaggre.dao.opercrm; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.dataaggre.entity.opercrm.CustomerParameterEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
/** |
||||
|
* 客户配置表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface CustomerParameterDao extends BaseDao<CustomerParameterEntity> { |
||||
|
/** |
||||
|
* 根据参数key查询 |
||||
|
* |
||||
|
* @param parameterKey |
||||
|
* @param customerId |
||||
|
* @return java.lang.String |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/27 17:07 |
||||
|
*/ |
||||
|
CustomerParameterEntity selectByParameterKey(@Param("parameterKey")String parameterKey, @Param("customerId")String customerId); |
||||
|
} |
@ -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.dataaggre.dao.opercustomize; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.dao.BaseDao; |
||||
|
import com.epmet.dataaggre.dto.app.result.CustomerFootBarDTO; |
||||
|
import com.epmet.dataaggre.entity.opercustomize.CustomerFootBarEntity; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* APP底部菜单栏信息 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface CustomerFootBarDao extends BaseDao<CustomerFootBarEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 查询客户工作端或者居民端,footbar列表 |
||||
|
* |
||||
|
* @param customerId |
||||
|
* @param appType |
||||
|
* @return java.util.List<com.epmet.dataaggre.dto.app.result.CustomerFootBarDTO> |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/28 10:56 |
||||
|
*/ |
||||
|
List<CustomerFootBarDTO> selectAppFootBars(@Param("customerId") String customerId, @Param("appType") String appType); |
||||
|
|
||||
|
/** |
||||
|
* 查询某个footbar信息 |
||||
|
* |
||||
|
* @param customerId |
||||
|
* @param appType |
||||
|
* @param barKey |
||||
|
* @return com.epmet.dataaggre.entity.opercustomize.CustomerFootBarEntity |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/28 10:56 |
||||
|
*/ |
||||
|
CustomerFootBarEntity selectDefaultIcon(@Param("customerId") String customerId, @Param("appType")String appType, @Param("barKey")String barKey); |
||||
|
} |
@ -0,0 +1,125 @@ |
|||||
|
/** |
||||
|
* 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.dataaggre.entity.epmetuser; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* [天]工作人员巡查记录统计 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-06-29 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("stats_staff_patrol_record_daily") |
||||
|
public class StatsStaffPatrolRecordDailyEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 来源类型 external:外部,internal:内部 |
||||
|
*/ |
||||
|
private String sourceType; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 数据来源客户Id |
||||
|
*/ |
||||
|
private String sourceCustomerId; |
||||
|
|
||||
|
/** |
||||
|
* 统计日期 关联日期dim表 |
||||
|
*/ |
||||
|
private String dateId; |
||||
|
|
||||
|
/** |
||||
|
* 周ID |
||||
|
*/ |
||||
|
private String weekId; |
||||
|
|
||||
|
/** |
||||
|
* 月ID |
||||
|
*/ |
||||
|
private String monthId; |
||||
|
|
||||
|
/** |
||||
|
* 季ID |
||||
|
*/ |
||||
|
private String quarterId; |
||||
|
|
||||
|
/** |
||||
|
* 年ID |
||||
|
*/ |
||||
|
private String yearId; |
||||
|
|
||||
|
/** |
||||
|
* 网格id |
||||
|
*/ |
||||
|
private String gridId; |
||||
|
|
||||
|
/** |
||||
|
* 工作人员所属组织id=网格所属的组织id |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* 网格所有上级id |
||||
|
*/ |
||||
|
private String gridPids; |
||||
|
|
||||
|
/** |
||||
|
* 工作人员用户id |
||||
|
*/ |
||||
|
private String staffId; |
||||
|
|
||||
|
/** |
||||
|
* 巡查次数 |
||||
|
*/ |
||||
|
private Integer patrolTotal; |
||||
|
|
||||
|
/** |
||||
|
* 巡查时长 单位:秒 |
||||
|
*/ |
||||
|
private Integer totalTime; |
||||
|
|
||||
|
/** |
||||
|
* 巡查期间直接立项项目数 |
||||
|
*/ |
||||
|
private Integer reportProjectCount; |
||||
|
|
||||
|
/** |
||||
|
* 最新的巡查开始时间 |
||||
|
*/ |
||||
|
private Date latestPatrolTime; |
||||
|
|
||||
|
/** |
||||
|
* 最新的巡查状态 正在巡查中:patrolling;结束:end |
||||
|
*/ |
||||
|
private String latestPatrolStatus; |
||||
|
|
||||
|
} |
@ -0,0 +1,68 @@ |
|||||
|
/** |
||||
|
* 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.dataaggre.entity.opercrm; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* 客户配置表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("customer_parameter") |
||||
|
public class CustomerParameterEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 参数KEY值(发短信:send_msg;) |
||||
|
*/ |
||||
|
private String parameterKey; |
||||
|
|
||||
|
/** |
||||
|
* 参数名称(短信) |
||||
|
*/ |
||||
|
private String parameterName; |
||||
|
|
||||
|
/** |
||||
|
* 参数开关:开启:on,关闭:off |
||||
|
*/ |
||||
|
private String parameterSwitch; |
||||
|
|
||||
|
/** |
||||
|
* 参数VALUE值 |
||||
|
*/ |
||||
|
private String parameterValue; |
||||
|
|
||||
|
/** |
||||
|
* 说明 |
||||
|
*/ |
||||
|
private String description; |
||||
|
|
||||
|
} |
@ -0,0 +1,88 @@ |
|||||
|
/** |
||||
|
* 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.dataaggre.entity.opercustomize; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
|
||||
|
/** |
||||
|
* APP底部菜单栏信息 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper=false) |
||||
|
@TableName("customer_foot_bar") |
||||
|
public class CustomerFootBarEntity extends BaseEpmetEntity { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户ID |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 工作端:gov居民端:resi |
||||
|
*/ |
||||
|
private String appType; |
||||
|
|
||||
|
/** |
||||
|
* KEY |
||||
|
*/ |
||||
|
private String barKey; |
||||
|
|
||||
|
/** |
||||
|
* bar名称 |
||||
|
*/ |
||||
|
private String barName; |
||||
|
|
||||
|
/** |
||||
|
* 页面标题 |
||||
|
*/ |
||||
|
private String pageTitle; |
||||
|
|
||||
|
/** |
||||
|
* 图标路径 |
||||
|
*/ |
||||
|
private String iconPath; |
||||
|
|
||||
|
/** |
||||
|
* 选中页面图标路径 |
||||
|
*/ |
||||
|
private String selectedIconPath; |
||||
|
|
||||
|
/** |
||||
|
* 凸起时图标路径 |
||||
|
*/ |
||||
|
private String floatIconPath; |
||||
|
|
||||
|
/** |
||||
|
* 是否显示。1:显示,0:隐藏 |
||||
|
*/ |
||||
|
private Integer display; |
||||
|
|
||||
|
/** |
||||
|
* 排序 |
||||
|
*/ |
||||
|
private Integer orderIndex; |
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.dataaggre.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -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.dataaggre.service.epmetuser; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.dataaggre.dto.epmetuser.result.PatrolDailySumResult; |
||||
|
import com.epmet.dataaggre.entity.epmetuser.StatsStaffPatrolRecordDailyEntity; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 工作人员巡查主记录 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-06-07 |
||||
|
*/ |
||||
|
public interface StatsStaffPatrolRecordDailyService extends BaseService<StatsStaffPatrolRecordDailyEntity> { |
||||
|
|
||||
|
/** |
||||
|
* desc:获取组织或网格的 时间段内的总次数等 |
||||
|
* @param agencyList |
||||
|
* @param startDateId |
||||
|
* @param endDateId |
||||
|
* @return |
||||
|
*/ |
||||
|
List<PatrolDailySumResult> getPatrolSumList(List<String> agencyList, String startDateId, String endDateId); |
||||
|
|
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
package com.epmet.dataaggre.service.epmetuser.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.dataaggre.constant.DataSourceConstant; |
||||
|
import com.epmet.dataaggre.dao.epmetuser.StatsStaffPatrolRecordDailyDao; |
||||
|
import com.epmet.dataaggre.dto.epmetuser.result.PatrolDailySumResult; |
||||
|
import com.epmet.dataaggre.entity.epmetuser.StatsStaffPatrolRecordDailyEntity; |
||||
|
import com.epmet.dataaggre.service.epmetuser.StatsStaffPatrolRecordDailyService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* desc: |
||||
|
* |
||||
|
* @author: LiuJanJun |
||||
|
* @date: 2021/8/6 11:06 上午 |
||||
|
* @version: 1.0 |
||||
|
*/ |
||||
|
@DataSource(DataSourceConstant.EPMET_USER) |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
public class StatsStaffPatrolRecordDailyServiceImpl extends BaseServiceImpl<StatsStaffPatrolRecordDailyDao, StatsStaffPatrolRecordDailyEntity> implements StatsStaffPatrolRecordDailyService { |
||||
|
/** |
||||
|
* desc:获取组织或网格的 时间段内的总次数等 |
||||
|
* |
||||
|
* @param agencyFullIdList |
||||
|
* @param startDateId |
||||
|
* @param endDateId |
||||
|
* @return |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<PatrolDailySumResult> getPatrolSumList(List<String> agencyFullIdList, String startDateId, String endDateId) { |
||||
|
return baseDao.getPatrolSumList(agencyFullIdList,startDateId,endDateId); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
/** |
||||
|
* 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.dataaggre.service.opercrm; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.dataaggre.entity.opercrm.CustomerParameterEntity; |
||||
|
|
||||
|
/** |
||||
|
* 客户配置表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
public interface CustomerParameterService extends BaseService<CustomerParameterEntity> { |
||||
|
|
||||
|
CustomerParameterEntity queryFootBarPattern(String customerId, String appType); |
||||
|
|
||||
|
CustomerParameterEntity queryFootBarHighLightNum(String customerId, String appType); |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
/** |
||||
|
* 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.dataaggre.service.opercrm.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.Constant; |
||||
|
import com.epmet.dataaggre.constant.DataSourceConstant; |
||||
|
import com.epmet.dataaggre.dao.opercrm.CustomerParameterDao; |
||||
|
import com.epmet.dataaggre.entity.opercrm.CustomerParameterEntity; |
||||
|
import com.epmet.dataaggre.service.opercrm.CustomerParameterService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
/** |
||||
|
* 客户配置表 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
@DataSource(DataSourceConstant.OPER_CRM) |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
public class CustomerParameterServiceImpl extends BaseServiceImpl<CustomerParameterDao, CustomerParameterEntity> implements CustomerParameterService { |
||||
|
|
||||
|
@Override |
||||
|
public CustomerParameterEntity queryFootBarPattern(String customerId, String appType) { |
||||
|
String parameterKey=appType.concat(Constant.FOOTBAR_PATTERN_KEY_SUFFIX); |
||||
|
CustomerParameterEntity pattern=baseDao.selectByParameterKey(parameterKey,customerId); |
||||
|
if(null ==pattern){ |
||||
|
pattern=baseDao.selectByParameterKey(parameterKey, Constant.DEFAULT_CUSTOMER); |
||||
|
} |
||||
|
return pattern; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public CustomerParameterEntity queryFootBarHighLightNum(String customerId, String appType) { |
||||
|
String parameterKey=appType.concat(Constant.FOOTBAR_HIGHLIGHT_NUM); |
||||
|
CustomerParameterEntity entity=baseDao.selectByParameterKey(parameterKey,customerId); |
||||
|
if(null ==entity){ |
||||
|
entity=baseDao.selectByParameterKey(parameterKey, Constant.DEFAULT_CUSTOMER); |
||||
|
} |
||||
|
return entity; |
||||
|
} |
||||
|
} |
@ -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.dataaggre.service.opercustomize; |
||||
|
|
||||
|
import com.epmet.commons.mybatis.service.BaseService; |
||||
|
import com.epmet.dataaggre.dto.app.form.AppFootBarFormDTO; |
||||
|
import com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO; |
||||
|
import com.epmet.dataaggre.entity.opercustomize.CustomerFootBarEntity; |
||||
|
|
||||
|
/** |
||||
|
* APP底部菜单栏信息 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
public interface CustomerFootBarService extends BaseService<CustomerFootBarEntity> { |
||||
|
|
||||
|
/** |
||||
|
* 查询底部footBar信息(两端通用) |
||||
|
* |
||||
|
* @param footBarFormDTO |
||||
|
* @return com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/27 18:59 |
||||
|
*/ |
||||
|
AppFootBarResultDTO queryAppFootBars(AppFootBarFormDTO footBarFormDTO); |
||||
|
} |
@ -0,0 +1,115 @@ |
|||||
|
/** |
||||
|
* 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.dataaggre.service.opercustomize.impl; |
||||
|
|
||||
|
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
||||
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
||||
|
import com.epmet.commons.tools.constant.Constant; |
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import com.epmet.commons.tools.constant.StrConstant; |
||||
|
import com.epmet.dataaggre.constant.DataSourceConstant; |
||||
|
import com.epmet.dataaggre.dao.opercustomize.CustomerFootBarDao; |
||||
|
import com.epmet.dataaggre.dto.app.form.AppFootBarFormDTO; |
||||
|
import com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO; |
||||
|
import com.epmet.dataaggre.dto.app.result.CustomerFootBarDTO; |
||||
|
import com.epmet.dataaggre.entity.opercrm.CustomerParameterEntity; |
||||
|
import com.epmet.dataaggre.entity.opercustomize.CustomerFootBarEntity; |
||||
|
import com.epmet.dataaggre.service.opercrm.CustomerParameterService; |
||||
|
import com.epmet.dataaggre.service.opercustomize.CustomerFootBarService; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.util.CollectionUtils; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* APP底部菜单栏信息 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2021-07-27 |
||||
|
*/ |
||||
|
@DataSource(DataSourceConstant.OPERCUSTOMIZE) |
||||
|
@Slf4j |
||||
|
@Service |
||||
|
public class CustomerFootBarServiceImpl extends BaseServiceImpl<CustomerFootBarDao, CustomerFootBarEntity> implements CustomerFootBarService { |
||||
|
|
||||
|
@Autowired |
||||
|
private CustomerParameterService customerParameterService; |
||||
|
|
||||
|
/** |
||||
|
* 查询底部footBar信息(两端通用) |
||||
|
* |
||||
|
* @param footBarFormDTO |
||||
|
* @return com.epmet.dataaggre.dto.app.result.AppFootBarResultDTO |
||||
|
* @author yinzuomei |
||||
|
* @date 2021/7/27 18:59 |
||||
|
*/ |
||||
|
@Override |
||||
|
public AppFootBarResultDTO queryAppFootBars(AppFootBarFormDTO footBarFormDTO) { |
||||
|
AppFootBarResultDTO resultDTO = new AppFootBarResultDTO(); |
||||
|
resultDTO.setPattern(Constant.FOOT_BAR_FLAT); |
||||
|
resultDTO.setHighLightNum(NumConstant.ZERO); |
||||
|
// 1、查询客户的模式,没有返回产品默认的;*水平:flat;浮起:float
|
||||
|
CustomerParameterEntity patternEntity = customerParameterService.queryFootBarPattern(footBarFormDTO.getCustomerId(), footBarFormDTO.getAppType()); |
||||
|
// 2、查询客户设置的第几个,没有默认返回0,
|
||||
|
CustomerParameterEntity highLightNumEntity = customerParameterService.queryFootBarHighLightNum(footBarFormDTO.getCustomerId(), footBarFormDTO.getAppType()); |
||||
|
List<CustomerFootBarDTO> footBarList = baseDao.selectAppFootBars(footBarFormDTO.getCustomerId(), footBarFormDTO.getAppType()); |
||||
|
if (CollectionUtils.isEmpty(footBarList)) { |
||||
|
footBarList = baseDao.selectAppFootBars(Constant.DEFAULT_CUSTOMER, footBarFormDTO.getAppType()); |
||||
|
}else{ |
||||
|
//如果客户没有上传图标,返回产品默认的图标
|
||||
|
for (CustomerFootBarDTO dto : footBarList) { |
||||
|
if (StringUtils.isBlank(dto.getIconPath()) |
||||
|
|| StringUtils.isBlank(dto.getSelectedIconPath()) |
||||
|
|| StringUtils.isBlank(dto.getFloatIconPath())) { |
||||
|
CustomerFootBarEntity defaultEntity = baseDao.selectDefaultIcon(Constant.DEFAULT_CUSTOMER, footBarFormDTO.getAppType(), dto.getBarKey()); |
||||
|
if (StringUtils.isBlank(dto.getIconPath())) { |
||||
|
dto.setIconPath(null == defaultEntity ? StrConstant.EPMETY_STR : defaultEntity.getIconPath()); |
||||
|
} |
||||
|
if (StringUtils.isBlank(dto.getSelectedIconPath())) { |
||||
|
dto.setSelectedIconPath(null == defaultEntity ? StrConstant.EPMETY_STR : defaultEntity.getSelectedIconPath()); |
||||
|
} |
||||
|
if (StringUtils.isBlank(dto.getFloatIconPath())) { |
||||
|
dto.setFloatIconPath(null == defaultEntity ? StrConstant.EPMETY_STR : defaultEntity.getFloatIconPath()); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
if (footBarList.size() % NumConstant.TWO == 0) { |
||||
|
resultDTO.setIsOddNum(false); |
||||
|
} else { |
||||
|
resultDTO.setIsOddNum(true); |
||||
|
} |
||||
|
//只有客户选择的浮起+奇数+全部上传了图标才返回pattern=flat
|
||||
|
if (resultDTO.getIsOddNum() && Constant.FOOT_BAR_FLOAT.equals(patternEntity.getParameterValue())) { |
||||
|
resultDTO.setPattern(Constant.FOOT_BAR_FLOAT); |
||||
|
//返回
|
||||
|
resultDTO.setHighLightNum(footBarList.size() / NumConstant.TWO); |
||||
|
} else { |
||||
|
resultDTO.setPattern(Constant.FOOT_BAR_FLAT); |
||||
|
resultDTO.setHighLightNum(Integer.valueOf(highLightNumEntity.getParameterValue())); |
||||
|
} |
||||
|
//如果是浮起模式且是奇数,返回是footBarList的索引
|
||||
|
resultDTO.setFootBarList(footBarList); |
||||
|
return resultDTO; |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
||||
|
<mapper namespace="com.epmet.dataaggre.dao.epmetuser.StatsStaffPatrolRecordDailyDao"> |
||||
|
<select id="getPatrolSumList" resultType="com.epmet.dataaggre.dto.epmetuser.result.PatrolDailySumResult"> |
||||
|
<foreach collection="agencyFullIdList" item="fullAgencyId" separator="UNION ALL"> |
||||
|
SELECT |
||||
|
LEFT (GRID_PIDS,LENGTH( #{fullAgencyId} )) fullAgencyId, |
||||
|
sum(patrol_total) patrolTotal, |
||||
|
sum(TOTAL_TIME) totalTime |
||||
|
FROM stats_staff_patrol_record_daily |
||||
|
WHERE del_flag = '0' |
||||
|
AND date_id BETWEEN #{startDateId} and #{endDateId} |
||||
|
AND GRID_PIDS like CONCAT( #{fullAgencyId},'%') |
||||
|
GROUP BY fullAgencyId |
||||
|
</foreach> |
||||
|
|
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,15 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dataaggre.dao.opercrm.CustomerParameterDao"> |
||||
|
<select id="selectByParameterKey" parameterType="map" resultType="com.epmet.dataaggre.entity.opercrm.CustomerParameterEntity"> |
||||
|
select |
||||
|
cp.* |
||||
|
from customer_parameter cp |
||||
|
where cp.DEL_FLAG='0' |
||||
|
and cp.CUSTOMER_ID=#{customerId} |
||||
|
and cp.PARAMETER_KEY=#{parameterKey} |
||||
|
</select> |
||||
|
|
||||
|
|
||||
|
</mapper> |
@ -0,0 +1,41 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dataaggre.dao.opercustomize.CustomerFootBarDao"> |
||||
|
|
||||
|
<!-- 查询客户工作端或者居民端,footbar列表 --> |
||||
|
<select id="selectAppFootBars" parameterType="map" resultType="com.epmet.dataaggre.dto.app.result.CustomerFootBarDTO"> |
||||
|
SELECT |
||||
|
c.BAR_KEY as barKey, |
||||
|
c.BAR_NAME as barName, |
||||
|
IFNULL(c.PAGE_TITLE,'') as pageTitle, |
||||
|
IFNULL(c.ICON_PATH,'') as iconPath, |
||||
|
IFNULL(c.SELECTED_ICON_PATH,'') as selectedIconPath, |
||||
|
IFNULL(c.FLOAT_ICON_PATH,'') AS floatIconPath, |
||||
|
c.CUSTOMER_ID as customerId |
||||
|
FROM |
||||
|
customer_foot_bar c |
||||
|
WHERE |
||||
|
c.del_flag = '0' |
||||
|
AND c.customer_id = #{customerId} |
||||
|
AND c.app_type = #{appType} |
||||
|
AND C.DISPLAY='1' |
||||
|
order by c.ORDER_INDEX asc |
||||
|
</select> |
||||
|
|
||||
|
<!-- 查询某个footbar信息 --> |
||||
|
<select id="selectDefaultIcon" parameterType="map" resultType="com.epmet.dataaggre.entity.opercustomize.CustomerFootBarEntity"> |
||||
|
SELECT |
||||
|
IFNULL(c.ICON_PATH,'') as iconPath, |
||||
|
IFNULL(c.SELECTED_ICON_PATH,'') as selectedIconPath, |
||||
|
IFNULL(c.FLOAT_ICON_PATH,'') as floatIconPath |
||||
|
FROM |
||||
|
customer_foot_bar c |
||||
|
WHERE |
||||
|
c.del_flag = '0' |
||||
|
AND c.customer_id = #{customerId} |
||||
|
AND c.app_type = #{appType} |
||||
|
and c.BAR_KEY=#{barKey} |
||||
|
AND C.DISPLAY='1' |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,22 @@ |
|||||
|
package com.epmet.dto.form.govOrg; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 各机关注册用户数入参DTO |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2020/6/22 12:47 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class OrgTreeFormDTO implements Serializable { |
||||
|
|
||||
|
|
||||
|
private static final long serialVersionUID = 6649155066499141632L; |
||||
|
|
||||
|
private String mobile; |
||||
|
|
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.epmet.dto.result.govOrg; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.TreeAreaCodeNode; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class OrgTreeNode extends TreeAreaCodeNode<OrgTreeNode> { |
||||
|
private String id; |
||||
|
private String pid; |
||||
|
private String orgId; |
||||
|
private String orgName; |
||||
|
private String level; |
||||
|
|
||||
|
private List<OrgTreeNode> children=new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.datareport.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.epmet.dto.user.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/7/27 10:41 上午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IncrAndTotalUserIdsResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 9116867002773352209L; |
||||
|
|
||||
|
private String gridId; |
||||
|
|
||||
|
private List<String> userIds; |
||||
|
|
||||
|
/** |
||||
|
* userId类型:daily:日,monthly:月 |
||||
|
*/ |
||||
|
private String type; |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.epmet.dto.user.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/7/28 10:58 上午 |
||||
|
* @DESC 查询指定时间范围内注册/参与用户增量 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class IncrWithinTimeRangeResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 6199087464367184830L; |
||||
|
|
||||
|
private String gridId; |
||||
|
|
||||
|
private Integer userCount; |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.epmet.dto.user.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/7/27 4:53 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PartyTotalAndIncrResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 6546408164027047797L; |
||||
|
|
||||
|
private String gridId; |
||||
|
|
||||
|
private Integer dailyIncr; |
||||
|
|
||||
|
private Integer monthlyIncr; |
||||
|
|
||||
|
private Integer total; |
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dto.user.result; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/7/27 10:14 上午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TotalAndIncrResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -3184476610188193106L; |
||||
|
|
||||
|
private Integer total; |
||||
|
|
||||
|
private Integer dailyIncr; |
||||
|
|
||||
|
private Integer monthlyIncr; |
||||
|
|
||||
|
private String gridId; |
||||
|
|
||||
|
public TotalAndIncrResultDTO() { |
||||
|
this.total = NumConstant.ZERO; |
||||
|
this.dailyIncr = NumConstant.ZERO; |
||||
|
this.monthlyIncr = NumConstant.ZERO; |
||||
|
} |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.dto.user.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/7/27 10:57 上午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class TotalUserIdsResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 8236061658552220549L; |
||||
|
|
||||
|
private String gridId; |
||||
|
|
||||
|
private List<String> userIds; |
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.epmet.dto.user.result; |
||||
|
|
||||
|
import com.epmet.commons.tools.constant.NumConstant; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author zxc |
||||
|
* @DateTime 2021/7/27 1:30 下午 |
||||
|
* @DESC |
||||
|
*/ |
||||
|
@Data |
||||
|
public class WarmTotalAndIncrResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = -4864864583111279861L; |
||||
|
|
||||
|
private String gridId; |
||||
|
|
||||
|
private Integer total; |
||||
|
|
||||
|
/** |
||||
|
* 日增 |
||||
|
*/ |
||||
|
private Integer dailyIncr; |
||||
|
|
||||
|
/** |
||||
|
* 月增 |
||||
|
*/ |
||||
|
private Integer monthlyIncr; |
||||
|
|
||||
|
public WarmTotalAndIncrResultDTO() { |
||||
|
this.total = NumConstant.ZERO; |
||||
|
this.dailyIncr = NumConstant.ZERO; |
||||
|
this.monthlyIncr = NumConstant.ZERO; |
||||
|
} |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.epmet.healthcheck; |
||||
|
|
||||
|
import com.epmet.commons.tools.utils.Result; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
@RestController |
||||
|
@RequestMapping("healthcheck") |
||||
|
public class HealthCheckController { |
||||
|
|
||||
|
/** |
||||
|
* http健康检查 |
||||
|
* @return |
||||
|
*/ |
||||
|
@PostMapping("http") |
||||
|
public Result httpHealthCheck() { |
||||
|
return new Result(); |
||||
|
} |
||||
|
|
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue