You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
892 B
29 lines
892 B
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
|
|
<sqlMap namespace="com.backoffice.m.bf_bottle">
|
|
|
|
<insert id="insert_tbl_cart" parameterClass="dataMap">
|
|
INSERT tbl_cart
|
|
(
|
|
reg_dt
|
|
,member_id
|
|
,title
|
|
<isNotEmpty property="di_no">,di_no</isNotEmpty>
|
|
<isNotEmpty property="dbi_no">,dbi_no</isNotEmpty>
|
|
<isNotEmpty property="dbc_no">,dbc_no</isNotEmpty>
|
|
) VALUES (
|
|
NOW()
|
|
,#member_id#
|
|
,#title#
|
|
<isNotEmpty property="di_no">,#di_no#</isNotEmpty>
|
|
<isNotEmpty property="dbi_no">,#dbi_no#</isNotEmpty>
|
|
<isNotEmpty property="dbc_no">,#dbc_no#</isNotEmpty>
|
|
)
|
|
|
|
<selectKey resultClass="Integer" keyProperty="primaryKey">
|
|
SELECT LAST_INSERT_ID();
|
|
</selectKey>
|
|
</insert>
|
|
|
|
</sqlMap>
|