|
|
@ -62,6 +62,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件管理-列表 |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
@ -72,6 +73,7 @@ public class IcEventController { |
|
|
|
formDTO.setStaffId(tokenDto.getUserId()); |
|
|
|
return new Result<PageData<IcEventListResultDTO>>().ok(icEventService.list(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author sun |
|
|
|
* @Description 工作端小程序-事件管理-列表 |
|
|
@ -84,28 +86,29 @@ public class IcEventController { |
|
|
|
return new Result<PageData<IcEventListResultDTO>>().ok(icEventService.list(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
@RequestMapping(value = "{id}",method = {RequestMethod.POST,RequestMethod.GET}) |
|
|
|
public Result<IcEventDTO> get(@PathVariable("id") String id){ |
|
|
|
@RequestMapping(value = "{id}", method = {RequestMethod.POST, RequestMethod.GET}) |
|
|
|
public Result<IcEventDTO> get(@PathVariable("id") String id) { |
|
|
|
IcEventDTO data = icEventService.get(id); |
|
|
|
return new Result<IcEventDTO>().ok(data); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件管理-新增 |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("add") |
|
|
|
public Result save(@LoginUser TokenDto tokenDto, @RequestBody IcEventAddEditFormDTO formDTO){ |
|
|
|
public Result save(@LoginUser TokenDto tokenDto, @RequestBody IcEventAddEditFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, AddGroup.class, DefaultGroup.class); |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
formDTO.setApp(tokenDto.getApp()); |
|
|
|
formDTO.setClient(tokenDto.getClient()); |
|
|
|
if("3".equals(formDTO.getOperationType())){ |
|
|
|
ValidatorUtils.validateEntity(formDTO.getIssueInfo(),IcEventToIssueFormDTO.AddEventAndShiftIssue.class); |
|
|
|
if ("3".equals(formDTO.getOperationType())) { |
|
|
|
ValidatorUtils.validateEntity(formDTO.getIssueInfo(), IcEventToIssueFormDTO.AddEventAndShiftIssue.class); |
|
|
|
} |
|
|
|
icEventService.save(formDTO); |
|
|
|
return new Result(); |
|
|
@ -113,7 +116,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("update") |
|
|
|
public Result update(@RequestBody IcEventDTO dto){ |
|
|
|
public Result update(@RequestBody IcEventDTO dto) { |
|
|
|
//效验数据
|
|
|
|
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|
|
|
icEventService.update(dto); |
|
|
@ -121,7 +124,7 @@ public class IcEventController { |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("delete") |
|
|
|
public Result delete(@RequestBody String[] ids){ |
|
|
|
public Result delete(@RequestBody String[] ids) { |
|
|
|
//效验数据
|
|
|
|
AssertUtils.isArrayEmpty(ids, "id"); |
|
|
|
icEventService.delete(ids); |
|
|
@ -130,6 +133,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件处理分析-处理状态比例查询 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -148,6 +152,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件处理分析-事件列表 |
|
|
|
* |
|
|
|
* @param input |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -169,6 +174,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 时间处理分析-阅读增量查询 |
|
|
|
* |
|
|
|
* @param input |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -190,6 +196,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 研判分析查询 |
|
|
|
* |
|
|
|
* @param eventId |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -201,6 +208,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 组织下,分类下的事件列表 |
|
|
|
* |
|
|
|
* @param input |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -215,13 +223,14 @@ public class IcEventController { |
|
|
|
PageData<IcEventResultDTO> page = icEventService.getSameCategoryEvents(orgId, orgType, categroyPid, pageNo, pageSize); |
|
|
|
return new Result<PageData<IcEventResultDTO>>().ok(page); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author sun |
|
|
|
* @Description 事件管理-回复 |
|
|
|
**/ |
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("reply") |
|
|
|
public Result reply(@LoginUser TokenDto tokenDto, @RequestBody IcEventReplyFormDTO formDTO){ |
|
|
|
public Result reply(@LoginUser TokenDto tokenDto, @RequestBody IcEventReplyFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, UpdateGroup.class, DefaultGroup.class); |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
@ -235,12 +244,12 @@ public class IcEventController { |
|
|
|
**/ |
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("icEventToProject") |
|
|
|
public Result icEventToProject(@LoginUser TokenDto tokenDto, @RequestBody IcEventToProjectFormDTO formDTO){ |
|
|
|
public Result icEventToProject(@LoginUser TokenDto tokenDto, @RequestBody IcEventToProjectFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
formDTO.setApp(tokenDto.getApp()); |
|
|
|
formDTO.setClient(tokenDto.getClient()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,IcEventToProjectFormDTO.ApprovalCategory.class,IcEventToProjectFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, IcEventToProjectFormDTO.ApprovalCategory.class, IcEventToProjectFormDTO.AddUserInternalGroup.class); |
|
|
|
icEventService.icEventToProject(formDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -250,7 +259,7 @@ public class IcEventController { |
|
|
|
* @Description 事件管理-转需求 |
|
|
|
**/ |
|
|
|
@PostMapping("icEventToDemand") |
|
|
|
public Result icEventToDemand(@LoginUser TokenDto tokenDto, @RequestBody IcDemandFormDTO formDTO){ |
|
|
|
public Result icEventToDemand(@LoginUser TokenDto tokenDto, @RequestBody IcDemandFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setDemandUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO, IcDemandFormDTO.AddUserShowGroup.class, IcDemandFormDTO.AddUserInternalGroup.class); |
|
|
@ -260,6 +269,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件转议题 |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
@ -283,7 +293,7 @@ public class IcEventController { |
|
|
|
public Result<List<IcEventCategoryAnalysisResDTO>> categoryAnalysisTotal(@LoginUser TokenDto tokenDto, @RequestBody IcEventCategoryAnalysisFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setStaffId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,IcEventCategoryAnalysisFormDTO.TotalPie.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, IcEventCategoryAnalysisFormDTO.TotalPie.class); |
|
|
|
List<IcEventCategoryAnalysisResDTO> list = icEventService.categoryAnalysisTotal(formDTO); |
|
|
|
return new Result<List<IcEventCategoryAnalysisResDTO>>().ok(list); |
|
|
|
} |
|
|
@ -305,7 +315,7 @@ public class IcEventController { |
|
|
|
* @Author sun |
|
|
|
* @Description 事件管理-详情 |
|
|
|
**/ |
|
|
|
@MaskResponse(fieldNames = { "idCard"}, fieldsMaskType = {MaskResponse.MASK_TYPE_ID_CARD }) |
|
|
|
@MaskResponse(fieldNames = {"idCard"}, fieldsMaskType = {MaskResponse.MASK_TYPE_ID_CARD}) |
|
|
|
@PostMapping("detail") |
|
|
|
public Result<IcEventListResultDTO> detail(@LoginUser TokenDto tokenDto, @RequestBody IcEventListFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
@ -313,6 +323,7 @@ public class IcEventController { |
|
|
|
ValidatorUtils.validateEntity(formDTO, IcEventListFormDTO.Detail.class); |
|
|
|
return new Result<IcEventListResultDTO>().ok(icEventService.detail(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Author sun |
|
|
|
* @Description 工作端小程序-事件管理-详情 |
|
|
@ -328,6 +339,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 事件分类分析- 饼图2,直属下级 事件数量 |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
@ -353,12 +365,13 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* Desc: 定时任务自动评价 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @author zxc |
|
|
|
* @date 2022/5/18 16:35 |
|
|
|
*/ |
|
|
|
@PostMapping("auto-evaluation") |
|
|
|
public Result autoEvaluation(@RequestBody AutoEvaluationFormDTO formDTO){ |
|
|
|
public Result autoEvaluation(@RequestBody AutoEvaluationFormDTO formDTO) { |
|
|
|
icEventService.autoEvaluation(formDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -376,6 +389,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* Desc: 新增【随手拍、讲】 |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @author zxc |
|
|
@ -383,7 +397,7 @@ public class IcEventController { |
|
|
|
*/ |
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("add-event-resi") |
|
|
|
public Result addEventFromResi(@LoginUser TokenDto tokenDto,@RequestBody AddEventFromResiFormDTO formDTO){ |
|
|
|
public Result addEventFromResi(@LoginUser TokenDto tokenDto, @RequestBody AddEventFromResiFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, AddEventFromResiFormDTO.AddEventFromResiForm.class); |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
@ -394,6 +408,7 @@ public class IcEventController { |
|
|
|
/** |
|
|
|
* 居民端小程序我上报的事件-列表+详情 |
|
|
|
* yapi: http://yapi.elinkservice.cn/project/102/interface/api/7781
|
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
@ -408,6 +423,7 @@ public class IcEventController { |
|
|
|
|
|
|
|
/** |
|
|
|
* 居民端我上报的事件, 消息列表跳转详情 |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
@ -423,20 +439,22 @@ public class IcEventController { |
|
|
|
/** |
|
|
|
* 居民端小程序我上报的事件详情页面-回复列表 |
|
|
|
* http://yapi.elinkservice.cn/project/102/interface/api/7783
|
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("reply-list") |
|
|
|
public Result<List<IcEventReplyDTO>> replyList(@LoginUser TokenDto tokenDto,@RequestBody MyReportIcEvFormDTO formDTO) { |
|
|
|
public Result<List<IcEventReplyDTO>> replyList(@LoginUser TokenDto tokenDto, @RequestBody MyReportIcEvFormDTO formDTO) { |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO, MyReportIcEvFormDTO.ReplyListGroup.class); |
|
|
|
return new Result<List<IcEventReplyDTO>>().ok(icEventReplyService.replyList(formDTO.getIcEventId(),formDTO.getUserId())); |
|
|
|
return new Result<List<IcEventReplyDTO>>().ok(icEventReplyService.replyList(formDTO.getIcEventId(), formDTO.getUserId())); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 居民端小程序我上报的事件-处理中 |
|
|
|
* 点击事件进入详情页时调用此接口,消除红点 |
|
|
|
* yapi:http://yapi.elinkservice.cn/project/102/interface/api/7790
|
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
@ -452,16 +470,17 @@ public class IcEventController { |
|
|
|
/** |
|
|
|
* 居民端我上报的事件-回复 |
|
|
|
* http://yapi.elinkservice.cn/project/102/interface/api/7789
|
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@NoRepeatSubmit |
|
|
|
@PostMapping("resi-reply") |
|
|
|
public Result resiReply(@LoginUser TokenDto tokenDto, @RequestBody ResiReplyIcEventFormDTO formDTO){ |
|
|
|
public Result resiReply(@LoginUser TokenDto tokenDto, @RequestBody ResiReplyIcEventFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO, ResiReplyIcEventFormDTO.AddUserShowGroup.class,ResiReplyIcEventFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, ResiReplyIcEventFormDTO.AddUserShowGroup.class, ResiReplyIcEventFormDTO.AddUserInternalGroup.class); |
|
|
|
icEventService.resiReply(formDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -487,8 +506,8 @@ public class IcEventController { |
|
|
|
List<IcEventExcel> list = null; |
|
|
|
do { |
|
|
|
data = icEventService.list(formDTO); |
|
|
|
data.getList().forEach(d->{ |
|
|
|
if(!org.springframework.util.CollectionUtils.isEmpty(d.getImageList())){ |
|
|
|
data.getList().forEach(d -> { |
|
|
|
if (!org.springframework.util.CollectionUtils.isEmpty(d.getImageList())) { |
|
|
|
d.setImageUrl(d.getImageList().get(NumConstant.ZERO)); |
|
|
|
} |
|
|
|
}); |
|
|
@ -501,7 +520,7 @@ public class IcEventController { |
|
|
|
response.setCharacterEncoding("UTF-8"); |
|
|
|
response.setHeader("content-type", "application/json; charset=UTF-8"); |
|
|
|
PrintWriter printWriter = response.getWriter(); |
|
|
|
Result<Object> result = new Result<>().error(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),e.getMsg()); |
|
|
|
Result<Object> result = new Result<>().error(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), e.getMsg()); |
|
|
|
printWriter.write(JSON.toJSONString(result)); |
|
|
|
printWriter.close(); |
|
|
|
} catch (Exception e) { |
|
|
@ -537,6 +556,7 @@ public class IcEventController { |
|
|
|
/** |
|
|
|
* 数据分析-个人档案-上报事件列表,根据epmetUserIdList查询 |
|
|
|
* 模仿gov/project/resieventreply/pageuserreported接口重新查询新表接口 |
|
|
|
* |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("icevent-pageuserreported") |
|
|
@ -560,23 +580,25 @@ public class IcEventController { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @description 获取事件数量和分类数量 |
|
|
|
* @param * @param null |
|
|
|
* @return Result |
|
|
|
* @throws |
|
|
|
* @description 获取事件数量和分类数量 |
|
|
|
* @author yan Lu |
|
|
|
* @date 2023/5/17 14:49 |
|
|
|
*/ |
|
|
|
@GetMapping("getEventRate") |
|
|
|
public Result<EventRateResultDTO> getEventRate(@RequestParam("orgId") String orgId, |
|
|
|
@RequestParam("orgType") String orgType){ |
|
|
|
return new Result<EventRateResultDTO>().ok(icEventService.getEventRate(orgId,orgType)); |
|
|
|
@RequestParam("orgType") String orgType, |
|
|
|
@RequestParam("eventType") String eventType) { |
|
|
|
return new Result<EventRateResultDTO>().ok(icEventService.getEventRate(orgId, orgType, eventType)); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("getEventAnalysis") |
|
|
|
public Result<EventAnalysisResultDTO> getEventAnalysis(@RequestParam("orgId") String orgId, |
|
|
|
@RequestParam("orgType") String orgType){ |
|
|
|
return new Result<EventAnalysisResultDTO>().ok(icEventService.getEventAnalysis(orgId,orgType)); |
|
|
|
@RequestParam("orgType") String orgType, |
|
|
|
@RequestParam("eventType") String eventType) { |
|
|
|
return new Result<EventAnalysisResultDTO>().ok(icEventService.getEventAnalysis(orgId, orgType, eventType)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|