Search in sources :

Example 6 with Department

use of com.qlangtech.tis.manage.biz.dal.pojo.Department in project tis by qlangtech.

the class DepartmentDAOImpl method selectByPrimaryKey.

public Department selectByPrimaryKey(Integer dptId) {
    Department key = new Department();
    key.setDptId(dptId);
    Department record = this.load("department.ibatorgenerated_selectByPrimaryKey", key);
    return record;
}
Also used : Department(com.qlangtech.tis.manage.biz.dal.pojo.Department)

Example 7 with Department

use of com.qlangtech.tis.manage.biz.dal.pojo.Department in project tis by qlangtech.

the class NormalUserApplicationFetcher method processBelongDepartment.

private void processBelongDepartment(Department department, RunContext context) {
    if (true) {
        return;
    }
    Assert.assertNotNull("department can not be null", department);
    Assert.assertNotNull("context can not be null", context);
    // 部门是叶子节点吗?
    if (department.getLeaf()) {
        belongDpt.add(department);
    } else {
        DepartmentCriteria query = new DepartmentCriteria();
        query.createCriteria().andParentIdEqualTo(department.getDptId());
        for (Department dpt : context.getDepartmentDAO().selectByExample(query)) {
            processBelongDepartment(dpt, context);
        }
    }
}
Also used : Department(com.qlangtech.tis.manage.biz.dal.pojo.Department) DepartmentCriteria(com.qlangtech.tis.manage.biz.dal.pojo.DepartmentCriteria)

Example 8 with Department

use of com.qlangtech.tis.manage.biz.dal.pojo.Department in project tis by qlangtech.

the class DepartmentDAOImpl method deleteByPrimaryKey.

public int deleteByPrimaryKey(Integer dptId) {
    Department key = new Department();
    key.setDptId(dptId);
    return this.deleteRecords("department.ibatorgenerated_deleteByPrimaryKey", key);
}
Also used : Department(com.qlangtech.tis.manage.biz.dal.pojo.Department)

Example 9 with Department

use of com.qlangtech.tis.manage.biz.dal.pojo.Department in project tis by qlangtech.

the class DepartmentDAOImpl method loadFromWriteDB.

public Department loadFromWriteDB(Integer dptId) {
    Department key = new Department();
    key.setDptId(dptId);
    Department record = this.loadFromWriterDB("department.ibatorgenerated_selectByPrimaryKey", key);
    return record;
}
Also used : Department(com.qlangtech.tis.manage.biz.dal.pojo.Department)

Example 10 with Department

use of com.qlangtech.tis.manage.biz.dal.pojo.Department in project tis by qlangtech.

the class BizlineAction method getAllBizDomain.

/**
 * 取得所有的业务线实体
 *
 * @return
 */
protected final List<Department> getAllBizDomain(boolean leaf) {
    DepartmentCriteria q = new DepartmentCriteria();
    q.createCriteria().andIsLeaf(leaf);
    q.setOrderByClause("dpt_id desc");
    List<Department> dpts = this.getDepartmentDAO().selectByExample(q, 1, 200);
    return dpts;
}
Also used : Department(com.qlangtech.tis.manage.biz.dal.pojo.Department) DepartmentCriteria(com.qlangtech.tis.manage.biz.dal.pojo.DepartmentCriteria)

Aggregations

Department (com.qlangtech.tis.manage.biz.dal.pojo.Department)14 DepartmentCriteria (com.qlangtech.tis.manage.biz.dal.pojo.DepartmentCriteria)5 Application (com.qlangtech.tis.manage.biz.dal.pojo.Application)2 Func (com.qlangtech.tis.manage.spring.aop.Func)2 Validator (com.qlangtech.tis.plugin.annotation.Validator)2 Date (java.util.Date)2 UploadResource (com.qlangtech.tis.manage.biz.dal.pojo.UploadResource)1 UsrDptRelation (com.qlangtech.tis.manage.biz.dal.pojo.UsrDptRelation)1 UsrDptRelationCriteria (com.qlangtech.tis.manage.biz.dal.pojo.UsrDptRelationCriteria)1 AppDomainInfo (com.qlangtech.tis.manage.common.AppDomainInfo)1 Option (com.qlangtech.tis.manage.common.Option)1 Nullable (com.qlangtech.tis.pubhook.common.Nullable)1 IControlMsgHandler (com.qlangtech.tis.runtime.module.misc.IControlMsgHandler)1 DelegateControl4JsonPostMsgHandler (com.qlangtech.tis.runtime.module.misc.impl.DelegateControl4JsonPostMsgHandler)1 MalformedURLException (java.net.MalformedURLException)1 URL (java.net.URL)1 JSONArray (org.json.JSONArray)1 JSONObject (org.json.JSONObject)1 JSONTokener (org.json.JSONTokener)1