20250110_4

main
seokjun jeon 2 weeks ago
parent c1e941a9b6
commit f69305d1e8

@ -5,6 +5,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.icomsys.dsl.MessageSendServiceDsl; import com.icomsys.dsl.MessageSendServiceDsl;
import com.icomsys.util.CommonBeanUtils; import com.icomsys.util.CommonBeanUtils;
import com.icomsys.vo.*; import com.icomsys.vo.*;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import java.io.IOException; import java.io.IOException;
@ -18,6 +19,7 @@ import java.util.Map;
import java.util.Objects; import java.util.Objects;
import java.util.UUID; import java.util.UUID;
@MapperScan(basePackages = "com.icomsys.mapper")
public class MessagingConnector { public class MessagingConnector {
private final String sms; private final String sms;

@ -1,6 +1,6 @@
package com.icomsys.dsl; package com.icomsys.dsl;
import com.icomsys.message.MessageSendLogMapper; import com.icomsys.mapper.MessageSendLogMapper;
import com.icomsys.vo.MessageSendLogInfo; import com.icomsys.vo.MessageSendLogInfo;
import com.icomsys.vo.MessageSendRequest; import com.icomsys.vo.MessageSendRequest;
import com.icomsys.vo.MessageSendResponse; import com.icomsys.vo.MessageSendResponse;
@ -18,9 +18,7 @@ public class MessageSendServiceDslImpl implements MessageSendServiceDsl {
@Override @Override
public void insertSendLog(SejongMessageSendResponse response, MessageSendRequest request, MessageSendResponse messageSendResponse) { public void insertSendLog(SejongMessageSendResponse response, MessageSendRequest request, MessageSendResponse messageSendResponse) {
System.out.print("jsj1");
String sendYn = messageSendResponse.getCode().equals("200") ? "Y" : "N"; String sendYn = messageSendResponse.getCode().equals("200") ? "Y" : "N";
System.out.print("jsj2");
MessageSendLogInfo messageSendLogInfo = new MessageSendLogInfo.Builder() MessageSendLogInfo messageSendLogInfo = new MessageSendLogInfo.Builder()
.setSendYn(sendYn) .setSendYn(sendYn)
.setUserKey(request.getUserKey()) .setUserKey(request.getUserKey())
@ -41,10 +39,7 @@ public class MessageSendServiceDslImpl implements MessageSendServiceDsl {
.setRegistDate(LocalDateTime.now()) .setRegistDate(LocalDateTime.now())
.setOptionYn(request.getOptionYn()) .setOptionYn(request.getOptionYn())
.build(); .build();
System.out.println("jsj3");
System.out.println("messageSendLogInfo : " + messageSendLogInfo);
messageSendLogMapper.insertSendLog(messageSendLogInfo); messageSendLogMapper.insertSendLog(messageSendLogInfo);
System.out.println("jsj4");
} }
@Override @Override

@ -1,10 +1,12 @@
package com.icomsys.message; package com.icomsys.mapper;
import com.icomsys.vo.MessageSendLogInfo; import com.icomsys.vo.MessageSendLogInfo;
import com.icomsys.vo.MessageSendRequest; import com.icomsys.vo.MessageSendRequest;
import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
@Mapper
public interface MessageSendLogMapper { public interface MessageSendLogMapper {
void insertSendLog(MessageSendLogInfo messageSendLogInfo); void insertSendLog(MessageSendLogInfo messageSendLogInfo);

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.icomsys.message.MessageSendLogMapper"> <mapper namespace="com.icomsys.mapper.MessageSendLogMapper">
<insert id="insertSendLog" parameterType="com.icomsys.vo.MessageSendLogInfo"> <!--useGeneratedKeys="true" keyProperty="seqNo"--> <insert id="insertSendLog" parameterType="com.icomsys.vo.MessageSendLogInfo"> <!--useGeneratedKeys="true" keyProperty="seqNo"-->
INSERT INTO TB_UMS_SEND_LOG INSERT INTO TB_UMS_SEND_LOG

Loading…
Cancel
Save