|
@@ -132,7 +132,7 @@
|
|
|
|
|
|
|
|
<select id="getDistributorKey" resultType="com.alibaba.fastjson.JSONObject">
|
|
<select id="getDistributorKey" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
select changdu_account_id as 'changduAccountId',max(account_name) as 'accountName',
|
|
select changdu_account_id as 'changduAccountId',max(account_name) as 'accountName',
|
|
|
- max(distributor_id) as 'distributorId', max(api_key) as 'apiKey'
|
|
|
|
|
|
|
+ min(distributor_id) as 'distributorId', max(api_key) as 'apiKey'
|
|
|
from deepthink.changdu_distributor_config c
|
|
from deepthink.changdu_distributor_config c
|
|
|
join deepthink.changdu_account_config a
|
|
join deepthink.changdu_account_config a
|
|
|
on c.changdu_account_id = a.account_id
|
|
on c.changdu_account_id = a.account_id
|
|
@@ -140,12 +140,13 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<insert id="insertChangduDistributorApp">
|
|
<insert id="insertChangduDistributorApp">
|
|
|
- replace into deepthink.changdu_distributor_app (distributor_id,app_id)
|
|
|
|
|
|
|
+ replace into deepthink.changdu_distributor_app (distributor_id,app_id,app_type)
|
|
|
values
|
|
values
|
|
|
<foreach collection="collection" item="item" separator=",">
|
|
<foreach collection="collection" item="item" separator=",">
|
|
|
(
|
|
(
|
|
|
#{item.distributorId},
|
|
#{item.distributorId},
|
|
|
- #{item.appId}
|
|
|
|
|
|
|
+ #{item.appId},
|
|
|
|
|
+ #{item.appType}
|
|
|
)
|
|
)
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</insert>
|
|
</insert>
|
|
@@ -165,7 +166,7 @@
|
|
|
</insert>
|
|
</insert>
|
|
|
<insert id="insertChannelAccountInfo">
|
|
<insert id="insertChannelAccountInfo">
|
|
|
replace into deepthink.channel_account_info
|
|
replace into deepthink.channel_account_info
|
|
|
- (channel_account_id,channel_account_name,channel_app_id,channel_app_name,business_type,secret_key)
|
|
|
|
|
|
|
+ (channel_account_id,channel_account_name,channel_app_id,channel_app_name,channel_app_type,business_type,secret_key)
|
|
|
values
|
|
values
|
|
|
<foreach collection="collection" item="item" separator=",">
|
|
<foreach collection="collection" item="item" separator=",">
|
|
|
(
|
|
(
|
|
@@ -173,6 +174,7 @@
|
|
|
#{item.distributorName},
|
|
#{item.distributorName},
|
|
|
#{item.appId},
|
|
#{item.appId},
|
|
|
#{item.appName},
|
|
#{item.appName},
|
|
|
|
|
+ #{item.appType},
|
|
|
#{item.channelType},
|
|
#{item.channelType},
|
|
|
#{item.apiKey}
|
|
#{item.apiKey}
|
|
|
)
|
|
)
|