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);
|
}
|
|
}
|