ads367 / yj_portal star
박정하 박정하 07-09
240709 박정하 공무원용 수정
@b0d890beef7ae50b41e2f9dc545a35960a0763ca
src/main/java/com/takensoft/common/Pagination.java
--- src/main/java/com/takensoft/common/Pagination.java
+++ src/main/java/com/takensoft/common/Pagination.java
@@ -33,9 +33,7 @@
     private String cateValue;       // 상세 분류 내용
 
     private String mvnInten;        // 입주의향 (기업정보 전용)
-    private String ivstInten;       // 투자의향 (기업정보 전용)
     private String mouInten;        // MOU의향 (기업정보 전용)
-    private String ivstDscsnInten;  // 상담의향 (기업정보 전용)
 
     private String type;            // 형태 (검토사항 전용)
     private String prgrsCrs;        // 진행단계 (검토사항 전용)
@@ -55,9 +53,7 @@
         this.cateId = (String)params.get("cateId");
         this.cateValue = (String)params.get("cateValue");
         this.mvnInten = (String)params.get("mvnInten");
-        this.ivstInten = (String)params.get("ivstInten");
         this.mouInten = (String)params.get("mouInten");
-        this.ivstDscsnInten = (String)params.get("ivstDscsnInten");
         this.type = (String)params.get("type");
         this.prgrsCrs = (String)params.get("prgrsCrs");
         this.mbrId = (String)params.get("mbrId");
