|
|
|
|
@ -117,22 +117,15 @@ public class OgdpBean extends AbstractBean {
|
|
|
|
|
public void initUserInfo(UserInfo userInfo) {
|
|
|
|
|
DataObject ogdpInfo = userMapper.getUserInfo(userInfo.getId());
|
|
|
|
|
|
|
|
|
|
boolean empty = ogdpInfo == null;
|
|
|
|
|
Map<String, Object> infoMap = userInfo.getInfo();
|
|
|
|
|
if(ogdpInfo == null) {
|
|
|
|
|
infoMap.put("sggCd", "");
|
|
|
|
|
infoMap.put("sggNm", "");
|
|
|
|
|
infoMap.put("instCd", "");
|
|
|
|
|
infoMap.put("instNm", "");
|
|
|
|
|
infoMap.put("deptCd", "");
|
|
|
|
|
infoMap.put("deptNm", "");
|
|
|
|
|
} else {
|
|
|
|
|
infoMap.put("sggCd", ogdpInfo.string("SGG_CD"));
|
|
|
|
|
infoMap.put("sggNm", ogdpInfo.string("SGG_NM"));
|
|
|
|
|
infoMap.put("instCd", ogdpInfo.string("INST_CD"));
|
|
|
|
|
infoMap.put("instNm", ogdpInfo.string("INST_NM"));
|
|
|
|
|
infoMap.put("deptCd", ogdpInfo.string("DEPT_CD"));
|
|
|
|
|
infoMap.put("deptNm", ogdpInfo.string("DEPT_NM"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
infoMap.put("sggCd", !empty ? ogdpInfo.string("SGG_CD") : "");
|
|
|
|
|
infoMap.put("sggNm", !empty ? ogdpInfo.string("SGG_NM") : "");
|
|
|
|
|
infoMap.put("instCd", !empty ? ogdpInfo.string("INST_CD") : "");
|
|
|
|
|
infoMap.put("instNm", !empty ? ogdpInfo.string("INST_NM") : "");
|
|
|
|
|
infoMap.put("deptCd", !empty ? ogdpInfo.string("DEPT_CD") : "");
|
|
|
|
|
infoMap.put("deptNm", !empty ? ogdpInfo.string("DEPT_NM") : "");
|
|
|
|
|
|
|
|
|
|
userInfo.setInfo(infoMap);
|
|
|
|
|
}
|
|
|
|
|
@ -173,10 +166,10 @@ public class OgdpBean extends AbstractBean {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean updateDeptStng(FimsDepartment dept) {
|
|
|
|
|
return ogdpMapper.updateDeptStng(new DataObject()
|
|
|
|
|
return dept != null
|
|
|
|
|
&& ogdpMapper.updateDeptStng(new DataObject()
|
|
|
|
|
.set("currentUser", currentUser())
|
|
|
|
|
.set("dept", dept)
|
|
|
|
|
) == 1;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|