zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
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
53
54
55
56
57
58
59
package cn.autoform.web.service.process.impl;
 
import javax.annotation.Resource;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import cn.autoform.db.entity.ProcessInstance;
import cn.autoform.util.thread.Keys;
import cn.autoform.util.thread.ThreadData;
import cn.autoform.web.mapper.process.ProcessInstanceMapper;
import cn.autoform.web.service.process.ProcessInstanceService;
@Service
public class ProcessInstanceServiceImpl implements ProcessInstanceService{
 
    @Resource
    private ProcessInstanceMapper processInstanceMapper;
    
    /**
     * 添加流程实例
     */
    @Override
    public int addProcess(ProcessInstance processInstance) {
        
        return processInstanceMapper.addProcess(processInstance);
    }
    
    /**
     * 查询流程实例
     */
    @Override
    public ProcessInstance select(String id) {
        
        return processInstanceMapper.selectForm(id);
    }
 
    @Override
    public int updatePro(ProcessInstance processInstance) {
        
        return processInstanceMapper.updatePro(processInstance);
    }
 
    @Override
    public ProcessInstance selectInst(ProcessInstance pro) {
        
        return processInstanceMapper.selectInst(pro,ThreadData.get(Keys.TENANT_ID));
    }
 
    @Override
    public ProcessInstance selectInsts(String pro) {
        return processInstanceMapper.selectInsts(pro,ThreadData.get(Keys.TENANT_ID));
    }
 
    @Override
    public int updateProState(String processInstance) {
        return processInstanceMapper.updateProState(processInstance);
    }
 
}