| | |
| | | import com.panzhihua.sangeshenbian.model.entity.Complaint; |
| | | import com.panzhihua.sangeshenbian.model.entity.ComplaintAuditRecord; |
| | | import com.panzhihua.sangeshenbian.model.entity.ComplaintProgress; |
| | | import com.panzhihua.sangeshenbian.model.entity.ProblemType; |
| | | import com.panzhihua.sangeshenbian.model.query.ComplaintQuery; |
| | | import com.panzhihua.sangeshenbian.model.vo.ComplaintVO; |
| | | import com.panzhihua.sangeshenbian.model.vo.DispatchVO; |
| | | import com.panzhihua.sangeshenbian.service.IComplaintService; |
| | | import com.panzhihua.sangeshenbian.service.IProblemTypeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping("/applet/complaint") |
| | | @RequiredArgsConstructor |
| | | @RequiredArgsConstructor(onConstructor_ = {@Lazy}) |
| | | @Api(tags = "诉求管理") |
| | | public class ComplaintController extends BaseController { |
| | | |
| | | private final IComplaintService complaintService; |
| | | |
| | | |
| | | private final IProblemTypeService problemTypeService; |
| | | @GetMapping("/problem-type/list") |
| | | @ApiOperation("获取诉求问题类型列表") |
| | | public R<List<ProblemType>> problemTypeList() { |
| | | return R.ok(problemTypeService.list()); |
| | | } |
| | | /** |
| | | * 录入诉求 |
| | | */ |
| | |
| | | } |
| | | |
| | | @GetMapping("/progress/{complaintId}") |
| | | @ApiOperation("办理进度") |
| | | public R<List<ComplaintProgress>> progress(@ApiParam(name = "complaintId", value = "诉求id", required = true) @PathVariable("complaintId") Long complaintId) { |
| | | return R.ok(complaintService.progress(complaintId)); |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/getDispatchList") |
| | | @ApiOperation(value = "获取下派单位列表") |
| | | public R<?> getDispatchList() { |
| | | public R<List<DispatchVO>> getDispatchList() { |
| | | return R.ok(complaintService.getDispatchList(getLoginUserInfo())); |
| | | } |
| | | |