|
|
|
@ -8,6 +8,7 @@ import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.base.user.dao.UserMapper;
|
|
|
|
|
import cokr.xit.fims.base.FimsDepartment;
|
|
|
|
|
import cokr.xit.fims.base.FimsSigungu;
|
|
|
|
|
import cokr.xit.fims.base.OgdpQuery;
|
|
|
|
@ -25,6 +26,9 @@ public class OgdpBean extends AbstractBean {
|
|
|
|
|
@Resource(name="ogdpMapper")
|
|
|
|
|
private OgdpMapper ogdpMapper;
|
|
|
|
|
|
|
|
|
|
@Resource(name="userMapper")
|
|
|
|
|
private UserMapper userMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Object selectAllOgdpList() {
|
|
|
|
|
return ogdpMapper.selectAllOgdpList();
|
|
|
|
@ -38,9 +42,6 @@ public class OgdpBean extends AbstractBean {
|
|
|
|
|
return ogdpMapper.countUser(sggCd);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataObject selectOgdpInfoOfUser(String userId){
|
|
|
|
|
return ogdpMapper.selectOgdpInfoOfUser(userId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**userInfo 객체에 해당 사용자가 소속된 시군구,기관,부서 정보를 저장한다.
|
|
|
|
@ -49,7 +50,7 @@ public class OgdpBean extends AbstractBean {
|
|
|
|
|
*/
|
|
|
|
|
public void initUserInfo(UserInfo userInfo) {
|
|
|
|
|
|
|
|
|
|
DataObject ogdpInfo = ogdpMapper.selectOgdpInfoOfUser(userInfo.getId());
|
|
|
|
|
DataObject ogdpInfo = userMapper.getUserInfo(userInfo.getId());
|
|
|
|
|
|
|
|
|
|
Map<String, Object> infoMap = userInfo.getInfo();
|
|
|
|
|
if(ogdpInfo == null) {
|
|
|
|
|