xyc
2024-08-02 a43fd8f15c7da7f4a14ba4ebb79970dad4ce1fae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.zt.life.modules.mainPart.task.controller;
 
import com.zt.common.annotation.LogOperation;
import com.zt.common.servlet.Result;
import com.zt.common.utils.UUIDUtil;
import com.zt.common.validator.AssertUtils;
import com.zt.life.modules.mainPart.task.service.TaskCenterService;
import com.zt.modules.workflow.model.WfRunTask;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.text.ParseException;
import java.util.List;
 
@RestController
@RequestMapping("/task/taskCenter")
public class TaskCenterController {
 
    @Autowired
    private TaskCenterService taskCenterService;
 
    @GetMapping("page")
    @ApiOperation("任务中心待办业务")
    public Result<List<WfRunTask>> page(String djxlSystem, Long projectId, String approveStepId) throws ParseException {
        List<WfRunTask> list = taskCenterService.page(djxlSystem, projectId, approveStepId);
        return Result.ok(list);
    }
 
    @GetMapping("getRowByProjectId")
    @ApiOperation("任务中心待办业务")
    public Result<WfRunTask> getRowByProjectId(Long projectId) throws ParseException {
        WfRunTask list = taskCenterService.getRowByProjectId(projectId);
        return Result.ok(list);
    }
 
    @GetMapping("pageDone")
    @ApiOperation("任务中心已办业务")
    public Result<List<WfRunTask>> pageDone(String djxlSystem) {
        List<WfRunTask> list = taskCenterService.pageDone(djxlSystem);
        return Result.ok(list);
    }
 
    @PutMapping("oneKeyDoneCy")
    @ApiOperation("一键办理查阅")
    @LogOperation("一键办理查阅")
    public Result oneKeyDoneCy() {
        taskCenterService.oneKeyDoneCy();
        return Result.ok();
    }
 
}