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