id, merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode,
organization_code, manager_name, manager_phone, service_phone, logo_url, app_id,
alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by,
update_time, del_flag
delete from pile_merchant_info
where id = #{id,jdbcType=INTEGER}
insert into pile_merchant_info
merchant_name,
merchant_level,
parent_id,
address,
dept_id,
`status`,
delay_mode,
organization_code,
manager_name,
manager_phone,
service_phone,
logo_url,
app_id,
alipay_app_id,
withdrawal_type,
reserved_amount,
create_by,
create_time,
update_by,
update_time,
del_flag,
#{merchantName,jdbcType=VARCHAR},
#{merchantLevel,jdbcType=VARCHAR},
#{parentId,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR},
#{deptId,jdbcType=VARCHAR},
#{status,jdbcType=CHAR},
#{delayMode,jdbcType=VARCHAR},
#{organizationCode,jdbcType=VARCHAR},
#{managerName,jdbcType=VARCHAR},
#{managerPhone,jdbcType=VARCHAR},
#{servicePhone,jdbcType=VARCHAR},
#{logoUrl,jdbcType=VARCHAR},
#{appId,jdbcType=VARCHAR},
#{alipayAppId,jdbcType=VARCHAR},
#{withdrawalType,jdbcType=VARCHAR},
#{reservedAmount,jdbcType=DECIMAL},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=CHAR},
update pile_merchant_info
merchant_name = #{merchantName,jdbcType=VARCHAR},
merchant_level = #{merchantLevel,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
dept_id = #{deptId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=CHAR},
delay_mode = #{delayMode,jdbcType=VARCHAR},
organization_code = #{organizationCode,jdbcType=VARCHAR},
manager_name = #{managerName,jdbcType=VARCHAR},
manager_phone = #{managerPhone,jdbcType=VARCHAR},
service_phone = #{servicePhone,jdbcType=VARCHAR},
logo_url = #{logoUrl,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
alipay_app_id = #{alipayAppId,jdbcType=VARCHAR},
withdrawal_type = #{withdrawalType,jdbcType=VARCHAR},
reserved_amount = #{reservedAmount,jdbcType=DECIMAL},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=CHAR},
where id = #{id,jdbcType=INTEGER}
update pile_merchant_info
when id = #{item.id,jdbcType=INTEGER} then #{item.merchantName,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.merchantLevel,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.parentId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.address,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.deptId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.delayMode,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.organizationCode,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.managerName,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.managerPhone,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.servicePhone,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.logoUrl,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.appId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.alipayAppId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawalType,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.reservedAmount,jdbcType=DECIMAL}
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR}
where id in
#{item.id,jdbcType=INTEGER}
update pile_merchant_info
when id = #{item.id,jdbcType=INTEGER} then #{item.merchantName,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.merchantLevel,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.parentId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.address,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.deptId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.status,jdbcType=CHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.delayMode,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.organizationCode,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.managerName,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.managerPhone,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.servicePhone,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.logoUrl,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.appId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.alipayAppId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.withdrawalType,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.reservedAmount,jdbcType=DECIMAL}
when id = #{item.id,jdbcType=INTEGER} then #{item.createBy,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.createTime,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.updateBy,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.updateTime,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=INTEGER} then #{item.delFlag,jdbcType=CHAR}
where id in
#{item.id,jdbcType=INTEGER}
insert into pile_merchant_info
(merchant_name, merchant_level, parent_id, address, dept_id, `status`, delay_mode,
organization_code, manager_name, manager_phone, service_phone, logo_url, app_id,
alipay_app_id, withdrawal_type, reserved_amount, create_by, create_time, update_by,
update_time, del_flag)
values
(#{item.merchantName,jdbcType=VARCHAR}, #{item.merchantLevel,jdbcType=VARCHAR}, #{item.parentId,jdbcType=VARCHAR},
#{item.address,jdbcType=VARCHAR}, #{item.deptId,jdbcType=VARCHAR}, #{item.status,jdbcType=CHAR},
#{item.delayMode,jdbcType=VARCHAR}, #{item.organizationCode,jdbcType=VARCHAR},
#{item.managerName,jdbcType=VARCHAR}, #{item.managerPhone,jdbcType=VARCHAR}, #{item.servicePhone,jdbcType=VARCHAR},
#{item.logoUrl,jdbcType=VARCHAR}, #{item.appId,jdbcType=VARCHAR}, #{item.alipayAppId,jdbcType=VARCHAR},
#{item.withdrawalType,jdbcType=VARCHAR}, #{item.reservedAmount,jdbcType=DECIMAL},
#{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateBy,jdbcType=VARCHAR},
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.delFlag,jdbcType=CHAR})
insert into pile_merchant_info
id,
merchant_name,
merchant_level,
parent_id,
address,
dept_id,
`status`,
delay_mode,
organization_code,
manager_name,
manager_phone,
service_phone,
logo_url,
app_id,
alipay_app_id,
withdrawal_type,
reserved_amount,
create_by,
create_time,
update_by,
update_time,
del_flag,
values
#{id,jdbcType=INTEGER},
#{merchantName,jdbcType=VARCHAR},
#{merchantLevel,jdbcType=VARCHAR},
#{parentId,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR},
#{deptId,jdbcType=VARCHAR},
#{status,jdbcType=CHAR},
#{delayMode,jdbcType=VARCHAR},
#{organizationCode,jdbcType=VARCHAR},
#{managerName,jdbcType=VARCHAR},
#{managerPhone,jdbcType=VARCHAR},
#{servicePhone,jdbcType=VARCHAR},
#{logoUrl,jdbcType=VARCHAR},
#{appId,jdbcType=VARCHAR},
#{alipayAppId,jdbcType=VARCHAR},
#{withdrawalType,jdbcType=VARCHAR},
#{reservedAmount,jdbcType=DECIMAL},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=CHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
merchant_name = #{merchantName,jdbcType=VARCHAR},
merchant_level = #{merchantLevel,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
dept_id = #{deptId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=CHAR},
delay_mode = #{delayMode,jdbcType=VARCHAR},
organization_code = #{organizationCode,jdbcType=VARCHAR},
manager_name = #{managerName,jdbcType=VARCHAR},
manager_phone = #{managerPhone,jdbcType=VARCHAR},
service_phone = #{servicePhone,jdbcType=VARCHAR},
logo_url = #{logoUrl,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
alipay_app_id = #{alipayAppId,jdbcType=VARCHAR},
withdrawal_type = #{withdrawalType,jdbcType=VARCHAR},
reserved_amount = #{reservedAmount,jdbcType=DECIMAL},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=CHAR},
insert into pile_merchant_info
id,
merchant_name,
merchant_level,
parent_id,
address,
dept_id,
`status`,
delay_mode,
organization_code,
manager_name,
manager_phone,
service_phone,
logo_url,
app_id,
alipay_app_id,
withdrawal_type,
reserved_amount,
create_by,
create_time,
update_by,
update_time,
del_flag,
values
#{id,jdbcType=INTEGER},
#{merchantName,jdbcType=VARCHAR},
#{merchantLevel,jdbcType=VARCHAR},
#{parentId,jdbcType=VARCHAR},
#{address,jdbcType=VARCHAR},
#{deptId,jdbcType=VARCHAR},
#{status,jdbcType=CHAR},
#{delayMode,jdbcType=VARCHAR},
#{organizationCode,jdbcType=VARCHAR},
#{managerName,jdbcType=VARCHAR},
#{managerPhone,jdbcType=VARCHAR},
#{servicePhone,jdbcType=VARCHAR},
#{logoUrl,jdbcType=VARCHAR},
#{appId,jdbcType=VARCHAR},
#{alipayAppId,jdbcType=VARCHAR},
#{withdrawalType,jdbcType=VARCHAR},
#{reservedAmount,jdbcType=DECIMAL},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{delFlag,jdbcType=CHAR},
on duplicate key update
id = #{id,jdbcType=INTEGER},
merchant_name = #{merchantName,jdbcType=VARCHAR},
merchant_level = #{merchantLevel,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=VARCHAR},
address = #{address,jdbcType=VARCHAR},
dept_id = #{deptId,jdbcType=VARCHAR},
`status` = #{status,jdbcType=CHAR},
delay_mode = #{delayMode,jdbcType=VARCHAR},
organization_code = #{organizationCode,jdbcType=VARCHAR},
manager_name = #{managerName,jdbcType=VARCHAR},
manager_phone = #{managerPhone,jdbcType=VARCHAR},
service_phone = #{servicePhone,jdbcType=VARCHAR},
logo_url = #{logoUrl,jdbcType=VARCHAR},
app_id = #{appId,jdbcType=VARCHAR},
alipay_app_id = #{alipayAppId,jdbcType=VARCHAR},
withdrawal_type = #{withdrawalType,jdbcType=VARCHAR},
reserved_amount = #{reservedAmount,jdbcType=DECIMAL},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
del_flag = #{delFlag,jdbcType=CHAR},
select
from pile_merchant_info
insert into pile_merchant_info
id,
merchant_name,
merchant_level,
parent_id,
address,
status,
delay_mode,
organization_code,
manager_name,
manager_phone,
service_phone,
logo_url,
app_id,
alipay_app_id,
dept_id,
create_by,
create_time,
update_by,
update_time,
del_flag,
#{id},
#{merchantName},
#{merchantLevel},
#{parentId},
#{address},
#{status},
#{delayMode},
#{organizationCode},
#{managerName},
#{managerPhone},
#{servicePhone},
#{logoUrl},
#{appId},
#{alipayAppId},
#{deptId},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{delFlag},
update pile_merchant_info
merchant_name = #{merchantName},
merchant_level = #{merchantLevel},
parent_id = #{parentId},
address = #{address},
status = #{status},
delay_mode = #{delayMode},
organization_code = #{organizationCode},
manager_name = #{managerName},
manager_phone = #{managerPhone},
service_phone = #{servicePhone},
logo_url = #{logoUrl},
app_id = #{appId},
alipay_app_id = #{alipayAppId},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
del_flag = #{delFlag},
where id = #{id}
update pile_merchant_info
set del_flag = '1'
where id = #{id}
update pile_merchant_info
set del_flag = '1'
where id in
#{id}