123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211 |
- {
- "name": "global_funding(支付)",
- "describe": "global_funding(支付)",
- "avatar": "",
- "version": "4.6.0",
- "createdTime": "2024-2-26 20:14:20",
- "updatedTime": "2024-3-1 16:23:16",
- "dbConns": [],
- "profile": {
- "default": {
- "db": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
- "dbConn": "0FAC270E-2DD4-4BF5-A0E3-4DF927EB4AEC",
- "entityInitFields": [
- {
- "defKey": "TENANT_ID",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": 32,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": "",
- "uiHint": "",
- "id": "ADB3AD14-6603-43E2-8261-114E32442B5B"
- },
- {
- "defKey": "REVISION",
- "defName": "乐观锁",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "92BF430E-01FA-4AEF-944F-25A142632654"
- },
- {
- "defKey": "CREATED_BY",
- "defName": "创建人",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "",
- "len": 32,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "C8BE2C7A-8251-4ADD-BB4F-411C5754DA62"
- },
- {
- "defKey": "CREATED_TIME",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "4E471FD6-3E73-4A90-B660-51598A482409"
- },
- {
- "defKey": "UPDATED_BY",
- "defName": "更新人",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "",
- "len": 32,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "0DC24AA9-4CD0-45D8-95CF-FA546BE343AB"
- },
- {
- "defKey": "UPDATED_TIME",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": "",
- "uiHint": "",
- "id": "09F64AC4-4DEE-428F-AF64-4C103884E1AC"
- }
- ],
- "entityInitProperties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- }
- },
- "javaHome": "",
- "sql": {
- "delimiter": ""
- },
- "dataTypeSupports": [
- {
- "defKey": "MYSQL",
- "id": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E"
- },
- {
- "defKey": "ORACLE",
- "id": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542"
- },
- {
- "defKey": "SQLServer",
- "id": "BFC87171-C74F-494A-B7C2-76B9C55FACC9"
- },
- {
- "defKey": "PostgreSQL",
- "id": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022"
- },
- {
- "defKey": "DB2",
- "id": "89504F5D-94BF-4C9E-8B2E-44F37305FED5"
- },
- {
- "defKey": "DM",
- "id": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307"
- },
- {
- "defKey": "GaussDB",
- "id": "592C7013-143D-4E7B-AF64-0D7BF1E28230"
- },
- {
- "defKey": "Kingbase",
- "id": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A"
- },
- {
- "defKey": "GBase",
- "id": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A"
- },
- {
- "defKey": "MaxCompute",
- "id": "11D1FB71-A587-4217-89BA-611B8A1F83E0"
- },
- {
- "defKey": "SQLite",
- "id": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1"
- },
- {
- "defKey": "Hive",
- "id": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2"
- },
- {
- "defKey": "JAVA",
- "id": "797A1496-D649-4261-89B4-544132EC3F36"
- },
- {
- "defKey": "JavaMybatis",
- "id": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B"
- },
- {
- "defKey": "JavaMybatisPlus",
- "id": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073"
- },
- {
- "defKey": "C#",
- "id": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30"
- },
- {
- "defKey": "Golang",
- "id": "B91D99E0-9B7C-416C-8737-B760957DAF09"
- },
- {
- "defKey": "Rust",
- "id": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB"
- },
- {
- "defKey": "Doris",
- "id": "483F9346-C99E-4014-A1D2-A554606BD8A3"
- }
- ],
- "codeTemplates": [
- {
- "type": "appCode",
- "applyFor": "797A1496-D649-4261-89B4-544132EC3F36",
- " 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}"
- },
- {
- "type": "appCode",
- "applyFor": "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30",
- "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}",
- "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}",
- "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"
- },
- {
- "applyFor": "895CFD1D-4273-4D32-A2C4-CAC70200AB5B",
- "type": "appCode",
- "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}",
- "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}",
- "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}",
- "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}",
- "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",
- "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}"
- },
- {
- "applyFor": "A2EE7B4A-CE62-4290-B00C-B26C1BF18073",
- "type": "appCode",
- "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}",
- "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}",
- "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}",
- "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}",
- "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",
- "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}"
- },
- {
- "applyFor": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
- "type": "dbDDL",
- "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",
- "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",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX IF EXISTS {{=index.defKey}} ;\n{{~}}",
- "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",
- "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{{?}}"
- },
- {
- "applyFor": "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542",
- "type": "dbDDL",
- "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{{~}}",
- "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",
- "deleteTable": "DROP TABLE {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "applyFor": "BFC87171-C74F-494A-B7C2-76B9C55FACC9",
- "type": "dbDDL",
- "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",
- "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",
- "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}}];",
- "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{{~}}",
- "deleteIndex": "",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "applyFor": "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022",
- "type": "dbDDL",
- "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{{~}}",
- "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",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "type": "dbDDL",
- "applyFor": "89504F5D-94BF-4C9E-8B2E-44F37305FED5",
- "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{{~}}",
- "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{{~}}",
- "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"
- },
- {
- "applyFor": "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307",
- "type": "dbDDL",
- "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",
- "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",
- "deleteTable": "",
- "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{{~}}",
- "deleteIndex": "",
- "message": "",
- "update": ""
- },
- {
- "type": "dbDDL",
- "applyFor": "592C7013-143D-4E7B-AF64-0D7BF1E28230",
- "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{{~}}",
- "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{{~}}",
- "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"
- },
- {
- "type": "dbDDL",
- "applyFor": "77BD85E5-9D0D-4096-8427-CBA306FC9C6A",
- "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{{~}}",
- "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{{~}}",
- "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"
- },
- {
- "applyFor": "11D1FB71-A587-4217-89BA-611B8A1F83E0",
- "type": "dbDDL",
- "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",
- "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",
- "deleteTable": "",
- "createIndex": "",
- "deleteIndex": "",
- "message": "",
- "update": ""
- },
- {
- "applyFor": "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1",
- "type": "dbDDL",
- "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",
- "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{{~}}",
- "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"
- },
- {
- "type": "dbDDL",
- "applyFor": "dictSQLTemplate",
- "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{{~}}"
- },
- {
- "applyFor": "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2",
- "type": "dbDDL",
- "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;",
- "createView": "",
- "deleteTable": "",
- "createIndex": "",
- "deleteIndex": "",
- "message": "",
- "update": ""
- },
- {
- "applyFor": "B91D99E0-9B7C-416C-8737-B760957DAF09",
- "type": "appCode",
- "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}}"
- },
- {
- "applyFor": "BDF457FD-9F98-4AC3-A705-7587B00A3BAB",
- "type": "appCode",
- "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"
- },
- {
- "applyFor": "56F4B55B-F0B8-4049-9E6B-50B95C1D793A",
- "type": "dbDDL",
- "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{{~}}",
- "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",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "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{{~}}",
- "deleteIndex": "{{~ it.entity.indexes:index}}\nDROP INDEX {{=index.defKey}} ;\n{{~}}",
- "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{{?}}",
- "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{{?}}"
- },
- {
- "applyFor": "483F9346-C99E-4014-A1D2-A554606BD8A3",
- "type": "dbDDL",
- "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",
- "createView": "",
- "deleteTable": "DROP TABLE IF EXISTS {{=it.entity.defKey}};",
- "createIndex": "",
- "deleteIndex": "",
- "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",
- "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{{?}}"
- }
- ],
- "generatorDoc": {
- "docTemplate": ""
- },
- "relationFieldSize": "15",
- "uiHint": [
- {
- "defKey": "Input",
- "defName": "普通输入框",
- "id": "642D2E0A-8846-4549-BE56-8C0473F26EDE"
- },
- {
- "defKey": "Select",
- "defName": "下拉输入框",
- "id": "FB111359-2B73-4443-926C-08A98E446448"
- },
- {
- "defKey": "CheckBox",
- "defName": "复选框",
- "id": "0CB8A6C9-1115-4FC0-B51E-5C028065082F"
- },
- {
- "defKey": "RadioBox",
- "defName": "单选框",
- "id": "5C04987A-260F-4B7C-A5D5-22A181AAE9CA"
- },
- {
- "defKey": "Double",
- "defName": "小数输入",
- "id": "8D5BAFE4-E15C-4707-A047-8EE59C58E70F"
- },
- {
- "defKey": "Integer",
- "defName": "整数输入",
- "id": "9999AF2A-A44E-415C-A2DC-D7C613BD0073"
- },
- {
- "defKey": "Money",
- "defName": "金额输入",
- "id": "2B0C3D0C-7BAF-4B36-81AD-9362B5E5DC2E"
- },
- {
- "defKey": "Date",
- "defName": "日期输入",
- "id": "E4D94E14-F695-487F-AFC2-4D888009B7DA"
- },
- {
- "defKey": "DataYearMonth",
- "defName": "年月输入",
- "id": "936927E3-DD2D-4096-87FD-074CDE278D59"
- },
- {
- "defKey": "Text",
- "defName": "长文本输入",
- "id": "D89DD4F1-ADAC-4469-BF8D-B3FF41AE7963"
- },
- {
- "defKey": "RichText",
- "defName": "富文本输入",
- "id": "C134EB1F-4CFF-49E0-882F-2C6FB275CB20"
- }
- ],
- "headers": [
- {
- "refKey": "defKey",
- "hideInGraph": false,
- "value": "字段代码",
- "freeze": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false,
- "value": "显示名称",
- "freeze": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false,
- "value": "主键",
- "freeze": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true,
- "value": "不为空",
- "freeze": false
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true,
- "value": "自增",
- "freeze": false
- },
- {
- "refKey": "domain",
- "hideInGraph": true,
- "value": "数据域",
- "freeze": false
- },
- {
- "refKey": "type",
- "hideInGraph": false,
- "value": "数据类型",
- "freeze": false
- },
- {
- "refKey": "len",
- "hideInGraph": false,
- "value": "长度",
- "freeze": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false,
- "value": "小数位数",
- "freeze": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true,
- "value": "说明",
- "freeze": false
- },
- {
- "refKey": "refDict",
- "hideInGraph": true,
- "value": "数据字典",
- "freeze": false
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true,
- "value": "默认值",
- "freeze": false
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false,
- "value": "标准字段",
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true,
- "value": "UI建议",
- "enable": true,
- "freeze": false
- },
- {
- "refKey": "extProps",
- "hideInGraph": true,
- "value": "拓展属性",
- "enable": true,
- "freeze": false
- },
- {
- "refKey": "attr1",
- "value": "属性1",
- "hideInGraph": true,
- "enable": true,
- "freeze": false
- },
- {
- "refKey": "attr2",
- "value": "属性2",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr3",
- "value": "属性3",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr4",
- "value": "属性4",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr5",
- "value": "属性5",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr6",
- "value": "属性6",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr7",
- "value": "属性7",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr8",
- "value": "属性8",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- },
- {
- "refKey": "attr9",
- "value": "属性9",
- "hideInGraph": true,
- "enable": false,
- "freeze": false
- }
- ],
- "modelType": "modalAll",
- "recentColors": [
- "#d148d1",
- "#ce4bce",
- "#831b83",
- "#dd31dd",
- "#da2fda",
- "#e988e9",
- "#000000",
- "#DDE5FF"
- ],
- "DDLToggleCase": "L",
- "menuWidth": "315px"
- },
- "entities": [
- {
- "id": "58D62115-9E44-4887-8299-7B4694476966",
- "defKey": "fx_login",
- "defName": "登录信息表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "login_id",
- "defName": "登录ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B17EFE29-1654-45E8-BCF1-A486AED74CC7",
- "extProps": {}
- },
- {
- "defKey": "user_id",
- "defName": "用户ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E1E80966-B829-4CF1-A7D2-1FCA9101E362",
- "extProps": {}
- },
- {
- "defKey": "login_type",
- "defName": "登录类型",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "ABF23A18-A87B-46D1-B5B7-8524ED1466E5",
- "extProps": {}
- },
- {
- "defKey": "login_name",
- "defName": "登录名",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C35D4DC7-7F4F-4FF3-9B08-551FE9273ACE",
- "extProps": {}
- },
- {
- "defKey": "password",
- "defName": "密码",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3F4C18E5-DC0A-493A-90A2-4349784375D1",
- "extProps": {}
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "1正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "519BE847-4FD4-40A3-B60D-5ED1CBE9A79F",
- "extProps": {}
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C2A30C83-1E9C-447B-94E7-C99B234E8DC0",
- "extProps": {}
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "'CURRENT_TIMESTAMP'",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B47498B8-8AAF-48F1-B785-2EE68F25E05F",
- "extProps": {}
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E5E59D73-95B2-469B-841F-871AC3A96ABA",
- "extProps": {}
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B3DBBCCE-84E2-4141-9E2B-E5432DAC999B",
- "extProps": {}
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1F9BB164-7B4D-413E-9775-85E5C511C2E0",
- "extProps": {}
- }
- ],
- "indexes": [],
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "2F4EC6AE-3AD7-4DF8-B529-32A1876170CC",
- "defKey": "fx_menu",
- "defName": "菜单表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "menu_id",
- "defName": "菜单ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3192D1E1-E4E8-4E05-A9AA-15A7CBA05100",
- "extProps": {}
- },
- {
- "defKey": "menu_code",
- "defName": "菜单编码",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5406844E-4BB2-4C84-B41C-00B18FB9EBAC",
- "extProps": {}
- },
- {
- "defKey": "menu_name",
- "defName": "菜单名称",
- "comment": "",
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "112EC434-9570-42C9-8A78-31E1D107DD63",
- "extProps": {}
- },
- {
- "defKey": "parent_id",
- "defName": "上级ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E355E8B2-CFC6-4610-B6D0-0EE2CD829E65",
- "extProps": {}
- },
- {
- "defKey": "sort_no",
- "defName": "排序",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7AC99E16-71CC-4910-9CD7-20144787B0DE",
- "extProps": {}
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "EEBDAF16-0CC8-447E-893A-52945568D549",
- "extProps": {}
- },
- {
- "defKey": "client_type",
- "defName": "终端类型",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "157D2AC1-9134-4228-8198-F099C435F013",
- "extProps": {}
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "45C89595-31DF-4F10-9830-E3E5E72314F2",
- "extProps": {}
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "'CURRENT_TIMESTAMP'",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "098F2A5B-6C2D-431C-A0D6-FD75101087D4",
- "extProps": {}
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "AD3805FE-0A30-4FC6-A2F8-0918D073950B",
- "extProps": {}
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9D799E5D-B344-4FB8-A555-EB5AB9EC1FD8",
- "extProps": {}
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "216CB4D9-7FDA-4030-A20C-78B76E8777DC",
- "extProps": {}
- }
- ],
- "indexes": [],
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "EA79AAAF-A9AA-4134-AD73-B8B3B997792E",
- "defKey": "fx_tenant",
- "defName": "租户表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "043CD81C-74E7-4081-B558-5414B9394013",
- "extProps": {}
- },
- {
- "defKey": "tenant_code",
- "defName": "租户编号",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 64,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2B98465F-6973-441F-A32C-E8D7C5428512",
- "extProps": {}
- },
- {
- "defKey": "tenant_name",
- "defName": "租户名称",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "CE3DEC93-7440-49E6-BFA6-3374560D9CAF",
- "extProps": {}
- },
- {
- "defKey": "start_time",
- "defName": "开始时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D79F457A-1645-42AC-A94B-36BB092E3FAC",
- "extProps": {}
- },
- {
- "defKey": "end_time",
- "defName": "结束时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "61A3C820-29CB-41AB-8CF4-2A3A7CFD6B6D",
- "extProps": {}
- },
- {
- "defKey": "manager",
- "defName": "管理员名称",
- "comment": "",
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "747D07EB-99AE-44DF-8CB2-12E8A6FDB7E3",
- "extProps": {}
- },
- {
- "defKey": "phone",
- "defName": "手机号",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "23EAE826-8169-49E5-A231-36816879B7AD",
- "extProps": {}
- },
- {
- "defKey": "login_id",
- "defName": "关联登录主键",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DCA97593-7BD0-4C5F-862D-F03ACBDD0F60",
- "extProps": {}
- },
- {
- "defKey": "sort_no",
- "defName": "排序",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A332DA9E-4804-4085-81E2-11D45B05E264",
- "extProps": {}
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "1正常,0未激活,2停用",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F27BC7F2-36B7-4C40-A3A4-408283B933ED",
- "extProps": {}
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4A4481BC-C5E8-48D2-AAF9-B5CD74EC412C",
- "extProps": {}
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "'CURRENT_TIMESTAMP'",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "EB7D47FB-9FA9-4917-A2B2-B6F7809B708F",
- "extProps": {}
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D83F2A02-132C-40E7-A059-BBB9D7644D58",
- "extProps": {}
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2C712352-A6FE-4760-AE3F-C33014836FB3",
- "extProps": {}
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "34D007AA-7FB5-4635-94EE-253891622D79",
- "extProps": {}
- }
- ],
- "indexes": [],
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "C0E5A961-364C-4D34-ADC3-D0C8817EAF07",
- "defKey": "fx_user",
- "defName": "用户表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "user_id",
- "defName": "用户ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C249BFBF-4F64-4E88-8A3E-37B8AF9CC41F",
- "extProps": {}
- },
- {
- "defKey": "user_name",
- "defName": "用户名称",
- "comment": "",
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1F2BCAAD-F83F-402D-9656-7DA3B091A395",
- "extProps": {}
- },
- {
- "defKey": "avatar",
- "defName": "头像",
- "comment": "",
- "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3D26ABFA-CA23-4E23-A8D6-44C64391C8D1",
- "extProps": {}
- },
- {
- "defKey": "phone",
- "defName": "手机",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 20,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "955C6DA0-EE42-4C61-A615-C84A65BFEBE4",
- "extProps": {}
- },
- {
- "defKey": "position_id",
- "defName": "岗位ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4EE1EBB0-4DE2-46E5-A684-263773596B68",
- "extProps": {}
- },
- {
- "defKey": "dept_id",
- "defName": "部门ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "275C2F60-822D-42C3-A3A8-EA549E4131C0",
- "extProps": {}
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E8B6AB82-64FC-4917-A0AD-5944537213E8",
- "extProps": {}
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "85AE3ACC-AA47-4D30-9477-C50276AF997B",
- "extProps": {}
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "'CURRENT_TIMESTAMP'",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "853E319F-37A1-45FD-AE32-7F7A1BEEBE3F",
- "extProps": {}
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7697B59E-3265-40DF-8AC5-243718C669AE",
- "extProps": {}
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "66EBFE25-3A0A-476E-AC85-FB2036302AEF",
- "extProps": {}
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1D37C9BC-9535-4594-9488-FE0F85266AEE",
- "extProps": {}
- }
- ],
- "indexes": [],
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "A313DF48-DC14-4DE3-9C7B-FD9E89DAB5D3",
- "defKey": "sys_log",
- "defName": "系统日志",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "log_id",
- "defName": "日志ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1D3145C9-D492-4D89-BFF0-64A920AF1990",
- "extProps": {}
- },
- {
- "defKey": "login_id",
- "defName": "登录ID",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BE0E477C-239C-49E4-AAD8-8636B8B82511",
- "extProps": {}
- },
- {
- "defKey": "user_name",
- "defName": "用户名",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "43D4A717-CF29-4237-BB87-F2F9A1307EB5",
- "extProps": {}
- },
- {
- "defKey": "module_name",
- "defName": "模块名称",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "628EE5A3-2A4E-4252-A49B-71B4B4C6A95F",
- "extProps": {}
- },
- {
- "defKey": "uri",
- "defName": "访问路径",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F81E02B4-7FC2-4239-AADA-C8BE8659D8B2",
- "extProps": {}
- },
- {
- "defKey": "action",
- "defName": "操作内容",
- "comment": "",
- "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "21A9D0FF-EB9B-4AA9-A628-2F0C114AD552",
- "extProps": {}
- },
- {
- "defKey": "desc",
- "defName": "操作详情",
- "comment": "",
- "domain": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "CCAD859F-0E38-4E65-9176-60C57F850088",
- "extProps": {}
- },
- {
- "defKey": "ip",
- "defName": "用户ID",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4058AE6B-DF62-4A2F-9858-7AE78B153262",
- "extProps": {}
- },
- {
- "defKey": "ua",
- "defName": "User Agent",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 2000,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E5AE5D5A-FABE-4996-B0BC-31354CE8EE76",
- "extProps": {}
- },
- {
- "defKey": "client_type",
- "defName": "终端类型",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "CF29589C-02DC-4D50-AE13-1B75953DEDB9",
- "extProps": {}
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "没有租户则代表是平台",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FD880F42-C6CB-4277-B6B3-452CBA864F24",
- "extProps": {}
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "48464932-E82B-4140-B1E8-BD51F8C1BEC0",
- "extProps": {}
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "'CURRENT_TIMESTAMP'",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5FF5F277-C515-486D-A55B-16C1A3921F6C",
- "extProps": {}
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "CB1D11CB-F225-4239-9547-255F456B9332",
- "extProps": {}
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2D12F12B-3301-44F4-A871-75CE2FC16072",
- "extProps": {}
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8138D8CF-7758-415D-8237-7FA4F9AA5BA7",
- "extProps": {}
- }
- ],
- "indexes": [],
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": []
- },
- {
- "id": "B4638DE9-1E79-4C27-BCC2-59EC4D2BE9F1",
- "defKey": "sys_login",
- "defName": "登录信息表",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "login_id",
- "defName": "登录ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5DBAF5F5-AD7F-4E42-9F44-71AACAE4118F",
- "extProps": {}
- },
- {
- "defKey": "user_id",
- "defName": "用户ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BA9A5B79-78E0-4F36-81E1-07611A2D3E11",
- "extProps": {}
- },
- {
- "defKey": "login_type",
- "defName": "登录类型",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6B55E272-DAC0-402D-B30B-5133CD210DD2",
- "extProps": {}
- },
- {
- "defKey": "login_name",
- "defName": "登录名",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D6CE68E3-2DC2-4F0F-A529-39F6F01E2DA3",
- "extProps": {}
- },
- {
- "defKey": "password",
- "defName": "密码",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "4361FDB9-4BA6-4FDE-A925-6D121B44C93E",
- "extProps": {}
- },
- {
- "defKey": "invitation_code",
- "defName": "邀请码",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FF00B5B0-8A09-4EEF-8F62-C11E38200D66"
- },
- {
- "defKey": "wx_num",
- "defName": "微信号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6C1EEE26-71EB-45CB-868F-ADCAB56CFFC1"
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "1正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "364C540E-21E6-42D6-BEBC-E152AA257DBF",
- "extProps": {}
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "CA5F245C-53F1-45A3-B918-22F3AFA5F7A9",
- "extProps": {}
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D1EEEBCA-FFC0-4E39-973A-A6244C1F0195",
- "extProps": {}
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "'CURRENT_TIMESTAMP'",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9B4F3541-3F80-44F9-92B9-434425A53C4A",
- "extProps": {}
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2CDB20E7-259E-4140-A3E7-A4EE561EA901",
- "extProps": {}
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "BB35B7D3-44DE-4862-829E-9241256A8A51",
- "extProps": {}
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "24DC53EC-F6CD-44A2-82A8-162F2B30831C",
- "extProps": {}
- }
- ],
- "indexes": [],
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "A2FA1930-2C9C-4138-8F4B-21463BC85858",
- "defKey": "sys_user",
- "defName": "用户管理",
- "comment": "",
- "properties": {},
- "fields": [
- {
- "defKey": "user_id",
- "defName": "用户ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "EBE1E630-EFB9-40E2-9C5D-3861490478FE",
- "extProps": {}
- },
- {
- "defKey": "user_name",
- "defName": "用户名称",
- "comment": "",
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3A7163D6-776E-4723-B605-7961C1FCDCCE",
- "extProps": {}
- },
- {
- "defKey": "avatar",
- "defName": "头像",
- "comment": "",
- "domain": "3E948CEC-3070-472C-AF92-F3CA11EC9D15",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C32AC37A-0A50-4F09-9895-8552B68B4D51",
- "extProps": {}
- },
- {
- "defKey": "invitation_code",
- "defName": "邀请码",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "39865A35-5ECF-4948-8E77-7F62AD89A5DB"
- },
- {
- "defKey": "wx_num",
- "defName": "微信号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "BEDD55C0-C2D3-42BD-9714-AF4F86CAFBC9"
- },
- {
- "defKey": "email",
- "defName": "邮箱",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "6ADFA1B7-B0B7-490F-B59C-DACCD5A2500E"
- },
- {
- "defKey": "phone",
- "defName": "手机",
- "comment": "",
- "domain": "",
- "type": "VARCHAR",
- "len": 20,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "524F92E6-A6D2-4839-AC3D-52CCEEF4E0F6",
- "extProps": {}
- },
- {
- "defKey": "position_id",
- "defName": "岗位ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "50B16BBA-E3A9-428C-B995-02C45C647612",
- "extProps": {}
- },
- {
- "defKey": "dept_id",
- "defName": "部门ID",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "E80481DC-8E32-4D26-A34D-3F3CD8E31748",
- "extProps": {}
- },
- {
- "defKey": "tag",
- "defName": "标签",
- "comment": "",
- "domain": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1CF99698-D732-4BA2-9925-437B8CA22ED1",
- "extProps": {}
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C9A4B1FC-E64B-40C5-89A1-ADEAAD3E5663",
- "extProps": {}
- },
- {
- "defKey": "is_admin",
- "defName": "是否管理员",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "02A7A625-01FD-4562-8F90-E0F1B903C581",
- "extProps": {}
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "50B693DA-2B3B-45F6-AA6A-7F90AC854C65",
- "extProps": {}
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0E4BE40A-1D25-4DFD-802A-61AB96FA7C58",
- "extProps": {}
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "'CURRENT_TIMESTAMP'",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "0FD0CB9B-ED9D-42EF-84C9-F721C874BBC6",
- "extProps": {}
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "type": "VARCHAR",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "1D187A2B-6698-4032-8EEC-FDC8193BE7E4",
- "extProps": {}
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "7F1BA6B0-FFCC-41C9-8444-C630A60DE9DF",
- "extProps": {}
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "refDict": "",
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3E5F54DB-F97B-4613-BBFE-7DC6E018CE4F",
- "extProps": {}
- }
- ],
- "indexes": [],
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "freeze": false,
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "freeze": true,
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "freeze": true,
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "freeze": false,
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "freeze": false,
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "correlations": [],
- "notes": {}
- },
- {
- "id": "880FA077-9E05-4DC0-BA00-560116009D16",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.repository",
- "codeRoot": "SysMenu"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": true
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": true
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": true
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": true
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": true
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": true
- }
- }
- },
- "custom": {}
- },
- "defKey": "sys_menu",
- "defName": "菜单表",
- "comment": "",
- "properties": {},
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "menu_id",
- "defName": "菜单ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "uiHint": null,
- "id": "659D15F4-01B1-474D-9880-1A56B7F5A075"
- },
- {
- "defKey": "fx_menu_id",
- "defName": "标准菜单ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "4E5BB180-0C4F-4CD1-BE82-6483E7F39361",
- "uiHint": null
- },
- {
- "defKey": "menu_code",
- "defName": "菜单编码",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
- "id": "7D7BEA34-8227-461C-8630-E48A2F69B494",
- "uiHint": null
- },
- {
- "defKey": "menu_name",
- "defName": "菜单名称",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "id": "9C2E61A3-D18E-4558-9290-B6D1C37BEF92",
- "uiHint": null
- },
- {
- "defKey": "parent_id",
- "defName": "上级ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "806EB8CA-AE20-4745-8359-E8EAE88071DB",
- "uiHint": null
- },
- {
- "defKey": "sort_no",
- "defName": "排序",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "id": "04130FCC-9AC2-46FE-BB64-D62C0DF42A2F",
- "uiHint": null
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": true,
- "refDict": null,
- "uiHint": null,
- "id": "2C9585D5-7F88-42C3-8A71-0799668C494D"
- },
- {
- "defKey": "module_id",
- "defName": "模块ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "56D16821-043E-467C-9931-FD15C97F1132",
- "uiHint": null
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C1215BF8-268A-4129-B5B7-56F4627C73C5",
- "uiHint": null
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "62F2998A-D5B2-4FDA-B959-19A470663A18",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3DEC5089-C3F7-46DF-B726-E61C450A3F7A",
- "uiHint": null
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "48EB692B-74BC-42BE-903E-FE2720DBBC30",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "5F14C6AE-1FDD-40FF-882A-8A9BA1A1E9BE",
- "uiHint": null
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A4C1F3D7-9BF2-4E7B-8C38-03F286183D9A",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": [],
- "notes": {}
- },
- {
- "id": "B638B903-6CF8-4697-8E8E-2A851B30FEE6",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.repository",
- "codeRoot": "SysRole"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": true
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": true
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": true
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": true
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": true
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": true
- }
- }
- },
- "custom": {}
- },
- "defKey": "sys_role",
- "defName": "系统角色",
- "comment": "",
- "properties": {},
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "role_id",
- "defName": "角色ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "uiHint": null,
- "id": "F3630C24-6E14-4067-8B73-5D3FED63C767"
- },
- {
- "defKey": "role_name",
- "defName": "角色名称",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "id": "A2A41541-B97C-445B-BD41-C8E9166EF279",
- "uiHint": null
- },
- {
- "defKey": "sort_no",
- "defName": "排序",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DE7FDC56-7CC7-4C6F-BFEF-F8D02188BC58",
- "uiHint": null
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": true,
- "refDict": null,
- "uiHint": null,
- "id": "A3E8230C-29A1-4DD4-9F6C-7EA13F5E1431"
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "93B1CFD7-6276-40DB-BA40-586E45E100D6",
- "uiHint": null
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "813CFCCF-97A2-4424-99CC-1B597BEF6C5A",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "DB75FD7F-F0C2-4325-8890-DEEDA4990E42",
- "uiHint": null
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9B7518A1-D2CE-4E28-A8DA-29F7F656D1BF",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "07E692EC-B4DC-4BEF-B1D8-1D7498316A36",
- "uiHint": null
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "6A9FACC3-5814-45BE-864E-FD33AC1CAE03",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": [],
- "notes": {}
- },
- {
- "id": "22C32AB9-51C1-421F-8E38-363C9A1C00A7",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.repository",
- "codeRoot": "SysUserRole"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": true
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": true
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": true
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": true
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": true
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": true
- }
- }
- },
- "custom": {}
- },
- "defKey": "sys_user_role",
- "defName": "角色授权",
- "comment": "",
- "properties": {},
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "id",
- "defName": "id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "68A8E7DB-D146-45C1-8550-FE836F1BFD12",
- "uiHint": null
- },
- {
- "defKey": "role_id",
- "defName": "角色ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "uiHint": null,
- "id": "2CA67B0F-A33D-4F8F-9E25-04E6B6DB284C"
- },
- {
- "defKey": "user_id",
- "defName": "用户ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "13AB12C1-CEE9-4F80-8921-478CF765D520",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": [],
- "notes": {}
- },
- {
- "id": "22CC3927-2ADC-4C6A-951B-A40EB057EED1",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.system",
- "codeRoot": "SysRoleResource"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java"
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java"
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java"
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java"
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml"
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java"
- }
- }
- },
- "custom": {}
- },
- "defKey": "sys_role_resource",
- "defName": "角色资源",
- "comment": "",
- "properties": {},
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "id",
- "defName": "id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "extProps": {},
- "id": "6CDA82B6-3A62-4002-9903-694EE37D5CD9",
- "uiHint": null
- },
- {
- "defKey": "role_id",
- "defName": "角色ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "uiHint": null,
- "id": "93B58469-0572-48CF-B459-7AE3782B9AF3"
- },
- {
- "defKey": "resource_id",
- "defName": "资源ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "4505D557-0B19-43E2-BAEB-AF9D50513243",
- "uiHint": null
- },
- {
- "defKey": "resource_type",
- "defName": "资源类型",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
- "id": "5218A1FB-A495-44D3-9351-B76C3F0F0005",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": []
- },
- {
- "id": "A10C5772-7D4F-4A1C-AF3B-34D3AA5FAA09",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.repository",
- "codeRoot": "TaPerson"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": false
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": false
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": false
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": false
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": true
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": false
- }
- }
- },
- "custom": {}
- },
- "defKey": "ta_person",
- "defName": "人员表",
- "comment": "",
- "properties": {},
- "nameTemplate": "{defKey}[{defName}]",
- "notes": {},
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "person_id",
- "defName": "人员ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "4EBE8C1E-45FE-424E-AB94-AE56E6AF18A3",
- "uiHint": null
- },
- {
- "defKey": "person_name",
- "defName": "人员名称",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "id": "A78FCCB3-D3A5-4002-BF98-CCAF6888B35C",
- "uiHint": null
- },
- {
- "defKey": "avatar",
- "defName": "头像",
- "comment": "",
- "type": "TEXT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": null,
- "id": "277B1F46-06EE-49D2-B78F-A2C6AF653C0C",
- "uiHint": null
- },
- {
- "defKey": "phone",
- "defName": "手机",
- "comment": "",
- "type": "VARCHAR",
- "len": 20,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": null,
- "id": "2FB14EF4-EFDD-4661-B6D5-FF3226CFC850",
- "uiHint": null
- },
- {
- "defKey": "email",
- "defName": "邮箱",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "3F36F4E0-372F-4A76-84CC-6BEF505B5E58",
- "uiHint": null
- },
- {
- "defKey": "open_id",
- "defName": "用户openid",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "288688B4-64D1-4AA8-8144-23B5A45C661E",
- "uiHint": null
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A2F5EB2B-574F-467D-B8F4-C3E343665356",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "ADA5A8D6-D17A-4A35-92AA-6A342654CE10",
- "uiHint": null
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "13C5D275-000A-4936-B5E8-146D878AD098",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "8762C1B5-BAF2-4E10-9AFB-11869D6E6B1D",
- "uiHint": null
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": false,
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "42038846-566C-40EB-B6D2-8964E694791A",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": []
- },
- {
- "id": "E681CB95-A1DC-4B07-859C-10232F89EA4E",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.admin",
- "codeRoot": "SysDept"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": true
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": true
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": true
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": false
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": false
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": false
- }
- }
- },
- "custom": {}
- },
- "defKey": "sys_dept",
- "defName": "部门表",
- "comment": "",
- "properties": {},
- "nameTemplate": "{defKey}[{defName}]",
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "dept_id",
- "defName": "机构ID",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "726DF23D-B389-482C-8A83-CD882FB21B8F",
- "uiHint": null
- },
- {
- "defKey": "dept_code",
- "defName": "机构编码",
- "comment": "",
- "type": "VARCHAR",
- "len": 64,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": null,
- "id": "F8BA4F99-125F-4249-9678-A8BBAB3F352B",
- "uiHint": null
- },
- {
- "defKey": "dept_name",
- "defName": "机构名称",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "54611CCC-CA4B-42E1-9F32-4944C85B85A6",
- "id": "940B4065-3A04-42F6-B7CB-265742DD38C1",
- "uiHint": null
- },
- {
- "defKey": "parent_id",
- "defName": "上级单位",
- "comment": "-1为根级目录",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "id": "A893979D-88C9-402E-A601-18E4D7872FCF",
- "uiHint": null
- },
- {
- "defKey": "sort_no",
- "defName": "排序",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "id": "A20379C0-271E-4E48-9375-05561D29E496",
- "uiHint": null
- },
- {
- "defKey": "status",
- "defName": "状态",
- "comment": "",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "1",
- "hideInGraph": true,
- "refDict": null,
- "uiHint": null,
- "id": "76D66252-B46B-4FCA-B2F3-0EA78F744C94"
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "459A4C24-D208-4C5B-A3FD-0E8F555A6233",
- "uiHint": null
- },
- {
- "defKey": "tenant_name",
- "defName": "租户名称",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F2E965FE-A1AA-4F24-92BB-79F1DF4451F3",
- "uiHint": null
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "3BF9CDFA-F632-4DA0-9DBB-FCCE207290F4",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "F4377BE1-22DD-4D6F-A3DD-2C94C3E0329D",
- "uiHint": null
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "397FFAB8-3494-493F-A507-7E5C540D4B5F",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": true,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C134F08D-E36F-489E-B480-91E9B75291C4",
- "uiHint": null
- },
- {
- "defKey": "deleted",
- "defName": "删除标志",
- "comment": "1删除,0正常",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "0",
- "hideInGraph": true,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "78EDFB66-F20B-4EC1-9384-5DFF01899543",
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": [],
- "notes": {}
- },
- {
- "id": "13BC5E46-E946-48B3-AC7F-41CDB70BE12B",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.repository",
- "codeRoot": "TaCompanyInfo"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": false
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": false
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": false
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": false
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": true
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": false
- }
- }
- },
- "custom": {}
- },
- "defKey": "ta_company_info",
- "defName": "公司基本信息",
- "comment": "",
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "nameTemplate": "{defKey}[{defName}]",
- "notes": {},
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "company_id",
- "defName": "公司id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "A497D1F0-7171-4819-B5CA-75F779809929"
- },
- {
- "defKey": "real_company_id",
- "defName": "公司实名认证id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866"
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": 32,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": "",
- "uiHint": "",
- "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
- },
- {
- "defKey": "certificate_incorporation",
- "defName": "公司注册证书",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "",
- "id": "D515D25A-4FC1-4CC5-BDD3-A7CEB6FC541B"
- },
- {
- "defKey": "company_business_registration_content",
- "defName": "公司商业登记证PDF",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "8A1E7CBC-6897-484D-8D72-F41E1324FECF"
- },
- {
- "defKey": "company_business_registration",
- "defName": "公司商业登记证",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "",
- "id": "984E4A5F-2983-49D9-A033-13167F8FABCA"
- },
- {
- "defKey": "nnc1_nar1",
- "defName": "nnc1/最新nar1",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "",
- "id": "E10EA273-EA88-4E15-9B79-C087CFB0C9A9"
- },
- {
- "defKey": "other_annex",
- "defName": "其他附件",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "",
- "id": "8B2BF6CF-6CDA-45D2-9FA9-47B00CF3DF54"
- },
- {
- "defKey": "company_type",
- "defName": "企业类型 1:私人股份有限公司,2公众股份有限公司,3有股本的公众无限公司,4有股本的私人无限公司",
- "comment": "",
- "type": "VARCHAR",
- "len": 2,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "",
- "id": "884871A5-4B26-402E-A795-9440CF323114"
- },
- {
- "defKey": "business_registration_num",
- "defName": "商业登记号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "AD0C2BF4-14BE-47E8-8697-7E723FF1F5DD"
- },
- {
- "defKey": "register_country",
- "defName": "注册 国家",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "475E80D5-78C5-4D62-AEC7-CECC9B52899B"
- },
- {
- "defKey": "register_province_region",
- "defName": "注册 省/地区",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "D160F872-813A-4EA9-A703-14FB6649275C"
- },
- {
- "defKey": "register_city",
- "defName": "注册 市",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "59508E46-E61F-4CAD-BD8E-7962A18CD82A"
- },
- {
- "defKey": "register_specific_address",
- "defName": "注册具体地址",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "976347F6-3256-4A2E-A0B2-7C73D082A372"
- },
- {
- "defKey": "register_postal_code",
- "defName": "注册 邮政编码",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "4C6B451E-AD8B-41C0-B6B8-F17496B6A8E3"
- },
- {
- "defKey": "reality_country",
- "defName": "实际经营 国家",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "F3E6DDC2-7DDB-4EA1-A88B-CD7DDCF3EE9F"
- },
- {
- "defKey": "reality_province_region",
- "defName": "实际经营 省/地区",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "449EB676-75A3-414F-AFCC-F7DDE27D05DA"
- },
- {
- "defKey": "reality_city",
- "defName": "实际经营 市",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "F77892B0-3D58-475C-977E-5A8A6B0EA83E"
- },
- {
- "defKey": "reality_specific_address",
- "defName": "实际经营 具体地址",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "1A6270A3-6D32-49FB-90EF-8D2CECEAD870"
- },
- {
- "defKey": "reality_postal_code",
- "defName": "实际经营 邮政编码",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "FB983D20-B1C4-4DF3-B5C9-65ED2B90DC9D"
- },
- {
- "defKey": "num_employees",
- "defName": "雇员人数 1:员工人数超过200人,2员工人数50-200人,3员工人数少于50人",
- "comment": "",
- "type": "VARCHAR",
- "len": 2,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "",
- "id": "2B021ABF-E76E-4629-A378-8E5F00A58C2F"
- },
- {
- "defKey": "business_premises_type",
- "defName": "经营场所类型 1:自有办公场所,2:较大租用办公场所 (大于500平方),3:较小租用办公场所 (小于500平方),4:无固定办公场所",
- "comment": "",
- "type": "VARCHAR",
- "len": 2,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "",
- "id": "D09A0972-0DEA-44A3-BEAB-D22064D8FE19"
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A"
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9474081A-ACB2-4D9C-A953-446AB072BA96"
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA"
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2633F340-56C2-4560-AC42-00C81EDC67F1"
- }
- ],
- "correlations": [],
- "indexes": []
- },
- {
- "id": "46C7A2EC-9B28-47D7-A508-A6B4A8A901D6",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.repository",
- "codeRoot": "TaCompanyLegalInfo"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": false
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": false
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": false
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": false
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": true
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": false
- }
- }
- },
- "custom": {}
- },
- "defKey": "ta_company_legal_info",
- "defName": "公司法人代表信息",
- "comment": "",
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "nameTemplate": "{defKey}[{defName}]",
- "notes": {},
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "company_legal_id",
- "defName": "公司法人代表信息id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
- "uiHint": null
- },
- {
- "defKey": "real_company_id",
- "defName": "公司实名认证id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "C525F473-B472-4539-AE6C-6914140F44DE"
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "uiHint": null,
- "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
- },
- {
- "defKey": "identity",
- "defName": "身份 conpanyDirector:企业董事,authorizedPerson:授权人",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
- "uiHint": null
- },
- {
- "defKey": "director_country",
- "defName": "企业董事国家",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
- "uiHint": null
- },
- {
- "defKey": "director_id_type",
- "defName": "企业董事证件类型",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "2D91B267-271B-4379-A72D-B7536502F06E",
- "uiHint": null
- },
- {
- "defKey": "director_id_front",
- "defName": "企业董事证件正面",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "",
- "id": "FD568544-7D86-4EF5-93BE-B4A4401B6724",
- "uiHint": null
- },
- {
- "defKey": "director_id_back",
- "defName": "企业董事证件反面",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "27CEED93-2A24-4399-9439-F8C03E3512F9"
- },
- {
- "defKey": "director_name_cn",
- "defName": "董事中文名",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": null,
- "id": "D515D25A-4FC1-4CC5-BDD3-A7CEB6FC541B",
- "uiHint": null
- },
- {
- "defKey": "director_id_no",
- "defName": "董事证件号码",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": null,
- "id": "984E4A5F-2983-49D9-A033-13167F8FABCA",
- "uiHint": null
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
- "uiHint": null
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": []
- },
- {
- "id": "922F3404-054F-4388-AE10-C88F8487AECC",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.repository",
- "codeRoot": "TaCompanyBeneficiaryInfo"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": false
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": false
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": false
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": false
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": true
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": false
- }
- }
- },
- "custom": {}
- },
- "defKey": "ta_company_beneficiary_info",
- "defName": "受益所有人信息",
- "comment": "",
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "nameTemplate": "{defKey}[{defName}]",
- "notes": {},
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "beneficiary_id",
- "defName": "受益人id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
- "uiHint": null
- },
- {
- "defKey": "real_company_id",
- "defName": "公司实名认证id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "93631D7E-E81E-4DE4-B25B-1A342FAD40EC"
- },
- {
- "defKey": "beneficiary_name",
- "defName": "受益人姓名",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": "",
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "6AC832D7-8974-4364-B29E-69E07DF8CBBF"
- },
- {
- "defKey": "company_legal_id",
- "defName": "公司法人代表信息id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "B6621F40-C1A7-47E8-BB7D-623D4ABA72B8"
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "uiHint": null,
- "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
- },
- {
- "defKey": "shareholding_ratio",
- "defName": "持股比例",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
- "uiHint": null
- },
- {
- "defKey": "equity_structure_chart",
- "defName": "股权架构图",
- "comment": "",
- "type": "BLOB",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "",
- "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
- "uiHint": null
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
- "uiHint": null
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": []
- },
- {
- "id": "0D432A13-EB6C-4DBA-972D-F4DBC06E1742",
- "env": {
- "base": {
- "nameSpace": "com.njyunzhi.platform",
- "codeRoot": "TaCompanyRealName"
- },
- "template": {
- "JavaMybatisPlus": {
- "Controller": {
- "suffix": "controller/{{=it.codeRoot}}Controller.java",
- "enable": false
- },
- "Service": {
- "suffix": "service/{{=it.codeRoot}}Service.java",
- "enable": false
- },
- "ServiceImpl": {
- "suffix": "service/impl/{{=it. codeRoot}}ServiceImpl.java",
- "enable": true
- },
- "Mapper": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.java",
- "enable": false
- },
- "Mapper.xml": {
- "suffix": "mapper/{{=it.codeRoot}}Mapper.xml",
- "enable": false
- },
- "Entity": {
- "suffix": "entity/{{=it.codeRoot}}.java",
- "enable": false
- }
- }
- },
- "custom": {}
- },
- "defKey": "ta_company_real_name",
- "defName": "公司实名认证",
- "comment": "",
- "properties": {
- "partitioned by": "(date string)",
- "row format delimited": "",
- "fields terminated by ','": "",
- "collection items terminated by '-'": "",
- "map keys terminated by ':'": "",
- "store as textfile;": ""
- },
- "nameTemplate": "{defKey}[{defName}]",
- "notes": {},
- "headers": [
- {
- "refKey": "hideInGraph",
- "hideInGraph": true
- },
- {
- "refKey": "defKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "defName",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "primaryKey",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "notNull",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "autoIncrement",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "domain",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "type",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "len",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "scale",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "comment",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "refDict",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "defaultValue",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "isStandard",
- "freeze": false,
- "hideInGraph": false
- },
- {
- "refKey": "uiHint",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "extProps",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr1",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr2",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr3",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr4",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr5",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr6",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr7",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr8",
- "freeze": false,
- "hideInGraph": true
- },
- {
- "refKey": "attr9",
- "freeze": false,
- "hideInGraph": true
- }
- ],
- "fields": [
- {
- "defKey": "real_company_id",
- "defName": "公司实名认证id",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": true,
- "notNull": true,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "3BFB5D5C-21FE-4F50-B894-D3385D7D2866",
- "uiHint": null
- },
- {
- "defKey": "tenant_id",
- "defName": "租户号",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "16120F75-6AA7-4483-868D-F07F511BB081",
- "refDict": null,
- "uiHint": null,
- "id": "3BF98C7C-6E18-4729-84AA-DEC5D69C25D3"
- },
- {
- "defKey": "registration_location",
- "defName": "企业注册地",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "DBA26520-3D32-460F-9CF0-B0726E6EC641",
- "uiHint": null
- },
- {
- "defKey": "company_name_cn",
- "defName": "企业中文名",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "6E6E31B7-5EC0-41D3-9A05-C56B28A8F586",
- "uiHint": null
- },
- {
- "defKey": "company_name_en",
- "defName": "企业英文名",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "2D91B267-271B-4379-A72D-B7536502F06E",
- "uiHint": null
- },
- {
- "defKey": "is_listed_company",
- "defName": "是否为上市企业 0:否 1:是",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "id": "FD568544-7D86-4EF5-93BE-B4A4401B6724",
- "uiHint": null
- },
- {
- "defKey": "created_by",
- "defName": "创建人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "D01F93BB-633A-4A3A-A843-3A63EFF76F8A",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "created_at",
- "defName": "创建时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "CURRENT_TIMESTAMP",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "9474081A-ACB2-4D9C-A953-446AB072BA96",
- "uiHint": null
- },
- {
- "defKey": "updated_by",
- "defName": "更新人",
- "comment": "",
- "type": "VARCHAR",
- "len": 255,
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "ED51E875-143F-42D6-BC93-61CDBFCE68BA",
- "domain": null,
- "uiHint": null
- },
- {
- "defKey": "updated_at",
- "defName": "更新时间",
- "comment": "",
- "type": "",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": null,
- "extProps": {},
- "notes": {},
- "attr1": "",
- "attr2": "",
- "attr3": "",
- "attr4": "",
- "attr5": "",
- "attr6": "",
- "attr7": "",
- "attr8": "",
- "attr9": "",
- "id": "2633F340-56C2-4560-AC42-00C81EDC67F1",
- "uiHint": null
- }
- ],
- "correlations": [],
- "indexes": []
- }
- ],
- "views": [],
- "dicts": [],
- "viewGroups": [],
- "dataTypeMapping": {
- "referURL": "",
- "mappings": [
- {
- "defKey": "string",
- "id": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "defName": "字串",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "VARCHAR",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "VARCHAR2",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARCHAR",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "VARCHAR",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "VARCHAR",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "VARCHAR2",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "VARCHAR",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "VARCHAR",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
- "797A1496-D649-4261-89B4-544132EC3F36": "String",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "VARCHAR",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "VARCHAR"
- },
- {
- "defKey": "double",
- "id": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "defName": "小数",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DECIMAL",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DECIMAL",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DECIMAL",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "NUMERIC",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DECIMAL",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DECIMAL",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "NUMERIC",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "NUMERIC",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DOUBLE",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "REAL",
- "797A1496-D649-4261-89B4-544132EC3F36": "Double",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Double",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Double",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "decimal",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "double",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "*float64",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "f64",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DECIMAL",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "DECIMAL"
- },
- {
- "defKey": "int",
- "id": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "defName": "整数",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "INT",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "INT",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "INT",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "INTEGER",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "INT",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "INTEGER",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "INTEGER",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "INT4",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "INT",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "INTEGER",
- "797A1496-D649-4261-89B4-544132EC3F36": "Integer",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Integer",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Integer",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "float",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "int",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "*int",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "i32",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "INTEGER",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "INT"
- },
- {
- "defKey": "date",
- "id": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
- "defName": "日期",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "DATETIME",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "DATE",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "DATETIME",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TIMESTAMP",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "DATE",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "DATE",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "DATE",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "DATE",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "DATETIME",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NUMERIC",
- "797A1496-D649-4261-89B4-544132EC3F36": "Date",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "Date",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "Date",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "DateTime",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "timestamp",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "*time.Time",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "DateTime<Local>",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "DATE",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "DATETIME"
- },
- {
- "defKey": "bytes",
- "id": "D516E75B-90F5-4741-B9B3-A186A263F04C",
- "defName": "二进制",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "BLOB",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "BLOB",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "VARBINARY",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "BYTEA",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "BLOB",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "BLOB",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "BYTEA",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "BYTEA",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "BINARY",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "NONE",
- "797A1496-D649-4261-89B4-544132EC3F36": "byte[]",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "byte[]",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "byte[]",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "binary",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "binary",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "[]byte",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "BYTE"
- },
- {
- "defKey": "largeText",
- "id": "B17BDED3-085F-40E1-9019-3B79CF2BF075",
- "defName": "大文本",
- "29D1CE08-4C35-4D2D-AAA9-23D93305B52E": "TEXT",
- "A4E23CB7-BB01-4BD1-9F71-F73F3E15A542": "CLOB",
- "BFC87171-C74F-494A-B7C2-76B9C55FACC9": "TEXT",
- "DFBEC1DD-AA84-456E-BBF3-C95DD0DB2022": "TEXT",
- "89504F5D-94BF-4C9E-8B2E-44F37305FED5": "CLOB",
- "0BBCABA5-B8E4-41B0-B8E4-8F5EA6029307": "CLOB",
- "592C7013-143D-4E7B-AF64-0D7BF1E28230": "TEXT",
- "77BD85E5-9D0D-4096-8427-CBA306FC9C6A": "TEXT",
- "11D1FB71-A587-4217-89BA-611B8A1F83E0": "STRING",
- "B363BE0B-F852-49B8-9B2E-F6D2174DEAC1": "TEXT",
- "797A1496-D649-4261-89B4-544132EC3F36": "String",
- "895CFD1D-4273-4D32-A2C4-CAC70200AB5B": "String",
- "A2EE7B4A-CE62-4290-B00C-B26C1BF18073": "String",
- "F3AC2415-E86B-40C6-9FEB-F4B7937D2C30": "string",
- "81CCA482-3F4D-4EAC-8CF9-F5E7BC098AD2": "string",
- "B91D99E0-9B7C-416C-8737-B760957DAF09": "string",
- "BDF457FD-9F98-4AC3-A705-7587B00A3BAB": "String",
- "56F4B55B-F0B8-4049-9E6B-50B95C1D793A": "TEXT",
- "483F9346-C99E-4014-A1D2-A554606BD8A3": "STRING"
- }
- ]
- },
- "domains": [
- {
- "defKey": "DefaultString",
- "defName": "默认字串",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": 255,
- "scale": "",
- "uiHint": "",
- "id": "9092C4E0-1A54-4859-ABBB-5B62DBC27573"
- },
- {
- "defKey": "IdOrKey",
- "defName": "主键标识",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": 32,
- "scale": "",
- "uiHint": "",
- "id": "16120F75-6AA7-4483-868D-F07F511BB081"
- },
- {
- "defKey": "Name",
- "defName": "名称",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": 90,
- "scale": "",
- "uiHint": "",
- "id": "54611CCC-CA4B-42E1-9F32-4944C85B85A6"
- },
- {
- "defKey": "Int",
- "defName": "整数",
- "applyFor": "1D764C4A-6F9F-421E-B11A-6F3E23B51811",
- "len": "",
- "scale": "",
- "uiHint": "",
- "id": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E"
- },
- {
- "defKey": "Double",
- "defName": "小数",
- "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "len": 24,
- "scale": 6,
- "uiHint": "",
- "id": "FF4459C5-6B45-4DBF-8FC0-E06239BC05B4"
- },
- {
- "defKey": "Money",
- "defName": "金额",
- "applyFor": "1A0BDC09-0792-4174-9E8E-80BE8DF44B8E",
- "len": 24,
- "scale": 6,
- "uiHint": "",
- "id": "C3B1681B-99F9-4818-9E80-DE1652A51D85"
- },
- {
- "defKey": "DateTime",
- "defName": "日期时间",
- "applyFor": "89D69E81-EA34-42EE-9FA2-93B8BD27E098",
- "len": "",
- "scale": "",
- "uiHint": "",
- "id": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC"
- },
- {
- "defKey": "YesNo",
- "defName": "是否",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": "1",
- "scale": "",
- "uiHint": "",
- "id": "6F7C1C5C-D159-41E6-BF9D-54DEEFA79AFF"
- },
- {
- "defKey": "Dict",
- "defName": "数据字典",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": "32",
- "scale": "",
- "uiHint": "",
- "id": "73FD2BAD-2358-4336-B96D-45DC897BD792"
- },
- {
- "defKey": "DescText",
- "defName": "描述文本",
- "applyFor": "FC9790A7-36B8-4A48-8F9A-BC1042BCFE64",
- "len": "900",
- "scale": "",
- "uiHint": "",
- "id": "3E948CEC-3070-472C-AF92-F3CA11EC9D15"
- }
- ],
- "diagrams": [],
- "standardFields": [
- {
- "defKey": "personInfo",
- "defName": "个人基本信息要素",
- "fields": [
- {
- "defKey": "ID_CARD_NO",
- "defName": "身份证号",
- "comment": "",
- "type": "VARCHAR",
- "len": "60",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "uiHint": "",
- "id": "A64A91C8-A41F-4113-92FB-7563D7EF054D"
- },
- {
- "defKey": "MOBILE_PHONE",
- "defName": "手机号",
- "comment": "",
- "type": "VARCHAR",
- "len": "60",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "uiHint": "",
- "id": "479DA2AB-1974-411A-A81E-92FB939E75EB"
- },
- {
- "defKey": "GENDER",
- "defName": "性别",
- "comment": "",
- "type": "VARCHAR",
- "len": "32",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
- "refDict": "BF9E20E0-80D3-486D-BD58-5FADCF3E4A1D",
- "uiHint": "",
- "id": "48473E29-6594-4912-AADE-C8AB44FCA3E9"
- },
- {
- "defKey": "BIRTH",
- "defName": "出生日期",
- "comment": "",
- "type": "DATETIME",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "7CFFA0D3-6A93-4DDC-BC10-DF21211064DC",
- "refDict": "",
- "uiHint": "",
- "id": "2BD3D2EE-2411-49A6-983D-84B81057312F"
- },
- {
- "defKey": "AVATAR",
- "defName": "头像",
- "comment": "",
- "type": "VARCHAR",
- "len": "60",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "uiHint": "",
- "id": "FDD67CEE-4B52-4BD1-A1A3-9C5EBC6037E6"
- },
- {
- "defKey": "HEIGHT",
- "defName": "身高",
- "comment": "",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "refDict": "",
- "uiHint": "",
- "id": "CAAA0E79-41A1-4758-B481-D171168C4D68"
- },
- {
- "defKey": "WEIGHT",
- "defName": "体重",
- "comment": "",
- "type": "INT",
- "len": "",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "6BC8F04B-6CFA-4995-98D3-318F5CDD774E",
- "refDict": "",
- "uiHint": "",
- "id": "575482CE-64A6-4CB9-99DC-8E126D190AAA"
- },
- {
- "defKey": "NATION",
- "defName": "名族",
- "comment": "",
- "type": "VARCHAR",
- "len": "32",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
- "refDict": "115EDEFC-0323-410E-81AB-CCAB8879837A",
- "uiHint": "",
- "id": "15B0D75D-0B97-4985-A816-D0EAFA90446B"
- },
- {
- "defKey": "POLITICAL",
- "defName": "政治面貌",
- "comment": "",
- "type": "VARCHAR",
- "len": "32",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
- "refDict": "06EED564-BBA9-4747-8D73-AF809A330CB8",
- "uiHint": "",
- "id": "F458E86D-84D6-45A1-9DD3-51E6C8170D7F"
- },
- {
- "defKey": "MARITAL",
- "defName": "婚姻状况",
- "comment": "",
- "type": "VARCHAR",
- "len": "32",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
- "refDict": "EA1587B7-3954-437A-BFE0-FCB0453BCABA",
- "uiHint": "",
- "id": "7275E578-6893-4922-AC69-95B261BFBD61"
- },
- {
- "defKey": "DOMICILE_PLACE_PROVINCE",
- "defName": "籍贯(省)",
- "comment": "",
- "type": "VARCHAR",
- "len": "60",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "uiHint": "",
- "id": "F04BF130-3EC1-4E02-9DED-3214CA88E352"
- },
- {
- "defKey": "DOMICILE_PLACE_CITY",
- "defName": "籍贯(市)",
- "comment": "",
- "type": "VARCHAR",
- "len": "32",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "73FD2BAD-2358-4336-B96D-45DC897BD792",
- "refDict": "",
- "uiHint": "",
- "id": "B97F5BC2-33DE-4857-9DB8-ECFD02C9040C"
- },
- {
- "defKey": "DOMICILE_PLACE_ADDRESS",
- "defName": "户籍地址",
- "comment": "",
- "type": "VARCHAR",
- "len": "60",
- "scale": "",
- "primaryKey": false,
- "notNull": false,
- "autoIncrement": false,
- "defaultValue": "",
- "hideInGraph": false,
- "domain": "9092C4E0-1A54-4859-ABBB-5B62DBC27573",
- "refDict": "",
- "uiHint": "",
- "id": "812ADF1D-8C03-40CA-B030-E539838FB889"
- }
- ],
- "id": "F30202B9-4B5D-4CE7-87CE-B3890C84D3F2"
- }
- ],
- "dbConn": [
- {
- "defKey": "0FAC270E-2DD4-4BF5-A0E3-4DF927EB4AEC",
- "defName": "global_funding",
- "type": "29D1CE08-4C35-4D2D-AAA9-23D93305B52E",
- "properties": {
- "driver_class_name": "com.mysql.cj.jdbc.Driver",
- "url": "jdbc:mysql://192.168.89.10:3306/global_funding?characterEncoding=UTF-8&useSSL=false&useUnicode=true&serverTimezone=UTC",
- "password": "li6sJd%H#Ik9lhwjH936bNzdTqfmJNFj",
- "username": "root"
- }
- }
- ]
- }
|