yinzuomei 3 years ago
parent
commit
85f994bb90
  1. 15
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/IcEventCategoryAnalysisFormDTO.java
  2. 15
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/result/IcEventAnalysisOrgResDTO.java
  3. 15
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java
  4. 6
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/IcEventService.java
  5. 12
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

15
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/IcEventCategoryAnalysisFormDTO.java

@ -21,16 +21,18 @@ public class IcEventCategoryAnalysisFormDTO {
public interface TotalPie {
}
public interface OrgTotalPie {
}
/**
* 要查询的组织ID
*/
@NotBlank(message = "组织ID为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class})
@NotBlank(message = "组织ID为必填项", groups = {TotalPie.class,OrgTotalPie.class})
private String orgId;
/**
* 组织类型grid,agency
*/
@NotBlank(message = "组织类型为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class})
@NotBlank(message = "组织类型为必填项", groups = {TotalPie.class,OrgTotalPie.class})
private String orgType;
/**
@ -38,7 +40,7 @@ public class IcEventCategoryAnalysisFormDTO {
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
@NotNull(message = "查询时间为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class})
@NotNull(message = "查询时间为必填项", groups = {TotalPie.class,OrgTotalPie.class})
private Date queryStartTime;
/**
@ -46,14 +48,19 @@ public class IcEventCategoryAnalysisFormDTO {
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd")
@NotNull(message = "查询时间为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class})
@NotNull(message = "查询时间为必填项", groups = {TotalPie.class,OrgTotalPie.class})
private Date queryEndTime;
private String categoryCode;
/**
* 一级分类 code长度
*/
private Integer categoryOneLength;
private String gridPids;
//以下参数从token中获取
/**
* 当前登录用户

15
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/result/IcEventAnalysisOrgResDTO.java

@ -0,0 +1,15 @@
package com.epmet.dto.result;
import lombok.Data;
import java.io.Serializable;
@Data
public class IcEventAnalysisOrgResDTO implements Serializable {
private String orgId;
private String orgType;
private String orgName;
private Integer total = 0;
}

15
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java

@ -216,6 +216,19 @@ public class IcEventController {
return new Result<IcEventListResultDTO>().ok(icEventService.detail(formDTO));
}
/**
* 事件分类分析- 饼图2直属下级 事件数量
* @param tokenDto
* @param formDTO
* @return
*/
@PostMapping("category-analysis/org-total")
public Result<List<IcEventAnalysisOrgResDTO>> analysisOrgTotal(@LoginUser TokenDto tokenDto, @RequestBody IcEventCategoryAnalysisFormDTO formDTO) {
formDTO.setCustomerId(tokenDto.getCustomerId());
formDTO.setStaffId(tokenDto.getUserId());
ValidatorUtils.validateEntity(formDTO,IcEventCategoryAnalysisFormDTO.OrgTotalPie.class);
List<IcEventAnalysisOrgResDTO> list = icEventService.analysisOrgTotal(formDTO);
return new Result<List<IcEventAnalysisOrgResDTO>>().ok(list);
}
}

6
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/IcEventService.java

@ -132,4 +132,10 @@ public interface IcEventService extends BaseService<IcEventEntity> {
**/
IcEventListResultDTO detail(IcEventListFormDTO formDTO);
/**
* 事件分类分析- 饼图2直属下级 事件数量
* @param formDTO
* @return
*/
List<IcEventAnalysisOrgResDTO> analysisOrgTotal(IcEventCategoryAnalysisFormDTO formDTO);
}

12
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

@ -747,5 +747,17 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit
return resultDTO;
}
/**
* 事件分类分析- 饼图2直属下级 事件数量
*
* @param formDTO
* @return
*/
@Override
public List<IcEventAnalysisOrgResDTO> analysisOrgTotal(IcEventCategoryAnalysisFormDTO formDTO) {
//todo
return null;
}
}
Loading…
Cancel
Save