--更新灰度许可API预置
--主表
DELETE FROM T_OPEN_APISERVICE WHERE FID = 1899492228817077248;
INSERT INTO T_OPEN_APISERVICE(FID,FAPISERVICETYPE,FADDEDINFO,FAPIDEFTYPE,FOPERATION,FMASTERID,FORDER_BY_HIDE,FMUSTPARAM,FCREATETIME,FSTDMODIFYTIME,FPRESCRIPT,ISFAILCONTINUE,FREQTYPE,FDISABLERID,FBIZOBJECT,FALLOWGUEST,FISVID,FOUTPUTPARAM,FFILTERPARAM,FCU_LIMIT_TAC,FISOUTPARAWITHOUTSTATUS,FREPTYPE,FPRESCRIPT_TAG,FISDYOBJRESULT,FCOSMICVER,FMODIFIERID,FPLUGIN,FWSMETHODNAME,FURLFORMAT,FCUSTOMMETHOD,FISFAILCONTINUE,FISKSQL,FINPUTPARAM,FCONTENTTYPE,FSELECTPARAM,FMETHODNAME,FENABLE,FVERSION,FADDEDINFO_TAG,FNAMESPACE,FDISABLEDATE,FURL,FSAVEOPERATION,FSTATUS,FNUMBER,FCUSTOMSORT,FMESSAGETYPE,FMODIFYTIME,FCLASSNAME,FAPPID,FHTTPMETHOD,FCREATORID) VALUES (1899492228817077248,'2',' ','2',NULL,1899492228817077248,' ',' ',{ts'2024-03-05  00:00:00'},{ts'2024-08-22  00:00:00'},' ','1',NULL,NULL,' ','0','kingdee','updateResponse',' ',0,'0',NULL,NULL,'0','6.0.15',1,' ',' ','/v2/secm/graylicense/update',NULL,'0','0','update','0',' ','update','1','2',NULL,'http://api.license.bos.kd',NULL,NULL,NULL,'C','graylicense/update',1518896355605527552,NULL,{ts'2024-08-22  00:00:00'},'kd.bos.license.api.GrayLicenseController','0XWTKVOQW+ML','1',1); 

--多语言表
DELETE FROM T_OPEN_APISERVICE_L WHERE FID=1899492228817077248;
INSERT INTO T_OPEN_APISERVICE_L(FPKID,FID,FLOCALEID,FDISCRIPTION,FNAME) VALUES ('3ZA9ZCQCRX2=',1899492228817077248,'zh_CN','灰度许可更新API','更新灰度许可'); 

-- 请求头
DELETE FROM t_open_apiheaderentry WHERE FENTRYID = 1899492228858374144;
INSERT INTO t_open_apiheaderentry(FENTRYID,FID,FHEADERNAME,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1899492228858374144,1899492228817077248,'Content-Type',1,'application/json','内容格式'); 
DELETE FROM t_open_apiheaderentry WHERE FENTRYID = 1899492228858374145;
INSERT INTO t_open_apiheaderentry(FENTRYID,FID,FHEADERNAME,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1899492228858374145,1899492228817077248,'accesstoken',2,'获取的accesstoken值','请求令牌'); 
DELETE FROM t_open_apiheaderentry WHERE FENTRYID = 1899492228858374146;
INSERT INTO t_open_apiheaderentry(FENTRYID,FID,FHEADERNAME,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1899492228858374146,1899492228817077248,'Idempotency-Key',3,'唯一的requestId','非必传参数，防止接口被重复调用'); 

-- 请求体(无请求体)

-- 返回参数
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1899491513100396544;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1899491513100396544,1899492228817077248,'boolean','0','false','status','1',0,'0',1,'状态：true - 成功, false - 失败','1',' ',' '); 
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1899491513109431296;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1899491513109431296,1899492228817077248,'String','0','"7Duhb"','errorCode','0',0,'0',2,'错误代码','1',' ',' '); 
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1899491513117173760;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1899491513117173760,1899492228817077248,'String','0','"G3K7J"','message','0',0,'0',3,'错误信息','1',' ',' '); 
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1899491513117819904;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1899491513117819904,1899492228817077248,'Boolean','0','false','data','0',0,'0',4,'data','1',' ',' '); 


--法人分配许可API预置
--主表
DELETE FROM T_OPEN_APISERVICE WHERE FID = 1751471553935172608;
INSERT INTO T_OPEN_APISERVICE(FID,FAPISERVICETYPE,FADDEDINFO,FAPIDEFTYPE,FOPERATION,FMASTERID,FORDER_BY_HIDE,FMUSTPARAM,FCREATETIME,FSTDMODIFYTIME,FPRESCRIPT,ISFAILCONTINUE,FREQTYPE,FDISABLERID,FBIZOBJECT,FALLOWGUEST,FISVID,FOUTPUTPARAM,FFILTERPARAM,FCU_LIMIT_TAC,FISOUTPARAWITHOUTSTATUS,FREPTYPE,FPRESCRIPT_TAG,FISDYOBJRESULT,FCOSMICVER,FMODIFIERID,FPLUGIN,FWSMETHODNAME,FURLFORMAT,FCUSTOMMETHOD,FISFAILCONTINUE,FISKSQL,FINPUTPARAM,FCONTENTTYPE,FSELECTPARAM,FMETHODNAME,FENABLE,FVERSION,FADDEDINFO_TAG,FNAMESPACE,FDISABLEDATE,FURL,FSAVEOPERATION,FSTATUS,FNUMBER,FCUSTOMSORT,FMESSAGETYPE,FMODIFYTIME,FCLASSNAME,FAPPID,FHTTPMETHOD,FCREATORID) VALUES (1751471553935172608,'2',' ','2',NULL,1751471553935172608,' ',' ',{ts'2018-08-08  00:00:00'},{ts'2018-08-08  00:00:00'},' ','1',NULL,NULL,' ','0','kingdee','legalPersonAllocateResponse',' ',0,'0',NULL,NULL,'0','5.0.024',1,' ',' ','/v2/base/license/legalPersonAllocate',NULL,'0','0','legalPersonAllocate','0',' ','legalPersonAllocate','1','2',NULL,'http://api.license.bos.kd',NULL,NULL,NULL,'C','license/legalPersonAllocate',1518896355605527552,NULL,{ts'2018-08-08  00:00:00'},'kd.bos.license.api.LicenseLegalPersonAllocate','83bfebc8000037ac','1',1); 

