@Repository(value="unitInfoDao") public class UnitInfoDaoImpl extends com.centit.framework.jdbc.dao.BaseDaoImpl<UnitInfo,String> implements UnitInfoDao
| 限定符和类型 | 字段和说明 |
|---|---|
static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
UnitInfoDaoImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
countChildrenSum(String unitCode) |
void |
deleteObjectById(String unitCode) |
List<String> |
getAllParentUnit() |
Map<String,String> |
getFilterField() |
String |
getNextKey() |
UnitInfo |
getObjectById(String unitCode) |
UnitInfo |
getPeerUnitByName(String unitName,
String parentCode,
String unitCode)
根据名称获取同级机构
|
UnitInfo |
getUnitByName(String name)
"from UnitInfo where unitName = ?
|
UnitInfo |
getUnitByTag(String unitTag) |
UnitInfo |
getUnitByWord(String unitWord) |
String |
getUnitCode(String depno) |
String |
getUnitNameOfCode(String unitcode) |
List<UnitInfo> |
listAllSubUnits(String unitCode)
这个方法应该转移到ManagerImpl类中
|
List<UserInfo> |
listRelationUsers(String unitCode)
"select * FROM F_Userinfo ui where ui.userCode in " +
"(select userCode from f_userunit where unitcode='" + unitCode + "') or " +
"ui.userCode in (select userCode from f_userrole where rolecode like ?
|
List<UnitInfo> |
listSubUnits(String unitCode) |
List<UnitInfo> |
listSubUnitsByUnitPaht(String unitPath) |
List<UserInfo> |
listUnitUsers(String unitCode)
"select a.* " +
"from f_Userinfo a join f_userunit b on(a.userCode=b.userCode) " +
"where b.unitcode =?"
|
batchUpdateObject, batchUpdateObject, buildDefaultFieldFilterSql, buildFieldFilterSql, deleteObject, deleteObjectById, deleteObjectForce, deleteObjectForceById, deleteObjectsByProperties, deleteObjectsForceByProperties, encapsulateFilterToSql, fetchObjectLazyColumn, fetchObjectLazyColumns, fetchObjectReference, fetchObjectReferences, getConnection, getDataSource, getExtendFilterQuerySql, getFilterFieldWithPretreatment, getFilterQuerySql, getJdbcTemplate, getObjectById, getObjectByProperties, getObjectCascadeById, getObjectCascadeShallowById, getObjectIncludeLazyById, getPkClass, getPoClass, listObjects, listObjects, listObjectsAsJson, listObjectsByFilter, listObjectsByFilter, listObjectsByFilter, listObjectsByFilter, listObjectsByFilterAsJson, listObjectsByFilterAsJson, listObjectsByProperties, listObjectsByProperties, listObjectsByProperty, listObjectsBySql, mergeObject, pageCount, pageQuery, releaseConnection, saveNewObject, saveObjectReference, saveObjectReferences, setDataSource, translatePropertyNameToColumnName, updateObject, updateObject, updateObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlistObjects, listObjects, mergeObject, pageCount, pageQuery, saveNewObject@Transactional public String getNextKey()
getNextKey 在接口中 UnitInfoDao@Transactional public String getUnitCode(String depno)
getUnitCode 在接口中 UnitInfoDao@Transactional(propagation=MANDATORY) public List<UserInfo> listUnitUsers(String unitCode)
UnitInfoDaolistUnitUsers 在接口中 UnitInfoDaounitCode - unitCode@Transactional(propagation=MANDATORY) public List<UserInfo> listRelationUsers(String unitCode)
UnitInfoDaolistRelationUsers 在接口中 UnitInfoDaounitCode - unitCode@Transactional public String getUnitNameOfCode(String unitcode)
getUnitNameOfCode 在接口中 UnitInfoDao@Transactional public UnitInfo getUnitByName(String name)
UnitInfoDaogetUnitByName 在接口中 UnitInfoDaoname - name@Transactional public UnitInfo getUnitByTag(String unitTag)
getUnitByTag 在接口中 UnitInfoDao@Transactional public UnitInfo getUnitByWord(String unitWord)
getUnitByWord 在接口中 UnitInfoDao@Transactional(propagation=MANDATORY) public List<UnitInfo> listAllSubUnits(String unitCode)
UnitInfoDaolistAllSubUnits 在接口中 UnitInfoDaounitCode - primaryUnit@Transactional(propagation=MANDATORY) public List<UnitInfo> listSubUnitsByUnitPaht(String unitPath)
listSubUnitsByUnitPaht 在接口中 UnitInfoDaopublic List<String> getAllParentUnit()
getAllParentUnit 在接口中 UnitInfoDaopublic UnitInfo getObjectById(String unitCode)
getObjectById 在接口中 UnitInfoDaopublic void deleteObjectById(String unitCode)
deleteObjectById 在接口中 UnitInfoDaopublic int countChildrenSum(String unitCode)
countChildrenSum 在接口中 UnitInfoDaopublic UnitInfo getPeerUnitByName(String unitName, String parentCode, String unitCode)
getPeerUnitByName 在接口中 UnitInfoDaounitName - 机构名称parentCode - 父类代码Copyright © 2017. All rights reserved.