| | |
| | | package com.ycl.controller.caseHandler; |
| | | |
| | | |
| | | import com.ycl.annotation.LogSave; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.bo.AdminUserDetails; |
| | | import com.ycl.dto.caseHandler.DispatchInfoParam; |
| | | import com.ycl.dto.dispatch.UploadDisposingResultParam; |
| | | import com.ycl.entity.caseHandler.DispatchInfo; |
| | | import com.ycl.service.caseHandler.IDispatchHandleService; |
| | | import com.ycl.service.caseHandler.*; |
| | | import com.ycl.service.resources.IImageResourcesService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | * @since 2022-09-28 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/dispatch-handle") |
| | | @Api(tags = "调度处理") |
| | | @RequestMapping("/dispatch_handle") |
| | | @Api(tags = "调度") |
| | | public class DispatchHandleController { |
| | | |
| | | |
| | | @Autowired |
| | | IDispatchHandleService iDispatchHandleService; |
| | | |
| | | @Autowired |
| | | IInvestigationService iInvestigationService; |
| | | @Autowired |
| | | IArrivalSituationService iArrivalSituationService; |
| | | @Autowired |
| | | IPartyInfoService iPartyInfoService; |
| | | @Autowired |
| | | IWritService iWritService; |
| | | @Autowired |
| | | IBaseCaseService baseCaseService; |
| | | @Autowired |
| | | IDisposeRecordService iDisposeRecordService; |
| | | @Autowired |
| | | IImageResourcesService iImageResourcesService; |
| | | |
| | | @ApiOperation(value = "调度") |
| | | @RequestMapping(value = "/dispatch", method = RequestMethod.POST) |
| | | @ResponseBody |
| | | @LogSave(operationType = "事项处置管理", contain = "案件调度") |
| | | public CommonResult<DispatchInfo> dispatch(@Validated @RequestBody DispatchInfoParam dispatchInfoParam) { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | dispatchInfoParam.setCreateUser(user.getUserId()); |
| | | return CommonResult.success(iDispatchHandleService.dispatch(dispatchInfoParam)); |
| | | } |
| | | |
| | | @ApiOperation(value = "上传违规/违建处置结果") |
| | | @PostMapping("/addition_dispose_result") |
| | | @LogSave(operationType = "事项处置管理", contain = "案件上传处置结果") |
| | | public CommonResult searchDisposeList(@RequestBody UploadDisposingResultParam uploadDisposingResultParam) { |
| | | iDisposeRecordService.saveOrUpdateUpload(uploadDisposingResultParam); |
| | | return CommonResult.success("add success"); |
| | | } |
| | | } |