--多语言表
DELETE FROM T_OPEN_APISERVICE_l WHERE FID = 1751471553935172608;
INSERT INTO T_OPEN_APISERVICE_l(FPKID,FID,FLOCALEID,FDISCRIPTION,FNAME) VALUES ('3H43Y8WTH5V5',1751471553935172608,'zh_CN',' ','法人公司许可分配API'); 

-- 请求头
DELETE FROM t_open_apiheaderentry WHERE FENTRYID = 1751471554497085442;
INSERT INTO t_open_apiheaderentry(FENTRYID,FID,FHEADERNAME,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1751471554497085442,1751471553935172608,'Idempotency-Key',3,'唯一的requestId','非必传参数，防止接口被重复调用'); 
DELETE FROM t_open_apiheaderentry WHERE FENTRYID = 1751471554497085441;
INSERT INTO t_open_apiheaderentry(FENTRYID,FID,FHEADERNAME,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1751471554497085441,1751471553935172608,'accesstoken',2,'获取的accesstoken值','请求令牌'); 
DELETE FROM t_open_apiheaderentry WHERE FENTRYID = 1751471554497085440;
INSERT INTO t_open_apiheaderentry(FENTRYID,FID,FHEADERNAME,FSEQ,FHEADERVALUE,FHEADERDES) VALUES (1751471554497085440,1751471553935172608,'Content-Type',1,'application/json','内容格式'); 

-- 请求体
DELETE FROM t_open_apibodyentry WHERE FENTRYID = 1751471003684326400;
INSERT INTO t_open_apibodyentry(FENTRYID,FID,FEXAMPLE,FBODY_DATA_MODEL,FIS_UNIQUE_KEY,FOBJPROPNAME,FIS_BODY_CUSTOM,FIS_MUL_VALUE,FMUST,FBODY_LEVEL,FPARAMTYPE,FPARENTENTRYID,FBODYPARAMDES,FSEQ,FDEFAULTVALUE,FPARAMNAME) VALUES (1751471003684326400,1751471553935172608,'"1691991614005"',' ','0',' ','0','0','1','1','Long',0,'许可分组ID',2,' ','groupId'); 
DELETE FROM t_open_apibodyentry WHERE FENTRYID = 1751471003692818432;
INSERT INTO t_open_apibodyentry(FENTRYID,FID,FEXAMPLE,FBODY_DATA_MODEL,FIS_UNIQUE_KEY,FOBJPROPNAME,FIS_BODY_CUSTOM,FIS_MUL_VALUE,FMUST,FBODY_LEVEL,FPARAMTYPE,FPARENTENTRYID,FBODYPARAMDES,FSEQ,FDEFAULTVALUE,FPARAMNAME) VALUES (1751471003692818432,1751471553935172608,'230',' ','0',' ','0','0','1','1','int',0,'分配数量',3,' ','allocateCount'); 
DELETE FROM t_open_apibodyentry WHERE FENTRYID = 1751471003676041216;
INSERT INTO t_open_apibodyentry(FENTRYID,FID,FEXAMPLE,FBODY_DATA_MODEL,FIS_UNIQUE_KEY,FOBJPROPNAME,FIS_BODY_CUSTOM,FIS_MUL_VALUE,FMUST,FBODY_LEVEL,FPARAMTYPE,FPARENTENTRYID,FBODYPARAMDES,FSEQ,FDEFAULTVALUE,FPARAMNAME) VALUES (1751471003676041216,1751471553935172608,'"1691991613975"',' ','0',' ','0','0','1','1','Long',0,'法人公司ID',1,' ','legalPersonId'); 

-- 返回参数
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1751471003843709952;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1751471003843709952,1751471553935172608,'boolean','0','false','status','1',0,'0',1,'状态：true - 成功, false - 失败','1',' ',' '); 
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1751471003843813376;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1751471003843813376,1751471553935172608,'String','0','"L4uqb"','errorCode','0',0,'0',2,'错误代码','1',' ',' '); 
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1751471003852098560;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1751471003852098560,1751471553935172608,'String','0','"UUQtF"','message','0',0,'0',3,'错误信息','1',' ',' '); 
DELETE FROM t_open_apirespentry WHERE FENTRYID = 1751471003860590592;
INSERT INTO t_open_apirespentry(FENTRYID,FID,FRESPPARAMTYPE,FIS_RESP_CUSTOM,FRESPEXAMPLE,FRESPPARAMNAME,FRESPPARAMMUST,FPARENTENTRYID,FIS_RESP_MUL_VALUE,FSEQ,FRESPDES,FRESP_LEVEL,FRESP_DATA_MODEL,FRESPOBJPROPNAME) VALUES (1751471003860590592,1751471553935172608,'Boolean','0','false','data','0',0,'0',4,'data','1',' ',' '); 