diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index a40b9fe3..0cc9435c 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -19,17 +19,42 @@ import org.springframework.web.servlet.ModelAndView; import cokr.xit.base.user.ManagedUser; import cokr.xit.fims.cmmn.DirectoryStructureToJson; import cokr.xit.fims.cmmn.DirectoryStructureToJson.Node; +import cokr.xit.fims.cmmn.dao.FactionMapper; import cokr.xit.fims.crdn.service.bean.ImportServiceBean; +import cokr.xit.foundation.data.DataObject; import cokr.xit.interfaces.smg.service.bean.SmgServiceBean; @Controller public class UserController extends cokr.xit.base.user.web.UserController { + + @Resource(name="factionMapper") + FactionMapper factionMapper; + @Resource SmgServiceBean smgServiceBean; @Resource ImportServiceBean importServiceBean; + @Override + public ModelAndView main() { + ModelAndView mav = super.main(); + return mav; + } + + @Override + public ModelAndView getInfo(String userID) { + ModelAndView mav = super.getInfo(userID); + + mav.addObject("allFactionList", factionMapper.selectAllFactionList()); + + DataObject params = new DataObject().set("currentUser", currentUser()); + List ableFactionList = factionMapper.selectAbleFactionList(params); + mav.addObject("ableFactionList", ableFactionList); + + return mav; + } + @RequestMapping(name="최고관리자 메인",value="/superUser/main.do") public ModelAndView superUserMain() { ModelAndView mav = new ModelAndView(); diff --git a/src/main/java/cokr/xit/fims/cmmn/dao/FactionMapper.java b/src/main/java/cokr/xit/fims/cmmn/dao/FactionMapper.java new file mode 100644 index 00000000..92722ed7 --- /dev/null +++ b/src/main/java/cokr/xit/fims/cmmn/dao/FactionMapper.java @@ -0,0 +1,37 @@ +package cokr.xit.fims.cmmn.dao; + +import java.util.List; +import java.util.Map; + +import org.egovframe.rte.psl.dataaccess.mapper.Mapper; + +import cokr.xit.foundation.component.AbstractMapper; +import cokr.xit.foundation.data.DataObject; + +/** 소속 정보 DAO +* +*

상세 설명: +* +*

+* ============ 변경 이력 ============
+* 2023-09-15	leebj 최초 작성
+* ================================
+* 
+*/ +@Mapper("factionMapper") +public interface FactionMapper extends AbstractMapper { + + /**모든 기관,부서 목록을 반환한다.
+ * @param + * @return 기관,부서 목록 + */ + List selectAllFactionList(); + + /**사용가능한 기관,부서 목록을 반환한다.
+ * @param stringMap + * @param + * @return 기관,부서 목록 + */ + List selectAbleFactionList(Map params); + +} diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index bc46fb60..c2b818d4 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -180,6 +180,7 @@ UPDATE TB_USER SET , GRP_ID = #{groupID} , ORG_ID = #{orgID} , NSTT_CD = #{institute} + , DEPT_CD = #{deptCode} , CRTFC_DN = #{certificateDn} , MDFCN_DT = , MDFR = #{modifiedBy} diff --git a/src/main/resources/sql/mapper/fims/cmmn/faction-mapper.xml b/src/main/resources/sql/mapper/fims/cmmn/faction-mapper.xml new file mode 100644 index 00000000..f6e8ce5c --- /dev/null +++ b/src/main/resources/sql/mapper/fims/cmmn/faction-mapper.xml @@ -0,0 +1,50 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp b/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp index 9dcb9941..82b35edb 100644 --- a/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/base/user/user-info.jsp @@ -4,19 +4,58 @@
-
+
+ +
+ +
+
+
+
+
+
+
-
-
@@ -26,7 +65,7 @@
-
@@ -36,7 +75,7 @@