<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="com.i2sema.util.make.dao.MakeDAO">

	<insert id="insertSmt"
		parameterType="com.i2sema.util.make.vo.SmtVO">
		<![CDATA[
			INSERT INTO em_smt_log_202210
			(mt_pr, mt_seq, msg_key, input_type, mt_refkey, priority, date_client_req, content, callback, service_type, broadcast_yn, msg_status, recipient_num, change_word1, change_word2, change_word3, change_word4, change_word5, date_mt_sent, date_rslt, date_mt_report, mt_report_code_ib, mt_report_code_ibtype, carrier, rs_id, recipient_net, recipient_npsend, country_code, charset, msg_type, crypto_yn, ttl, emma_id, reg_date_tran, reg_date, mt_res_cnt, client_sub_id, org_id, seq, per_seq, noti_group_id, noti_id, msg_gb, agent_version, v2_seq)
			VALUES
			(#{mtPr}, 0, #{msgKey}, '0', #{mtRefkey}, 'S', #{dateClientReq}, #{content}, #{callback}, #{serviceType}, 'N', '1', #{recipientNum}, NULL, NULL, NULL, NULL, NULL, #{dateMtSent}, #{dateRslt}, #{dateMtReport}, #{mtReportCodeIb}, #{mtReportCodeIbtype}, NULL, NULL, NULL, NULL, '82', NULL, NULL, 'Y', NULL, '', #{regDateTran}, current_timestamp(), NULL, NULL, #{orgId}, #{seq}, NULL, #{notiGroupId}, #{notiId}, NULL, #{agentVersion}, #{v2Seq})
		]]>
	</insert>

	<insert id="insertMmt"
		parameterType="com.i2sema.util.make.vo.MmtVO">
		<![CDATA[
			INSERT INTO em_mmt_log_202210
			(mt_pr, mt_seq, msg_key, input_type, mt_refkey, priority, msg_class, date_client_req, subject, content_type, content, attach_file_group_key, callback, service_type, broadcast_yn, msg_status, recipient_num, change_word1, change_word2, change_word3, change_word4, change_word5, date_mt_sent, date_rslt, date_mt_report, mt_report_code_ib, mt_report_code_ibtype, carrier, rs_id, recipient_net, recipient_npsend, country_code, charset, msg_type, crypto_yn, ttl, emma_id, reg_date_tran, reg_date, mt_res_cnt, client_sub_id, org_id, seq, per_seq, noti_group_id, noti_id, msg_gb, agent_version, v2_seq)
			VALUES
			(#{mtPr}, 0, NULL, '0', #{mtRefkey}, 'S', '1', #{dateClientReq}, #{subject}, 0, #{content}, 0, #{callback}, #{serviceType}, 'N', '1', #{recipientNum}, NULL, NULL, NULL, NULL, NULL, #{dateMtSent}, #{dateRslt}, #{dateMtReport}, #{mtReportCodeIb}, #{mtReportCodeIbtype}, NULL, NULL, NULL, NULL, '82', NULL, NULL, 'Y', NULL, '', #{regDateTran}, current_timestamp(), NULL, NULL, #{orgId}, #{seq}, NULL, #{notiGroupId}, #{notiId}, NULL, #{agentVersion}, #{v2Seq})
		]]>
	</insert>
	
	<insert id="insertIta"
		parameterType="com.i2sema.util.make.vo.ItaVO">
		<![CDATA[
			INSERT INTO ita_talk_log_202210
			(mt_pr, mt_refkey, priority, date_client_req, subject, content, callback, msg_status, recipient_num, date_mt_sent, date_rslt, date_mt_report, report_code, rs_id, country_code, msg_type, crypto_yn, ita_id, reg_date_tran, reg_date, sender_key, template_code, response_method, ad_flag, kko_btn_type, kko_btn_info, img_url, img_link, img_wide, user_key, app_user_id, etc_text_1, etc_text_2, etc_text_3, etc_num_1, etc_num_2, etc_num_3, etc_date_1, org_id, seq, per_seq, noti_group_id, noti_id, brtalk_rslt_type, optional_data, agent_version, v2_seq)
			VALUES
			(#{mtPr}, #{mtRefkey}, 'S', #{dateClientReq}, #{subject}, #{content}, #{callback}, '1', #{recipientNum}, #{dateMtSent}, #{dateRslt}, #{dateMtReport}, #{reportCode}, NULL, '82', #{msgType}, 'Y', '', current_timestamp(), current_timestamp(), '', NULL, 'push', 'N', NULL, NULL, NULL, NULL, 'N', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, #{orgId}, #{seq}, NULL, #{notiGroupId}, #{notiId}, NULL, NULL, #{agentVersion}, #{v2Seq})			
		]]>
	</insert>




</mapper>