+++ src/main/java/itn/let/mjo/msgsent/service/MjonMsgDetailSentDTO.java
... | ... | @@ -0,0 +1,22 @@ |
| 1 | +package itn.let.mjo.msgsent.service; | |
| 2 | + | |
| 3 | +import java.util.List; | |
| 4 | + | |
| 5 | +import itn.let.cmm.vo.FileInfoVO; | |
| 6 | +import itn.let.uss.umt.service.UserDefaultVO; | |
| 7 | +import lombok.Getter; | |
| 8 | +import lombok.Setter; | |
| 9 | + | |
| 10 | +@Getter | |
| 11 | +@Setter | |
| 12 | +public class MjonMsgDetailSentDTO extends UserDefaultVO{ | |
| 13 | + | |
| 14 | + private static final long serialVersionUID = 1L; | |
| 15 | + | |
| 16 | + | |
| 17 | + private String userId; | |
| 18 | + private String callTo; | |
| 19 | + private String statusTxt; | |
| 20 | + | |
| 21 | + | |
| 22 | +} |
--- src/main/java/itn/let/mjo/msgsent/service/MjonMsgSentService.java
+++ src/main/java/itn/let/mjo/msgsent/service/MjonMsgSentService.java
... | ... | @@ -65,7 +65,7 @@ |
| 65 | 65 |
|
| 66 | 66 |
public Map<String, Object> selectAllMsgSentDetailView(MjonMsgDetailSentVO mjonMsgDetailSentVO) throws Exception; |
| 67 | 67 |
|
| 68 |
- public List<MjonMsgDetailSentVO> findByMsgDetailListAjax(MjonMsgDetailSentVO mjonMsgDetailSentVO); |
|
| 68 |
+ public List<MjonMsgDetailSentDTO> findByMsgDetailListAjax(MjonMsgDetailSentVO mjonMsgDetailSentVO); |
|
| 69 | 69 |
|
| 70 | 70 |
public void msgSentExcelDownLoad(MjonMsgSentVO mjonMsgSentVO, HttpServletResponse response) throws IOException, Exception; |
| 71 | 71 |
|
--- src/main/java/itn/let/mjo/msgsent/service/impl/MjonMsgSentDAO.java
+++ src/main/java/itn/let/mjo/msgsent/service/impl/MjonMsgSentDAO.java
... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 |
import itn.let.fax.addr.service.FaxAddrGroupVO; |
| 10 | 10 |
import itn.let.mjo.addr.service.AddrGroupVO; |
| 11 | 11 |
import itn.let.mjo.block.service.MjonBlockVO; |
| 12 |
+import itn.let.mjo.msgsent.service.MjonMsgDetailSentDTO; |
|
| 12 | 13 |
import itn.let.mjo.msgsent.service.MjonMsgDetailSentVO; |
| 13 | 14 |
import itn.let.mjo.msgsent.service.MjonMsgSWFDTO; |
| 14 | 15 |
import itn.let.mjo.msgsent.service.MjonMsgSentVO; |
... | ... | @@ -182,9 +183,9 @@ |
| 182 | 183 |
return (MjonMsgDetailSentVO) select("MjonMsgSentDAO.selectAllMsgSentDetailView", mjonMsgDetailSentVO);
|
| 183 | 184 |
} |
| 184 | 185 |
|
| 185 |
- public List<MjonMsgDetailSentVO> findByMsgDetailListAjax(MjonMsgDetailSentVO mjonMsgDetailSentVO) {
|
|
| 186 |
+ public List<MjonMsgDetailSentDTO> findByMsgDetailListAjax(MjonMsgDetailSentVO mjonMsgDetailSentVO) {
|
|
| 186 | 187 |
|
| 187 |
- return (List<MjonMsgDetailSentVO>) list("MjonMsgSentDAO.findByMsgDetailListAjax", mjonMsgDetailSentVO);
|
|
| 188 |
+ return (List<MjonMsgDetailSentDTO>) list("MjonMsgSentDAO.findByMsgDetailListAjax", mjonMsgDetailSentVO);
|
|
| 188 | 189 |
} |
| 189 | 190 |
|
| 190 | 191 |
public List<String> findByReqDateWhereMsgGroupId(String msgGroupId) {
|
--- src/main/java/itn/let/mjo/msgsent/service/impl/MjonMsgSentServiceImpl.java
+++ src/main/java/itn/let/mjo/msgsent/service/impl/MjonMsgSentServiceImpl.java
... | ... | @@ -39,6 +39,7 @@ |
| 39 | 39 |
import itn.let.fax.addr.service.FaxAddrGroupVO; |
| 40 | 40 |
import itn.let.mjo.addr.service.AddrGroupVO; |
| 41 | 41 |
import itn.let.mjo.block.service.MjonBlockVO; |
| 42 |
+import itn.let.mjo.msgsent.service.MjonMsgDetailSentDTO; |
|
| 42 | 43 |
import itn.let.mjo.msgsent.service.MjonMsgDetailSentVO; |
| 43 | 44 |
import itn.let.mjo.msgsent.service.MjonMsgSWFDTO; |
| 44 | 45 |
import itn.let.mjo.msgsent.service.MjonMsgSentService; |
... | ... | @@ -474,9 +475,9 @@ |
| 474 | 475 |
} |
| 475 | 476 |
|
| 476 | 477 |
@Override |
| 477 |
- public List<MjonMsgDetailSentVO> findByMsgDetailListAjax(MjonMsgDetailSentVO mjonMsgDetailSentVO) {
|
|
| 478 |
+ public List<MjonMsgDetailSentDTO> findByMsgDetailListAjax(MjonMsgDetailSentVO mjonMsgDetailSentVO) {
|
|
| 478 | 479 |
|
| 479 |
- List<MjonMsgDetailSentVO> list = mjonMsgSentDAO.findByMsgDetailListAjax(mjonMsgDetailSentVO); |
|
| 480 |
+ List<MjonMsgDetailSentDTO> list = mjonMsgSentDAO.findByMsgDetailListAjax(mjonMsgDetailSentVO); |
|
| 480 | 481 |
list.stream().forEach(t->{
|
| 481 | 482 |
t.setCallTo(StringUtil2.formatPhone(t.getCallTo())); |
| 482 | 483 |
}); |
--- src/main/java/itn/let/mjo/msgsent/web/MjonMsgSentController.java
+++ src/main/java/itn/let/mjo/msgsent/web/MjonMsgSentController.java
... | ... | @@ -50,6 +50,7 @@ |
| 50 | 50 |
import itn.let.mjo.addr.service.AddrVO; |
| 51 | 51 |
import itn.let.mjo.apikey.service.ApiKeyMngService; |
| 52 | 52 |
import itn.let.mjo.apikey.service.ApiKeyVO; |
| 53 |
+import itn.let.mjo.msgsent.service.MjonMsgDetailSentDTO; |
|
| 53 | 54 |
import itn.let.mjo.msgsent.service.MjonMsgDetailSentVO; |
| 54 | 55 |
import itn.let.mjo.msgsent.service.MjonMsgSentCntVO; |
| 55 | 56 |
import itn.let.mjo.msgsent.service.MjonMsgSentService; |
... | ... | @@ -191,7 +192,17 @@ |
| 191 | 192 |
public ResponseEntity<StatusResponse> findByMsgDetailListAjax(MjonMsgDetailSentVO mjonMsgDetailSentVO) throws Exception {
|
| 192 | 193 |
|
| 193 | 194 |
|
| 194 |
- List<MjonMsgDetailSentVO> resultList = mjonMsgSentService.findByMsgDetailListAjax(mjonMsgDetailSentVO); |
|
| 195 |
+ List<MjonMsgDetailSentDTO> resultList = new ArrayList<>(); |
|
| 196 |
+ try {
|
|
| 197 |
+ |
|
| 198 |
+ resultList = mjonMsgSentService.findByMsgDetailListAjax(mjonMsgDetailSentVO); |
|
| 199 |
+ } catch (Exception e) {
|
|
| 200 |
+ e.printStackTrace(); |
|
| 201 |
+ // TODO: handle exception |
|
| 202 |
+ } |
|
| 203 |
+ log.info("resultList :: [{}]", resultList.size());
|
|
| 204 |
+// resultList = resultList.subList(0, 275000); |
|
| 205 |
+// log.info("resultList :: [{}]", resultList.size());
|
|
| 195 | 206 |
|
| 196 | 207 |
|
| 197 | 208 |
return ResponseEntity.ok().body(new StatusResponse(HttpStatus.OK, "", resultList)); |
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
... | ... | @@ -7,6 +7,7 @@ |
| 7 | 7 |
<sqlMap namespace="Msg"> |
| 8 | 8 |
<typeAlias alias="mjonMsgSWFDTO" type="itn.let.mjo.msgsent.service.MjonMsgSWFDTO"/> |
| 9 | 9 |
<typeAlias alias="mjonMsgDetailSentVO" type="itn.let.mjo.msgsent.service.MjonMsgDetailSentVO"/> |
| 10 |
+ <typeAlias alias="mjonMsgDetailSentDTO" type="itn.let.mjo.msgsent.service.MjonMsgDetailSentDTO"/> |
|
| 10 | 11 |
<typeAlias alias="mjonMsgSentVO" type="itn.let.mjo.msgsent.service.MjonMsgSentVO"/> |
| 11 | 12 |
<typeAlias alias="mjonMsgVO" type="itn.let.mjo.msg.service.MjonMsgVO"/> |
| 12 | 13 |
<typeAlias alias="addrGroupVO" type="itn.let.mjo.addr.service.AddrGroupVO"/> |
... | ... | @@ -389,7 +390,7 @@ |
| 389 | 390 |
|
| 390 | 391 |
|
| 391 | 392 |
<!-- 전체 발송결과 조회 (전송사별)--> |
| 392 |
- <select id="MjonMsgSentDAO.findByMsgDetailListAjax" parameterClass="mjonMsgDetailSentVO" resultClass="mjonMsgDetailSentVO"> |
|
| 393 |
+ <select id="MjonMsgSentDAO.findByMsgDetailListAjax" parameterClass="mjonMsgDetailSentVO" resultClass="mjonMsgDetailSentDTO"> |
|
| 393 | 394 |
/* MjonMsgSentDAO.findByMsgDetailListAjax*/ |
| 394 | 395 |
|
| 395 | 396 |
SELECT |
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?