|
|
@ -2,6 +2,8 @@ package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
import com.epmet.commons.tools.aop.NoRepeatSubmit; |
|
|
|
|
|
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|
|
|
|
|
import com.epmet.commons.tools.exception.EpmetException; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
@ -15,6 +17,7 @@ import com.epmet.dto.form.EventProcessAnalysisCommonFormDTO; |
|
|
import com.epmet.dto.form.IcEventListFormDTO; |
|
|
import com.epmet.dto.form.IcEventListFormDTO; |
|
|
import com.epmet.dto.form.ProcessAnalysisEventListFormDTO; |
|
|
import com.epmet.dto.form.ProcessAnalysisEventListFormDTO; |
|
|
import com.epmet.dto.result.IcEventListResultDTO; |
|
|
import com.epmet.dto.result.IcEventListResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.IcEventMonthlyIncrementResultDTO; |
|
|
import com.epmet.dto.result.IcEventResultDTO; |
|
|
import com.epmet.dto.result.IcEventResultDTO; |
|
|
import com.epmet.dto.result.ProcessStatusRatioResultDTO; |
|
|
import com.epmet.dto.result.ProcessStatusRatioResultDTO; |
|
|
import com.epmet.service.IcEventService; |
|
|
import com.epmet.service.IcEventService; |
|
|
@ -22,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import java.util.Date; |
|
|
import java.util.Date; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
@ -77,7 +81,7 @@ public class IcEventController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 事件分类分析-处理状态比例查询 |
|
|
* 事件处理分析-处理状态比例查询 |
|
|
* @param formDTO |
|
|
* @param formDTO |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@ -95,7 +99,7 @@ public class IcEventController { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 事件分类分析-事件列表 |
|
|
* 事件处理分析-事件列表 |
|
|
* @param input |
|
|
* @param input |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
@ -114,6 +118,27 @@ public class IcEventController { |
|
|
return new Result<PageData<IcEventResultDTO>>().ok(page); |
|
|
return new Result<PageData<IcEventResultDTO>>().ok(page); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 时间处理分析-阅读增量查询 |
|
|
|
|
|
* @param input |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("processAnalysis/monthlyIncrement") |
|
|
|
|
|
public Result<List<IcEventMonthlyIncrementResultDTO>> listMonthlyIncrement(@RequestBody EventProcessAnalysisCommonFormDTO input) { |
|
|
|
|
|
ValidatorUtils.validateEntity(input, EventProcessAnalysisCommonFormDTO.MonthlyIncrementAnalysis.class); |
|
|
|
|
|
String orgId = input.getOrgId(); |
|
|
|
|
|
String orgType = input.getOrgType(); |
|
|
|
|
|
Date queryStartTime = input.getQueryStartTime(); |
|
|
|
|
|
Date queryEndTime = input.getQueryEndTime(); |
|
|
|
|
|
|
|
|
|
|
|
if (queryStartTime.after(queryEndTime)) { |
|
|
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "日期范围错误", "日期范围错误"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
List<IcEventMonthlyIncrementResultDTO> page = icEventService.listMonthlyIncrement(orgType, orgId, queryStartTime, queryEndTime); |
|
|
|
|
|
return new Result<List<IcEventMonthlyIncrementResultDTO>>().ok(page); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|