单据的创建人处理
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
package com.ktg.web.controller.system;
|
||||
|
||||
import com.ktg.common.core.controller.BaseController;
|
||||
import com.ktg.common.core.page.TableDataInfo;
|
||||
import com.ktg.mes.md.domain.MdVendor;
|
||||
import com.ktg.mes.pro.service.IProFeedbackService;
|
||||
import com.ktg.mes.wm.service.*;
|
||||
import com.ktg.system.domain.UserTask;
|
||||
import com.ktg.system.service.IUserTaskService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api("用户的代办已办任务")
|
||||
@RestController
|
||||
@RequestMapping("/mobile/usertask")
|
||||
public class UserTaskController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private IUserTaskService userTaskService;
|
||||
|
||||
/**
|
||||
* 查询待处理的任务和单据
|
||||
* 1.所有自己起草的,草稿状态的单据(目前阶段只实现此条)
|
||||
* 2.根据具体的业务审批流程配置,需要自己审批的单据
|
||||
*/
|
||||
@ApiOperation("查询待处理的任务和单据(分页)")
|
||||
@GetMapping("/listTodo")
|
||||
public TableDataInfo listTodoList(Long userId)
|
||||
{
|
||||
startPage();
|
||||
List<UserTask> list = userTaskService.listTodoList(userId);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询已处理的任务和单据
|
||||
* 1.所有自己起草,非草稿状态的单据(目前阶段只实现此条)
|
||||
* 2.根据具体的业务审批流程配置,流经自己的单据
|
||||
*/
|
||||
@ApiOperation("查询已处理的任务和单据(分页)")
|
||||
@GetMapping("/listFinished")
|
||||
public TableDataInfo listFinishedList(Long userId)
|
||||
{
|
||||
startPage();
|
||||
List<UserTask> list = userTaskService.listFinishedList(userId);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user