UPDATE tb_agent SET appid = #{authorizerAppId}, pub_name = #{name, jdbcType=VARCHAR}
WHERE id = #{id}
UPDATE tb_agent SET xcx_app_id = #{authorizerAppId} WHERE id = #{id}
SELECT a.id, a.group_id, a.group_name, a.outlet_id, a.outlet_name, a.sale_num, a.pub_name, a.agent_id,
a.agent_logo, a.agent_name, a.appid, a.appSecret, a.mch_id, a.deposit, appid mch_app_id, a.mch_app_secret, a.share_title,a.share_content,agent_rule
FROM tb_agent a
WHERE a.agent_id = #{id} AND a.state = '1'
SELECT a.id, a.group_id, a.group_name, a.outlet_id, a.outlet_name, a.sale_num,a.pub_name, a.agent_id, a.xcx_app_id,
a.agent_logo, a.agent_name, a.appid, a.appSecret, a.mch_id, a.deposit, appid mch_app_id, a.mch_app_secret, a.share_title,a.share_content
FROM tb_agent a
WHERE a.id = #{id} AND a.state = '1'
SELECT a.id, a.group_id, a.group_name, a.outlet_id, a.outlet_name, a.sale_num,a.pub_name, a.agent_id, a.xcx_app_id,
a.agent_logo, a.agent_name, a.appid, a.appSecret, a.mch_id, a.deposit, appid mch_app_id, a.mch_app_secret, a.share_title,a.share_content
FROM tb_agent a
WHERE a.appid = #{appId} AND a.state = '1'
select count(1)
from tb_sales a,tb_agent b
where a.agent_id = #{agentId} and a.agent_id=b.agent_id and b.state = '1'
select a.id,a.agent_id,a.integ,a.agent_name
from tb_agent a
where a.agent_id = #{agentId} and a.state = '1'