All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.opendynamic.ff.query.InvolvedProcQuery Maven / Gradle / Ivy

package com.opendynamic.ff.query;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.opendynamic.ff.service.FfProcService;
import com.opendynamic.ff.vo.Proc;

@Service
public class InvolvedProcQuery {
    private FfProcService ffProcService;

    private String assignee;
    private List assigneeList;
    private String procId;
    private List procIdList;
    private String adjustProcDefId;
    private List adjustProcDefIdList;
    private String isolateSubProcNodeId;
    private List isolateSubProcNodeIdList;
    private String bizId;
    private List bizIdList;
    private String bizType;
    private List bizTypeList;
    private String bizCode;
    private List bizCodeList;
    private String bizName;
    private List bizNameList;
    private String bizDesc;
    private List bizDescList;
    private String procStartUser;
    private List procStartUserList;
    private String procStartUserName;
    private List procStartUserNameList;
    private String procEndUser;
    private List procEndUserList;
    private String procEndUserName;
    private List procEndUserNameList;
    private Date fromProcEndDate;
    private Date toProcEndDate;
    private String procStatus;
    private List procStatusList;
    private Date fromCreationDate;
    private Date toCreationDate;
    private String procDefId;
    private List procDefIdList;
    private String procDefCode;
    private List procDefCodeList;
    private String procDefName;
    private List procDefNameList;
    private String procDefCat;
    private List procDefCatList;
    private Integer version;
    private List versionList;
    private String procDefStatus;
    private List procDefStatusList;
    private Integer page;
    private Integer limit;
    private String dataScope;

    public InvolvedProcQuery(FfProcService ffProcService) {
        super();
        this.ffProcService = ffProcService;
    }

    public InvolvedProcQuery setAssignee(String assignee) {
        this.assignee = assignee;
        return this;
    }

    public InvolvedProcQuery setAssigneeList(List assigneeList) {
        this.assigneeList = assigneeList;
        return this;
    }

    public InvolvedProcQuery setProcId(String procId) {
        this.procId = procId;
        return this;
    }

    public InvolvedProcQuery setProcIdList(List procIdList) {
        this.procIdList = procIdList;
        return this;
    }

    public InvolvedProcQuery setAdjustProcDefId(String adjustProcDefId) {
        this.adjustProcDefId = adjustProcDefId;
        return this;
    }

    public InvolvedProcQuery setAdjustProcDefIdList(List adjustProcDefIdList) {
        this.adjustProcDefIdList = adjustProcDefIdList;
        return this;
    }

    public InvolvedProcQuery setIsolateSubProcNodeId(String isolateSubProcNodeId) {
        this.isolateSubProcNodeId = isolateSubProcNodeId;
        return this;
    }

    public InvolvedProcQuery setIsolateSubProcNodeIdList(List isolateSubProcNodeIdList) {
        this.isolateSubProcNodeIdList = isolateSubProcNodeIdList;
        return this;
    }

    public InvolvedProcQuery setBizId(String bizId) {
        this.bizId = bizId;
        return this;
    }

    public InvolvedProcQuery setBizIdList(List bizIdList) {
        this.bizIdList = bizIdList;
        return this;
    }

    public InvolvedProcQuery setBizType(String bizType) {
        this.bizType = bizType;
        return this;
    }

    public InvolvedProcQuery setBizTypeList(List bizTypeList) {
        this.bizTypeList = bizTypeList;
        return this;
    }

    public InvolvedProcQuery setBizCode(String bizCode) {
        this.bizCode = bizCode;
        return this;
    }

    public InvolvedProcQuery setBizCodeList(List bizCodeList) {
        this.bizCodeList = bizCodeList;
        return this;
    }

    public InvolvedProcQuery setBizName(String bizName) {
        this.bizName = bizName;
        return this;
    }

    public InvolvedProcQuery setBizNameList(List bizNameList) {
        this.bizNameList = bizNameList;
        return this;
    }

    public InvolvedProcQuery setBizDesc(String bizDesc) {
        this.bizDesc = bizDesc;
        return this;
    }

    public InvolvedProcQuery setBizDescList(List bizDescList) {
        this.bizDescList = bizDescList;
        return this;
    }

    public InvolvedProcQuery setProcStartUser(String procStartUser) {
        this.procStartUser = procStartUser;
        return this;
    }

    public InvolvedProcQuery setProcStartUserList(List procStartUserList) {
        this.procStartUserList = procStartUserList;
        return this;
    }

    public InvolvedProcQuery setProcStartUserName(String procStartUserName) {
        this.procStartUserName = procStartUserName;
        return this;
    }

    public InvolvedProcQuery setProcStartUserNameList(List procStartUserNameList) {
        this.procStartUserNameList = procStartUserNameList;
        return this;
    }

    public InvolvedProcQuery setProcEndUser(String procEndUser) {
        this.procEndUser = procEndUser;
        return this;
    }

    public InvolvedProcQuery setProcEndUserList(List procEndUserList) {
        this.procEndUserList = procEndUserList;
        return this;
    }

    public InvolvedProcQuery setProcEndUserName(String procEndUserName) {
        this.procEndUserName = procEndUserName;
        return this;
    }

    public InvolvedProcQuery setProcEndUserNameList(List procEndUserNameList) {
        this.procEndUserNameList = procEndUserNameList;
        return this;
    }

