id,
site_id,
customer_name,
customer_phone,
customer_contact_person,
push_url,
customer_no,
token,
remark,
`status`,
customer_org_id,
date_create,
date_update,
create_by,
update_by,
parent_id,
children_num
INSERT INTO sc_customer (
id,
site_id,
customer_name,
customer_phone,
customer_contact_person,
push_url,
customer_no,
token,
remark,
`status`,
customer_org_id,
date_create,
date_update,
create_by,
update_by,
parent_id,
children_num
) VALUES (
#{customer.id,jdbcType=INTEGER},
#{customer.siteId,jdbcType=INTEGER},
#{customer.customerName,jdbcType=VARCHAR},
#{customer.customerPhone,jdbcType=VARCHAR},
#{customer.customerContactPerson,jdbcType=VARCHAR},
#{customer.pushUrl,jdbcType=VARCHAR},
#{customer.customerNo,jdbcType=VARCHAR}
#{customer.token,jdbcType=VARCHAR}
#{customer.remark,jdbcType=VARCHAR},
#{customer.status,jdbcType=INTEGER},
#{customer.customerOrgId,jdbcType=INTEGER},
#{customer.dateCreate,jdbcType=TIMESTAMP},
#{customer.dateUpdate,jdbcType=TIMESTAMP},
#{customer.createBy,jdbcType=VARCHAR},
#{customer.updateBy,jdbcType=VARCHAR},
#{customer.parentId,jdbcType=INTEGER},
#{customer.childrenNum,jdbcType=INTEGER}
)
INSERT INTO sc_customer
id,
site_id,
customer_name,
customer_phone,
customer_contact_person,
push_url,
customer_no,
token,
remark,
`status`,
customer_org_id,
date_create,
date_update,
create_by,
update_by,
parent_id,
children_num,
VALUES
#{customer.id,jdbcType=INTEGER},
#{customer.siteId,jdbcType=INTEGER},
#{customer.customerName,jdbcType=VARCHAR},
#{customer.customerPhone,jdbcType=VARCHAR},
#{customer.customerContactPerson,jdbcType=VARCHAR},
#{customer.pushUrl,jdbcType=VARCHAR},
#{customer.customerNo,jdbcType=VARCHAR},
#{customer.token,jdbcType=VARCHAR},
#{customer.remark,jdbcType=VARCHAR},
#{customer.status,jdbcType=INTEGER},
#{customer.customerOrgId,jdbcType=INTEGER},
#{customer.dateCreate,jdbcType=TIMESTAMP},
#{customer.dateUpdate,jdbcType=TIMESTAMP},
#{customer.createBy,jdbcType=VARCHAR},
#{customer.updateBy,jdbcType=VARCHAR},
#{customer.parentId,jdbcType=INTEGER},
#{customer.childrenNum,jdbcType=INTEGER},
INSERT INTO sc_customer (
id,
site_id,
customer_name,
customer_phone,
customer_contact_person,
push_url,
customer_no,
token,
remark,
`status`,
customer_org_id,
date_create,
date_update,
create_by,
update_by,
parent_id,
children_num
)VALUES
(
#{customer.id,jdbcType=INTEGER},
#{customer.siteId,jdbcType=INTEGER},
#{customer.customerName,jdbcType=VARCHAR},
#{customer.customerPhone,jdbcType=VARCHAR},
#{customer.customerContactPerson,jdbcType=VARCHAR},
#{customer.pushUrl,jdbcType=VARCHAR},
#{customer.customerNo,jdbcType=VARCHAR},
#{customer.token,jdbcType=VARCHAR},
#{customer.remark,jdbcType=VARCHAR},
#{customer.status,jdbcType=INTEGER},
#{customer.customerOrgId,jdbcType=INTEGER},
#{customer.dateCreate,jdbcType=TIMESTAMP},
#{customer.dateUpdate,jdbcType=TIMESTAMP},
#{customer.createBy,jdbcType=VARCHAR},
#{customer.updateBy,jdbcType=VARCHAR},
#{customer.parentId,jdbcType=INTEGER},
#{customer.childrenNum,jdbcType=INTEGER}
)
UPDATE sc_customer
site_id= #{customer.siteId,jdbcType=INTEGER},
customer_name= #{customer.customerName,jdbcType=VARCHAR},
customer_phone= #{customer.customerPhone,jdbcType=VARCHAR},
customer_contact_person= #{customer.customerContactPerson,jdbcType=VARCHAR},
push_url= #{customer.pushUrl,jdbcType=VARCHAR},
customer_no= #{customer.customerNo,jdbcType=VARCHAR},
token= #{customer.token,jdbcType=VARCHAR},
remark= #{customer.remark,jdbcType=VARCHAR},
`status`= #{customer.status,jdbcType=INTEGER},
customer_org_id= #{customer.customerOrgId,jdbcType=INTEGER},
date_create= #{customer.dateCreate,jdbcType=TIMESTAMP},
date_update= #{customer.dateUpdate,jdbcType=TIMESTAMP},
create_by= #{customer.createBy,jdbcType=VARCHAR},
update_by= #{customer.updateBy,jdbcType=VARCHAR},
parent_id= #{customer.parentId,jdbcType=INTEGER},
children_num= #{customer.childrenNum,jdbcType=INTEGER}
WHERE id = #{customer.id,jdbcType=INTEGER}