| | |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.WorkflowLinkDTO; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.pojo.WorkflowLink; |
| | | import com.whyc.service.WorkflowLinkService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | |
| | | @GetMapping("searchTmp") |
| | | @ApiOperation(value = "查询节点(除放电计划之外的)") |
| | | @ApiOperation(value = "查询节点(除放电计划之外的)", notes = "status:0全部,1审批中,2审批通过,3驳回;type:0全部,2二次放电,3告警隐患") |
| | | public Response searchTmp(@RequestParam int type, @RequestParam int status, @RequestParam int pageNum, @RequestParam int pageSize) { |
| | | return service.searchTmp(type, status, pageNum, pageSize); |
| | | UserInf uinf = ActionUtil.getUser(); |
| | | return service.searchTmp(uinf.getUId().intValue(), uinf.getURole(), type, status, pageNum, pageSize); |
| | | } |
| | | |
| | | @GetMapping("searchLastHrById") |
| | |
| | | return service.searchLastHrById(mid); |
| | | } |
| | | |
| | | @GetMapping("getFlowMain") |
| | | @ApiOperation(value = "查询自己申请的工单(去除放电计划)") |
| | | @GetMapping("getFlowMainByUid") |
| | | @ApiOperation(value = "查询自己申请的工单(去除放电计划)", notes = "status:0全部,1审批中,2审批通过,3驳回;type:0全部,2二次放电,3告警隐患") |
| | | public Response getFlowMainByUid(@RequestParam int type, @RequestParam int status, @RequestParam int pageNum, @RequestParam int pageSize) { |
| | | return service.getFlowMainByUid(type, status, pageNum, pageSize); |
| | | UserInf uinf = ActionUtil.getUser(); |
| | | return service.getFlowMainByUid(uinf.getUId().intValue(), type, status, pageNum, pageSize); |
| | | } |
| | | } |