src/main/java/com/takensoft/common/excel/service/ExcelCreateService.java
--- src/main/java/com/takensoft/common/excel/service/ExcelCreateService.java
+++ src/main/java/com/takensoft/common/excel/service/ExcelCreateService.java
@@ -231,7 +231,7 @@
     public int createVerticalByEntInfo(ExcelRenderResource resource, List<T> dataList, int rowIndex) throws NoSuchFieldException, IllegalAccessException {
         String isIvstDscsn = null;
         for (String dataFieldName : resource.getDataFieldNames()) {
-            if (dataFieldName!= "isIvstDscsn" && dataFieldName != "mvnInten" && dataFieldName != "ivstInten" && dataFieldName != "mouInten" && dataFieldName != "ivstDscsnInten" && dataFieldName != "rmrk") {
+            if (dataFieldName!= "isIvstDscsn" && dataFieldName != "mvnInten" &&  dataFieldName != "mouInten" &&  dataFieldName != "rmrk") {
                 rowIndex = createTableByEntInfo(resource, rowIndex, dataFieldName);
             }
         }
@@ -247,7 +247,7 @@
         rowIndex = createTableByEntInfo(resource, rowIndex, "isIvstDscsn");
         if (isIvstDscsn == "Y") {
             for (String dataFieldName : resource.getDataFieldNames()) {
-                if (dataFieldName == "mvnInten" || dataFieldName == "ivstInten" || dataFieldName == "mouInten" || dataFieldName != "ivstDscsnInten") {
+                if (dataFieldName == "mvnInten" || dataFieldName == "mouInten") {
                     rowIndex = createTableByEntInfo(resource, rowIndex, dataFieldName);
                 }
             }
src/main/java/com/takensoft/common/excel/service/Impl/ExcelServiceImpl.java
--- src/main/java/com/takensoft/common/excel/service/Impl/ExcelServiceImpl.java
+++ src/main/java/com/takensoft/common/excel/service/Impl/ExcelServiceImpl.java
@@ -115,7 +115,7 @@
         rowIndex = mainExcel.createHr(rowIndex); // 구분선
         rowIndex = mainExcel.createCaption(rowIndex, "주요사업장");
         ExcelCreateService<BplcExcelDTO> bplcExcel = new ExcelCreateService(workbook, sheet, bplcList, bplcList.getClass());
-        rowIndex = bplcExcel.createVertical(bplcResource, bplcList, rowIndex);
+        bplcExcel.createVertical(bplcResource, bplcList, rowIndex);
 
         // 엑셀 사이즈 지정
         sheetSize(sheet, 2);
src/main/java/com/takensoft/portal/entDscsnAply/web/EntDscsnAplyController.java
--- src/main/java/com/takensoft/portal/entDscsnAply/web/EntDscsnAplyController.java
+++ src/main/java/com/takensoft/portal/entDscsnAply/web/EntDscsnAplyController.java
@@ -38,7 +38,7 @@
      *
      * 기업상담신청 등록
      */
-    @PostMapping(path = "/company/entDscsnAply/insertProc.file")
+    @PostMapping(path = "/sys/entDscsnAply/insertProc.file")
     public ResponseEntity<?> insertProc(HttpServletRequest request, EntDscsnAplyVO entDscsnAplyVO) throws Exception {
         HashMap<String, Object> result = entDscsnAplyService.entDscsnAplyInsert(request, entDscsnAplyVO);
         int insertResult = (int)result.get("insertResult");
@@ -96,7 +96,7 @@
      *
      * 기업상담신청 상세 조회
      */
-    @PostMapping(path = "/government/entDscsnAply/detailProc.json")
+    @PostMapping(path = "/sys/entDscsnAply/detailProc.json")
     public ResponseEntity<?> detailProc(@RequestBody EntDscsnAplyVO entDscsnAplyVO) throws Exception {
         EntDscsnAplyVO result = entDscsnAplyService.entDscsnAplyDetail(entDscsnAplyVO);
 
@@ -119,7 +119,7 @@
      *
      * 기업상담신청 수정
      */
-    @PostMapping(path = "/government/entDscsnAply/update.json")
+    @PostMapping(path = "/sys/entDscsnAply/update.json")
     public ResponseEntity<?> entDscsnAplyUpdate(@RequestBody EntDscsnAplyVO entDscsnAplyVO) throws Exception {
         int result = entDscsnAplyService.entDscsnAplyUpdate(entDscsnAplyVO);
 
src/main/java/com/takensoft/portal/entInfo/dto/EntInfoExcelDTO.java
--- src/main/java/com/takensoft/portal/entInfo/dto/EntInfoExcelDTO.java
+++ src/main/java/com/takensoft/portal/entInfo/dto/EntInfoExcelDTO.java
@@ -36,6 +36,18 @@
     private String rprsvNm;
 
     @Column
+    @ExcelColumnName(headerName = "소재지")
+    private String lctn;
+
+    @Column
+    @ExcelColumnName(headerName = "대지면적")
+    private String bplcSiar;
+
+    @Column
+    @ExcelColumnName(headerName = "공장면적")
+    private String fctryArea;
+
+    @Column
     @ExcelColumnName(headerName = "표준산업분류")
     private String ksic;
 
@@ -44,16 +56,16 @@
     private String mainPrdct;
 
     @Column
-    @ExcelColumnName(headerName = "폐업여부")
-    private String clsbizYn;
-
-    @Column
     @ExcelColumnName(headerName = "기업신용")
     private String entCrdt;
 
     @Column
     @ExcelColumnName(headerName = "설립일")
     private String fndnDt;
+
+    @Column
+    @ExcelColumnName(headerName = "고용인원수")
+    private String wrkrCnt;
 
     // 세부정보
     @Column
@@ -65,36 +77,29 @@
     private String mvnInten;
 
     @Column
-    @ExcelColumnName(headerName = "투자의향")
-    private String ivstInten;
-
-    @Column
     @ExcelColumnName(headerName = "MOU의향")
     private String mouInten;
-
-    @Column
-    @ExcelColumnName(headerName = "투자상담의향")
-    private String ivstDscsnInten;
 
     @Column
     @ExcelColumnName(headerName = "비고")
     private String rmrk;
 
     @Builder
-    public EntInfoExcelDTO(String entNm, String brno, String rprsvNm, String ksic, String mainPrdct, String clsbizYn, String entCrdt, String fndnDt, String isIvstDscsn, String mvnInten, String ivstInten, String mouInten, String ivstDscsnInten, String rmrk) {
+    public EntInfoExcelDTO(String entNm, String brno, String rprsvNm, String lctn, String bplcSiar, String fctryArea, String ksic, String mainPrdct, String entCrdt, String fndnDt, String wrkrCnt, String isIvstDscsn, String mvnInten, String mouInten, String rmrk) {
         this.entNm = entNm;
         this.brno = brno;
         this.rprsvNm = rprsvNm;
+        this.lctn = lctn;
+        this.bplcSiar = bplcSiar;
+        this.fctryArea = fctryArea;
         this.ksic = ksic;
         this.mainPrdct = mainPrdct;
-        this.clsbizYn = clsbizYn;
         this.entCrdt = entCrdt;
         this.fndnDt = fndnDt;
+        this.wrkrCnt = wrkrCnt;
         this.isIvstDscsn = isIvstDscsn;
         this.mvnInten = mvnInten;
-        this.ivstInten = ivstInten;
         this.mouInten = mouInten;
-        this.ivstDscsnInten = ivstDscsnInten;
         this.rmrk = rmrk;
     }
 }
(파일 끝에 줄바꿈 문자 없음)
src/main/java/com/takensoft/portal/entInfo/service/Impl/EntInfoServiceImpl.java
--- src/main/java/com/takensoft/portal/entInfo/service/Impl/EntInfoServiceImpl.java
+++ src/main/java/com/takensoft/portal/entInfo/service/Impl/EntInfoServiceImpl.java
@@ -147,7 +147,6 @@
         }
         // entInfoId가 없는 경우
         else {
-            newEntInfoVO.setClsbizYn("N"); // 폐업여부
             newEntInfoVO.setUseYn("Y"); // 사용유무
             newEntInfoVO.setIsBrnoChange(false); // 사업자번호 변경 여부
         }
@@ -165,10 +164,12 @@
 
         // 면적 단위
         List<CodeManageVO> bplcCodeList = codeManageService.findByChildCdCache("areaUnit");
+        List<CodeManageVO> lctnCodeList = codeManageService.findByChildCdCache("admdsp");
 
         HashMap<String, Object> result = new HashMap<>();
         result.put("entInfoVO", newEntInfoVO);
         result.put("bplcCodeList", bplcCodeList);
+        result.put("lctnCodeList", lctnCodeList);
         return result;
     }
 
@@ -265,16 +266,17 @@
             entInfoExcelDTO.setEntNm(entInfo.get("ent_nm"));
             entInfoExcelDTO.setBrno(entInfo.get("brno"));
             entInfoExcelDTO.setRprsvNm(entInfo.get("rprsv_nm"));
+            entInfoExcelDTO.setLctn(entInfo.get("lctn"));
+            entInfoExcelDTO.setBplcSiar(entInfo.get("bplc_siar"));
+            entInfoExcelDTO.setFctryArea(entInfo.get("fctry_area"));
             entInfoExcelDTO.setKsic(entInfo.get("ksic"));
             entInfoExcelDTO.setMainPrdct(entInfo.get("main_prdct"));
-            entInfoExcelDTO.setClsbizYn(entInfo.get("clsbiz_yn").equals("Y") ? "폐업" : "정상");
             entInfoExcelDTO.setEntCrdt(entInfo.get("ent_crdt"));
             entInfoExcelDTO.setFndnDt(entInfo.get("fndn_dt"));
+            entInfoExcelDTO.setWrkrCnt(entInfo.get("wrkr_cnt"));
             entInfoExcelDTO.setIsIvstDscsn(entInfo.get("mvn_inten") != null ? "Y" : "N");
             entInfoExcelDTO.setMvnInten(convertInten(entInfo.get("mvn_inten")));
-            entInfoExcelDTO.setIvstInten(convertInten(entInfo.get("ivst_inten")));
             entInfoExcelDTO.setMouInten(convertInten(entInfo.get("mou_inten")));
-            entInfoExcelDTO.setIvstDscsnInten(convertInten(entInfo.get("ivst_dscsn_inten")));
             entInfoExcelDTO.setRmrk(entInfo.get("rmrk"));
 
             entInfoExcelList.add(entInfoExcelDTO);
src/main/java/com/takensoft/portal/entInfo/vo/EntInfoVO.java
--- src/main/java/com/takensoft/portal/entInfo/vo/EntInfoVO.java
+++ src/main/java/com/takensoft/portal/entInfo/vo/EntInfoVO.java
@@ -20,18 +20,42 @@
     private String brno;
     // 대표자명
     private String rprsvNm;
-    // 표준사업분류
-    private String ksicNm;
+    // 소재지 (행정구역)
+    private String lctnAdmdsp = "";
+    // 소재지 (시군구)
+    private String lctnSsg;
+    // 대지면적
+    private int bplcSiar;
+    // 대지면적 단위
+    private String bplcSiarUnit = "";
+    // 공장면적
+    private int fctryArea;
+    // 공장면적 단위
+    private String fctryAreaUnit = "";
     // 표준사업분류코드 상위 분류
     private String ksicUpCd;
     // 표준사업분류코드 하위 분류
     private String ksicCd;
+    // 표준사업분류
+    private String ksicNm;
     // 주요제품
     private String mainPrdct;
+    // 기업신용
+    private String entCrdt;
+    // 설립일
+    private String fndnDt;
+    // 고용인원수
+    private int wrkrCnt;
+
     // 비고
     private String rmrk;
-    // 폐업여부
-    private String clsbizYn;
+    // 파일매니저아이디
+    private String fileMngId;
+    // 첨부파일 목록
+    private List<HashMap<String, Object>> fileList = new ArrayList<>();
+    // 첨부파일 삭제 목록
+    private List<HashMap<String, Object>> deleteFileList = new ArrayList<>();
+
     // 사용여부
     private String useYn;
     // 등록자
@@ -42,10 +66,6 @@
     private String mdfr;
     // 수정일
     private String mdfcnDt;
-    // 기업신용
-    private String entCrdt;
-    // 설립일
-    private String fndnDt;
 
     // 사업자번호변경여부
     private Boolean isBrnoChange = false;
@@ -55,17 +75,6 @@
 
     // 입주의향 (목록 조회시 사용)
     private String mvnInten;
-    // 투자의향 (목록 조회시 사용)
-    private String ivstInten;
     // MOU의향 (목록 조회시 사용)
     private String mouInten;
-    // 상담의향 (목록 조회시 사용)
-    private String ivstDscsnInten;
-
-    // 파일매니저아이디
-    private String fileMngId;
-    // 첨부파일 목록
-    private List<HashMap<String, Object>> fileList = new ArrayList<>();
-    // 첨부파일 삭제 목록
-    private List<HashMap<String, Object>> deleteFileList = new ArrayList<>();
 }
(파일 끝에 줄바꿈 문자 없음)
src/main/java/com/takensoft/portal/ivstDscsn/dto/IvstDscsnExcelDTO.java
--- src/main/java/com/takensoft/portal/ivstDscsn/dto/IvstDscsnExcelDTO.java
+++ src/main/java/com/takensoft/portal/ivstDscsn/dto/IvstDscsnExcelDTO.java
@@ -49,19 +49,11 @@
     private String mvnInten;
 
     @Column
-    @ExcelColumnName(headerName = "투자의향")
-    private String ivstInten;
-
-    @Column
     @ExcelColumnName(headerName = "MOU의향")
     private String mouInten;
 
-    @Column
-    @ExcelColumnName(headerName = "투자상담의향")
-    private String ivstDscsnInten;
-
     @Builder
-    public IvstDscsnExcelDTO(String ttl, String dt, String plc, String entNm, String prtpnt, String dscsnPbofc, String mainCn, String mvnInten, String ivstInten, String mouInten, String ivstDscsnInten) {
+    public IvstDscsnExcelDTO(String ttl, String dt, String plc, String entNm, String prtpnt, String dscsnPbofc, String mainCn, String mvnInten, String mouInten) {
         this.ttl = ttl;
         this.dt = dt;
         this.plc = plc;
@@ -70,8 +62,6 @@
         this.dscsnPbofc = dscsnPbofc;
         this.mainCn = mainCn;
         this.mvnInten = mvnInten;
-        this.ivstInten = ivstInten;
         this.mouInten = mouInten;
-        this.ivstDscsnInten = ivstDscsnInten;
     }
 }
(파일 끝에 줄바꿈 문자 없음)
src/main/java/com/takensoft/portal/ivstDscsn/vo/IvstDscsnVO.java
--- src/main/java/com/takensoft/portal/ivstDscsn/vo/IvstDscsnVO.java
+++ src/main/java/com/takensoft/portal/ivstDscsn/vo/IvstDscsnVO.java
@@ -34,12 +34,8 @@
     private String fileMngId;
     // 입주의향
     private String mvnInten = "0";
-    // 투자의향
-    private String ivstInten = "0";
     // MOU의향
     private String mouInten = "0";
-    // 투자상담의향
-    private String ivstDscsnInten = "0";
     // 사용여부
     private String useYn;
     // 등록자
src/main/resources/mybatis/mapper/entInfo/entInfo-SQL.xml
--- src/main/resources/mybatis/mapper/entInfo/entInfo-SQL.xml
+++ src/main/resources/mybatis/mapper/entInfo/entInfo-SQL.xml
@@ -7,23 +7,27 @@
         <result property="entNm" column="ent_nm" />
         <result property="brno" column="brno" />
         <result property="rprsvNm" column="rprsv_nm" />
-        <result property="ksicNm" column="ksic_nm" />
-        <result property="ksicCd" column="ksic_cd" />
+        <result property="lctnAdmdsp" column="lctn_admdsp" />
+        <result property="lctnSsg" column="lctn_ssg" />
+        <result property="bplcSiar" column="bplc_siar" />
+        <result property="bplcSiarUnit" column="bplc_siar_unit" />
+        <result property="fctryArea" column="fctry_area" />
+        <result property="fctryAreaUnit" column="fctry_area_unit" />
         <result property="ksicUpCd" column="ksic_up_cd" />
+        <result property="ksicCd" column="ksic_cd" />
+        <result property="ksicNm" column="ksic_nm" />
         <result property="mainPrdct" column="main_prdct" />
+        <result property="entCrdt" column="ent_crdt" />
+        <result property="fndnDt" column="fndn_dt" />
+        <result property="wrkrCnt" column="wrkr_cnt" />
         <result property="rmrk" column="rmrk" />
-        <result property="clsbizYn" column="clsbiz_yn" />
         <result property="useYn" column="use_yn" />
         <result property="rgtr" column="rgtr" />
         <result property="regDt" column="reg_dt" />
         <result property="mdfr" column="mdfr" />
         <result property="mdfcnDt" column="mdfcn_dt" />
         <result property="mvnInten" column="mvn_inten" />
-        <result property="ivstInten" column="ivst_inten" />
         <result property="mouInten" column="mou_inten" />
-        <result property="ivstDscsnInten" column="ivst_dscsn_inten" />
-        <result property="entCrdt" column="ent_crdt" />
-        <result property="fndnDt" column="fndn_dt" />
         <result property="fileMngId" column="file_mng_id" />
         <collection property="bplcList" column="{entId = ent_id}" javaType="java.util.ArrayList" ofType="BplcVO" select="selectBplcList" />
     </resultMap>
@@ -54,35 +58,47 @@
             , ent_nm
             , brno
             , rprsv_nm
-            , ksic_nm
-            , ksic_cd
+            , lctn_admdsp
+            , lctn_ssg
+            , bplc_siar
+            , bplc_siar_unit
+            , fctry_area
+            , fctry_area_unit
             , ksic_up_cd
+            , ksic_cd
+            , ksic_nm
             , main_prdct
+            , ent_crdt
+            , fndn_dt
+            , wrkr_cnt
             , rmrk
-            , clsbiz_yn
+            , file_mng_id
             , use_yn
             , rgtr
             , reg_dt
-            , ent_crdt
-            , fndn_dt
-            , file_mng_id
         ) VALUES (
             #{entId}
             , #{entNm}
             , #{brno}
             , #{rprsvNm}
-            , #{ksicNm}
-            , #{ksicCd}
+            , #{lctnAdmdsp}
+            , #{lctnSsg}
+            , #{bplcSiar}
+            , #{bplcSiarUnit}
+            , #{fctryArea}
+            , #{fctryAreaUnit}
             , #{ksicUpCd}
+            , #{ksicCd}
+            , #{ksicNm}
             , #{mainPrdct}
+            , #{entCrdt}
+            , #{fndnDt}::timestamp
+            , #{wrkrCnt}
             , #{rmrk}
-            , #{clsbizYn}
+            , #{fileMngId}
             , 'Y'
             , #{rgtr}
             , now()
-            , #{entCrdt}
-            , #{fndnDt}::timestamp
-            , #{fileMngId}
         )
     </insert>
 
@@ -104,24 +120,28 @@
              , ei.ent_nm
              , ei.brno
              , ei.rprsv_nm
-             , ei.ksic_nm
-             , ei.ksic_cd
+             , ei.lctn_admdsp
+             , ei.lctn_ssg
+             , ei.bplc_siar
+             , ei.bplc_siar_unit
+             , ei.fctry_area
+             , ei.fctry_area_unit
              , ei.ksic_up_cd
+             , ei.ksic_cd
+             , ei.ksic_nm
              , ei.main_prdct
+             , ei.ent_crdt
+             , to_char(ei.fndn_dt, 'YYYY-MM-DD') AS fndn_dt
+             , ei.wrkr_cnt
              , ei.rmrk
-             , ei.clsbiz_yn
+             , ei.file_mng_id
              , ei.use_yn
              , ei.rgtr
              , to_char(ei.reg_dt, 'YYYY-MM-DD HH24:MI') AS reg_dt
              , ei.mdfr
              , to_char(ei.mdfcn_dt, 'YYYY-MM-DD HH24:MI') AS mdfcn_dt
-             , ei.ent_crdt
-             , to_char(ei.fndn_dt, 'YYYY-MM-DD') AS fndn_dt
              , (SELECT mvn_inten <include refid="searchIvstDscsn" />) AS mvn_inten
-             , (SELECT ivst_inten <include refid="searchIvstDscsn" />) AS ivst_inten
              , (SELECT mou_inten <include refid="searchIvstDscsn" />) AS mou_inten
-             , (SELECT ivst_dscsn_inten <include refid="searchIvstDscsn" />) AS ivst_dscsn_inten
-             , ei.file_mng_id
           FROM ent_info AS ei
     </sql>
 
@@ -135,13 +155,14 @@
                     <if test="searchType == 'rprsv_nm'">
                         AND rprsv_nm LIKE '%' || #{searchText} || '%'
                     </if>
+                    <if test="searchType == 'brno'">
+                        AND brno LIKE '%' || #{searchText} || '%'
+                    </if>
                 </when>
                 <otherwise>
-                    AND (
-                        ent_nm LIKE '%' || #{searchText} || '%'
-                    OR
-                        rprsv_nm LIKE '%' || #{searchText} || '%'
-                    )
+                    AND ( ent_nm LIKE '%' || #{searchText} || '%'
+                       OR rprsv_nm LIKE '%' || #{searchText} || '%'
+                       OR brno LIKE '%' || #{searchText} || '%')
                 </otherwise>
             </choose>
         </if>
@@ -150,14 +171,8 @@
         <if test="mvnInten != null and mvnInten != ''">
             AND mvn_inten = #{mvnInten}
         </if>
-        <if test="ivstInten != null and ivstInten != ''">
-            AND ivst_inten = #{ivstInten}
-        </if>
         <if test="mouInten != null and mouInten != ''">
             AND mou_inten = #{mouInten}
-        </if>
-        <if test="ivstDscsnInten != null and ivstDscsnInten != ''">
-            AND ivst_dscsn_inten = #{ivstDscsnInten}
         </if>
     </sql>
 
@@ -169,51 +184,33 @@
        LIMIT 1
     </sql>
 
-    <sql id="searchList">
-        SELECT ent_id
-             , ent_nm
-             , brno
-             , rprsv_nm
-             , ksic_nm
-             , ksic_cd
-             , ksic_up_cd
-             , main_prdct
-             , rmrk
-             , clsbiz_yn
-             , use_yn
-             , rgtr
-             , to_char(reg_dt, 'YYYY-MM-DD HH24:MI') AS reg_dt
-             , mdfr
-             , to_char(mdfcn_dt, 'YYYY-MM-DD HH24:MI') AS mdfcn_dt
-             , ent_crdt
-             , to_char(fndn_dt, 'YYYY-MM-DD') AS fndn_dt
-             , mvn_inten
-             , ivst_inten
-             , mou_inten
-             , ivst_dscsn_inten
-    </sql>
     <sql id="selectListInner">
         SELECT ei.ent_id
              , ei.ent_nm
              , ei.brno
              , ei.rprsv_nm
-             , ei.ksic_nm
-             , ei.ksic_cd
+             , ei.lctn_admdsp
+             , ei.lctn_ssg
+             , ei.bplc_siar
+             , ei.bplc_siar_unit
+             , ei.fctry_area
+             , ei.fctry_area_unit
              , ei.ksic_up_cd
+             , ei.ksic_cd
+             , ei.ksic_nm
              , ei.main_prdct
+             , ei.ent_crdt
+             , ei.fndn_dt
+             , ei.wrkr_cnt
              , ei.rmrk
-             , ei.clsbiz_yn
+             , ei.file_mng_id
              , ei.use_yn
              , ei.rgtr
              , ei.reg_dt
              , ei.mdfr
              , ei.mdfcn_dt
-             , ei.ent_crdt
-             , ei.fndn_dt
              , (SELECT mvn_inten <include refid="searchIvstDscsn" />) AS mvn_inten
-             , (SELECT ivst_inten <include refid="searchIvstDscsn" />) AS ivst_inten
              , (SELECT mou_inten <include refid="searchIvstDscsn" />) AS mou_inten
-             , (SELECT ivst_dscsn_inten <include refid="searchIvstDscsn" />) AS ivst_dscsn_inten
           FROM ent_info AS ei
          WHERE ei.use_yn = 'Y'
     </sql>
@@ -224,7 +221,31 @@
     내   용 : 기업정보 목록 조회
     -->
     <select id="entInfoSelectList" parameterType="HashMap" resultMap="entInfoMap">
-        <include refid="searchList" />
+        SELECT ent_id
+             , ent_nm
+             , brno
+             , rprsv_nm
+             , lctn_admdsp
+             , lctn_ssg
+             , bplc_siar
+             , bplc_siar_unit
+             , fctry_area
+             , fctry_area_unit
+             , ksic_up_cd
+             , ksic_cd
+             , ksic_nm
+             , main_prdct
+             , ent_crdt
+             , to_char(fndn_dt, 'YYYY-MM-DD') AS fndn_dt
+             , wrkr_cnt
+             , rmrk
+             , file_mng_id
+             , use_yn
+             , to_char(reg_dt, 'YYYY-MM-DD HH24:MI') AS reg_dt
+             , mdfr
+             , to_char(mdfcn_dt, 'YYYY-MM-DD HH24:MI') AS mdfcn_dt
+             , mvn_inten
+             , mou_inten
         FROM (
             <include refid="selectListInner" />
             <include refid="selectRequirement" />
@@ -245,9 +266,7 @@
         FROM (
             SELECT ent_id
                  , (SELECT mvn_inten <include refid="searchIvstDscsn" />)
-                 , (SELECT ivst_inten <include refid="searchIvstDscsn" />)
                  , (SELECT mou_inten <include refid="searchIvstDscsn" />)
-                 , (SELECT ivst_dscsn_inten <include refid="searchIvstDscsn" />)
               FROM ent_info AS ei
              WHERE ei.use_yn = 'Y'
             <include refid="selectRequirement" />
@@ -304,17 +323,23 @@
            SET ent_nm = #{entNm}
              , brno = #{brno}
              , rprsv_nm = #{rprsvNm}
-             , ksic_nm = #{ksicNm}
-             , ksic_cd = #{ksicCd}
+             , lctn_admdsp = #{lctnAdmdsp}
+             , lctn_ssg = #{lctnSsg}
+             , bplc_siar = #{bplcSiar}
+             , bplc_siar_unit = #{bplcSiarUnit}
+             , fctry_area = #{fctryArea}
+             , fctry_area_unit = #{fctryAreaUnit}
              , ksic_up_cd = #{ksicUpCd}
+             , ksic_cd = #{ksicCd}
+             , ksic_nm = #{ksicNm}
              , main_prdct = #{mainPrdct}
-             , rmrk = #{rmrk}
-             , clsbiz_yn = #{clsbizYn}
-             , mdfr = #{mdfr}
-             , mdfcn_dt = now()
              , ent_crdt = #{entCrdt}
              , fndn_dt = #{fndnDt}::timestamp
+             , wrkr_cnt = #{wrkrCnt}
+             , rmrk = #{rmrk}
              , file_mng_id = #{fileMngId}
+             , mdfr = #{mdfr}
+             , mdfcn_dt = now()
          WHERE ent_id = #{entId}
     </update>
 
@@ -352,29 +377,24 @@
         SELECT ent_nm
              , brno
              , rprsv_nm
+             , (SELECT cd_nm FROM cd_mng WHERE cd = lctn_admdsp) || ' ' || lctn_ssg AS lctn
+             , bplc_siar || (SELECT cd_nm FROM cd_mng WHERE cd = bplc_siar_unit) AS bplc_siar
+             , fctry_area || (SELECT cd_nm FROM cd_mng WHERE cd = fctry_area_unit) AS fctry_area
              , '(' || ksic_up_cd || ksic_cd || ') ' || ksic_nm AS ksic
              , main_prdct
-             , clsbiz_yn
              , ent_crdt
              , to_char(fndn_dt, 'YYYY-MM-DD') AS fndn_dt
+             , wrkr_cnt || '' AS wrkr_cnt
              , mvn_inten
-             , ivst_inten
              , mou_inten
-             , ivst_dscsn_inten
              , rmrk
         FROM (<include refid="selectListInner" />) AS datas
         WHERE TRUE
         <if test="mvnInten != null and mvnInten != ''">
             AND mvn_inten = #{mvnInten}
         </if>
-        <if test="ivstInten != null and ivstInten != ''">
-            AND ivst_inten = #{ivstInten}
-        </if>
         <if test="mouInten != null and mouInten != ''">
             AND mou_inten = #{mouInten}
-        </if>
-        <if test="ivstDscsnInten != null and ivstDscsnInten != ''">
-            AND ivst_dscsn_inten = #{ivstDscsnInten}
         </if>
         <if test="ksicUpCd != null and ksicUpCd != ''">
             AND ksic_up_cd = #{ksicUpCd}
src/main/resources/mybatis/mapper/invtDscsn/invtDscsn-SQL.xml
--- src/main/resources/mybatis/mapper/invtDscsn/invtDscsn-SQL.xml
+++ src/main/resources/mybatis/mapper/invtDscsn/invtDscsn-SQL.xml
@@ -13,9 +13,7 @@
         <result property="mainCn" column="main_cn" />
         <result property="fileMngId" column="file_mng_id" />
         <result property="mvnInten" column="mvn_inten" />
-        <result property="ivstInten" column="ivst_inten" />
         <result property="mouInten" column="mou_inten" />
-        <result property="ivstDscsnInten" column="ivst_dscsn_inten" />
         <result property="useYn" column="use_yn" />
         <result property="rgtr" column="rgtr" />
         <result property="regDt" column="reg_dt" />
@@ -41,9 +39,7 @@
             , main_cn
             , file_mng_id
             , mvn_inten
-            , ivst_inten
             , mou_inten
-            , ivst_dscsn_inten
             , use_yn
             , rgtr
             , reg_dt
@@ -58,9 +54,7 @@
             , #{mainCn}
             , #{fileMngId}
             , #{mvnInten}
-            , #{ivstInten}
             , #{mouInten}
-            , #{ivstDscsnInten}
             , 'Y'
             , #{rgtr}
             , now()
@@ -79,9 +73,7 @@
              , id.main_cn
              , id.file_mng_id
              , id.mvn_inten
-             , id.ivst_inten
              , id.mou_inten
-             , id.ivst_dscsn_inten
              , id.use_yn
              , id.rgtr
              , to_char(id.reg_dt, 'YYYY-MM-DD HH24:MI') AS reg_dt
@@ -119,14 +111,8 @@
         <if test="mvnInten != null and mvnInten != ''">
             AND id.mvn_inten = #{mvnInten}
         </if>
-        <if test="ivstInten != null and ivstInten != ''">
-            AND id.ivst_inten = #{ivstInten}
-        </if>
         <if test="mouInten != null and mouInten != ''">
             AND id.mou_inten = #{mouInten}
-        </if>
-        <if test="ivstDscsnInten != null and ivstDscsnInten != ''">
-            AND id.ivst_dscsn_inten = #{ivstDscsnInten}
         </if>
     </sql>
 
@@ -147,9 +133,7 @@
              , id.main_cn
              , id.file_mng_id
              , id.mvn_inten
-             , id.ivst_inten
              , id.mou_inten
-             , id.ivst_dscsn_inten
              , id.use_yn
              , id.rgtr
              , to_char(id.reg_dt, 'YYYY-MM-DD HH24:MI') AS reg_dt
@@ -204,9 +188,7 @@
             , main_cn = #{mainCn}
             , file_mng_id = #{fileMngId}
             , mvn_inten = #{mvnInten}
-            , ivst_inten = #{ivstInten}
             , mou_inten = #{mouInten}
-            , ivst_dscsn_inten = #{ivstDscsnInten}
             , use_yn = #{useYn}
             , mdfr = #{mdfr}
             , mdfcn_dt = now()
@@ -242,9 +224,7 @@
              , main_cn
              , file_mng_id
              , mvn_inten
-             , ivst_inten
              , mou_inten
-             , ivst_dscsn_inten
              , use_yn
              , rgtr
              , to_char(reg_dt, 'YYYY-MM-DD HH24:MI') AS reg_dt
src/main/resources/mybatis/mapper/statistics/statistics-SQL.xml
--- src/main/resources/mybatis/mapper/statistics/statistics-SQL.xml
+++ src/main/resources/mybatis/mapper/statistics/statistics-SQL.xml
@@ -30,9 +30,7 @@
              , ent_cnt
              , id_cnt
              , mvn.mvn_cnt
-             , ivst.ivst_cnt
              , mou.mou_cnt
-             , dscsn.dscsn_cnt
         FROM (
             SELECT ksic_up_cd
                  , ksic_cd
@@ -52,15 +50,9 @@
         LEFT JOIN (SELECT COUNT(ivst_dscsn_id) AS mvn_cnt <include refid="intenMid" /> AND mvn_inten = '1' <include refid="intenBot" />) AS mvn
         ON datas.ksic_up_cd = mvn.ksic_up_cd
         AND datas.ksic_cd = mvn.ksic_cd
-        LEFT JOIN (SELECT COUNT(ivst_dscsn_id) AS ivst_cnt <include refid="intenMid" /> AND ivst_inten = '1' <include refid="intenBot" />) AS ivst
-        ON datas.ksic_up_cd = ivst.ksic_up_cd
-        AND datas.ksic_cd = ivst.ksic_cd
         LEFT JOIN (SELECT COUNT(ivst_dscsn_id) AS mou_cnt <include refid="intenMid" /> AND mou_inten = '1' <include refid="intenBot" />) AS mou
         ON datas.ksic_up_cd = mou.ksic_up_cd
         AND datas.ksic_cd = mou.ksic_cd
-        LEFT JOIN ( SELECT COUNT(ivst_dscsn_id) AS dscsn_cnt <include refid="intenMid" /> AND ivst_dscsn_inten = '1' <include refid="intenBot" />) AS dscsn
-        ON datas.ksic_up_cd = dscsn.ksic_up_cd
-        AND datas.ksic_cd = dscsn.ksic_cd
         ORDER BY datas.ksic_up_cd, datas.ksic_cd
     </select>
 
Add a comment
List