public List<TForm> getFormByTaskidAndTaskDefId(String taskId, String taskDefId) { TFormExample tformExample = new TFormExample(); Criteria criteria = tformExample.createCriteria(); String processdefid = activitiManager.findProcessDefinitionEntityByTaskId(taskId).getId(); activitiManager.findProcessDefinitionEntityByTaskId(taskId); criteria.andActIdEqualTo(taskDefId).andProcessdefidEqualTo(processdefid); return tformMapper.selectByExample(tformExample); }
public List<TForm> getForm(String processdefid, List<Object> act_idList) { TFormExample tformExample = new TFormExample(); Criteria criteria = tformExample.createCriteria(); criteria.andActIdIn(act_idList).andProcessdefidEqualTo(processdefid); return tformMapper.selectByExample(tformExample); }
public void deleteForm(String processDefId, String act_id) { TFormExample tformExample = new TFormExample(); Criteria criteria = tformExample.createCriteria(); criteria.andProcessdefidEqualTo(processDefId).andActIdEqualTo(act_id); tformMapper.deleteByExample(tformExample); }