global_funding(支付).pdma.json 347KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211
  1. {
  2. "name": "global_funding(支付)",
  3. "describe": "global_funding(支付)",
  4. "avatar": "",
  5. "version": "4.6.0",
  6. "createdTime": "2024-2-26 20:14:20",
  7. "updatedTime": "2024-3-1 16:23:16",
  8. "dbConns": [],
  9. "profile": {
  10. "default": {
  11. "db": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  12. "dbConn": "0FAC270E-2DD4-4BF5-A0E3-4DF927EB4AEC",
  13. "entityInitFields": [
  14. {
  15. "defKey": "TENANT_ID",
  16. "defName": "租户号",
  17. "comment": "",
  18. "type": "",
  19. "len": 32,
  20. "scale": "",
  21. "primaryKey": false,
  22. "notNull": false,
  23. "autoIncrement": false,
  24. "defaultValue": "",
  25. "hideInGraph": true,
  26. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  27. "refDict": "",
  28. "uiHint": "",
  29. "id": "ADB3AD14-6603-43E2-8261-114E32442B5B"
  30. },
  31. {
  32. "defKey": "REVISION",
  33. "defName": "乐观锁",
  34. "comment": "",
  35. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  36. "type": "",
  37. "len": "",
  38. "scale": "",
  39. "primaryKey": false,
  40. "notNull": false,
  41. "autoIncrement": false,
  42. "defaultValue": "",
  43. "hideInGraph": true,
  44. "refDict": "",
  45. "uiHint": "",
  46. "id": "92BF430E-01FA-4AEF-944F-25A142632654"
  47. },
  48. {
  49. "defKey": "CREATED_BY",
  50. "defName": "创建人",
  51. "comment": "",
  52. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  53. "type": "",
  54. "len": 32,
  55. "scale": "",
  56. "primaryKey": false,
  57. "notNull": false,
  58. "autoIncrement": false,
  59. "defaultValue": "",
  60. "hideInGraph": true,
  61. "refDict": "",
  62. "uiHint": "",
  63. "id": "C8BE2C7A-8251-4ADD-BB4F-411C5754DA62"
  64. },
  65. {
  66. "defKey": "CREATED_TIME",
  67. "defName": "创建时间",
  68. "comment": "",
  69. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  70. "type": "",
  71. "len": "",
  72. "scale": "",
  73. "primaryKey": false,
  74. "notNull": false,
  75. "autoIncrement": false,
  76. "defaultValue": "",
  77. "hideInGraph": true,
  78. "refDict": "",
  79. "uiHint": "",
  80. "id": "4E471FD6-3E73-4A90-B660-51598A482409"
  81. },
  82. {
  83. "defKey": "UPDATED_BY",
  84. "defName": "更新人",
  85. "comment": "",
  86. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  87. "type": "",
  88. "len": 32,
  89. "scale": "",
  90. "primaryKey": false,
  91. "notNull": false,
  92. "autoIncrement": false,
  93. "defaultValue": "",
  94. "hideInGraph": true,
  95. "refDict": "",
  96. "uiHint": "",
  97. "id": "0DC24AA9-4CD0-45D8-95CF-FA546BE343AB"
  98. },
  99. {
  100. "defKey": "UPDATED_TIME",
  101. "defName": "更新时间",
  102. "comment": "",
  103. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  104. "type": "",
  105. "len": "",
  106. "scale": "",
  107. "primaryKey": false,
  108. "notNull": false,
  109. "autoIncrement": false,
  110. "defaultValue": "",
  111. "hideInGraph": true,
  112. "refDict": "",
  113. "uiHint": "",
  114. "id": "09F64AC4-4DEE-428F-AF64-4C103884E1AC"
  115. }
  116. ],
  117. "entityInitProperties": {
  118. "partitioned by": "(date string)",
  119. "row format delimited": "",
  120. "fields terminated by ','": "",
  121. "collection items terminated by '-'": "",
  122. "map keys terminated by ':'": "",
  123. "store as textfile;": ""
  124. }
  125. },
  126. "javaHome": "",
  127. "sql": {
  128. "delimiter": ""
  129. },
  130. "dataTypeSupports": [
  131. {
  132. "defKey": "MYSQL",
  133. "id": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E"
  134. },
  135. {
  136. "defKey": "ORACLE",
  137. "id": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542"
  138. },
  139. {
  140. "defKey": "SQLServer",
  141. "id": "BFC87171-C74F-494A-B7C2-76B9C55FACC9"
  142. },
  143. {
  144. "defKey": "PostgreSQL",
  145. "id": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022"
  146. },
  147. {
  148. "defKey": "DB2",
  149. "id": "89504F5D-94BF-4C9E-8B2E-44F37305FED5"
  150. },
  151. {
  152. "defKey": "DM",
  153. "id": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307"
  154. },
  155. {
  156. "defKey": "GaussDB",
  157. "id": "592C7013-143D-4E7B-AF64-0D7BF1E28230"
  158. },
  159. {
  160. "defKey": "Kingbase",
  161. "id": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A"
  162. },
  163. {
  164. "defKey": "GBase",
  165. "id": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A"
  166. },
  167. {
  168. "defKey": "MaxCompute",
  169. "id": "11D1FB71-A587-4217-89BA-611B8A1F83E0"
  170. },
  171. {
  172. "defKey": "SQLite",
  173. "id": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1"
  174. },
  175. {
  176. "defKey": "Hive",
  177. "id": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2"
  178. },
  179. {
  180. "defKey": "JAVA",
  181. "id": "797A1496-D649-4261-89B4-544132EC3F36"
  182. },
  183. {
  184. "defKey": "JavaMybatis",
  185. "id": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B"
  186. },
  187. {
  188. "defKey": "JavaMybatisPlus",
  189. "id": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073"
  190. },
  191. {
  192. "defKey": "C#",
  193. "id": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30"
  194. },
  195. {
  196. "defKey": "Golang",
  197. "id": "B91D99E0-9B7C-416C-8737-B760957DAF09"
  198. },
  199. {
  200. "defKey": "Rust",
  201. "id": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB"
  202. },
  203. {
  204. "defKey": "Doris",
  205. "id": "483F9346-C99E-4014-A1D2-A554606BD8A3"
  206. }
  207. ],
  208. "codeTemplates": [
  209. {
  210. "type": "appCode",
  211. "applyFor": "797A1496-D649-4261-89B4-544132EC3F36",
  212. " JpaBean": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport javax.persistence.*;\nimport java.io.Serializable;\nimport java.util.Date;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\n@Table(name=\"{{=it.entity.defKey}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n {{? field.primaryKey }}\n @Id\n @GeneratedValue\n {{?}}\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public {{=field.type}} get{{=it.func.camel(field.defKey,true)}}(){\n return this.{{=it.func.camel(field.defKey,false)}};\n }\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public void set{{=it.func.camel(field.defKey,true)}}({{=field.type}} {{= it.func.camel(field.defKey,false) }}){\n this.{{=it.func.camel(field.defKey,false)}}={{=it.func.camel(field.defKey,false)}};\n }\n{{~}}\n}"
  213. },
  214. {
  215. "type": "appCode",
  216. "applyFor": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30",
  217. "Default": "using System;\nusing System.Collections.Generic;\n\n$blankline\n{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n}}\n/*\n * @author : http://www.chiner.com.cn\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\n */\nnamespace PDManer.Application\n{\n public partial class {{=it.func.camel(it.entity.defKey,true) }}\n {\n \n {{~it.entity.fields:field:index}}\n /// <summary>\n /// {{=it.func.join(field.defName,field.comment,';')}}\n /// </summary>\n public {{=field.type}} {{=it.func.camel(field.defKey,true)}} { get; set; }\n $blankline\n {{~}}\n \n }\n}",
  218. "SqlSugar": "using System;\nusing System.Collections.Generic;\nusing SqlSugar;\n\n$blankline\n{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n var sqlSugartable='[SugarTable(\"{{=it.entity.defKey}}\", TableDescription = \"{{=it.func.join(it.entity.defName,it.entity.comment,';')}}\")]';\n}}\n/*\n * @author : xkdong@163.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\n */\nnamespace Model.DBModel\n{\n /// <summary>\n /// {{=it.func.join(it.entity.defName,it.entity.comment,';')}}\n /// </summary>\n {{=sqlSugartable}}\n public class {{=it.entity.defKey}}\n {\n {{~it.entity.fields:field:index}}\n /// <summary>\n /// {{=it.func.join(field.defName,field.comment,';')}}\n /// </summary>\n {{? field.primaryKey }}\n [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]\n {{?}}\n public {{=field.type}} {{=it.func.camel(field.defKey,true)}}{ get; set; }\n $blankline\n {{~}}\n }\n}",
  219. "FreeSql": "using System;\r\nusing FreeSql.DataAnnotations;\r\n\r\n$blankline\r\n{{\r\n var today=new Date();\r\n var fullYear=today.getFullYear();\r\n var month=today.getMonth() + 1;\r\n var days=today.getDate();\r\n var nameSpace=it.entity.env.base.nameSpace +'.Models';\r\n \r\n function getTableAttribute(){ \r\n return `[Table(Name = \"${it.func.camel(it.entity.defKey,true)}\")]`;\r\n }\r\n \r\n function getIndexAttribute(){\r\n var indexAtrr=[]; \r\n it.entity.indexes.forEach(function(field){\r\n var fields=[];\r\n for(var item of field.fields){\r\n fields.push(it.func.camel(item.fieldDefKey,true)+(item.ascOrDesc!='A'?' desc':''));\r\n }\r\n index=`[Index(\"${field.defKey}\",\"${it.func.join(fields)}\",${field.unique})]`;\r\n indexAtrr.push(index)\r\n });\r\n return indexAtrr.join('\\n ');\r\n }\r\n \r\n function getColumnAttribute(){\r\n var atrrs=[];\r\n if(field.primaryKey) atrrs.push('IsPrimary = true');\r\n if(field.autoIncrement) atrrs.push('IsIdentity = true'); \r\n if(field.type=='string' && field.len ) atrrs.push(`StringLength = ${field.len}`);\r\n if(field.type=='string' && field.notNull ) atrrs.push('IsNullable = false');\r\n if(field.type=='decimal' && field.len ) atrrs.push(`Precision = ${field.len}`);\r\n if(field.type=='decimal' && field.scale ) atrrs.push(`Scale = ${field.scale}`);\r\n if(field.defKey=='Version' || field.defName=='乐观锁' || field.comment=='乐观锁') atrrs.push('IsVersion = true');\r\n return atrrs.length>0?`[Column(${it.func.join(atrrs)})]`:'';\r\n }\r\n \r\n function getProperty(){\r\n var stype = field.type ;\r\n if(field.notNull && field.type!='string') stype+='?'; \r\n var name = it.func.camel(field.defKey,true);\r\n var defaultValue = field.defaultValue ? '= '+field.defaultValue.replaceAll('\\'','\\\"')+';':'';\r\n return `public ${stype} ${name} { get; set; } ${defaultValue}`;\r\n }\r\n}}\r\n\r\n/*\r\n * @author : Alen\r\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\r\n * @desc : {{=it.func.join(it.entity.defName,it.entity.comment,'-')}}\r\n */\r\nnamespace {{=nameSpace}}\r\n{\r\n\t/// <summary>\r\n\t/// {{=it.func.join(it.entity.defName,it.entity.comment,';')}}\r\n\t/// </summary>\r\n {{=getTableAttribute()}}\r\n {{=getIndexAttribute()}}\r\n public partial class {{=it.func.camel(it.entity.defKey,true) }}\r\n {\r\n {{~it.entity.fields:field:index}}\r\n /// <summary>\r\n /// {{=it.func.join(field.defName,field.comment,';')}}\r\n /// </summary>\r\n {{=getColumnAttribute()}}\r\n {{=getProperty()}}\r\n $blankline\r\n {{~}}\r\n }\r\n}\r\n"
  220. },
  221. {
  222. "applyFor": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B",
  223. "type": "appCode",
  224. "Controller": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.controller;\n$blankline\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiOperation;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport org.springframework.http.ResponseEntity;\nimport org.springframework.web.bind.annotation.*;\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表控制层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Api(tags = \"{{=it.entity.defName}}对象功能接口\")\n@RestController\n@RequestMapping(\"/{{=it.func.camel(it.entity.defKey,false)}}\")\npublic class {{=beanClass}}Controller{\n @Autowired\n private {{=serviceClass}} {{=serviceVarName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n @ApiOperation(\"通过ID查询单条数据\")\n @GetMapping(\"{{{=it.func.camel(pkVarName,false)}}}\")\n public ResponseEntity<{{=beanClass}}> queryById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.queryById({{=pkVarName}}));\n }\n $blankline\n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n @ApiOperation(\"分页查询\")\n @GetMapping\n public ResponseEntity<Page<{{=beanClass}}>> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n return ResponseEntity.ok({{=serviceVarName}}.paginQuery({{=beanVarName}}, pageRequest));\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"新增数据\")\n @PostMapping\n public ResponseEntity<{{=beanClass}}> add({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.insert({{=beanVarName}}));\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @ApiOperation(\"更新数据\")\n @PutMapping\n public ResponseEntity<{{=beanClass}}> edit({{=beanClass}} {{=beanVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.update({{=beanVarName}}));\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n @ApiOperation(\"通过主键删除数据\")\n @DeleteMapping\n public ResponseEntity<Boolean> deleteById({{=pkDataType}} {{=pkVarName}}){\n return ResponseEntity.ok({{=serviceVarName}}.deleteById({{=pkVarName}}));\n }\n}",
  225. "Service": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.service;\n$blankline\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageRequest;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务接口\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\npublic interface {{=serviceClass}}{\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n \n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest);\n\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} insert({{=beanClass}} {{=beanVarName}});\n\n \n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n {{=beanClass}} update({{=beanClass}} {{=beanVarName}});\n\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n boolean deleteById({{=pkDataType}} {{=pkVarName}});\n}",
  226. "ServiceImpl": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkVarNameU = \"UndefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkVarNameU = it.func.camel(field.defKey,true);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n var mapperName = beanVarName+'Mapper';\n \n}}package {{=pkgName}}.service.impl;\n$blankline\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport org.springframework.data.domain.Page;\nimport org.springframework.data.domain.PageImpl;\nimport org.springframework.data.domain.PageRequest;\nimport {{=pkgName}}.entity.{{=beanClass}};\nimport {{=pkgName}}.mapper.{{=beanClass}}Mapper;\nimport {{=pkgName}}.service.{{=serviceClass}};\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务实现类\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Service\npublic class {{=serviceClass}}Impl implements {{=serviceClass}}{\n @Autowired\n private {{=beanClass}}Mapper {{=mapperName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n public {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}}){\n return {{=mapperName}}.queryById({{=pkVarName}});\n }\n $blankline\n /** \n * 分页查询\n *\n * @param {{=beanVarName}} 筛选条件\n * @param pageRequest 分页对象\n * @return 查询结果\n */\n public Page<{{=beanClass}}> paginQuery({{=beanClass}} {{=beanVarName}}, PageRequest pageRequest){\n long total = {{=mapperName}}.count({{=beanVarName}});\n return new PageImpl<>({{=mapperName}}.queryAllByLimit({{=beanVarName}}, pageRequest), pageRequest, total);\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} insert({{=beanClass}} {{=beanVarName}}){\n {{=mapperName}}.insert({{=beanVarName}});\n return {{=beanVarName}};\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n public {{=beanClass}} update({{=beanClass}} {{=beanVarName}}){\n {{=mapperName}}.update({{=beanVarName}});\n return queryById({{=beanVarName}}.get{{=pkVarNameU}}());\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 是否成功\n */\n public boolean deleteById({{=pkDataType}} {{=pkVarName}}){\n int total = {{=mapperName}}.deleteById({{=pkVarName}});\n return total > 0;\n }\n}",
  227. "Mapper": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.mapper;\n$blankline\nimport java.util.List;\nimport org.apache.ibatis.annotations.Mapper;\nimport org.apache.ibatis.annotations.Param;\nimport org.springframework.data.domain.Pageable;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表数据库访问层\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Mapper\npublic interface {{=beanClass}}Mapper{\n /** \n * 通过ID查询单条数据 \n *\n * @param {{=pkVarName}} 主键\n * @return 实例对象\n */\n {{=beanClass}} queryById({{=pkDataType}} {{=pkVarName}});\n \n /** \n * 分页查询指定行数据\n *\n * @param {{=beanVarName}} 查询条件\n * @param pageable 分页对象\n * @return 对象列表\n */\n List<{{=beanClass}}> queryAllByLimit({{=beanClass}} {{=beanVarName}}, @Param(\"pageable\") Pageable pageable);\n\n /** \n * 统计总行数\n *\n * @param {{=beanVarName}} 查询条件\n * @return 总行数\n */\n long count({{=beanClass}} {{=beanVarName}});\n\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 影响行数\n */\n int insert({{=beanClass}} {{=beanVarName}});\n\n /** \n * 批量新增数据\n *\n * @param entities List<{{=beanClass}}> 实例对象列表\n * @return 影响行数\n */\n int insertBatch(@Param(\"entities\") List<{{=beanClass}}> entities);\n \n /** \n * 批量新增或按主键更新数据\n *\n * @param entities List<{{=beanClass}}> 实例对象列表\n * @return 影响行数\n */\n int insertOrUpdateBatch(@Param(\"entities\") List<{{=beanClass}}> entities);\n \n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 影响行数\n */\n int update({{=beanClass}} {{=beanVarName}});\n\n /** \n * 通过主键删除数据\n *\n * @param {{=pkVarName}} 主键\n * @return 影响行数\n */\n int deleteById({{=pkDataType}} {{=pkVarName}});\n}",
  228. "Mapper.xml": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n var pkField = \"UNDEFINED_ID\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkField = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE mapper PUBLIC \"-//mybatis.org//DTD Mapper 3.0//EN\" \"http://mybatis.org/dtd/mybatis-3-mapper.dtd\">\n<mapper namespace=\"{{=pkgName}}.mapper.{{=beanClass}}Mapper\">\n <resultMap type=\"{{=pkgName}}.entity.{{=beanClass}}\" id=\"{{=beanClass}}Map\">\n {{~it.entity.fields:field:index}}\n <result property=\"{{=it.func.camel(field.defKey,false)}}\" column=\"{{=field.defKey}}\" jdbcType=\"{{=field.type}}\"/>\n {{~}}\n </resultMap>\n $blankline\n <!-- 通过ID查询单条数据 -->\n <select id=\"queryById\" resultMap=\"{{=beanClass}}Map\">\n select\n {{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}}\n from {{=it.entity.defKey}}\n where {{=pkField}} = #{{{=pkVarName}}}\n </select>\n $blankline\n <!--分页查询指定行数据-->\n <select id=\"queryAllByLimit\" resultMap=\"{{=beanClass}}Map\">\n select\n {{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}}\n from {{=it.entity.defKey}}\n <where>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n and {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}}\n </if>\n {{~}}\n </where>\n limit #{pageable.offset}, #{pageable.pageSize}\n </select>\n $blankline\n <!--统计总行数-->\n <select id=\"count\" resultType=\"java.lang.Long\">\n select count(1)\n from {{=it.entity.defKey}}\n <where>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n and {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}}\n </if>\n {{~}}\n </where>\n </select>\n $blankline\n <!--新增数据-->\n <insert id=\"insert\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values ({{=it.entity.fields.map(function(e,i){return '#{'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </insert>\n $blankline\n <!-- 批量新增数据 -->\n <insert id=\"insertBatch\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values\n <foreach collection=\"entities\" item=\"entity\" separator=\",\">\n ({{=it.entity.fields.map(function(e,i){return '#{entity.'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </foreach>\n </insert>\n $blankline\n <!-- 批量新增或按主键更新数据 -->\n <insert id=\"insertOrUpdateBatch\" keyProperty=\"{{=pkField}}\" useGeneratedKeys=\"true\">\n insert into {{=it.entity.defKey}}({{=it.entity.fields.map(function(e,i){return e.defKey}).join(',')}})\n values\n <foreach collection=\"entities\" item=\"entity\" separator=\",\">\n ({{=it.entity.fields.map(function(e,i){return '#{entity.'+it.func.camel(e.defKey,false)+'}'}).join(',')}})\n </foreach>\n on duplicate key update\n {{=it.entity.fields.map(function(e,i){return e.defKey + '=values('+e.defKey+')'}).join(',\\n\\t\\t')}}\n </insert>\n $blankline\n <!-- 更新数据 -->\n <update id=\"update\">\n update {{=it.entity.defKey}}\n <set>\n {{~it.entity.fields:field:index}}\n <if test=\"{{=it.func.camel(field.defKey,false)}} != null and {{=it.func.camel(field.defKey,false)}} != ''\">\n {{=field.defKey}} = #{{{=it.func.camel(field.defKey,false)}}},\n </if>\n {{~}}\n </set>\n where {{=pkField}} = #{{{=pkVarName}}}\n </update>\n $blankline\n <!--通过主键删除-->\n <delete id=\"deleteById\">\n delete from {{=it.entity.defKey}} where {{=pkField}} = #{{{=pkVarName}}}\n </delete>\n</mapper>\n\n",
  229. "Entity": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport java.io.Serializable;\nimport java.util.Date;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n\n{{~it.entity.fields:field:index}}\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public {{=field.type}} get{{=it.func.camel(field.defKey,true)}}(){\n return this.{{=it.func.camel(field.defKey,false)}};\n }\n /** {{=it.func.join(field.defName,field.comment,';')}} */\n public void set{{=it.func.camel(field.defKey,true)}}({{=field.type}} {{= it.func.camel(field.defKey,false) }}){\n this.{{=it.func.camel(field.defKey,false)}}={{=it.func.camel(field.defKey,false)}};\n }\n{{~}}\n}"
  230. },
  231. {
  232. "applyFor": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073",
  233. "type": "appCode",
  234. "Controller": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.controller;\n$blankline\nimport cn.dev33.satoken.util.SaResult;\nimport com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;\nimport com.baomidou.mybatisplus.core.metadata.IPage;\nimport com.baomidou.mybatisplus.extension.plugins.pagination.Page;\nimport java.util.List;\nimport com.njyunzhi.common.Constants;\nimport com.njyunzhi.common.util.StringUtil;\nimport com.njyunzhi.framework.log.OpLog;\nimport com.njyunzhi.application.BaseController;\nimport com.njyunzhi.framework.accesslimit.AccessLimit;\nimport io.swagger.annotations.Api;\nimport io.swagger.annotations.ApiOperation;\nimport io.swagger.annotations.ApiParam;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.validation.annotation.Validated;\nimport org.springframework.web.bind.annotation.*;\nimport com.njyunzhi.repository.entity.{{=beanClass}};\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表控制层\n * @author : http://njyunzhi.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Api(tags = \"{{=it.entity.defName}}对象功能接口\")\n@RestController\n@RequestMapping(\"/\")\npublic class {{=beanClass}}Controller extends BaseController {\n $blankline\n @Autowired\n private {{=serviceClass}} {{=serviceVarName}};\n $blankline\n /** \n * 通过ID查询单条数据 \n *\n * @param id 主键\n * @return 实例对象\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"查询单条数据\", desc = \"ID:\\{\\{#id\\}\\}\")\n @AccessLimit()\n @ApiOperation(\"通过ID查询单条数据\")\n @GetMapping(\"/{{=beanVarName}}/{id}\")\n public SaResult queryById(@ApiParam(\"对象ID\") @PathVariable {{=pkDataType}} id) throws Exception {\n return SaResult.data({{=serviceVarName}}.getById(id));\n }\n $blankline\n /** \n * 分页查询\n *\n * @param pageNum 当前页码\n * @param pageSize 每页条数\n * @return 查询结果\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"分页列表查询\")\n @AccessLimit()\n @ApiOperation(\"分页查询\")\n @GetMapping(\"/{{=beanVarName}}\")\n public SaResult list(@ApiParam(\"页码\") @RequestParam(value =\"pageNum\",defaultValue = \"1\") Integer pageNum,\n @ApiParam(\"单页数据量\") @RequestParam(value =\"pageSize\",defaultValue = \"10\") Integer pageSize,\n @ApiParam(\"正序排列\") @RequestParam(value =\"sortAsc\", required = false) String sortAsc,\n @ApiParam(\"倒序排列\") @RequestParam(value =\"sortDesc\", defaultValue = \"created_at\") String sortDesc) throws Exception {\n $blankline\n IPage<{{=beanClass}}> pg = new Page<>(pageNum, pageSize);\n QueryWrapper<{{=beanClass}}> queryWrapper = new QueryWrapper<>();\n queryWrapper.orderByAsc(StringUtil.isNotEmpty(sortAsc), StringUtil.humpToLine(sortAsc));\n queryWrapper.orderByDesc(StringUtil.isNotEmpty(sortDesc), StringUtil.humpToLine(sortDesc));\n IPage<{{=beanClass}}> result = {{=serviceVarName}}.page(pg, queryWrapper);\n $blankline\n return SaResult.data(result);\n }\n $blankline\n /** \n * 新增数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"新增数据\")\n @AccessLimit()\n @ApiOperation(\"新增数据\")\n @PostMapping(\"/{{=beanVarName}}\")\n public SaResult add(@ApiParam(\"对象实体\") @Validated @RequestBody {{=beanClass}} {{=beanVarName}}) throws Exception {\n {{=serviceVarName}}.save({{=beanVarName}});\n return SaResult.data({{=beanVarName}});\n }\n $blankline\n /** \n * 更新数据\n *\n * @param {{=beanVarName}} 实例对象\n * @return 实例对象\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"更新数据\")\n @AccessLimit()\n @ApiOperation(\"更新数据\")\n @PutMapping(\"/{{=beanVarName}}/{id}\")\n public SaResult edit(@ApiParam(\"对象实体\") @Validated @RequestBody {{=beanClass}} {{=beanVarName}},\n @ApiParam(\"对象ID\") @PathVariable {{=pkDataType}} id ) throws Exception {\n {{=serviceVarName}}.updateById({{=beanVarName}});\n return SaResult.data({{=beanVarName}});\n }\n $blankline\n /** \n * 通过主键删除数据\n *\n * @param id 主键\n * @return 是否成功\n */\n @OpLog(module = \"{{=it.entity.defName}}\", action = \"删除数据\", desc = \"ID:\\{\\{#id\\}\\}\")\n @AccessLimit()\n @ApiOperation(\"通过主键删除数据\")\n @DeleteMapping(\"/{{=beanVarName}}/{id}\")\n public SaResult deleteById(@ApiParam(\"对象ID\") @PathVariable {{=pkDataType}} id){\n {{=serviceVarName}}.removeById(id);\n return SaResult.data(\"success\");\n }\n}",
  235. "Service": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.service;\n$blankline\nimport com.baomidou.mybatisplus.extension.service.IService;\nimport com.njyunzhi.repository.entity.{{=beanClass}};\nimport com.njyunzhi.application.IBaseService;\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务接口\n * @author : http://njyunzhi.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\npublic interface {{=serviceClass}} extends IBaseService<{{=beanClass}}> {\n $blankline\n}",
  236. "ServiceImpl": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkVarNameU = \"UndefinedId\";\n var pkFieldKey = \"UNDEFINED\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkFieldKey = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkVarNameU = it.func.camel(field.defKey,true);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n var mapperName = beanVarName+'Mapper';\n \n}}package {{=pkgName}}.service.impl;\n$blankline\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport com.njyunzhi.application.BaseServiceImpl;\nimport com.njyunzhi.repository.entity.{{=beanClass}};\nimport com.njyunzhi.repository.mapper.{{=beanClass}}Mapper;\nimport {{=pkgName}}.service.{{=serviceClass}};\n$blankline\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表服务实现类\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Service\npublic class {{=serviceClass}}Impl extends BaseServiceImpl<{{=beanClass}}Mapper, {{=beanClass}}> implements {{=serviceClass}} {\n $blankline\n}",
  237. "Mapper": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}package {{=pkgName}}.mapper;\n$blankline\n\nimport com.baomidou.mybatisplus.core.mapper.BaseMapper;\nimport org.apache.ibatis.annotations.Mapper;\nimport org.apache.ibatis.annotations.Param;\nimport {{=pkgName}}.entity.{{=beanClass}};\n$blankline\n\n /**\n * {{=it.entity.defName}};({{=it.entity.defKey}})表数据库访问层\n * @author : http://njyunzhi.com\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Mapper\npublic interface {{=beanClass}}Mapper extends BaseMapper<{{=beanClass}}>{\n $blankline\n}",
  238. "Mapper.xml": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n var pkField = \"UNDEFINED_ID\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkField = field.defKey;\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n}}<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE mapper PUBLIC \"-//mybatis.org//DTD Mapper 3.0//EN\" \"http://mybatis.org/dtd/mybatis-3-mapper.dtd\">\n$blankline\n\n<mapper namespace=\"{{=pkgName}}.mapper.{{=beanClass}}Mapper\">\n $blankline\n</mapper>\n\n",
  239. "Entity": "{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n var serviceClass = beanClass+'Service';\n var serviceVarName= beanVarName+'Service';\n \n var mustNotNull = function(str) {\n return str.includes('name');\n };\n \n var canFill = function(str) {\n return str.includes('created') || str.includes('updated') || str.includes('deleted');\n };\n \n var fillType = function(str) {\n return str.includes('created') || str.includes('deleted') ? 'FieldFill.INSERT' : 'FieldFill.INSERT_UPDATE';\n };\n \n}}package {{=pkgName}}.entity;\n$blankline\nimport io.swagger.annotations.ApiModel;\nimport io.swagger.annotations.ApiModelProperty;\nimport com.baomidou.mybatisplus.annotation.*;\nimport java.io.Serializable;\nimport java.time.LocalDateTime;\nimport lombok.Data;\nimport lombok.EqualsAndHashCode;\nimport lombok.experimental.Accessors;\nimport javax.validation.constraints.NotBlank;\n$blankline\n\n /**\n * {{=it.entity.defName}};{{=it.entity.comment}}\n * @author : http://www.chiner.pro\n * @date : {{=fullYear}}-{{=month}}-{{=days}}\n */\n@Data\n@EqualsAndHashCode(callSuper = false)\n@Accessors(chain = true)\n@ApiModel(value = \"{{=it.entity.defName}}\",description = \"{{=it.entity.comment}}\")\n@TableName(\"{{=it.entity.defKey}}\")\npublic class {{=beanClass}} implements Serializable,Cloneable{\n{{~it.entity.fields:field:index}}\n $blankline\n {{? mustNotNull(field.defKey)}}\n @NotBlank(message = \"{{=field.defName}}不能为空\")\n {{?}}\n @ApiModelProperty(name = \"{{=field.defName}}\",notes = \"{{=field.comment}}\")\n {{? field.primaryKey }}\n @TableId(value = \"{{=field.defKey}}\", type = IdType.ASSIGN_UUID)\n {{?}}{{? canFill(field.defKey)}}\n @TableField(fill = {{=fillType(field.defKey)}})\n {{?}}\n private {{=field.type}} {{=it.func.camel(field.defKey,false)}} ;\n{{~}}\n$blankline\n}"
  240. },
  241. {
  242. "applyFor": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  243. "type": "dbDDL",
  244. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n `{{=field.defKey}}` {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) COMMENT = '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}';\n$blankline\n",
  245. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  246. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  247. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  248. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX IF EXISTS {{=index.defKey}} ;\n{{~}}",
  249. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}\n",
  250. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('ALTER TABLE '+before.defKey+' RENAME TO '+after.defKey);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldAdded) { \n let ddlItem = 'ADD COLUMN `'+field.defKey+'` '+field.dbType;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n if(field.autoIncrement){\n ddlItem += ' AUTO_INCREMENT';\n }\n if(field.defaultValue){\n ddlItem += (' DEFAULT ' + field.defaultValue);\n }\n ddlItem += (' COMMENT \\''+field.defName+';'+field.comment+'\\'');\n \n if(field.index>0 && field.afterFieldKey){\n ddlItem += (' AFTER '+field.afterFieldKey);\n }\n ret.push(ddlItem);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldRemoved) { \n ret.push('DROP '+field.defKey);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' MODIFY COLUMN `'+after.defKey+'`');\n }else{\n changeDDL += (' CHANGE COLUMN `'+before.defKey+'` `'+after.defKey+'`');\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n let defaultValue = '';\n if(after.defaultValue != null && after.defaultValue.length>0){\n defaultValue = (after.defaultValue);\n }else{\n defaultValue = 'NULL';\n }\n if(defaultValue != 'NULL'){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n\n let comment = after.defName;\n if(after.comment){\n comment = comment + ';' + (after.comment||'');\n }\n if(comment){\n changeDDL += (' COMMENT \\''+comment+'\\';');\n }\n \n ret.push(firstDDL+' '+changeDDL);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  251. },
  252. {
  253. "applyFor": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542",
  254. "type": "dbDDL",
  255. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  256. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  257. "deleteTable": "DROP TABLE {{=it.entity.defKey}};",
  258. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  259. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  260. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* -------------------------------------------------- */\n创建表:\n{{~ createEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* -------------------------------------------------- */\n删除表:\n{{~ dropEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* -------------------------------------------------- */\n修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n {{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n {{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}\n {{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('\\n\\t建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('\\n\\t解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}\n{{=indexChanged?'\\n\\t更改了索引':''}}\n{{=changed?'\\n\\t更改了属性':''}}\n{{=relaArray.length>0?relaArray.join(''):''}}\n{{~}}\n{{?}}",
  261. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD (${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ddlItem += ')';\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n changeDDL += ('MODIFY ('+after.defKey+'');\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n changeDDL += ')';\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  262. },
  263. {
  264. "applyFor": "BFC87171-C74F-494A-B7C2-76B9C55FACC9",
  265. "type": "dbDDL",
  266. "createTable": "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[{{=it.entity.defKey}}]') AND type in (N'U')) DROP TABLE [dbo].[{{=it.entity.defKey}}];\n\nCREATE TABLE [dbo].[{{=it.entity.defKey}}](\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? ' IDENTITY(1,1)' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}EXEC sp_addextendedproperty 'MS_Description', '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}', 'SCHEMA', dbo, 'table', {{=it.entity.defKey}}, null, null;{{?}}\n{{~it.entity.fields:field:index}}\nEXEC sp_addextendedproperty 'MS_Description', '{{=it.func.join(field.defName,field.comment,';')}}', 'SCHEMA', dbo, 'table', {{=it.entity.defKey}}, 'column', {{=field.defKey}};\n{{~}}\n",
  267. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  268. "deleteTable": "IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[{{=it.entity.defKey}}]') AND type in (N'U')) DROP TABLE [dbo].[{{=it.entity.defKey}}];",
  269. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  270. "deleteIndex": "",
  271. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}",
  272. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`EXEC sp_rename '${before.defKey}','${after.defKey}'`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `IF ((SELECT COUNT(*) FROM ::fn_listextendedproperty('MS_Description','SCHEMA', 'dbo','TABLE', '${after.defKey}', NULL, NULL)) > 0)\n \\n\\tEXEC sp_updateextendedproperty 'MS_Description', '${commentText}','SCHEMA', 'dbo','TABLE', '${after.defKey}'\n \\nELSE\n \\n\\tEXEC sp_addextendedproperty 'MS_Description', '${commentText}', 'SCHEMA', 'dbo','TABLE', '${after.defKey}'\n `;\n ret.push(myText);\n /*ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');*/\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD [${field.defKey}] ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `EXEC sp_addextendedproperty 'MS_Description', N'${commentText}','SCHEMA', N'dbo','TABLE', N'${entity.data.baseInfo.defKey}','COLUMN', N'${field.defKey}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN [${field.defKey}]`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE [dbo].[${entity.data.baseInfo.defKey}]`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' ALTER COLUMN ['+after.defKey+']');\n }else{\n let renameText = `EXEC sp_rename '[dbo].[${entity.data.baseInfo.defKey}].[${before.defKey}]','${after.defKey}','COLUMN';`;\n ret.push(renameText);\n continue;\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  273. },
  274. {
  275. "applyFor": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022",
  276. "type": "dbDDL",
  277. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{? field.autoIncrement}}SERIAL{{??}}{{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  278. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  279. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  280. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  281. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  282. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}",
  283. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD COLUMN ${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n } \n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n if(before.dbType !== after.dbType || before.len !== after.len || before.scale !== after.scale){\n let dbTypeDDL = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${after.defKey} TYPE ${before.dbType}`;\n if(after.len>0){\n dbTypeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n dbTypeDDL += (','+after.scale);\n }\n dbTypeDDL += ')';\n }\n ret.push(dbTypeDDL+';');\n }\n \n if(before.defaultValue !== after.defaultValue){\n let defaultDDL = '';\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"NULL\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n defaultDDL += ('SET DEFAULT ' + defaultValue);\n }\n let defaultTpl = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${defaultDDL};`;\n ret.push(defaultTpl);\n }\n \n if(before.notNull !== after.notNull){\n let notNullDDL= 'SET NULL';\n if(after.notNull){\n let notNullDDL= 'SET NOT NULL';\n }\n let notNullTpl = `ALTER TABLE ${entity.data.baseInfo.defKey} ALTER COLUMN ${notNullDDL};`;\n ret.push(notNullTpl);\n }\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n-- 索引重建\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  284. },
  285. {
  286. "type": "dbDDL",
  287. "applyFor": "89504F5D-94BF-4C9E-8B2E-44F37305FED5",
  288. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  289. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  290. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  291. },
  292. {
  293. "applyFor": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307",
  294. "type": "dbDDL",
  295. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'IDENTITY(1,1)' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}'{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline",
  296. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  297. "deleteTable": "",
  298. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  299. "deleteIndex": "",
  300. "message": "",
  301. "update": ""
  302. },
  303. {
  304. "type": "dbDDL",
  305. "applyFor": "592C7013-143D-4E7B-AF64-0D7BF1E28230",
  306. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? ' AUTO_INCREMENT' : '' }}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  307. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  308. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  309. },
  310. {
  311. "type": "dbDDL",
  312. "applyFor": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A",
  313. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{?}}{{= field.notNull ? ' NOT NULL' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  314. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  315. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  316. },
  317. {
  318. "applyFor": "11D1FB71-A587-4217-89BA-611B8A1F83E0",
  319. "type": "dbDDL",
  320. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTO_INCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) COMMENT '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}';\n$blankline\n",
  321. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n",
  322. "deleteTable": "",
  323. "createIndex": "",
  324. "deleteIndex": "",
  325. "message": "",
  326. "update": ""
  327. },
  328. {
  329. "applyFor": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1",
  330. "type": "dbDDL",
  331. "createTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};\nCREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} {{= field.autoIncrement ? 'AUTOINCREMENT' : '' }} {{= field.defaultValue ? it.func.join('DEFAULT',field.defaultValue,' ') : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }} --{{=it.func.join(field.defName,field.comment,';')}}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n) ; --{{=it.func.join(it.entity.defName,it.entity.comment,';') }}\n$blankline\n",
  332. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  333. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline\n"
  334. },
  335. {
  336. "type": "dbDDL",
  337. "applyFor": "dictSQLTemplate",
  338. "content": "/* 插入字典总表[{{=it.dict.defKey}}-{{=it.dict.defName}}] */\nINSERT INTO SYS_DICT(KEY_,LABEL,INTRO,REVISION) VALUES('{{=it.dict.defKey}}','{{=it.dict.defName}}','{{=it.dict.intro}}',1);\n/* 插入字典明细表 */\n{{~it.dict.items:item:index}}\nINSERT INTO SYS_DICT_ITEM(DICT_KEY,KEY_,LABEL,SORT_,INTRO,REVISION) VALUES('{{=it.dict.defKey}}','{{=item.defKey}}','{{=item.defName}}','{{=item.sort}}','{{=item.intro}}',1);\n{{~}}"
  339. },
  340. {
  341. "applyFor": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2",
  342. "type": "dbDDL",
  343. "createTable": "/**字段名,关键字等全部用的小写*/\ndrop table if exists {{=it.entity.defKey}};\n/**补充上库名,external关键字根据建表规范看是否添加*/\ncreate [external] table if not exists {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n/**这里把varchar,char,text,date,datetime字段全部映射为string类型.tinyint unsigned,bit,Integer,tinyint,smallint,mediumint映射为int类型,int unsigned映射为bigint.其它自定义映射规则根据自己情况修改*/\n/**当长度>0只有为decimal类型或double类型时才保留长度和小数的位数*/\n{{~it.entity.fields:field:index}}\n {{=it.func.lowerCase(field.defKey)}} {{=it.func.lowerCase(field.type)=='varchar'||it.func.lowerCase(field.type)=='char'||it.func.lowerCase(field.type)=='text'||it.func.lowerCase(field.type)=='date'||it.func.lowerCase(field.type)=='datetime' ? 'string':it.func.lowerCase(field.type)=='tinyint unsigned'||it.func.lowerCase(field.type)=='bit'||it.func.lowerCase(field.type)=='integer'||it.func.lowerCase(field.type)=='tinyint'||it.func.lowerCase(field.type)=='smallint'||it.func.lowerCase(field.type)=='mediumint' ? 'int':it.func.lowerCase(field.type)=='int unsigned' ? 'bigint':it.func.lowerCase(field.type)}}{{?field.len>0&&(it.func.lowerCase(field.type)=='decimal'||it.func.lowerCase(field.type)=='double')}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{=')'}}{{?}}{{?}} comment '{{=it.func.join(field.defName,field.comment,'')}}' {{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n{{?}}\n)\n{{\n let partitionedBy = it.entity.properties['partitioned by'];\n partitionedBy = partitionedBy?partitionedBy:'请在扩展属性中配置[partitioned by]属性';\n}}\ncomment '{{=it.func.join(it.entity.defName,';') }}'\n/**是否分区表,分区字段名和字段注释自定义*/\n[partitioned by {{=partitionedBy}}]\n/**文件存储格式自定义*/\n[stored as orc]\n/**hdfs上的地址自定义*/\n[location xxx]\n;",
  344. "createView": "",
  345. "deleteTable": "",
  346. "createIndex": "",
  347. "deleteIndex": "",
  348. "message": "",
  349. "update": ""
  350. },
  351. {
  352. "applyFor": "B91D99E0-9B7C-416C-8737-B760957DAF09",
  353. "type": "appCode",
  354. "content": "{{\n var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1<10?\"0\"+today.getMonth():today.getMonth();\n var days=today.getDate()<10?\"0\"+today.getDate():today.getDate();\n var hours = today.getHours()<10?\"0\"+today.getHours():today.getHours(); \n\tvar minutes = today.getMinutes()<10?\"0\"+today.getMinutes():today.getMinutes(); \n\tvar seconds = today.getSeconds()<10?\"0\"+today.getSeconds():today.getSeconds(); \n}}\n// Package models {{=it.func.join(it.entity.defName,it.entity.comment,',')}}\n// author : http://www.liyang.love\n// date : {{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n// desc : {{=it.func.join(it.entity.defName,it.entity.comment,',')}}\npackage models\n\n$blankline\n\n// {{=it.func.camel(it.entity.defKey,true) }} {{=it.func.join(it.entity.defName,it.entity.comment,',')}}。\n// 说明:{{=it.entity.comment}}\n// 表名:{{=it.entity.defKey}}\n// group: {{=it.func.camel(it.entity.defKey,true) }}\n// obsolete:\n// appliesto:go 1.8+;\n// namespace:hongmouer.his.models.{{=it.func.camel(it.entity.defKey,true) }}\n// assembly: hongmouer.his.models.go\n// class:HongMouer.HIS.Models.{{=it.func.camel(it.entity.defKey,true) }}\n// version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\ntype {{=it.func.camel(it.entity.defKey,true) }} struct {\n {{~it.entity.fields:field:index}}\n {{=formatGoLang(it.func.camel(field.defKey,true),null,field,it.entity.fields,null,1)}} {{=formatGoLang(field.type,\"type\",field,it.entity.fields,10,3)}} `gorm:\"column:{{=field.primaryKey?\"primaryKey;\":\"\"}}{{=field.defKey}}\" json:\"{{=it.func.camel(field.defKey,true)}}\"` {{=formatGoLang(\"gorm:column:\"+field.defKey+\" json:\"+it.func.camel(field.defKey,true),null,field,it.entity.fields,null,2)}} //type:{{=formatGoLang(field.type,\"type\",field,it.entity.fields,null,3)}} comment:{{=formatGoLang(it.func.join(field.defName,field.comment,';'),\"defName\",field,it.entity.fields,null,4)}} version:{{=fullYear}}-{{=month}}-{{=days}} {{=hours}}:{{=minutes}}\n {{~}}\n}\n\n\n$blankline\n// TableName 表名:{{=it.entity.defKey}},{{=it.entity.defName}}。\n// 说明:{{=it.entity.comment}}\nfunc (ZentaoUserInfo) TableName() string {\n\treturn \"{{=it.entity.defKey}}\"\n}\n\n{{\n\nfunction formatGoLang(str, fieldName, field, fileds, emptLength, isFiled) {\n var maxLength = 0;\n\n if (isFiled == 1) {\n for (var i = 0; i < fileds.length; i++) {\n if (getBlength(it.func.camel(fileds[i].defKey, true)) > maxLength) {\n maxLength = getBlength(it.func.camel(fileds[i].defKey, true)) + 2;\n }\n }\n } else if (isFiled == 2) {\n for (var i = 0; i < fileds.length; i++) {\n var newStr = \"gorm:column:\" + fileds[i].defKey + \" json:\" + it.func.camel(fileds[i].defKey, true);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 2;\n }\n }\n var empt = \"\";\n var strLength = getBlength(str);\n if (field.primaryKey) {\n strLength += getBlength(\"primaryKey;\");\n }\n for (var j = 0; j < maxLength - strLength; j++) {\n empt += ' ';\n }\n return empt;\n } else if (isFiled == 3) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = eval(\"fileds[\" + i + \"].\" + fieldName);\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n } else if (isFiled == 4) {\n /*获取某个字段的最大长度*/\n for (var i = 0; i < fileds.length; i++) {\n var newStr = fileds[i].comment + \";\" + fileds[i].defName;\n if (getBlength(newStr) > maxLength) {\n maxLength = getBlength(newStr) + 1;\n }\n }\n }\n else {\n maxLength = emptLength;\n }\n\n var strLength = getBlength(str);\n for (var j = 0; j < maxLength - strLength; j++) {\n str += ' ';\n }\n return str;\n}\n\nfunction getBlength(str) {\n var n = 0;\n for (var i = str.length; i--;) {\n n += str.charCodeAt(i) > 255 ? 2 : 1;\n }\n return n;\n} \n\n}}"
  355. },
  356. {
  357. "applyFor": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB",
  358. "type": "appCode",
  359. "struct": "use chrono::{DateTime, Local};\nuse serde::{Deserialize, Serialize};\n$blankline\n/// {{=it.entity.defName}}\n#[derive(Serialize, Deserialize, Debug, Clone)]\n{{ var today=new Date();\n var fullYear=today.getFullYear();\n var month=today.getMonth() + 1;\n var days=today.getDate();\n \n var pkVarName = \"undefinedId\";\n var pkDataType = \"String\";\n it.entity.fields.forEach(function(field){\n if(field.primaryKey){\n pkVarName = it.func.camel(field.defKey,false);\n pkDataType = field[\"type\"];\n return;\n }\n });\n \n var pkgName = it.entity.env.base.nameSpace;\n var beanClass = it.entity.env.base.codeRoot;\n var beanVarName = beanClass.charAt(0).toLowerCase()+beanClass.slice(1);\n \n}}\npub struct {{=beanClass}} {\n {{~it.entity.fields:field:index}}\n {{\n let fieldDateType = field.type;\n if(!field.notNull){\n fieldDateType = 'Option<'+fieldDateType+'>';\n }\n }}/// {{=field.defName}}\n pub {{=it.func.camel(field.defKey,false)}}: {{=fieldDateType}},\n {{~}}\n}\n"
  360. },
  361. {
  362. "applyFor": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A",
  363. "type": "dbDDL",
  364. "createTable": "CREATE TABLE {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n {{=field.defKey}} {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}}{{= field.defaultValue ? it.func.join(' DEFAULT ',field.defaultValue,' ') : '' }}{{= field.notNull ? ' NOT NULL' : '' }}{{= field.autoIncrement ? '' : '' }}{{= index < it.entity.fields.length-1 ? ',' : ( pkList.length>0 ? ',' :'' ) }}\n{{~}}\n{{? pkList.length >0 }}\n PRIMARY KEY ({{~pkList:pkName:i}}{{= pkName }}{{= i<pkList.length-1 ? ',' : '' }}{{~}})\n{{?}}\n);\n$blankline\n{{? it.entity.defKey || it.entity.defName}}COMMENT ON TABLE {{=it.entity.defKey}} IS '{{=it.func.join(it.entity.defName,it.entity.comment,';')}}';{{?}}\n{{~it.entity.fields:field:index}}\n{{? field.defName || field.comment}}COMMENT ON COLUMN {{=it.entity.defKey}}.{{=field.defKey}} IS '{{=it.func.join(field.defName,field.comment,';')}}';{{?}}\n{{~}}",
  365. "createView": "CREATE VIEW {{=it.view.defKey}} AS\nSELECT \n{{~it.view.fields:field:index}}\n {{=field.refEntity}}.{{=field.refEntityField}} AS {{=field.defKey}}{{= index < it.view.fields.length-1 ? ',' : ''}}\n{{~}}\nFROM {{~it.view.refEntities:refEntity:index}}{{=refEntity}}{{= index < it.view.refEntities.length-1 ? ',' : ''}}{{~}};\n$blankline",
  366. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  367. "createIndex": "{{~ it.entity.indexes:index}}\nCREATE {{? index.unique}}UNIQUE {{?}}INDEX {{=index.defKey}} ON {{=it.entity.defKey}}({{ fieldsKeys = index.fields.map(function(field){return field.fieldDefKey}) ; }}{{=it.func.join(...fieldsKeys,',')}});\n{{~}}",
  368. "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
  369. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* -------------------------------------------------- */\n创建表:\n{{~ createEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* -------------------------------------------------- */\n删除表:\n{{~ dropEntities:entity}}\n {{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* -------------------------------------------------- */\n修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n {{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n {{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n {{?}}{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}\n {{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('\\n\\t建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('\\n\\t解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}\n{{=indexChanged?'\\n\\t更改了索引':''}}\n{{=changed?'\\n\\t更改了属性':''}}\n{{=relaArray.length>0?relaArray.join(''):''}}\n{{~}}\n{{?}}",
  370. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push(`ALTER TABLE ${before.defKey} RENAME TO ${after.defKey}`);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n let myText = `COMMENT ON TABLE ${after.defKey} IS '${commentText}'`;\n ret.push(myText);\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldAdded) { \n let ddlItem = `ADD (${field.defKey} ${field.dbType}`;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n let defaultValue = field.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n ddlItem += (' DEFAULT ' + defaultValue);\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n ddlItem += ')';\n ret.push(`${firstDDL} ${ddlItem}`);\n \n /*处理字段注释*/\n let fieldComments = [];\n if(field.defName != null &&field.defName.length>0){\n fieldComments.push(field.defName);\n }\n if(field.comment != null &&field.comment.length>0){\n fieldComments.push(field.comment);\n }\n let commentText = fieldComments.join(';');\n if(commentText != null && commentText.length > 0){\n let commentDDL = `COMMENT ON COLUMN ${entity.data.baseInfo.defKey}.${field.defKey} IS '${commentText}'`;\n ret.push(commentDDL);\n }\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldRemoved) { \n ret.push(`${firstDDL} DROP COLUMN ${field.defKey}`);\n }\n return '\\n'+ret.join(';\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = `ALTER TABLE ${entity.data.baseInfo.defKey}`;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey !== after.defKey){\n let renameText = `ALTER TABLE ${entity.data.baseInfo.defKey} RENAME COLUMN ${before.defKey} TO ${after.defKey};`;\n ret.push(renameText);\n }\n /*如果没有变化,则不生成变更语句*/\n if(before.dbType === after.dbType \n && before['len'] === after['len'] \n && before.scale === after.scale\n && before.primaryKey === after.primaryKey\n && before.notNull === after.notNull\n && before.autoIncrement === after.autoIncrement\n && before.defaultValue === after.defaultValue){\n continue;\n }\n changeDDL += ('MODIFY ('+after.defKey+'');\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n let defaultValue = after.defaultValue;\n defaultValue = (defaultValue==null)?\"\":(\"\"+defaultValue);\n if(defaultValue.length>0){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n \n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n changeDDL += ')';\n ret.push(`${firstDDL} ${changeDDL};`);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  371. },
  372. {
  373. "applyFor": "483F9346-C99E-4014-A1D2-A554606BD8A3",
  374. "type": "dbDDL",
  375. "createTable": "{{let dorisDistributedBy = it.entity.properties['dorisDistributedBy'];\n dorisDistributedBy = dorisDistributedBy?dorisDistributedBy:'请在表的扩展属性中配置[dorisDistributedBy]属性';\n}}CREATE TABLE IF NOT EXISTS {{=it.entity.defKey}}(\n{{ pkList = [] ; }}\n{{~it.entity.fields:field:index}}\n {{? field.primaryKey }}{{ pkList.push(field.defKey) }}{{?}}\n `{{=field.defKey}}` {{=field.type}}{{?field.len>0}}{{='('}}{{=field.len}}{{?field.scale>0}}{{=','}}{{=field.scale}}{{?}}{{=')'}}{{?}} {{= field.notNull ? 'NOT NULL' : '' }} COMMENT '{{=it.func.join(field.defName,field.comment,';')}}' {{= index < it.entity.fields.length-1 ? ',' : '' }}\n{{~}}\n) COMMENT '{{=it.func.join(it.entity.defName,it.entity.comment,';') }}'\n{{=dorisDistributedBy}} ;\n$blankline\n",
  376. "createView": "",
  377. "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
  378. "createIndex": "",
  379. "deleteIndex": "",
  380. "message": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChanged(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('代码:'+(before.defKey||'NULL')+'->'+(after.defKey||'NULL'));\n }\n if(before.defName !== after.defName){\n ret.push('显示名称:'+(before.defName||'NULL')+'->'+(after.defName||'NULL'));\n }\n if(before.comment !== after.comment){\n ret.push('说明:'+(before.comment||'NULL')+'->'+(after.comment||'NULL'));\n }\n if(ret.length>0){\n return ' 基本信息:\\n\\t'+ret.join('\\n\\t');\n }\n return '';\n };\n \n function buildAddedDesc(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n \n for (let field of fieldAdded) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildRemovedDesc(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n \n for (let field of fieldRemoved) { \n let row = [];\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n \n function buildModifiedDesc(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n for (let field1 of fieldModified) { \n let row = [];\n let field = field1.before;\n row.push(field.defKey+'['+field.defName+']');\n ret.push(row.join(\"\"))\n }\n return ret;\n };\n}}\n\n\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=entity.data.defKey}}[{{=entity.data.defName}}]\n{{~}}\n{{?}}\n\n{{? modifyEntities && modifyEntities.length > 0}}\n/* --------------- 修改表 --------------- */\n{{~ modifyEntities:entity}}\n{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]{{let changeText=baseChanged(entity.data.baseChanged);}}\n{{=baseChanged(entity.data.baseChanged)}}\n {{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n 修改字段:\n {{='\\t'}}{{=buildModifiedDesc(entity).join('\\n\\t')}}{{?}}{{\n /*计算是否调整了属性*/\n let propAdded = entity.data.propAdded || [];\n let propRemoved = entity.data.propRemoved || [];\n let propModified = entity.data.propModified || [];\n let changed = propAdded.length>0 || propRemoved.length>0 || propModified.length>0;\n /*计算关联是否调整*/\n let refEntityAdd = entity.data.refEntityAdd || [];\n let refEntityRemoved = entity.data.refEntityRemoved || [];\n let relaArray = [];\n for (let rela of refEntityAdd) {\n relaArray.push('建立关联:'+rela.defKey+'['+rela.defName+']');\n }\n for (let rela of refEntityRemoved) {\n relaArray.push('解除关联:'+rela.defKey+'['+rela.defName+']');\n }\n /*索引是否修改过*/\n let indexChanged = entity.data.indexChanged;\n }}{{=indexChanged?'\\n\\t更改了索引':''}}{{=changed?'\\n\\t更改了属性':''}}{{=relaArray.length>0?('\\n\\t'+relaArray.join('\\n\\t')):''}}\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n 添加字段:\n{{='\\t'}}{{=buildAddedDesc(entity).join('\\n\\t')}}\n{{?}}{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n 删除字段:\n{{='\\t'}}{{=buildRemovedDesc(entity).join('\\n\\t')}}\n{{?}}\n{{~}}\n{{?}}\n",
  381. "update": "{{\n let createEntities = it.changes.filter(function(row){return (row.opt==='add'&&row['type']==='entity');});\n let dropEntities = it.changes.filter(function(row){return (row.opt==='delete'&&row['type']==='entity');});\n let modifyEntities = it.changes.filter(function(row){return (row.opt==='update'&&row['type']==='entity');});\n \n function baseChangedDDL(beforeAfter){\n if(beforeAfter == null){\n return '';\n }\n let ret = [];\n let before = beforeAfter.before || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n let after = beforeAfter.after || {\"defKey\":\"\",\"defName\":\"\",\"comment\":\"\"};\n if(before.defKey !== after.defKey){\n ret.push('ALTER TABLE '+before.defKey+' RENAME TO '+after.defKey);\n }\n let commentText = '';\n let commentChanged = false;\n if(before.defName !== after.defName){\n commentText = after.defName;\n commentChanged = true;\n }\n if(before.comment !== after.comment){\n commentChanged = true;\n if(commentText){\n commentText = (commentText+ ';'+after.comment)\n }else{\n commentText = after.comment\n }\n }\n if(commentChanged){\n ret.push('ALTER TABLE '+after.defKey+' COMMENT \\''+commentText+'\\'');\n }\n let baseText = '-- 基本信息:\\n';\n return baseText+ret.join(';\\n')+';';\n };\n \n function buildAddedDDL(entity){\n let ret = [];\n let fieldAdded = entity.data.fieldAdded||[];\n if(fieldAdded.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldAdded) { \n let ddlItem = 'ADD COLUMN `'+field.defKey+'` '+field.dbType;\n /*处理数据类型长度*/\n if(field.len>0){\n ddlItem += ('('+field.len);\n if(parseInt(field.scale)>0){\n ddlItem += (','+field.scale);\n }\n ddlItem += ')';\n }\n if(field.notNull){\n ddlItem += ' NOT NULL';\n }\n if(field.autoIncrement){\n ddlItem += ' AUTO_INCREMENT';\n }\n if(field.defaultValue){\n ddlItem += (' DEFAULT ' + field.defaultValue);\n }\n ddlItem += (' COMMENT \\''+field.defName+';'+field.comment+'\\'');\n \n if(field.index>0 && field.afterFieldKey){\n ddlItem += (' AFTER '+field.afterFieldKey);\n }\n ret.push(ddlItem);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildRemovedDDL(entity){\n let ret = [];\n let fieldRemoved = entity.data.fieldRemoved||[];\n if(fieldRemoved.length == 0){\n return '';\n }\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldRemoved) { \n ret.push('DROP '+field.defKey);\n }\n return firstDDL+'\\n'+ret.join(',\\n');\n };\n \n function buildModifiedDDL(entity){\n let ret = [];\n let fieldModified = entity.data.fieldModified||[];\n \n let firstDDL = 'ALTER TABLE '+entity.data.baseInfo.defKey;\n for (let field of fieldModified) { \n let changeDDL = '';\n let before = field.before || {};\n let after = field.after || {};\n if(before.defKey === after.defKey){\n changeDDL += (' MODIFY COLUMN `'+after.defKey+'`');\n }else{\n changeDDL += (' CHANGE COLUMN `'+before.defKey+'` `'+after.defKey+'`');\n }\n changeDDL += (' '+after.dbType);\n if(after.len>0){\n changeDDL += ('('+after.len);\n if(parseInt(after.scale)>0){\n changeDDL += (','+after.scale);\n }\n changeDDL += ')';\n }\n if(after.notNull){\n changeDDL += ' NOT NULL';\n }\n let defaultValue = '';\n if(after.defaultValue != null && after.defaultValue.length>0){\n defaultValue = (after.defaultValue);\n }else{\n defaultValue = 'NULL';\n }\n if(defaultValue != 'NULL'){\n changeDDL += (' DEFAULT ' + defaultValue);\n }\n\n let comment = after.defName;\n if(after.comment){\n comment = comment + ';' + (after.comment||'');\n }\n if(comment){\n changeDDL += (' COMMENT \\''+comment+'\\';');\n }\n \n ret.push(firstDDL+' '+changeDDL);\n }\n return ret;\n };\n}}\n{{? createEntities && createEntities.length > 0}}\n/* --------------- 创建表 --------------- */\n{{~ createEntities:entity}}\n{{=it.func.createDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? dropEntities && dropEntities.length > 0}}\n/* --------------- 删除表 --------------- */\n{{~ dropEntities:entity}}\n{{=it.func.dropDDL(entity.data,entity['type'])}}\n{{~}}\n{{?}}\n\n\n{{? modifyEntities && modifyEntities.length > 0}}\n{{~ modifyEntities:entity}}\n/* --------------- 修改表 --------------- */\n-- 修改表:{{=entity.data.baseInfo.defKey}}[{{=entity.data.baseInfo.defName}}]\n{{=baseChangedDDL(entity.data.baseChanged)}}\n{{? entity.data.fieldModified && entity.data.fieldModified.length > 0}}\n-- 修改字段:\n{{=buildModifiedDDL(entity).join('\\n')}}\n{{?}}{{\n/*索引是否修改过*/\nlet indexChanged = entity.data.indexChanged;\n}}\n{{? indexChanged }}\n{{=it.func.indexRebuildDDL(entity.data.baseInfo,entity.data.newIndexes,entity.data.fullFields,entity['type'])}}\n{{?}}\n\n{{? entity.data.fieldAdded && entity.data.fieldAdded.length > 0}}\n-- 添加字段:\n{{=buildAddedDDL(entity)}};\n{{?}}\n\n{{? entity.data.fieldRemoved && entity.data.fieldRemoved.length > 0}}\n-- 删除字段:\n{{=buildRemovedDDL(entity)}};\n{{?}}\n{{~}}\n{{?}}"
  382. }
  383. ],
  384. "generatorDoc": {
  385. "docTemplate": ""
  386. },
  387. "relationFieldSize": "15",
  388. "uiHint": [
  389. {
  390. "defKey": "Input",
  391. "defName": "普通输入框",
  392. "id": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
  393. },
  394. {
  395. "defKey": "Select",
  396. "defName": "下拉输入框",
  397. "id": "FB111359-2B73-4443-926C-08A98E446448"
  398. },
  399. {
  400. "defKey": "CheckBox",
  401. "defName": "复选框",
  402. "id": "0CB8A6C9-1115-4FC0-B51E-5C028065082F"
  403. },
  404. {
  405. "defKey": "RadioBox",
  406. "defName": "单选框",
  407. "id": "5C04987A-260F-4B7C-A5D5-22A181AAE9CA"
  408. },
  409. {
  410. "defKey": "Double",
  411. "defName": "小数输入",
  412. "id": "8D5BAFE4-E15C-4707-A047-8EE59C58E70F"
  413. },
  414. {
  415. "defKey": "Integer",
  416. "defName": "整数输入",
  417. "id": "9999AF2A-A44E-415C-A2DC-D7C613BD0073"
  418. },
  419. {
  420. "defKey": "Money",
  421. "defName": "金额输入",
  422. "id": "2B0C3D0C-7BAF-4B36-81AD-9362B5E5DC2E"
  423. },
  424. {
  425. "defKey": "Date",
  426. "defName": "日期输入",
  427. "id": "E4D94E14-F695-487F-AFC2-4D888009B7DA"
  428. },
  429. {
  430. "defKey": "DataYearMonth",
  431. "defName": "年月输入",
  432. "id": "936927E3-DD2D-4096-87FD-074CDE278D59"
  433. },
  434. {
  435. "defKey": "Text",
  436. "defName": "长文本输入",
  437. "id": "D89DD4F1-ADAC-4469-BF8D-B3FF41AE7963"
  438. },
  439. {
  440. "defKey": "RichText",
  441. "defName": "富文本输入",
  442. "id": "C134EB1F-4CFF-49E0-882F-2C6FB275CB20"
  443. }
  444. ],
  445. "headers": [
  446. {
  447. "refKey": "defKey",
  448. "hideInGraph": false,
  449. "value": "字段代码",
  450. "freeze": false
  451. },
  452. {
  453. "refKey": "defName",
  454. "hideInGraph": false,
  455. "value": "显示名称",
  456. "freeze": false
  457. },
  458. {
  459. "refKey": "primaryKey",
  460. "hideInGraph": false,
  461. "value": "主键",
  462. "freeze": false
  463. },
  464. {
  465. "refKey": "notNull",
  466. "hideInGraph": true,
  467. "value": "不为空",
  468. "freeze": false
  469. },
  470. {
  471. "refKey": "autoIncrement",
  472. "hideInGraph": true,
  473. "value": "自增",
  474. "freeze": false
  475. },
  476. {
  477. "refKey": "domain",
  478. "hideInGraph": true,
  479. "value": "数据域",
  480. "freeze": false
  481. },
  482. {
  483. "refKey": "type",
  484. "hideInGraph": false,
  485. "value": "数据类型",
  486. "freeze": false
  487. },
  488. {
  489. "refKey": "len",
  490. "hideInGraph": false,
  491. "value": "长度",
  492. "freeze": false
  493. },
  494. {
  495. "refKey": "scale",
  496. "hideInGraph": false,
  497. "value": "小数位数",
  498. "freeze": false
  499. },
  500. {
  501. "refKey": "comment",
  502. "hideInGraph": true,
  503. "value": "说明",
  504. "freeze": false
  505. },
  506. {
  507. "refKey": "refDict",
  508. "hideInGraph": true,
  509. "value": "数据字典",
  510. "freeze": false
  511. },
  512. {
  513. "refKey": "defaultValue",
  514. "hideInGraph": true,
  515. "value": "默认值",
  516. "freeze": false
  517. },
  518. {
  519. "refKey": "isStandard",
  520. "hideInGraph": false,
  521. "value": "标准字段",
  522. "enable": false,
  523. "freeze": false
  524. },
  525. {
  526. "refKey": "uiHint",
  527. "hideInGraph": true,
  528. "value": "UI建议",
  529. "enable": true,
  530. "freeze": false
  531. },
  532. {
  533. "refKey": "extProps",
  534. "hideInGraph": true,
  535. "value": "拓展属性",
  536. "enable": true,
  537. "freeze": false
  538. },
  539. {
  540. "refKey": "attr1",
  541. "value": "属性1",
  542. "hideInGraph": true,
  543. "enable": true,
  544. "freeze": false
  545. },
  546. {
  547. "refKey": "attr2",
  548. "value": "属性2",
  549. "hideInGraph": true,
  550. "enable": false,
  551. "freeze": false
  552. },
  553. {
  554. "refKey": "attr3",
  555. "value": "属性3",
  556. "hideInGraph": true,
  557. "enable": false,
  558. "freeze": false
  559. },
  560. {
  561. "refKey": "attr4",
  562. "value": "属性4",
  563. "hideInGraph": true,
  564. "enable": false,
  565. "freeze": false
  566. },
  567. {
  568. "refKey": "attr5",
  569. "value": "属性5",
  570. "hideInGraph": true,
  571. "enable": false,
  572. "freeze": false
  573. },
  574. {
  575. "refKey": "attr6",
  576. "value": "属性6",
  577. "hideInGraph": true,
  578. "enable": false,
  579. "freeze": false
  580. },
  581. {
  582. "refKey": "attr7",
  583. "value": "属性7",
  584. "hideInGraph": true,
  585. "enable": false,
  586. "freeze": false
  587. },
  588. {
  589. "refKey": "attr8",
  590. "value": "属性8",
  591. "hideInGraph": true,
  592. "enable": false,
  593. "freeze": false
  594. },
  595. {
  596. "refKey": "attr9",
  597. "value": "属性9",
  598. "hideInGraph": true,
  599. "enable": false,
  600. "freeze": false
  601. }
  602. ],
  603. "modelType": "modalAll",
  604. "recentColors": [
  605. "#d148d1",
  606. "#ce4bce",
  607. "#831b83",
  608. "#dd31dd",
  609. "#da2fda",
  610. "#e988e9",
  611. "#000000",
  612. "#DDE5FF"
  613. ],
  614. "DDLToggleCase": "L",
  615. "menuWidth": "315px"
  616. },
  617. "entities": [
  618. {
  619. "id": "58D62115-9E44-4887-8299-7B4694476966",
  620. "defKey": "fx_login",
  621. "defName": "登录信息表",
  622. "comment": "",
  623. "properties": {},
  624. "fields": [
  625. {
  626. "defKey": "login_id",
  627. "defName": "登录ID",
  628. "comment": "",
  629. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  630. "type": "VARCHAR",
  631. "len": "",
  632. "scale": "",
  633. "primaryKey": true,
  634. "notNull": true,
  635. "autoIncrement": false,
  636. "defaultValue": "",
  637. "hideInGraph": false,
  638. "refDict": "",
  639. "attr1": "",
  640. "attr2": "",
  641. "attr3": "",
  642. "attr4": "",
  643. "attr5": "",
  644. "attr6": "",
  645. "attr7": "",
  646. "attr8": "",
  647. "attr9": "",
  648. "id": "B17EFE29-1654-45E8-BCF1-A486AED74CC7",
  649. "extProps": {}
  650. },
  651. {
  652. "defKey": "user_id",
  653. "defName": "用户ID",
  654. "comment": "",
  655. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  656. "type": "VARCHAR",
  657. "len": "",
  658. "scale": "",
  659. "primaryKey": false,
  660. "notNull": false,
  661. "autoIncrement": false,
  662. "defaultValue": "",
  663. "hideInGraph": false,
  664. "refDict": "",
  665. "attr1": "",
  666. "attr2": "",
  667. "attr3": "",
  668. "attr4": "",
  669. "attr5": "",
  670. "attr6": "",
  671. "attr7": "",
  672. "attr8": "",
  673. "attr9": "",
  674. "id": "E1E80966-B829-4CF1-A7D2-1FCA9101E362",
  675. "extProps": {}
  676. },
  677. {
  678. "defKey": "login_type",
  679. "defName": "登录类型",
  680. "comment": "",
  681. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  682. "type": "VARCHAR",
  683. "len": "",
  684. "scale": "",
  685. "primaryKey": false,
  686. "notNull": false,
  687. "autoIncrement": false,
  688. "defaultValue": "",
  689. "hideInGraph": false,
  690. "refDict": "",
  691. "attr1": "",
  692. "attr2": "",
  693. "attr3": "",
  694. "attr4": "",
  695. "attr5": "",
  696. "attr6": "",
  697. "attr7": "",
  698. "attr8": "",
  699. "attr9": "",
  700. "id": "ABF23A18-A87B-46D1-B5B7-8524ED1466E5",
  701. "extProps": {}
  702. },
  703. {
  704. "defKey": "login_name",
  705. "defName": "登录名",
  706. "comment": "",
  707. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  708. "type": "VARCHAR",
  709. "len": "",
  710. "scale": "",
  711. "primaryKey": false,
  712. "notNull": false,
  713. "autoIncrement": false,
  714. "defaultValue": "",
  715. "hideInGraph": false,
  716. "refDict": "",
  717. "attr1": "",
  718. "attr2": "",
  719. "attr3": "",
  720. "attr4": "",
  721. "attr5": "",
  722. "attr6": "",
  723. "attr7": "",
  724. "attr8": "",
  725. "attr9": "",
  726. "id": "C35D4DC7-7F4F-4FF3-9B08-551FE9273ACE",
  727. "extProps": {}
  728. },
  729. {
  730. "defKey": "password",
  731. "defName": "密码",
  732. "comment": "",
  733. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  734. "type": "VARCHAR",
  735. "len": "",
  736. "scale": "",
  737. "primaryKey": false,
  738. "notNull": false,
  739. "autoIncrement": false,
  740. "defaultValue": "",
  741. "hideInGraph": false,
  742. "refDict": "",
  743. "attr1": "",
  744. "attr2": "",
  745. "attr3": "",
  746. "attr4": "",
  747. "attr5": "",
  748. "attr6": "",
  749. "attr7": "",
  750. "attr8": "",
  751. "attr9": "",
  752. "id": "3F4C18E5-DC0A-493A-90A2-4349784375D1",
  753. "extProps": {}
  754. },
  755. {
  756. "defKey": "status",
  757. "defName": "状态",
  758. "comment": "1正常",
  759. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  760. "type": "INT",
  761. "len": "",
  762. "scale": "",
  763. "primaryKey": false,
  764. "notNull": false,
  765. "autoIncrement": false,
  766. "defaultValue": "1",
  767. "hideInGraph": false,
  768. "refDict": "",
  769. "attr1": "",
  770. "attr2": "",
  771. "attr3": "",
  772. "attr4": "",
  773. "attr5": "",
  774. "attr6": "",
  775. "attr7": "",
  776. "attr8": "",
  777. "attr9": "",
  778. "id": "519BE847-4FD4-40A3-B60D-5ED1CBE9A79F",
  779. "extProps": {}
  780. },
  781. {
  782. "defKey": "created_by",
  783. "defName": "创建人",
  784. "comment": "",
  785. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  786. "type": "VARCHAR",
  787. "len": "",
  788. "scale": "",
  789. "primaryKey": false,
  790. "notNull": false,
  791. "autoIncrement": false,
  792. "defaultValue": "",
  793. "hideInGraph": false,
  794. "refDict": "",
  795. "attr1": "",
  796. "attr2": "",
  797. "attr3": "",
  798. "attr4": "",
  799. "attr5": "",
  800. "attr6": "",
  801. "attr7": "",
  802. "attr8": "",
  803. "attr9": "",
  804. "id": "C2A30C83-1E9C-447B-94E7-C99B234E8DC0",
  805. "extProps": {}
  806. },
  807. {
  808. "defKey": "created_at",
  809. "defName": "创建时间",
  810. "comment": "",
  811. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  812. "type": "DATETIME",
  813. "len": "",
  814. "scale": "",
  815. "primaryKey": false,
  816. "notNull": false,
  817. "autoIncrement": false,
  818. "defaultValue": "'CURRENT_TIMESTAMP'",
  819. "hideInGraph": false,
  820. "refDict": "",
  821. "attr1": "",
  822. "attr2": "",
  823. "attr3": "",
  824. "attr4": "",
  825. "attr5": "",
  826. "attr6": "",
  827. "attr7": "",
  828. "attr8": "",
  829. "attr9": "",
  830. "id": "B47498B8-8AAF-48F1-B785-2EE68F25E05F",
  831. "extProps": {}
  832. },
  833. {
  834. "defKey": "updated_by",
  835. "defName": "更新人",
  836. "comment": "",
  837. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  838. "type": "VARCHAR",
  839. "len": "",
  840. "scale": "",
  841. "primaryKey": false,
  842. "notNull": false,
  843. "autoIncrement": false,
  844. "defaultValue": "",
  845. "hideInGraph": false,
  846. "refDict": "",
  847. "attr1": "",
  848. "attr2": "",
  849. "attr3": "",
  850. "attr4": "",
  851. "attr5": "",
  852. "attr6": "",
  853. "attr7": "",
  854. "attr8": "",
  855. "attr9": "",
  856. "id": "E5E59D73-95B2-469B-841F-871AC3A96ABA",
  857. "extProps": {}
  858. },
  859. {
  860. "defKey": "updated_at",
  861. "defName": "更新时间",
  862. "comment": "",
  863. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  864. "type": "DATETIME",
  865. "len": "",
  866. "scale": "",
  867. "primaryKey": false,
  868. "notNull": false,
  869. "autoIncrement": false,
  870. "defaultValue": "",
  871. "hideInGraph": false,
  872. "refDict": "",
  873. "attr1": "",
  874. "attr2": "",
  875. "attr3": "",
  876. "attr4": "",
  877. "attr5": "",
  878. "attr6": "",
  879. "attr7": "",
  880. "attr8": "",
  881. "attr9": "",
  882. "id": "B3DBBCCE-84E2-4141-9E2B-E5432DAC999B",
  883. "extProps": {}
  884. },
  885. {
  886. "defKey": "deleted",
  887. "defName": "删除标志",
  888. "comment": "1删除,0正常",
  889. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  890. "type": "INT",
  891. "len": "",
  892. "scale": "",
  893. "primaryKey": false,
  894. "notNull": false,
  895. "autoIncrement": false,
  896. "defaultValue": "0",
  897. "hideInGraph": false,
  898. "refDict": "",
  899. "attr1": "",
  900. "attr2": "",
  901. "attr3": "",
  902. "attr4": "",
  903. "attr5": "",
  904. "attr6": "",
  905. "attr7": "",
  906. "attr8": "",
  907. "attr9": "",
  908. "id": "1F9BB164-7B4D-413E-9775-85E5C511C2E0",
  909. "extProps": {}
  910. }
  911. ],
  912. "indexes": [],
  913. "nameTemplate": "{defKey}[{defName}]",
  914. "headers": [
  915. {
  916. "freeze": false,
  917. "refKey": "hideInGraph",
  918. "hideInGraph": true
  919. },
  920. {
  921. "freeze": true,
  922. "refKey": "defKey",
  923. "hideInGraph": false
  924. },
  925. {
  926. "freeze": true,
  927. "refKey": "defName",
  928. "hideInGraph": false
  929. },
  930. {
  931. "freeze": false,
  932. "refKey": "primaryKey",
  933. "hideInGraph": false
  934. },
  935. {
  936. "freeze": false,
  937. "refKey": "notNull",
  938. "hideInGraph": true
  939. },
  940. {
  941. "freeze": false,
  942. "refKey": "autoIncrement",
  943. "hideInGraph": true
  944. },
  945. {
  946. "freeze": false,
  947. "refKey": "domain",
  948. "hideInGraph": true
  949. },
  950. {
  951. "freeze": false,
  952. "refKey": "type",
  953. "hideInGraph": false
  954. },
  955. {
  956. "freeze": false,
  957. "refKey": "len",
  958. "hideInGraph": false
  959. },
  960. {
  961. "freeze": false,
  962. "refKey": "scale",
  963. "hideInGraph": false
  964. },
  965. {
  966. "freeze": false,
  967. "refKey": "comment",
  968. "hideInGraph": true
  969. },
  970. {
  971. "freeze": false,
  972. "refKey": "refDict",
  973. "hideInGraph": true
  974. },
  975. {
  976. "freeze": false,
  977. "refKey": "defaultValue",
  978. "hideInGraph": true
  979. },
  980. {
  981. "freeze": false,
  982. "refKey": "isStandard",
  983. "hideInGraph": false
  984. },
  985. {
  986. "freeze": false,
  987. "refKey": "uiHint",
  988. "hideInGraph": true
  989. },
  990. {
  991. "freeze": false,
  992. "refKey": "extProps",
  993. "hideInGraph": true
  994. }
  995. ],
  996. "correlations": []
  997. },
  998. {
  999. "id": "2F4EC6AE-3AD7-4DF8-B529-32A1876170CC",
  1000. "defKey": "fx_menu",
  1001. "defName": "菜单表",
  1002. "comment": "",
  1003. "properties": {},
  1004. "fields": [
  1005. {
  1006. "defKey": "menu_id",
  1007. "defName": "菜单ID",
  1008. "comment": "",
  1009. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1010. "type": "VARCHAR",
  1011. "len": "",
  1012. "scale": "",
  1013. "primaryKey": true,
  1014. "notNull": true,
  1015. "autoIncrement": false,
  1016. "defaultValue": "",
  1017. "hideInGraph": false,
  1018. "refDict": "",
  1019. "attr1": "",
  1020. "attr2": "",
  1021. "attr3": "",
  1022. "attr4": "",
  1023. "attr5": "",
  1024. "attr6": "",
  1025. "attr7": "",
  1026. "attr8": "",
  1027. "attr9": "",
  1028. "id": "3192D1E1-E4E8-4E05-A9AA-15A7CBA05100",
  1029. "extProps": {}
  1030. },
  1031. {
  1032. "defKey": "menu_code",
  1033. "defName": "菜单编码",
  1034. "comment": "",
  1035. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1036. "type": "VARCHAR",
  1037. "len": "",
  1038. "scale": "",
  1039. "primaryKey": false,
  1040. "notNull": false,
  1041. "autoIncrement": false,
  1042. "defaultValue": "",
  1043. "hideInGraph": false,
  1044. "refDict": "",
  1045. "attr1": "",
  1046. "attr2": "",
  1047. "attr3": "",
  1048. "attr4": "",
  1049. "attr5": "",
  1050. "attr6": "",
  1051. "attr7": "",
  1052. "attr8": "",
  1053. "attr9": "",
  1054. "id": "5406844E-4BB2-4C84-B41C-00B18FB9EBAC",
  1055. "extProps": {}
  1056. },
  1057. {
  1058. "defKey": "menu_name",
  1059. "defName": "菜单名称",
  1060. "comment": "",
  1061. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  1062. "type": "VARCHAR",
  1063. "len": "",
  1064. "scale": "",
  1065. "primaryKey": false,
  1066. "notNull": false,
  1067. "autoIncrement": false,
  1068. "defaultValue": "",
  1069. "hideInGraph": false,
  1070. "refDict": "",
  1071. "attr1": "",
  1072. "attr2": "",
  1073. "attr3": "",
  1074. "attr4": "",
  1075. "attr5": "",
  1076. "attr6": "",
  1077. "attr7": "",
  1078. "attr8": "",
  1079. "attr9": "",
  1080. "id": "112EC434-9570-42C9-8A78-31E1D107DD63",
  1081. "extProps": {}
  1082. },
  1083. {
  1084. "defKey": "parent_id",
  1085. "defName": "上级ID",
  1086. "comment": "",
  1087. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1088. "type": "VARCHAR",
  1089. "len": "",
  1090. "scale": "",
  1091. "primaryKey": false,
  1092. "notNull": false,
  1093. "autoIncrement": false,
  1094. "defaultValue": "",
  1095. "hideInGraph": false,
  1096. "refDict": "",
  1097. "attr1": "",
  1098. "attr2": "",
  1099. "attr3": "",
  1100. "attr4": "",
  1101. "attr5": "",
  1102. "attr6": "",
  1103. "attr7": "",
  1104. "attr8": "",
  1105. "attr9": "",
  1106. "id": "E355E8B2-CFC6-4610-B6D0-0EE2CD829E65",
  1107. "extProps": {}
  1108. },
  1109. {
  1110. "defKey": "sort_no",
  1111. "defName": "排序",
  1112. "comment": "",
  1113. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1114. "type": "INT",
  1115. "len": "",
  1116. "scale": "",
  1117. "primaryKey": false,
  1118. "notNull": false,
  1119. "autoIncrement": false,
  1120. "defaultValue": "",
  1121. "hideInGraph": false,
  1122. "refDict": "",
  1123. "attr1": "",
  1124. "attr2": "",
  1125. "attr3": "",
  1126. "attr4": "",
  1127. "attr5": "",
  1128. "attr6": "",
  1129. "attr7": "",
  1130. "attr8": "",
  1131. "attr9": "",
  1132. "id": "7AC99E16-71CC-4910-9CD7-20144787B0DE",
  1133. "extProps": {}
  1134. },
  1135. {
  1136. "defKey": "status",
  1137. "defName": "状态",
  1138. "comment": "",
  1139. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1140. "type": "INT",
  1141. "len": "",
  1142. "scale": "",
  1143. "primaryKey": false,
  1144. "notNull": false,
  1145. "autoIncrement": false,
  1146. "defaultValue": "1",
  1147. "hideInGraph": false,
  1148. "refDict": "",
  1149. "attr1": "",
  1150. "attr2": "",
  1151. "attr3": "",
  1152. "attr4": "",
  1153. "attr5": "",
  1154. "attr6": "",
  1155. "attr7": "",
  1156. "attr8": "",
  1157. "attr9": "",
  1158. "id": "EEBDAF16-0CC8-447E-893A-52945568D549",
  1159. "extProps": {}
  1160. },
  1161. {
  1162. "defKey": "client_type",
  1163. "defName": "终端类型",
  1164. "comment": "",
  1165. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1166. "type": "VARCHAR",
  1167. "len": "",
  1168. "scale": "",
  1169. "primaryKey": false,
  1170. "notNull": false,
  1171. "autoIncrement": false,
  1172. "defaultValue": "",
  1173. "hideInGraph": false,
  1174. "refDict": "",
  1175. "attr1": "",
  1176. "attr2": "",
  1177. "attr3": "",
  1178. "attr4": "",
  1179. "attr5": "",
  1180. "attr6": "",
  1181. "attr7": "",
  1182. "attr8": "",
  1183. "attr9": "",
  1184. "id": "157D2AC1-9134-4228-8198-F099C435F013",
  1185. "extProps": {}
  1186. },
  1187. {
  1188. "defKey": "created_by",
  1189. "defName": "创建人",
  1190. "comment": "",
  1191. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1192. "type": "VARCHAR",
  1193. "len": "",
  1194. "scale": "",
  1195. "primaryKey": false,
  1196. "notNull": false,
  1197. "autoIncrement": false,
  1198. "defaultValue": "",
  1199. "hideInGraph": false,
  1200. "refDict": "",
  1201. "attr1": "",
  1202. "attr2": "",
  1203. "attr3": "",
  1204. "attr4": "",
  1205. "attr5": "",
  1206. "attr6": "",
  1207. "attr7": "",
  1208. "attr8": "",
  1209. "attr9": "",
  1210. "id": "45C89595-31DF-4F10-9830-E3E5E72314F2",
  1211. "extProps": {}
  1212. },
  1213. {
  1214. "defKey": "created_at",
  1215. "defName": "创建时间",
  1216. "comment": "",
  1217. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1218. "type": "DATETIME",
  1219. "len": "",
  1220. "scale": "",
  1221. "primaryKey": false,
  1222. "notNull": false,
  1223. "autoIncrement": false,
  1224. "defaultValue": "'CURRENT_TIMESTAMP'",
  1225. "hideInGraph": false,
  1226. "refDict": "",
  1227. "attr1": "",
  1228. "attr2": "",
  1229. "attr3": "",
  1230. "attr4": "",
  1231. "attr5": "",
  1232. "attr6": "",
  1233. "attr7": "",
  1234. "attr8": "",
  1235. "attr9": "",
  1236. "id": "098F2A5B-6C2D-431C-A0D6-FD75101087D4",
  1237. "extProps": {}
  1238. },
  1239. {
  1240. "defKey": "updated_by",
  1241. "defName": "更新人",
  1242. "comment": "",
  1243. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1244. "type": "VARCHAR",
  1245. "len": "",
  1246. "scale": "",
  1247. "primaryKey": false,
  1248. "notNull": false,
  1249. "autoIncrement": false,
  1250. "defaultValue": "",
  1251. "hideInGraph": false,
  1252. "refDict": "",
  1253. "attr1": "",
  1254. "attr2": "",
  1255. "attr3": "",
  1256. "attr4": "",
  1257. "attr5": "",
  1258. "attr6": "",
  1259. "attr7": "",
  1260. "attr8": "",
  1261. "attr9": "",
  1262. "id": "AD3805FE-0A30-4FC6-A2F8-0918D073950B",
  1263. "extProps": {}
  1264. },
  1265. {
  1266. "defKey": "updated_at",
  1267. "defName": "更新时间",
  1268. "comment": "",
  1269. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1270. "type": "DATETIME",
  1271. "len": "",
  1272. "scale": "",
  1273. "primaryKey": false,
  1274. "notNull": false,
  1275. "autoIncrement": false,
  1276. "defaultValue": "",
  1277. "hideInGraph": false,
  1278. "refDict": "",
  1279. "attr1": "",
  1280. "attr2": "",
  1281. "attr3": "",
  1282. "attr4": "",
  1283. "attr5": "",
  1284. "attr6": "",
  1285. "attr7": "",
  1286. "attr8": "",
  1287. "attr9": "",
  1288. "id": "9D799E5D-B344-4FB8-A555-EB5AB9EC1FD8",
  1289. "extProps": {}
  1290. },
  1291. {
  1292. "defKey": "deleted",
  1293. "defName": "删除标志",
  1294. "comment": "1删除,0正常",
  1295. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1296. "type": "INT",
  1297. "len": "",
  1298. "scale": "",
  1299. "primaryKey": false,
  1300. "notNull": false,
  1301. "autoIncrement": false,
  1302. "defaultValue": "0",
  1303. "hideInGraph": false,
  1304. "refDict": "",
  1305. "attr1": "",
  1306. "attr2": "",
  1307. "attr3": "",
  1308. "attr4": "",
  1309. "attr5": "",
  1310. "attr6": "",
  1311. "attr7": "",
  1312. "attr8": "",
  1313. "attr9": "",
  1314. "id": "216CB4D9-7FDA-4030-A20C-78B76E8777DC",
  1315. "extProps": {}
  1316. }
  1317. ],
  1318. "indexes": [],
  1319. "nameTemplate": "{defKey}[{defName}]",
  1320. "headers": [
  1321. {
  1322. "freeze": false,
  1323. "refKey": "hideInGraph",
  1324. "hideInGraph": true
  1325. },
  1326. {
  1327. "freeze": true,
  1328. "refKey": "defKey",
  1329. "hideInGraph": false
  1330. },
  1331. {
  1332. "freeze": true,
  1333. "refKey": "defName",
  1334. "hideInGraph": false
  1335. },
  1336. {
  1337. "freeze": false,
  1338. "refKey": "primaryKey",
  1339. "hideInGraph": false
  1340. },
  1341. {
  1342. "freeze": false,
  1343. "refKey": "notNull",
  1344. "hideInGraph": true
  1345. },
  1346. {
  1347. "freeze": false,
  1348. "refKey": "autoIncrement",
  1349. "hideInGraph": true
  1350. },
  1351. {
  1352. "freeze": false,
  1353. "refKey": "domain",
  1354. "hideInGraph": true
  1355. },
  1356. {
  1357. "freeze": false,
  1358. "refKey": "type",
  1359. "hideInGraph": false
  1360. },
  1361. {
  1362. "freeze": false,
  1363. "refKey": "len",
  1364. "hideInGraph": false
  1365. },
  1366. {
  1367. "freeze": false,
  1368. "refKey": "scale",
  1369. "hideInGraph": false
  1370. },
  1371. {
  1372. "freeze": false,
  1373. "refKey": "comment",
  1374. "hideInGraph": true
  1375. },
  1376. {
  1377. "freeze": false,
  1378. "refKey": "refDict",
  1379. "hideInGraph": true
  1380. },
  1381. {
  1382. "freeze": false,
  1383. "refKey": "defaultValue",
  1384. "hideInGraph": true
  1385. },
  1386. {
  1387. "freeze": false,
  1388. "refKey": "isStandard",
  1389. "hideInGraph": false
  1390. },
  1391. {
  1392. "freeze": false,
  1393. "refKey": "uiHint",
  1394. "hideInGraph": true
  1395. },
  1396. {
  1397. "freeze": false,
  1398. "refKey": "extProps",
  1399. "hideInGraph": true
  1400. }
  1401. ],
  1402. "correlations": []
  1403. },
  1404. {
  1405. "id": "EA79AAAF-A9AA-4134-AD73-B8B3B997792E",
  1406. "defKey": "fx_tenant",
  1407. "defName": "租户表",
  1408. "comment": "",
  1409. "properties": {},
  1410. "fields": [
  1411. {
  1412. "defKey": "tenant_id",
  1413. "defName": "租户号",
  1414. "comment": "",
  1415. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1416. "type": "VARCHAR",
  1417. "len": "",
  1418. "scale": "",
  1419. "primaryKey": true,
  1420. "notNull": true,
  1421. "autoIncrement": false,
  1422. "defaultValue": "",
  1423. "hideInGraph": false,
  1424. "refDict": "",
  1425. "attr1": "",
  1426. "attr2": "",
  1427. "attr3": "",
  1428. "attr4": "",
  1429. "attr5": "",
  1430. "attr6": "",
  1431. "attr7": "",
  1432. "attr8": "",
  1433. "attr9": "",
  1434. "id": "043CD81C-74E7-4081-B558-5414B9394013",
  1435. "extProps": {}
  1436. },
  1437. {
  1438. "defKey": "tenant_code",
  1439. "defName": "租户编号",
  1440. "comment": "",
  1441. "domain": "",
  1442. "type": "VARCHAR",
  1443. "len": 64,
  1444. "scale": "",
  1445. "primaryKey": false,
  1446. "notNull": false,
  1447. "autoIncrement": false,
  1448. "defaultValue": "",
  1449. "hideInGraph": false,
  1450. "refDict": "",
  1451. "attr1": "",
  1452. "attr2": "",
  1453. "attr3": "",
  1454. "attr4": "",
  1455. "attr5": "",
  1456. "attr6": "",
  1457. "attr7": "",
  1458. "attr8": "",
  1459. "attr9": "",
  1460. "id": "2B98465F-6973-441F-A32C-E8D7C5428512",
  1461. "extProps": {}
  1462. },
  1463. {
  1464. "defKey": "tenant_name",
  1465. "defName": "租户名称",
  1466. "comment": "",
  1467. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1468. "type": "VARCHAR",
  1469. "len": "",
  1470. "scale": "",
  1471. "primaryKey": false,
  1472. "notNull": false,
  1473. "autoIncrement": false,
  1474. "defaultValue": "",
  1475. "hideInGraph": false,
  1476. "refDict": "",
  1477. "attr1": "",
  1478. "attr2": "",
  1479. "attr3": "",
  1480. "attr4": "",
  1481. "attr5": "",
  1482. "attr6": "",
  1483. "attr7": "",
  1484. "attr8": "",
  1485. "attr9": "",
  1486. "id": "CE3DEC93-7440-49E6-BFA6-3374560D9CAF",
  1487. "extProps": {}
  1488. },
  1489. {
  1490. "defKey": "start_time",
  1491. "defName": "开始时间",
  1492. "comment": "",
  1493. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1494. "type": "DATETIME",
  1495. "len": "",
  1496. "scale": "",
  1497. "primaryKey": false,
  1498. "notNull": false,
  1499. "autoIncrement": false,
  1500. "defaultValue": "",
  1501. "hideInGraph": false,
  1502. "refDict": "",
  1503. "attr1": "",
  1504. "attr2": "",
  1505. "attr3": "",
  1506. "attr4": "",
  1507. "attr5": "",
  1508. "attr6": "",
  1509. "attr7": "",
  1510. "attr8": "",
  1511. "attr9": "",
  1512. "id": "D79F457A-1645-42AC-A94B-36BB092E3FAC",
  1513. "extProps": {}
  1514. },
  1515. {
  1516. "defKey": "end_time",
  1517. "defName": "结束时间",
  1518. "comment": "",
  1519. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1520. "type": "DATETIME",
  1521. "len": "",
  1522. "scale": "",
  1523. "primaryKey": false,
  1524. "notNull": false,
  1525. "autoIncrement": false,
  1526. "defaultValue": "",
  1527. "hideInGraph": false,
  1528. "refDict": "",
  1529. "attr1": "",
  1530. "attr2": "",
  1531. "attr3": "",
  1532. "attr4": "",
  1533. "attr5": "",
  1534. "attr6": "",
  1535. "attr7": "",
  1536. "attr8": "",
  1537. "attr9": "",
  1538. "id": "61A3C820-29CB-41AB-8CF4-2A3A7CFD6B6D",
  1539. "extProps": {}
  1540. },
  1541. {
  1542. "defKey": "manager",
  1543. "defName": "管理员名称",
  1544. "comment": "",
  1545. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  1546. "type": "VARCHAR",
  1547. "len": "",
  1548. "scale": "",
  1549. "primaryKey": false,
  1550. "notNull": false,
  1551. "autoIncrement": false,
  1552. "defaultValue": "",
  1553. "hideInGraph": false,
  1554. "refDict": "",
  1555. "attr1": "",
  1556. "attr2": "",
  1557. "attr3": "",
  1558. "attr4": "",
  1559. "attr5": "",
  1560. "attr6": "",
  1561. "attr7": "",
  1562. "attr8": "",
  1563. "attr9": "",
  1564. "id": "747D07EB-99AE-44DF-8CB2-12E8A6FDB7E3",
  1565. "extProps": {}
  1566. },
  1567. {
  1568. "defKey": "phone",
  1569. "defName": "手机号",
  1570. "comment": "",
  1571. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1572. "type": "VARCHAR",
  1573. "len": "",
  1574. "scale": "",
  1575. "primaryKey": false,
  1576. "notNull": false,
  1577. "autoIncrement": false,
  1578. "defaultValue": "",
  1579. "hideInGraph": false,
  1580. "refDict": "",
  1581. "attr1": "",
  1582. "attr2": "",
  1583. "attr3": "",
  1584. "attr4": "",
  1585. "attr5": "",
  1586. "attr6": "",
  1587. "attr7": "",
  1588. "attr8": "",
  1589. "attr9": "",
  1590. "id": "23EAE826-8169-49E5-A231-36816879B7AD",
  1591. "extProps": {}
  1592. },
  1593. {
  1594. "defKey": "login_id",
  1595. "defName": "关联登录主键",
  1596. "comment": "",
  1597. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1598. "type": "VARCHAR",
  1599. "len": "",
  1600. "scale": "",
  1601. "primaryKey": false,
  1602. "notNull": false,
  1603. "autoIncrement": false,
  1604. "defaultValue": "",
  1605. "hideInGraph": false,
  1606. "refDict": "",
  1607. "attr1": "",
  1608. "attr2": "",
  1609. "attr3": "",
  1610. "attr4": "",
  1611. "attr5": "",
  1612. "attr6": "",
  1613. "attr7": "",
  1614. "attr8": "",
  1615. "attr9": "",
  1616. "id": "DCA97593-7BD0-4C5F-862D-F03ACBDD0F60",
  1617. "extProps": {}
  1618. },
  1619. {
  1620. "defKey": "sort_no",
  1621. "defName": "排序",
  1622. "comment": "",
  1623. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1624. "type": "INT",
  1625. "len": "",
  1626. "scale": "",
  1627. "primaryKey": false,
  1628. "notNull": false,
  1629. "autoIncrement": false,
  1630. "defaultValue": "",
  1631. "hideInGraph": false,
  1632. "refDict": "",
  1633. "attr1": "",
  1634. "attr2": "",
  1635. "attr3": "",
  1636. "attr4": "",
  1637. "attr5": "",
  1638. "attr6": "",
  1639. "attr7": "",
  1640. "attr8": "",
  1641. "attr9": "",
  1642. "id": "A332DA9E-4804-4085-81E2-11D45B05E264",
  1643. "extProps": {}
  1644. },
  1645. {
  1646. "defKey": "status",
  1647. "defName": "状态",
  1648. "comment": "1正常,0未激活,2停用",
  1649. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1650. "type": "INT",
  1651. "len": "",
  1652. "scale": "",
  1653. "primaryKey": false,
  1654. "notNull": false,
  1655. "autoIncrement": false,
  1656. "defaultValue": "",
  1657. "hideInGraph": false,
  1658. "refDict": "",
  1659. "attr1": "",
  1660. "attr2": "",
  1661. "attr3": "",
  1662. "attr4": "",
  1663. "attr5": "",
  1664. "attr6": "",
  1665. "attr7": "",
  1666. "attr8": "",
  1667. "attr9": "",
  1668. "id": "F27BC7F2-36B7-4C40-A3A4-408283B933ED",
  1669. "extProps": {}
  1670. },
  1671. {
  1672. "defKey": "created_by",
  1673. "defName": "创建人",
  1674. "comment": "",
  1675. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1676. "type": "VARCHAR",
  1677. "len": "",
  1678. "scale": "",
  1679. "primaryKey": false,
  1680. "notNull": false,
  1681. "autoIncrement": false,
  1682. "defaultValue": "",
  1683. "hideInGraph": false,
  1684. "refDict": "",
  1685. "attr1": "",
  1686. "attr2": "",
  1687. "attr3": "",
  1688. "attr4": "",
  1689. "attr5": "",
  1690. "attr6": "",
  1691. "attr7": "",
  1692. "attr8": "",
  1693. "attr9": "",
  1694. "id": "4A4481BC-C5E8-48D2-AAF9-B5CD74EC412C",
  1695. "extProps": {}
  1696. },
  1697. {
  1698. "defKey": "created_at",
  1699. "defName": "创建时间",
  1700. "comment": "",
  1701. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1702. "type": "DATETIME",
  1703. "len": "",
  1704. "scale": "",
  1705. "primaryKey": false,
  1706. "notNull": false,
  1707. "autoIncrement": false,
  1708. "defaultValue": "'CURRENT_TIMESTAMP'",
  1709. "hideInGraph": false,
  1710. "refDict": "",
  1711. "attr1": "",
  1712. "attr2": "",
  1713. "attr3": "",
  1714. "attr4": "",
  1715. "attr5": "",
  1716. "attr6": "",
  1717. "attr7": "",
  1718. "attr8": "",
  1719. "attr9": "",
  1720. "id": "EB7D47FB-9FA9-4917-A2B2-B6F7809B708F",
  1721. "extProps": {}
  1722. },
  1723. {
  1724. "defKey": "updated_by",
  1725. "defName": "更新人",
  1726. "comment": "",
  1727. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  1728. "type": "VARCHAR",
  1729. "len": "",
  1730. "scale": "",
  1731. "primaryKey": false,
  1732. "notNull": false,
  1733. "autoIncrement": false,
  1734. "defaultValue": "",
  1735. "hideInGraph": false,
  1736. "refDict": "",
  1737. "attr1": "",
  1738. "attr2": "",
  1739. "attr3": "",
  1740. "attr4": "",
  1741. "attr5": "",
  1742. "attr6": "",
  1743. "attr7": "",
  1744. "attr8": "",
  1745. "attr9": "",
  1746. "id": "D83F2A02-132C-40E7-A059-BBB9D7644D58",
  1747. "extProps": {}
  1748. },
  1749. {
  1750. "defKey": "updated_at",
  1751. "defName": "更新时间",
  1752. "comment": "",
  1753. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  1754. "type": "DATETIME",
  1755. "len": "",
  1756. "scale": "",
  1757. "primaryKey": false,
  1758. "notNull": false,
  1759. "autoIncrement": false,
  1760. "defaultValue": "",
  1761. "hideInGraph": false,
  1762. "refDict": "",
  1763. "attr1": "",
  1764. "attr2": "",
  1765. "attr3": "",
  1766. "attr4": "",
  1767. "attr5": "",
  1768. "attr6": "",
  1769. "attr7": "",
  1770. "attr8": "",
  1771. "attr9": "",
  1772. "id": "2C712352-A6FE-4760-AE3F-C33014836FB3",
  1773. "extProps": {}
  1774. },
  1775. {
  1776. "defKey": "deleted",
  1777. "defName": "删除标志",
  1778. "comment": "1删除,0正常",
  1779. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  1780. "type": "INT",
  1781. "len": "",
  1782. "scale": "",
  1783. "primaryKey": false,
  1784. "notNull": false,
  1785. "autoIncrement": false,
  1786. "defaultValue": "0",
  1787. "hideInGraph": false,
  1788. "refDict": "",
  1789. "attr1": "",
  1790. "attr2": "",
  1791. "attr3": "",
  1792. "attr4": "",
  1793. "attr5": "",
  1794. "attr6": "",
  1795. "attr7": "",
  1796. "attr8": "",
  1797. "attr9": "",
  1798. "id": "34D007AA-7FB5-4635-94EE-253891622D79",
  1799. "extProps": {}
  1800. }
  1801. ],
  1802. "indexes": [],
  1803. "nameTemplate": "{defKey}[{defName}]",
  1804. "headers": [
  1805. {
  1806. "freeze": false,
  1807. "refKey": "hideInGraph",
  1808. "hideInGraph": true
  1809. },
  1810. {
  1811. "freeze": true,
  1812. "refKey": "defKey",
  1813. "hideInGraph": false
  1814. },
  1815. {
  1816. "freeze": true,
  1817. "refKey": "defName",
  1818. "hideInGraph": false
  1819. },
  1820. {
  1821. "freeze": false,
  1822. "refKey": "primaryKey",
  1823. "hideInGraph": false
  1824. },
  1825. {
  1826. "freeze": false,
  1827. "refKey": "notNull",
  1828. "hideInGraph": true
  1829. },
  1830. {
  1831. "freeze": false,
  1832. "refKey": "autoIncrement",
  1833. "hideInGraph": true
  1834. },
  1835. {
  1836. "freeze": false,
  1837. "refKey": "domain",
  1838. "hideInGraph": true
  1839. },
  1840. {
  1841. "freeze": false,
  1842. "refKey": "type",
  1843. "hideInGraph": false
  1844. },
  1845. {
  1846. "freeze": false,
  1847. "refKey": "len",
  1848. "hideInGraph": false
  1849. },
  1850. {
  1851. "freeze": false,
  1852. "refKey": "scale",
  1853. "hideInGraph": false
  1854. },
  1855. {
  1856. "freeze": false,
  1857. "refKey": "comment",
  1858. "hideInGraph": true
  1859. },
  1860. {
  1861. "freeze": false,
  1862. "refKey": "refDict",
  1863. "hideInGraph": true
  1864. },
  1865. {
  1866. "freeze": false,
  1867. "refKey": "defaultValue",
  1868. "hideInGraph": true
  1869. },
  1870. {
  1871. "freeze": false,
  1872. "refKey": "isStandard",
  1873. "hideInGraph": false
  1874. },
  1875. {
  1876. "freeze": false,
  1877. "refKey": "uiHint",
  1878. "hideInGraph": true
  1879. },
  1880. {
  1881. "freeze": false,
  1882. "refKey": "extProps",
  1883. "hideInGraph": true
  1884. }
  1885. ],
  1886. "correlations": []
  1887. },
  1888. {
  1889. "id": "C0E5A961-364C-4D34-ADC3-D0C8817EAF07",
  1890. "defKey": "fx_user",
  1891. "defName": "用户表",
  1892. "comment": "",
  1893. "properties": {},
  1894. "fields": [
  1895. {
  1896. "defKey": "user_id",
  1897. "defName": "用户ID",
  1898. "comment": "",
  1899. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  1900. "type": "VARCHAR",
  1901. "len": "",
  1902. "scale": "",
  1903. "primaryKey": true,
  1904. "notNull": true,
  1905. "autoIncrement": false,
  1906. "defaultValue": "",
  1907. "hideInGraph": false,
  1908. "refDict": "",
  1909. "attr1": "",
  1910. "attr2": "",
  1911. "attr3": "",
  1912. "attr4": "",
  1913. "attr5": "",
  1914. "attr6": "",
  1915. "attr7": "",
  1916. "attr8": "",
  1917. "attr9": "",
  1918. "id": "C249BFBF-4F64-4E88-8A3E-37B8AF9CC41F",
  1919. "extProps": {}
  1920. },
  1921. {
  1922. "defKey": "user_name",
  1923. "defName": "用户名称",
  1924. "comment": "",
  1925. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  1926. "type": "VARCHAR",
  1927. "len": "",
  1928. "scale": "",
  1929. "primaryKey": false,
  1930. "notNull": false,
  1931. "autoIncrement": false,
  1932. "defaultValue": "",
  1933. "hideInGraph": false,
  1934. "refDict": "",
  1935. "attr1": "",
  1936. "attr2": "",
  1937. "attr3": "",
  1938. "attr4": "",
  1939. "attr5": "",
  1940. "attr6": "",
  1941. "attr7": "",
  1942. "attr8": "",
  1943. "attr9": "",
  1944. "id": "1F2BCAAD-F83F-402D-9656-7DA3B091A395",
  1945. "extProps": {}
  1946. },
  1947. {
  1948. "defKey": "avatar",
  1949. "defName": "头像",
  1950. "comment": "",
  1951. "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
  1952. "type": "VARCHAR",
  1953. "len": "",
  1954. "scale": "",
  1955. "primaryKey": false,
  1956. "notNull": false,
  1957. "autoIncrement": false,
  1958. "defaultValue": "",
  1959. "hideInGraph": false,
  1960. "refDict": "",
  1961. "attr1": "",
  1962. "attr2": "",
  1963. "attr3": "",
  1964. "attr4": "",
  1965. "attr5": "",
  1966. "attr6": "",
  1967. "attr7": "",
  1968. "attr8": "",
  1969. "attr9": "",
  1970. "id": "3D26ABFA-CA23-4E23-A8D6-44C64391C8D1",
  1971. "extProps": {}
  1972. },
  1973. {
  1974. "defKey": "phone",
  1975. "defName": "手机",
  1976. "comment": "",
  1977. "domain": "",
  1978. "type": "VARCHAR",
  1979. "len": 20,
  1980. "scale": "",
  1981. "primaryKey": false,
  1982. "notNull": false,
  1983. "autoIncrement": false,
  1984. "defaultValue": "",
  1985. "hideInGraph": false,
  1986. "refDict": "",
  1987. "attr1": "",
  1988. "attr2": "",
  1989. "attr3": "",
  1990. "attr4": "",
  1991. "attr5": "",
  1992. "attr6": "",
  1993. "attr7": "",
  1994. "attr8": "",
  1995. "attr9": "",
  1996. "id": "955C6DA0-EE42-4C61-A615-C84A65BFEBE4",
  1997. "extProps": {}
  1998. },
  1999. {
  2000. "defKey": "position_id",
  2001. "defName": "岗位ID",
  2002. "comment": "",
  2003. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2004. "type": "VARCHAR",
  2005. "len": "",
  2006. "scale": "",
  2007. "primaryKey": false,
  2008. "notNull": false,
  2009. "autoIncrement": false,
  2010. "defaultValue": "",
  2011. "hideInGraph": false,
  2012. "refDict": "",
  2013. "attr1": "",
  2014. "attr2": "",
  2015. "attr3": "",
  2016. "attr4": "",
  2017. "attr5": "",
  2018. "attr6": "",
  2019. "attr7": "",
  2020. "attr8": "",
  2021. "attr9": "",
  2022. "id": "4EE1EBB0-4DE2-46E5-A684-263773596B68",
  2023. "extProps": {}
  2024. },
  2025. {
  2026. "defKey": "dept_id",
  2027. "defName": "部门ID",
  2028. "comment": "",
  2029. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2030. "type": "VARCHAR",
  2031. "len": "",
  2032. "scale": "",
  2033. "primaryKey": false,
  2034. "notNull": false,
  2035. "autoIncrement": false,
  2036. "defaultValue": "",
  2037. "hideInGraph": false,
  2038. "refDict": "",
  2039. "attr1": "",
  2040. "attr2": "",
  2041. "attr3": "",
  2042. "attr4": "",
  2043. "attr5": "",
  2044. "attr6": "",
  2045. "attr7": "",
  2046. "attr8": "",
  2047. "attr9": "",
  2048. "id": "275C2F60-822D-42C3-A3A8-EA549E4131C0",
  2049. "extProps": {}
  2050. },
  2051. {
  2052. "defKey": "status",
  2053. "defName": "状态",
  2054. "comment": "",
  2055. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2056. "type": "INT",
  2057. "len": "",
  2058. "scale": "",
  2059. "primaryKey": false,
  2060. "notNull": false,
  2061. "autoIncrement": false,
  2062. "defaultValue": "1",
  2063. "hideInGraph": false,
  2064. "refDict": "",
  2065. "attr1": "",
  2066. "attr2": "",
  2067. "attr3": "",
  2068. "attr4": "",
  2069. "attr5": "",
  2070. "attr6": "",
  2071. "attr7": "",
  2072. "attr8": "",
  2073. "attr9": "",
  2074. "id": "E8B6AB82-64FC-4917-A0AD-5944537213E8",
  2075. "extProps": {}
  2076. },
  2077. {
  2078. "defKey": "created_by",
  2079. "defName": "创建人",
  2080. "comment": "",
  2081. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2082. "type": "VARCHAR",
  2083. "len": "",
  2084. "scale": "",
  2085. "primaryKey": false,
  2086. "notNull": false,
  2087. "autoIncrement": false,
  2088. "defaultValue": "",
  2089. "hideInGraph": false,
  2090. "refDict": "",
  2091. "attr1": "",
  2092. "attr2": "",
  2093. "attr3": "",
  2094. "attr4": "",
  2095. "attr5": "",
  2096. "attr6": "",
  2097. "attr7": "",
  2098. "attr8": "",
  2099. "attr9": "",
  2100. "id": "85AE3ACC-AA47-4D30-9477-C50276AF997B",
  2101. "extProps": {}
  2102. },
  2103. {
  2104. "defKey": "created_at",
  2105. "defName": "创建时间",
  2106. "comment": "",
  2107. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2108. "type": "DATETIME",
  2109. "len": "",
  2110. "scale": "",
  2111. "primaryKey": false,
  2112. "notNull": false,
  2113. "autoIncrement": false,
  2114. "defaultValue": "'CURRENT_TIMESTAMP'",
  2115. "hideInGraph": false,
  2116. "refDict": "",
  2117. "attr1": "",
  2118. "attr2": "",
  2119. "attr3": "",
  2120. "attr4": "",
  2121. "attr5": "",
  2122. "attr6": "",
  2123. "attr7": "",
  2124. "attr8": "",
  2125. "attr9": "",
  2126. "id": "853E319F-37A1-45FD-AE32-7F7A1BEEBE3F",
  2127. "extProps": {}
  2128. },
  2129. {
  2130. "defKey": "updated_by",
  2131. "defName": "更新人",
  2132. "comment": "",
  2133. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2134. "type": "VARCHAR",
  2135. "len": "",
  2136. "scale": "",
  2137. "primaryKey": false,
  2138. "notNull": false,
  2139. "autoIncrement": false,
  2140. "defaultValue": "",
  2141. "hideInGraph": false,
  2142. "refDict": "",
  2143. "attr1": "",
  2144. "attr2": "",
  2145. "attr3": "",
  2146. "attr4": "",
  2147. "attr5": "",
  2148. "attr6": "",
  2149. "attr7": "",
  2150. "attr8": "",
  2151. "attr9": "",
  2152. "id": "7697B59E-3265-40DF-8AC5-243718C669AE",
  2153. "extProps": {}
  2154. },
  2155. {
  2156. "defKey": "updated_at",
  2157. "defName": "更新时间",
  2158. "comment": "",
  2159. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2160. "type": "DATETIME",
  2161. "len": "",
  2162. "scale": "",
  2163. "primaryKey": false,
  2164. "notNull": false,
  2165. "autoIncrement": false,
  2166. "defaultValue": "",
  2167. "hideInGraph": false,
  2168. "refDict": "",
  2169. "attr1": "",
  2170. "attr2": "",
  2171. "attr3": "",
  2172. "attr4": "",
  2173. "attr5": "",
  2174. "attr6": "",
  2175. "attr7": "",
  2176. "attr8": "",
  2177. "attr9": "",
  2178. "id": "66EBFE25-3A0A-476E-AC85-FB2036302AEF",
  2179. "extProps": {}
  2180. },
  2181. {
  2182. "defKey": "deleted",
  2183. "defName": "删除标志",
  2184. "comment": "1删除,0正常",
  2185. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2186. "type": "INT",
  2187. "len": "",
  2188. "scale": "",
  2189. "primaryKey": false,
  2190. "notNull": false,
  2191. "autoIncrement": false,
  2192. "defaultValue": "0",
  2193. "hideInGraph": false,
  2194. "refDict": "",
  2195. "attr1": "",
  2196. "attr2": "",
  2197. "attr3": "",
  2198. "attr4": "",
  2199. "attr5": "",
  2200. "attr6": "",
  2201. "attr7": "",
  2202. "attr8": "",
  2203. "attr9": "",
  2204. "id": "1D37C9BC-9535-4594-9488-FE0F85266AEE",
  2205. "extProps": {}
  2206. }
  2207. ],
  2208. "indexes": [],
  2209. "nameTemplate": "{defKey}[{defName}]",
  2210. "headers": [
  2211. {
  2212. "freeze": false,
  2213. "refKey": "hideInGraph",
  2214. "hideInGraph": true
  2215. },
  2216. {
  2217. "freeze": true,
  2218. "refKey": "defKey",
  2219. "hideInGraph": false
  2220. },
  2221. {
  2222. "freeze": true,
  2223. "refKey": "defName",
  2224. "hideInGraph": false
  2225. },
  2226. {
  2227. "freeze": false,
  2228. "refKey": "primaryKey",
  2229. "hideInGraph": false
  2230. },
  2231. {
  2232. "freeze": false,
  2233. "refKey": "notNull",
  2234. "hideInGraph": true
  2235. },
  2236. {
  2237. "freeze": false,
  2238. "refKey": "autoIncrement",
  2239. "hideInGraph": true
  2240. },
  2241. {
  2242. "freeze": false,
  2243. "refKey": "domain",
  2244. "hideInGraph": true
  2245. },
  2246. {
  2247. "freeze": false,
  2248. "refKey": "type",
  2249. "hideInGraph": false
  2250. },
  2251. {
  2252. "freeze": false,
  2253. "refKey": "len",
  2254. "hideInGraph": false
  2255. },
  2256. {
  2257. "freeze": false,
  2258. "refKey": "scale",
  2259. "hideInGraph": false
  2260. },
  2261. {
  2262. "freeze": false,
  2263. "refKey": "comment",
  2264. "hideInGraph": true
  2265. },
  2266. {
  2267. "freeze": false,
  2268. "refKey": "refDict",
  2269. "hideInGraph": true
  2270. },
  2271. {
  2272. "freeze": false,
  2273. "refKey": "defaultValue",
  2274. "hideInGraph": true
  2275. },
  2276. {
  2277. "freeze": false,
  2278. "refKey": "isStandard",
  2279. "hideInGraph": false
  2280. },
  2281. {
  2282. "freeze": false,
  2283. "refKey": "uiHint",
  2284. "hideInGraph": true
  2285. },
  2286. {
  2287. "freeze": false,
  2288. "refKey": "extProps",
  2289. "hideInGraph": true
  2290. }
  2291. ],
  2292. "correlations": []
  2293. },
  2294. {
  2295. "id": "A313DF48-DC14-4DE3-9C7B-FD9E89DAB5D3",
  2296. "defKey": "sys_log",
  2297. "defName": "系统日志",
  2298. "comment": "",
  2299. "properties": {},
  2300. "fields": [
  2301. {
  2302. "defKey": "log_id",
  2303. "defName": "日志ID",
  2304. "comment": "",
  2305. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2306. "type": "VARCHAR",
  2307. "len": "",
  2308. "scale": "",
  2309. "primaryKey": true,
  2310. "notNull": true,
  2311. "autoIncrement": false,
  2312. "defaultValue": "",
  2313. "hideInGraph": false,
  2314. "refDict": "",
  2315. "attr1": "",
  2316. "attr2": "",
  2317. "attr3": "",
  2318. "attr4": "",
  2319. "attr5": "",
  2320. "attr6": "",
  2321. "attr7": "",
  2322. "attr8": "",
  2323. "attr9": "",
  2324. "id": "1D3145C9-D492-4D89-BFF0-64A920AF1990",
  2325. "extProps": {}
  2326. },
  2327. {
  2328. "defKey": "login_id",
  2329. "defName": "登录ID",
  2330. "comment": "",
  2331. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2332. "type": "VARCHAR",
  2333. "len": "",
  2334. "scale": "",
  2335. "primaryKey": false,
  2336. "notNull": false,
  2337. "autoIncrement": false,
  2338. "defaultValue": "",
  2339. "hideInGraph": false,
  2340. "refDict": "",
  2341. "attr1": "",
  2342. "attr2": "",
  2343. "attr3": "",
  2344. "attr4": "",
  2345. "attr5": "",
  2346. "attr6": "",
  2347. "attr7": "",
  2348. "attr8": "",
  2349. "attr9": "",
  2350. "id": "BE0E477C-239C-49E4-AAD8-8636B8B82511",
  2351. "extProps": {}
  2352. },
  2353. {
  2354. "defKey": "user_name",
  2355. "defName": "用户名",
  2356. "comment": "",
  2357. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2358. "type": "VARCHAR",
  2359. "len": "",
  2360. "scale": "",
  2361. "primaryKey": false,
  2362. "notNull": false,
  2363. "autoIncrement": false,
  2364. "defaultValue": "",
  2365. "hideInGraph": false,
  2366. "refDict": "",
  2367. "attr1": "",
  2368. "attr2": "",
  2369. "attr3": "",
  2370. "attr4": "",
  2371. "attr5": "",
  2372. "attr6": "",
  2373. "attr7": "",
  2374. "attr8": "",
  2375. "attr9": "",
  2376. "id": "43D4A717-CF29-4237-BB87-F2F9A1307EB5",
  2377. "extProps": {}
  2378. },
  2379. {
  2380. "defKey": "module_name",
  2381. "defName": "模块名称",
  2382. "comment": "",
  2383. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2384. "type": "VARCHAR",
  2385. "len": "",
  2386. "scale": "",
  2387. "primaryKey": false,
  2388. "notNull": false,
  2389. "autoIncrement": false,
  2390. "defaultValue": "",
  2391. "hideInGraph": false,
  2392. "refDict": "",
  2393. "attr1": "",
  2394. "attr2": "",
  2395. "attr3": "",
  2396. "attr4": "",
  2397. "attr5": "",
  2398. "attr6": "",
  2399. "attr7": "",
  2400. "attr8": "",
  2401. "attr9": "",
  2402. "id": "628EE5A3-2A4E-4252-A49B-71B4B4C6A95F",
  2403. "extProps": {}
  2404. },
  2405. {
  2406. "defKey": "uri",
  2407. "defName": "访问路径",
  2408. "comment": "",
  2409. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2410. "type": "VARCHAR",
  2411. "len": "",
  2412. "scale": "",
  2413. "primaryKey": false,
  2414. "notNull": false,
  2415. "autoIncrement": false,
  2416. "defaultValue": "",
  2417. "hideInGraph": false,
  2418. "refDict": "",
  2419. "attr1": "",
  2420. "attr2": "",
  2421. "attr3": "",
  2422. "attr4": "",
  2423. "attr5": "",
  2424. "attr6": "",
  2425. "attr7": "",
  2426. "attr8": "",
  2427. "attr9": "",
  2428. "id": "F81E02B4-7FC2-4239-AADA-C8BE8659D8B2",
  2429. "extProps": {}
  2430. },
  2431. {
  2432. "defKey": "action",
  2433. "defName": "操作内容",
  2434. "comment": "",
  2435. "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
  2436. "type": "VARCHAR",
  2437. "len": "",
  2438. "scale": "",
  2439. "primaryKey": false,
  2440. "notNull": false,
  2441. "autoIncrement": false,
  2442. "defaultValue": "",
  2443. "hideInGraph": false,
  2444. "refDict": "",
  2445. "attr1": "",
  2446. "attr2": "",
  2447. "attr3": "",
  2448. "attr4": "",
  2449. "attr5": "",
  2450. "attr6": "",
  2451. "attr7": "",
  2452. "attr8": "",
  2453. "attr9": "",
  2454. "id": "21A9D0FF-EB9B-4AA9-A628-2F0C114AD552",
  2455. "extProps": {}
  2456. },
  2457. {
  2458. "defKey": "desc",
  2459. "defName": "操作详情",
  2460. "comment": "",
  2461. "domain": "",
  2462. "type": "TEXT",
  2463. "len": "",
  2464. "scale": "",
  2465. "primaryKey": false,
  2466. "notNull": false,
  2467. "autoIncrement": false,
  2468. "defaultValue": "",
  2469. "hideInGraph": false,
  2470. "refDict": "",
  2471. "attr1": "",
  2472. "attr2": "",
  2473. "attr3": "",
  2474. "attr4": "",
  2475. "attr5": "",
  2476. "attr6": "",
  2477. "attr7": "",
  2478. "attr8": "",
  2479. "attr9": "",
  2480. "id": "CCAD859F-0E38-4E65-9176-60C57F850088",
  2481. "extProps": {}
  2482. },
  2483. {
  2484. "defKey": "ip",
  2485. "defName": "用户ID",
  2486. "comment": "",
  2487. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2488. "type": "VARCHAR",
  2489. "len": "",
  2490. "scale": "",
  2491. "primaryKey": false,
  2492. "notNull": false,
  2493. "autoIncrement": false,
  2494. "defaultValue": "",
  2495. "hideInGraph": false,
  2496. "refDict": "",
  2497. "attr1": "",
  2498. "attr2": "",
  2499. "attr3": "",
  2500. "attr4": "",
  2501. "attr5": "",
  2502. "attr6": "",
  2503. "attr7": "",
  2504. "attr8": "",
  2505. "attr9": "",
  2506. "id": "4058AE6B-DF62-4A2F-9858-7AE78B153262",
  2507. "extProps": {}
  2508. },
  2509. {
  2510. "defKey": "ua",
  2511. "defName": "User Agent",
  2512. "comment": "",
  2513. "domain": "",
  2514. "type": "VARCHAR",
  2515. "len": 2000,
  2516. "scale": "",
  2517. "primaryKey": false,
  2518. "notNull": false,
  2519. "autoIncrement": false,
  2520. "defaultValue": "",
  2521. "hideInGraph": false,
  2522. "refDict": "",
  2523. "attr1": "",
  2524. "attr2": "",
  2525. "attr3": "",
  2526. "attr4": "",
  2527. "attr5": "",
  2528. "attr6": "",
  2529. "attr7": "",
  2530. "attr8": "",
  2531. "attr9": "",
  2532. "id": "E5AE5D5A-FABE-4996-B0BC-31354CE8EE76",
  2533. "extProps": {}
  2534. },
  2535. {
  2536. "defKey": "client_type",
  2537. "defName": "终端类型",
  2538. "comment": "",
  2539. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2540. "type": "VARCHAR",
  2541. "len": "",
  2542. "scale": "",
  2543. "primaryKey": false,
  2544. "notNull": false,
  2545. "autoIncrement": false,
  2546. "defaultValue": "",
  2547. "hideInGraph": false,
  2548. "refDict": "",
  2549. "attr1": "",
  2550. "attr2": "",
  2551. "attr3": "",
  2552. "attr4": "",
  2553. "attr5": "",
  2554. "attr6": "",
  2555. "attr7": "",
  2556. "attr8": "",
  2557. "attr9": "",
  2558. "id": "CF29589C-02DC-4D50-AE13-1B75953DEDB9",
  2559. "extProps": {}
  2560. },
  2561. {
  2562. "defKey": "tenant_id",
  2563. "defName": "租户号",
  2564. "comment": "没有租户则代表是平台",
  2565. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2566. "type": "VARCHAR",
  2567. "len": "",
  2568. "scale": "",
  2569. "primaryKey": false,
  2570. "notNull": false,
  2571. "autoIncrement": false,
  2572. "defaultValue": "",
  2573. "hideInGraph": false,
  2574. "refDict": "",
  2575. "attr1": "",
  2576. "attr2": "",
  2577. "attr3": "",
  2578. "attr4": "",
  2579. "attr5": "",
  2580. "attr6": "",
  2581. "attr7": "",
  2582. "attr8": "",
  2583. "attr9": "",
  2584. "id": "FD880F42-C6CB-4277-B6B3-452CBA864F24",
  2585. "extProps": {}
  2586. },
  2587. {
  2588. "defKey": "created_by",
  2589. "defName": "创建人",
  2590. "comment": "",
  2591. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2592. "type": "VARCHAR",
  2593. "len": "",
  2594. "scale": "",
  2595. "primaryKey": false,
  2596. "notNull": false,
  2597. "autoIncrement": false,
  2598. "defaultValue": "",
  2599. "hideInGraph": false,
  2600. "refDict": "",
  2601. "attr1": "",
  2602. "attr2": "",
  2603. "attr3": "",
  2604. "attr4": "",
  2605. "attr5": "",
  2606. "attr6": "",
  2607. "attr7": "",
  2608. "attr8": "",
  2609. "attr9": "",
  2610. "id": "48464932-E82B-4140-B1E8-BD51F8C1BEC0",
  2611. "extProps": {}
  2612. },
  2613. {
  2614. "defKey": "created_at",
  2615. "defName": "创建时间",
  2616. "comment": "",
  2617. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2618. "type": "DATETIME",
  2619. "len": "",
  2620. "scale": "",
  2621. "primaryKey": false,
  2622. "notNull": false,
  2623. "autoIncrement": false,
  2624. "defaultValue": "'CURRENT_TIMESTAMP'",
  2625. "hideInGraph": false,
  2626. "refDict": "",
  2627. "attr1": "",
  2628. "attr2": "",
  2629. "attr3": "",
  2630. "attr4": "",
  2631. "attr5": "",
  2632. "attr6": "",
  2633. "attr7": "",
  2634. "attr8": "",
  2635. "attr9": "",
  2636. "id": "5FF5F277-C515-486D-A55B-16C1A3921F6C",
  2637. "extProps": {}
  2638. },
  2639. {
  2640. "defKey": "updated_by",
  2641. "defName": "更新人",
  2642. "comment": "",
  2643. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2644. "type": "VARCHAR",
  2645. "len": "",
  2646. "scale": "",
  2647. "primaryKey": false,
  2648. "notNull": false,
  2649. "autoIncrement": false,
  2650. "defaultValue": "",
  2651. "hideInGraph": false,
  2652. "refDict": "",
  2653. "attr1": "",
  2654. "attr2": "",
  2655. "attr3": "",
  2656. "attr4": "",
  2657. "attr5": "",
  2658. "attr6": "",
  2659. "attr7": "",
  2660. "attr8": "",
  2661. "attr9": "",
  2662. "id": "CB1D11CB-F225-4239-9547-255F456B9332",
  2663. "extProps": {}
  2664. },
  2665. {
  2666. "defKey": "updated_at",
  2667. "defName": "更新时间",
  2668. "comment": "",
  2669. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  2670. "type": "DATETIME",
  2671. "len": "",
  2672. "scale": "",
  2673. "primaryKey": false,
  2674. "notNull": false,
  2675. "autoIncrement": false,
  2676. "defaultValue": "",
  2677. "hideInGraph": false,
  2678. "refDict": "",
  2679. "attr1": "",
  2680. "attr2": "",
  2681. "attr3": "",
  2682. "attr4": "",
  2683. "attr5": "",
  2684. "attr6": "",
  2685. "attr7": "",
  2686. "attr8": "",
  2687. "attr9": "",
  2688. "id": "2D12F12B-3301-44F4-A871-75CE2FC16072",
  2689. "extProps": {}
  2690. },
  2691. {
  2692. "defKey": "deleted",
  2693. "defName": "删除标志",
  2694. "comment": "1删除,0正常",
  2695. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  2696. "type": "INT",
  2697. "len": "",
  2698. "scale": "",
  2699. "primaryKey": false,
  2700. "notNull": false,
  2701. "autoIncrement": false,
  2702. "defaultValue": "0",
  2703. "hideInGraph": false,
  2704. "refDict": "",
  2705. "attr1": "",
  2706. "attr2": "",
  2707. "attr3": "",
  2708. "attr4": "",
  2709. "attr5": "",
  2710. "attr6": "",
  2711. "attr7": "",
  2712. "attr8": "",
  2713. "attr9": "",
  2714. "id": "8138D8CF-7758-415D-8237-7FA4F9AA5BA7",
  2715. "extProps": {}
  2716. }
  2717. ],
  2718. "indexes": [],
  2719. "nameTemplate": "{defKey}[{defName}]",
  2720. "headers": [
  2721. {
  2722. "freeze": false,
  2723. "refKey": "hideInGraph",
  2724. "hideInGraph": true
  2725. },
  2726. {
  2727. "freeze": true,
  2728. "refKey": "defKey",
  2729. "hideInGraph": false
  2730. },
  2731. {
  2732. "freeze": true,
  2733. "refKey": "defName",
  2734. "hideInGraph": false
  2735. },
  2736. {
  2737. "freeze": false,
  2738. "refKey": "primaryKey",
  2739. "hideInGraph": false
  2740. },
  2741. {
  2742. "freeze": false,
  2743. "refKey": "notNull",
  2744. "hideInGraph": true
  2745. },
  2746. {
  2747. "freeze": false,
  2748. "refKey": "autoIncrement",
  2749. "hideInGraph": true
  2750. },
  2751. {
  2752. "freeze": false,
  2753. "refKey": "domain",
  2754. "hideInGraph": true
  2755. },
  2756. {
  2757. "freeze": false,
  2758. "refKey": "type",
  2759. "hideInGraph": false
  2760. },
  2761. {
  2762. "freeze": false,
  2763. "refKey": "len",
  2764. "hideInGraph": false
  2765. },
  2766. {
  2767. "freeze": false,
  2768. "refKey": "scale",
  2769. "hideInGraph": false
  2770. },
  2771. {
  2772. "freeze": false,
  2773. "refKey": "comment",
  2774. "hideInGraph": true
  2775. },
  2776. {
  2777. "freeze": false,
  2778. "refKey": "refDict",
  2779. "hideInGraph": true
  2780. },
  2781. {
  2782. "freeze": false,
  2783. "refKey": "defaultValue",
  2784. "hideInGraph": true
  2785. },
  2786. {
  2787. "freeze": false,
  2788. "refKey": "isStandard",
  2789. "hideInGraph": false
  2790. },
  2791. {
  2792. "freeze": false,
  2793. "refKey": "uiHint",
  2794. "hideInGraph": true
  2795. },
  2796. {
  2797. "freeze": false,
  2798. "refKey": "extProps",
  2799. "hideInGraph": true
  2800. }
  2801. ],
  2802. "correlations": []
  2803. },
  2804. {
  2805. "id": "B4638DE9-1E79-4C27-BCC2-59EC4D2BE9F1",
  2806. "defKey": "sys_login",
  2807. "defName": "登录信息表",
  2808. "comment": "",
  2809. "properties": {},
  2810. "fields": [
  2811. {
  2812. "defKey": "login_id",
  2813. "defName": "登录ID",
  2814. "comment": "",
  2815. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2816. "type": "VARCHAR",
  2817. "len": "",
  2818. "scale": "",
  2819. "primaryKey": true,
  2820. "notNull": true,
  2821. "autoIncrement": false,
  2822. "defaultValue": "",
  2823. "hideInGraph": false,
  2824. "refDict": "",
  2825. "attr1": "",
  2826. "attr2": "",
  2827. "attr3": "",
  2828. "attr4": "",
  2829. "attr5": "",
  2830. "attr6": "",
  2831. "attr7": "",
  2832. "attr8": "",
  2833. "attr9": "",
  2834. "id": "5DBAF5F5-AD7F-4E42-9F44-71AACAE4118F",
  2835. "extProps": {}
  2836. },
  2837. {
  2838. "defKey": "user_id",
  2839. "defName": "用户ID",
  2840. "comment": "",
  2841. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2842. "type": "VARCHAR",
  2843. "len": "",
  2844. "scale": "",
  2845. "primaryKey": false,
  2846. "notNull": false,
  2847. "autoIncrement": false,
  2848. "defaultValue": "",
  2849. "hideInGraph": false,
  2850. "refDict": "",
  2851. "attr1": "",
  2852. "attr2": "",
  2853. "attr3": "",
  2854. "attr4": "",
  2855. "attr5": "",
  2856. "attr6": "",
  2857. "attr7": "",
  2858. "attr8": "",
  2859. "attr9": "",
  2860. "id": "BA9A5B79-78E0-4F36-81E1-07611A2D3E11",
  2861. "extProps": {}
  2862. },
  2863. {
  2864. "defKey": "login_type",
  2865. "defName": "登录类型",
  2866. "comment": "",
  2867. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  2868. "type": "VARCHAR",
  2869. "len": "",
  2870. "scale": "",
  2871. "primaryKey": false,
  2872. "notNull": false,
  2873. "autoIncrement": false,
  2874. "defaultValue": "",
  2875. "hideInGraph": false,
  2876. "refDict": "",
  2877. "attr1": "",
  2878. "attr2": "",
  2879. "attr3": "",
  2880. "attr4": "",
  2881. "attr5": "",
  2882. "attr6": "",
  2883. "attr7": "",
  2884. "attr8": "",
  2885. "attr9": "",
  2886. "id": "6B55E272-DAC0-402D-B30B-5133CD210DD2",
  2887. "extProps": {}
  2888. },
  2889. {
  2890. "defKey": "login_name",
  2891. "defName": "登录名",
  2892. "comment": "",
  2893. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2894. "type": "VARCHAR",
  2895. "len": "",
  2896. "scale": "",
  2897. "primaryKey": false,
  2898. "notNull": false,
  2899. "autoIncrement": false,
  2900. "defaultValue": "",
  2901. "hideInGraph": false,
  2902. "refDict": "",
  2903. "attr1": "",
  2904. "attr2": "",
  2905. "attr3": "",
  2906. "attr4": "",
  2907. "attr5": "",
  2908. "attr6": "",
  2909. "attr7": "",
  2910. "attr8": "",
  2911. "attr9": "",
  2912. "id": "D6CE68E3-2DC2-4F0F-A529-39F6F01E2DA3",
  2913. "extProps": {}
  2914. },
  2915. {
  2916. "defKey": "password",
  2917. "defName": "密码",
  2918. "comment": "",
  2919. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2920. "type": "VARCHAR",
  2921. "len": "",
  2922. "scale": "",
  2923. "primaryKey": false,
  2924. "notNull": false,
  2925. "autoIncrement": false,
  2926. "defaultValue": "",
  2927. "hideInGraph": false,
  2928. "refDict": "",
  2929. "attr1": "",
  2930. "attr2": "",
  2931. "attr3": "",
  2932. "attr4": "",
  2933. "attr5": "",
  2934. "attr6": "",
  2935. "attr7": "",
  2936. "attr8": "",
  2937. "attr9": "",
  2938. "id": "4361FDB9-4BA6-4FDE-A925-6D121B44C93E",
  2939. "extProps": {}
  2940. },
  2941. {
  2942. "defKey": "invitation_code",
  2943. "defName": "邀请码",
  2944. "comment": "",
  2945. "type": "",
  2946. "len": "",
  2947. "scale": "",
  2948. "primaryKey": false,
  2949. "notNull": false,
  2950. "autoIncrement": false,
  2951. "defaultValue": "",
  2952. "hideInGraph": false,
  2953. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2954. "refDict": "",
  2955. "extProps": {},
  2956. "notes": {},
  2957. "attr1": "",
  2958. "attr2": "",
  2959. "attr3": "",
  2960. "attr4": "",
  2961. "attr5": "",
  2962. "attr6": "",
  2963. "attr7": "",
  2964. "attr8": "",
  2965. "attr9": "",
  2966. "id": "FF00B5B0-8A09-4EEF-8F62-C11E38200D66"
  2967. },
  2968. {
  2969. "defKey": "wx_num",
  2970. "defName": "微信号",
  2971. "comment": "",
  2972. "type": "",
  2973. "len": "",
  2974. "scale": "",
  2975. "primaryKey": false,
  2976. "notNull": false,
  2977. "autoIncrement": false,
  2978. "defaultValue": "",
  2979. "hideInGraph": false,
  2980. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  2981. "refDict": "",
  2982. "extProps": {},
  2983. "notes": {},
  2984. "attr1": "",
  2985. "attr2": "",
  2986. "attr3": "",
  2987. "attr4": "",
  2988. "attr5": "",
  2989. "attr6": "",
  2990. "attr7": "",
  2991. "attr8": "",
  2992. "attr9": "",
  2993. "id": "6C1EEE26-71EB-45CB-868F-ADCAB56CFFC1"
  2994. },
  2995. {
  2996. "defKey": "status",
  2997. "defName": "状态",
  2998. "comment": "1正常",
  2999. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3000. "type": "INT",
  3001. "len": "",
  3002. "scale": "",
  3003. "primaryKey": false,
  3004. "notNull": false,
  3005. "autoIncrement": false,
  3006. "defaultValue": "1",
  3007. "hideInGraph": false,
  3008. "refDict": "",
  3009. "attr1": "",
  3010. "attr2": "",
  3011. "attr3": "",
  3012. "attr4": "",
  3013. "attr5": "",
  3014. "attr6": "",
  3015. "attr7": "",
  3016. "attr8": "",
  3017. "attr9": "",
  3018. "id": "364C540E-21E6-42D6-BEBC-E152AA257DBF",
  3019. "extProps": {}
  3020. },
  3021. {
  3022. "defKey": "tenant_id",
  3023. "defName": "租户号",
  3024. "comment": "",
  3025. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3026. "type": "VARCHAR",
  3027. "len": "",
  3028. "scale": "",
  3029. "primaryKey": false,
  3030. "notNull": false,
  3031. "autoIncrement": false,
  3032. "defaultValue": "",
  3033. "hideInGraph": false,
  3034. "refDict": "",
  3035. "attr1": "",
  3036. "attr2": "",
  3037. "attr3": "",
  3038. "attr4": "",
  3039. "attr5": "",
  3040. "attr6": "",
  3041. "attr7": "",
  3042. "attr8": "",
  3043. "attr9": "",
  3044. "id": "CA5F245C-53F1-45A3-B918-22F3AFA5F7A9",
  3045. "extProps": {}
  3046. },
  3047. {
  3048. "defKey": "created_by",
  3049. "defName": "创建人",
  3050. "comment": "",
  3051. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3052. "type": "VARCHAR",
  3053. "len": "",
  3054. "scale": "",
  3055. "primaryKey": false,
  3056. "notNull": false,
  3057. "autoIncrement": false,
  3058. "defaultValue": "",
  3059. "hideInGraph": false,
  3060. "refDict": "",
  3061. "attr1": "",
  3062. "attr2": "",
  3063. "attr3": "",
  3064. "attr4": "",
  3065. "attr5": "",
  3066. "attr6": "",
  3067. "attr7": "",
  3068. "attr8": "",
  3069. "attr9": "",
  3070. "id": "D1EEEBCA-FFC0-4E39-973A-A6244C1F0195",
  3071. "extProps": {}
  3072. },
  3073. {
  3074. "defKey": "created_at",
  3075. "defName": "创建时间",
  3076. "comment": "",
  3077. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3078. "type": "DATETIME",
  3079. "len": "",
  3080. "scale": "",
  3081. "primaryKey": false,
  3082. "notNull": false,
  3083. "autoIncrement": false,
  3084. "defaultValue": "'CURRENT_TIMESTAMP'",
  3085. "hideInGraph": false,
  3086. "refDict": "",
  3087. "attr1": "",
  3088. "attr2": "",
  3089. "attr3": "",
  3090. "attr4": "",
  3091. "attr5": "",
  3092. "attr6": "",
  3093. "attr7": "",
  3094. "attr8": "",
  3095. "attr9": "",
  3096. "id": "9B4F3541-3F80-44F9-92B9-434425A53C4A",
  3097. "extProps": {}
  3098. },
  3099. {
  3100. "defKey": "updated_by",
  3101. "defName": "更新人",
  3102. "comment": "",
  3103. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3104. "type": "VARCHAR",
  3105. "len": "",
  3106. "scale": "",
  3107. "primaryKey": false,
  3108. "notNull": false,
  3109. "autoIncrement": false,
  3110. "defaultValue": "",
  3111. "hideInGraph": false,
  3112. "refDict": "",
  3113. "attr1": "",
  3114. "attr2": "",
  3115. "attr3": "",
  3116. "attr4": "",
  3117. "attr5": "",
  3118. "attr6": "",
  3119. "attr7": "",
  3120. "attr8": "",
  3121. "attr9": "",
  3122. "id": "2CDB20E7-259E-4140-A3E7-A4EE561EA901",
  3123. "extProps": {}
  3124. },
  3125. {
  3126. "defKey": "updated_at",
  3127. "defName": "更新时间",
  3128. "comment": "",
  3129. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3130. "type": "DATETIME",
  3131. "len": "",
  3132. "scale": "",
  3133. "primaryKey": false,
  3134. "notNull": false,
  3135. "autoIncrement": false,
  3136. "defaultValue": "",
  3137. "hideInGraph": false,
  3138. "refDict": "",
  3139. "attr1": "",
  3140. "attr2": "",
  3141. "attr3": "",
  3142. "attr4": "",
  3143. "attr5": "",
  3144. "attr6": "",
  3145. "attr7": "",
  3146. "attr8": "",
  3147. "attr9": "",
  3148. "id": "BB35B7D3-44DE-4862-829E-9241256A8A51",
  3149. "extProps": {}
  3150. },
  3151. {
  3152. "defKey": "deleted",
  3153. "defName": "删除标志",
  3154. "comment": "1删除,0正常",
  3155. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3156. "type": "INT",
  3157. "len": "",
  3158. "scale": "",
  3159. "primaryKey": false,
  3160. "notNull": false,
  3161. "autoIncrement": false,
  3162. "defaultValue": "0",
  3163. "hideInGraph": false,
  3164. "refDict": "",
  3165. "attr1": "",
  3166. "attr2": "",
  3167. "attr3": "",
  3168. "attr4": "",
  3169. "attr5": "",
  3170. "attr6": "",
  3171. "attr7": "",
  3172. "attr8": "",
  3173. "attr9": "",
  3174. "id": "24DC53EC-F6CD-44A2-82A8-162F2B30831C",
  3175. "extProps": {}
  3176. }
  3177. ],
  3178. "indexes": [],
  3179. "nameTemplate": "{defKey}[{defName}]",
  3180. "headers": [
  3181. {
  3182. "freeze": false,
  3183. "refKey": "hideInGraph",
  3184. "hideInGraph": true
  3185. },
  3186. {
  3187. "freeze": true,
  3188. "refKey": "defKey",
  3189. "hideInGraph": false
  3190. },
  3191. {
  3192. "freeze": true,
  3193. "refKey": "defName",
  3194. "hideInGraph": false
  3195. },
  3196. {
  3197. "freeze": false,
  3198. "refKey": "primaryKey",
  3199. "hideInGraph": false
  3200. },
  3201. {
  3202. "freeze": false,
  3203. "refKey": "notNull",
  3204. "hideInGraph": true
  3205. },
  3206. {
  3207. "freeze": false,
  3208. "refKey": "autoIncrement",
  3209. "hideInGraph": true
  3210. },
  3211. {
  3212. "freeze": false,
  3213. "refKey": "domain",
  3214. "hideInGraph": true
  3215. },
  3216. {
  3217. "freeze": false,
  3218. "refKey": "type",
  3219. "hideInGraph": false
  3220. },
  3221. {
  3222. "freeze": false,
  3223. "refKey": "len",
  3224. "hideInGraph": false
  3225. },
  3226. {
  3227. "freeze": false,
  3228. "refKey": "scale",
  3229. "hideInGraph": false
  3230. },
  3231. {
  3232. "freeze": false,
  3233. "refKey": "comment",
  3234. "hideInGraph": true
  3235. },
  3236. {
  3237. "freeze": false,
  3238. "refKey": "refDict",
  3239. "hideInGraph": true
  3240. },
  3241. {
  3242. "freeze": false,
  3243. "refKey": "defaultValue",
  3244. "hideInGraph": true
  3245. },
  3246. {
  3247. "freeze": false,
  3248. "refKey": "isStandard",
  3249. "hideInGraph": false
  3250. },
  3251. {
  3252. "freeze": false,
  3253. "refKey": "uiHint",
  3254. "hideInGraph": true
  3255. },
  3256. {
  3257. "freeze": false,
  3258. "refKey": "extProps",
  3259. "hideInGraph": true
  3260. }
  3261. ],
  3262. "correlations": [],
  3263. "notes": {}
  3264. },
  3265. {
  3266. "id": "A2FA1930-2C9C-4138-8F4B-21463BC85858",
  3267. "defKey": "sys_user",
  3268. "defName": "用户管理",
  3269. "comment": "",
  3270. "properties": {},
  3271. "fields": [
  3272. {
  3273. "defKey": "user_id",
  3274. "defName": "用户ID",
  3275. "comment": "",
  3276. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3277. "type": "VARCHAR",
  3278. "len": "",
  3279. "scale": "",
  3280. "primaryKey": true,
  3281. "notNull": true,
  3282. "autoIncrement": false,
  3283. "defaultValue": "",
  3284. "hideInGraph": false,
  3285. "refDict": "",
  3286. "attr1": "",
  3287. "attr2": "",
  3288. "attr3": "",
  3289. "attr4": "",
  3290. "attr5": "",
  3291. "attr6": "",
  3292. "attr7": "",
  3293. "attr8": "",
  3294. "attr9": "",
  3295. "id": "EBE1E630-EFB9-40E2-9C5D-3861490478FE",
  3296. "extProps": {}
  3297. },
  3298. {
  3299. "defKey": "user_name",
  3300. "defName": "用户名称",
  3301. "comment": "",
  3302. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  3303. "type": "VARCHAR",
  3304. "len": "",
  3305. "scale": "",
  3306. "primaryKey": false,
  3307. "notNull": false,
  3308. "autoIncrement": false,
  3309. "defaultValue": "",
  3310. "hideInGraph": false,
  3311. "refDict": "",
  3312. "attr1": "",
  3313. "attr2": "",
  3314. "attr3": "",
  3315. "attr4": "",
  3316. "attr5": "",
  3317. "attr6": "",
  3318. "attr7": "",
  3319. "attr8": "",
  3320. "attr9": "",
  3321. "id": "3A7163D6-776E-4723-B605-7961C1FCDCCE",
  3322. "extProps": {}
  3323. },
  3324. {
  3325. "defKey": "avatar",
  3326. "defName": "头像",
  3327. "comment": "",
  3328. "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
  3329. "type": "VARCHAR",
  3330. "len": "",
  3331. "scale": "",
  3332. "primaryKey": false,
  3333. "notNull": false,
  3334. "autoIncrement": false,
  3335. "defaultValue": "",
  3336. "hideInGraph": false,
  3337. "refDict": "",
  3338. "attr1": "",
  3339. "attr2": "",
  3340. "attr3": "",
  3341. "attr4": "",
  3342. "attr5": "",
  3343. "attr6": "",
  3344. "attr7": "",
  3345. "attr8": "",
  3346. "attr9": "",
  3347. "id": "C32AC37A-0A50-4F09-9895-8552B68B4D51",
  3348. "extProps": {}
  3349. },
  3350. {
  3351. "defKey": "invitation_code",
  3352. "defName": "邀请码",
  3353. "comment": "",
  3354. "type": "",
  3355. "len": "",
  3356. "scale": "",
  3357. "primaryKey": false,
  3358. "notNull": false,
  3359. "autoIncrement": false,
  3360. "defaultValue": "",
  3361. "hideInGraph": false,
  3362. "refDict": "",
  3363. "extProps": {},
  3364. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3365. "id": "39865A35-5ECF-4948-8E77-7F62AD89A5DB"
  3366. },
  3367. {
  3368. "defKey": "wx_num",
  3369. "defName": "微信号",
  3370. "comment": "",
  3371. "type": "",
  3372. "len": "",
  3373. "scale": "",
  3374. "primaryKey": false,
  3375. "notNull": false,
  3376. "autoIncrement": false,
  3377. "defaultValue": "",
  3378. "hideInGraph": false,
  3379. "refDict": "",
  3380. "extProps": {},
  3381. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3382. "id": "BEDD55C0-C2D3-42BD-9714-AF4F86CAFBC9"
  3383. },
  3384. {
  3385. "defKey": "email",
  3386. "defName": "邮箱",
  3387. "comment": "",
  3388. "type": "",
  3389. "len": "",
  3390. "scale": "",
  3391. "primaryKey": false,
  3392. "notNull": false,
  3393. "autoIncrement": false,
  3394. "defaultValue": "",
  3395. "hideInGraph": false,
  3396. "refDict": "",
  3397. "extProps": {},
  3398. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3399. "id": "6ADFA1B7-B0B7-490F-B59C-DACCD5A2500E"
  3400. },
  3401. {
  3402. "defKey": "phone",
  3403. "defName": "手机",
  3404. "comment": "",
  3405. "domain": "",
  3406. "type": "VARCHAR",
  3407. "len": 20,
  3408. "scale": "",
  3409. "primaryKey": false,
  3410. "notNull": false,
  3411. "autoIncrement": false,
  3412. "defaultValue": "",
  3413. "hideInGraph": false,
  3414. "refDict": "",
  3415. "attr1": "",
  3416. "attr2": "",
  3417. "attr3": "",
  3418. "attr4": "",
  3419. "attr5": "",
  3420. "attr6": "",
  3421. "attr7": "",
  3422. "attr8": "",
  3423. "attr9": "",
  3424. "id": "524F92E6-A6D2-4839-AC3D-52CCEEF4E0F6",
  3425. "extProps": {}
  3426. },
  3427. {
  3428. "defKey": "position_id",
  3429. "defName": "岗位ID",
  3430. "comment": "",
  3431. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3432. "type": "VARCHAR",
  3433. "len": "",
  3434. "scale": "",
  3435. "primaryKey": false,
  3436. "notNull": false,
  3437. "autoIncrement": false,
  3438. "defaultValue": "",
  3439. "hideInGraph": false,
  3440. "refDict": "",
  3441. "attr1": "",
  3442. "attr2": "",
  3443. "attr3": "",
  3444. "attr4": "",
  3445. "attr5": "",
  3446. "attr6": "",
  3447. "attr7": "",
  3448. "attr8": "",
  3449. "attr9": "",
  3450. "id": "50B16BBA-E3A9-428C-B995-02C45C647612",
  3451. "extProps": {}
  3452. },
  3453. {
  3454. "defKey": "dept_id",
  3455. "defName": "部门ID",
  3456. "comment": "",
  3457. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3458. "type": "VARCHAR",
  3459. "len": "",
  3460. "scale": "",
  3461. "primaryKey": false,
  3462. "notNull": false,
  3463. "autoIncrement": false,
  3464. "defaultValue": "",
  3465. "hideInGraph": false,
  3466. "refDict": "",
  3467. "attr1": "",
  3468. "attr2": "",
  3469. "attr3": "",
  3470. "attr4": "",
  3471. "attr5": "",
  3472. "attr6": "",
  3473. "attr7": "",
  3474. "attr8": "",
  3475. "attr9": "",
  3476. "id": "E80481DC-8E32-4D26-A34D-3F3CD8E31748",
  3477. "extProps": {}
  3478. },
  3479. {
  3480. "defKey": "tag",
  3481. "defName": "标签",
  3482. "comment": "",
  3483. "domain": "",
  3484. "type": "TEXT",
  3485. "len": "",
  3486. "scale": "",
  3487. "primaryKey": false,
  3488. "notNull": false,
  3489. "autoIncrement": false,
  3490. "defaultValue": "",
  3491. "hideInGraph": false,
  3492. "refDict": "",
  3493. "attr1": "",
  3494. "attr2": "",
  3495. "attr3": "",
  3496. "attr4": "",
  3497. "attr5": "",
  3498. "attr6": "",
  3499. "attr7": "",
  3500. "attr8": "",
  3501. "attr9": "",
  3502. "id": "1CF99698-D732-4BA2-9925-437B8CA22ED1",
  3503. "extProps": {}
  3504. },
  3505. {
  3506. "defKey": "status",
  3507. "defName": "状态",
  3508. "comment": "",
  3509. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3510. "type": "INT",
  3511. "len": "",
  3512. "scale": "",
  3513. "primaryKey": false,
  3514. "notNull": false,
  3515. "autoIncrement": false,
  3516. "defaultValue": "1",
  3517. "hideInGraph": false,
  3518. "refDict": "",
  3519. "attr1": "",
  3520. "attr2": "",
  3521. "attr3": "",
  3522. "attr4": "",
  3523. "attr5": "",
  3524. "attr6": "",
  3525. "attr7": "",
  3526. "attr8": "",
  3527. "attr9": "",
  3528. "id": "C9A4B1FC-E64B-40C5-89A1-ADEAAD3E5663",
  3529. "extProps": {}
  3530. },
  3531. {
  3532. "defKey": "is_admin",
  3533. "defName": "是否管理员",
  3534. "comment": "",
  3535. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3536. "type": "INT",
  3537. "len": "",
  3538. "scale": "",
  3539. "primaryKey": false,
  3540. "notNull": false,
  3541. "autoIncrement": false,
  3542. "defaultValue": "0",
  3543. "hideInGraph": false,
  3544. "refDict": "",
  3545. "attr1": "",
  3546. "attr2": "",
  3547. "attr3": "",
  3548. "attr4": "",
  3549. "attr5": "",
  3550. "attr6": "",
  3551. "attr7": "",
  3552. "attr8": "",
  3553. "attr9": "",
  3554. "id": "02A7A625-01FD-4562-8F90-E0F1B903C581",
  3555. "extProps": {}
  3556. },
  3557. {
  3558. "defKey": "tenant_id",
  3559. "defName": "租户号",
  3560. "comment": "",
  3561. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3562. "type": "VARCHAR",
  3563. "len": "",
  3564. "scale": "",
  3565. "primaryKey": false,
  3566. "notNull": false,
  3567. "autoIncrement": false,
  3568. "defaultValue": "",
  3569. "hideInGraph": false,
  3570. "refDict": "",
  3571. "attr1": "",
  3572. "attr2": "",
  3573. "attr3": "",
  3574. "attr4": "",
  3575. "attr5": "",
  3576. "attr6": "",
  3577. "attr7": "",
  3578. "attr8": "",
  3579. "attr9": "",
  3580. "id": "50B693DA-2B3B-45F6-AA6A-7F90AC854C65",
  3581. "extProps": {}
  3582. },
  3583. {
  3584. "defKey": "created_by",
  3585. "defName": "创建人",
  3586. "comment": "",
  3587. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3588. "type": "VARCHAR",
  3589. "len": "",
  3590. "scale": "",
  3591. "primaryKey": false,
  3592. "notNull": false,
  3593. "autoIncrement": false,
  3594. "defaultValue": "",
  3595. "hideInGraph": false,
  3596. "refDict": "",
  3597. "attr1": "",
  3598. "attr2": "",
  3599. "attr3": "",
  3600. "attr4": "",
  3601. "attr5": "",
  3602. "attr6": "",
  3603. "attr7": "",
  3604. "attr8": "",
  3605. "attr9": "",
  3606. "id": "0E4BE40A-1D25-4DFD-802A-61AB96FA7C58",
  3607. "extProps": {}
  3608. },
  3609. {
  3610. "defKey": "created_at",
  3611. "defName": "创建时间",
  3612. "comment": "",
  3613. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3614. "type": "DATETIME",
  3615. "len": "",
  3616. "scale": "",
  3617. "primaryKey": false,
  3618. "notNull": false,
  3619. "autoIncrement": false,
  3620. "defaultValue": "'CURRENT_TIMESTAMP'",
  3621. "hideInGraph": false,
  3622. "refDict": "",
  3623. "attr1": "",
  3624. "attr2": "",
  3625. "attr3": "",
  3626. "attr4": "",
  3627. "attr5": "",
  3628. "attr6": "",
  3629. "attr7": "",
  3630. "attr8": "",
  3631. "attr9": "",
  3632. "id": "0FD0CB9B-ED9D-42EF-84C9-F721C874BBC6",
  3633. "extProps": {}
  3634. },
  3635. {
  3636. "defKey": "updated_by",
  3637. "defName": "更新人",
  3638. "comment": "",
  3639. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  3640. "type": "VARCHAR",
  3641. "len": "",
  3642. "scale": "",
  3643. "primaryKey": false,
  3644. "notNull": false,
  3645. "autoIncrement": false,
  3646. "defaultValue": "",
  3647. "hideInGraph": false,
  3648. "refDict": "",
  3649. "attr1": "",
  3650. "attr2": "",
  3651. "attr3": "",
  3652. "attr4": "",
  3653. "attr5": "",
  3654. "attr6": "",
  3655. "attr7": "",
  3656. "attr8": "",
  3657. "attr9": "",
  3658. "id": "1D187A2B-6698-4032-8EEC-FDC8193BE7E4",
  3659. "extProps": {}
  3660. },
  3661. {
  3662. "defKey": "updated_at",
  3663. "defName": "更新时间",
  3664. "comment": "",
  3665. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  3666. "type": "DATETIME",
  3667. "len": "",
  3668. "scale": "",
  3669. "primaryKey": false,
  3670. "notNull": false,
  3671. "autoIncrement": false,
  3672. "defaultValue": "",
  3673. "hideInGraph": false,
  3674. "refDict": "",
  3675. "attr1": "",
  3676. "attr2": "",
  3677. "attr3": "",
  3678. "attr4": "",
  3679. "attr5": "",
  3680. "attr6": "",
  3681. "attr7": "",
  3682. "attr8": "",
  3683. "attr9": "",
  3684. "id": "7F1BA6B0-FFCC-41C9-8444-C630A60DE9DF",
  3685. "extProps": {}
  3686. },
  3687. {
  3688. "defKey": "deleted",
  3689. "defName": "删除标志",
  3690. "comment": "1删除,0正常",
  3691. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  3692. "type": "INT",
  3693. "len": "",
  3694. "scale": "",
  3695. "primaryKey": false,
  3696. "notNull": false,
  3697. "autoIncrement": false,
  3698. "defaultValue": "0",
  3699. "hideInGraph": false,
  3700. "refDict": "",
  3701. "attr1": "",
  3702. "attr2": "",
  3703. "attr3": "",
  3704. "attr4": "",
  3705. "attr5": "",
  3706. "attr6": "",
  3707. "attr7": "",
  3708. "attr8": "",
  3709. "attr9": "",
  3710. "id": "3E5F54DB-F97B-4613-BBFE-7DC6E018CE4F",
  3711. "extProps": {}
  3712. }
  3713. ],
  3714. "indexes": [],
  3715. "nameTemplate": "{defKey}[{defName}]",
  3716. "headers": [
  3717. {
  3718. "freeze": false,
  3719. "refKey": "hideInGraph",
  3720. "hideInGraph": true
  3721. },
  3722. {
  3723. "freeze": true,
  3724. "refKey": "defKey",
  3725. "hideInGraph": false
  3726. },
  3727. {
  3728. "freeze": true,
  3729. "refKey": "defName",
  3730. "hideInGraph": false
  3731. },
  3732. {
  3733. "freeze": false,
  3734. "refKey": "primaryKey",
  3735. "hideInGraph": false
  3736. },
  3737. {
  3738. "freeze": false,
  3739. "refKey": "notNull",
  3740. "hideInGraph": true
  3741. },
  3742. {
  3743. "freeze": false,
  3744. "refKey": "autoIncrement",
  3745. "hideInGraph": true
  3746. },
  3747. {
  3748. "freeze": false,
  3749. "refKey": "domain",
  3750. "hideInGraph": true
  3751. },
  3752. {
  3753. "freeze": false,
  3754. "refKey": "type",
  3755. "hideInGraph": false
  3756. },
  3757. {
  3758. "freeze": false,
  3759. "refKey": "len",
  3760. "hideInGraph": false
  3761. },
  3762. {
  3763. "freeze": false,
  3764. "refKey": "scale",
  3765. "hideInGraph": false
  3766. },
  3767. {
  3768. "freeze": false,
  3769. "refKey": "comment",
  3770. "hideInGraph": true
  3771. },
  3772. {
  3773. "freeze": false,
  3774. "refKey": "refDict",
  3775. "hideInGraph": true
  3776. },
  3777. {
  3778. "freeze": false,
  3779. "refKey": "defaultValue",
  3780. "hideInGraph": true
  3781. },
  3782. {
  3783. "freeze": false,
  3784. "refKey": "isStandard",
  3785. "hideInGraph": false
  3786. },
  3787. {
  3788. "freeze": false,
  3789. "refKey": "uiHint",
  3790. "hideInGraph": true
  3791. },
  3792. {
  3793. "freeze": false,
  3794. "refKey": "extProps",
  3795. "hideInGraph": true
  3796. }
  3797. ],
  3798. "correlations": [],
  3799. "notes": {}
  3800. },
  3801. {
  3802. "id": "880FA077-9E05-4DC0-BA00-560116009D16",
  3803. "env": {
  3804. "base": {
  3805. "nameSpace": "com.njyunzhi.repository",
  3806. "codeRoot": "SysMenu"
  3807. },
  3808. "template": {
  3809. "JavaMybatisPlus": {
  3810. "Controller": {
  3811. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  3812. "enable": true
  3813. },
  3814. "Service": {
  3815. "suffix": "service/{{=it.codeRoot}}Service.java",
  3816. "enable": true
  3817. },
  3818. "ServiceImpl": {
  3819. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  3820. "enable": true
  3821. },
  3822. "Mapper": {
  3823. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  3824. "enable": true
  3825. },
  3826. "Mapper.xml": {
  3827. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  3828. "enable": true
  3829. },
  3830. "Entity": {
  3831. "suffix": "entity/{{=it.codeRoot}}.java",
  3832. "enable": true
  3833. }
  3834. }
  3835. },
  3836. "custom": {}
  3837. },
  3838. "defKey": "sys_menu",
  3839. "defName": "菜单表",
  3840. "comment": "",
  3841. "properties": {},
  3842. "nameTemplate": "{defKey}[{defName}]",
  3843. "headers": [
  3844. {
  3845. "refKey": "hideInGraph",
  3846. "hideInGraph": true
  3847. },
  3848. {
  3849. "refKey": "defKey",
  3850. "hideInGraph": false
  3851. },
  3852. {
  3853. "refKey": "defName",
  3854. "hideInGraph": false
  3855. },
  3856. {
  3857. "refKey": "primaryKey",
  3858. "hideInGraph": false
  3859. },
  3860. {
  3861. "refKey": "notNull",
  3862. "hideInGraph": true
  3863. },
  3864. {
  3865. "refKey": "autoIncrement",
  3866. "hideInGraph": true
  3867. },
  3868. {
  3869. "refKey": "domain",
  3870. "hideInGraph": true
  3871. },
  3872. {
  3873. "refKey": "type",
  3874. "hideInGraph": false
  3875. },
  3876. {
  3877. "refKey": "len",
  3878. "hideInGraph": false
  3879. },
  3880. {
  3881. "refKey": "scale",
  3882. "hideInGraph": false
  3883. },
  3884. {
  3885. "refKey": "comment",
  3886. "hideInGraph": true
  3887. },
  3888. {
  3889. "refKey": "refDict",
  3890. "hideInGraph": true
  3891. },
  3892. {
  3893. "refKey": "defaultValue",
  3894. "hideInGraph": true
  3895. },
  3896. {
  3897. "refKey": "isStandard",
  3898. "hideInGraph": false
  3899. },
  3900. {
  3901. "refKey": "uiHint",
  3902. "hideInGraph": true
  3903. },
  3904. {
  3905. "refKey": "extProps",
  3906. "hideInGraph": true
  3907. }
  3908. ],
  3909. "fields": [
  3910. {
  3911. "defKey": "menu_id",
  3912. "defName": "菜单ID",
  3913. "comment": "",
  3914. "type": "",
  3915. "len": "",
  3916. "scale": "",
  3917. "primaryKey": true,
  3918. "notNull": true,
  3919. "autoIncrement": false,
  3920. "defaultValue": "",
  3921. "hideInGraph": false,
  3922. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3923. "refDict": null,
  3924. "uiHint": null,
  3925. "id": "659D15F4-01B1-474D-9880-1A56B7F5A075"
  3926. },
  3927. {
  3928. "defKey": "fx_menu_id",
  3929. "defName": "标准菜单ID",
  3930. "comment": "",
  3931. "type": "",
  3932. "len": "",
  3933. "scale": "",
  3934. "primaryKey": false,
  3935. "notNull": false,
  3936. "autoIncrement": false,
  3937. "defaultValue": "",
  3938. "hideInGraph": false,
  3939. "refDict": null,
  3940. "extProps": {},
  3941. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3942. "id": "4E5BB180-0C4F-4CD1-BE82-6483E7F39361",
  3943. "uiHint": null
  3944. },
  3945. {
  3946. "defKey": "menu_code",
  3947. "defName": "菜单编码",
  3948. "comment": "",
  3949. "type": "",
  3950. "len": "",
  3951. "scale": "",
  3952. "primaryKey": false,
  3953. "notNull": false,
  3954. "autoIncrement": false,
  3955. "defaultValue": "",
  3956. "hideInGraph": false,
  3957. "refDict": null,
  3958. "extProps": {},
  3959. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  3960. "id": "7D7BEA34-8227-461C-8630-E48A2F69B494",
  3961. "uiHint": null
  3962. },
  3963. {
  3964. "defKey": "menu_name",
  3965. "defName": "菜单名称",
  3966. "comment": "",
  3967. "type": "",
  3968. "len": "",
  3969. "scale": "",
  3970. "primaryKey": false,
  3971. "notNull": false,
  3972. "autoIncrement": false,
  3973. "defaultValue": "",
  3974. "hideInGraph": false,
  3975. "refDict": null,
  3976. "extProps": {},
  3977. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  3978. "id": "9C2E61A3-D18E-4558-9290-B6D1C37BEF92",
  3979. "uiHint": null
  3980. },
  3981. {
  3982. "defKey": "parent_id",
  3983. "defName": "上级ID",
  3984. "comment": "",
  3985. "type": "",
  3986. "len": "",
  3987. "scale": "",
  3988. "primaryKey": false,
  3989. "notNull": false,
  3990. "autoIncrement": false,
  3991. "defaultValue": "",
  3992. "hideInGraph": false,
  3993. "refDict": null,
  3994. "extProps": {},
  3995. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  3996. "id": "806EB8CA-AE20-4745-8359-E8EAE88071DB",
  3997. "uiHint": null
  3998. },
  3999. {
  4000. "defKey": "sort_no",
  4001. "defName": "排序",
  4002. "comment": "",
  4003. "type": "",
  4004. "len": "",
  4005. "scale": "",
  4006. "primaryKey": false,
  4007. "notNull": false,
  4008. "autoIncrement": false,
  4009. "defaultValue": "",
  4010. "hideInGraph": false,
  4011. "refDict": null,
  4012. "extProps": {},
  4013. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4014. "id": "04130FCC-9AC2-46FE-BB64-D62C0DF42A2F",
  4015. "uiHint": null
  4016. },
  4017. {
  4018. "defKey": "status",
  4019. "defName": "状态",
  4020. "comment": "",
  4021. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4022. "type": "",
  4023. "len": "",
  4024. "scale": "",
  4025. "primaryKey": false,
  4026. "notNull": false,
  4027. "autoIncrement": false,
  4028. "defaultValue": "1",
  4029. "hideInGraph": true,
  4030. "refDict": null,
  4031. "uiHint": null,
  4032. "id": "2C9585D5-7F88-42C3-8A71-0799668C494D"
  4033. },
  4034. {
  4035. "defKey": "module_id",
  4036. "defName": "模块ID",
  4037. "comment": "",
  4038. "type": "",
  4039. "len": "",
  4040. "scale": "",
  4041. "primaryKey": false,
  4042. "notNull": false,
  4043. "autoIncrement": false,
  4044. "defaultValue": "",
  4045. "hideInGraph": true,
  4046. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4047. "refDict": null,
  4048. "extProps": {},
  4049. "notes": {},
  4050. "attr1": "",
  4051. "attr2": "",
  4052. "attr3": "",
  4053. "attr4": "",
  4054. "attr5": "",
  4055. "attr6": "",
  4056. "attr7": "",
  4057. "attr8": "",
  4058. "attr9": "",
  4059. "id": "56D16821-043E-467C-9931-FD15C97F1132",
  4060. "uiHint": null
  4061. },
  4062. {
  4063. "defKey": "tenant_id",
  4064. "defName": "租户号",
  4065. "comment": "",
  4066. "type": "",
  4067. "len": "",
  4068. "scale": "",
  4069. "primaryKey": false,
  4070. "notNull": false,
  4071. "autoIncrement": false,
  4072. "defaultValue": "",
  4073. "hideInGraph": true,
  4074. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4075. "refDict": null,
  4076. "extProps": {},
  4077. "notes": {},
  4078. "attr1": "",
  4079. "attr2": "",
  4080. "attr3": "",
  4081. "attr4": "",
  4082. "attr5": "",
  4083. "attr6": "",
  4084. "attr7": "",
  4085. "attr8": "",
  4086. "attr9": "",
  4087. "id": "C1215BF8-268A-4129-B5B7-56F4627C73C5",
  4088. "uiHint": null
  4089. },
  4090. {
  4091. "defKey": "created_by",
  4092. "defName": "创建人",
  4093. "comment": "",
  4094. "type": "VARCHAR",
  4095. "len": 255,
  4096. "scale": "",
  4097. "primaryKey": false,
  4098. "notNull": false,
  4099. "autoIncrement": false,
  4100. "defaultValue": "",
  4101. "hideInGraph": true,
  4102. "refDict": null,
  4103. "extProps": {},
  4104. "notes": {},
  4105. "attr1": "",
  4106. "attr2": "",
  4107. "attr3": "",
  4108. "attr4": "",
  4109. "attr5": "",
  4110. "attr6": "",
  4111. "attr7": "",
  4112. "attr8": "",
  4113. "attr9": "",
  4114. "id": "62F2998A-D5B2-4FDA-B959-19A470663A18",
  4115. "domain": null,
  4116. "uiHint": null
  4117. },
  4118. {
  4119. "defKey": "created_at",
  4120. "defName": "创建时间",
  4121. "comment": "",
  4122. "type": "",
  4123. "len": "",
  4124. "scale": "",
  4125. "primaryKey": false,
  4126. "notNull": false,
  4127. "autoIncrement": false,
  4128. "defaultValue": "CURRENT_TIMESTAMP",
  4129. "hideInGraph": true,
  4130. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4131. "refDict": null,
  4132. "extProps": {},
  4133. "notes": {},
  4134. "attr1": "",
  4135. "attr2": "",
  4136. "attr3": "",
  4137. "attr4": "",
  4138. "attr5": "",
  4139. "attr6": "",
  4140. "attr7": "",
  4141. "attr8": "",
  4142. "attr9": "",
  4143. "id": "3DEC5089-C3F7-46DF-B726-E61C450A3F7A",
  4144. "uiHint": null
  4145. },
  4146. {
  4147. "defKey": "updated_by",
  4148. "defName": "更新人",
  4149. "comment": "",
  4150. "type": "VARCHAR",
  4151. "len": 255,
  4152. "scale": "",
  4153. "primaryKey": false,
  4154. "notNull": false,
  4155. "autoIncrement": false,
  4156. "defaultValue": "",
  4157. "hideInGraph": true,
  4158. "refDict": null,
  4159. "extProps": {},
  4160. "notes": {},
  4161. "attr1": "",
  4162. "attr2": "",
  4163. "attr3": "",
  4164. "attr4": "",
  4165. "attr5": "",
  4166. "attr6": "",
  4167. "attr7": "",
  4168. "attr8": "",
  4169. "attr9": "",
  4170. "id": "48EB692B-74BC-42BE-903E-FE2720DBBC30",
  4171. "domain": null,
  4172. "uiHint": null
  4173. },
  4174. {
  4175. "defKey": "updated_at",
  4176. "defName": "更新时间",
  4177. "comment": "",
  4178. "type": "",
  4179. "len": "",
  4180. "scale": "",
  4181. "primaryKey": false,
  4182. "notNull": false,
  4183. "autoIncrement": false,
  4184. "defaultValue": "",
  4185. "hideInGraph": true,
  4186. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4187. "refDict": null,
  4188. "extProps": {},
  4189. "notes": {},
  4190. "attr1": "",
  4191. "attr2": "",
  4192. "attr3": "",
  4193. "attr4": "",
  4194. "attr5": "",
  4195. "attr6": "",
  4196. "attr7": "",
  4197. "attr8": "",
  4198. "attr9": "",
  4199. "id": "5F14C6AE-1FDD-40FF-882A-8A9BA1A1E9BE",
  4200. "uiHint": null
  4201. },
  4202. {
  4203. "defKey": "deleted",
  4204. "defName": "删除标志",
  4205. "comment": "1删除,0正常",
  4206. "type": "",
  4207. "len": "",
  4208. "scale": "",
  4209. "primaryKey": false,
  4210. "notNull": false,
  4211. "autoIncrement": false,
  4212. "defaultValue": "0",
  4213. "hideInGraph": true,
  4214. "refDict": null,
  4215. "extProps": {},
  4216. "notes": {},
  4217. "attr1": "",
  4218. "attr2": "",
  4219. "attr3": "",
  4220. "attr4": "",
  4221. "attr5": "",
  4222. "attr6": "",
  4223. "attr7": "",
  4224. "attr8": "",
  4225. "attr9": "",
  4226. "id": "A4C1F3D7-9BF2-4E7B-8C38-03F286183D9A",
  4227. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4228. "uiHint": null
  4229. }
  4230. ],
  4231. "correlations": [],
  4232. "indexes": [],
  4233. "notes": {}
  4234. },
  4235. {
  4236. "id": "B638B903-6CF8-4697-8E8E-2A851B30FEE6",
  4237. "env": {
  4238. "base": {
  4239. "nameSpace": "com.njyunzhi.repository",
  4240. "codeRoot": "SysRole"
  4241. },
  4242. "template": {
  4243. "JavaMybatisPlus": {
  4244. "Controller": {
  4245. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  4246. "enable": true
  4247. },
  4248. "Service": {
  4249. "suffix": "service/{{=it.codeRoot}}Service.java",
  4250. "enable": true
  4251. },
  4252. "ServiceImpl": {
  4253. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  4254. "enable": true
  4255. },
  4256. "Mapper": {
  4257. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  4258. "enable": true
  4259. },
  4260. "Mapper.xml": {
  4261. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  4262. "enable": true
  4263. },
  4264. "Entity": {
  4265. "suffix": "entity/{{=it.codeRoot}}.java",
  4266. "enable": true
  4267. }
  4268. }
  4269. },
  4270. "custom": {}
  4271. },
  4272. "defKey": "sys_role",
  4273. "defName": "系统角色",
  4274. "comment": "",
  4275. "properties": {},
  4276. "nameTemplate": "{defKey}[{defName}]",
  4277. "headers": [
  4278. {
  4279. "refKey": "hideInGraph",
  4280. "hideInGraph": true
  4281. },
  4282. {
  4283. "refKey": "defKey",
  4284. "hideInGraph": false
  4285. },
  4286. {
  4287. "refKey": "defName",
  4288. "hideInGraph": false
  4289. },
  4290. {
  4291. "refKey": "primaryKey",
  4292. "hideInGraph": false
  4293. },
  4294. {
  4295. "refKey": "notNull",
  4296. "hideInGraph": true
  4297. },
  4298. {
  4299. "refKey": "autoIncrement",
  4300. "hideInGraph": true
  4301. },
  4302. {
  4303. "refKey": "domain",
  4304. "hideInGraph": true
  4305. },
  4306. {
  4307. "refKey": "type",
  4308. "hideInGraph": false
  4309. },
  4310. {
  4311. "refKey": "len",
  4312. "hideInGraph": false
  4313. },
  4314. {
  4315. "refKey": "scale",
  4316. "hideInGraph": false
  4317. },
  4318. {
  4319. "refKey": "comment",
  4320. "hideInGraph": true
  4321. },
  4322. {
  4323. "refKey": "refDict",
  4324. "hideInGraph": true
  4325. },
  4326. {
  4327. "refKey": "defaultValue",
  4328. "hideInGraph": true
  4329. },
  4330. {
  4331. "refKey": "isStandard",
  4332. "hideInGraph": false
  4333. },
  4334. {
  4335. "refKey": "uiHint",
  4336. "hideInGraph": true
  4337. },
  4338. {
  4339. "refKey": "extProps",
  4340. "hideInGraph": true
  4341. }
  4342. ],
  4343. "fields": [
  4344. {
  4345. "defKey": "role_id",
  4346. "defName": "角色ID",
  4347. "comment": "",
  4348. "type": "",
  4349. "len": "",
  4350. "scale": "",
  4351. "primaryKey": true,
  4352. "notNull": true,
  4353. "autoIncrement": false,
  4354. "defaultValue": "",
  4355. "hideInGraph": false,
  4356. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4357. "refDict": null,
  4358. "uiHint": null,
  4359. "id": "F3630C24-6E14-4067-8B73-5D3FED63C767"
  4360. },
  4361. {
  4362. "defKey": "role_name",
  4363. "defName": "角色名称",
  4364. "comment": "",
  4365. "type": "",
  4366. "len": "",
  4367. "scale": "",
  4368. "primaryKey": false,
  4369. "notNull": false,
  4370. "autoIncrement": false,
  4371. "defaultValue": "",
  4372. "hideInGraph": false,
  4373. "refDict": null,
  4374. "extProps": {},
  4375. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  4376. "id": "A2A41541-B97C-445B-BD41-C8E9166EF279",
  4377. "uiHint": null
  4378. },
  4379. {
  4380. "defKey": "sort_no",
  4381. "defName": "排序",
  4382. "comment": "",
  4383. "type": "",
  4384. "len": "",
  4385. "scale": "",
  4386. "primaryKey": false,
  4387. "notNull": false,
  4388. "autoIncrement": false,
  4389. "defaultValue": "",
  4390. "hideInGraph": false,
  4391. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4392. "refDict": null,
  4393. "extProps": {},
  4394. "notes": {},
  4395. "attr1": "",
  4396. "attr2": "",
  4397. "attr3": "",
  4398. "attr4": "",
  4399. "attr5": "",
  4400. "attr6": "",
  4401. "attr7": "",
  4402. "attr8": "",
  4403. "attr9": "",
  4404. "id": "DE7FDC56-7CC7-4C6F-BFEF-F8D02188BC58",
  4405. "uiHint": null
  4406. },
  4407. {
  4408. "defKey": "status",
  4409. "defName": "状态",
  4410. "comment": "",
  4411. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4412. "type": "",
  4413. "len": "",
  4414. "scale": "",
  4415. "primaryKey": false,
  4416. "notNull": false,
  4417. "autoIncrement": false,
  4418. "defaultValue": "1",
  4419. "hideInGraph": true,
  4420. "refDict": null,
  4421. "uiHint": null,
  4422. "id": "A3E8230C-29A1-4DD4-9F6C-7EA13F5E1431"
  4423. },
  4424. {
  4425. "defKey": "tenant_id",
  4426. "defName": "租户号",
  4427. "comment": "",
  4428. "type": "",
  4429. "len": "",
  4430. "scale": "",
  4431. "primaryKey": false,
  4432. "notNull": false,
  4433. "autoIncrement": false,
  4434. "defaultValue": "",
  4435. "hideInGraph": true,
  4436. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4437. "refDict": null,
  4438. "extProps": {},
  4439. "notes": {},
  4440. "attr1": "",
  4441. "attr2": "",
  4442. "attr3": "",
  4443. "attr4": "",
  4444. "attr5": "",
  4445. "attr6": "",
  4446. "attr7": "",
  4447. "attr8": "",
  4448. "attr9": "",
  4449. "id": "93B1CFD7-6276-40DB-BA40-586E45E100D6",
  4450. "uiHint": null
  4451. },
  4452. {
  4453. "defKey": "created_by",
  4454. "defName": "创建人",
  4455. "comment": "",
  4456. "type": "VARCHAR",
  4457. "len": 255,
  4458. "scale": "",
  4459. "primaryKey": false,
  4460. "notNull": false,
  4461. "autoIncrement": false,
  4462. "defaultValue": "",
  4463. "hideInGraph": true,
  4464. "refDict": null,
  4465. "extProps": {},
  4466. "notes": {},
  4467. "attr1": "",
  4468. "attr2": "",
  4469. "attr3": "",
  4470. "attr4": "",
  4471. "attr5": "",
  4472. "attr6": "",
  4473. "attr7": "",
  4474. "attr8": "",
  4475. "attr9": "",
  4476. "id": "813CFCCF-97A2-4424-99CC-1B597BEF6C5A",
  4477. "domain": null,
  4478. "uiHint": null
  4479. },
  4480. {
  4481. "defKey": "created_at",
  4482. "defName": "创建时间",
  4483. "comment": "",
  4484. "type": "",
  4485. "len": "",
  4486. "scale": "",
  4487. "primaryKey": false,
  4488. "notNull": false,
  4489. "autoIncrement": false,
  4490. "defaultValue": "CURRENT_TIMESTAMP",
  4491. "hideInGraph": true,
  4492. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4493. "refDict": null,
  4494. "extProps": {},
  4495. "notes": {},
  4496. "attr1": "",
  4497. "attr2": "",
  4498. "attr3": "",
  4499. "attr4": "",
  4500. "attr5": "",
  4501. "attr6": "",
  4502. "attr7": "",
  4503. "attr8": "",
  4504. "attr9": "",
  4505. "id": "DB75FD7F-F0C2-4325-8890-DEEDA4990E42",
  4506. "uiHint": null
  4507. },
  4508. {
  4509. "defKey": "updated_by",
  4510. "defName": "更新人",
  4511. "comment": "",
  4512. "type": "VARCHAR",
  4513. "len": 255,
  4514. "scale": "",
  4515. "primaryKey": false,
  4516. "notNull": false,
  4517. "autoIncrement": false,
  4518. "defaultValue": "",
  4519. "hideInGraph": true,
  4520. "refDict": null,
  4521. "extProps": {},
  4522. "notes": {},
  4523. "attr1": "",
  4524. "attr2": "",
  4525. "attr3": "",
  4526. "attr4": "",
  4527. "attr5": "",
  4528. "attr6": "",
  4529. "attr7": "",
  4530. "attr8": "",
  4531. "attr9": "",
  4532. "id": "9B7518A1-D2CE-4E28-A8DA-29F7F656D1BF",
  4533. "domain": null,
  4534. "uiHint": null
  4535. },
  4536. {
  4537. "defKey": "updated_at",
  4538. "defName": "更新时间",
  4539. "comment": "",
  4540. "type": "",
  4541. "len": "",
  4542. "scale": "",
  4543. "primaryKey": false,
  4544. "notNull": false,
  4545. "autoIncrement": false,
  4546. "defaultValue": "",
  4547. "hideInGraph": true,
  4548. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  4549. "refDict": null,
  4550. "extProps": {},
  4551. "notes": {},
  4552. "attr1": "",
  4553. "attr2": "",
  4554. "attr3": "",
  4555. "attr4": "",
  4556. "attr5": "",
  4557. "attr6": "",
  4558. "attr7": "",
  4559. "attr8": "",
  4560. "attr9": "",
  4561. "id": "07E692EC-B4DC-4BEF-B1D8-1D7498316A36",
  4562. "uiHint": null
  4563. },
  4564. {
  4565. "defKey": "deleted",
  4566. "defName": "删除标志",
  4567. "comment": "1删除,0正常",
  4568. "type": "",
  4569. "len": "",
  4570. "scale": "",
  4571. "primaryKey": false,
  4572. "notNull": false,
  4573. "autoIncrement": false,
  4574. "defaultValue": "0",
  4575. "hideInGraph": true,
  4576. "refDict": null,
  4577. "extProps": {},
  4578. "notes": {},
  4579. "attr1": "",
  4580. "attr2": "",
  4581. "attr3": "",
  4582. "attr4": "",
  4583. "attr5": "",
  4584. "attr6": "",
  4585. "attr7": "",
  4586. "attr8": "",
  4587. "attr9": "",
  4588. "id": "6A9FACC3-5814-45BE-864E-FD33AC1CAE03",
  4589. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  4590. "uiHint": null
  4591. }
  4592. ],
  4593. "correlations": [],
  4594. "indexes": [],
  4595. "notes": {}
  4596. },
  4597. {
  4598. "id": "22C32AB9-51C1-421F-8E38-363C9A1C00A7",
  4599. "env": {
  4600. "base": {
  4601. "nameSpace": "com.njyunzhi.repository",
  4602. "codeRoot": "SysUserRole"
  4603. },
  4604. "template": {
  4605. "JavaMybatisPlus": {
  4606. "Controller": {
  4607. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  4608. "enable": true
  4609. },
  4610. "Service": {
  4611. "suffix": "service/{{=it.codeRoot}}Service.java",
  4612. "enable": true
  4613. },
  4614. "ServiceImpl": {
  4615. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  4616. "enable": true
  4617. },
  4618. "Mapper": {
  4619. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  4620. "enable": true
  4621. },
  4622. "Mapper.xml": {
  4623. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  4624. "enable": true
  4625. },
  4626. "Entity": {
  4627. "suffix": "entity/{{=it.codeRoot}}.java",
  4628. "enable": true
  4629. }
  4630. }
  4631. },
  4632. "custom": {}
  4633. },
  4634. "defKey": "sys_user_role",
  4635. "defName": "角色授权",
  4636. "comment": "",
  4637. "properties": {},
  4638. "nameTemplate": "{defKey}[{defName}]",
  4639. "headers": [
  4640. {
  4641. "refKey": "hideInGraph",
  4642. "hideInGraph": true
  4643. },
  4644. {
  4645. "refKey": "defKey",
  4646. "hideInGraph": false
  4647. },
  4648. {
  4649. "refKey": "defName",
  4650. "hideInGraph": false
  4651. },
  4652. {
  4653. "refKey": "primaryKey",
  4654. "hideInGraph": false
  4655. },
  4656. {
  4657. "refKey": "notNull",
  4658. "hideInGraph": true
  4659. },
  4660. {
  4661. "refKey": "autoIncrement",
  4662. "hideInGraph": true
  4663. },
  4664. {
  4665. "refKey": "domain",
  4666. "hideInGraph": true
  4667. },
  4668. {
  4669. "refKey": "type",
  4670. "hideInGraph": false
  4671. },
  4672. {
  4673. "refKey": "len",
  4674. "hideInGraph": false
  4675. },
  4676. {
  4677. "refKey": "scale",
  4678. "hideInGraph": false
  4679. },
  4680. {
  4681. "refKey": "comment",
  4682. "hideInGraph": true
  4683. },
  4684. {
  4685. "refKey": "refDict",
  4686. "hideInGraph": true
  4687. },
  4688. {
  4689. "refKey": "defaultValue",
  4690. "hideInGraph": true
  4691. },
  4692. {
  4693. "refKey": "isStandard",
  4694. "hideInGraph": false
  4695. },
  4696. {
  4697. "refKey": "uiHint",
  4698. "hideInGraph": true
  4699. },
  4700. {
  4701. "refKey": "extProps",
  4702. "hideInGraph": true
  4703. }
  4704. ],
  4705. "fields": [
  4706. {
  4707. "defKey": "id",
  4708. "defName": "id",
  4709. "comment": "",
  4710. "type": "",
  4711. "len": "",
  4712. "scale": "",
  4713. "primaryKey": true,
  4714. "notNull": true,
  4715. "autoIncrement": false,
  4716. "defaultValue": "",
  4717. "hideInGraph": false,
  4718. "refDict": null,
  4719. "extProps": {},
  4720. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4721. "id": "68A8E7DB-D146-45C1-8550-FE836F1BFD12",
  4722. "uiHint": null
  4723. },
  4724. {
  4725. "defKey": "role_id",
  4726. "defName": "角色ID",
  4727. "comment": "",
  4728. "type": "",
  4729. "len": "",
  4730. "scale": "",
  4731. "primaryKey": false,
  4732. "notNull": false,
  4733. "autoIncrement": false,
  4734. "defaultValue": "",
  4735. "hideInGraph": false,
  4736. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4737. "refDict": null,
  4738. "uiHint": null,
  4739. "id": "2CA67B0F-A33D-4F8F-9E25-04E6B6DB284C"
  4740. },
  4741. {
  4742. "defKey": "user_id",
  4743. "defName": "用户ID",
  4744. "comment": "",
  4745. "type": "",
  4746. "len": "",
  4747. "scale": "",
  4748. "primaryKey": false,
  4749. "notNull": false,
  4750. "autoIncrement": false,
  4751. "defaultValue": "",
  4752. "hideInGraph": false,
  4753. "refDict": null,
  4754. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4755. "id": "13AB12C1-CEE9-4F80-8921-478CF765D520",
  4756. "uiHint": null
  4757. }
  4758. ],
  4759. "correlations": [],
  4760. "indexes": [],
  4761. "notes": {}
  4762. },
  4763. {
  4764. "id": "22CC3927-2ADC-4C6A-951B-A40EB057EED1",
  4765. "env": {
  4766. "base": {
  4767. "nameSpace": "com.njyunzhi.system",
  4768. "codeRoot": "SysRoleResource"
  4769. },
  4770. "template": {
  4771. "JavaMybatisPlus": {
  4772. "Controller": {
  4773. "suffix": "controller/{{=it.codeRoot}}Controller.java"
  4774. },
  4775. "Service": {
  4776. "suffix": "service/{{=it.codeRoot}}Service.java"
  4777. },
  4778. "ServiceImpl": {
  4779. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java"
  4780. },
  4781. "Mapper": {
  4782. "suffix": "mapper/{{=it.codeRoot}}Mapper.java"
  4783. },
  4784. "Mapper.xml": {
  4785. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml"
  4786. },
  4787. "Entity": {
  4788. "suffix": "entity/{{=it.codeRoot}}.java"
  4789. }
  4790. }
  4791. },
  4792. "custom": {}
  4793. },
  4794. "defKey": "sys_role_resource",
  4795. "defName": "角色资源",
  4796. "comment": "",
  4797. "properties": {},
  4798. "nameTemplate": "{defKey}[{defName}]",
  4799. "headers": [
  4800. {
  4801. "refKey": "hideInGraph",
  4802. "hideInGraph": true
  4803. },
  4804. {
  4805. "refKey": "defKey",
  4806. "hideInGraph": false
  4807. },
  4808. {
  4809. "refKey": "defName",
  4810. "hideInGraph": false
  4811. },
  4812. {
  4813. "refKey": "primaryKey",
  4814. "hideInGraph": false
  4815. },
  4816. {
  4817. "refKey": "notNull",
  4818. "hideInGraph": true
  4819. },
  4820. {
  4821. "refKey": "autoIncrement",
  4822. "hideInGraph": true
  4823. },
  4824. {
  4825. "refKey": "domain",
  4826. "hideInGraph": true
  4827. },
  4828. {
  4829. "refKey": "type",
  4830. "hideInGraph": false
  4831. },
  4832. {
  4833. "refKey": "len",
  4834. "hideInGraph": false
  4835. },
  4836. {
  4837. "refKey": "scale",
  4838. "hideInGraph": false
  4839. },
  4840. {
  4841. "refKey": "comment",
  4842. "hideInGraph": true
  4843. },
  4844. {
  4845. "refKey": "refDict",
  4846. "hideInGraph": true
  4847. },
  4848. {
  4849. "refKey": "defaultValue",
  4850. "hideInGraph": true
  4851. },
  4852. {
  4853. "refKey": "isStandard",
  4854. "hideInGraph": false
  4855. },
  4856. {
  4857. "refKey": "uiHint",
  4858. "hideInGraph": true
  4859. },
  4860. {
  4861. "refKey": "extProps",
  4862. "hideInGraph": true
  4863. }
  4864. ],
  4865. "fields": [
  4866. {
  4867. "defKey": "id",
  4868. "defName": "id",
  4869. "comment": "",
  4870. "type": "",
  4871. "len": "",
  4872. "scale": "",
  4873. "primaryKey": true,
  4874. "notNull": true,
  4875. "autoIncrement": false,
  4876. "defaultValue": "",
  4877. "hideInGraph": false,
  4878. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4879. "refDict": null,
  4880. "extProps": {},
  4881. "id": "6CDA82B6-3A62-4002-9903-694EE37D5CD9",
  4882. "uiHint": null
  4883. },
  4884. {
  4885. "defKey": "role_id",
  4886. "defName": "角色ID",
  4887. "comment": "",
  4888. "type": "",
  4889. "len": "",
  4890. "scale": "",
  4891. "primaryKey": false,
  4892. "notNull": false,
  4893. "autoIncrement": false,
  4894. "defaultValue": "",
  4895. "hideInGraph": true,
  4896. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4897. "refDict": null,
  4898. "uiHint": null,
  4899. "id": "93B58469-0572-48CF-B459-7AE3782B9AF3"
  4900. },
  4901. {
  4902. "defKey": "resource_id",
  4903. "defName": "资源ID",
  4904. "comment": "",
  4905. "type": "",
  4906. "len": "",
  4907. "scale": "",
  4908. "primaryKey": false,
  4909. "notNull": false,
  4910. "autoIncrement": false,
  4911. "defaultValue": "",
  4912. "hideInGraph": false,
  4913. "refDict": null,
  4914. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  4915. "id": "4505D557-0B19-43E2-BAEB-AF9D50513243",
  4916. "uiHint": null
  4917. },
  4918. {
  4919. "defKey": "resource_type",
  4920. "defName": "资源类型",
  4921. "comment": "",
  4922. "type": "",
  4923. "len": "",
  4924. "scale": "",
  4925. "primaryKey": false,
  4926. "notNull": false,
  4927. "autoIncrement": false,
  4928. "defaultValue": "",
  4929. "hideInGraph": false,
  4930. "refDict": null,
  4931. "extProps": {},
  4932. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  4933. "id": "5218A1FB-A495-44D3-9351-B76C3F0F0005",
  4934. "uiHint": null
  4935. }
  4936. ],
  4937. "correlations": [],
  4938. "indexes": []
  4939. },
  4940. {
  4941. "id": "A10C5772-7D4F-4A1C-AF3B-34D3AA5FAA09",
  4942. "env": {
  4943. "base": {
  4944. "nameSpace": "com.njyunzhi.repository",
  4945. "codeRoot": "TaPerson"
  4946. },
  4947. "template": {
  4948. "JavaMybatisPlus": {
  4949. "Controller": {
  4950. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  4951. "enable": false
  4952. },
  4953. "Service": {
  4954. "suffix": "service/{{=it.codeRoot}}Service.java",
  4955. "enable": false
  4956. },
  4957. "ServiceImpl": {
  4958. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  4959. "enable": false
  4960. },
  4961. "Mapper": {
  4962. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  4963. "enable": false
  4964. },
  4965. "Mapper.xml": {
  4966. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  4967. "enable": true
  4968. },
  4969. "Entity": {
  4970. "suffix": "entity/{{=it.codeRoot}}.java",
  4971. "enable": false
  4972. }
  4973. }
  4974. },
  4975. "custom": {}
  4976. },
  4977. "defKey": "ta_person",
  4978. "defName": "人员表",
  4979. "comment": "",
  4980. "properties": {},
  4981. "nameTemplate": "{defKey}[{defName}]",
  4982. "notes": {},
  4983. "headers": [
  4984. {
  4985. "refKey": "hideInGraph",
  4986. "hideInGraph": true
  4987. },
  4988. {
  4989. "refKey": "defKey",
  4990. "hideInGraph": false
  4991. },
  4992. {
  4993. "refKey": "defName",
  4994. "hideInGraph": false
  4995. },
  4996. {
  4997. "refKey": "primaryKey",
  4998. "hideInGraph": false
  4999. },
  5000. {
  5001. "refKey": "notNull",
  5002. "hideInGraph": true
  5003. },
  5004. {
  5005. "refKey": "autoIncrement",
  5006. "hideInGraph": true
  5007. },
  5008. {
  5009. "refKey": "domain",
  5010. "hideInGraph": true
  5011. },
  5012. {
  5013. "refKey": "type",
  5014. "hideInGraph": false
  5015. },
  5016. {
  5017. "refKey": "len",
  5018. "hideInGraph": false
  5019. },
  5020. {
  5021. "refKey": "scale",
  5022. "hideInGraph": false
  5023. },
  5024. {
  5025. "refKey": "comment",
  5026. "hideInGraph": true
  5027. },
  5028. {
  5029. "refKey": "refDict",
  5030. "hideInGraph": true
  5031. },
  5032. {
  5033. "refKey": "defaultValue",
  5034. "hideInGraph": true
  5035. },
  5036. {
  5037. "refKey": "isStandard",
  5038. "hideInGraph": false
  5039. },
  5040. {
  5041. "refKey": "uiHint",
  5042. "hideInGraph": true
  5043. },
  5044. {
  5045. "refKey": "extProps",
  5046. "hideInGraph": true
  5047. }
  5048. ],
  5049. "fields": [
  5050. {
  5051. "defKey": "person_id",
  5052. "defName": "人员ID",
  5053. "comment": "",
  5054. "type": "",
  5055. "len": "",
  5056. "scale": "",
  5057. "primaryKey": true,
  5058. "notNull": true,
  5059. "autoIncrement": false,
  5060. "defaultValue": "",
  5061. "hideInGraph": false,
  5062. "refDict": null,
  5063. "extProps": {},
  5064. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5065. "id": "4EBE8C1E-45FE-424E-AB94-AE56E6AF18A3",
  5066. "uiHint": null
  5067. },
  5068. {
  5069. "defKey": "person_name",
  5070. "defName": "人员名称",
  5071. "comment": "",
  5072. "type": "",
  5073. "len": "",
  5074. "scale": "",
  5075. "primaryKey": false,
  5076. "notNull": false,
  5077. "autoIncrement": false,
  5078. "defaultValue": "",
  5079. "hideInGraph": false,
  5080. "refDict": null,
  5081. "extProps": {},
  5082. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  5083. "id": "A78FCCB3-D3A5-4002-BF98-CCAF6888B35C",
  5084. "uiHint": null
  5085. },
  5086. {
  5087. "defKey": "avatar",
  5088. "defName": "头像",
  5089. "comment": "",
  5090. "type": "TEXT",
  5091. "len": "",
  5092. "scale": "",
  5093. "primaryKey": false,
  5094. "notNull": false,
  5095. "autoIncrement": false,
  5096. "defaultValue": "",
  5097. "hideInGraph": false,
  5098. "refDict": null,
  5099. "extProps": {},
  5100. "domain": null,
  5101. "id": "277B1F46-06EE-49D2-B78F-A2C6AF653C0C",
  5102. "uiHint": null
  5103. },
  5104. {
  5105. "defKey": "phone",
  5106. "defName": "手机",
  5107. "comment": "",
  5108. "type": "VARCHAR",
  5109. "len": 20,
  5110. "scale": "",
  5111. "primaryKey": false,
  5112. "notNull": false,
  5113. "autoIncrement": false,
  5114. "defaultValue": "",
  5115. "hideInGraph": false,
  5116. "refDict": null,
  5117. "extProps": {},
  5118. "domain": null,
  5119. "id": "2FB14EF4-EFDD-4661-B6D5-FF3226CFC850",
  5120. "uiHint": null
  5121. },
  5122. {
  5123. "defKey": "email",
  5124. "defName": "邮箱",
  5125. "comment": "",
  5126. "type": "",
  5127. "len": "",
  5128. "scale": "",
  5129. "primaryKey": false,
  5130. "notNull": false,
  5131. "autoIncrement": false,
  5132. "defaultValue": "",
  5133. "hideInGraph": false,
  5134. "refDict": null,
  5135. "extProps": {},
  5136. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5137. "id": "3F36F4E0-372F-4A76-84CC-6BEF505B5E58",
  5138. "uiHint": null
  5139. },
  5140. {
  5141. "defKey": "open_id",
  5142. "defName": "用户openid",
  5143. "comment": "",
  5144. "type": "",
  5145. "len": "",
  5146. "scale": "",
  5147. "primaryKey": false,
  5148. "notNull": false,
  5149. "autoIncrement": false,
  5150. "defaultValue": "",
  5151. "hideInGraph": false,
  5152. "refDict": null,
  5153. "extProps": {},
  5154. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5155. "id": "288688B4-64D1-4AA8-8144-23B5A45C661E",
  5156. "uiHint": null
  5157. },
  5158. {
  5159. "defKey": "created_by",
  5160. "defName": "创建人",
  5161. "comment": "",
  5162. "type": "VARCHAR",
  5163. "len": 255,
  5164. "scale": "",
  5165. "primaryKey": false,
  5166. "notNull": false,
  5167. "autoIncrement": false,
  5168. "defaultValue": "",
  5169. "hideInGraph": true,
  5170. "refDict": null,
  5171. "extProps": {},
  5172. "notes": {},
  5173. "attr1": "",
  5174. "attr2": "",
  5175. "attr3": "",
  5176. "attr4": "",
  5177. "attr5": "",
  5178. "attr6": "",
  5179. "attr7": "",
  5180. "attr8": "",
  5181. "attr9": "",
  5182. "id": "A2F5EB2B-574F-467D-B8F4-C3E343665356",
  5183. "domain": null,
  5184. "uiHint": null
  5185. },
  5186. {
  5187. "defKey": "created_at",
  5188. "defName": "创建时间",
  5189. "comment": "",
  5190. "type": "",
  5191. "len": "",
  5192. "scale": "",
  5193. "primaryKey": false,
  5194. "notNull": false,
  5195. "autoIncrement": false,
  5196. "defaultValue": "CURRENT_TIMESTAMP",
  5197. "hideInGraph": true,
  5198. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  5199. "refDict": null,
  5200. "extProps": {},
  5201. "notes": {},
  5202. "attr1": "",
  5203. "attr2": "",
  5204. "attr3": "",
  5205. "attr4": "",
  5206. "attr5": "",
  5207. "attr6": "",
  5208. "attr7": "",
  5209. "attr8": "",
  5210. "attr9": "",
  5211. "id": "ADA5A8D6-D17A-4A35-92AA-6A342654CE10",
  5212. "uiHint": null
  5213. },
  5214. {
  5215. "defKey": "updated_by",
  5216. "defName": "更新人",
  5217. "comment": "",
  5218. "type": "VARCHAR",
  5219. "len": 255,
  5220. "scale": "",
  5221. "primaryKey": false,
  5222. "notNull": false,
  5223. "autoIncrement": false,
  5224. "defaultValue": "",
  5225. "hideInGraph": true,
  5226. "refDict": null,
  5227. "extProps": {},
  5228. "notes": {},
  5229. "attr1": "",
  5230. "attr2": "",
  5231. "attr3": "",
  5232. "attr4": "",
  5233. "attr5": "",
  5234. "attr6": "",
  5235. "attr7": "",
  5236. "attr8": "",
  5237. "attr9": "",
  5238. "id": "13C5D275-000A-4936-B5E8-146D878AD098",
  5239. "domain": null,
  5240. "uiHint": null
  5241. },
  5242. {
  5243. "defKey": "updated_at",
  5244. "defName": "更新时间",
  5245. "comment": "",
  5246. "type": "",
  5247. "len": "",
  5248. "scale": "",
  5249. "primaryKey": false,
  5250. "notNull": false,
  5251. "autoIncrement": false,
  5252. "defaultValue": "",
  5253. "hideInGraph": true,
  5254. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  5255. "refDict": null,
  5256. "extProps": {},
  5257. "notes": {},
  5258. "attr1": "",
  5259. "attr2": "",
  5260. "attr3": "",
  5261. "attr4": "",
  5262. "attr5": "",
  5263. "attr6": "",
  5264. "attr7": "",
  5265. "attr8": "",
  5266. "attr9": "",
  5267. "id": "8762C1B5-BAF2-4E10-9AFB-11869D6E6B1D",
  5268. "uiHint": null
  5269. },
  5270. {
  5271. "defKey": "deleted",
  5272. "defName": "删除标志",
  5273. "comment": "1删除,0正常",
  5274. "type": "",
  5275. "len": "",
  5276. "scale": "",
  5277. "primaryKey": false,
  5278. "notNull": false,
  5279. "autoIncrement": false,
  5280. "defaultValue": "0",
  5281. "hideInGraph": false,
  5282. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5283. "refDict": null,
  5284. "extProps": {},
  5285. "notes": {},
  5286. "attr1": "",
  5287. "attr2": "",
  5288. "attr3": "",
  5289. "attr4": "",
  5290. "attr5": "",
  5291. "attr6": "",
  5292. "attr7": "",
  5293. "attr8": "",
  5294. "attr9": "",
  5295. "id": "42038846-566C-40EB-B6D2-8964E694791A",
  5296. "uiHint": null
  5297. }
  5298. ],
  5299. "correlations": [],
  5300. "indexes": []
  5301. },
  5302. {
  5303. "id": "E681CB95-A1DC-4B07-859C-10232F89EA4E",
  5304. "env": {
  5305. "base": {
  5306. "nameSpace": "com.njyunzhi.admin",
  5307. "codeRoot": "SysDept"
  5308. },
  5309. "template": {
  5310. "JavaMybatisPlus": {
  5311. "Controller": {
  5312. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  5313. "enable": true
  5314. },
  5315. "Service": {
  5316. "suffix": "service/{{=it.codeRoot}}Service.java",
  5317. "enable": true
  5318. },
  5319. "ServiceImpl": {
  5320. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  5321. "enable": true
  5322. },
  5323. "Mapper": {
  5324. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  5325. "enable": false
  5326. },
  5327. "Mapper.xml": {
  5328. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  5329. "enable": false
  5330. },
  5331. "Entity": {
  5332. "suffix": "entity/{{=it.codeRoot}}.java",
  5333. "enable": false
  5334. }
  5335. }
  5336. },
  5337. "custom": {}
  5338. },
  5339. "defKey": "sys_dept",
  5340. "defName": "部门表",
  5341. "comment": "",
  5342. "properties": {},
  5343. "nameTemplate": "{defKey}[{defName}]",
  5344. "headers": [
  5345. {
  5346. "refKey": "hideInGraph",
  5347. "hideInGraph": true
  5348. },
  5349. {
  5350. "refKey": "defKey",
  5351. "hideInGraph": false
  5352. },
  5353. {
  5354. "refKey": "defName",
  5355. "hideInGraph": false
  5356. },
  5357. {
  5358. "refKey": "primaryKey",
  5359. "hideInGraph": false
  5360. },
  5361. {
  5362. "refKey": "notNull",
  5363. "hideInGraph": true
  5364. },
  5365. {
  5366. "refKey": "autoIncrement",
  5367. "hideInGraph": true
  5368. },
  5369. {
  5370. "refKey": "domain",
  5371. "hideInGraph": true
  5372. },
  5373. {
  5374. "refKey": "type",
  5375. "hideInGraph": false
  5376. },
  5377. {
  5378. "refKey": "len",
  5379. "hideInGraph": false
  5380. },
  5381. {
  5382. "refKey": "scale",
  5383. "hideInGraph": false
  5384. },
  5385. {
  5386. "refKey": "comment",
  5387. "hideInGraph": true
  5388. },
  5389. {
  5390. "refKey": "refDict",
  5391. "hideInGraph": true
  5392. },
  5393. {
  5394. "refKey": "defaultValue",
  5395. "hideInGraph": true
  5396. },
  5397. {
  5398. "refKey": "isStandard",
  5399. "hideInGraph": false
  5400. },
  5401. {
  5402. "refKey": "uiHint",
  5403. "hideInGraph": true
  5404. },
  5405. {
  5406. "refKey": "extProps",
  5407. "hideInGraph": true
  5408. }
  5409. ],
  5410. "fields": [
  5411. {
  5412. "defKey": "dept_id",
  5413. "defName": "机构ID",
  5414. "comment": "",
  5415. "type": "",
  5416. "len": "",
  5417. "scale": "",
  5418. "primaryKey": true,
  5419. "notNull": true,
  5420. "autoIncrement": false,
  5421. "defaultValue": "",
  5422. "hideInGraph": false,
  5423. "refDict": null,
  5424. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5425. "id": "726DF23D-B389-482C-8A83-CD882FB21B8F",
  5426. "uiHint": null
  5427. },
  5428. {
  5429. "defKey": "dept_code",
  5430. "defName": "机构编码",
  5431. "comment": "",
  5432. "type": "VARCHAR",
  5433. "len": 64,
  5434. "scale": "",
  5435. "primaryKey": false,
  5436. "notNull": false,
  5437. "autoIncrement": false,
  5438. "defaultValue": "",
  5439. "hideInGraph": false,
  5440. "refDict": null,
  5441. "extProps": {},
  5442. "domain": null,
  5443. "id": "F8BA4F99-125F-4249-9678-A8BBAB3F352B",
  5444. "uiHint": null
  5445. },
  5446. {
  5447. "defKey": "dept_name",
  5448. "defName": "机构名称",
  5449. "comment": "",
  5450. "type": "",
  5451. "len": "",
  5452. "scale": "",
  5453. "primaryKey": false,
  5454. "notNull": false,
  5455. "autoIncrement": false,
  5456. "defaultValue": "",
  5457. "hideInGraph": false,
  5458. "refDict": null,
  5459. "extProps": {},
  5460. "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
  5461. "id": "940B4065-3A04-42F6-B7CB-265742DD38C1",
  5462. "uiHint": null
  5463. },
  5464. {
  5465. "defKey": "parent_id",
  5466. "defName": "上级单位",
  5467. "comment": "-1为根级目录",
  5468. "type": "",
  5469. "len": "",
  5470. "scale": "",
  5471. "primaryKey": false,
  5472. "notNull": false,
  5473. "autoIncrement": false,
  5474. "defaultValue": "",
  5475. "hideInGraph": false,
  5476. "refDict": null,
  5477. "extProps": {},
  5478. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5479. "id": "A893979D-88C9-402E-A601-18E4D7872FCF",
  5480. "uiHint": null
  5481. },
  5482. {
  5483. "defKey": "sort_no",
  5484. "defName": "排序",
  5485. "comment": "",
  5486. "type": "",
  5487. "len": "",
  5488. "scale": "",
  5489. "primaryKey": false,
  5490. "notNull": false,
  5491. "autoIncrement": false,
  5492. "defaultValue": "",
  5493. "hideInGraph": false,
  5494. "refDict": null,
  5495. "extProps": {},
  5496. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5497. "id": "A20379C0-271E-4E48-9375-05561D29E496",
  5498. "uiHint": null
  5499. },
  5500. {
  5501. "defKey": "status",
  5502. "defName": "状态",
  5503. "comment": "",
  5504. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5505. "type": "",
  5506. "len": "",
  5507. "scale": "",
  5508. "primaryKey": false,
  5509. "notNull": false,
  5510. "autoIncrement": false,
  5511. "defaultValue": "1",
  5512. "hideInGraph": true,
  5513. "refDict": null,
  5514. "uiHint": null,
  5515. "id": "76D66252-B46B-4FCA-B2F3-0EA78F744C94"
  5516. },
  5517. {
  5518. "defKey": "tenant_id",
  5519. "defName": "租户号",
  5520. "comment": "",
  5521. "type": "",
  5522. "len": "",
  5523. "scale": "",
  5524. "primaryKey": false,
  5525. "notNull": false,
  5526. "autoIncrement": false,
  5527. "defaultValue": "",
  5528. "hideInGraph": true,
  5529. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5530. "refDict": null,
  5531. "extProps": {},
  5532. "notes": {},
  5533. "attr1": "",
  5534. "attr2": "",
  5535. "attr3": "",
  5536. "attr4": "",
  5537. "attr5": "",
  5538. "attr6": "",
  5539. "attr7": "",
  5540. "attr8": "",
  5541. "attr9": "",
  5542. "id": "459A4C24-D208-4C5B-A3FD-0E8F555A6233",
  5543. "uiHint": null
  5544. },
  5545. {
  5546. "defKey": "tenant_name",
  5547. "defName": "租户名称",
  5548. "comment": "",
  5549. "type": "",
  5550. "len": "",
  5551. "scale": "",
  5552. "primaryKey": false,
  5553. "notNull": false,
  5554. "autoIncrement": false,
  5555. "defaultValue": "",
  5556. "hideInGraph": true,
  5557. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5558. "refDict": null,
  5559. "extProps": {},
  5560. "notes": {},
  5561. "attr1": "",
  5562. "attr2": "",
  5563. "attr3": "",
  5564. "attr4": "",
  5565. "attr5": "",
  5566. "attr6": "",
  5567. "attr7": "",
  5568. "attr8": "",
  5569. "attr9": "",
  5570. "id": "F2E965FE-A1AA-4F24-92BB-79F1DF4451F3",
  5571. "uiHint": null
  5572. },
  5573. {
  5574. "defKey": "created_by",
  5575. "defName": "创建人",
  5576. "comment": "",
  5577. "type": "VARCHAR",
  5578. "len": 255,
  5579. "scale": "",
  5580. "primaryKey": false,
  5581. "notNull": false,
  5582. "autoIncrement": false,
  5583. "defaultValue": "",
  5584. "hideInGraph": true,
  5585. "refDict": null,
  5586. "extProps": {},
  5587. "notes": {},
  5588. "attr1": "",
  5589. "attr2": "",
  5590. "attr3": "",
  5591. "attr4": "",
  5592. "attr5": "",
  5593. "attr6": "",
  5594. "attr7": "",
  5595. "attr8": "",
  5596. "attr9": "",
  5597. "id": "3BF9CDFA-F632-4DA0-9DBB-FCCE207290F4",
  5598. "domain": null,
  5599. "uiHint": null
  5600. },
  5601. {
  5602. "defKey": "created_at",
  5603. "defName": "创建时间",
  5604. "comment": "",
  5605. "type": "",
  5606. "len": "",
  5607. "scale": "",
  5608. "primaryKey": false,
  5609. "notNull": false,
  5610. "autoIncrement": false,
  5611. "defaultValue": "CURRENT_TIMESTAMP",
  5612. "hideInGraph": true,
  5613. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  5614. "refDict": null,
  5615. "extProps": {},
  5616. "notes": {},
  5617. "attr1": "",
  5618. "attr2": "",
  5619. "attr3": "",
  5620. "attr4": "",
  5621. "attr5": "",
  5622. "attr6": "",
  5623. "attr7": "",
  5624. "attr8": "",
  5625. "attr9": "",
  5626. "id": "F4377BE1-22DD-4D6F-A3DD-2C94C3E0329D",
  5627. "uiHint": null
  5628. },
  5629. {
  5630. "defKey": "updated_by",
  5631. "defName": "更新人",
  5632. "comment": "",
  5633. "type": "VARCHAR",
  5634. "len": 255,
  5635. "scale": "",
  5636. "primaryKey": false,
  5637. "notNull": false,
  5638. "autoIncrement": false,
  5639. "defaultValue": "",
  5640. "hideInGraph": true,
  5641. "refDict": null,
  5642. "extProps": {},
  5643. "notes": {},
  5644. "attr1": "",
  5645. "attr2": "",
  5646. "attr3": "",
  5647. "attr4": "",
  5648. "attr5": "",
  5649. "attr6": "",
  5650. "attr7": "",
  5651. "attr8": "",
  5652. "attr9": "",
  5653. "id": "397FFAB8-3494-493F-A507-7E5C540D4B5F",
  5654. "domain": null,
  5655. "uiHint": null
  5656. },
  5657. {
  5658. "defKey": "updated_at",
  5659. "defName": "更新时间",
  5660. "comment": "",
  5661. "type": "",
  5662. "len": "",
  5663. "scale": "",
  5664. "primaryKey": false,
  5665. "notNull": false,
  5666. "autoIncrement": false,
  5667. "defaultValue": "",
  5668. "hideInGraph": true,
  5669. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  5670. "refDict": null,
  5671. "extProps": {},
  5672. "notes": {},
  5673. "attr1": "",
  5674. "attr2": "",
  5675. "attr3": "",
  5676. "attr4": "",
  5677. "attr5": "",
  5678. "attr6": "",
  5679. "attr7": "",
  5680. "attr8": "",
  5681. "attr9": "",
  5682. "id": "C134F08D-E36F-489E-B480-91E9B75291C4",
  5683. "uiHint": null
  5684. },
  5685. {
  5686. "defKey": "deleted",
  5687. "defName": "删除标志",
  5688. "comment": "1删除,0正常",
  5689. "type": "",
  5690. "len": "",
  5691. "scale": "",
  5692. "primaryKey": false,
  5693. "notNull": false,
  5694. "autoIncrement": false,
  5695. "defaultValue": "0",
  5696. "hideInGraph": true,
  5697. "refDict": null,
  5698. "extProps": {},
  5699. "notes": {},
  5700. "attr1": "",
  5701. "attr2": "",
  5702. "attr3": "",
  5703. "attr4": "",
  5704. "attr5": "",
  5705. "attr6": "",
  5706. "attr7": "",
  5707. "attr8": "",
  5708. "attr9": "",
  5709. "id": "78EDFB66-F20B-4EC1-9384-5DFF01899543",
  5710. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  5711. "uiHint": null
  5712. }
  5713. ],
  5714. "correlations": [],
  5715. "indexes": [],
  5716. "notes": {}
  5717. },
  5718. {
  5719. "id": "13BC5E46-E946-48B3-AC7F-41CDB70BE12B",
  5720. "env": {
  5721. "base": {
  5722. "nameSpace": "com.njyunzhi.repository",
  5723. "codeRoot": "TaCompanyInfo"
  5724. },
  5725. "template": {
  5726. "JavaMybatisPlus": {
  5727. "Controller": {
  5728. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  5729. "enable": false
  5730. },
  5731. "Service": {
  5732. "suffix": "service/{{=it.codeRoot}}Service.java",
  5733. "enable": false
  5734. },
  5735. "ServiceImpl": {
  5736. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  5737. "enable": false
  5738. },
  5739. "Mapper": {
  5740. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  5741. "enable": false
  5742. },
  5743. "Mapper.xml": {
  5744. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  5745. "enable": true
  5746. },
  5747. "Entity": {
  5748. "suffix": "entity/{{=it.codeRoot}}.java",
  5749. "enable": false
  5750. }
  5751. }
  5752. },
  5753. "custom": {}
  5754. },
  5755. "defKey": "ta_company_info",
  5756. "defName": "公司基本信息",
  5757. "comment": "",
  5758. "properties": {
  5759. "partitioned by": "(date string)",
  5760. "row format delimited": "",
  5761. "fields terminated by ','": "",
  5762. "collection items terminated by '-'": "",
  5763. "map keys terminated by ':'": "",
  5764. "store as textfile;": ""
  5765. },
  5766. "nameTemplate": "{defKey}[{defName}]",
  5767. "notes": {},
  5768. "headers": [
  5769. {
  5770. "refKey": "hideInGraph",
  5771. "hideInGraph": true
  5772. },
  5773. {
  5774. "refKey": "defKey",
  5775. "freeze": false,
  5776. "hideInGraph": false
  5777. },
  5778. {
  5779. "refKey": "defName",
  5780. "freeze": false,
  5781. "hideInGraph": false
  5782. },
  5783. {
  5784. "refKey": "primaryKey",
  5785. "freeze": false,
  5786. "hideInGraph": false
  5787. },
  5788. {
  5789. "refKey": "notNull",
  5790. "freeze": false,
  5791. "hideInGraph": true
  5792. },
  5793. {
  5794. "refKey": "autoIncrement",
  5795. "freeze": false,
  5796. "hideInGraph": true
  5797. },
  5798. {
  5799. "refKey": "domain",
  5800. "freeze": false,
  5801. "hideInGraph": true
  5802. },
  5803. {
  5804. "refKey": "type",
  5805. "freeze": false,
  5806. "hideInGraph": false
  5807. },
  5808. {
  5809. "refKey": "len",
  5810. "freeze": false,
  5811. "hideInGraph": false
  5812. },
  5813. {
  5814. "refKey": "scale",
  5815. "freeze": false,
  5816. "hideInGraph": false
  5817. },
  5818. {
  5819. "refKey": "comment",
  5820. "freeze": false,
  5821. "hideInGraph": true
  5822. },
  5823. {
  5824. "refKey": "refDict",
  5825. "freeze": false,
  5826. "hideInGraph": true
  5827. },
  5828. {
  5829. "refKey": "defaultValue",
  5830. "freeze": false,
  5831. "hideInGraph": true
  5832. },
  5833. {
  5834. "refKey": "isStandard",
  5835. "freeze": false,
  5836. "hideInGraph": false
  5837. },
  5838. {
  5839. "refKey": "uiHint",
  5840. "freeze": false,
  5841. "hideInGraph": true
  5842. },
  5843. {
  5844. "refKey": "extProps",
  5845. "freeze": false,
  5846. "hideInGraph": true
  5847. },
  5848. {
  5849. "refKey": "attr1",
  5850. "freeze": false,
  5851. "hideInGraph": true
  5852. },
  5853. {
  5854. "refKey": "attr2",
  5855. "freeze": false,
  5856. "hideInGraph": true
  5857. },
  5858. {
  5859. "refKey": "attr3",
  5860. "freeze": false,
  5861. "hideInGraph": true
  5862. },
  5863. {
  5864. "refKey": "attr4",
  5865. "freeze": false,
  5866. "hideInGraph": true
  5867. },
  5868. {
  5869. "refKey": "attr5",
  5870. "freeze": false,
  5871. "hideInGraph": true
  5872. },
  5873. {
  5874. "refKey": "attr6",
  5875. "freeze": false,
  5876. "hideInGraph": true
  5877. },
  5878. {
  5879. "refKey": "attr7",
  5880. "freeze": false,
  5881. "hideInGraph": true
  5882. },
  5883. {
  5884. "refKey": "attr8",
  5885. "freeze": false,
  5886. "hideInGraph": true
  5887. },
  5888. {
  5889. "refKey": "attr9",
  5890. "freeze": false,
  5891. "hideInGraph": true
  5892. }
  5893. ],
  5894. "fields": [
  5895. {
  5896. "defKey": "company_id",
  5897. "defName": "公司id",
  5898. "comment": "",
  5899. "type": "",
  5900. "len": "",
  5901. "scale": "",
  5902. "primaryKey": true,
  5903. "notNull": true,
  5904. "autoIncrement": false,
  5905. "defaultValue": "",
  5906. "hideInGraph": false,
  5907. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5908. "refDict": "",
  5909. "extProps": {},
  5910. "notes": {},
  5911. "attr1": "",
  5912. "attr2": "",
  5913. "attr3": "",
  5914. "attr4": "",
  5915. "attr5": "",
  5916. "attr6": "",
  5917. "attr7": "",
  5918. "attr8": "",
  5919. "attr9": "",
  5920. "id": "A497D1F0-7171-4819-B5CA-75F779809929"
  5921. },
  5922. {
  5923. "defKey": "real_company_id",
  5924. "defName": "公司实名认证id",
  5925. "comment": "",
  5926. "type": "",
  5927. "len": "",
  5928. "scale": "",
  5929. "primaryKey": false,
  5930. "notNull": false,
  5931. "autoIncrement": false,
  5932. "defaultValue": "",
  5933. "hideInGraph": false,
  5934. "refDict": "",
  5935. "extProps": {},
  5936. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5937. "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866"
  5938. },
  5939. {
  5940. "defKey": "tenant_id",
  5941. "defName": "租户号",
  5942. "comment": "",
  5943. "type": "",
  5944. "len": 32,
  5945. "scale": "",
  5946. "primaryKey": false,
  5947. "notNull": false,
  5948. "autoIncrement": false,
  5949. "defaultValue": "",
  5950. "hideInGraph": false,
  5951. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  5952. "refDict": "",
  5953. "uiHint": "",
  5954. "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
  5955. },
  5956. {
  5957. "defKey": "certificate_incorporation",
  5958. "defName": "公司注册证书",
  5959. "comment": "",
  5960. "type": "VARCHAR",
  5961. "len": 255,
  5962. "scale": "",
  5963. "primaryKey": false,
  5964. "notNull": false,
  5965. "autoIncrement": false,
  5966. "defaultValue": "",
  5967. "hideInGraph": false,
  5968. "refDict": "",
  5969. "extProps": {},
  5970. "domain": "",
  5971. "id": "D515D25A-4FC1-4CC5-BDD3-A7CEB6FC541B"
  5972. },
  5973. {
  5974. "defKey": "company_business_registration_content",
  5975. "defName": "公司商业登记证PDF",
  5976. "comment": "",
  5977. "type": "",
  5978. "len": "",
  5979. "scale": "",
  5980. "primaryKey": false,
  5981. "notNull": false,
  5982. "autoIncrement": false,
  5983. "defaultValue": "",
  5984. "hideInGraph": false,
  5985. "refDict": "",
  5986. "extProps": {},
  5987. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  5988. "id": "8A1E7CBC-6897-484D-8D72-F41E1324FECF"
  5989. },
  5990. {
  5991. "defKey": "company_business_registration",
  5992. "defName": "公司商业登记证",
  5993. "comment": "",
  5994. "type": "VARCHAR",
  5995. "len": 255,
  5996. "scale": "",
  5997. "primaryKey": false,
  5998. "notNull": false,
  5999. "autoIncrement": false,
  6000. "defaultValue": "",
  6001. "hideInGraph": false,
  6002. "refDict": "",
  6003. "extProps": {},
  6004. "domain": "",
  6005. "id": "984E4A5F-2983-49D9-A033-13167F8FABCA"
  6006. },
  6007. {
  6008. "defKey": "nnc1_nar1",
  6009. "defName": "nnc1/最新nar1",
  6010. "comment": "",
  6011. "type": "VARCHAR",
  6012. "len": 255,
  6013. "scale": "",
  6014. "primaryKey": false,
  6015. "notNull": false,
  6016. "autoIncrement": false,
  6017. "defaultValue": "",
  6018. "hideInGraph": false,
  6019. "refDict": "",
  6020. "extProps": {},
  6021. "domain": "",
  6022. "id": "E10EA273-EA88-4E15-9B79-C087CFB0C9A9"
  6023. },
  6024. {
  6025. "defKey": "other_annex",
  6026. "defName": "其他附件",
  6027. "comment": "",
  6028. "type": "VARCHAR",
  6029. "len": 255,
  6030. "scale": "",
  6031. "primaryKey": false,
  6032. "notNull": false,
  6033. "autoIncrement": false,
  6034. "defaultValue": "",
  6035. "hideInGraph": false,
  6036. "refDict": "",
  6037. "extProps": {},
  6038. "domain": "",
  6039. "id": "8B2BF6CF-6CDA-45D2-9FA9-47B00CF3DF54"
  6040. },
  6041. {
  6042. "defKey": "company_type",
  6043. "defName": "企业类型 1:私人股份有限公司,2公众股份有限公司,3有股本的公众无限公司,4有股本的私人无限公司",
  6044. "comment": "",
  6045. "type": "VARCHAR",
  6046. "len": 2,
  6047. "scale": "",
  6048. "primaryKey": false,
  6049. "notNull": false,
  6050. "autoIncrement": false,
  6051. "defaultValue": "",
  6052. "hideInGraph": false,
  6053. "refDict": "",
  6054. "extProps": {},
  6055. "domain": "",
  6056. "id": "884871A5-4B26-402E-A795-9440CF323114"
  6057. },
  6058. {
  6059. "defKey": "business_registration_num",
  6060. "defName": "商业登记号",
  6061. "comment": "",
  6062. "type": "",
  6063. "len": "",
  6064. "scale": "",
  6065. "primaryKey": false,
  6066. "notNull": false,
  6067. "autoIncrement": false,
  6068. "defaultValue": "",
  6069. "hideInGraph": false,
  6070. "refDict": "",
  6071. "extProps": {},
  6072. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6073. "id": "AD0C2BF4-14BE-47E8-8697-7E723FF1F5DD"
  6074. },
  6075. {
  6076. "defKey": "register_country",
  6077. "defName": "注册 国家",
  6078. "comment": "",
  6079. "type": "",
  6080. "len": "",
  6081. "scale": "",
  6082. "primaryKey": false,
  6083. "notNull": false,
  6084. "autoIncrement": false,
  6085. "defaultValue": "",
  6086. "hideInGraph": false,
  6087. "refDict": "",
  6088. "extProps": {},
  6089. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6090. "id": "475E80D5-78C5-4D62-AEC7-CECC9B52899B"
  6091. },
  6092. {
  6093. "defKey": "register_province_region",
  6094. "defName": "注册 省/地区",
  6095. "comment": "",
  6096. "type": "",
  6097. "len": "",
  6098. "scale": "",
  6099. "primaryKey": false,
  6100. "notNull": false,
  6101. "autoIncrement": false,
  6102. "defaultValue": "",
  6103. "hideInGraph": false,
  6104. "refDict": "",
  6105. "extProps": {},
  6106. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6107. "id": "D160F872-813A-4EA9-A703-14FB6649275C"
  6108. },
  6109. {
  6110. "defKey": "register_city",
  6111. "defName": "注册 市",
  6112. "comment": "",
  6113. "type": "",
  6114. "len": "",
  6115. "scale": "",
  6116. "primaryKey": false,
  6117. "notNull": false,
  6118. "autoIncrement": false,
  6119. "defaultValue": "",
  6120. "hideInGraph": false,
  6121. "refDict": "",
  6122. "extProps": {},
  6123. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6124. "id": "59508E46-E61F-4CAD-BD8E-7962A18CD82A"
  6125. },
  6126. {
  6127. "defKey": "register_specific_address",
  6128. "defName": "注册具体地址",
  6129. "comment": "",
  6130. "type": "",
  6131. "len": "",
  6132. "scale": "",
  6133. "primaryKey": false,
  6134. "notNull": false,
  6135. "autoIncrement": false,
  6136. "defaultValue": "",
  6137. "hideInGraph": false,
  6138. "refDict": "",
  6139. "extProps": {},
  6140. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6141. "id": "976347F6-3256-4A2E-A0B2-7C73D082A372"
  6142. },
  6143. {
  6144. "defKey": "register_postal_code",
  6145. "defName": "注册 邮政编码",
  6146. "comment": "",
  6147. "type": "",
  6148. "len": "",
  6149. "scale": "",
  6150. "primaryKey": false,
  6151. "notNull": false,
  6152. "autoIncrement": false,
  6153. "defaultValue": "",
  6154. "hideInGraph": false,
  6155. "refDict": "",
  6156. "extProps": {},
  6157. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6158. "id": "4C6B451E-AD8B-41C0-B6B8-F17496B6A8E3"
  6159. },
  6160. {
  6161. "defKey": "reality_country",
  6162. "defName": "实际经营 国家",
  6163. "comment": "",
  6164. "type": "",
  6165. "len": "",
  6166. "scale": "",
  6167. "primaryKey": false,
  6168. "notNull": false,
  6169. "autoIncrement": false,
  6170. "defaultValue": "",
  6171. "hideInGraph": false,
  6172. "refDict": "",
  6173. "extProps": {},
  6174. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6175. "id": "F3E6DDC2-7DDB-4EA1-A88B-CD7DDCF3EE9F"
  6176. },
  6177. {
  6178. "defKey": "reality_province_region",
  6179. "defName": "实际经营 省/地区",
  6180. "comment": "",
  6181. "type": "",
  6182. "len": "",
  6183. "scale": "",
  6184. "primaryKey": false,
  6185. "notNull": false,
  6186. "autoIncrement": false,
  6187. "defaultValue": "",
  6188. "hideInGraph": false,
  6189. "refDict": "",
  6190. "extProps": {},
  6191. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6192. "id": "449EB676-75A3-414F-AFCC-F7DDE27D05DA"
  6193. },
  6194. {
  6195. "defKey": "reality_city",
  6196. "defName": "实际经营 市",
  6197. "comment": "",
  6198. "type": "",
  6199. "len": "",
  6200. "scale": "",
  6201. "primaryKey": false,
  6202. "notNull": false,
  6203. "autoIncrement": false,
  6204. "defaultValue": "",
  6205. "hideInGraph": false,
  6206. "refDict": "",
  6207. "extProps": {},
  6208. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6209. "id": "F77892B0-3D58-475C-977E-5A8A6B0EA83E"
  6210. },
  6211. {
  6212. "defKey": "reality_specific_address",
  6213. "defName": "实际经营 具体地址",
  6214. "comment": "",
  6215. "type": "",
  6216. "len": "",
  6217. "scale": "",
  6218. "primaryKey": false,
  6219. "notNull": false,
  6220. "autoIncrement": false,
  6221. "defaultValue": "",
  6222. "hideInGraph": false,
  6223. "refDict": "",
  6224. "extProps": {},
  6225. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6226. "id": "1A6270A3-6D32-49FB-90EF-8D2CECEAD870"
  6227. },
  6228. {
  6229. "defKey": "reality_postal_code",
  6230. "defName": "实际经营 邮政编码",
  6231. "comment": "",
  6232. "type": "",
  6233. "len": "",
  6234. "scale": "",
  6235. "primaryKey": false,
  6236. "notNull": false,
  6237. "autoIncrement": false,
  6238. "defaultValue": "",
  6239. "hideInGraph": false,
  6240. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6241. "refDict": "",
  6242. "extProps": {},
  6243. "notes": {},
  6244. "attr1": "",
  6245. "attr2": "",
  6246. "attr3": "",
  6247. "attr4": "",
  6248. "attr5": "",
  6249. "attr6": "",
  6250. "attr7": "",
  6251. "attr8": "",
  6252. "attr9": "",
  6253. "id": "FB983D20-B1C4-4DF3-B5C9-65ED2B90DC9D"
  6254. },
  6255. {
  6256. "defKey": "num_employees",
  6257. "defName": "雇员人数 1:员工人数超过200人,2员工人数50-200人,3员工人数少于50人",
  6258. "comment": "",
  6259. "type": "VARCHAR",
  6260. "len": 2,
  6261. "scale": "",
  6262. "primaryKey": false,
  6263. "notNull": false,
  6264. "autoIncrement": false,
  6265. "defaultValue": "",
  6266. "hideInGraph": false,
  6267. "refDict": "",
  6268. "extProps": {},
  6269. "domain": "",
  6270. "id": "2B021ABF-E76E-4629-A378-8E5F00A58C2F"
  6271. },
  6272. {
  6273. "defKey": "business_premises_type",
  6274. "defName": "经营场所类型 1:自有办公场所,2:较大租用办公场所 (大于500平方),3:较小租用办公场所 (小于500平方),4:无固定办公场所",
  6275. "comment": "",
  6276. "type": "VARCHAR",
  6277. "len": 2,
  6278. "scale": "",
  6279. "primaryKey": false,
  6280. "notNull": false,
  6281. "autoIncrement": false,
  6282. "defaultValue": "",
  6283. "hideInGraph": false,
  6284. "refDict": "",
  6285. "extProps": {},
  6286. "domain": "",
  6287. "id": "D09A0972-0DEA-44A3-BEAB-D22064D8FE19"
  6288. },
  6289. {
  6290. "defKey": "created_by",
  6291. "defName": "创建人",
  6292. "comment": "",
  6293. "type": "VARCHAR",
  6294. "len": 255,
  6295. "scale": "",
  6296. "primaryKey": false,
  6297. "notNull": false,
  6298. "autoIncrement": false,
  6299. "defaultValue": "",
  6300. "hideInGraph": false,
  6301. "refDict": "",
  6302. "extProps": {},
  6303. "notes": {},
  6304. "attr1": "",
  6305. "attr2": "",
  6306. "attr3": "",
  6307. "attr4": "",
  6308. "attr5": "",
  6309. "attr6": "",
  6310. "attr7": "",
  6311. "attr8": "",
  6312. "attr9": "",
  6313. "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A"
  6314. },
  6315. {
  6316. "defKey": "created_at",
  6317. "defName": "创建时间",
  6318. "comment": "",
  6319. "type": "",
  6320. "len": "",
  6321. "scale": "",
  6322. "primaryKey": false,
  6323. "notNull": false,
  6324. "autoIncrement": false,
  6325. "defaultValue": "CURRENT_TIMESTAMP",
  6326. "hideInGraph": false,
  6327. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6328. "refDict": "",
  6329. "extProps": {},
  6330. "notes": {},
  6331. "attr1": "",
  6332. "attr2": "",
  6333. "attr3": "",
  6334. "attr4": "",
  6335. "attr5": "",
  6336. "attr6": "",
  6337. "attr7": "",
  6338. "attr8": "",
  6339. "attr9": "",
  6340. "id": "9474081A-ACB2-4D9C-A953-446AB072BA96"
  6341. },
  6342. {
  6343. "defKey": "updated_by",
  6344. "defName": "更新人",
  6345. "comment": "",
  6346. "type": "VARCHAR",
  6347. "len": 255,
  6348. "scale": "",
  6349. "primaryKey": false,
  6350. "notNull": false,
  6351. "autoIncrement": false,
  6352. "defaultValue": "",
  6353. "hideInGraph": false,
  6354. "refDict": "",
  6355. "extProps": {},
  6356. "notes": {},
  6357. "attr1": "",
  6358. "attr2": "",
  6359. "attr3": "",
  6360. "attr4": "",
  6361. "attr5": "",
  6362. "attr6": "",
  6363. "attr7": "",
  6364. "attr8": "",
  6365. "attr9": "",
  6366. "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA"
  6367. },
  6368. {
  6369. "defKey": "updated_at",
  6370. "defName": "更新时间",
  6371. "comment": "",
  6372. "type": "",
  6373. "len": "",
  6374. "scale": "",
  6375. "primaryKey": false,
  6376. "notNull": false,
  6377. "autoIncrement": false,
  6378. "defaultValue": "",
  6379. "hideInGraph": false,
  6380. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6381. "refDict": "",
  6382. "extProps": {},
  6383. "notes": {},
  6384. "attr1": "",
  6385. "attr2": "",
  6386. "attr3": "",
  6387. "attr4": "",
  6388. "attr5": "",
  6389. "attr6": "",
  6390. "attr7": "",
  6391. "attr8": "",
  6392. "attr9": "",
  6393. "id": "2633F340-56C2-4560-AC42-00C81EDC67F1"
  6394. }
  6395. ],
  6396. "correlations": [],
  6397. "indexes": []
  6398. },
  6399. {
  6400. "id": "46C7A2EC-9B28-47D7-A508-A6B4A8A901D6",
  6401. "env": {
  6402. "base": {
  6403. "nameSpace": "com.njyunzhi.repository",
  6404. "codeRoot": "TaCompanyLegalInfo"
  6405. },
  6406. "template": {
  6407. "JavaMybatisPlus": {
  6408. "Controller": {
  6409. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  6410. "enable": false
  6411. },
  6412. "Service": {
  6413. "suffix": "service/{{=it.codeRoot}}Service.java",
  6414. "enable": false
  6415. },
  6416. "ServiceImpl": {
  6417. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  6418. "enable": false
  6419. },
  6420. "Mapper": {
  6421. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  6422. "enable": false
  6423. },
  6424. "Mapper.xml": {
  6425. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  6426. "enable": true
  6427. },
  6428. "Entity": {
  6429. "suffix": "entity/{{=it.codeRoot}}.java",
  6430. "enable": false
  6431. }
  6432. }
  6433. },
  6434. "custom": {}
  6435. },
  6436. "defKey": "ta_company_legal_info",
  6437. "defName": "公司法人代表信息",
  6438. "comment": "",
  6439. "properties": {
  6440. "partitioned by": "(date string)",
  6441. "row format delimited": "",
  6442. "fields terminated by ','": "",
  6443. "collection items terminated by '-'": "",
  6444. "map keys terminated by ':'": "",
  6445. "store as textfile;": ""
  6446. },
  6447. "nameTemplate": "{defKey}[{defName}]",
  6448. "notes": {},
  6449. "headers": [
  6450. {
  6451. "refKey": "hideInGraph",
  6452. "hideInGraph": true
  6453. },
  6454. {
  6455. "refKey": "defKey",
  6456. "freeze": false,
  6457. "hideInGraph": false
  6458. },
  6459. {
  6460. "refKey": "defName",
  6461. "freeze": false,
  6462. "hideInGraph": false
  6463. },
  6464. {
  6465. "refKey": "primaryKey",
  6466. "freeze": false,
  6467. "hideInGraph": false
  6468. },
  6469. {
  6470. "refKey": "notNull",
  6471. "freeze": false,
  6472. "hideInGraph": true
  6473. },
  6474. {
  6475. "refKey": "autoIncrement",
  6476. "freeze": false,
  6477. "hideInGraph": true
  6478. },
  6479. {
  6480. "refKey": "domain",
  6481. "freeze": false,
  6482. "hideInGraph": true
  6483. },
  6484. {
  6485. "refKey": "type",
  6486. "freeze": false,
  6487. "hideInGraph": false
  6488. },
  6489. {
  6490. "refKey": "len",
  6491. "freeze": false,
  6492. "hideInGraph": false
  6493. },
  6494. {
  6495. "refKey": "scale",
  6496. "freeze": false,
  6497. "hideInGraph": false
  6498. },
  6499. {
  6500. "refKey": "comment",
  6501. "freeze": false,
  6502. "hideInGraph": true
  6503. },
  6504. {
  6505. "refKey": "refDict",
  6506. "freeze": false,
  6507. "hideInGraph": true
  6508. },
  6509. {
  6510. "refKey": "defaultValue",
  6511. "freeze": false,
  6512. "hideInGraph": true
  6513. },
  6514. {
  6515. "refKey": "isStandard",
  6516. "freeze": false,
  6517. "hideInGraph": false
  6518. },
  6519. {
  6520. "refKey": "uiHint",
  6521. "freeze": false,
  6522. "hideInGraph": true
  6523. },
  6524. {
  6525. "refKey": "extProps",
  6526. "freeze": false,
  6527. "hideInGraph": true
  6528. },
  6529. {
  6530. "refKey": "attr1",
  6531. "freeze": false,
  6532. "hideInGraph": true
  6533. },
  6534. {
  6535. "refKey": "attr2",
  6536. "freeze": false,
  6537. "hideInGraph": true
  6538. },
  6539. {
  6540. "refKey": "attr3",
  6541. "freeze": false,
  6542. "hideInGraph": true
  6543. },
  6544. {
  6545. "refKey": "attr4",
  6546. "freeze": false,
  6547. "hideInGraph": true
  6548. },
  6549. {
  6550. "refKey": "attr5",
  6551. "freeze": false,
  6552. "hideInGraph": true
  6553. },
  6554. {
  6555. "refKey": "attr6",
  6556. "freeze": false,
  6557. "hideInGraph": true
  6558. },
  6559. {
  6560. "refKey": "attr7",
  6561. "freeze": false,
  6562. "hideInGraph": true
  6563. },
  6564. {
  6565. "refKey": "attr8",
  6566. "freeze": false,
  6567. "hideInGraph": true
  6568. },
  6569. {
  6570. "refKey": "attr9",
  6571. "freeze": false,
  6572. "hideInGraph": true
  6573. }
  6574. ],
  6575. "fields": [
  6576. {
  6577. "defKey": "company_legal_id",
  6578. "defName": "公司法人代表信息id",
  6579. "comment": "",
  6580. "type": "",
  6581. "len": "",
  6582. "scale": "",
  6583. "primaryKey": true,
  6584. "notNull": true,
  6585. "autoIncrement": false,
  6586. "defaultValue": "",
  6587. "hideInGraph": false,
  6588. "refDict": null,
  6589. "extProps": {},
  6590. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6591. "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
  6592. "uiHint": null
  6593. },
  6594. {
  6595. "defKey": "real_company_id",
  6596. "defName": "公司实名认证id",
  6597. "comment": "",
  6598. "type": "",
  6599. "len": "",
  6600. "scale": "",
  6601. "primaryKey": false,
  6602. "notNull": false,
  6603. "autoIncrement": false,
  6604. "defaultValue": "",
  6605. "hideInGraph": false,
  6606. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6607. "refDict": "",
  6608. "extProps": {},
  6609. "notes": {},
  6610. "attr1": "",
  6611. "attr2": "",
  6612. "attr3": "",
  6613. "attr4": "",
  6614. "attr5": "",
  6615. "attr6": "",
  6616. "attr7": "",
  6617. "attr8": "",
  6618. "attr9": "",
  6619. "id": "C525F473-B472-4539-AE6C-6914140F44DE"
  6620. },
  6621. {
  6622. "defKey": "tenant_id",
  6623. "defName": "租户号",
  6624. "comment": "",
  6625. "type": "",
  6626. "len": "",
  6627. "scale": "",
  6628. "primaryKey": false,
  6629. "notNull": false,
  6630. "autoIncrement": false,
  6631. "defaultValue": "",
  6632. "hideInGraph": false,
  6633. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  6634. "refDict": null,
  6635. "uiHint": null,
  6636. "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
  6637. },
  6638. {
  6639. "defKey": "identity",
  6640. "defName": "身份 conpanyDirector:企业董事,authorizedPerson:授权人",
  6641. "comment": "",
  6642. "type": "",
  6643. "len": "",
  6644. "scale": "",
  6645. "primaryKey": false,
  6646. "notNull": false,
  6647. "autoIncrement": false,
  6648. "defaultValue": "",
  6649. "hideInGraph": false,
  6650. "refDict": null,
  6651. "extProps": {},
  6652. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6653. "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
  6654. "uiHint": null
  6655. },
  6656. {
  6657. "defKey": "director_country",
  6658. "defName": "企业董事国家",
  6659. "comment": "",
  6660. "type": "",
  6661. "len": "",
  6662. "scale": "",
  6663. "primaryKey": false,
  6664. "notNull": false,
  6665. "autoIncrement": false,
  6666. "defaultValue": "",
  6667. "hideInGraph": false,
  6668. "refDict": null,
  6669. "extProps": {},
  6670. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6671. "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
  6672. "uiHint": null
  6673. },
  6674. {
  6675. "defKey": "director_id_type",
  6676. "defName": "企业董事证件类型",
  6677. "comment": "",
  6678. "type": "",
  6679. "len": "",
  6680. "scale": "",
  6681. "primaryKey": false,
  6682. "notNull": false,
  6683. "autoIncrement": false,
  6684. "defaultValue": "",
  6685. "hideInGraph": false,
  6686. "refDict": null,
  6687. "extProps": {},
  6688. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  6689. "id": "2D91B267-271B-4379-A72D-B7536502F06E",
  6690. "uiHint": null
  6691. },
  6692. {
  6693. "defKey": "director_id_front",
  6694. "defName": "企业董事证件正面",
  6695. "comment": "",
  6696. "type": "VARCHAR",
  6697. "len": 255,
  6698. "scale": "",
  6699. "primaryKey": false,
  6700. "notNull": false,
  6701. "autoIncrement": false,
  6702. "defaultValue": "",
  6703. "hideInGraph": false,
  6704. "refDict": null,
  6705. "extProps": {},
  6706. "domain": "",
  6707. "id": "FD568544-7D86-4EF5-93BE-B4A4401B6724",
  6708. "uiHint": null
  6709. },
  6710. {
  6711. "defKey": "director_id_back",
  6712. "defName": "企业董事证件反面",
  6713. "comment": "",
  6714. "type": "VARCHAR",
  6715. "len": 255,
  6716. "scale": "",
  6717. "primaryKey": false,
  6718. "notNull": false,
  6719. "autoIncrement": false,
  6720. "defaultValue": "",
  6721. "hideInGraph": false,
  6722. "domain": "",
  6723. "refDict": "",
  6724. "extProps": {},
  6725. "notes": {},
  6726. "attr1": "",
  6727. "attr2": "",
  6728. "attr3": "",
  6729. "attr4": "",
  6730. "attr5": "",
  6731. "attr6": "",
  6732. "attr7": "",
  6733. "attr8": "",
  6734. "attr9": "",
  6735. "id": "27CEED93-2A24-4399-9439-F8C03E3512F9"
  6736. },
  6737. {
  6738. "defKey": "director_name_cn",
  6739. "defName": "董事中文名",
  6740. "comment": "",
  6741. "type": "VARCHAR",
  6742. "len": 255,
  6743. "scale": "",
  6744. "primaryKey": false,
  6745. "notNull": false,
  6746. "autoIncrement": false,
  6747. "defaultValue": "",
  6748. "hideInGraph": false,
  6749. "refDict": null,
  6750. "extProps": {},
  6751. "domain": null,
  6752. "id": "D515D25A-4FC1-4CC5-BDD3-A7CEB6FC541B",
  6753. "uiHint": null
  6754. },
  6755. {
  6756. "defKey": "director_id_no",
  6757. "defName": "董事证件号码",
  6758. "comment": "",
  6759. "type": "VARCHAR",
  6760. "len": 255,
  6761. "scale": "",
  6762. "primaryKey": false,
  6763. "notNull": false,
  6764. "autoIncrement": false,
  6765. "defaultValue": "",
  6766. "hideInGraph": false,
  6767. "refDict": null,
  6768. "extProps": {},
  6769. "domain": null,
  6770. "id": "984E4A5F-2983-49D9-A033-13167F8FABCA",
  6771. "uiHint": null
  6772. },
  6773. {
  6774. "defKey": "created_by",
  6775. "defName": "创建人",
  6776. "comment": "",
  6777. "type": "VARCHAR",
  6778. "len": 255,
  6779. "scale": "",
  6780. "primaryKey": false,
  6781. "notNull": false,
  6782. "autoIncrement": false,
  6783. "defaultValue": "",
  6784. "hideInGraph": false,
  6785. "refDict": null,
  6786. "extProps": {},
  6787. "notes": {},
  6788. "attr1": "",
  6789. "attr2": "",
  6790. "attr3": "",
  6791. "attr4": "",
  6792. "attr5": "",
  6793. "attr6": "",
  6794. "attr7": "",
  6795. "attr8": "",
  6796. "attr9": "",
  6797. "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
  6798. "domain": null,
  6799. "uiHint": null
  6800. },
  6801. {
  6802. "defKey": "created_at",
  6803. "defName": "创建时间",
  6804. "comment": "",
  6805. "type": "",
  6806. "len": "",
  6807. "scale": "",
  6808. "primaryKey": false,
  6809. "notNull": false,
  6810. "autoIncrement": false,
  6811. "defaultValue": "CURRENT_TIMESTAMP",
  6812. "hideInGraph": false,
  6813. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6814. "refDict": null,
  6815. "extProps": {},
  6816. "notes": {},
  6817. "attr1": "",
  6818. "attr2": "",
  6819. "attr3": "",
  6820. "attr4": "",
  6821. "attr5": "",
  6822. "attr6": "",
  6823. "attr7": "",
  6824. "attr8": "",
  6825. "attr9": "",
  6826. "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
  6827. "uiHint": null
  6828. },
  6829. {
  6830. "defKey": "updated_by",
  6831. "defName": "更新人",
  6832. "comment": "",
  6833. "type": "VARCHAR",
  6834. "len": 255,
  6835. "scale": "",
  6836. "primaryKey": false,
  6837. "notNull": false,
  6838. "autoIncrement": false,
  6839. "defaultValue": "",
  6840. "hideInGraph": false,
  6841. "refDict": null,
  6842. "extProps": {},
  6843. "notes": {},
  6844. "attr1": "",
  6845. "attr2": "",
  6846. "attr3": "",
  6847. "attr4": "",
  6848. "attr5": "",
  6849. "attr6": "",
  6850. "attr7": "",
  6851. "attr8": "",
  6852. "attr9": "",
  6853. "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
  6854. "domain": null,
  6855. "uiHint": null
  6856. },
  6857. {
  6858. "defKey": "updated_at",
  6859. "defName": "更新时间",
  6860. "comment": "",
  6861. "type": "",
  6862. "len": "",
  6863. "scale": "",
  6864. "primaryKey": false,
  6865. "notNull": false,
  6866. "autoIncrement": false,
  6867. "defaultValue": "",
  6868. "hideInGraph": false,
  6869. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  6870. "refDict": null,
  6871. "extProps": {},
  6872. "notes": {},
  6873. "attr1": "",
  6874. "attr2": "",
  6875. "attr3": "",
  6876. "attr4": "",
  6877. "attr5": "",
  6878. "attr6": "",
  6879. "attr7": "",
  6880. "attr8": "",
  6881. "attr9": "",
  6882. "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
  6883. "uiHint": null
  6884. }
  6885. ],
  6886. "correlations": [],
  6887. "indexes": []
  6888. },
  6889. {
  6890. "id": "922F3404-054F-4388-AE10-C88F8487AECC",
  6891. "env": {
  6892. "base": {
  6893. "nameSpace": "com.njyunzhi.repository",
  6894. "codeRoot": "TaCompanyBeneficiaryInfo"
  6895. },
  6896. "template": {
  6897. "JavaMybatisPlus": {
  6898. "Controller": {
  6899. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  6900. "enable": false
  6901. },
  6902. "Service": {
  6903. "suffix": "service/{{=it.codeRoot}}Service.java",
  6904. "enable": false
  6905. },
  6906. "ServiceImpl": {
  6907. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  6908. "enable": false
  6909. },
  6910. "Mapper": {
  6911. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  6912. "enable": false
  6913. },
  6914. "Mapper.xml": {
  6915. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  6916. "enable": true
  6917. },
  6918. "Entity": {
  6919. "suffix": "entity/{{=it.codeRoot}}.java",
  6920. "enable": false
  6921. }
  6922. }
  6923. },
  6924. "custom": {}
  6925. },
  6926. "defKey": "ta_company_beneficiary_info",
  6927. "defName": "受益所有人信息",
  6928. "comment": "",
  6929. "properties": {
  6930. "partitioned by": "(date string)",
  6931. "row format delimited": "",
  6932. "fields terminated by ','": "",
  6933. "collection items terminated by '-'": "",
  6934. "map keys terminated by ':'": "",
  6935. "store as textfile;": ""
  6936. },
  6937. "nameTemplate": "{defKey}[{defName}]",
  6938. "notes": {},
  6939. "headers": [
  6940. {
  6941. "refKey": "hideInGraph",
  6942. "hideInGraph": true
  6943. },
  6944. {
  6945. "refKey": "defKey",
  6946. "freeze": false,
  6947. "hideInGraph": false
  6948. },
  6949. {
  6950. "refKey": "defName",
  6951. "freeze": false,
  6952. "hideInGraph": false
  6953. },
  6954. {
  6955. "refKey": "primaryKey",
  6956. "freeze": false,
  6957. "hideInGraph": false
  6958. },
  6959. {
  6960. "refKey": "notNull",
  6961. "freeze": false,
  6962. "hideInGraph": true
  6963. },
  6964. {
  6965. "refKey": "autoIncrement",
  6966. "freeze": false,
  6967. "hideInGraph": true
  6968. },
  6969. {
  6970. "refKey": "domain",
  6971. "freeze": false,
  6972. "hideInGraph": true
  6973. },
  6974. {
  6975. "refKey": "type",
  6976. "freeze": false,
  6977. "hideInGraph": false
  6978. },
  6979. {
  6980. "refKey": "len",
  6981. "freeze": false,
  6982. "hideInGraph": false
  6983. },
  6984. {
  6985. "refKey": "scale",
  6986. "freeze": false,
  6987. "hideInGraph": false
  6988. },
  6989. {
  6990. "refKey": "comment",
  6991. "freeze": false,
  6992. "hideInGraph": true
  6993. },
  6994. {
  6995. "refKey": "refDict",
  6996. "freeze": false,
  6997. "hideInGraph": true
  6998. },
  6999. {
  7000. "refKey": "defaultValue",
  7001. "freeze": false,
  7002. "hideInGraph": true
  7003. },
  7004. {
  7005. "refKey": "isStandard",
  7006. "freeze": false,
  7007. "hideInGraph": false
  7008. },
  7009. {
  7010. "refKey": "uiHint",
  7011. "freeze": false,
  7012. "hideInGraph": true
  7013. },
  7014. {
  7015. "refKey": "extProps",
  7016. "freeze": false,
  7017. "hideInGraph": true
  7018. },
  7019. {
  7020. "refKey": "attr1",
  7021. "freeze": false,
  7022. "hideInGraph": true
  7023. },
  7024. {
  7025. "refKey": "attr2",
  7026. "freeze": false,
  7027. "hideInGraph": true
  7028. },
  7029. {
  7030. "refKey": "attr3",
  7031. "freeze": false,
  7032. "hideInGraph": true
  7033. },
  7034. {
  7035. "refKey": "attr4",
  7036. "freeze": false,
  7037. "hideInGraph": true
  7038. },
  7039. {
  7040. "refKey": "attr5",
  7041. "freeze": false,
  7042. "hideInGraph": true
  7043. },
  7044. {
  7045. "refKey": "attr6",
  7046. "freeze": false,
  7047. "hideInGraph": true
  7048. },
  7049. {
  7050. "refKey": "attr7",
  7051. "freeze": false,
  7052. "hideInGraph": true
  7053. },
  7054. {
  7055. "refKey": "attr8",
  7056. "freeze": false,
  7057. "hideInGraph": true
  7058. },
  7059. {
  7060. "refKey": "attr9",
  7061. "freeze": false,
  7062. "hideInGraph": true
  7063. }
  7064. ],
  7065. "fields": [
  7066. {
  7067. "defKey": "beneficiary_id",
  7068. "defName": "受益人id",
  7069. "comment": "",
  7070. "type": "",
  7071. "len": "",
  7072. "scale": "",
  7073. "primaryKey": true,
  7074. "notNull": true,
  7075. "autoIncrement": false,
  7076. "defaultValue": "",
  7077. "hideInGraph": false,
  7078. "refDict": null,
  7079. "extProps": {},
  7080. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7081. "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
  7082. "uiHint": null
  7083. },
  7084. {
  7085. "defKey": "real_company_id",
  7086. "defName": "公司实名认证id",
  7087. "comment": "",
  7088. "type": "",
  7089. "len": "",
  7090. "scale": "",
  7091. "primaryKey": false,
  7092. "notNull": false,
  7093. "autoIncrement": false,
  7094. "defaultValue": "",
  7095. "hideInGraph": false,
  7096. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7097. "refDict": "",
  7098. "extProps": {},
  7099. "notes": {},
  7100. "attr1": "",
  7101. "attr2": "",
  7102. "attr3": "",
  7103. "attr4": "",
  7104. "attr5": "",
  7105. "attr6": "",
  7106. "attr7": "",
  7107. "attr8": "",
  7108. "attr9": "",
  7109. "id": "93631D7E-E81E-4DE4-B25B-1A342FAD40EC"
  7110. },
  7111. {
  7112. "defKey": "beneficiary_name",
  7113. "defName": "受益人姓名",
  7114. "comment": "",
  7115. "type": "",
  7116. "len": "",
  7117. "scale": "",
  7118. "primaryKey": false,
  7119. "notNull": false,
  7120. "autoIncrement": false,
  7121. "defaultValue": "",
  7122. "hideInGraph": false,
  7123. "refDict": "",
  7124. "extProps": {},
  7125. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7126. "id": "6AC832D7-8974-4364-B29E-69E07DF8CBBF"
  7127. },
  7128. {
  7129. "defKey": "company_legal_id",
  7130. "defName": "公司法人代表信息id",
  7131. "comment": "",
  7132. "type": "",
  7133. "len": "",
  7134. "scale": "",
  7135. "primaryKey": false,
  7136. "notNull": false,
  7137. "autoIncrement": false,
  7138. "defaultValue": "",
  7139. "hideInGraph": false,
  7140. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7141. "refDict": "",
  7142. "extProps": {},
  7143. "notes": {},
  7144. "attr1": "",
  7145. "attr2": "",
  7146. "attr3": "",
  7147. "attr4": "",
  7148. "attr5": "",
  7149. "attr6": "",
  7150. "attr7": "",
  7151. "attr8": "",
  7152. "attr9": "",
  7153. "id": "B6621F40-C1A7-47E8-BB7D-623D4ABA72B8"
  7154. },
  7155. {
  7156. "defKey": "tenant_id",
  7157. "defName": "租户号",
  7158. "comment": "",
  7159. "type": "",
  7160. "len": "",
  7161. "scale": "",
  7162. "primaryKey": false,
  7163. "notNull": false,
  7164. "autoIncrement": false,
  7165. "defaultValue": "",
  7166. "hideInGraph": false,
  7167. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  7168. "refDict": null,
  7169. "uiHint": null,
  7170. "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
  7171. },
  7172. {
  7173. "defKey": "shareholding_ratio",
  7174. "defName": "持股比例",
  7175. "comment": "",
  7176. "type": "",
  7177. "len": "",
  7178. "scale": "",
  7179. "primaryKey": false,
  7180. "notNull": false,
  7181. "autoIncrement": false,
  7182. "defaultValue": "",
  7183. "hideInGraph": false,
  7184. "refDict": null,
  7185. "extProps": {},
  7186. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7187. "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
  7188. "uiHint": null
  7189. },
  7190. {
  7191. "defKey": "equity_structure_chart",
  7192. "defName": "股权架构图",
  7193. "comment": "",
  7194. "type": "BLOB",
  7195. "len": 255,
  7196. "scale": "",
  7197. "primaryKey": false,
  7198. "notNull": false,
  7199. "autoIncrement": false,
  7200. "defaultValue": "",
  7201. "hideInGraph": false,
  7202. "refDict": null,
  7203. "extProps": {},
  7204. "domain": "",
  7205. "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
  7206. "uiHint": null
  7207. },
  7208. {
  7209. "defKey": "created_by",
  7210. "defName": "创建人",
  7211. "comment": "",
  7212. "type": "VARCHAR",
  7213. "len": 255,
  7214. "scale": "",
  7215. "primaryKey": false,
  7216. "notNull": false,
  7217. "autoIncrement": false,
  7218. "defaultValue": "",
  7219. "hideInGraph": false,
  7220. "refDict": null,
  7221. "extProps": {},
  7222. "notes": {},
  7223. "attr1": "",
  7224. "attr2": "",
  7225. "attr3": "",
  7226. "attr4": "",
  7227. "attr5": "",
  7228. "attr6": "",
  7229. "attr7": "",
  7230. "attr8": "",
  7231. "attr9": "",
  7232. "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
  7233. "domain": null,
  7234. "uiHint": null
  7235. },
  7236. {
  7237. "defKey": "created_at",
  7238. "defName": "创建时间",
  7239. "comment": "",
  7240. "type": "",
  7241. "len": "",
  7242. "scale": "",
  7243. "primaryKey": false,
  7244. "notNull": false,
  7245. "autoIncrement": false,
  7246. "defaultValue": "CURRENT_TIMESTAMP",
  7247. "hideInGraph": false,
  7248. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7249. "refDict": null,
  7250. "extProps": {},
  7251. "notes": {},
  7252. "attr1": "",
  7253. "attr2": "",
  7254. "attr3": "",
  7255. "attr4": "",
  7256. "attr5": "",
  7257. "attr6": "",
  7258. "attr7": "",
  7259. "attr8": "",
  7260. "attr9": "",
  7261. "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
  7262. "uiHint": null
  7263. },
  7264. {
  7265. "defKey": "updated_by",
  7266. "defName": "更新人",
  7267. "comment": "",
  7268. "type": "VARCHAR",
  7269. "len": 255,
  7270. "scale": "",
  7271. "primaryKey": false,
  7272. "notNull": false,
  7273. "autoIncrement": false,
  7274. "defaultValue": "",
  7275. "hideInGraph": false,
  7276. "refDict": null,
  7277. "extProps": {},
  7278. "notes": {},
  7279. "attr1": "",
  7280. "attr2": "",
  7281. "attr3": "",
  7282. "attr4": "",
  7283. "attr5": "",
  7284. "attr6": "",
  7285. "attr7": "",
  7286. "attr8": "",
  7287. "attr9": "",
  7288. "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
  7289. "domain": null,
  7290. "uiHint": null
  7291. },
  7292. {
  7293. "defKey": "updated_at",
  7294. "defName": "更新时间",
  7295. "comment": "",
  7296. "type": "",
  7297. "len": "",
  7298. "scale": "",
  7299. "primaryKey": false,
  7300. "notNull": false,
  7301. "autoIncrement": false,
  7302. "defaultValue": "",
  7303. "hideInGraph": false,
  7304. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7305. "refDict": null,
  7306. "extProps": {},
  7307. "notes": {},
  7308. "attr1": "",
  7309. "attr2": "",
  7310. "attr3": "",
  7311. "attr4": "",
  7312. "attr5": "",
  7313. "attr6": "",
  7314. "attr7": "",
  7315. "attr8": "",
  7316. "attr9": "",
  7317. "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
  7318. "uiHint": null
  7319. }
  7320. ],
  7321. "correlations": [],
  7322. "indexes": []
  7323. },
  7324. {
  7325. "id": "0D432A13-EB6C-4DBA-972D-F4DBC06E1742",
  7326. "env": {
  7327. "base": {
  7328. "nameSpace": "com.njyunzhi.platform",
  7329. "codeRoot": "TaCompanyRealName"
  7330. },
  7331. "template": {
  7332. "JavaMybatisPlus": {
  7333. "Controller": {
  7334. "suffix": "controller/{{=it.codeRoot}}Controller.java",
  7335. "enable": false
  7336. },
  7337. "Service": {
  7338. "suffix": "service/{{=it.codeRoot}}Service.java",
  7339. "enable": false
  7340. },
  7341. "ServiceImpl": {
  7342. "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
  7343. "enable": true
  7344. },
  7345. "Mapper": {
  7346. "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
  7347. "enable": false
  7348. },
  7349. "Mapper.xml": {
  7350. "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
  7351. "enable": false
  7352. },
  7353. "Entity": {
  7354. "suffix": "entity/{{=it.codeRoot}}.java",
  7355. "enable": false
  7356. }
  7357. }
  7358. },
  7359. "custom": {}
  7360. },
  7361. "defKey": "ta_company_real_name",
  7362. "defName": "公司实名认证",
  7363. "comment": "",
  7364. "properties": {
  7365. "partitioned by": "(date string)",
  7366. "row format delimited": "",
  7367. "fields terminated by ','": "",
  7368. "collection items terminated by '-'": "",
  7369. "map keys terminated by ':'": "",
  7370. "store as textfile;": ""
  7371. },
  7372. "nameTemplate": "{defKey}[{defName}]",
  7373. "notes": {},
  7374. "headers": [
  7375. {
  7376. "refKey": "hideInGraph",
  7377. "hideInGraph": true
  7378. },
  7379. {
  7380. "refKey": "defKey",
  7381. "freeze": false,
  7382. "hideInGraph": false
  7383. },
  7384. {
  7385. "refKey": "defName",
  7386. "freeze": false,
  7387. "hideInGraph": false
  7388. },
  7389. {
  7390. "refKey": "primaryKey",
  7391. "freeze": false,
  7392. "hideInGraph": false
  7393. },
  7394. {
  7395. "refKey": "notNull",
  7396. "freeze": false,
  7397. "hideInGraph": true
  7398. },
  7399. {
  7400. "refKey": "autoIncrement",
  7401. "freeze": false,
  7402. "hideInGraph": true
  7403. },
  7404. {
  7405. "refKey": "domain",
  7406. "freeze": false,
  7407. "hideInGraph": true
  7408. },
  7409. {
  7410. "refKey": "type",
  7411. "freeze": false,
  7412. "hideInGraph": false
  7413. },
  7414. {
  7415. "refKey": "len",
  7416. "freeze": false,
  7417. "hideInGraph": false
  7418. },
  7419. {
  7420. "refKey": "scale",
  7421. "freeze": false,
  7422. "hideInGraph": false
  7423. },
  7424. {
  7425. "refKey": "comment",
  7426. "freeze": false,
  7427. "hideInGraph": true
  7428. },
  7429. {
  7430. "refKey": "refDict",
  7431. "freeze": false,
  7432. "hideInGraph": true
  7433. },
  7434. {
  7435. "refKey": "defaultValue",
  7436. "freeze": false,
  7437. "hideInGraph": true
  7438. },
  7439. {
  7440. "refKey": "isStandard",
  7441. "freeze": false,
  7442. "hideInGraph": false
  7443. },
  7444. {
  7445. "refKey": "uiHint",
  7446. "freeze": false,
  7447. "hideInGraph": true
  7448. },
  7449. {
  7450. "refKey": "extProps",
  7451. "freeze": false,
  7452. "hideInGraph": true
  7453. },
  7454. {
  7455. "refKey": "attr1",
  7456. "freeze": false,
  7457. "hideInGraph": true
  7458. },
  7459. {
  7460. "refKey": "attr2",
  7461. "freeze": false,
  7462. "hideInGraph": true
  7463. },
  7464. {
  7465. "refKey": "attr3",
  7466. "freeze": false,
  7467. "hideInGraph": true
  7468. },
  7469. {
  7470. "refKey": "attr4",
  7471. "freeze": false,
  7472. "hideInGraph": true
  7473. },
  7474. {
  7475. "refKey": "attr5",
  7476. "freeze": false,
  7477. "hideInGraph": true
  7478. },
  7479. {
  7480. "refKey": "attr6",
  7481. "freeze": false,
  7482. "hideInGraph": true
  7483. },
  7484. {
  7485. "refKey": "attr7",
  7486. "freeze": false,
  7487. "hideInGraph": true
  7488. },
  7489. {
  7490. "refKey": "attr8",
  7491. "freeze": false,
  7492. "hideInGraph": true
  7493. },
  7494. {
  7495. "refKey": "attr9",
  7496. "freeze": false,
  7497. "hideInGraph": true
  7498. }
  7499. ],
  7500. "fields": [
  7501. {
  7502. "defKey": "real_company_id",
  7503. "defName": "公司实名认证id",
  7504. "comment": "",
  7505. "type": "",
  7506. "len": "",
  7507. "scale": "",
  7508. "primaryKey": true,
  7509. "notNull": true,
  7510. "autoIncrement": false,
  7511. "defaultValue": "",
  7512. "hideInGraph": false,
  7513. "refDict": null,
  7514. "extProps": {},
  7515. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7516. "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
  7517. "uiHint": null
  7518. },
  7519. {
  7520. "defKey": "tenant_id",
  7521. "defName": "租户号",
  7522. "comment": "",
  7523. "type": "",
  7524. "len": "",
  7525. "scale": "",
  7526. "primaryKey": false,
  7527. "notNull": false,
  7528. "autoIncrement": false,
  7529. "defaultValue": "",
  7530. "hideInGraph": false,
  7531. "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
  7532. "refDict": null,
  7533. "uiHint": null,
  7534. "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
  7535. },
  7536. {
  7537. "defKey": "registration_location",
  7538. "defName": "企业注册地",
  7539. "comment": "",
  7540. "type": "",
  7541. "len": "",
  7542. "scale": "",
  7543. "primaryKey": false,
  7544. "notNull": false,
  7545. "autoIncrement": false,
  7546. "defaultValue": "",
  7547. "hideInGraph": false,
  7548. "refDict": null,
  7549. "extProps": {},
  7550. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7551. "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
  7552. "uiHint": null
  7553. },
  7554. {
  7555. "defKey": "company_name_cn",
  7556. "defName": "企业中文名",
  7557. "comment": "",
  7558. "type": "",
  7559. "len": "",
  7560. "scale": "",
  7561. "primaryKey": false,
  7562. "notNull": false,
  7563. "autoIncrement": false,
  7564. "defaultValue": "",
  7565. "hideInGraph": false,
  7566. "refDict": null,
  7567. "extProps": {},
  7568. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7569. "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
  7570. "uiHint": null
  7571. },
  7572. {
  7573. "defKey": "company_name_en",
  7574. "defName": "企业英文名",
  7575. "comment": "",
  7576. "type": "",
  7577. "len": "",
  7578. "scale": "",
  7579. "primaryKey": false,
  7580. "notNull": false,
  7581. "autoIncrement": false,
  7582. "defaultValue": "",
  7583. "hideInGraph": false,
  7584. "refDict": null,
  7585. "extProps": {},
  7586. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7587. "id": "2D91B267-271B-4379-A72D-B7536502F06E",
  7588. "uiHint": null
  7589. },
  7590. {
  7591. "defKey": "is_listed_company",
  7592. "defName": "是否为上市企业 0:否 1:是",
  7593. "comment": "",
  7594. "type": "",
  7595. "len": "",
  7596. "scale": "",
  7597. "primaryKey": false,
  7598. "notNull": false,
  7599. "autoIncrement": false,
  7600. "defaultValue": "",
  7601. "hideInGraph": false,
  7602. "refDict": null,
  7603. "extProps": {},
  7604. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7605. "id": "FD568544-7D86-4EF5-93BE-B4A4401B6724",
  7606. "uiHint": null
  7607. },
  7608. {
  7609. "defKey": "created_by",
  7610. "defName": "创建人",
  7611. "comment": "",
  7612. "type": "VARCHAR",
  7613. "len": 255,
  7614. "scale": "",
  7615. "primaryKey": false,
  7616. "notNull": false,
  7617. "autoIncrement": false,
  7618. "defaultValue": "",
  7619. "hideInGraph": false,
  7620. "refDict": null,
  7621. "extProps": {},
  7622. "notes": {},
  7623. "attr1": "",
  7624. "attr2": "",
  7625. "attr3": "",
  7626. "attr4": "",
  7627. "attr5": "",
  7628. "attr6": "",
  7629. "attr7": "",
  7630. "attr8": "",
  7631. "attr9": "",
  7632. "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
  7633. "domain": null,
  7634. "uiHint": null
  7635. },
  7636. {
  7637. "defKey": "created_at",
  7638. "defName": "创建时间",
  7639. "comment": "",
  7640. "type": "",
  7641. "len": "",
  7642. "scale": "",
  7643. "primaryKey": false,
  7644. "notNull": false,
  7645. "autoIncrement": false,
  7646. "defaultValue": "CURRENT_TIMESTAMP",
  7647. "hideInGraph": false,
  7648. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7649. "refDict": null,
  7650. "extProps": {},
  7651. "notes": {},
  7652. "attr1": "",
  7653. "attr2": "",
  7654. "attr3": "",
  7655. "attr4": "",
  7656. "attr5": "",
  7657. "attr6": "",
  7658. "attr7": "",
  7659. "attr8": "",
  7660. "attr9": "",
  7661. "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
  7662. "uiHint": null
  7663. },
  7664. {
  7665. "defKey": "updated_by",
  7666. "defName": "更新人",
  7667. "comment": "",
  7668. "type": "VARCHAR",
  7669. "len": 255,
  7670. "scale": "",
  7671. "primaryKey": false,
  7672. "notNull": false,
  7673. "autoIncrement": false,
  7674. "defaultValue": "",
  7675. "hideInGraph": false,
  7676. "refDict": null,
  7677. "extProps": {},
  7678. "notes": {},
  7679. "attr1": "",
  7680. "attr2": "",
  7681. "attr3": "",
  7682. "attr4": "",
  7683. "attr5": "",
  7684. "attr6": "",
  7685. "attr7": "",
  7686. "attr8": "",
  7687. "attr9": "",
  7688. "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
  7689. "domain": null,
  7690. "uiHint": null
  7691. },
  7692. {
  7693. "defKey": "updated_at",
  7694. "defName": "更新时间",
  7695. "comment": "",
  7696. "type": "",
  7697. "len": "",
  7698. "scale": "",
  7699. "primaryKey": false,
  7700. "notNull": false,
  7701. "autoIncrement": false,
  7702. "defaultValue": "",
  7703. "hideInGraph": false,
  7704. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  7705. "refDict": null,
  7706. "extProps": {},
  7707. "notes": {},
  7708. "attr1": "",
  7709. "attr2": "",
  7710. "attr3": "",
  7711. "attr4": "",
  7712. "attr5": "",
  7713. "attr6": "",
  7714. "attr7": "",
  7715. "attr8": "",
  7716. "attr9": "",
  7717. "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
  7718. "uiHint": null
  7719. }
  7720. ],
  7721. "correlations": [],
  7722. "indexes": []
  7723. }
  7724. ],
  7725. "views": [],
  7726. "dicts": [],
  7727. "viewGroups": [],
  7728. "dataTypeMapping": {
  7729. "referURL": "",
  7730. "mappings": [
  7731. {
  7732. "defKey": "string",
  7733. "id": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7734. "defName": "字串",
  7735. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "VARCHAR",
  7736. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "VARCHAR2",
  7737. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARCHAR",
  7738. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "VARCHAR",
  7739. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "VARCHAR",
  7740. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "VARCHAR2",
  7741. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "VARCHAR",
  7742. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "VARCHAR",
  7743. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
  7744. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
  7745. "797A1496-D649-4261-89B4-544132EC3F36": "String",
  7746. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
  7747. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
  7748. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
  7749. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
  7750. "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
  7751. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
  7752. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "VARCHAR",
  7753. "483F9346-C99E-4014-A1D2-A554606BD8A3": "VARCHAR"
  7754. },
  7755. {
  7756. "defKey": "double",
  7757. "id": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7758. "defName": "小数",
  7759. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DECIMAL",
  7760. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DECIMAL",
  7761. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DECIMAL",
  7762. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "NUMERIC",
  7763. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DECIMAL",
  7764. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DECIMAL",
  7765. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "NUMERIC",
  7766. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "NUMERIC",
  7767. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DOUBLE",
  7768. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "REAL",
  7769. "797A1496-D649-4261-89B4-544132EC3F36": "Double",
  7770. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Double",
  7771. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Double",
  7772. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "decimal",
  7773. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "double",
  7774. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*float64",
  7775. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "f64",
  7776. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DECIMAL",
  7777. "483F9346-C99E-4014-A1D2-A554606BD8A3": "DECIMAL"
  7778. },
  7779. {
  7780. "defKey": "int",
  7781. "id": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  7782. "defName": "整数",
  7783. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "INT",
  7784. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "INT",
  7785. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "INT",
  7786. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "INTEGER",
  7787. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "INT",
  7788. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "INTEGER",
  7789. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "INTEGER",
  7790. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "INT4",
  7791. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "INT",
  7792. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "INTEGER",
  7793. "797A1496-D649-4261-89B4-544132EC3F36": "Integer",
  7794. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Integer",
  7795. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Integer",
  7796. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "float",
  7797. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "int",
  7798. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*int",
  7799. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "i32",
  7800. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "INTEGER",
  7801. "483F9346-C99E-4014-A1D2-A554606BD8A3": "INT"
  7802. },
  7803. {
  7804. "defKey": "date",
  7805. "id": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  7806. "defName": "日期",
  7807. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DATETIME",
  7808. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DATE",
  7809. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DATETIME",
  7810. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TIMESTAMP",
  7811. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DATE",
  7812. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DATE",
  7813. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "DATE",
  7814. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "DATE",
  7815. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DATETIME",
  7816. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NUMERIC",
  7817. "797A1496-D649-4261-89B4-544132EC3F36": "Date",
  7818. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Date",
  7819. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Date",
  7820. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "DateTime",
  7821. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "timestamp",
  7822. "B91D99E0-9B7C-416C-8737-B760957DAF09": "*time.Time",
  7823. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "DateTime<Local>",
  7824. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DATE",
  7825. "483F9346-C99E-4014-A1D2-A554606BD8A3": "DATETIME"
  7826. },
  7827. {
  7828. "defKey": "bytes",
  7829. "id": "D516E75B-90F5-4741-B9B3-A186A263F04C",
  7830. "defName": "二进制",
  7831. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "BLOB",
  7832. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "BLOB",
  7833. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARBINARY",
  7834. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "BYTEA",
  7835. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "BLOB",
  7836. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "BLOB",
  7837. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "BYTEA",
  7838. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "BYTEA",
  7839. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "BINARY",
  7840. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NONE",
  7841. "797A1496-D649-4261-89B4-544132EC3F36": "byte[]",
  7842. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "byte[]",
  7843. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "byte[]",
  7844. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "binary",
  7845. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "binary",
  7846. "B91D99E0-9B7C-416C-8737-B760957DAF09": "[]byte",
  7847. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "BYTE"
  7848. },
  7849. {
  7850. "defKey": "largeText",
  7851. "id": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
  7852. "defName": "大文本",
  7853. "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "TEXT",
  7854. "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "CLOB",
  7855. "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "TEXT",
  7856. "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TEXT",
  7857. "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "CLOB",
  7858. "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "CLOB",
  7859. "592C7013-143D-4E7B-AF64-0D7BF1E28230": "TEXT",
  7860. "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "TEXT",
  7861. "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
  7862. "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
  7863. "797A1496-D649-4261-89B4-544132EC3F36": "String",
  7864. "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
  7865. "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
  7866. "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
  7867. "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
  7868. "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
  7869. "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
  7870. "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "TEXT",
  7871. "483F9346-C99E-4014-A1D2-A554606BD8A3": "STRING"
  7872. }
  7873. ]
  7874. },
  7875. "domains": [
  7876. {
  7877. "defKey": "DefaultString",
  7878. "defName": "默认字串",
  7879. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7880. "len": 255,
  7881. "scale": "",
  7882. "uiHint": "",
  7883. "id": "9092C4E0-1A54-4859-ABBB-5B62DBC27573"
  7884. },
  7885. {
  7886. "defKey": "IdOrKey",
  7887. "defName": "主键标识",
  7888. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7889. "len": 32,
  7890. "scale": "",
  7891. "uiHint": "",
  7892. "id": "16120F75-6AA7-4483-868D-F07F511BB081"
  7893. },
  7894. {
  7895. "defKey": "Name",
  7896. "defName": "名称",
  7897. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7898. "len": 90,
  7899. "scale": "",
  7900. "uiHint": "",
  7901. "id": "54611CCC-CA4B-42E1-9F32-4944C85B85A6"
  7902. },
  7903. {
  7904. "defKey": "Int",
  7905. "defName": "整数",
  7906. "applyFor": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
  7907. "len": "",
  7908. "scale": "",
  7909. "uiHint": "",
  7910. "id": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E"
  7911. },
  7912. {
  7913. "defKey": "Double",
  7914. "defName": "小数",
  7915. "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7916. "len": 24,
  7917. "scale": 6,
  7918. "uiHint": "",
  7919. "id": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4"
  7920. },
  7921. {
  7922. "defKey": "Money",
  7923. "defName": "金额",
  7924. "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
  7925. "len": 24,
  7926. "scale": 6,
  7927. "uiHint": "",
  7928. "id": "C3B1681B-99F9-4818-9E80-DE1652A51D85"
  7929. },
  7930. {
  7931. "defKey": "DateTime",
  7932. "defName": "日期时间",
  7933. "applyFor": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
  7934. "len": "",
  7935. "scale": "",
  7936. "uiHint": "",
  7937. "id": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC"
  7938. },
  7939. {
  7940. "defKey": "YesNo",
  7941. "defName": "是否",
  7942. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7943. "len": "1",
  7944. "scale": "",
  7945. "uiHint": "",
  7946. "id": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF"
  7947. },
  7948. {
  7949. "defKey": "Dict",
  7950. "defName": "数据字典",
  7951. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7952. "len": "32",
  7953. "scale": "",
  7954. "uiHint": "",
  7955. "id": "73FD2BAD-2358-4336-B96D-45DC897BD792"
  7956. },
  7957. {
  7958. "defKey": "DescText",
  7959. "defName": "描述文本",
  7960. "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
  7961. "len": "900",
  7962. "scale": "",
  7963. "uiHint": "",
  7964. "id": "3E948CEC-3070-472C-AF92-F3CA11EC9D15"
  7965. }
  7966. ],
  7967. "diagrams": [],
  7968. "standardFields": [
  7969. {
  7970. "defKey": "personInfo",
  7971. "defName": "个人基本信息要素",
  7972. "fields": [
  7973. {
  7974. "defKey": "ID_CARD_NO",
  7975. "defName": "身份证号",
  7976. "comment": "",
  7977. "type": "VARCHAR",
  7978. "len": "60",
  7979. "scale": "",
  7980. "primaryKey": false,
  7981. "notNull": false,
  7982. "autoIncrement": false,
  7983. "defaultValue": "",
  7984. "hideInGraph": false,
  7985. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  7986. "refDict": "",
  7987. "uiHint": "",
  7988. "id": "A64A91C8-A41F-4113-92FB-7563D7EF054D"
  7989. },
  7990. {
  7991. "defKey": "MOBILE_PHONE",
  7992. "defName": "手机号",
  7993. "comment": "",
  7994. "type": "VARCHAR",
  7995. "len": "60",
  7996. "scale": "",
  7997. "primaryKey": false,
  7998. "notNull": false,
  7999. "autoIncrement": false,
  8000. "defaultValue": "",
  8001. "hideInGraph": false,
  8002. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8003. "refDict": "",
  8004. "uiHint": "",
  8005. "id": "479DA2AB-1974-411A-A81E-92FB939E75EB"
  8006. },
  8007. {
  8008. "defKey": "GENDER",
  8009. "defName": "性别",
  8010. "comment": "",
  8011. "type": "VARCHAR",
  8012. "len": "32",
  8013. "scale": "",
  8014. "primaryKey": false,
  8015. "notNull": false,
  8016. "autoIncrement": false,
  8017. "defaultValue": "",
  8018. "hideInGraph": false,
  8019. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  8020. "refDict": "BF9E20E0-80D3-486D-BD58-5FADCF3E4A1D",
  8021. "uiHint": "",
  8022. "id": "48473E29-6594-4912-AADE-C8AB44FCA3E9"
  8023. },
  8024. {
  8025. "defKey": "BIRTH",
  8026. "defName": "出生日期",
  8027. "comment": "",
  8028. "type": "DATETIME",
  8029. "len": "",
  8030. "scale": "",
  8031. "primaryKey": false,
  8032. "notNull": false,
  8033. "autoIncrement": false,
  8034. "defaultValue": "",
  8035. "hideInGraph": false,
  8036. "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
  8037. "refDict": "",
  8038. "uiHint": "",
  8039. "id": "2BD3D2EE-2411-49A6-983D-84B81057312F"
  8040. },
  8041. {
  8042. "defKey": "AVATAR",
  8043. "defName": "头像",
  8044. "comment": "",
  8045. "type": "VARCHAR",
  8046. "len": "60",
  8047. "scale": "",
  8048. "primaryKey": false,
  8049. "notNull": false,
  8050. "autoIncrement": false,
  8051. "defaultValue": "",
  8052. "hideInGraph": false,
  8053. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8054. "refDict": "",
  8055. "uiHint": "",
  8056. "id": "FDD67CEE-4B52-4BD1-A1A3-9C5EBC6037E6"
  8057. },
  8058. {
  8059. "defKey": "HEIGHT",
  8060. "defName": "身高",
  8061. "comment": "",
  8062. "type": "INT",
  8063. "len": "",
  8064. "scale": "",
  8065. "primaryKey": false,
  8066. "notNull": false,
  8067. "autoIncrement": false,
  8068. "defaultValue": "",
  8069. "hideInGraph": false,
  8070. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  8071. "refDict": "",
  8072. "uiHint": "",
  8073. "id": "CAAA0E79-41A1-4758-B481-D171168C4D68"
  8074. },
  8075. {
  8076. "defKey": "WEIGHT",
  8077. "defName": "体重",
  8078. "comment": "",
  8079. "type": "INT",
  8080. "len": "",
  8081. "scale": "",
  8082. "primaryKey": false,
  8083. "notNull": false,
  8084. "autoIncrement": false,
  8085. "defaultValue": "",
  8086. "hideInGraph": false,
  8087. "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
  8088. "refDict": "",
  8089. "uiHint": "",
  8090. "id": "575482CE-64A6-4CB9-99DC-8E126D190AAA"
  8091. },
  8092. {
  8093. "defKey": "NATION",
  8094. "defName": "名族",
  8095. "comment": "",
  8096. "type": "VARCHAR",
  8097. "len": "32",
  8098. "scale": "",
  8099. "primaryKey": false,
  8100. "notNull": false,
  8101. "autoIncrement": false,
  8102. "defaultValue": "",
  8103. "hideInGraph": false,
  8104. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  8105. "refDict": "115EDEFC-0323-410E-81AB-CCAB8879837A",
  8106. "uiHint": "",
  8107. "id": "15B0D75D-0B97-4985-A816-D0EAFA90446B"
  8108. },
  8109. {
  8110. "defKey": "POLITICAL",
  8111. "defName": "政治面貌",
  8112. "comment": "",
  8113. "type": "VARCHAR",
  8114. "len": "32",
  8115. "scale": "",
  8116. "primaryKey": false,
  8117. "notNull": false,
  8118. "autoIncrement": false,
  8119. "defaultValue": "",
  8120. "hideInGraph": false,
  8121. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  8122. "refDict": "06EED564-BBA9-4747-8D73-AF809A330CB8",
  8123. "uiHint": "",
  8124. "id": "F458E86D-84D6-45A1-9DD3-51E6C8170D7F"
  8125. },
  8126. {
  8127. "defKey": "MARITAL",
  8128. "defName": "婚姻状况",
  8129. "comment": "",
  8130. "type": "VARCHAR",
  8131. "len": "32",
  8132. "scale": "",
  8133. "primaryKey": false,
  8134. "notNull": false,
  8135. "autoIncrement": false,
  8136. "defaultValue": "",
  8137. "hideInGraph": false,
  8138. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  8139. "refDict": "EA1587B7-3954-437A-BFE0-FCB0453BCABA",
  8140. "uiHint": "",
  8141. "id": "7275E578-6893-4922-AC69-95B261BFBD61"
  8142. },
  8143. {
  8144. "defKey": "DOMICILE_PLACE_PROVINCE",
  8145. "defName": "籍贯(省)",
  8146. "comment": "",
  8147. "type": "VARCHAR",
  8148. "len": "60",
  8149. "scale": "",
  8150. "primaryKey": false,
  8151. "notNull": false,
  8152. "autoIncrement": false,
  8153. "defaultValue": "",
  8154. "hideInGraph": false,
  8155. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8156. "refDict": "",
  8157. "uiHint": "",
  8158. "id": "F04BF130-3EC1-4E02-9DED-3214CA88E352"
  8159. },
  8160. {
  8161. "defKey": "DOMICILE_PLACE_CITY",
  8162. "defName": "籍贯(市)",
  8163. "comment": "",
  8164. "type": "VARCHAR",
  8165. "len": "32",
  8166. "scale": "",
  8167. "primaryKey": false,
  8168. "notNull": false,
  8169. "autoIncrement": false,
  8170. "defaultValue": "",
  8171. "hideInGraph": false,
  8172. "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
  8173. "refDict": "",
  8174. "uiHint": "",
  8175. "id": "B97F5BC2-33DE-4857-9DB8-ECFD02C9040C"
  8176. },
  8177. {
  8178. "defKey": "DOMICILE_PLACE_ADDRESS",
  8179. "defName": "户籍地址",
  8180. "comment": "",
  8181. "type": "VARCHAR",
  8182. "len": "60",
  8183. "scale": "",
  8184. "primaryKey": false,
  8185. "notNull": false,
  8186. "autoIncrement": false,
  8187. "defaultValue": "",
  8188. "hideInGraph": false,
  8189. "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
  8190. "refDict": "",
  8191. "uiHint": "",
  8192. "id": "812ADF1D-8C03-40CA-B030-E539838FB889"
  8193. }
  8194. ],
  8195. "id": "F30202B9-4B5D-4CE7-87CE-B3890C84D3F2"
  8196. }
  8197. ],
  8198. "dbConn": [
  8199. {
  8200. "defKey": "0FAC270E-2DD4-4BF5-A0E3-4DF927EB4AEC",
  8201. "defName": "global_funding",
  8202. "type": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
  8203. "properties": {
  8204. "driver_class_name": "com.mysql.cj.jdbc.Driver",
  8205. "url": "jdbc:mysql://192.168.89.10:3306/global_funding?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC",
  8206. "password": "li6sJd%H#Ik9lhwjH936bNzdTqfmJNFj",
  8207. "username": "root"
  8208. }
  8209. }
  8210. ]
  8211. }