select
sys_dept_config_id, dept_id, banner_url, single_money, single_order_pay, single_order_no_pay, area_money,
area_order_pay, area_order_no_pay, city_money, city_order_pay, city_order_no_pay, worker_rate, phone,
plain_out_time, go_out_time, going_out_time, going_out_time_rate, golden_server, month_rent, adapay_app_id,
adapay_api_key, adapay_mock_key, adapay_rsa_private_key, adapay_max_retry_times, wx_app_id, wx_secret,
serv_wx_app_id, serv_wx_secret, take_rate, create_by, create_time, update_by, update_time, remark
from
sys_dept_config
insert into sys_dept_config
dept_id,
banner_url,
single_money,
single_order_pay,
single_order_no_pay,
area_money,
area_order_pay,
area_order_no_pay,
city_money,
city_order_pay,
city_order_no_pay,
worker_rate,
phone,
plain_out_time,
go_out_time,
going_out_time,
going_out_time_rate,
golden_server,
month_rent,
adapay_app_id,
adapay_api_key,
adapay_mock_key,
adapay_rsa_private_key,
adapay_max_retry_times,
wx_app_id,
wx_secret,
serv_wx_app_id,
serv_wx_secret,
take_rate,
create_by,
create_time,
update_by,
update_time,
remark,
#{deptId},
#{bannerUrl},
#{singleMoney},
#{singleOrderPay},
#{singleOrderNoPay},
#{areaMoney},
#{areaOrderPay},
#{areaOrderNoPay},
#{cityMoney},
#{cityOrderPay},
#{cityOrderNoPay},
#{workerRate},
#{phone},
#{plainOutTime},
#{goOutTime},
#{goingOutTime},
#{goingOutTimeRate},
#{goldenServer},
#{monthRent},
#{adapayAppId},
#{adapayApiKey},
#{adapayMockApiKey},
#{adapayRsaPrivateKey},
#{adapayMaxRetryTimes},
#{wxAppId},
#{wxSecret},
#{servWxAppId},
#{servWxSecret},
#{takeRate},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update sys_dept_config
dept_id = #{deptId},
banner_url = #{bannerUrl},
single_money = #{singleMoney},
single_order_pay = #{singleOrderPay},
single_order_no_pay = #{singleOrderNoPay},
area_money = #{areaMoney},
area_order_pay = #{areaOrderPay},
area_order_no_pay = #{areaOrderNoPay},
city_money = #{cityMoney},
city_order_pay = #{cityOrderPay},
city_order_no_pay = #{cityOrderNoPay},
worker_rate = #{workerRate},
phone = #{phone},
plain_out_time = #{plainOutTime},
go_out_time = #{goOutTime},
going_out_time = #{goingOutTime},
going_out_time_rate = #{goingOutTimeRate},
golden_server = #{goldenServer},
month_rent = #{monthRent},
adapay_app_id = #{adapayAppId},
adapay_api_key = #{adapayApiKey},
adapay_mock_key = #{adapayMockApiKey},
adapay_rsa_private_key = #{adapayRsaPrivateKey},
adapay_max_retry_times = #{adapayMaxRetryTimes},
wx_app_id = #{wxAppId},
wx_secret = #{wxSecret},
serv_wx_app_id = #{servWxAppId},
serv_wx_secret = #{servWxSecret},
take_rate = #{takeRate},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where sys_dept_config_id = #{sysDeptConfigId}
delete from sys_dept_config where sys_dept_config_id = #{sysDeptConfigId}
delete from sys_dept_config where sys_dept_config_id in
#{sysDeptConfigId}