
--- build/resources/main/mybatis/mapper/codeManage/codeManage-SQL.xml
+++ build/resources/main/mybatis/mapper/codeManage/codeManage-SQL.xml
... | ... | @@ -125,17 +125,17 @@ |
125 | 125 |
ORDER BY cd_sn |
126 | 126 |
</select> |
127 | 127 |
|
128 |
- <!-- |
|
129 |
- 작성자 : takensoft |
|
130 |
- 작성일 : 2024.04.09 |
|
131 |
- 내 용 : 하위 코드 조회 [사용자용] |
|
132 |
- --> |
|
133 |
- <select id="findChildCdUser" parameterType="String" resultType="CodeManageVO"> |
|
134 |
- <include refid="selectCd" /> |
|
135 |
- WHERE up_cd = #{cd} |
|
136 |
- AND use_yn = 'Y' |
|
137 |
- ORDER BY cd_sn |
|
138 |
- </select> |
|
128 |
+<!-- <!–--> |
|
129 |
+<!-- 작성자 : takensoft--> |
|
130 |
+<!-- 작성일 : 2024.04.09--> |
|
131 |
+<!-- 내 용 : 하위 코드 조회 [사용자용]--> |
|
132 |
+<!-- –>--> |
|
133 |
+<!-- <select id="findChildCdUser" parameterType="String" resultType="CodeManageVO">--> |
|
134 |
+<!-- <include refid="selectCd" />--> |
|
135 |
+<!-- WHERE up_cd = #{cd}--> |
|
136 |
+<!-- AND use_yn = 'Y'--> |
|
137 |
+<!-- ORDER BY cd_sn--> |
|
138 |
+<!-- </select>--> |
|
139 | 139 |
|
140 | 140 |
<!-- |
141 | 141 |
작성자 : takensoft |
--- build/resources/main/mybatis/mapper/entDscsnAply/entDscsnAply-SQL.xml
... | ... | @@ -1,188 +0,0 @@ |
1 | -<?xml version="1.0" encoding="UTF-8"?> | |
2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
3 | -<mapper namespace="com.takensoft.portal.entDscsnAply.dao.EntDscsnAplyDAO"> | |
4 | - <!-- 기업상담신청 resultMap --> | |
5 | - <resultMap id="entDscsnAplyMap" type="EntDscsnAplyVO"> | |
6 | - <result property="entDscsnAplyId" column="ent_dscsn_aply_id" /> | |
7 | - <result property="entNm" column="ent_nm" /> | |
8 | - <result property="aplcntNm" column="aplcnt_nm" /> | |
9 | - <result property="telno" column="telno" /> | |
10 | - <result property="eml" column="eml" /> | |
11 | - <result property="aplyCn" column="aply_cn" /> | |
12 | - <result property="fileMngId" column="file_mng_id" /> | |
13 | - <result property="actnPic" column="actn_pic" /> | |
14 | - <result property="actnDt" column="actn_dt" /> | |
15 | - <result property="rmrk" column="rmrk" /> | |
16 | - <result property="prcsStts" column="prcs_stts" /> | |
17 | - <result property="useYn" column="use_yn" /> | |
18 | - <result property="aplcntIp" column="aplcnt_ip" /> | |
19 | - <result property="regDt" column="reg_dt" /> | |
20 | - <result property="mbrNm" column="mbr_nm" /> | |
21 | - </resultMap> | |
22 | - | |
23 | - <!-- | |
24 | - 작 성 자 : 박정하 | |
25 | - 작 성 일 : 2024.04.02 | |
26 | - 내 용 : 기업상담신청 등록 | |
27 | - --> | |
28 | - <insert id="entDscsnAplyInsert" parameterType="HashMap"> | |
29 | - INSERT INTO ent_dscsn_aply ( | |
30 | - ent_dscsn_aply_id | |
31 | - , ent_nm | |
32 | - , aplcnt_nm | |
33 | - , telno | |
34 | - , eml | |
35 | - , aply_cn | |
36 | - , file_mng_id | |
37 | - , actn_pic | |
38 | - , actn_dt | |
39 | - , rmrk | |
40 | - , prcs_stts | |
41 | - , use_yn | |
42 | - , aplcnt_ip | |
43 | - , reg_dt | |
44 | - ) VALUES ( | |
45 | - #{entDscsnAplyId} | |
46 | - , #{entNm} | |
47 | - , #{aplcntNm} | |
48 | - , #{telno} | |
49 | - , #{eml} | |
50 | - , #{aplyCn} | |
51 | - , #{fileMngId} | |
52 | - , #{actnPic} | |
53 | - , #{actnDt}::timestamp | |
54 | - , #{rmrk} | |
55 | - , null | |
56 | - , 'Y' | |
57 | - , #{aplcntIp} | |
58 | - , now() | |
59 | - ) | |
60 | - </insert> | |
61 | - | |
62 | - <!-- SELECT SQL --> | |
63 | - <sql id="selectItem"> | |
64 | - SELECT eda.ent_dscsn_aply_id | |
65 | - , eda.ent_nm | |
66 | - , eda.aplcnt_nm | |
67 | - , eda.telno | |
68 | - , eda.eml | |
69 | - , eda.aply_cn | |
70 | - , eda.file_mng_id | |
71 | - , eda.actn_pic | |
72 | - , to_char(eda.actn_dt, 'YYYY-MM-DD HH24:MI') AS actn_dt | |
73 | - , eda.rmrk | |
74 | - , eda.prcs_stts | |
75 | - , eda.use_yn | |
76 | - , eda.aplcnt_ip | |
77 | - , to_char(eda.reg_dt, 'YYYY-MM-DD HH24:MI') AS reg_dt | |
78 | - , mi.mbr_nm | |
79 | - FROM ent_dscsn_aply AS eda | |
80 | - LEFT JOIN mbr_info AS mi | |
81 | - ON eda.actn_pic = mi.mbr_id | |
82 | - AND mi.use_yn = 'Y' | |
83 | - WHERE eda.use_yn = 'Y' | |
84 | - </sql> | |
85 | - | |
86 | - <sql id="selectRequirement"> | |
87 | - <if test="searchText != null and searchText != ''"> | |
88 | - AND ent_nm LIKE '%' || #{searchText} || '%' | |
89 | - </if> | |
90 | - <if test="cateValue != null and cateValue != ''"> | |
91 | - <choose> | |
92 | - <when test='cateValue == "S"'> | |
93 | - AND prcs_stts IS NULL | |
94 | - </when> | |
95 | - <otherwise> | |
96 | - AND prcs_stts = #{cateValue} | |
97 | - </otherwise> | |
98 | - </choose> | |
99 | - </if> | |
100 | - </sql> | |
101 | - | |
102 | - <!-- | |
103 | - 작 성 자 : 박정하 | |
104 | - 작 성 일 : 2024.04.02 | |
105 | - 내 용 : 기업상담신청 목록 조회 | |
106 | - --> | |
107 | - <select id="entDscsnAplyList" parameterType="Pagination" resultMap="entDscsnAplyMap"> | |
108 | - SELECT ent_dscsn_aply_id | |
109 | - , ent_nm | |
110 | - , aplcnt_nm | |
111 | - , telno | |
112 | - , eml | |
113 | - , aply_cn | |
114 | - , file_mng_id | |
115 | - , actn_pic | |
116 | - , actn_dt | |
117 | - , rmrk | |
118 | - , prcs_stts | |
119 | - , use_yn | |
120 | - , aplcnt_ip | |
121 | - , reg_dt | |
122 | - , mbr_nm | |
123 | - FROM ( | |
124 | - <include refid="selectItem" /> | |
125 | - <if test='isAdmin != "Y"'> | |
126 | - AND actn_pic = #{mbrId} | |
127 | - </if> | |
128 | - ) AS datas | |
129 | - WHERE TRUE | |
130 | - <include refid="selectRequirement" /> | |
131 | - ORDER BY reg_dt DESC | |
132 | - OFFSET #{limitStart} LIMIT #{recordSize} | |
133 | - </select> | |
134 | - | |
135 | - <!-- | |
136 | - 작 성 자 : 박정하 | |
137 | - 작 성 일 : 2024.04.02 | |
138 | - 내 용 : 기업상담신청 목록 총 개수 조회 | |
139 | - --> | |
140 | - <select id="entDscsnAplyListCount" parameterType="Pagination" resultType="int"> | |
141 | - SELECT COUNT(ent_dscsn_aply_id) | |
142 | - FROM ( | |
143 | - <include refid="selectItem" /> | |
144 | - <if test='isAdmin != "Y"'> | |
145 | - AND actn_pic = #{mbrId} | |
146 | - </if> | |
147 | - ) AS datas | |
148 | - WHERE TRUE | |
149 | - <include refid="selectRequirement" /> | |
150 | - </select> | |
151 | - | |
152 | - <!-- | |
153 | - 작 성 자 : 박정하 | |
154 | - 작 성 일 : 2024.04.02 | |
155 | - 내 용 : 기업상담신청 상세 조회 | |
156 | - --> | |
157 | - <select id="entDscsnAplyDetail" parameterType="String" resultMap="entDscsnAplyMap"> | |
158 | - <include refid="selectItem" /> | |
159 | - AND ent_dscsn_aply_id = #{entDscsnAplyId} | |
160 | - </select> | |
161 | - | |
162 | - <!-- | |
163 | - 작성자 : 박정하 | |
164 | - 작성일자 : 2024-04-02 | |
165 | - 내용 : 기업상담신청 수정 | |
166 | - --> | |
167 | - <update id="entDscsnAplyUpdate" parameterType="HashMap"> | |
168 | - UPDATE ent_dscsn_aply | |
169 | - SET actn_pic = #{actnPic}, | |
170 | - actn_dt = now(), | |
171 | - rmrk = #{rmrk}, | |
172 | - prcs_stts = #{prcsStts} | |
173 | - WHERE ent_dscsn_aply_id = #{entDscsnAplyId} | |
174 | - </update> | |
175 | - | |
176 | - <!-- | |
177 | - 작 성 자 : 박정하 | |
178 | - 작 성 일 : 2024.04.04 | |
179 | - 내 용 : 기업상담신청 1시간 이내 동일 아이피 등록 개수 | |
180 | - --> | |
181 | - <select id="entDscsnAplyCountByOneHourWriteSameIp" parameterType="string" resultType="HashMap"> | |
182 | - SELECT COALESCE(count(0), 0) AS writecount, | |
183 | - '1 HOUR'::interval - (now() - MIN(reg_dt)) AS lastdatetime | |
184 | - FROM ent_dscsn_aply | |
185 | - WHERE aplcnt_ip = #{aplcntIp} | |
186 | - AND reg_dt > now() - '1 HOUR'::interval | |
187 | - </select> | |
188 | -</mapper>(파일 끝에 줄바꿈 문자 없음) |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?