| | |
| | | import com.panzhihua.westcommittee.service.IProblemTypeService; |
| | | import io.swagger.annotations.*; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.checkerframework.checker.units.qual.C; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @ApiOperation(value = "分配诉求") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "complainId", value = "诉求id", required = true), |
| | | @ApiImplicitParam(name = "deptId", value = "单位id", required = true) |
| | | @ApiImplicitParam(name = "deptId", value = "单位id", required = true), |
| | | @ApiImplicitParam(name = "remark", value = "说明", required = true), |
| | | }) |
| | | public R<?> assignComplain(@RequestParam Long complainId,@RequestParam Integer deptId) { |
| | | complaintService.assignComplain(getLoginUserInfo(),complainId,deptId); |
| | | public R<?> assignComplain(@RequestParam Long complainId,@RequestParam Integer deptId,@RequestParam String remark) { |
| | | complaintService.assignComplain(getLoginUserInfo(),complainId,deptId,remark); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | complaint.setStatus(8); |
| | | complaint.setCommentRate(complaintComment.getRate()); |
| | | complaintService.updateById(complaint); |
| | | // 不满意 重新生成诉求 |
| | | if(complaintComment.getRate()==0){ |
| | | Complaint complaint1 = new Complaint(); |
| | | BeanUtils.copyProperties(complaint,complaint1); |
| | | complaint1.setStatus(0); |
| | | complaint1.setAssignStatus(0); |
| | | complaint1.setId(null); |
| | | complaint1.setCompletionTime(null); |
| | | complaint1.setCompletionUserId(null); |
| | | complaint1.setCompletionUsername(null); |
| | | complaint1.setCompletionUserPhone(null); |
| | | complaint1.setCompletionImages(null); |
| | | complaint1.setCompletionUserLevel(null); |
| | | complaint1.setCompletionDescription(null); |
| | | complaint1.setCompletionVideos(null); |
| | | complaint1.setCompletionOtherDescription(null); |
| | | complaintService.save(complaint1); |
| | | } |
| | | |
| | | return R.ok(); |
| | | } |
| | | |