    public InvolvedProcQuery setFromProcEndDate(Date fromProcEndDate) {
        this.fromProcEndDate = fromProcEndDate;
        return this;
    }

    public InvolvedProcQuery setToProcEndDate(Date toProcEndDate) {
        this.toProcEndDate = toProcEndDate;
        return this;
    }

    public InvolvedProcQuery setProcStatus(String procStatus) {
        this.procStatus = procStatus;
        return this;
    }

    public InvolvedProcQuery setProcStatusList(List procStatusList) {
        this.procStatusList = procStatusList;
        return this;
    }

    public InvolvedProcQuery setFromCreationDate(Date fromCreationDate) {
        this.fromCreationDate = fromCreationDate;
        return this;
    }

    public InvolvedProcQuery setToCreationDate(Date toCreationDate) {
        this.toCreationDate = toCreationDate;
        return this;
    }

    public InvolvedProcQuery setProcDefId(String procDefId) {
        this.procDefId = procDefId;
        return this;
    }

    public InvolvedProcQuery setProcDefIdList(List procDefIdList) {
        this.procDefIdList = procDefIdList;
        return this;
    }

    public InvolvedProcQuery setProcDefCode(String procDefCode) {
        this.procDefCode = procDefCode;
        return this;
    }

    public InvolvedProcQuery setProcDefCodeList(List procDefCodeList) {
        this.procDefCodeList = procDefCodeList;
        return this;
    }

    public InvolvedProcQuery setProcDefName(String procDefName) {
        this.procDefName = procDefName;
        return this;
    }

    public InvolvedProcQuery setProcDefNameList(List procDefNameList) {
        this.procDefNameList = procDefNameList;
        return this;
    }

    public InvolvedProcQuery setProcDefCat(String procDefCat) {
        this.procDefCat = procDefCat;
        return this;
    }

    public InvolvedProcQuery setProcDefCatList(List procDefCatList) {
        this.procDefCatList = procDefCatList;
        return this;
    }

    public InvolvedProcQuery setVersion(Integer version) {
        this.version = version;
        return this;
    }

    public InvolvedProcQuery setVersionList(List versionList) {
        this.versionList = versionList;
        return this;
    }

    public InvolvedProcQuery setProcDefStatus(String procDefStatus) {
        this.procDefStatus = procDefStatus;
        return this;
    }

    public InvolvedProcQuery setProcDefStatusList(List procDefStatusList) {
        this.procDefStatusList = procDefStatusList;
        return this;
    }

    public InvolvedProcQuery setPage(Integer page) {
        this.page = page;
        return this;
    }

    public InvolvedProcQuery setLimit(Integer limit) {
        this.limit = limit;
        return this;
    }

    public InvolvedProcQuery setDataScope(String dataScope) {
        this.dataScope = dataScope;
        return this;
    }

    /**
     * 查询对象列表。对象格式为Map。
     * 
     * @return
     */
    public List> queryForMapList() {
        return ffProcService.selectInvolvedProc(assignee, assigneeList, procId, procIdList, adjustProcDefId, adjustProcDefIdList, isolateSubProcNodeId, isolateSubProcNodeIdList, bizId, bizIdList, bizType, bizTypeList, bizCode, bizCodeList, bizName, bizNameList, bizDesc, bizDescList, procStartUser, procStartUserList, procStartUserName, procStartUserNameList, procEndUser, procEndUserList, procEndUserName, procEndUserNameList, fromProcEndDate, toProcEndDate, procStatus, procStatusList, fromCreationDate, toCreationDate, procDefId, procDefIdList, procDefCode, procDefCodeList, procDefName, procDefNameList, procDefCat, procDefCatList, version, versionList, procDefStatus, procDefStatusList, page, limit, dataScope);
    }

    /**
     * 查询单个对象。对象格式为Map。
     * 
     * @return
     */
    public Map queryForMap() {
        List> result = queryForMapList();
        if (result.size() == 1) {
            return result.get(0);
        }
        else {
            return null;
        }
    }

    /**
     * 查询对象列表。对象格式为实体Bean。
     * 
     * @return
     */
    public List queryForObjectList() {
        List> result = queryForMapList();
        List procList = new ArrayList<>();
        for (int i = 0; i < result.size(); i++) {
            procList.add(new Proc(result.get(i)));
        }

        return procList;
    }

    /**
     * 查询单个对象。对象格式为实体Bean。
     * 
     * @return
     */
    public Proc queryForObject() {
        List> result = queryForMapList();
        if (result.size() == 1) {
            return new Proc(result.get(0));
        }
        else {
            return null;
        }
    }

    /**
     * 查询总数。
     * 
     * @return
     */
    public int count() {
        return ffProcService.countInvolvedProc(assignee, assigneeList, procId, procIdList, adjustProcDefId, adjustProcDefIdList, isolateSubProcNodeId, isolateSubProcNodeIdList, bizId, bizIdList, bizType, bizTypeList, bizCode, bizCodeList, bizName, bizNameList, bizDesc, bizDescList, procStartUser, procStartUserList, procStartUserName, procStartUserNameList, procEndUser, procEndUserList, procEndUserName, procEndUserNameList, fromProcEndDate, toProcEndDate, procStatus, procStatusList, fromCreationDate, toCreationDate, procDefId, procDefIdList, procDefCode, procDefCodeList, procDefName, procDefNameList, procDefCat, procDefCatList, version, versionList, procDefStatus, procDefStatusList, dataScope);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy