|
|
@ -43,34 +43,35 @@ import java.util.List; |
|
|
|
@RestController |
|
|
|
@RequestMapping("resievent") |
|
|
|
public class ResiEventController { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ResiEventService resiEventService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 报事详情-两端通用 |
|
|
|
* @Description 报事详情-两端通用 |
|
|
|
* @Param formDTO |
|
|
|
* @author zxc |
|
|
|
* @date 2021/8/3 1:47 下午 |
|
|
|
*/ |
|
|
|
@PostMapping("eventdetail") |
|
|
|
public Result<EventDetailResultDTO> eventDetail(@LoginUser TokenDto tokenDto ,@RequestBody EventDetailFormDTO formDTO){ |
|
|
|
public Result<EventDetailResultDTO> eventDetail(@LoginUser TokenDto tokenDto, @RequestBody EventDetailFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO); |
|
|
|
return new Result<EventDetailResultDTO>().ok(resiEventService.eventDetail(formDTO,tokenDto)); |
|
|
|
return new Result<EventDetailResultDTO>().ok(resiEventService.eventDetail(formDTO, tokenDto)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 我要报事-提交(尹) |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @author yinzuomei |
|
|
|
* @date 2021/8/3 10:46 |
|
|
|
*/ |
|
|
|
@PostMapping("report") |
|
|
|
public Result<ResiEventIdDTO> report(@LoginUser TokenDto tokenDto, @RequestBody ResiEventFormDTO formDTO){ |
|
|
|
public Result<ResiEventIdDTO> report(@LoginUser TokenDto tokenDto, @RequestBody ResiEventFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,ResiEventFormDTO.AddUserShowGroup.class,ResiEventFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, ResiEventFormDTO.AddUserShowGroup.class, ResiEventFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<ResiEventIdDTO>().ok(resiEventService.report(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
@ -78,15 +79,15 @@ public class ResiEventController { |
|
|
|
* 我要报事-撤回(尹) |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @author yinzuomei |
|
|
|
* @date 2021/8/3 10:54 |
|
|
|
*/ |
|
|
|
@PostMapping("recall") |
|
|
|
public Result recall(@LoginUser TokenDto tokenDto,@RequestBody ReCallEventFormDTO formDTO){ |
|
|
|
public Result recall(@LoginUser TokenDto tokenDto, @RequestBody ReCallEventFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,ResiEventIdDTO.ResiEventIdGroup.class,ReCallEventFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, ResiEventIdDTO.ResiEventIdGroup.class, ReCallEventFormDTO.AddUserInternalGroup.class); |
|
|
|
resiEventService.reCall(formDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -96,15 +97,15 @@ public class ResiEventController { |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @author yinzuomei |
|
|
|
* @date 2021/8/3 13:57 |
|
|
|
*/ |
|
|
|
@PostMapping("chooseresolve") |
|
|
|
public Result chooseResolve(@LoginUser TokenDto tokenDto,@RequestBody ChooseResolveFormDTO formDTO){ |
|
|
|
public Result chooseResolve(@LoginUser TokenDto tokenDto, @RequestBody ChooseResolveFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,ResiEventIdDTO.ResiEventIdGroup.class,ChooseResolveFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, ResiEventIdDTO.ResiEventIdGroup.class, ChooseResolveFormDTO.AddUserInternalGroup.class); |
|
|
|
resiEventService.chooseResolve(formDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
@ -115,43 +116,43 @@ public class ResiEventController { |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.MyReportedResultDTO>> |
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List < com.epmet.dto.result.MyReportedResultDTO>> |
|
|
|
* @author yinzuomei |
|
|
|
* @date 2021/8/3 14:27 |
|
|
|
*/ |
|
|
|
@PostMapping("myreported") |
|
|
|
public Result<List<MyReportedResultDTO>> queryMyReported(@LoginUser TokenDto tokenDto, @RequestBody MyReportedFormDTO formDTO){ |
|
|
|
public Result<List<MyReportedResultDTO>> queryMyReported(@LoginUser TokenDto tokenDto, @RequestBody MyReportedFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,MyReportedFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, MyReportedFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<MyReportedResultDTO>>().ok(resiEventService.queryMyReported(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 群众直报(待处理、处理中、已办结)列表 |
|
|
|
* @Description 群众直报(待处理、处理中、已办结)列表 |
|
|
|
* @Param formDTO |
|
|
|
* @author zxc |
|
|
|
* @date 2021/8/3 10:53 上午 |
|
|
|
*/ |
|
|
|
@PostMapping("eventlist") |
|
|
|
public Result<List<EventListResultDTO>> eventList(@RequestBody EventListFormDTO formDTO){ |
|
|
|
public Result<List<EventListResultDTO>> eventList(@RequestBody EventListFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, EventListFormDTO.EventListForm.class); |
|
|
|
return new Result<List<EventListResultDTO>>().ok(resiEventService.eventList(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 报事-首次查看事件-两端通用 |
|
|
|
* @Description 报事-首次查看事件-两端通用 |
|
|
|
* @Param formDTO |
|
|
|
* @author zxc |
|
|
|
* @date 2021/8/3 11:01 上午 |
|
|
|
*/ |
|
|
|
@PostMapping("updateviewtime") |
|
|
|
public Result updateViewTime(@LoginUser TokenDto tokenDto,@RequestBody UpdateViewTimeFormDTO formDTO){ |
|
|
|
public Result updateViewTime(@LoginUser TokenDto tokenDto, @RequestBody UpdateViewTimeFormDTO formDTO) { |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,UpdateViewTimeFormDTO.AddUserInternalGroup.class); |
|
|
|
if(EventConstant.STAFF.equals(formDTO.getViewType())){ |
|
|
|
ValidatorUtils.validateEntity(formDTO,UpdateViewTimeFormDTO.GovInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, UpdateViewTimeFormDTO.AddUserInternalGroup.class); |
|
|
|
if (EventConstant.STAFF.equals(formDTO.getViewType())) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, UpdateViewTimeFormDTO.GovInternalGroup.class); |
|
|
|
} |
|
|
|
resiEventService.updateViewTime(formDTO); |
|
|
|
return new Result(); |
|
|
@ -162,25 +163,26 @@ public class ResiEventController { |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.MyReportedResultDTO>> |
|
|
|
* @return com.epmet.commons.tools.utils.Result<java.util.List < com.epmet.dto.result.MyReportedResultDTO>> |
|
|
|
* @author yinzuomei |
|
|
|
* @date 2021/8/4 9:40 |
|
|
|
*/ |
|
|
|
@PostMapping("mentionlist") |
|
|
|
public Result<List<UserMentionResultDTO>> mentionList(@LoginUser TokenDto tokenDto, @RequestBody UserMentionFormDTO formDTO){ |
|
|
|
public Result<List<UserMentionResultDTO>> mentionList(@LoginUser TokenDto tokenDto, @RequestBody UserMentionFormDTO formDTO) { |
|
|
|
formDTO.setCustomerId(tokenDto.getCustomerId()); |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,UserMentionFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, UserMentionFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<UserMentionResultDTO>>().ok(resiEventService.mentionList(formDTO)); |
|
|
|
}} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @Description 最新直报 |
|
|
|
* @Description 最新直报 |
|
|
|
* @Param userId |
|
|
|
* @author zxc |
|
|
|
* @date 2021/8/5 9:55 上午 |
|
|
|
*/ |
|
|
|
@PostMapping("newevents") |
|
|
|
public Result<List<NewEventsResultDTO>> newEvents(@LoginUser TokenDto tokenDto){ |
|
|
|
public Result<List<NewEventsResultDTO>> newEvents(@LoginUser TokenDto tokenDto) { |
|
|
|
return new Result<List<NewEventsResultDTO>>().ok(resiEventService.newEvents(tokenDto.getUserId())); |
|
|
|
} |
|
|
|
|
|
|
@ -189,14 +191,15 @@ public class ResiEventController { |
|
|
|
* |
|
|
|
* @param tokenDto |
|
|
|
* @param formDTO |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @return com.epmet.commons.tools.utils.Result |
|
|
|
* @author yinzuomei |
|
|
|
* @date 2021/8/5 10:47 |
|
|
|
*/ |
|
|
|
@PostMapping("close") |
|
|
|
public Result closeResiEvent(@LoginUser TokenDto tokenDto,@RequestBody CloseResiEventFormDTO formDTO){ |
|
|
|
public Result closeResiEvent(@LoginUser TokenDto tokenDto, @RequestBody CloseResiEventFormDTO formDTO) { |
|
|
|
formDTO.setUserId(tokenDto.getUserId()); |
|
|
|
ValidatorUtils.validateEntity(formDTO,CloseResiEventFormDTO.AddUserInternalGroup.class); |
|
|
|
ValidatorUtils.validateEntity(formDTO, CloseResiEventFormDTO.AddUserInternalGroup.class); |
|
|
|
resiEventService.closeResiEvent(formDTO); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |