update custody_tenant_escrow_authorization_info set app_key='P100086999', app_secret='rPdf2ia4YNkUt2cRviYjRA==&mUBugR42' where trust_no='36';

DELETE
FROM custody_fund_net_value_info
WHERE trust_no = '36'
AND fund_name LIKE '%号'
AND net_value_date = '2022-04-28';

-- 修改权限表的 appsecret字典容量
alter table custody_tenant_escrow_authorization_info modify column app_secret varchar(2000);

-- 招商 一村 appKey appSecret
update custody_tenant_escrow_authorization_info set app_key='client_ShangHaiYiCunTouZi' , app_secret='{"compyid":"20f45d0f27789868e055000000000001","uapUserNo":"client_ShangHaiYiCunTouZi","unzipCode":"yctz123","uapServerType":"668","uapLicenceKey":"2170f2aa-f86f-422f-910c-be87fa169fa8","uapRequestId":"20211109000001","url":"https://tgjjapi.newone.com.cn/v1/request","pxfFilePath":"/上海一村投资管理有限公司.pfx"}' where trust_no='25';

-- 国君 一村 appKey appSecret
update custody_tenant_escrow_authorization_info set app_key='cqhV010MaLfLD7WzkbdN' , app_secret='{"appkey":"cqhV010MaLfLD7WzkbdN","appSecret":"k0EAt5KUEudAY1BLXm8ocsd3XE3QJo","managerId":"A10011434","url":"https://pb.gtja.com/pbapi/api/"}' where trust_no='31';

-- 海通
delete  from custody_cust_share_info where trust_no = 21;
delete from custody_fund_profit_info where trust_no =21;
delete from custody_cust_share_detail_info where trust_no =21;
-- delete from custody_invoke_record  where trust_no = 21 and (invoke_type like '%/jjtgb/ta/queryCustShareInfo%' or invoke_type like "%/jjtgb/ta/queryProfitCurrent%" or invoke_type like "%/jjtgb/ta/queryShareDetail%" );


-- 国泰君安
delete from custody_fund_info where trust_no = 31;
delete from custody_cust_share_info where trust_no =31;
delete from custody_fund_profit_info where trust_no = 31;
delete from custody_cust_share_seq_info where trust_no = 31;
-- delete from custody_invoke_record where trust_no = 31 and (invoke_type like '%queryService.fundinfo%' or invoke_type like "%queryService.shareholderinfo%" or invoke_type like "%queryService.fundprofit%"  or invoke_type like "%queryService.shareChangeInfo%" );

-- 中信
delete from custody_fund_profit_info where trust_no = 35;
delete from custody_cust_share_info where trust_no = 35;
delete from custody_cust_share_detail_info where trust_no = 35;
delete from custody_tg_account_seq_info where trust_no = 35;
delete from custody_fund_net_value_info where trust_no = 35;
delete from custody_account_info where trust_no = 35;
-- delete from custody_invoke_record where trust_no = 35 and (invoke_type like '%/v1/ta/queryTaProfitForApi%' or invoke_type like "%/v1/ta/ShareQueryForApi%" or invoke_type like "%/v1/ta/queryShareDetailForApi%"  or invoke_type like "%/v1/cs/queryTgAccountCurrentFlowForApi%" or invoke_type like "%/v1/cs/queryTgAccountHistoryFlowForApi%" );

-- 招商
delete from custody_cust_share_info where trust_no = 25;
-- delete from custody_invoke_record where trust_no = 25 and (invoke_type like '%1004%' );

--一村兴业
delete from custody_cust_share_info where trust_no = 36;
delete from custody_fund_trade_info where trust_no =36;
delete from custody_fund_profit_info where trust_no =36;