--- src/main/java/com/takensoft/ai_lms/common/idgen/context/ContextIdgen.java
+++ src/main/java/com/takensoft/ai_lms/common/idgen/context/ContextIdgen.java
... | ... | @@ -19,28 +19,6 @@ |
19 | 19 |
return idgenServiceImpl; |
20 | 20 |
} |
21 | 21 |
|
22 |
- // 위원 정보 |
|
23 |
- @Bean(name = "mfcmmIdgn") |
|
24 |
- public IdgenService mfcmm() { |
|
25 |
- IdgenService idgenServiceImpl = new IdgenService(); |
|
26 |
- idgenServiceImpl.setCipers(15); |
|
27 |
- idgenServiceImpl.setFillChar('0'); |
|
28 |
- idgenServiceImpl.setPrefix("MFEMM_"); |
|
29 |
- idgenServiceImpl.setTblNm("MFEMM_ID"); |
|
30 |
- return idgenServiceImpl; |
|
31 |
- } |
|
32 |
- |
|
33 |
- // 위원회 정보 |
|
34 |
- @Bean(name = "cmitIdgn") |
|
35 |
- public IdgenService cmit() { |
|
36 |
- IdgenService idgenServiceImpl = new IdgenService(); |
|
37 |
- idgenServiceImpl.setCipers(15); |
|
38 |
- idgenServiceImpl.setFillChar('0'); |
|
39 |
- idgenServiceImpl.setPrefix("CMIT_"); |
|
40 |
- idgenServiceImpl.setTblNm("CMIT_ID"); |
|
41 |
- return idgenServiceImpl; |
|
42 |
- } |
|
43 |
- |
|
44 | 22 |
// 파일매니저 |
45 | 23 |
@Bean(name = "fileMngIdgn") |
46 | 24 |
public IdgenService fileMng() { |
... | ... | @@ -52,6 +30,191 @@ |
52 | 30 |
return idgenServiceImpl; |
53 | 31 |
} |
54 | 32 |
|
33 |
+ // 파일정보 |
|
34 |
+ @Bean(name = "fileIdgn") |
|
35 |
+ public IdgenService file() { |
|
36 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
37 |
+ idgenServiceImpl.setCipers(15); |
|
38 |
+ idgenServiceImpl.setFillChar('0'); |
|
39 |
+ idgenServiceImpl.setPrefix("FILE_"); |
|
40 |
+ idgenServiceImpl.setTblNm("FILE_ID"); |
|
41 |
+ return idgenServiceImpl; |
|
42 |
+ } |
|
55 | 43 |
|
44 |
+ // 교육 기관 정보 |
|
45 |
+ @Bean(name = "ednstIdgn") |
|
46 |
+ public IdgenService institution() { |
|
47 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
48 |
+ idgenServiceImpl.setCipers(15); |
|
49 |
+ idgenServiceImpl.setFillChar('0'); |
|
50 |
+ idgenServiceImpl.setPrefix("EDNST_"); |
|
51 |
+ idgenServiceImpl.setTblNm("EDNST_ID"); |
|
52 |
+ return idgenServiceImpl; |
|
53 |
+ } |
|
54 |
+ |
|
55 |
+ // 반 정보 |
|
56 |
+ @Bean(name = "classIdgn") |
|
57 |
+ public IdgenService classes() { |
|
58 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
59 |
+ idgenServiceImpl.setCipers(15); |
|
60 |
+ idgenServiceImpl.setFillChar('0'); |
|
61 |
+ idgenServiceImpl.setPrefix("CLASS_"); |
|
62 |
+ idgenServiceImpl.setTblNm("CLASS_ID"); |
|
63 |
+ return idgenServiceImpl; |
|
64 |
+ } |
|
65 |
+ |
|
66 |
+ // 게시판 정보 |
|
67 |
+ @Bean(name = "boardIdgn") |
|
68 |
+ public IdgenService board() { |
|
69 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
70 |
+ idgenServiceImpl.setCipers(15); |
|
71 |
+ idgenServiceImpl.setFillChar('0'); |
|
72 |
+ idgenServiceImpl.setPrefix("BOARD_"); |
|
73 |
+ idgenServiceImpl.setTblNm("BOARD_ID"); |
|
74 |
+ return idgenServiceImpl; |
|
75 |
+ } |
|
76 |
+ |
|
77 |
+ // 반별 학생 정보 |
|
78 |
+ @Bean(name = "userClassIdgn") |
|
79 |
+ public IdgenService userClass() { |
|
80 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
81 |
+ idgenServiceImpl.setCipers(15); |
|
82 |
+ idgenServiceImpl.setFillChar('0'); |
|
83 |
+ idgenServiceImpl.setPrefix("USER_CLASS_"); |
|
84 |
+ idgenServiceImpl.setTblNm("USER_CLASS_ID"); |
|
85 |
+ return idgenServiceImpl; |
|
86 |
+ } |
|
87 |
+ |
|
88 |
+ // 책 정보 |
|
89 |
+ @Bean(name = "bookIdgn") |
|
90 |
+ public IdgenService book() { |
|
91 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
92 |
+ idgenServiceImpl.setCipers(15); |
|
93 |
+ idgenServiceImpl.setFillChar('0'); |
|
94 |
+ idgenServiceImpl.setPrefix("BOOK_"); |
|
95 |
+ idgenServiceImpl.setTblNm("BOOK_ID"); |
|
96 |
+ return idgenServiceImpl; |
|
97 |
+ } |
|
98 |
+ |
|
99 |
+ // 단원 정보 |
|
100 |
+ @Bean(name = "unitIdgn") |
|
101 |
+ public IdgenService unit() { |
|
102 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
103 |
+ idgenServiceImpl.setCipers(15); |
|
104 |
+ idgenServiceImpl.setFillChar('0'); |
|
105 |
+ idgenServiceImpl.setPrefix("UNIT_"); |
|
106 |
+ idgenServiceImpl.setTblNm("UNIT_ID"); |
|
107 |
+ return idgenServiceImpl; |
|
108 |
+ } |
|
109 |
+ |
|
110 |
+ // 문제 정보 |
|
111 |
+ @Bean(name = "problemIdgn") |
|
112 |
+ public IdgenService problem() { |
|
113 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
114 |
+ idgenServiceImpl.setCipers(15); |
|
115 |
+ idgenServiceImpl.setFillChar('0'); |
|
116 |
+ idgenServiceImpl.setPrefix("PROBLEM_"); |
|
117 |
+ idgenServiceImpl.setTblNm("PROBLEM_ID"); |
|
118 |
+ return idgenServiceImpl; |
|
119 |
+ } |
|
120 |
+ |
|
121 |
+ // 문제 상세 정보 |
|
122 |
+ @Bean(name = "problemDtlIdgn") |
|
123 |
+ public IdgenService problemDtl() { |
|
124 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
125 |
+ idgenServiceImpl.setCipers(15); |
|
126 |
+ idgenServiceImpl.setFillChar('0'); |
|
127 |
+ idgenServiceImpl.setPrefix("PROBLEM_DTL_"); |
|
128 |
+ idgenServiceImpl.setTblNm("PROBLEM_DTL_ID"); |
|
129 |
+ return idgenServiceImpl; |
|
130 |
+ } |
|
131 |
+ |
|
132 |
+ // 문제 풀이 로그 정보 |
|
133 |
+ @Bean(name = "problemLogIdgn") |
|
134 |
+ public IdgenService problemLog() { |
|
135 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
136 |
+ idgenServiceImpl.setCipers(15); |
|
137 |
+ idgenServiceImpl.setFillChar('0'); |
|
138 |
+ idgenServiceImpl.setPrefix("PROBLEM_LOG_"); |
|
139 |
+ idgenServiceImpl.setTblNm("PROBLEM_LOG_ID"); |
|
140 |
+ return idgenServiceImpl; |
|
141 |
+ } |
|
142 |
+ |
|
143 |
+ // 지문 정보 |
|
144 |
+ @Bean(name = "textIdgn") |
|
145 |
+ public IdgenService text() { |
|
146 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
147 |
+ idgenServiceImpl.setCipers(15); |
|
148 |
+ idgenServiceImpl.setFillChar('0'); |
|
149 |
+ idgenServiceImpl.setPrefix("TEXT_"); |
|
150 |
+ idgenServiceImpl.setTblNm("TEXT_ID"); |
|
151 |
+ return idgenServiceImpl; |
|
152 |
+ } |
|
153 |
+ |
|
154 |
+ // 단어 정보 |
|
155 |
+ @Bean(name = "wordIdgn") |
|
156 |
+ public IdgenService word() { |
|
157 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
158 |
+ idgenServiceImpl.setCipers(15); |
|
159 |
+ idgenServiceImpl.setFillChar('0'); |
|
160 |
+ idgenServiceImpl.setPrefix("WORD_"); |
|
161 |
+ idgenServiceImpl.setTblNm("WORD_ID"); |
|
162 |
+ return idgenServiceImpl; |
|
163 |
+ } |
|
164 |
+ |
|
165 |
+ // 단어장 정보 |
|
166 |
+ @Bean(name = "wordBookIdgn") |
|
167 |
+ public IdgenService wordBook() { |
|
168 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
169 |
+ idgenServiceImpl.setCipers(15); |
|
170 |
+ idgenServiceImpl.setFillChar('0'); |
|
171 |
+ idgenServiceImpl.setPrefix("WORD_BOOK_"); |
|
172 |
+ idgenServiceImpl.setTblNm("WORD_BOOK_ID"); |
|
173 |
+ return idgenServiceImpl; |
|
174 |
+ } |
|
175 |
+ |
|
176 |
+ // 단원 평가 정보 |
|
177 |
+ @Bean(name = "evalIdgn") |
|
178 |
+ public IdgenService evaluation() { |
|
179 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
180 |
+ idgenServiceImpl.setCipers(15); |
|
181 |
+ idgenServiceImpl.setFillChar('0'); |
|
182 |
+ idgenServiceImpl.setPrefix("EVAL_"); |
|
183 |
+ idgenServiceImpl.setTblNm("EVAL_ID"); |
|
184 |
+ return idgenServiceImpl; |
|
185 |
+ } |
|
186 |
+ |
|
187 |
+ // 학습 일정 정보 |
|
188 |
+ @Bean(name = "scheduleIdgn") |
|
189 |
+ public IdgenService schedule() { |
|
190 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
191 |
+ idgenServiceImpl.setCipers(15); |
|
192 |
+ idgenServiceImpl.setFillChar('0'); |
|
193 |
+ idgenServiceImpl.setPrefix("SCHDL_"); |
|
194 |
+ idgenServiceImpl.setTblNm("SCHDL_ID"); |
|
195 |
+ return idgenServiceImpl; |
|
196 |
+ } |
|
197 |
+ |
|
198 |
+ // 사진첩 정보 |
|
199 |
+ @Bean(name = "photoMngIdgn") |
|
200 |
+ public IdgenService photoMng() { |
|
201 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
202 |
+ idgenServiceImpl.setCipers(15); |
|
203 |
+ idgenServiceImpl.setFillChar('0'); |
|
204 |
+ idgenServiceImpl.setPrefix("PHOTO_MNG_"); |
|
205 |
+ idgenServiceImpl.setTblNm("PHOTO_MNG_ID"); |
|
206 |
+ return idgenServiceImpl; |
|
207 |
+ } |
|
208 |
+ |
|
209 |
+ // 사진 정보 |
|
210 |
+ @Bean(name = "evalIdgn") |
|
211 |
+ public IdgenService photo() { |
|
212 |
+ IdgenService idgenServiceImpl = new IdgenService(); |
|
213 |
+ idgenServiceImpl.setCipers(15); |
|
214 |
+ idgenServiceImpl.setFillChar('0'); |
|
215 |
+ idgenServiceImpl.setPrefix("PHOTO_"); |
|
216 |
+ idgenServiceImpl.setTblNm("PHOTO_ID"); |
|
217 |
+ return idgenServiceImpl; |
|
218 |
+ } |
|
56 | 219 |
|
57 | 220 |
}(파일 끝에 줄바꿈 문자 없음) |
--- src/main/resources/mybatis/mapper/auth/auth-SQL.xml
+++ src/main/resources/mybatis/mapper/auth/auth-SQL.xml
... | ... | @@ -87,7 +87,7 @@ |
87 | 87 |
<insert id="insertAuth" parameterType="HashMap"> |
88 | 88 |
INSERT INTO users_author( |
89 | 89 |
user_id |
90 |
- , authrt_id |
|
90 |
+ , authrt_cd |
|
91 | 91 |
) VALUES ( |
92 | 92 |
#{usid} |
93 | 93 |
, #{authrt_cd} |
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?