| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.DocUser; |
| | | import com.whyc.pojo.WorksheetMain; |
| | | import com.whyc.service.WorksheetMainService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @RequestMapping("worksheetMain") |
| | |
| | | return new Response().setII(1,"工单提交完成"); |
| | | } |
| | | |
| | | @GetMapping("list") |
| | | @ApiOperation("获取工单流程-用户对应的待处理/已处理/已提交/已驳回") |
| | | public Response getList(){ |
| | | DocUser user = ActionUtil.getUser(); |
| | | Map<String,WorksheetMain> map = service.getList(); |
| | | return new Response().set(1,map); |
| | | } |
| | | |
| | | @GetMapping("linkInfo") |
| | | @ApiOperation("获取工单流程-单个工单信息流") |
| | | public Response getLinkList(@RequestParam int id){ |
| | | WorksheetMain main = service.getLinkList(id); |
| | | return new Response().set(1,main); |
| | | } |
| | | |
| | | } |