diff --git a/src/main/java/com/icomsys/MessagingConnector.java b/src/main/java/com/icomsys/MessagingConnector.java index 326d5ef..ef76539 100644 --- a/src/main/java/com/icomsys/MessagingConnector.java +++ b/src/main/java/com/icomsys/MessagingConnector.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.icomsys.dsl.MessageSendServiceDsl; import com.icomsys.util.CommonBeanUtils; import com.icomsys.vo.*; +import org.mybatis.spring.annotation.MapperScan; import org.springframework.beans.factory.annotation.Autowired; import java.io.IOException; @@ -18,6 +19,7 @@ import java.util.Map; import java.util.Objects; import java.util.UUID; +@MapperScan(basePackages = "com.icomsys.mapper") public class MessagingConnector { private final String sms; diff --git a/src/main/java/com/icomsys/dsl/MessageSendServiceDslImpl.java b/src/main/java/com/icomsys/dsl/MessageSendServiceDslImpl.java index 405b29f..28c0f01 100644 --- a/src/main/java/com/icomsys/dsl/MessageSendServiceDslImpl.java +++ b/src/main/java/com/icomsys/dsl/MessageSendServiceDslImpl.java @@ -1,6 +1,6 @@ package com.icomsys.dsl; -import com.icomsys.message.MessageSendLogMapper; +import com.icomsys.mapper.MessageSendLogMapper; import com.icomsys.vo.MessageSendLogInfo; import com.icomsys.vo.MessageSendRequest; import com.icomsys.vo.MessageSendResponse; @@ -18,9 +18,7 @@ public class MessageSendServiceDslImpl implements MessageSendServiceDsl { @Override public void insertSendLog(SejongMessageSendResponse response, MessageSendRequest request, MessageSendResponse messageSendResponse) { - System.out.print("jsj1"); String sendYn = messageSendResponse.getCode().equals("200") ? "Y" : "N"; - System.out.print("jsj2"); MessageSendLogInfo messageSendLogInfo = new MessageSendLogInfo.Builder() .setSendYn(sendYn) .setUserKey(request.getUserKey()) @@ -41,10 +39,7 @@ public class MessageSendServiceDslImpl implements MessageSendServiceDsl { .setRegistDate(LocalDateTime.now()) .setOptionYn(request.getOptionYn()) .build(); - System.out.println("jsj3"); - System.out.println("messageSendLogInfo : " + messageSendLogInfo); messageSendLogMapper.insertSendLog(messageSendLogInfo); - System.out.println("jsj4"); } @Override diff --git a/src/main/java/com/icomsys/message/MessageSendLogMapper.java b/src/main/java/com/icomsys/mapper/MessageSendLogMapper.java similarity index 79% rename from src/main/java/com/icomsys/message/MessageSendLogMapper.java rename to src/main/java/com/icomsys/mapper/MessageSendLogMapper.java index 4c11060..cf98fd9 100644 --- a/src/main/java/com/icomsys/message/MessageSendLogMapper.java +++ b/src/main/java/com/icomsys/mapper/MessageSendLogMapper.java @@ -1,10 +1,12 @@ -package com.icomsys.message; +package com.icomsys.mapper; import com.icomsys.vo.MessageSendLogInfo; import com.icomsys.vo.MessageSendRequest; +import org.apache.ibatis.annotations.Mapper; import java.util.List; +@Mapper public interface MessageSendLogMapper { void insertSendLog(MessageSendLogInfo messageSendLogInfo); diff --git a/src/main/resources/mapper/message/MessageSendLog.xml b/src/main/resources/mapper/message/MessageSendLog.xml index e8da718..6209987 100644 --- a/src/main/resources/mapper/message/MessageSendLog.xml +++ b/src/main/resources/mapper/message/MessageSendLog.xml @@ -1,7 +1,7 @@ - + INSERT INTO TB_UMS_SEND_LOG