| | |
| | | import com.panzhihua.westcommittee.service.IComplaintCommentService; |
| | | import com.panzhihua.westcommittee.service.IComplaintService; |
| | | import com.panzhihua.westcommittee.service.IProblemTypeService; |
| | | import com.panzhihua.westcommittee.warpper.GetHouseAddressQuery; |
| | | import io.swagger.annotations.*; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.checkerframework.checker.units.qual.C; |
| | |
| | | public R<?> save(@Valid @RequestBody Complaint complaint) { |
| | | complaintService.saveComplaint(complaint, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/getHouseAddress") |
| | | @ApiOperation(value = "录入诉求-获取详细地址") |
| | | public R<Page<String>> getHouseAddress(GetHouseAddressQuery query) { |
| | | Page<String> addressList = complaintService.getHouseAddress(query); |
| | | return R.ok(addressList); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/save-process") |
| | | @ApiOperation("办理进度录入") |
| | | public R<?> saveProcess(@Valid @RequestBody ComplaintProcessDTO dto){ |
| | | Complaint byId = complaintService.getById(dto.getComplaintId()); |
| | | if(byId.getAssignStatus()==0){ |
| | | return R.fail("该诉求未分配"); |
| | | } |
| | | complaintService.saveProcess(dto,getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | |
| | | @PostMapping("/report") |
| | | @ApiOperation(value = "问题上报") |
| | | public R<?> report(@RequestBody ComplaintReportDTO complaintReportDTO) { |
| | | Complaint byId = complaintService.getById(complaintReportDTO.getComplaintId()); |
| | | if(byId.getAssignStatus()==0){ |
| | | return R.fail("该诉求未分配"); |
| | | } |
| | | |
| | | |
| | | complaintService.saveReport(complaintReportDTO, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | |
| | | @PostMapping("/saveDelay") |
| | | @ApiOperation(value = "延期申请") |
| | | public R<?> saveDelay(@Valid @RequestBody ComplaintDelayDTO dto){ |
| | | Complaint byId = complaintService.getById(dto.getComplaintId()); |
| | | if(byId.getAssignStatus()==0){ |
| | | return R.fail("该诉求未分配"); |
| | | } |
| | | complaintService.saveDelay(dto, getLoginUserInfo()); |
| | | return R.ok(); |
| | | } |
| | |
| | | @PostMapping("/assignComplain") |
| | | @ApiOperation(value = "分配诉求") |
| | | public R<?> assignComplain(@Valid@RequestBody AssignComplainDto dto) { |
| | | |
| | | complaintService.assignComplain(getLoginUserInfo(),dto.getComplainId(),dto.getDeptId(),dto.getRemark()); |
| | | |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | complaint1.setCompletionVideos(null); |
| | | complaint1.setCompletionOtherDescription(null); |
| | | complaint1.setRemark(null); |
| | | complaint1.setNowLevelTime(new Date()); |
| | | complaint1.setNowLevelSms(0); |
| | | complaint1.setRedispatch(1); |
| | | complaintService.save(complaint1); |
| | | } |
| | | |