insert into t_advertiser
industry_id,
agent_id,
operator_id,
name,
reg_name,
homePage,
contacts,
tel,
email,
memo,
balance,
cpi_path,
licence_path,
id_path,
org_path,
check_account,
check_status,
check_memo,
admin_id,
status,
updated
#{industryId},
#{agentId},
#{operatorId},
#{name},
#{regName},
#{homePage},
#{contacts},
#{tel},
#{email},
#{memo},
#{balance},
#{cpiPath},
#{licencePath},
#{idPath},
#{orgPath,jdbcType=VARCHAR},
#{checkAccount},
#{checkStatus},
#{checkMemo},
#{adminId},
#{status},
#{updated},
update t_advertiser set
industry_id = #{industryId},
agent_id = #{agentId},
operator_id = #{operatorId},
name = #{name},
reg_name = #{regName},
homePage = #{homePage},
contacts = #{contacts},
tel = #{tel},
email = #{email},
memo = #{memo},
balance = #{balance},
cpi_path = #{cpiPath},
licence_path = #{licencePath},
id_path = #{idPath},
org_path = #{orgPath},
check_account = #{checkAccount},
check_status = #{checkStatus},
check_memo = #{checkMemo},
admin_id = #{adminId},
status = #{status},
updated = #{updated,jdbcType=TIMESTAMP}
where id = #{id}
t_advertiser.id as id,
t_advertiser.agent_id as agentId,
industry_id as industryId,
t_advertiser.name as name,
reg_name as regName,
homepage as homePage,
t_advertiser.contacts,
t_advertiser.tel as tel,
t_advertiser.email as email,
t_advertiser.balance as balance,
t_advertiser.status as status,
t_advertiser.memo as memo,
t_advertiser.cpi_path as cpiPath,
t_advertiser.licence_path as licencePath,
t_advertiser.id_path as idPath,
t_advertiser.org_path as orgPath,
t_advertiser.check_account as checkAccount,
t_advertiser.check_status as checkStatus,
t_advertiser.check_memo as checkMemo,
t_advertiser.admin_id as adminId,
t_advertiser.updated as updated
insert into t_advertiser(industry_id,name,reg_name,homepage,contacts,tel,email,memo
,cpi_path,licence_path,id_path,org_path,check_memo,updated)
values(#{industryId},#{name},#{regName},#{homePage},#{contacts},#{tel}, #{email},#{memo}
,#{cpiPath},#{licencePath},#{idPath}, #{orgPath},#{checkMemo},NOW())
insert into t_advertiser(industry_id,name,reg_name,homepage,contacts,tel,email,updated,memo)
values(#{industryId},#{name},#{regName},#{homePage},#{contacts},#{tel}, #{email},#{updated},#{memo})
update t_advertiser
set industry_id = #{industryId},name = #{name},reg_name = #{regName},homepage = #{homePage},contacts = #{contacts},tel=#{tel}
,email = #{email},memo = #{memo},updated = NOW()
,cpi_path = #{cpiPath},licence_path = #{licencePath},id_path = #{idPath},org_path = #{orgPath},check_memo = #{checkMemo}
where t_advertiser.id=#{id}
update t_advertiser
set industry_id = #{industryId},name = #{name},reg_name = #{regName},homepage = #{homePage},contacts = #{contacts},tel=#{tel}
,email = #{email},updated = #{updated},memo = #{memo}
where t_advertiser.id=#{id}
update t_advertiser
set status = #{status},updated = #{modifyDate}
where t_advertiser.id in
#{advertiserId}
update t_adgroup
set t_adgroup.supdated= NOW()
where t_adgroup.advertiser_id in
#{advertiserId}