Oracle脚本

pull/186/MERGE^2
dxfeng 3 years ago
parent 16a27d6735
commit c7a9c11d37

@ -23,12 +23,12 @@ where nvl(forbidden_tag,0)<>1 and nvl(delete_type,0)<>1
/
CREATE OR REPLACE FUNCTION newid RETURN VARCHAR2
IS
as
guid VARCHAR2 (50);
BEGIN
guid := (RAWTOHEX(sys_guid()));
RETURN substr(guid,1,8)||'-'||substr(guid,9,4)||'-'||substr(guid,13,4)||'-'||substr(guid,17,4)||'-'||substr(guid,21,12);
END newid
END;
/
@ -51,7 +51,7 @@ declare
begin
select min(id) into orgid from hrmresource;
cubeuuid1:=RAWTOHEX(sys_guid());
cubeuuid1:=newid();
modename :='聚才林人事模块';
select count(*) into cnt from modetreefield where treeFieldName=modename;
@ -66,7 +66,7 @@ else
select id into appid1 from modetreefield where cubeuuid=cubeuuid1;
end if;
uuid :=lower(replace(RAWTOHEX(sys_guid()),'-',''));
uuid :=lower(replace(newid(),'-',''));
insert into mode_customtree(treename,creater, createdate, createtime, rootname, defaultaddress,
showtype, isselsub, isonlyleaf, appid, treecode, isRefreshTree, isshowsearchtab,
searchbrowserid, isQuickSearch, treeremark, combintree, combintreeway, defaulthideleft,
@ -77,7 +77,7 @@ insert into mode_customtreedetail(mainid, nodename, nodedesc, sourcefrom, source
hreftype, hrefid, hreftarget, hrefrelatefield, nodeicon, supnode, supnodefield, nodefield, showorder,
iconField, dataorder, datacondition, hrefField, rootids, isshowrootnode, isContainsSub)
values(treeid,'职等职级','',2,0,'v_jcl_zdzj','fid','fparentid','fname',2,0,'#','','',0,'','',1,'','fno','','','',1,0);
uuid :=lower(replace(RAWTOHEX(sys_guid()),'-',''));
uuid :=lower(replace(newid(),'-',''));
insert into mode_customtree(treename,creater, createdate, createtime, rootname, defaultaddress,
showtype, isselsub, isonlyleaf, appid, treecode, isRefreshTree, isshowsearchtab,
searchbrowserid, isQuickSearch, treeremark, combintree, combintreeway, defaulthideleft,

Loading…
Cancel
Save