-- API服务（历史）
DELETE FROM T_OPEN_APISERVICE WHERE FID = 1640501649913023488;
DELETE FROM T_OPEN_APISERVICE WHERE fnumber='openApi' and fappid='0QHC8968SM1T';
INSERT INTO T_OPEN_APISERVICE(FID,FAPISERVICETYPE,FCUSTOMMETHOD,FOPERATION,FURL,FMASTERID,FSTATUS,FCONTENTTYPE,FREPTYPE,FNUMBER,FCREATETIME,FMODIFIERID,FENABLE,FPLUGIN,FMODIFYTIME,FAPPID,FURLFORMAT,FHTTPMETHOD,FCREATORID,FREQTYPE,FALLOWGUEST,FBIZOBJECT) VALUES (1640501649913023488,'2',' ',' ',NULL,1640501649913023488,'C','0',NULL,'openApi',{ts'2023-03-14  00:00:00'},13466739,'1','[{"FPK":"","Type":0,"Description":"","RowKey":0,"ClassName":"kd.imc.rim.formplugin.message.OpenApiPlugin","DisplayName":"","Enabled":true,"BizAppId":""}]',{ts'2023-03-14  00:00:00'},'0QHC8968SM1T','/app/rim/openApi','1',13466739,NULL,'0',' ');

-- API服务（历史）·多语言表
DELETE FROM T_OPEN_APISERVICE_L WHERE FPKID = '34HGOGF7EAOE';
INSERT INTO T_OPEN_APISERVICE_L(FID,FDISCRIPTION,FPKID,FLOCALEID,FNAME) VALUES (1640501649913023488,' ','34HGOGF7EAOE','zh_CN','全电发票接口'); 

-- 请求头单据体
DELETE FROM T_OPEN_APIHEADERENTRY WHERE FENTRYID = 1640506636336738304;
INSERT INTO T_OPEN_APIHEADERENTRY(FID,FHEADERNAME,FENTRYID,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1640501649913023488,'Content-Type',1640506636336738304,1,'application/json','内容格式');
DELETE FROM T_OPEN_APIHEADERENTRY WHERE FENTRYID = 1640506636336738305;
INSERT INTO T_OPEN_APIHEADERENTRY(FID,FHEADERNAME,FENTRYID,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1640501649913023488,'accesstoken',1640506636336738305,2,'获取的accesstoken值','请求令牌');

-- 返回参数
DELETE FROM T_OPEN_APIRESPENTRY WHERE FENTRYID = 1640501649971639296;
INSERT INTO T_OPEN_APIRESPENTRY(FID,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FRESPPARAMTYPE,FENTRYID,FSEQ,FRESPEXAMPLE,FRESPDES) VALUES (1640501649913023488,'success','1',0,'Boolean',1640501649971639296,1,'false','请求状态');
DELETE FROM T_OPEN_APIRESPENTRY WHERE FENTRYID = 1640501649971639297;
INSERT INTO T_OPEN_APIRESPENTRY(FID,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FRESPPARAMTYPE,FENTRYID,FSEQ,FRESPEXAMPLE,FRESPDES) VALUES (1640501649913023488,'errorCode','1',0,'String',1640501649971639297,3,'0000','成功');
DELETE FROM T_OPEN_APIRESPENTRY WHERE FENTRYID = 1640501649971743745;
INSERT INTO T_OPEN_APIRESPENTRY(FID,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FRESPPARAMTYPE,FENTRYID,FSEQ,FRESPEXAMPLE,FRESPDES) VALUES (1640501649913023488,'message','1',0,'String',1640501649971743745,2,'msgType参数错误','提示语');
DELETE FROM T_OPEN_APIRESPENTRY WHERE FENTRYID = 1640501649971743746;
INSERT INTO T_OPEN_APIRESPENTRY(FID,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FRESPPARAMTYPE,FENTRYID,FSEQ,FRESPEXAMPLE,FRESPDES) VALUES (1640501649913023488,'data','0',0,'Object',1640501649971743746,4,' ',' ');


