db.code-snippets 539 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363
  1. {"查询激活奖励记录列表": {
  2. "prefix": "ym-db-ActiveReward-Find",
  3. "body": [
  4. "List<ActiveReward> $1 = db.ActiveReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5. "foreach (ActiveReward $3 in $1)",
  6. "{",
  7. "}"
  8. ]
  9. },
  10. "查询激活奖励记录列表,并取值": {
  11. "prefix": "ym-db-ActiveReward-FindWithData",
  12. "body": [
  13. "List<ActiveReward> $1 = db.ActiveReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14. "foreach (ActiveReward $3 in $1)",
  15. "{",
  16. " int UserId = $3.UserId; //创客",
  17. " int MerchantId = $3.MerchantId; //商户",
  18. " DateTime StandardDate = $3.StandardDate; //达标日期",
  19. " int RewardSourceUserId = $3.RewardSourceUserId; //奖励来源创客",
  20. " decimal RewardAmount = $3.RewardAmount; //奖励金额",
  21. " decimal DivideAmount = $3.DivideAmount; //平分金额",
  22. " decimal RuleRewardAmount = $3.RuleRewardAmount; //规则奖励金额",
  23. " int BrandId = $3.BrandId; //品牌",
  24. " string UserNav = $3.UserNav; //创客父级",
  25. " int DirectBuddyNo = $3.DirectBuddyNo; //商户直属创客",
  26. " string MerUserNav = $3.MerUserNav; //商户直属创客父级",
  27. " string KqMerNo = $3.KqMerNo; //渠道商户编号",
  28. " string KqSnNo = $3.KqSnNo; //渠道SN号",
  29. " int SnType = $3.SnType; //机具类型",
  30. " int SnApplyUserId = $3.SnApplyUserId; //机具申请创客",
  31. " int ActType = $3.ActType; //激活类型",
  32. " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述",
  33. " int SnStoreId = $3.SnStoreId; //SN仓库",
  34. " int RewardRef = $3.RewardRef; //奖励来源创客",
  35. " string RewardTips = $3.RewardTips; //奖励描述",
  36. " string Province = $3.Province; //省份",
  37. " string City = $3.City; //城市",
  38. " string Remark = $3.Remark; //备注",
  39. " DateTime ActDate = $3.ActDate; //激活时间",
  40. " int TopUserId = $3.TopUserId; //顶级创客",
  41. " int MerUserId = $3.MerUserId; //直属创客",
  42. " int ParentUserId = $3.ParentUserId; //上级创客",
  43. " int ParentParentUserId = $3.ParentParentUserId; //上上级创客",
  44. "}"
  45. ]
  46. },
  47. "查询激活奖励记录": {
  48. "prefix": "ym-db-ActiveReward-Exist",
  49. "body": [
  50. "bool $1 = db.ActiveReward.Any(m => m.Id == $2);",
  51. ]
  52. },
  53. "查询某个激活奖励记录,并取值": {
  54. "prefix": "ym-db-ActiveReward-FindByPrimaryKey",
  55. "body": [
  56. "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);",
  57. "if ($1 != null)",
  58. "{",
  59. " int UserId = $1.UserId; //创客",
  60. " int MerchantId = $1.MerchantId; //商户",
  61. " DateTime StandardDate = $1.StandardDate; //达标日期",
  62. " int RewardSourceUserId = $1.RewardSourceUserId; //奖励来源创客",
  63. " decimal RewardAmount = $1.RewardAmount; //奖励金额",
  64. " decimal DivideAmount = $1.DivideAmount; //平分金额",
  65. " decimal RuleRewardAmount = $1.RuleRewardAmount; //规则奖励金额",
  66. " int BrandId = $1.BrandId; //品牌",
  67. " string UserNav = $1.UserNav; //创客父级",
  68. " int DirectBuddyNo = $1.DirectBuddyNo; //商户直属创客",
  69. " string MerUserNav = $1.MerUserNav; //商户直属创客父级",
  70. " string KqMerNo = $1.KqMerNo; //渠道商户编号",
  71. " string KqSnNo = $1.KqSnNo; //渠道SN号",
  72. " int SnType = $1.SnType; //机具类型",
  73. " int SnApplyUserId = $1.SnApplyUserId; //机具申请创客",
  74. " int ActType = $1.ActType; //激活类型",
  75. " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述",
  76. " int SnStoreId = $1.SnStoreId; //SN仓库",
  77. " int RewardRef = $1.RewardRef; //奖励来源创客",
  78. " string RewardTips = $1.RewardTips; //奖励描述",
  79. " string Province = $1.Province; //省份",
  80. " string City = $1.City; //城市",
  81. " string Remark = $1.Remark; //备注",
  82. " DateTime ActDate = $1.ActDate; //激活时间",
  83. " int TopUserId = $1.TopUserId; //顶级创客",
  84. " int MerUserId = $1.MerUserId; //直属创客",
  85. " int ParentUserId = $1.ParentUserId; //上级创客",
  86. " int ParentParentUserId = $1.ParentParentUserId; //上上级创客",
  87. "}"
  88. ]
  89. },
  90. "查询某个激活奖励记录,并赋值": {
  91. "prefix": "ym-db-ActiveReward-Update",
  92. "body": [
  93. "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);",
  94. "if ($1 != null)",
  95. "{",
  96. " $1.UserId = $2; //创客",
  97. " $1.MerchantId = $3; //商户",
  98. " $1.StandardDate = $4; //达标日期",
  99. " $1.RewardSourceUserId = $5; //奖励来源创客",
  100. " $1.RewardAmount = $6; //奖励金额",
  101. " $1.DivideAmount = $7; //平分金额",
  102. " $1.RuleRewardAmount = $8; //规则奖励金额",
  103. " $1.BrandId = $9; //品牌",
  104. " $1.UserNav = $10; //创客父级",
  105. " $1.DirectBuddyNo = $11; //商户直属创客",
  106. " $1.MerUserNav = $12; //商户直属创客父级",
  107. " $1.KqMerNo = $13; //渠道商户编号",
  108. " $1.KqSnNo = $14; //渠道SN号",
  109. " $1.SnType = $15; //机具类型",
  110. " $1.SnApplyUserId = $16; //机具申请创客",
  111. " $1.ActType = $17; //激活类型",
  112. " $1.ActTypeDesc = $18; //激活类型描述",
  113. " $1.SnStoreId = $19; //SN仓库",
  114. " $1.RewardRef = $20; //奖励来源创客",
  115. " $1.RewardTips = $21; //奖励描述",
  116. " $1.Province = $22; //省份",
  117. " $1.City = $23; //城市",
  118. " $1.Remark = $24; //备注",
  119. " $1.ActDate = $25; //激活时间",
  120. " $1.TopUserId = $26; //顶级创客",
  121. " $1.MerUserId = $27; //直属创客",
  122. " $1.ParentUserId = $28; //上级创客",
  123. " $1.ParentParentUserId = $29; //上上级创客",
  124. "}"
  125. ]
  126. },
  127. "获取激活奖励记录数量": {
  128. "prefix": "ym-db-ActiveReward-FindAndCount",
  129. "body": [
  130. "int $1 = db.ActiveReward.Count(m => $2);",
  131. ]
  132. },
  133. "添加激活奖励记录": {
  134. "prefix": "ym-db-ActiveReward-Create",
  135. "body": [
  136. "db.ActiveReward.Add(new ActiveReward()",
  137. "{",
  138. " CreateDate = DateTime.Now,",
  139. " UpdateDate = DateTime.Now,",
  140. " UserId = $1, //创客",
  141. " MerchantId = $2, //商户",
  142. " StandardDate = $3, //达标日期",
  143. " RewardSourceUserId = $4, //奖励来源创客",
  144. " RewardAmount = $5, //奖励金额",
  145. " DivideAmount = $6, //平分金额",
  146. " RuleRewardAmount = $7, //规则奖励金额",
  147. " BrandId = $8, //品牌",
  148. " UserNav = $9, //创客父级",
  149. " DirectBuddyNo = $10, //商户直属创客",
  150. " MerUserNav = $11, //商户直属创客父级",
  151. " KqMerNo = $12, //渠道商户编号",
  152. " KqSnNo = $13, //渠道SN号",
  153. " SnType = $14, //机具类型",
  154. " SnApplyUserId = $15, //机具申请创客",
  155. " ActType = $16, //激活类型",
  156. " ActTypeDesc = $17, //激活类型描述",
  157. " SnStoreId = $18, //SN仓库",
  158. " RewardRef = $19, //奖励来源创客",
  159. " RewardTips = $20, //奖励描述",
  160. " Province = $21, //省份",
  161. " City = $22, //城市",
  162. " Remark = $23, //备注",
  163. " ActDate = $24, //激活时间",
  164. " TopUserId = $25, //顶级创客",
  165. " MerUserId = $26, //直属创客",
  166. " ParentUserId = $27, //上级创客",
  167. " ParentParentUserId = $28, //上上级创客",
  168. "});"
  169. ]
  170. },"删除某个激活奖励记录": {
  171. "prefix": "ym-db-ActiveReward-Delete",
  172. "body": [
  173. "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);",
  174. "if ($1 != null)",
  175. "{",
  176. " db.ActiveReward.Remove($1);",
  177. "}"
  178. ]
  179. },
  180. "查询活动报名记录列表": {
  181. "prefix": "ym-db-ActivityEnrolRecord-Find",
  182. "body": [
  183. "List<ActivityEnrolRecord> $1 = db.ActivityEnrolRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  184. "foreach (ActivityEnrolRecord $3 in $1)",
  185. "{",
  186. "}"
  187. ]
  188. },
  189. "查询活动报名记录列表,并取值": {
  190. "prefix": "ym-db-ActivityEnrolRecord-FindWithData",
  191. "body": [
  192. "List<ActivityEnrolRecord> $1 = db.ActivityEnrolRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  193. "foreach (ActivityEnrolRecord $3 in $1)",
  194. "{",
  195. " int ActId = $3.ActId; //活动",
  196. " int UserId = $3.UserId; //创客",
  197. " string EnrolMonth = $3.EnrolMonth; //报名有效月份",
  198. " string EffectStartTime = $3.EffectStartTime; //报名有效开始时间",
  199. " string EffectEndTime = $3.EffectEndTime; //报名有效结束时间",
  200. "}"
  201. ]
  202. },
  203. "查询活动报名记录": {
  204. "prefix": "ym-db-ActivityEnrolRecord-Exist",
  205. "body": [
  206. "bool $1 = db.ActivityEnrolRecord.Any(m => m.Id == $2);",
  207. ]
  208. },
  209. "查询某个活动报名记录,并取值": {
  210. "prefix": "ym-db-ActivityEnrolRecord-FindByPrimaryKey",
  211. "body": [
  212. "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);",
  213. "if ($1 != null)",
  214. "{",
  215. " int ActId = $1.ActId; //活动",
  216. " int UserId = $1.UserId; //创客",
  217. " string EnrolMonth = $1.EnrolMonth; //报名有效月份",
  218. " string EffectStartTime = $1.EffectStartTime; //报名有效开始时间",
  219. " string EffectEndTime = $1.EffectEndTime; //报名有效结束时间",
  220. "}"
  221. ]
  222. },
  223. "查询某个活动报名记录,并赋值": {
  224. "prefix": "ym-db-ActivityEnrolRecord-Update",
  225. "body": [
  226. "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);",
  227. "if ($1 != null)",
  228. "{",
  229. " $1.ActId = $2; //活动",
  230. " $1.UserId = $3; //创客",
  231. " $1.EnrolMonth = $4; //报名有效月份",
  232. " $1.EffectStartTime = $5; //报名有效开始时间",
  233. " $1.EffectEndTime = $6; //报名有效结束时间",
  234. "}"
  235. ]
  236. },
  237. "获取活动报名记录数量": {
  238. "prefix": "ym-db-ActivityEnrolRecord-FindAndCount",
  239. "body": [
  240. "int $1 = db.ActivityEnrolRecord.Count(m => $2);",
  241. ]
  242. },
  243. "添加活动报名记录": {
  244. "prefix": "ym-db-ActivityEnrolRecord-Create",
  245. "body": [
  246. "db.ActivityEnrolRecord.Add(new ActivityEnrolRecord()",
  247. "{",
  248. " CreateDate = DateTime.Now,",
  249. " UpdateDate = DateTime.Now,",
  250. " ActId = $1, //活动",
  251. " UserId = $2, //创客",
  252. " EnrolMonth = $3, //报名有效月份",
  253. " EffectStartTime = $4, //报名有效开始时间",
  254. " EffectEndTime = $5, //报名有效结束时间",
  255. "});"
  256. ]
  257. },"删除某个活动报名记录": {
  258. "prefix": "ym-db-ActivityEnrolRecord-Delete",
  259. "body": [
  260. "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);",
  261. "if ($1 != null)",
  262. "{",
  263. " db.ActivityEnrolRecord.Remove($1);",
  264. "}"
  265. ]
  266. },
  267. "查询活动信息列表": {
  268. "prefix": "ym-db-ActivityInfo-Find",
  269. "body": [
  270. "List<ActivityInfo> $1 = db.ActivityInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  271. "foreach (ActivityInfo $3 in $1)",
  272. "{",
  273. "}"
  274. ]
  275. },
  276. "查询活动信息列表,并取值": {
  277. "prefix": "ym-db-ActivityInfo-FindWithData",
  278. "body": [
  279. "List<ActivityInfo> $1 = db.ActivityInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  280. "foreach (ActivityInfo $3 in $1)",
  281. "{",
  282. " string ActCode = $3.ActCode; //活动编号",
  283. " int ActType = $3.ActType; //活动类型",
  284. " string ActName = $3.ActName; //活动名称",
  285. " string BrandId = $3.BrandId; //产品类型",
  286. " string LimitTopBuddy = $3.LimitTopBuddy; //顶级创客设置",
  287. " int IsTop = $3.IsTop; //是否置顶",
  288. " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
  289. " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间",
  290. " DateTime EnrolStartDate = $3.EnrolStartDate; //报名开始日期",
  291. " DateTime EnrolEndDate = $3.EnrolEndDate; //报名截止日期",
  292. " string EnrolStartTime = $3.EnrolStartTime; //报名当天开始时间",
  293. " string EnrolEndTime = $3.EnrolEndTime; //报名当天截止时间",
  294. " string ActReferUrl = $3.ActReferUrl; //链接地址",
  295. " string ActBanner = $3.ActBanner; //活动Banner图片",
  296. " string ActContent = $3.ActContent; //活动详情",
  297. " string Remark = $3.Remark; //备注",
  298. "}"
  299. ]
  300. },
  301. "查询活动信息": {
  302. "prefix": "ym-db-ActivityInfo-Exist",
  303. "body": [
  304. "bool $1 = db.ActivityInfo.Any(m => m.Id == $2);",
  305. ]
  306. },
  307. "查询某个活动信息,并取值": {
  308. "prefix": "ym-db-ActivityInfo-FindByPrimaryKey",
  309. "body": [
  310. "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);",
  311. "if ($1 != null)",
  312. "{",
  313. " string ActCode = $1.ActCode; //活动编号",
  314. " int ActType = $1.ActType; //活动类型",
  315. " string ActName = $1.ActName; //活动名称",
  316. " string BrandId = $1.BrandId; //产品类型",
  317. " string LimitTopBuddy = $1.LimitTopBuddy; //顶级创客设置",
  318. " int IsTop = $1.IsTop; //是否置顶",
  319. " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
  320. " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间",
  321. " DateTime EnrolStartDate = $1.EnrolStartDate; //报名开始日期",
  322. " DateTime EnrolEndDate = $1.EnrolEndDate; //报名截止日期",
  323. " string EnrolStartTime = $1.EnrolStartTime; //报名当天开始时间",
  324. " string EnrolEndTime = $1.EnrolEndTime; //报名当天截止时间",
  325. " string ActReferUrl = $1.ActReferUrl; //链接地址",
  326. " string ActBanner = $1.ActBanner; //活动Banner图片",
  327. " string ActContent = $1.ActContent; //活动详情",
  328. " string Remark = $1.Remark; //备注",
  329. "}"
  330. ]
  331. },
  332. "查询某个活动信息,并赋值": {
  333. "prefix": "ym-db-ActivityInfo-Update",
  334. "body": [
  335. "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);",
  336. "if ($1 != null)",
  337. "{",
  338. " $1.ActCode = $2; //活动编号",
  339. " $1.ActType = $3; //活动类型",
  340. " $1.ActName = $4; //活动名称",
  341. " $1.BrandId = $5; //产品类型",
  342. " $1.LimitTopBuddy = $6; //顶级创客设置",
  343. " $1.IsTop = $7; //是否置顶",
  344. " $1.EffectStartDate = $8; //活动开始时间",
  345. " $1.EffectEndDate = $9; //活动结束时间",
  346. " $1.EnrolStartDate = $10; //报名开始日期",
  347. " $1.EnrolEndDate = $11; //报名截止日期",
  348. " $1.EnrolStartTime = $12; //报名当天开始时间",
  349. " $1.EnrolEndTime = $13; //报名当天截止时间",
  350. " $1.ActReferUrl = $14; //链接地址",
  351. " $1.ActBanner = $15; //活动Banner图片",
  352. " $1.ActContent = $16; //活动详情",
  353. " $1.Remark = $17; //备注",
  354. "}"
  355. ]
  356. },
  357. "获取活动信息数量": {
  358. "prefix": "ym-db-ActivityInfo-FindAndCount",
  359. "body": [
  360. "int $1 = db.ActivityInfo.Count(m => $2);",
  361. ]
  362. },
  363. "添加活动信息": {
  364. "prefix": "ym-db-ActivityInfo-Create",
  365. "body": [
  366. "db.ActivityInfo.Add(new ActivityInfo()",
  367. "{",
  368. " CreateDate = DateTime.Now,",
  369. " UpdateDate = DateTime.Now,",
  370. " ActCode = $1, //活动编号",
  371. " ActType = $2, //活动类型",
  372. " ActName = $3, //活动名称",
  373. " BrandId = $4, //产品类型",
  374. " LimitTopBuddy = $5, //顶级创客设置",
  375. " IsTop = $6, //是否置顶",
  376. " EffectStartDate = $7, //活动开始时间",
  377. " EffectEndDate = $8, //活动结束时间",
  378. " EnrolStartDate = $9, //报名开始日期",
  379. " EnrolEndDate = $10, //报名截止日期",
  380. " EnrolStartTime = $11, //报名当天开始时间",
  381. " EnrolEndTime = $12, //报名当天截止时间",
  382. " ActReferUrl = $13, //链接地址",
  383. " ActBanner = $14, //活动Banner图片",
  384. " ActContent = $15, //活动详情",
  385. " Remark = $16, //备注",
  386. "});"
  387. ]
  388. },"删除某个活动信息": {
  389. "prefix": "ym-db-ActivityInfo-Delete",
  390. "body": [
  391. "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);",
  392. "if ($1 != null)",
  393. "{",
  394. " db.ActivityInfo.Remove($1);",
  395. "}"
  396. ]
  397. },
  398. "查询活动奖励明细列表": {
  399. "prefix": "ym-db-ActivityPrizeDetail-Find",
  400. "body": [
  401. "List<ActivityPrizeDetail> $1 = db.ActivityPrizeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  402. "foreach (ActivityPrizeDetail $3 in $1)",
  403. "{",
  404. "}"
  405. ]
  406. },
  407. "查询活动奖励明细列表,并取值": {
  408. "prefix": "ym-db-ActivityPrizeDetail-FindWithData",
  409. "body": [
  410. "List<ActivityPrizeDetail> $1 = db.ActivityPrizeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  411. "foreach (ActivityPrizeDetail $3 in $1)",
  412. "{",
  413. " int ActivityId = $3.ActivityId; //活动",
  414. " int UserId = $3.UserId; //创客",
  415. " int BrandId = $3.BrandId; //机具品牌",
  416. " decimal TradeAmt = $3.TradeAmt; //合伙人团队交易总金额",
  417. " int CheckStatus = $3.CheckStatus; //同步状态",
  418. " string TradeMonth = $3.TradeMonth; //交易月份",
  419. " decimal OtherProdCreditTradeAmt = $3.OtherProdCreditTradeAmt; //其他组合计算产品贷记卡交易总金额",
  420. " decimal CreditTradeAmt = $3.CreditTradeAmt; //合伙人团队贷记卡交易总金额",
  421. " decimal ActRewardAmt = $3.ActRewardAmt; //合伙人团队交易活动奖励金额",
  422. " decimal ProfitRate = $3.ProfitRate; //活动奖励对应分成比例",
  423. " int TopUserId = $3.TopUserId; //顶级创客",
  424. "}"
  425. ]
  426. },
  427. "查询活动奖励明细": {
  428. "prefix": "ym-db-ActivityPrizeDetail-Exist",
  429. "body": [
  430. "bool $1 = db.ActivityPrizeDetail.Any(m => m.Id == $2);",
  431. ]
  432. },
  433. "查询某个活动奖励明细,并取值": {
  434. "prefix": "ym-db-ActivityPrizeDetail-FindByPrimaryKey",
  435. "body": [
  436. "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);",
  437. "if ($1 != null)",
  438. "{",
  439. " int ActivityId = $1.ActivityId; //活动",
  440. " int UserId = $1.UserId; //创客",
  441. " int BrandId = $1.BrandId; //机具品牌",
  442. " decimal TradeAmt = $1.TradeAmt; //合伙人团队交易总金额",
  443. " int CheckStatus = $1.CheckStatus; //同步状态",
  444. " string TradeMonth = $1.TradeMonth; //交易月份",
  445. " decimal OtherProdCreditTradeAmt = $1.OtherProdCreditTradeAmt; //其他组合计算产品贷记卡交易总金额",
  446. " decimal CreditTradeAmt = $1.CreditTradeAmt; //合伙人团队贷记卡交易总金额",
  447. " decimal ActRewardAmt = $1.ActRewardAmt; //合伙人团队交易活动奖励金额",
  448. " decimal ProfitRate = $1.ProfitRate; //活动奖励对应分成比例",
  449. " int TopUserId = $1.TopUserId; //顶级创客",
  450. "}"
  451. ]
  452. },
  453. "查询某个活动奖励明细,并赋值": {
  454. "prefix": "ym-db-ActivityPrizeDetail-Update",
  455. "body": [
  456. "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);",
  457. "if ($1 != null)",
  458. "{",
  459. " $1.ActivityId = $2; //活动",
  460. " $1.UserId = $3; //创客",
  461. " $1.BrandId = $4; //机具品牌",
  462. " $1.TradeAmt = $5; //合伙人团队交易总金额",
  463. " $1.CheckStatus = $6; //同步状态",
  464. " $1.TradeMonth = $7; //交易月份",
  465. " $1.OtherProdCreditTradeAmt = $8; //其他组合计算产品贷记卡交易总金额",
  466. " $1.CreditTradeAmt = $9; //合伙人团队贷记卡交易总金额",
  467. " $1.ActRewardAmt = $10; //合伙人团队交易活动奖励金额",
  468. " $1.ProfitRate = $11; //活动奖励对应分成比例",
  469. " $1.TopUserId = $12; //顶级创客",
  470. "}"
  471. ]
  472. },
  473. "获取活动奖励明细数量": {
  474. "prefix": "ym-db-ActivityPrizeDetail-FindAndCount",
  475. "body": [
  476. "int $1 = db.ActivityPrizeDetail.Count(m => $2);",
  477. ]
  478. },
  479. "添加活动奖励明细": {
  480. "prefix": "ym-db-ActivityPrizeDetail-Create",
  481. "body": [
  482. "db.ActivityPrizeDetail.Add(new ActivityPrizeDetail()",
  483. "{",
  484. " CreateDate = DateTime.Now,",
  485. " UpdateDate = DateTime.Now,",
  486. " ActivityId = $1, //活动",
  487. " UserId = $2, //创客",
  488. " BrandId = $3, //机具品牌",
  489. " TradeAmt = $4, //合伙人团队交易总金额",
  490. " CheckStatus = $5, //同步状态",
  491. " TradeMonth = $6, //交易月份",
  492. " OtherProdCreditTradeAmt = $7, //其他组合计算产品贷记卡交易总金额",
  493. " CreditTradeAmt = $8, //合伙人团队贷记卡交易总金额",
  494. " ActRewardAmt = $9, //合伙人团队交易活动奖励金额",
  495. " ProfitRate = $10, //活动奖励对应分成比例",
  496. " TopUserId = $11, //顶级创客",
  497. "});"
  498. ]
  499. },"删除某个活动奖励明细": {
  500. "prefix": "ym-db-ActivityPrizeDetail-Delete",
  501. "body": [
  502. "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);",
  503. "if ($1 != null)",
  504. "{",
  505. " db.ActivityPrizeDetail.Remove($1);",
  506. "}"
  507. ]
  508. },
  509. "查询App底部导航列表": {
  510. "prefix": "ym-db-AppBottomNavs-Find",
  511. "body": [
  512. "List<AppBottomNavs> $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  513. "foreach (AppBottomNavs $3 in $1)",
  514. "{",
  515. "}"
  516. ]
  517. },
  518. "查询App底部导航列表,并取值": {
  519. "prefix": "ym-db-AppBottomNavs-FindWithData",
  520. "body": [
  521. "List<AppBottomNavs> $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  522. "foreach (AppBottomNavs $3 in $1)",
  523. "{",
  524. " string Title = $3.Title; //标题",
  525. " string SelectIcon = $3.SelectIcon; //选中图标",
  526. " string NormalIcon = $3.NormalIcon; //未选中图标",
  527. " string SelectTextColor = $3.SelectTextColor; //选中文字颜色",
  528. " string NormalTextColor = $3.NormalTextColor; //未选中文字颜色",
  529. " string PageName = $3.PageName; //关联页面文件",
  530. " string NoPageHint = $3.NoPageHint; //空页面提示信息",
  531. " string BgColor = $3.BgColor; //背景色",
  532. "}"
  533. ]
  534. },
  535. "查询App底部导航": {
  536. "prefix": "ym-db-AppBottomNavs-Exist",
  537. "body": [
  538. "bool $1 = db.AppBottomNavs.Any(m => m.Id == $2);",
  539. ]
  540. },
  541. "查询某个App底部导航,并取值": {
  542. "prefix": "ym-db-AppBottomNavs-FindByPrimaryKey",
  543. "body": [
  544. "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
  545. "if ($1 != null)",
  546. "{",
  547. " string Title = $1.Title; //标题",
  548. " string SelectIcon = $1.SelectIcon; //选中图标",
  549. " string NormalIcon = $1.NormalIcon; //未选中图标",
  550. " string SelectTextColor = $1.SelectTextColor; //选中文字颜色",
  551. " string NormalTextColor = $1.NormalTextColor; //未选中文字颜色",
  552. " string PageName = $1.PageName; //关联页面文件",
  553. " string NoPageHint = $1.NoPageHint; //空页面提示信息",
  554. " string BgColor = $1.BgColor; //背景色",
  555. "}"
  556. ]
  557. },
  558. "查询某个App底部导航,并赋值": {
  559. "prefix": "ym-db-AppBottomNavs-Update",
  560. "body": [
  561. "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
  562. "if ($1 != null)",
  563. "{",
  564. " $1.Title = $2; //标题",
  565. " $1.SelectIcon = $3; //选中图标",
  566. " $1.NormalIcon = $4; //未选中图标",
  567. " $1.SelectTextColor = $5; //选中文字颜色",
  568. " $1.NormalTextColor = $6; //未选中文字颜色",
  569. " $1.PageName = $7; //关联页面文件",
  570. " $1.NoPageHint = $8; //空页面提示信息",
  571. " $1.BgColor = $9; //背景色",
  572. "}"
  573. ]
  574. },
  575. "获取App底部导航数量": {
  576. "prefix": "ym-db-AppBottomNavs-FindAndCount",
  577. "body": [
  578. "int $1 = db.AppBottomNavs.Count(m => $2);",
  579. ]
  580. },
  581. "添加App底部导航": {
  582. "prefix": "ym-db-AppBottomNavs-Create",
  583. "body": [
  584. "db.AppBottomNavs.Add(new AppBottomNavs()",
  585. "{",
  586. " CreateDate = DateTime.Now,",
  587. " UpdateDate = DateTime.Now,",
  588. " Title = $1, //标题",
  589. " SelectIcon = $2, //选中图标",
  590. " NormalIcon = $3, //未选中图标",
  591. " SelectTextColor = $4, //选中文字颜色",
  592. " NormalTextColor = $5, //未选中文字颜色",
  593. " PageName = $6, //关联页面文件",
  594. " NoPageHint = $7, //空页面提示信息",
  595. " BgColor = $8, //背景色",
  596. "});"
  597. ]
  598. },"删除某个App底部导航": {
  599. "prefix": "ym-db-AppBottomNavs-Delete",
  600. "body": [
  601. "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
  602. "if ($1 != null)",
  603. "{",
  604. " db.AppBottomNavs.Remove($1);",
  605. "}"
  606. ]
  607. },
  608. "查询App版本管理列表": {
  609. "prefix": "ym-db-AppVersion-Find",
  610. "body": [
  611. "List<AppVersion> $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  612. "foreach (AppVersion $3 in $1)",
  613. "{",
  614. "}"
  615. ]
  616. },
  617. "查询App版本管理列表,并取值": {
  618. "prefix": "ym-db-AppVersion-FindWithData",
  619. "body": [
  620. "List<AppVersion> $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  621. "foreach (AppVersion $3 in $1)",
  622. "{",
  623. " string TerminalKind = $3.TerminalKind; //终端类型",
  624. " string VersionNum = $3.VersionNum; //版本号",
  625. " string Title = $3.Title; //标题",
  626. " string Info = $3.Info; //更新信息",
  627. " string ConfirmText = $3.ConfirmText; //确定按钮文字",
  628. " string CancelText = $3.CancelText; //取消按钮文字",
  629. " string DownloadUrl = $3.DownloadUrl; //更新地址",
  630. "}"
  631. ]
  632. },
  633. "查询App版本管理": {
  634. "prefix": "ym-db-AppVersion-Exist",
  635. "body": [
  636. "bool $1 = db.AppVersion.Any(m => m.Id == $2);",
  637. ]
  638. },
  639. "查询某个App版本管理,并取值": {
  640. "prefix": "ym-db-AppVersion-FindByPrimaryKey",
  641. "body": [
  642. "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
  643. "if ($1 != null)",
  644. "{",
  645. " string TerminalKind = $1.TerminalKind; //终端类型",
  646. " string VersionNum = $1.VersionNum; //版本号",
  647. " string Title = $1.Title; //标题",
  648. " string Info = $1.Info; //更新信息",
  649. " string ConfirmText = $1.ConfirmText; //确定按钮文字",
  650. " string CancelText = $1.CancelText; //取消按钮文字",
  651. " string DownloadUrl = $1.DownloadUrl; //更新地址",
  652. "}"
  653. ]
  654. },
  655. "查询某个App版本管理,并赋值": {
  656. "prefix": "ym-db-AppVersion-Update",
  657. "body": [
  658. "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
  659. "if ($1 != null)",
  660. "{",
  661. " $1.TerminalKind = $2; //终端类型",
  662. " $1.VersionNum = $3; //版本号",
  663. " $1.Title = $4; //标题",
  664. " $1.Info = $5; //更新信息",
  665. " $1.ConfirmText = $6; //确定按钮文字",
  666. " $1.CancelText = $7; //取消按钮文字",
  667. " $1.DownloadUrl = $8; //更新地址",
  668. "}"
  669. ]
  670. },
  671. "获取App版本管理数量": {
  672. "prefix": "ym-db-AppVersion-FindAndCount",
  673. "body": [
  674. "int $1 = db.AppVersion.Count(m => $2);",
  675. ]
  676. },
  677. "添加App版本管理": {
  678. "prefix": "ym-db-AppVersion-Create",
  679. "body": [
  680. "db.AppVersion.Add(new AppVersion()",
  681. "{",
  682. " CreateDate = DateTime.Now,",
  683. " UpdateDate = DateTime.Now,",
  684. " TerminalKind = $1, //终端类型",
  685. " VersionNum = $2, //版本号",
  686. " Title = $3, //标题",
  687. " Info = $4, //更新信息",
  688. " ConfirmText = $5, //确定按钮文字",
  689. " CancelText = $6, //取消按钮文字",
  690. " DownloadUrl = $7, //更新地址",
  691. "});"
  692. ]
  693. },"删除某个App版本管理": {
  694. "prefix": "ym-db-AppVersion-Delete",
  695. "body": [
  696. "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
  697. "if ($1 != null)",
  698. "{",
  699. " db.AppVersion.Remove($1);",
  700. "}"
  701. ]
  702. },
  703. "查询快联盟操作视频分类列表": {
  704. "prefix": "ym-db-AppVideo-Find",
  705. "body": [
  706. "List<AppVideo> $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  707. "foreach (AppVideo $3 in $1)",
  708. "{",
  709. "}"
  710. ]
  711. },
  712. "查询快联盟操作视频分类列表,并取值": {
  713. "prefix": "ym-db-AppVideo-FindWithData",
  714. "body": [
  715. "List<AppVideo> $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  716. "foreach (AppVideo $3 in $1)",
  717. "{",
  718. " string Name = $3.Name; //名称",
  719. " string BannerPic = $3.BannerPic; //Banner图片",
  720. " string Remark = $3.Remark; //备注",
  721. "}"
  722. ]
  723. },
  724. "查询快联盟操作视频分类": {
  725. "prefix": "ym-db-AppVideo-Exist",
  726. "body": [
  727. "bool $1 = db.AppVideo.Any(m => m.Id == $2);",
  728. ]
  729. },
  730. "查询某个快联盟操作视频分类,并取值": {
  731. "prefix": "ym-db-AppVideo-FindByPrimaryKey",
  732. "body": [
  733. "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
  734. "if ($1 != null)",
  735. "{",
  736. " string Name = $1.Name; //名称",
  737. " string BannerPic = $1.BannerPic; //Banner图片",
  738. " string Remark = $1.Remark; //备注",
  739. "}"
  740. ]
  741. },
  742. "查询某个快联盟操作视频分类,并赋值": {
  743. "prefix": "ym-db-AppVideo-Update",
  744. "body": [
  745. "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
  746. "if ($1 != null)",
  747. "{",
  748. " $1.Name = $2; //名称",
  749. " $1.BannerPic = $3; //Banner图片",
  750. " $1.Remark = $4; //备注",
  751. "}"
  752. ]
  753. },
  754. "获取快联盟操作视频分类数量": {
  755. "prefix": "ym-db-AppVideo-FindAndCount",
  756. "body": [
  757. "int $1 = db.AppVideo.Count(m => $2);",
  758. ]
  759. },
  760. "添加快联盟操作视频分类": {
  761. "prefix": "ym-db-AppVideo-Create",
  762. "body": [
  763. "db.AppVideo.Add(new AppVideo()",
  764. "{",
  765. " CreateDate = DateTime.Now,",
  766. " UpdateDate = DateTime.Now,",
  767. " Name = $1, //名称",
  768. " BannerPic = $2, //Banner图片",
  769. " Remark = $3, //备注",
  770. "});"
  771. ]
  772. },"删除某个快联盟操作视频分类": {
  773. "prefix": "ym-db-AppVideo-Delete",
  774. "body": [
  775. "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
  776. "if ($1 != null)",
  777. "{",
  778. " db.AppVideo.Remove($1);",
  779. "}"
  780. ]
  781. },
  782. "查询快联盟操作视频列表列表": {
  783. "prefix": "ym-db-AppVideoList-Find",
  784. "body": [
  785. "List<AppVideoList> $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  786. "foreach (AppVideoList $3 in $1)",
  787. "{",
  788. "}"
  789. ]
  790. },
  791. "查询快联盟操作视频列表列表,并取值": {
  792. "prefix": "ym-db-AppVideoList-FindWithData",
  793. "body": [
  794. "List<AppVideoList> $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  795. "foreach (AppVideoList $3 in $1)",
  796. "{",
  797. " string Title = $3.Title; //标题",
  798. " string VideoUrl = $3.VideoUrl; //视频地址",
  799. " string Remark = $3.Remark; //备注",
  800. " int VideoId = $3.VideoId; //视频分类Id",
  801. " string BgPic = $3.BgPic; //背景图",
  802. "}"
  803. ]
  804. },
  805. "查询快联盟操作视频列表": {
  806. "prefix": "ym-db-AppVideoList-Exist",
  807. "body": [
  808. "bool $1 = db.AppVideoList.Any(m => m.Id == $2);",
  809. ]
  810. },
  811. "查询某个快联盟操作视频列表,并取值": {
  812. "prefix": "ym-db-AppVideoList-FindByPrimaryKey",
  813. "body": [
  814. "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
  815. "if ($1 != null)",
  816. "{",
  817. " string Title = $1.Title; //标题",
  818. " string VideoUrl = $1.VideoUrl; //视频地址",
  819. " string Remark = $1.Remark; //备注",
  820. " int VideoId = $1.VideoId; //视频分类Id",
  821. " string BgPic = $1.BgPic; //背景图",
  822. "}"
  823. ]
  824. },
  825. "查询某个快联盟操作视频列表,并赋值": {
  826. "prefix": "ym-db-AppVideoList-Update",
  827. "body": [
  828. "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
  829. "if ($1 != null)",
  830. "{",
  831. " $1.Title = $2; //标题",
  832. " $1.VideoUrl = $3; //视频地址",
  833. " $1.Remark = $4; //备注",
  834. " $1.VideoId = $5; //视频分类Id",
  835. " $1.BgPic = $6; //背景图",
  836. "}"
  837. ]
  838. },
  839. "获取快联盟操作视频列表数量": {
  840. "prefix": "ym-db-AppVideoList-FindAndCount",
  841. "body": [
  842. "int $1 = db.AppVideoList.Count(m => $2);",
  843. ]
  844. },
  845. "添加快联盟操作视频列表": {
  846. "prefix": "ym-db-AppVideoList-Create",
  847. "body": [
  848. "db.AppVideoList.Add(new AppVideoList()",
  849. "{",
  850. " CreateDate = DateTime.Now,",
  851. " UpdateDate = DateTime.Now,",
  852. " Title = $1, //标题",
  853. " VideoUrl = $2, //视频地址",
  854. " Remark = $3, //备注",
  855. " VideoId = $4, //视频分类Id",
  856. " BgPic = $5, //背景图",
  857. "});"
  858. ]
  859. },"删除某个快联盟操作视频列表": {
  860. "prefix": "ym-db-AppVideoList-Delete",
  861. "body": [
  862. "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
  863. "if ($1 != null)",
  864. "{",
  865. " db.AppVideoList.Remove($1);",
  866. "}"
  867. ]
  868. },
  869. "查询银行信息列表": {
  870. "prefix": "ym-db-BankInfo-Find",
  871. "body": [
  872. "List<BankInfo> $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  873. "foreach (BankInfo $3 in $1)",
  874. "{",
  875. "}"
  876. ]
  877. },
  878. "查询银行信息列表,并取值": {
  879. "prefix": "ym-db-BankInfo-FindWithData",
  880. "body": [
  881. "List<BankInfo> $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  882. "foreach (BankInfo $3 in $1)",
  883. "{",
  884. " string BankName = $3.BankName; //银行全称",
  885. " string BankCode = $3.BankCode; //银行编码",
  886. " string UnitedBankNo = $3.UnitedBankNo; //银行总行联行号",
  887. " string UnitedBankName = $3.UnitedBankName; //总行名称",
  888. " string BankNameAbbr = $3.BankNameAbbr; //银行简称",
  889. "}"
  890. ]
  891. },
  892. "查询银行信息": {
  893. "prefix": "ym-db-BankInfo-Exist",
  894. "body": [
  895. "bool $1 = db.BankInfo.Any(m => m.Id == $2);",
  896. ]
  897. },
  898. "查询某个银行信息,并取值": {
  899. "prefix": "ym-db-BankInfo-FindByPrimaryKey",
  900. "body": [
  901. "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
  902. "if ($1 != null)",
  903. "{",
  904. " string BankName = $1.BankName; //银行全称",
  905. " string BankCode = $1.BankCode; //银行编码",
  906. " string UnitedBankNo = $1.UnitedBankNo; //银行总行联行号",
  907. " string UnitedBankName = $1.UnitedBankName; //总行名称",
  908. " string BankNameAbbr = $1.BankNameAbbr; //银行简称",
  909. "}"
  910. ]
  911. },
  912. "查询某个银行信息,并赋值": {
  913. "prefix": "ym-db-BankInfo-Update",
  914. "body": [
  915. "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
  916. "if ($1 != null)",
  917. "{",
  918. " $1.BankName = $2; //银行全称",
  919. " $1.BankCode = $3; //银行编码",
  920. " $1.UnitedBankNo = $4; //银行总行联行号",
  921. " $1.UnitedBankName = $5; //总行名称",
  922. " $1.BankNameAbbr = $6; //银行简称",
  923. "}"
  924. ]
  925. },
  926. "获取银行信息数量": {
  927. "prefix": "ym-db-BankInfo-FindAndCount",
  928. "body": [
  929. "int $1 = db.BankInfo.Count(m => $2);",
  930. ]
  931. },
  932. "添加银行信息": {
  933. "prefix": "ym-db-BankInfo-Create",
  934. "body": [
  935. "db.BankInfo.Add(new BankInfo()",
  936. "{",
  937. " CreateDate = DateTime.Now,",
  938. " UpdateDate = DateTime.Now,",
  939. " BankName = $1, //银行全称",
  940. " BankCode = $2, //银行编码",
  941. " UnitedBankNo = $3, //银行总行联行号",
  942. " UnitedBankName = $4, //总行名称",
  943. " BankNameAbbr = $5, //银行简称",
  944. "});"
  945. ]
  946. },"删除某个银行信息": {
  947. "prefix": "ym-db-BankInfo-Delete",
  948. "body": [
  949. "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
  950. "if ($1 != null)",
  951. "{",
  952. " db.BankInfo.Remove($1);",
  953. "}"
  954. ]
  955. },
  956. "查询分类设置列表": {
  957. "prefix": "ym-db-Col-Find",
  958. "body": [
  959. "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  960. "foreach (Col $3 in $1)",
  961. "{",
  962. "}"
  963. ]
  964. },
  965. "查询分类设置列表,并取值": {
  966. "prefix": "ym-db-Col-FindWithData",
  967. "body": [
  968. "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  969. "foreach (Col $3 in $1)",
  970. "{",
  971. " string ColId = $3.ColId; //编号",
  972. " string ColName = $3.ColName; //名称",
  973. " string ColPicPath = $3.ColPicPath; //图标",
  974. " string ColDetail = $3.ColDetail; //简介",
  975. " ulong Recommend = $3.Recommend; //推荐",
  976. " string ColEnName = $3.ColEnName; //英文名",
  977. " string Contents = $3.Contents; //详细内容",
  978. " string Url = $3.Url; //第三方链接",
  979. " string ListTemp = $3.ListTemp; //列表模板PC",
  980. " string DetailTemp = $3.DetailTemp; //详情模板PC",
  981. " string ListTempM = $3.ListTempM; //列表模板移动",
  982. " string DetailTempM = $3.DetailTempM; //详情模板移动",
  983. " int ListPageCount = $3.ListPageCount; //每页数量",
  984. " int ParentId = $3.ParentId; //父级Id",
  985. " string ColEnNav = $3.ColEnNav; //英文路径",
  986. " string ClassName = $3.ClassName; //class样式名1",
  987. "}"
  988. ]
  989. },
  990. "查询分类设置": {
  991. "prefix": "ym-db-Col-Exist",
  992. "body": [
  993. "bool $1 = db.Col.Any(m => m.Id == $2);",
  994. ]
  995. },
  996. "查询某个分类设置,并取值": {
  997. "prefix": "ym-db-Col-FindByPrimaryKey",
  998. "body": [
  999. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  1000. "if ($1 != null)",
  1001. "{",
  1002. " string ColId = $1.ColId; //编号",
  1003. " string ColName = $1.ColName; //名称",
  1004. " string ColPicPath = $1.ColPicPath; //图标",
  1005. " string ColDetail = $1.ColDetail; //简介",
  1006. " ulong Recommend = $1.Recommend; //推荐",
  1007. " string ColEnName = $1.ColEnName; //英文名",
  1008. " string Contents = $1.Contents; //详细内容",
  1009. " string Url = $1.Url; //第三方链接",
  1010. " string ListTemp = $1.ListTemp; //列表模板PC",
  1011. " string DetailTemp = $1.DetailTemp; //详情模板PC",
  1012. " string ListTempM = $1.ListTempM; //列表模板移动",
  1013. " string DetailTempM = $1.DetailTempM; //详情模板移动",
  1014. " int ListPageCount = $1.ListPageCount; //每页数量",
  1015. " int ParentId = $1.ParentId; //父级Id",
  1016. " string ColEnNav = $1.ColEnNav; //英文路径",
  1017. " string ClassName = $1.ClassName; //class样式名1",
  1018. "}"
  1019. ]
  1020. },
  1021. "查询某个分类设置,并赋值": {
  1022. "prefix": "ym-db-Col-Update",
  1023. "body": [
  1024. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  1025. "if ($1 != null)",
  1026. "{",
  1027. " $1.ColId = $2; //编号",
  1028. " $1.ColName = $3; //名称",
  1029. " $1.ColPicPath = $4; //图标",
  1030. " $1.ColDetail = $5; //简介",
  1031. " $1.Recommend = $6; //推荐",
  1032. " $1.ColEnName = $7; //英文名",
  1033. " $1.Contents = $8; //详细内容",
  1034. " $1.Url = $9; //第三方链接",
  1035. " $1.ListTemp = $10; //列表模板PC",
  1036. " $1.DetailTemp = $11; //详情模板PC",
  1037. " $1.ListTempM = $12; //列表模板移动",
  1038. " $1.DetailTempM = $13; //详情模板移动",
  1039. " $1.ListPageCount = $14; //每页数量",
  1040. " $1.ParentId = $15; //父级Id",
  1041. " $1.ColEnNav = $16; //英文路径",
  1042. " $1.ClassName = $17; //class样式名1",
  1043. "}"
  1044. ]
  1045. },
  1046. "获取分类设置数量": {
  1047. "prefix": "ym-db-Col-FindAndCount",
  1048. "body": [
  1049. "int $1 = db.Col.Count(m => $2);",
  1050. ]
  1051. },
  1052. "添加分类设置": {
  1053. "prefix": "ym-db-Col-Create",
  1054. "body": [
  1055. "db.Col.Add(new Col()",
  1056. "{",
  1057. " CreateDate = DateTime.Now,",
  1058. " UpdateDate = DateTime.Now,",
  1059. " ColId = $1, //编号",
  1060. " ColName = $2, //名称",
  1061. " ColPicPath = $3, //图标",
  1062. " ColDetail = $4, //简介",
  1063. " Recommend = $5, //推荐",
  1064. " ColEnName = $6, //英文名",
  1065. " Contents = $7, //详细内容",
  1066. " Url = $8, //第三方链接",
  1067. " ListTemp = $9, //列表模板PC",
  1068. " DetailTemp = $10, //详情模板PC",
  1069. " ListTempM = $11, //列表模板移动",
  1070. " DetailTempM = $12, //详情模板移动",
  1071. " ListPageCount = $13, //每页数量",
  1072. " ParentId = $14, //父级Id",
  1073. " ColEnNav = $15, //英文路径",
  1074. " ClassName = $16, //class样式名1",
  1075. "});"
  1076. ]
  1077. },"删除某个分类设置": {
  1078. "prefix": "ym-db-Col-Delete",
  1079. "body": [
  1080. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  1081. "if ($1 != null)",
  1082. "{",
  1083. " db.Col.Remove($1);",
  1084. "}"
  1085. ]
  1086. },
  1087. "查询优惠券发放记录列表": {
  1088. "prefix": "ym-db-CouponAssignRecords-Find",
  1089. "body": [
  1090. "List<CouponAssignRecords> $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1091. "foreach (CouponAssignRecords $3 in $1)",
  1092. "{",
  1093. "}"
  1094. ]
  1095. },
  1096. "查询优惠券发放记录列表,并取值": {
  1097. "prefix": "ym-db-CouponAssignRecords-FindWithData",
  1098. "body": [
  1099. "List<CouponAssignRecords> $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1100. "foreach (CouponAssignRecords $3 in $1)",
  1101. "{",
  1102. " int UserMinLevel = $3.UserMinLevel; //创客最低等级",
  1103. " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级",
  1104. " decimal TotalOrderMoneyMin = $3.TotalOrderMoneyMin; //最小消费总额",
  1105. " decimal TotalOrderMoneyMax = $3.TotalOrderMoneyMax; //最大消费总额",
  1106. " decimal TotalUseIntegralMin = $3.TotalUseIntegralMin; //最小消耗积分总额",
  1107. " decimal TotalUseIntegralMax = $3.TotalUseIntegralMax; //最大消耗积分总额",
  1108. " decimal CurMoneyMin = $3.CurMoneyMin; //当前最低余额",
  1109. " decimal CurMoneyMax = $3.CurMoneyMax; //当前最高余额",
  1110. " string UserGroupId = $3.UserGroupId; //创客分组",
  1111. " string Areas = $3.Areas; //创客所在地区",
  1112. " string Mobile = $3.Mobile; //手机号",
  1113. " string CouponIds = $3.CouponIds; //优惠券",
  1114. "}"
  1115. ]
  1116. },
  1117. "查询优惠券发放记录": {
  1118. "prefix": "ym-db-CouponAssignRecords-Exist",
  1119. "body": [
  1120. "bool $1 = db.CouponAssignRecords.Any(m => m.Id == $2);",
  1121. ]
  1122. },
  1123. "查询某个优惠券发放记录,并取值": {
  1124. "prefix": "ym-db-CouponAssignRecords-FindByPrimaryKey",
  1125. "body": [
  1126. "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
  1127. "if ($1 != null)",
  1128. "{",
  1129. " int UserMinLevel = $1.UserMinLevel; //创客最低等级",
  1130. " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级",
  1131. " decimal TotalOrderMoneyMin = $1.TotalOrderMoneyMin; //最小消费总额",
  1132. " decimal TotalOrderMoneyMax = $1.TotalOrderMoneyMax; //最大消费总额",
  1133. " decimal TotalUseIntegralMin = $1.TotalUseIntegralMin; //最小消耗积分总额",
  1134. " decimal TotalUseIntegralMax = $1.TotalUseIntegralMax; //最大消耗积分总额",
  1135. " decimal CurMoneyMin = $1.CurMoneyMin; //当前最低余额",
  1136. " decimal CurMoneyMax = $1.CurMoneyMax; //当前最高余额",
  1137. " string UserGroupId = $1.UserGroupId; //创客分组",
  1138. " string Areas = $1.Areas; //创客所在地区",
  1139. " string Mobile = $1.Mobile; //手机号",
  1140. " string CouponIds = $1.CouponIds; //优惠券",
  1141. "}"
  1142. ]
  1143. },
  1144. "查询某个优惠券发放记录,并赋值": {
  1145. "prefix": "ym-db-CouponAssignRecords-Update",
  1146. "body": [
  1147. "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
  1148. "if ($1 != null)",
  1149. "{",
  1150. " $1.UserMinLevel = $2; //创客最低等级",
  1151. " $1.UserMaxLevel = $3; //创客最高等级",
  1152. " $1.TotalOrderMoneyMin = $4; //最小消费总额",
  1153. " $1.TotalOrderMoneyMax = $5; //最大消费总额",
  1154. " $1.TotalUseIntegralMin = $6; //最小消耗积分总额",
  1155. " $1.TotalUseIntegralMax = $7; //最大消耗积分总额",
  1156. " $1.CurMoneyMin = $8; //当前最低余额",
  1157. " $1.CurMoneyMax = $9; //当前最高余额",
  1158. " $1.UserGroupId = $10; //创客分组",
  1159. " $1.Areas = $11; //创客所在地区",
  1160. " $1.Mobile = $12; //手机号",
  1161. " $1.CouponIds = $13; //优惠券",
  1162. "}"
  1163. ]
  1164. },
  1165. "获取优惠券发放记录数量": {
  1166. "prefix": "ym-db-CouponAssignRecords-FindAndCount",
  1167. "body": [
  1168. "int $1 = db.CouponAssignRecords.Count(m => $2);",
  1169. ]
  1170. },
  1171. "添加优惠券发放记录": {
  1172. "prefix": "ym-db-CouponAssignRecords-Create",
  1173. "body": [
  1174. "db.CouponAssignRecords.Add(new CouponAssignRecords()",
  1175. "{",
  1176. " CreateDate = DateTime.Now,",
  1177. " UpdateDate = DateTime.Now,",
  1178. " UserMinLevel = $1, //创客最低等级",
  1179. " UserMaxLevel = $2, //创客最高等级",
  1180. " TotalOrderMoneyMin = $3, //最小消费总额",
  1181. " TotalOrderMoneyMax = $4, //最大消费总额",
  1182. " TotalUseIntegralMin = $5, //最小消耗积分总额",
  1183. " TotalUseIntegralMax = $6, //最大消耗积分总额",
  1184. " CurMoneyMin = $7, //当前最低余额",
  1185. " CurMoneyMax = $8, //当前最高余额",
  1186. " UserGroupId = $9, //创客分组",
  1187. " Areas = $10, //创客所在地区",
  1188. " Mobile = $11, //手机号",
  1189. " CouponIds = $12, //优惠券",
  1190. "});"
  1191. ]
  1192. },"删除某个优惠券发放记录": {
  1193. "prefix": "ym-db-CouponAssignRecords-Delete",
  1194. "body": [
  1195. "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
  1196. "if ($1 != null)",
  1197. "{",
  1198. " db.CouponAssignRecords.Remove($1);",
  1199. "}"
  1200. ]
  1201. },
  1202. "查询优惠券列表": {
  1203. "prefix": "ym-db-Coupons-Find",
  1204. "body": [
  1205. "List<Coupons> $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1206. "foreach (Coupons $3 in $1)",
  1207. "{",
  1208. "}"
  1209. ]
  1210. },
  1211. "查询优惠券列表,并取值": {
  1212. "prefix": "ym-db-Coupons-FindWithData",
  1213. "body": [
  1214. "List<Coupons> $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1215. "foreach (Coupons $3 in $1)",
  1216. "{",
  1217. " string Name = $3.Name; //名称",
  1218. " string Explanation = $3.Explanation; //说明",
  1219. " ulong IsNewUser = $3.IsNewUser; //新创客使用",
  1220. " ulong IsPublic = $3.IsPublic; //是否公开领取",
  1221. " decimal Stock = $3.Stock; //库存",
  1222. " int Kind = $3.Kind; //优惠券类型",
  1223. " string MerchantId = $3.MerchantId; //商家",
  1224. " string ProductColId = $3.ProductColId; //商品分类",
  1225. " string ProductId = $3.ProductId; //商品",
  1226. " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级",
  1227. " int UserMinLevel = $3.UserMinLevel; //创客最低等级",
  1228. " DateTime UseStartDate = $3.UseStartDate; //开始使用时间",
  1229. " DateTime UseEndDate = $3.UseEndDate; //结束使用时间",
  1230. " ulong IsRepeat = $3.IsRepeat; //是否重复",
  1231. " int RepeatType = $3.RepeatType; //重复类型",
  1232. " string RepeatCondition = $3.RepeatCondition; //重复条件值",
  1233. " ulong IsReUse = $3.IsReUse; //是否一次性使用",
  1234. " DateTime PublicStartDate = $3.PublicStartDate; //公开领取开始时间",
  1235. " DateTime PublicEndDate = $3.PublicEndDate; //公开领取结束时间",
  1236. " int PublicMax = $3.PublicMax; //公开每人领取数量",
  1237. " int PublicMaxByDay = $3.PublicMaxByDay; //公开每人每天领取数量",
  1238. " ulong IsSuperpose = $3.IsSuperpose; //是否叠加使用",
  1239. " ulong AndPromotion = $3.AndPromotion; //是否与促销活动同时使用",
  1240. " decimal FullReduceMoney = $3.FullReduceMoney; //满多少可用",
  1241. " decimal FullReduceData = $3.FullReduceData; //满减数据",
  1242. " DateTime ExpireStartDate = $3.ExpireStartDate; //过期开始时间",
  1243. " DateTime ExpireEndDate = $3.ExpireEndDate; //过期结束时间",
  1244. "}"
  1245. ]
  1246. },
  1247. "查询优惠券": {
  1248. "prefix": "ym-db-Coupons-Exist",
  1249. "body": [
  1250. "bool $1 = db.Coupons.Any(m => m.Id == $2);",
  1251. ]
  1252. },
  1253. "查询某个优惠券,并取值": {
  1254. "prefix": "ym-db-Coupons-FindByPrimaryKey",
  1255. "body": [
  1256. "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
  1257. "if ($1 != null)",
  1258. "{",
  1259. " string Name = $1.Name; //名称",
  1260. " string Explanation = $1.Explanation; //说明",
  1261. " ulong IsNewUser = $1.IsNewUser; //新创客使用",
  1262. " ulong IsPublic = $1.IsPublic; //是否公开领取",
  1263. " decimal Stock = $1.Stock; //库存",
  1264. " int Kind = $1.Kind; //优惠券类型",
  1265. " string MerchantId = $1.MerchantId; //商家",
  1266. " string ProductColId = $1.ProductColId; //商品分类",
  1267. " string ProductId = $1.ProductId; //商品",
  1268. " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级",
  1269. " int UserMinLevel = $1.UserMinLevel; //创客最低等级",
  1270. " DateTime UseStartDate = $1.UseStartDate; //开始使用时间",
  1271. " DateTime UseEndDate = $1.UseEndDate; //结束使用时间",
  1272. " ulong IsRepeat = $1.IsRepeat; //是否重复",
  1273. " int RepeatType = $1.RepeatType; //重复类型",
  1274. " string RepeatCondition = $1.RepeatCondition; //重复条件值",
  1275. " ulong IsReUse = $1.IsReUse; //是否一次性使用",
  1276. " DateTime PublicStartDate = $1.PublicStartDate; //公开领取开始时间",
  1277. " DateTime PublicEndDate = $1.PublicEndDate; //公开领取结束时间",
  1278. " int PublicMax = $1.PublicMax; //公开每人领取数量",
  1279. " int PublicMaxByDay = $1.PublicMaxByDay; //公开每人每天领取数量",
  1280. " ulong IsSuperpose = $1.IsSuperpose; //是否叠加使用",
  1281. " ulong AndPromotion = $1.AndPromotion; //是否与促销活动同时使用",
  1282. " decimal FullReduceMoney = $1.FullReduceMoney; //满多少可用",
  1283. " decimal FullReduceData = $1.FullReduceData; //满减数据",
  1284. " DateTime ExpireStartDate = $1.ExpireStartDate; //过期开始时间",
  1285. " DateTime ExpireEndDate = $1.ExpireEndDate; //过期结束时间",
  1286. "}"
  1287. ]
  1288. },
  1289. "查询某个优惠券,并赋值": {
  1290. "prefix": "ym-db-Coupons-Update",
  1291. "body": [
  1292. "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
  1293. "if ($1 != null)",
  1294. "{",
  1295. " $1.Name = $2; //名称",
  1296. " $1.Explanation = $3; //说明",
  1297. " $1.IsNewUser = $4; //新创客使用",
  1298. " $1.IsPublic = $5; //是否公开领取",
  1299. " $1.Stock = $6; //库存",
  1300. " $1.Kind = $7; //优惠券类型",
  1301. " $1.MerchantId = $8; //商家",
  1302. " $1.ProductColId = $9; //商品分类",
  1303. " $1.ProductId = $10; //商品",
  1304. " $1.UserMaxLevel = $11; //创客最高等级",
  1305. " $1.UserMinLevel = $12; //创客最低等级",
  1306. " $1.UseStartDate = $13; //开始使用时间",
  1307. " $1.UseEndDate = $14; //结束使用时间",
  1308. " $1.IsRepeat = $15; //是否重复",
  1309. " $1.RepeatType = $16; //重复类型",
  1310. " $1.RepeatCondition = $17; //重复条件值",
  1311. " $1.IsReUse = $18; //是否一次性使用",
  1312. " $1.PublicStartDate = $19; //公开领取开始时间",
  1313. " $1.PublicEndDate = $20; //公开领取结束时间",
  1314. " $1.PublicMax = $21; //公开每人领取数量",
  1315. " $1.PublicMaxByDay = $22; //公开每人每天领取数量",
  1316. " $1.IsSuperpose = $23; //是否叠加使用",
  1317. " $1.AndPromotion = $24; //是否与促销活动同时使用",
  1318. " $1.FullReduceMoney = $25; //满多少可用",
  1319. " $1.FullReduceData = $26; //满减数据",
  1320. " $1.ExpireStartDate = $27; //过期开始时间",
  1321. " $1.ExpireEndDate = $28; //过期结束时间",
  1322. "}"
  1323. ]
  1324. },
  1325. "获取优惠券数量": {
  1326. "prefix": "ym-db-Coupons-FindAndCount",
  1327. "body": [
  1328. "int $1 = db.Coupons.Count(m => $2);",
  1329. ]
  1330. },
  1331. "添加优惠券": {
  1332. "prefix": "ym-db-Coupons-Create",
  1333. "body": [
  1334. "db.Coupons.Add(new Coupons()",
  1335. "{",
  1336. " CreateDate = DateTime.Now,",
  1337. " UpdateDate = DateTime.Now,",
  1338. " Name = $1, //名称",
  1339. " Explanation = $2, //说明",
  1340. " IsNewUser = $3, //新创客使用",
  1341. " IsPublic = $4, //是否公开领取",
  1342. " Stock = $5, //库存",
  1343. " Kind = $6, //优惠券类型",
  1344. " MerchantId = $7, //商家",
  1345. " ProductColId = $8, //商品分类",
  1346. " ProductId = $9, //商品",
  1347. " UserMaxLevel = $10, //创客最高等级",
  1348. " UserMinLevel = $11, //创客最低等级",
  1349. " UseStartDate = $12, //开始使用时间",
  1350. " UseEndDate = $13, //结束使用时间",
  1351. " IsRepeat = $14, //是否重复",
  1352. " RepeatType = $15, //重复类型",
  1353. " RepeatCondition = $16, //重复条件值",
  1354. " IsReUse = $17, //是否一次性使用",
  1355. " PublicStartDate = $18, //公开领取开始时间",
  1356. " PublicEndDate = $19, //公开领取结束时间",
  1357. " PublicMax = $20, //公开每人领取数量",
  1358. " PublicMaxByDay = $21, //公开每人每天领取数量",
  1359. " IsSuperpose = $22, //是否叠加使用",
  1360. " AndPromotion = $23, //是否与促销活动同时使用",
  1361. " FullReduceMoney = $24, //满多少可用",
  1362. " FullReduceData = $25, //满减数据",
  1363. " ExpireStartDate = $26, //过期开始时间",
  1364. " ExpireEndDate = $27, //过期结束时间",
  1365. "});"
  1366. ]
  1367. },"删除某个优惠券": {
  1368. "prefix": "ym-db-Coupons-Delete",
  1369. "body": [
  1370. "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
  1371. "if ($1 != null)",
  1372. "{",
  1373. " db.Coupons.Remove($1);",
  1374. "}"
  1375. ]
  1376. },
  1377. "查询优惠券领取记录列表": {
  1378. "prefix": "ym-db-CouponsForUser-Find",
  1379. "body": [
  1380. "List<CouponsForUser> $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1381. "foreach (CouponsForUser $3 in $1)",
  1382. "{",
  1383. "}"
  1384. ]
  1385. },
  1386. "查询优惠券领取记录列表,并取值": {
  1387. "prefix": "ym-db-CouponsForUser-FindWithData",
  1388. "body": [
  1389. "List<CouponsForUser> $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1390. "foreach (CouponsForUser $3 in $1)",
  1391. "{",
  1392. " int UserId = $3.UserId; //创客Id",
  1393. " int CouponId = $3.CouponId; //券Id",
  1394. " ulong IsUse = $3.IsUse; //是否使用",
  1395. " ulong IsLock = $3.IsLock; //是否锁定",
  1396. " DateTime UseDate = $3.UseDate; //使用时间",
  1397. "}"
  1398. ]
  1399. },
  1400. "查询优惠券领取记录": {
  1401. "prefix": "ym-db-CouponsForUser-Exist",
  1402. "body": [
  1403. "bool $1 = db.CouponsForUser.Any(m => m.Id == $2);",
  1404. ]
  1405. },
  1406. "查询某个优惠券领取记录,并取值": {
  1407. "prefix": "ym-db-CouponsForUser-FindByPrimaryKey",
  1408. "body": [
  1409. "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
  1410. "if ($1 != null)",
  1411. "{",
  1412. " int UserId = $1.UserId; //创客Id",
  1413. " int CouponId = $1.CouponId; //券Id",
  1414. " ulong IsUse = $1.IsUse; //是否使用",
  1415. " ulong IsLock = $1.IsLock; //是否锁定",
  1416. " DateTime UseDate = $1.UseDate; //使用时间",
  1417. "}"
  1418. ]
  1419. },
  1420. "查询某个优惠券领取记录,并赋值": {
  1421. "prefix": "ym-db-CouponsForUser-Update",
  1422. "body": [
  1423. "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
  1424. "if ($1 != null)",
  1425. "{",
  1426. " $1.UserId = $2; //创客Id",
  1427. " $1.CouponId = $3; //券Id",
  1428. " $1.IsUse = $4; //是否使用",
  1429. " $1.IsLock = $5; //是否锁定",
  1430. " $1.UseDate = $6; //使用时间",
  1431. "}"
  1432. ]
  1433. },
  1434. "获取优惠券领取记录数量": {
  1435. "prefix": "ym-db-CouponsForUser-FindAndCount",
  1436. "body": [
  1437. "int $1 = db.CouponsForUser.Count(m => $2);",
  1438. ]
  1439. },
  1440. "添加优惠券领取记录": {
  1441. "prefix": "ym-db-CouponsForUser-Create",
  1442. "body": [
  1443. "db.CouponsForUser.Add(new CouponsForUser()",
  1444. "{",
  1445. " CreateDate = DateTime.Now,",
  1446. " UpdateDate = DateTime.Now,",
  1447. " UserId = $1, //创客Id",
  1448. " CouponId = $2, //券Id",
  1449. " IsUse = $3, //是否使用",
  1450. " IsLock = $4, //是否锁定",
  1451. " UseDate = $5, //使用时间",
  1452. "});"
  1453. ]
  1454. },"删除某个优惠券领取记录": {
  1455. "prefix": "ym-db-CouponsForUser-Delete",
  1456. "body": [
  1457. "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
  1458. "if ($1 != null)",
  1459. "{",
  1460. " db.CouponsForUser.Remove($1);",
  1461. "}"
  1462. ]
  1463. },
  1464. "查询自定义全局标签列表": {
  1465. "prefix": "ym-db-CustomTagSet-Find",
  1466. "body": [
  1467. "List<CustomTagSet> $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1468. "foreach (CustomTagSet $3 in $1)",
  1469. "{",
  1470. "}"
  1471. ]
  1472. },
  1473. "查询自定义全局标签列表,并取值": {
  1474. "prefix": "ym-db-CustomTagSet-FindWithData",
  1475. "body": [
  1476. "List<CustomTagSet> $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1477. "foreach (CustomTagSet $3 in $1)",
  1478. "{",
  1479. " string Tags = $3.Tags; //标签",
  1480. " string Title = $3.Title; //标题",
  1481. " string Contents = $3.Contents; //内容",
  1482. "}"
  1483. ]
  1484. },
  1485. "查询自定义全局标签": {
  1486. "prefix": "ym-db-CustomTagSet-Exist",
  1487. "body": [
  1488. "bool $1 = db.CustomTagSet.Any(m => m.Id == $2);",
  1489. ]
  1490. },
  1491. "查询某个自定义全局标签,并取值": {
  1492. "prefix": "ym-db-CustomTagSet-FindByPrimaryKey",
  1493. "body": [
  1494. "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
  1495. "if ($1 != null)",
  1496. "{",
  1497. " string Tags = $1.Tags; //标签",
  1498. " string Title = $1.Title; //标题",
  1499. " string Contents = $1.Contents; //内容",
  1500. "}"
  1501. ]
  1502. },
  1503. "查询某个自定义全局标签,并赋值": {
  1504. "prefix": "ym-db-CustomTagSet-Update",
  1505. "body": [
  1506. "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
  1507. "if ($1 != null)",
  1508. "{",
  1509. " $1.Tags = $2; //标签",
  1510. " $1.Title = $3; //标题",
  1511. " $1.Contents = $4; //内容",
  1512. "}"
  1513. ]
  1514. },
  1515. "获取自定义全局标签数量": {
  1516. "prefix": "ym-db-CustomTagSet-FindAndCount",
  1517. "body": [
  1518. "int $1 = db.CustomTagSet.Count(m => $2);",
  1519. ]
  1520. },
  1521. "添加自定义全局标签": {
  1522. "prefix": "ym-db-CustomTagSet-Create",
  1523. "body": [
  1524. "db.CustomTagSet.Add(new CustomTagSet()",
  1525. "{",
  1526. " CreateDate = DateTime.Now,",
  1527. " UpdateDate = DateTime.Now,",
  1528. " Tags = $1, //标签",
  1529. " Title = $2, //标题",
  1530. " Contents = $3, //内容",
  1531. "});"
  1532. ]
  1533. },"删除某个自定义全局标签": {
  1534. "prefix": "ym-db-CustomTagSet-Delete",
  1535. "body": [
  1536. "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
  1537. "if ($1 != null)",
  1538. "{",
  1539. " db.CustomTagSet.Remove($1);",
  1540. "}"
  1541. ]
  1542. },
  1543. "查询快递公司列表": {
  1544. "prefix": "ym-db-ErpCompanys-Find",
  1545. "body": [
  1546. "List<ErpCompanys> $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1547. "foreach (ErpCompanys $3 in $1)",
  1548. "{",
  1549. "}"
  1550. ]
  1551. },
  1552. "查询快递公司列表,并取值": {
  1553. "prefix": "ym-db-ErpCompanys-FindWithData",
  1554. "body": [
  1555. "List<ErpCompanys> $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1556. "foreach (ErpCompanys $3 in $1)",
  1557. "{",
  1558. " string Name = $3.Name; //名称",
  1559. " string Code = $3.Code; //编码",
  1560. " string Phone = $3.Phone; //客服电话",
  1561. "}"
  1562. ]
  1563. },
  1564. "查询快递公司": {
  1565. "prefix": "ym-db-ErpCompanys-Exist",
  1566. "body": [
  1567. "bool $1 = db.ErpCompanys.Any(m => m.Id == $2);",
  1568. ]
  1569. },
  1570. "查询某个快递公司,并取值": {
  1571. "prefix": "ym-db-ErpCompanys-FindByPrimaryKey",
  1572. "body": [
  1573. "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
  1574. "if ($1 != null)",
  1575. "{",
  1576. " string Name = $1.Name; //名称",
  1577. " string Code = $1.Code; //编码",
  1578. " string Phone = $1.Phone; //客服电话",
  1579. "}"
  1580. ]
  1581. },
  1582. "查询某个快递公司,并赋值": {
  1583. "prefix": "ym-db-ErpCompanys-Update",
  1584. "body": [
  1585. "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
  1586. "if ($1 != null)",
  1587. "{",
  1588. " $1.Name = $2; //名称",
  1589. " $1.Code = $3; //编码",
  1590. " $1.Phone = $4; //客服电话",
  1591. "}"
  1592. ]
  1593. },
  1594. "获取快递公司数量": {
  1595. "prefix": "ym-db-ErpCompanys-FindAndCount",
  1596. "body": [
  1597. "int $1 = db.ErpCompanys.Count(m => $2);",
  1598. ]
  1599. },
  1600. "添加快递公司": {
  1601. "prefix": "ym-db-ErpCompanys-Create",
  1602. "body": [
  1603. "db.ErpCompanys.Add(new ErpCompanys()",
  1604. "{",
  1605. " CreateDate = DateTime.Now,",
  1606. " UpdateDate = DateTime.Now,",
  1607. " Name = $1, //名称",
  1608. " Code = $2, //编码",
  1609. " Phone = $3, //客服电话",
  1610. "});"
  1611. ]
  1612. },"删除某个快递公司": {
  1613. "prefix": "ym-db-ErpCompanys-Delete",
  1614. "body": [
  1615. "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
  1616. "if ($1 != null)",
  1617. "{",
  1618. " db.ErpCompanys.Remove($1);",
  1619. "}"
  1620. ]
  1621. },
  1622. "查询资源文件更新信息列表": {
  1623. "prefix": "ym-db-FileUpdateInfo-Find",
  1624. "body": [
  1625. "List<FileUpdateInfo> $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1626. "foreach (FileUpdateInfo $3 in $1)",
  1627. "{",
  1628. "}"
  1629. ]
  1630. },
  1631. "查询资源文件更新信息列表,并取值": {
  1632. "prefix": "ym-db-FileUpdateInfo-FindWithData",
  1633. "body": [
  1634. "List<FileUpdateInfo> $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1635. "foreach (FileUpdateInfo $3 in $1)",
  1636. "{",
  1637. " int VersionNum = $3.VersionNum; //更新版本",
  1638. " string Path = $3.Path; //路径",
  1639. " string FileName = $3.FileName; //文件名",
  1640. "}"
  1641. ]
  1642. },
  1643. "查询资源文件更新信息": {
  1644. "prefix": "ym-db-FileUpdateInfo-Exist",
  1645. "body": [
  1646. "bool $1 = db.FileUpdateInfo.Any(m => m.Id == $2);",
  1647. ]
  1648. },
  1649. "查询某个资源文件更新信息,并取值": {
  1650. "prefix": "ym-db-FileUpdateInfo-FindByPrimaryKey",
  1651. "body": [
  1652. "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  1653. "if ($1 != null)",
  1654. "{",
  1655. " int VersionNum = $1.VersionNum; //更新版本",
  1656. " string Path = $1.Path; //路径",
  1657. " string FileName = $1.FileName; //文件名",
  1658. "}"
  1659. ]
  1660. },
  1661. "查询某个资源文件更新信息,并赋值": {
  1662. "prefix": "ym-db-FileUpdateInfo-Update",
  1663. "body": [
  1664. "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  1665. "if ($1 != null)",
  1666. "{",
  1667. " $1.VersionNum = $2; //更新版本",
  1668. " $1.Path = $3; //路径",
  1669. " $1.FileName = $4; //文件名",
  1670. "}"
  1671. ]
  1672. },
  1673. "获取资源文件更新信息数量": {
  1674. "prefix": "ym-db-FileUpdateInfo-FindAndCount",
  1675. "body": [
  1676. "int $1 = db.FileUpdateInfo.Count(m => $2);",
  1677. ]
  1678. },
  1679. "添加资源文件更新信息": {
  1680. "prefix": "ym-db-FileUpdateInfo-Create",
  1681. "body": [
  1682. "db.FileUpdateInfo.Add(new FileUpdateInfo()",
  1683. "{",
  1684. " CreateDate = DateTime.Now,",
  1685. " UpdateDate = DateTime.Now,",
  1686. " VersionNum = $1, //更新版本",
  1687. " Path = $2, //路径",
  1688. " FileName = $3, //文件名",
  1689. "});"
  1690. ]
  1691. },"删除某个资源文件更新信息": {
  1692. "prefix": "ym-db-FileUpdateInfo-Delete",
  1693. "body": [
  1694. "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  1695. "if ($1 != null)",
  1696. "{",
  1697. " db.FileUpdateInfo.Remove($1);",
  1698. "}"
  1699. ]
  1700. },
  1701. "查询流量分佣明细列表": {
  1702. "prefix": "ym-db-FluxProfitDetail-Find",
  1703. "body": [
  1704. "List<FluxProfitDetail> $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1705. "foreach (FluxProfitDetail $3 in $1)",
  1706. "{",
  1707. "}"
  1708. ]
  1709. },
  1710. "查询流量分佣明细列表,并取值": {
  1711. "prefix": "ym-db-FluxProfitDetail-FindWithData",
  1712. "body": [
  1713. "List<FluxProfitDetail> $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1714. "foreach (FluxProfitDetail $3 in $1)",
  1715. "{",
  1716. " string RecordNo = $3.RecordNo; //单号",
  1717. " string TradeDate = $3.TradeDate; //交易日期",
  1718. " string TradeTime = $3.TradeTime; //交易时间",
  1719. " string TradeMonth = $3.TradeMonth; //交易月",
  1720. " int UserId = $3.UserId; //创客",
  1721. " int MerchantId = $3.MerchantId; //商户",
  1722. " int MerchantUserId = $3.MerchantUserId; //商户直属人",
  1723. " string MerNo = $3.MerNo; //渠道商户编号",
  1724. " string SnNo = $3.SnNo; //渠道SN号",
  1725. " int ProfitType = $3.ProfitType; //分润类型",
  1726. " string FluxOrderNo = $3.FluxOrderNo; //流量扣费单号",
  1727. " string TradeOrderNo = $3.TradeOrderNo; //交易流水号",
  1728. " decimal TradeAmt = $3.TradeAmt; //商户交易额",
  1729. " decimal FluxFeeAmt = $3.FluxFeeAmt; //流量费",
  1730. " string FluxStartDate = $3.FluxStartDate; //流量扣费开始日期",
  1731. " string FluxEndDate = $3.FluxEndDate; //流量扣费结束日期",
  1732. " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额",
  1733. " string PosType = $3.PosType; //POS类型",
  1734. " string Remark = $3.Remark; //备注",
  1735. " int BrandId = $3.BrandId; //品牌",
  1736. " int TopUserId = $3.TopUserId; //顶级创客",
  1737. " int MerUserType = $3.MerUserType; //商户创客类型",
  1738. "}"
  1739. ]
  1740. },
  1741. "查询流量分佣明细": {
  1742. "prefix": "ym-db-FluxProfitDetail-Exist",
  1743. "body": [
  1744. "bool $1 = db.FluxProfitDetail.Any(m => m.Id == $2);",
  1745. ]
  1746. },
  1747. "查询某个流量分佣明细,并取值": {
  1748. "prefix": "ym-db-FluxProfitDetail-FindByPrimaryKey",
  1749. "body": [
  1750. "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
  1751. "if ($1 != null)",
  1752. "{",
  1753. " string RecordNo = $1.RecordNo; //单号",
  1754. " string TradeDate = $1.TradeDate; //交易日期",
  1755. " string TradeTime = $1.TradeTime; //交易时间",
  1756. " string TradeMonth = $1.TradeMonth; //交易月",
  1757. " int UserId = $1.UserId; //创客",
  1758. " int MerchantId = $1.MerchantId; //商户",
  1759. " int MerchantUserId = $1.MerchantUserId; //商户直属人",
  1760. " string MerNo = $1.MerNo; //渠道商户编号",
  1761. " string SnNo = $1.SnNo; //渠道SN号",
  1762. " int ProfitType = $1.ProfitType; //分润类型",
  1763. " string FluxOrderNo = $1.FluxOrderNo; //流量扣费单号",
  1764. " string TradeOrderNo = $1.TradeOrderNo; //交易流水号",
  1765. " decimal TradeAmt = $1.TradeAmt; //商户交易额",
  1766. " decimal FluxFeeAmt = $1.FluxFeeAmt; //流量费",
  1767. " string FluxStartDate = $1.FluxStartDate; //流量扣费开始日期",
  1768. " string FluxEndDate = $1.FluxEndDate; //流量扣费结束日期",
  1769. " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额",
  1770. " string PosType = $1.PosType; //POS类型",
  1771. " string Remark = $1.Remark; //备注",
  1772. " int BrandId = $1.BrandId; //品牌",
  1773. " int TopUserId = $1.TopUserId; //顶级创客",
  1774. " int MerUserType = $1.MerUserType; //商户创客类型",
  1775. "}"
  1776. ]
  1777. },
  1778. "查询某个流量分佣明细,并赋值": {
  1779. "prefix": "ym-db-FluxProfitDetail-Update",
  1780. "body": [
  1781. "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
  1782. "if ($1 != null)",
  1783. "{",
  1784. " $1.RecordNo = $2; //单号",
  1785. " $1.TradeDate = $3; //交易日期",
  1786. " $1.TradeTime = $4; //交易时间",
  1787. " $1.TradeMonth = $5; //交易月",
  1788. " $1.UserId = $6; //创客",
  1789. " $1.MerchantId = $7; //商户",
  1790. " $1.MerchantUserId = $8; //商户直属人",
  1791. " $1.MerNo = $9; //渠道商户编号",
  1792. " $1.SnNo = $10; //渠道SN号",
  1793. " $1.ProfitType = $11; //分润类型",
  1794. " $1.FluxOrderNo = $12; //流量扣费单号",
  1795. " $1.TradeOrderNo = $13; //交易流水号",
  1796. " $1.TradeAmt = $14; //商户交易额",
  1797. " $1.FluxFeeAmt = $15; //流量费",
  1798. " $1.FluxStartDate = $16; //流量扣费开始日期",
  1799. " $1.FluxEndDate = $17; //流量扣费结束日期",
  1800. " $1.FluxProfitAmt = $18; //流量分润总金额",
  1801. " $1.PosType = $19; //POS类型",
  1802. " $1.Remark = $20; //备注",
  1803. " $1.BrandId = $21; //品牌",
  1804. " $1.TopUserId = $22; //顶级创客",
  1805. " $1.MerUserType = $23; //商户创客类型",
  1806. "}"
  1807. ]
  1808. },
  1809. "获取流量分佣明细数量": {
  1810. "prefix": "ym-db-FluxProfitDetail-FindAndCount",
  1811. "body": [
  1812. "int $1 = db.FluxProfitDetail.Count(m => $2);",
  1813. ]
  1814. },
  1815. "添加流量分佣明细": {
  1816. "prefix": "ym-db-FluxProfitDetail-Create",
  1817. "body": [
  1818. "db.FluxProfitDetail.Add(new FluxProfitDetail()",
  1819. "{",
  1820. " CreateDate = DateTime.Now,",
  1821. " UpdateDate = DateTime.Now,",
  1822. " RecordNo = $1, //单号",
  1823. " TradeDate = $2, //交易日期",
  1824. " TradeTime = $3, //交易时间",
  1825. " TradeMonth = $4, //交易月",
  1826. " UserId = $5, //创客",
  1827. " MerchantId = $6, //商户",
  1828. " MerchantUserId = $7, //商户直属人",
  1829. " MerNo = $8, //渠道商户编号",
  1830. " SnNo = $9, //渠道SN号",
  1831. " ProfitType = $10, //分润类型",
  1832. " FluxOrderNo = $11, //流量扣费单号",
  1833. " TradeOrderNo = $12, //交易流水号",
  1834. " TradeAmt = $13, //商户交易额",
  1835. " FluxFeeAmt = $14, //流量费",
  1836. " FluxStartDate = $15, //流量扣费开始日期",
  1837. " FluxEndDate = $16, //流量扣费结束日期",
  1838. " FluxProfitAmt = $17, //流量分润总金额",
  1839. " PosType = $18, //POS类型",
  1840. " Remark = $19, //备注",
  1841. " BrandId = $20, //品牌",
  1842. " TopUserId = $21, //顶级创客",
  1843. " MerUserType = $22, //商户创客类型",
  1844. "});"
  1845. ]
  1846. },"删除某个流量分佣明细": {
  1847. "prefix": "ym-db-FluxProfitDetail-Delete",
  1848. "body": [
  1849. "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
  1850. "if ($1 != null)",
  1851. "{",
  1852. " db.FluxProfitDetail.Remove($1);",
  1853. "}"
  1854. ]
  1855. },
  1856. "查询流量分佣汇总列表": {
  1857. "prefix": "ym-db-FluxProfitSummary-Find",
  1858. "body": [
  1859. "List<FluxProfitSummary> $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1860. "foreach (FluxProfitSummary $3 in $1)",
  1861. "{",
  1862. "}"
  1863. ]
  1864. },
  1865. "查询流量分佣汇总列表,并取值": {
  1866. "prefix": "ym-db-FluxProfitSummary-FindWithData",
  1867. "body": [
  1868. "List<FluxProfitSummary> $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1869. "foreach (FluxProfitSummary $3 in $1)",
  1870. "{",
  1871. " int UserId = $3.UserId; //创客",
  1872. " int TopUserId = $3.TopUserId; //顶级创客",
  1873. " string TradeMonth = $3.TradeMonth; //交易月",
  1874. " int MerUserType = $3.MerUserType; //商户创客类型",
  1875. " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额",
  1876. " int FluxTradeNum = $3.FluxTradeNum; //商户借记卡封顶交易总笔数",
  1877. " int CheckStatus = $3.CheckStatus; //同步账户状态",
  1878. " string Remark = $3.Remark; //备注",
  1879. "}"
  1880. ]
  1881. },
  1882. "查询流量分佣汇总": {
  1883. "prefix": "ym-db-FluxProfitSummary-Exist",
  1884. "body": [
  1885. "bool $1 = db.FluxProfitSummary.Any(m => m.Id == $2);",
  1886. ]
  1887. },
  1888. "查询某个流量分佣汇总,并取值": {
  1889. "prefix": "ym-db-FluxProfitSummary-FindByPrimaryKey",
  1890. "body": [
  1891. "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
  1892. "if ($1 != null)",
  1893. "{",
  1894. " int UserId = $1.UserId; //创客",
  1895. " int TopUserId = $1.TopUserId; //顶级创客",
  1896. " string TradeMonth = $1.TradeMonth; //交易月",
  1897. " int MerUserType = $1.MerUserType; //商户创客类型",
  1898. " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额",
  1899. " int FluxTradeNum = $1.FluxTradeNum; //商户借记卡封顶交易总笔数",
  1900. " int CheckStatus = $1.CheckStatus; //同步账户状态",
  1901. " string Remark = $1.Remark; //备注",
  1902. "}"
  1903. ]
  1904. },
  1905. "查询某个流量分佣汇总,并赋值": {
  1906. "prefix": "ym-db-FluxProfitSummary-Update",
  1907. "body": [
  1908. "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
  1909. "if ($1 != null)",
  1910. "{",
  1911. " $1.UserId = $2; //创客",
  1912. " $1.TopUserId = $3; //顶级创客",
  1913. " $1.TradeMonth = $4; //交易月",
  1914. " $1.MerUserType = $5; //商户创客类型",
  1915. " $1.FluxProfitAmt = $6; //流量分润总金额",
  1916. " $1.FluxTradeNum = $7; //商户借记卡封顶交易总笔数",
  1917. " $1.CheckStatus = $8; //同步账户状态",
  1918. " $1.Remark = $9; //备注",
  1919. "}"
  1920. ]
  1921. },
  1922. "获取流量分佣汇总数量": {
  1923. "prefix": "ym-db-FluxProfitSummary-FindAndCount",
  1924. "body": [
  1925. "int $1 = db.FluxProfitSummary.Count(m => $2);",
  1926. ]
  1927. },
  1928. "添加流量分佣汇总": {
  1929. "prefix": "ym-db-FluxProfitSummary-Create",
  1930. "body": [
  1931. "db.FluxProfitSummary.Add(new FluxProfitSummary()",
  1932. "{",
  1933. " CreateDate = DateTime.Now,",
  1934. " UpdateDate = DateTime.Now,",
  1935. " UserId = $1, //创客",
  1936. " TopUserId = $2, //顶级创客",
  1937. " TradeMonth = $3, //交易月",
  1938. " MerUserType = $4, //商户创客类型",
  1939. " FluxProfitAmt = $5, //流量分润总金额",
  1940. " FluxTradeNum = $6, //商户借记卡封顶交易总笔数",
  1941. " CheckStatus = $7, //同步账户状态",
  1942. " Remark = $8, //备注",
  1943. "});"
  1944. ]
  1945. },"删除某个流量分佣汇总": {
  1946. "prefix": "ym-db-FluxProfitSummary-Delete",
  1947. "body": [
  1948. "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
  1949. "if ($1 != null)",
  1950. "{",
  1951. " db.FluxProfitSummary.Remove($1);",
  1952. "}"
  1953. ]
  1954. },
  1955. "查询首页快捷入口列表": {
  1956. "prefix": "ym-db-IndexIconList-Find",
  1957. "body": [
  1958. "List<IndexIconList> $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1959. "foreach (IndexIconList $3 in $1)",
  1960. "{",
  1961. "}"
  1962. ]
  1963. },
  1964. "查询首页快捷入口列表,并取值": {
  1965. "prefix": "ym-db-IndexIconList-FindWithData",
  1966. "body": [
  1967. "List<IndexIconList> $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1968. "foreach (IndexIconList $3 in $1)",
  1969. "{",
  1970. " string Icon = $3.Icon; //图标",
  1971. " string Title = $3.Title; //标题",
  1972. " string Url = $3.Url; //跳转地址",
  1973. "}"
  1974. ]
  1975. },
  1976. "查询首页快捷入口": {
  1977. "prefix": "ym-db-IndexIconList-Exist",
  1978. "body": [
  1979. "bool $1 = db.IndexIconList.Any(m => m.Id == $2);",
  1980. ]
  1981. },
  1982. "查询某个首页快捷入口,并取值": {
  1983. "prefix": "ym-db-IndexIconList-FindByPrimaryKey",
  1984. "body": [
  1985. "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
  1986. "if ($1 != null)",
  1987. "{",
  1988. " string Icon = $1.Icon; //图标",
  1989. " string Title = $1.Title; //标题",
  1990. " string Url = $1.Url; //跳转地址",
  1991. "}"
  1992. ]
  1993. },
  1994. "查询某个首页快捷入口,并赋值": {
  1995. "prefix": "ym-db-IndexIconList-Update",
  1996. "body": [
  1997. "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
  1998. "if ($1 != null)",
  1999. "{",
  2000. " $1.Icon = $2; //图标",
  2001. " $1.Title = $3; //标题",
  2002. " $1.Url = $4; //跳转地址",
  2003. "}"
  2004. ]
  2005. },
  2006. "获取首页快捷入口数量": {
  2007. "prefix": "ym-db-IndexIconList-FindAndCount",
  2008. "body": [
  2009. "int $1 = db.IndexIconList.Count(m => $2);",
  2010. ]
  2011. },
  2012. "添加首页快捷入口": {
  2013. "prefix": "ym-db-IndexIconList-Create",
  2014. "body": [
  2015. "db.IndexIconList.Add(new IndexIconList()",
  2016. "{",
  2017. " CreateDate = DateTime.Now,",
  2018. " UpdateDate = DateTime.Now,",
  2019. " Icon = $1, //图标",
  2020. " Title = $2, //标题",
  2021. " Url = $3, //跳转地址",
  2022. "});"
  2023. ]
  2024. },"删除某个首页快捷入口": {
  2025. "prefix": "ym-db-IndexIconList-Delete",
  2026. "body": [
  2027. "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
  2028. "if ($1 != null)",
  2029. "{",
  2030. " db.IndexIconList.Remove($1);",
  2031. "}"
  2032. ]
  2033. },
  2034. "查询产品品牌列表": {
  2035. "prefix": "ym-db-KqProductBrand-Find",
  2036. "body": [
  2037. "List<KqProductBrand> $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2038. "foreach (KqProductBrand $3 in $1)",
  2039. "{",
  2040. "}"
  2041. ]
  2042. },
  2043. "查询产品品牌列表,并取值": {
  2044. "prefix": "ym-db-KqProductBrand-FindWithData",
  2045. "body": [
  2046. "List<KqProductBrand> $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2047. "foreach (KqProductBrand $3 in $1)",
  2048. "{",
  2049. " int ProductId = $3.ProductId; //产品",
  2050. " string Name = $3.Name; //品牌名称",
  2051. "}"
  2052. ]
  2053. },
  2054. "查询产品品牌": {
  2055. "prefix": "ym-db-KqProductBrand-Exist",
  2056. "body": [
  2057. "bool $1 = db.KqProductBrand.Any(m => m.Id == $2);",
  2058. ]
  2059. },
  2060. "查询某个产品品牌,并取值": {
  2061. "prefix": "ym-db-KqProductBrand-FindByPrimaryKey",
  2062. "body": [
  2063. "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
  2064. "if ($1 != null)",
  2065. "{",
  2066. " int ProductId = $1.ProductId; //产品",
  2067. " string Name = $1.Name; //品牌名称",
  2068. "}"
  2069. ]
  2070. },
  2071. "查询某个产品品牌,并赋值": {
  2072. "prefix": "ym-db-KqProductBrand-Update",
  2073. "body": [
  2074. "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
  2075. "if ($1 != null)",
  2076. "{",
  2077. " $1.ProductId = $2; //产品",
  2078. " $1.Name = $3; //品牌名称",
  2079. "}"
  2080. ]
  2081. },
  2082. "获取产品品牌数量": {
  2083. "prefix": "ym-db-KqProductBrand-FindAndCount",
  2084. "body": [
  2085. "int $1 = db.KqProductBrand.Count(m => $2);",
  2086. ]
  2087. },
  2088. "添加产品品牌": {
  2089. "prefix": "ym-db-KqProductBrand-Create",
  2090. "body": [
  2091. "db.KqProductBrand.Add(new KqProductBrand()",
  2092. "{",
  2093. " CreateDate = DateTime.Now,",
  2094. " UpdateDate = DateTime.Now,",
  2095. " ProductId = $1, //产品",
  2096. " Name = $2, //品牌名称",
  2097. "});"
  2098. ]
  2099. },"删除某个产品品牌": {
  2100. "prefix": "ym-db-KqProductBrand-Delete",
  2101. "body": [
  2102. "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
  2103. "if ($1 != null)",
  2104. "{",
  2105. " db.KqProductBrand.Remove($1);",
  2106. "}"
  2107. ]
  2108. },
  2109. "查询产品机构列表": {
  2110. "prefix": "ym-db-KqProductOrgs-Find",
  2111. "body": [
  2112. "List<KqProductOrgs> $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2113. "foreach (KqProductOrgs $3 in $1)",
  2114. "{",
  2115. "}"
  2116. ]
  2117. },
  2118. "查询产品机构列表,并取值": {
  2119. "prefix": "ym-db-KqProductOrgs-FindWithData",
  2120. "body": [
  2121. "List<KqProductOrgs> $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2122. "foreach (KqProductOrgs $3 in $1)",
  2123. "{",
  2124. " int BrandId = $3.BrandId; //品牌",
  2125. " string Name = $3.Name; //机构名称",
  2126. "}"
  2127. ]
  2128. },
  2129. "查询产品机构": {
  2130. "prefix": "ym-db-KqProductOrgs-Exist",
  2131. "body": [
  2132. "bool $1 = db.KqProductOrgs.Any(m => m.Id == $2);",
  2133. ]
  2134. },
  2135. "查询某个产品机构,并取值": {
  2136. "prefix": "ym-db-KqProductOrgs-FindByPrimaryKey",
  2137. "body": [
  2138. "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
  2139. "if ($1 != null)",
  2140. "{",
  2141. " int BrandId = $1.BrandId; //品牌",
  2142. " string Name = $1.Name; //机构名称",
  2143. "}"
  2144. ]
  2145. },
  2146. "查询某个产品机构,并赋值": {
  2147. "prefix": "ym-db-KqProductOrgs-Update",
  2148. "body": [
  2149. "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
  2150. "if ($1 != null)",
  2151. "{",
  2152. " $1.BrandId = $2; //品牌",
  2153. " $1.Name = $3; //机构名称",
  2154. "}"
  2155. ]
  2156. },
  2157. "获取产品机构数量": {
  2158. "prefix": "ym-db-KqProductOrgs-FindAndCount",
  2159. "body": [
  2160. "int $1 = db.KqProductOrgs.Count(m => $2);",
  2161. ]
  2162. },
  2163. "添加产品机构": {
  2164. "prefix": "ym-db-KqProductOrgs-Create",
  2165. "body": [
  2166. "db.KqProductOrgs.Add(new KqProductOrgs()",
  2167. "{",
  2168. " CreateDate = DateTime.Now,",
  2169. " UpdateDate = DateTime.Now,",
  2170. " BrandId = $1, //品牌",
  2171. " Name = $2, //机构名称",
  2172. "});"
  2173. ]
  2174. },"删除某个产品机构": {
  2175. "prefix": "ym-db-KqProductOrgs-Delete",
  2176. "body": [
  2177. "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
  2178. "if ($1 != null)",
  2179. "{",
  2180. " db.KqProductOrgs.Remove($1);",
  2181. "}"
  2182. ]
  2183. },
  2184. "查询产品规则配置列表": {
  2185. "prefix": "ym-db-KqProductRuleSet-Find",
  2186. "body": [
  2187. "List<KqProductRuleSet> $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2188. "foreach (KqProductRuleSet $3 in $1)",
  2189. "{",
  2190. "}"
  2191. ]
  2192. },
  2193. "查询产品规则配置列表,并取值": {
  2194. "prefix": "ym-db-KqProductRuleSet-FindWithData",
  2195. "body": [
  2196. "List<KqProductRuleSet> $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2197. "foreach (KqProductRuleSet $3 in $1)",
  2198. "{",
  2199. " int OrgId = $3.OrgId; //机构",
  2200. " decimal Deposit = $3.Deposit; //押金",
  2201. " int ActiveCount = $3.ActiveCount; //活动政策台数",
  2202. " decimal ActivePrice = $3.ActivePrice; //活动政策价格",
  2203. " DateTime MerStaStartDate = $3.MerStaStartDate; //活动开始时间",
  2204. " DateTime MerStaEndDate = $3.MerStaEndDate; //活动结束时间",
  2205. " decimal MerStaProfit = $3.MerStaProfit; //达标奖励",
  2206. " int MerStaMonths = $3.MerStaMonths; //激活后达标月",
  2207. " decimal MerStaTradeForMonth = $3.MerStaTradeForMonth; //激活后每月达标交易",
  2208. " DateTime ActStartDate = $3.ActStartDate; //活动开始时间",
  2209. " DateTime ActEndDate = $3.ActEndDate; //活动结束时间",
  2210. " decimal ActDeposit = $3.ActDeposit; //激活押金",
  2211. " decimal ActFirst = $3.ActFirst; //激活首刷",
  2212. " decimal ActFirstDeposit = $3.ActFirstDeposit; //激活首刷押金",
  2213. " decimal ActPrize = $3.ActPrize; //激活奖励金额",
  2214. " int ActPosCount = $3.ActPosCount; //激活赠机台数",
  2215. " DateTime OpenStartDate = $3.OpenStartDate; //活动开始时间",
  2216. " DateTime OpenEndDate = $3.OpenEndDate; //活动结束时间",
  2217. " int OpenStaDays = $3.OpenStaDays; //达标天数",
  2218. " decimal OpenStaTrade = $3.OpenStaTrade; //达标交易",
  2219. " decimal OpenStaPrize = $3.OpenStaPrize; //达标奖励1",
  2220. " decimal OpenStaPrize2 = $3.OpenStaPrize2; //达标奖励2",
  2221. " DateTime CycleStartDate = $3.CycleStartDate; //活动开始时间",
  2222. " DateTime CycleEndDate = $3.CycleEndDate; //活动结束时间",
  2223. " ulong CycleIsOther = $3.CycleIsOther; //是否允许划拨给他人",
  2224. " int CyclePosDays = $3.CyclePosDays; //领机天数",
  2225. " DateTime PullNewStartDate = $3.PullNewStartDate; //活动开始时间",
  2226. " DateTime PullNewEndDate = $3.PullNewEndDate; //活动结束时间",
  2227. " int PullNewExtendDays = $3.PullNewExtendDays; //延长领机天数",
  2228. " decimal BigTotalAmount = $3.BigTotalAmount; //购买机起始价",
  2229. " int BigExtendCycleDays = $3.BigExtendCycleDays; //延长循环周期天数",
  2230. " DateTime SubsidyStartDate = $3.SubsidyStartDate; //活动开始时间",
  2231. " DateTime SubsidyEndDate = $3.SubsidyEndDate; //活动结束时间",
  2232. " DateTime FlowCardStartDate = $3.FlowCardStartDate; //活动开始时间",
  2233. " DateTime FlowCardEndDate = $3.FlowCardEndDate; //活动结束时间",
  2234. " int FlowCardFreeDays = $3.FlowCardFreeDays; //免收天数",
  2235. " decimal FlowCardFee = $3.FlowCardFee; //费用",
  2236. " DateTime FeeOfDays = $3.FeeOfDays; //扣费频率(天)",
  2237. " decimal FlowCardDirectProfit = $3.FlowCardDirectProfit; //直属上级返佣",
  2238. " DateTime HelpStartDate = $3.HelpStartDate; //活动开始时间",
  2239. " DateTime HelpEndDate = $3.HelpEndDate; //活动结束时间",
  2240. " int HelpMonths = $3.HelpMonths; //计算自然月",
  2241. " decimal HelpFee = $3.HelpFee; //扶植期费率",
  2242. " decimal HelpSteadyFee = $3.HelpSteadyFee; //稳定期费率",
  2243. " int FeeBindDays = $3.FeeBindDays; //绑定起天数",
  2244. " decimal FeeFixed = $3.FeeFixed; //固定手续费",
  2245. " decimal FeeRate = $3.FeeRate; //费率",
  2246. "}"
  2247. ]
  2248. },
  2249. "查询产品规则配置": {
  2250. "prefix": "ym-db-KqProductRuleSet-Exist",
  2251. "body": [
  2252. "bool $1 = db.KqProductRuleSet.Any(m => m.Id == $2);",
  2253. ]
  2254. },
  2255. "查询某个产品规则配置,并取值": {
  2256. "prefix": "ym-db-KqProductRuleSet-FindByPrimaryKey",
  2257. "body": [
  2258. "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
  2259. "if ($1 != null)",
  2260. "{",
  2261. " int OrgId = $1.OrgId; //机构",
  2262. " decimal Deposit = $1.Deposit; //押金",
  2263. " int ActiveCount = $1.ActiveCount; //活动政策台数",
  2264. " decimal ActivePrice = $1.ActivePrice; //活动政策价格",
  2265. " DateTime MerStaStartDate = $1.MerStaStartDate; //活动开始时间",
  2266. " DateTime MerStaEndDate = $1.MerStaEndDate; //活动结束时间",
  2267. " decimal MerStaProfit = $1.MerStaProfit; //达标奖励",
  2268. " int MerStaMonths = $1.MerStaMonths; //激活后达标月",
  2269. " decimal MerStaTradeForMonth = $1.MerStaTradeForMonth; //激活后每月达标交易",
  2270. " DateTime ActStartDate = $1.ActStartDate; //活动开始时间",
  2271. " DateTime ActEndDate = $1.ActEndDate; //活动结束时间",
  2272. " decimal ActDeposit = $1.ActDeposit; //激活押金",
  2273. " decimal ActFirst = $1.ActFirst; //激活首刷",
  2274. " decimal ActFirstDeposit = $1.ActFirstDeposit; //激活首刷押金",
  2275. " decimal ActPrize = $1.ActPrize; //激活奖励金额",
  2276. " int ActPosCount = $1.ActPosCount; //激活赠机台数",
  2277. " DateTime OpenStartDate = $1.OpenStartDate; //活动开始时间",
  2278. " DateTime OpenEndDate = $1.OpenEndDate; //活动结束时间",
  2279. " int OpenStaDays = $1.OpenStaDays; //达标天数",
  2280. " decimal OpenStaTrade = $1.OpenStaTrade; //达标交易",
  2281. " decimal OpenStaPrize = $1.OpenStaPrize; //达标奖励1",
  2282. " decimal OpenStaPrize2 = $1.OpenStaPrize2; //达标奖励2",
  2283. " DateTime CycleStartDate = $1.CycleStartDate; //活动开始时间",
  2284. " DateTime CycleEndDate = $1.CycleEndDate; //活动结束时间",
  2285. " ulong CycleIsOther = $1.CycleIsOther; //是否允许划拨给他人",
  2286. " int CyclePosDays = $1.CyclePosDays; //领机天数",
  2287. " DateTime PullNewStartDate = $1.PullNewStartDate; //活动开始时间",
  2288. " DateTime PullNewEndDate = $1.PullNewEndDate; //活动结束时间",
  2289. " int PullNewExtendDays = $1.PullNewExtendDays; //延长领机天数",
  2290. " decimal BigTotalAmount = $1.BigTotalAmount; //购买机起始价",
  2291. " int BigExtendCycleDays = $1.BigExtendCycleDays; //延长循环周期天数",
  2292. " DateTime SubsidyStartDate = $1.SubsidyStartDate; //活动开始时间",
  2293. " DateTime SubsidyEndDate = $1.SubsidyEndDate; //活动结束时间",
  2294. " DateTime FlowCardStartDate = $1.FlowCardStartDate; //活动开始时间",
  2295. " DateTime FlowCardEndDate = $1.FlowCardEndDate; //活动结束时间",
  2296. " int FlowCardFreeDays = $1.FlowCardFreeDays; //免收天数",
  2297. " decimal FlowCardFee = $1.FlowCardFee; //费用",
  2298. " DateTime FeeOfDays = $1.FeeOfDays; //扣费频率(天)",
  2299. " decimal FlowCardDirectProfit = $1.FlowCardDirectProfit; //直属上级返佣",
  2300. " DateTime HelpStartDate = $1.HelpStartDate; //活动开始时间",
  2301. " DateTime HelpEndDate = $1.HelpEndDate; //活动结束时间",
  2302. " int HelpMonths = $1.HelpMonths; //计算自然月",
  2303. " decimal HelpFee = $1.HelpFee; //扶植期费率",
  2304. " decimal HelpSteadyFee = $1.HelpSteadyFee; //稳定期费率",
  2305. " int FeeBindDays = $1.FeeBindDays; //绑定起天数",
  2306. " decimal FeeFixed = $1.FeeFixed; //固定手续费",
  2307. " decimal FeeRate = $1.FeeRate; //费率",
  2308. "}"
  2309. ]
  2310. },
  2311. "查询某个产品规则配置,并赋值": {
  2312. "prefix": "ym-db-KqProductRuleSet-Update",
  2313. "body": [
  2314. "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
  2315. "if ($1 != null)",
  2316. "{",
  2317. " $1.OrgId = $2; //机构",
  2318. " $1.Deposit = $3; //押金",
  2319. " $1.ActiveCount = $4; //活动政策台数",
  2320. " $1.ActivePrice = $5; //活动政策价格",
  2321. " $1.MerStaStartDate = $6; //活动开始时间",
  2322. " $1.MerStaEndDate = $7; //活动结束时间",
  2323. " $1.MerStaProfit = $8; //达标奖励",
  2324. " $1.MerStaMonths = $9; //激活后达标月",
  2325. " $1.MerStaTradeForMonth = $10; //激活后每月达标交易",
  2326. " $1.ActStartDate = $11; //活动开始时间",
  2327. " $1.ActEndDate = $12; //活动结束时间",
  2328. " $1.ActDeposit = $13; //激活押金",
  2329. " $1.ActFirst = $14; //激活首刷",
  2330. " $1.ActFirstDeposit = $15; //激活首刷押金",
  2331. " $1.ActPrize = $16; //激活奖励金额",
  2332. " $1.ActPosCount = $17; //激活赠机台数",
  2333. " $1.OpenStartDate = $18; //活动开始时间",
  2334. " $1.OpenEndDate = $19; //活动结束时间",
  2335. " $1.OpenStaDays = $20; //达标天数",
  2336. " $1.OpenStaTrade = $21; //达标交易",
  2337. " $1.OpenStaPrize = $22; //达标奖励1",
  2338. " $1.OpenStaPrize2 = $23; //达标奖励2",
  2339. " $1.CycleStartDate = $24; //活动开始时间",
  2340. " $1.CycleEndDate = $25; //活动结束时间",
  2341. " $1.CycleIsOther = $26; //是否允许划拨给他人",
  2342. " $1.CyclePosDays = $27; //领机天数",
  2343. " $1.PullNewStartDate = $28; //活动开始时间",
  2344. " $1.PullNewEndDate = $29; //活动结束时间",
  2345. " $1.PullNewExtendDays = $30; //延长领机天数",
  2346. " $1.BigTotalAmount = $31; //购买机起始价",
  2347. " $1.BigExtendCycleDays = $32; //延长循环周期天数",
  2348. " $1.SubsidyStartDate = $33; //活动开始时间",
  2349. " $1.SubsidyEndDate = $34; //活动结束时间",
  2350. " $1.FlowCardStartDate = $35; //活动开始时间",
  2351. " $1.FlowCardEndDate = $36; //活动结束时间",
  2352. " $1.FlowCardFreeDays = $37; //免收天数",
  2353. " $1.FlowCardFee = $38; //费用",
  2354. " $1.FeeOfDays = $39; //扣费频率(天)",
  2355. " $1.FlowCardDirectProfit = $40; //直属上级返佣",
  2356. " $1.HelpStartDate = $41; //活动开始时间",
  2357. " $1.HelpEndDate = $42; //活动结束时间",
  2358. " $1.HelpMonths = $43; //计算自然月",
  2359. " $1.HelpFee = $44; //扶植期费率",
  2360. " $1.HelpSteadyFee = $45; //稳定期费率",
  2361. " $1.FeeBindDays = $46; //绑定起天数",
  2362. " $1.FeeFixed = $47; //固定手续费",
  2363. " $1.FeeRate = $48; //费率",
  2364. "}"
  2365. ]
  2366. },
  2367. "获取产品规则配置数量": {
  2368. "prefix": "ym-db-KqProductRuleSet-FindAndCount",
  2369. "body": [
  2370. "int $1 = db.KqProductRuleSet.Count(m => $2);",
  2371. ]
  2372. },
  2373. "添加产品规则配置": {
  2374. "prefix": "ym-db-KqProductRuleSet-Create",
  2375. "body": [
  2376. "db.KqProductRuleSet.Add(new KqProductRuleSet()",
  2377. "{",
  2378. " CreateDate = DateTime.Now,",
  2379. " UpdateDate = DateTime.Now,",
  2380. " OrgId = $1, //机构",
  2381. " Deposit = $2, //押金",
  2382. " ActiveCount = $3, //活动政策台数",
  2383. " ActivePrice = $4, //活动政策价格",
  2384. " MerStaStartDate = $5, //活动开始时间",
  2385. " MerStaEndDate = $6, //活动结束时间",
  2386. " MerStaProfit = $7, //达标奖励",
  2387. " MerStaMonths = $8, //激活后达标月",
  2388. " MerStaTradeForMonth = $9, //激活后每月达标交易",
  2389. " ActStartDate = $10, //活动开始时间",
  2390. " ActEndDate = $11, //活动结束时间",
  2391. " ActDeposit = $12, //激活押金",
  2392. " ActFirst = $13, //激活首刷",
  2393. " ActFirstDeposit = $14, //激活首刷押金",
  2394. " ActPrize = $15, //激活奖励金额",
  2395. " ActPosCount = $16, //激活赠机台数",
  2396. " OpenStartDate = $17, //活动开始时间",
  2397. " OpenEndDate = $18, //活动结束时间",
  2398. " OpenStaDays = $19, //达标天数",
  2399. " OpenStaTrade = $20, //达标交易",
  2400. " OpenStaPrize = $21, //达标奖励1",
  2401. " OpenStaPrize2 = $22, //达标奖励2",
  2402. " CycleStartDate = $23, //活动开始时间",
  2403. " CycleEndDate = $24, //活动结束时间",
  2404. " CycleIsOther = $25, //是否允许划拨给他人",
  2405. " CyclePosDays = $26, //领机天数",
  2406. " PullNewStartDate = $27, //活动开始时间",
  2407. " PullNewEndDate = $28, //活动结束时间",
  2408. " PullNewExtendDays = $29, //延长领机天数",
  2409. " BigTotalAmount = $30, //购买机起始价",
  2410. " BigExtendCycleDays = $31, //延长循环周期天数",
  2411. " SubsidyStartDate = $32, //活动开始时间",
  2412. " SubsidyEndDate = $33, //活动结束时间",
  2413. " FlowCardStartDate = $34, //活动开始时间",
  2414. " FlowCardEndDate = $35, //活动结束时间",
  2415. " FlowCardFreeDays = $36, //免收天数",
  2416. " FlowCardFee = $37, //费用",
  2417. " FeeOfDays = $38, //扣费频率(天)",
  2418. " FlowCardDirectProfit = $39, //直属上级返佣",
  2419. " HelpStartDate = $40, //活动开始时间",
  2420. " HelpEndDate = $41, //活动结束时间",
  2421. " HelpMonths = $42, //计算自然月",
  2422. " HelpFee = $43, //扶植期费率",
  2423. " HelpSteadyFee = $44, //稳定期费率",
  2424. " FeeBindDays = $45, //绑定起天数",
  2425. " FeeFixed = $46, //固定手续费",
  2426. " FeeRate = $47, //费率",
  2427. "});"
  2428. ]
  2429. },"删除某个产品规则配置": {
  2430. "prefix": "ym-db-KqProductRuleSet-Delete",
  2431. "body": [
  2432. "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
  2433. "if ($1 != null)",
  2434. "{",
  2435. " db.KqProductRuleSet.Remove($1);",
  2436. "}"
  2437. ]
  2438. },
  2439. "查询产品库列表": {
  2440. "prefix": "ym-db-KqProducts-Find",
  2441. "body": [
  2442. "List<KqProducts> $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2443. "foreach (KqProducts $3 in $1)",
  2444. "{",
  2445. "}"
  2446. ]
  2447. },
  2448. "查询产品库列表,并取值": {
  2449. "prefix": "ym-db-KqProducts-FindWithData",
  2450. "body": [
  2451. "List<KqProducts> $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2452. "foreach (KqProducts $3 in $1)",
  2453. "{",
  2454. " string Name = $3.Name; //名称",
  2455. "}"
  2456. ]
  2457. },
  2458. "查询产品库": {
  2459. "prefix": "ym-db-KqProducts-Exist",
  2460. "body": [
  2461. "bool $1 = db.KqProducts.Any(m => m.Id == $2);",
  2462. ]
  2463. },
  2464. "查询某个产品库,并取值": {
  2465. "prefix": "ym-db-KqProducts-FindByPrimaryKey",
  2466. "body": [
  2467. "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
  2468. "if ($1 != null)",
  2469. "{",
  2470. " string Name = $1.Name; //名称",
  2471. "}"
  2472. ]
  2473. },
  2474. "查询某个产品库,并赋值": {
  2475. "prefix": "ym-db-KqProducts-Update",
  2476. "body": [
  2477. "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
  2478. "if ($1 != null)",
  2479. "{",
  2480. " $1.Name = $2; //名称",
  2481. "}"
  2482. ]
  2483. },
  2484. "获取产品库数量": {
  2485. "prefix": "ym-db-KqProducts-FindAndCount",
  2486. "body": [
  2487. "int $1 = db.KqProducts.Count(m => $2);",
  2488. ]
  2489. },
  2490. "添加产品库": {
  2491. "prefix": "ym-db-KqProducts-Create",
  2492. "body": [
  2493. "db.KqProducts.Add(new KqProducts()",
  2494. "{",
  2495. " CreateDate = DateTime.Now,",
  2496. " UpdateDate = DateTime.Now,",
  2497. " Name = $1, //名称",
  2498. "});"
  2499. ]
  2500. },"删除某个产品库": {
  2501. "prefix": "ym-db-KqProducts-Delete",
  2502. "body": [
  2503. "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
  2504. "if ($1 != null)",
  2505. "{",
  2506. " db.KqProducts.Remove($1);",
  2507. "}"
  2508. ]
  2509. },
  2510. "查询机具申请订单列表": {
  2511. "prefix": "ym-db-MachineApply-Find",
  2512. "body": [
  2513. "List<MachineApply> $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2514. "foreach (MachineApply $3 in $1)",
  2515. "{",
  2516. "}"
  2517. ]
  2518. },
  2519. "查询机具申请订单列表,并取值": {
  2520. "prefix": "ym-db-MachineApply-FindWithData",
  2521. "body": [
  2522. "List<MachineApply> $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2523. "foreach (MachineApply $3 in $1)",
  2524. "{",
  2525. " string ApplyNo = $3.ApplyNo; //申请单号",
  2526. " int UserId = $3.UserId; //创客",
  2527. " int BrandId = $3.BrandId; //品牌",
  2528. " string ProductName = $3.ProductName; //产品名称",
  2529. " string Areas = $3.Areas; //收货所在地区",
  2530. " string Address = $3.Address; //收货详细地址",
  2531. " string RealName = $3.RealName; //收件人姓名",
  2532. " string Mobile = $3.Mobile; //收件人手机号",
  2533. " string ApplyDeviceName = $3.ApplyDeviceName; //申请机具名称",
  2534. " int ApplyDeviceNum = $3.ApplyDeviceNum; //申请机具数量",
  2535. " DateTime ApplyTime = $3.ApplyTime; //申请时间",
  2536. " string AuditBy = $3.AuditBy; //审核人",
  2537. " DateTime AuditTime = $3.AuditTime; //审核时间",
  2538. " int AuditResult = $3.AuditResult; //审核结果",
  2539. " string AuditRemark = $3.AuditRemark; //审核备注",
  2540. " DateTime CompleteTime = $3.CompleteTime; //完成时间",
  2541. " int SendStatus = $3.SendStatus; //发货状态",
  2542. " string ReturnOrderNo = $3.ReturnOrderNo; //退货单号",
  2543. " int ReturnStatus = $3.ReturnStatus; //退货状态",
  2544. " string ExpressNo = $3.ExpressNo; //快递单号",
  2545. " string ExpressName = $3.ExpressName; //快递名称",
  2546. " int DeliveryType = $3.DeliveryType; //提货类型",
  2547. " int SwapActProType = $3.SwapActProType; //兑换实际产品类型",
  2548. " string SwapActProName = $3.SwapActProName; //兑换实际产品名称",
  2549. " string OrderExpand = $3.OrderExpand; //订单扩展信息",
  2550. " string SwapSnExpand = $3.SwapSnExpand; //兑换机器SN来源",
  2551. " int StoreId = $3.StoreId; //发货仓库",
  2552. " string StoreName = $3.StoreName; //发货仓库名称",
  2553. " string StoreAreas = $3.StoreAreas; //仓库所在地区",
  2554. " string StoreAddress = $3.StoreAddress; //仓库地址",
  2555. " string StoreManager = $3.StoreManager; //仓库联系人",
  2556. " string StoreManagerMobile = $3.StoreManagerMobile; //仓库联系人手机号",
  2557. " string Remark = $3.Remark; //订单备注",
  2558. " int StoreUserId = $3.StoreUserId; //仓库归属创客",
  2559. " int StoreType = $3.StoreType; //仓库类型",
  2560. " DateTime SendDate = $3.SendDate; //发货时间",
  2561. " int TopUserId = $3.TopUserId; //顶级创客",
  2562. " string SendSn = $3.SendSn; //发货SN",
  2563. "}"
  2564. ]
  2565. },
  2566. "查询机具申请订单": {
  2567. "prefix": "ym-db-MachineApply-Exist",
  2568. "body": [
  2569. "bool $1 = db.MachineApply.Any(m => m.Id == $2);",
  2570. ]
  2571. },
  2572. "查询某个机具申请订单,并取值": {
  2573. "prefix": "ym-db-MachineApply-FindByPrimaryKey",
  2574. "body": [
  2575. "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
  2576. "if ($1 != null)",
  2577. "{",
  2578. " string ApplyNo = $1.ApplyNo; //申请单号",
  2579. " int UserId = $1.UserId; //创客",
  2580. " int BrandId = $1.BrandId; //品牌",
  2581. " string ProductName = $1.ProductName; //产品名称",
  2582. " string Areas = $1.Areas; //收货所在地区",
  2583. " string Address = $1.Address; //收货详细地址",
  2584. " string RealName = $1.RealName; //收件人姓名",
  2585. " string Mobile = $1.Mobile; //收件人手机号",
  2586. " string ApplyDeviceName = $1.ApplyDeviceName; //申请机具名称",
  2587. " int ApplyDeviceNum = $1.ApplyDeviceNum; //申请机具数量",
  2588. " DateTime ApplyTime = $1.ApplyTime; //申请时间",
  2589. " string AuditBy = $1.AuditBy; //审核人",
  2590. " DateTime AuditTime = $1.AuditTime; //审核时间",
  2591. " int AuditResult = $1.AuditResult; //审核结果",
  2592. " string AuditRemark = $1.AuditRemark; //审核备注",
  2593. " DateTime CompleteTime = $1.CompleteTime; //完成时间",
  2594. " int SendStatus = $1.SendStatus; //发货状态",
  2595. " string ReturnOrderNo = $1.ReturnOrderNo; //退货单号",
  2596. " int ReturnStatus = $1.ReturnStatus; //退货状态",
  2597. " string ExpressNo = $1.ExpressNo; //快递单号",
  2598. " string ExpressName = $1.ExpressName; //快递名称",
  2599. " int DeliveryType = $1.DeliveryType; //提货类型",
  2600. " int SwapActProType = $1.SwapActProType; //兑换实际产品类型",
  2601. " string SwapActProName = $1.SwapActProName; //兑换实际产品名称",
  2602. " string OrderExpand = $1.OrderExpand; //订单扩展信息",
  2603. " string SwapSnExpand = $1.SwapSnExpand; //兑换机器SN来源",
  2604. " int StoreId = $1.StoreId; //发货仓库",
  2605. " string StoreName = $1.StoreName; //发货仓库名称",
  2606. " string StoreAreas = $1.StoreAreas; //仓库所在地区",
  2607. " string StoreAddress = $1.StoreAddress; //仓库地址",
  2608. " string StoreManager = $1.StoreManager; //仓库联系人",
  2609. " string StoreManagerMobile = $1.StoreManagerMobile; //仓库联系人手机号",
  2610. " string Remark = $1.Remark; //订单备注",
  2611. " int StoreUserId = $1.StoreUserId; //仓库归属创客",
  2612. " int StoreType = $1.StoreType; //仓库类型",
  2613. " DateTime SendDate = $1.SendDate; //发货时间",
  2614. " int TopUserId = $1.TopUserId; //顶级创客",
  2615. " string SendSn = $1.SendSn; //发货SN",
  2616. "}"
  2617. ]
  2618. },
  2619. "查询某个机具申请订单,并赋值": {
  2620. "prefix": "ym-db-MachineApply-Update",
  2621. "body": [
  2622. "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
  2623. "if ($1 != null)",
  2624. "{",
  2625. " $1.ApplyNo = $2; //申请单号",
  2626. " $1.UserId = $3; //创客",
  2627. " $1.BrandId = $4; //品牌",
  2628. " $1.ProductName = $5; //产品名称",
  2629. " $1.Areas = $6; //收货所在地区",
  2630. " $1.Address = $7; //收货详细地址",
  2631. " $1.RealName = $8; //收件人姓名",
  2632. " $1.Mobile = $9; //收件人手机号",
  2633. " $1.ApplyDeviceName = $10; //申请机具名称",
  2634. " $1.ApplyDeviceNum = $11; //申请机具数量",
  2635. " $1.ApplyTime = $12; //申请时间",
  2636. " $1.AuditBy = $13; //审核人",
  2637. " $1.AuditTime = $14; //审核时间",
  2638. " $1.AuditResult = $15; //审核结果",
  2639. " $1.AuditRemark = $16; //审核备注",
  2640. " $1.CompleteTime = $17; //完成时间",
  2641. " $1.SendStatus = $18; //发货状态",
  2642. " $1.ReturnOrderNo = $19; //退货单号",
  2643. " $1.ReturnStatus = $20; //退货状态",
  2644. " $1.ExpressNo = $21; //快递单号",
  2645. " $1.ExpressName = $22; //快递名称",
  2646. " $1.DeliveryType = $23; //提货类型",
  2647. " $1.SwapActProType = $24; //兑换实际产品类型",
  2648. " $1.SwapActProName = $25; //兑换实际产品名称",
  2649. " $1.OrderExpand = $26; //订单扩展信息",
  2650. " $1.SwapSnExpand = $27; //兑换机器SN来源",
  2651. " $1.StoreId = $28; //发货仓库",
  2652. " $1.StoreName = $29; //发货仓库名称",
  2653. " $1.StoreAreas = $30; //仓库所在地区",
  2654. " $1.StoreAddress = $31; //仓库地址",
  2655. " $1.StoreManager = $32; //仓库联系人",
  2656. " $1.StoreManagerMobile = $33; //仓库联系人手机号",
  2657. " $1.Remark = $34; //订单备注",
  2658. " $1.StoreUserId = $35; //仓库归属创客",
  2659. " $1.StoreType = $36; //仓库类型",
  2660. " $1.SendDate = $37; //发货时间",
  2661. " $1.TopUserId = $38; //顶级创客",
  2662. " $1.SendSn = $39; //发货SN",
  2663. "}"
  2664. ]
  2665. },
  2666. "获取机具申请订单数量": {
  2667. "prefix": "ym-db-MachineApply-FindAndCount",
  2668. "body": [
  2669. "int $1 = db.MachineApply.Count(m => $2);",
  2670. ]
  2671. },
  2672. "添加机具申请订单": {
  2673. "prefix": "ym-db-MachineApply-Create",
  2674. "body": [
  2675. "db.MachineApply.Add(new MachineApply()",
  2676. "{",
  2677. " CreateDate = DateTime.Now,",
  2678. " UpdateDate = DateTime.Now,",
  2679. " ApplyNo = $1, //申请单号",
  2680. " UserId = $2, //创客",
  2681. " BrandId = $3, //品牌",
  2682. " ProductName = $4, //产品名称",
  2683. " Areas = $5, //收货所在地区",
  2684. " Address = $6, //收货详细地址",
  2685. " RealName = $7, //收件人姓名",
  2686. " Mobile = $8, //收件人手机号",
  2687. " ApplyDeviceName = $9, //申请机具名称",
  2688. " ApplyDeviceNum = $10, //申请机具数量",
  2689. " ApplyTime = $11, //申请时间",
  2690. " AuditBy = $12, //审核人",
  2691. " AuditTime = $13, //审核时间",
  2692. " AuditResult = $14, //审核结果",
  2693. " AuditRemark = $15, //审核备注",
  2694. " CompleteTime = $16, //完成时间",
  2695. " SendStatus = $17, //发货状态",
  2696. " ReturnOrderNo = $18, //退货单号",
  2697. " ReturnStatus = $19, //退货状态",
  2698. " ExpressNo = $20, //快递单号",
  2699. " ExpressName = $21, //快递名称",
  2700. " DeliveryType = $22, //提货类型",
  2701. " SwapActProType = $23, //兑换实际产品类型",
  2702. " SwapActProName = $24, //兑换实际产品名称",
  2703. " OrderExpand = $25, //订单扩展信息",
  2704. " SwapSnExpand = $26, //兑换机器SN来源",
  2705. " StoreId = $27, //发货仓库",
  2706. " StoreName = $28, //发货仓库名称",
  2707. " StoreAreas = $29, //仓库所在地区",
  2708. " StoreAddress = $30, //仓库地址",
  2709. " StoreManager = $31, //仓库联系人",
  2710. " StoreManagerMobile = $32, //仓库联系人手机号",
  2711. " Remark = $33, //订单备注",
  2712. " StoreUserId = $34, //仓库归属创客",
  2713. " StoreType = $35, //仓库类型",
  2714. " SendDate = $36, //发货时间",
  2715. " TopUserId = $37, //顶级创客",
  2716. " SendSn = $38, //发货SN",
  2717. "});"
  2718. ]
  2719. },"删除某个机具申请订单": {
  2720. "prefix": "ym-db-MachineApply-Delete",
  2721. "body": [
  2722. "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
  2723. "if ($1 != null)",
  2724. "{",
  2725. " db.MachineApply.Remove($1);",
  2726. "}"
  2727. ]
  2728. },
  2729. "查询机具申请明细列表": {
  2730. "prefix": "ym-db-MachineApplyDetail-Find",
  2731. "body": [
  2732. "List<MachineApplyDetail> $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2733. "foreach (MachineApplyDetail $3 in $1)",
  2734. "{",
  2735. "}"
  2736. ]
  2737. },
  2738. "查询机具申请明细列表,并取值": {
  2739. "prefix": "ym-db-MachineApplyDetail-FindWithData",
  2740. "body": [
  2741. "List<MachineApplyDetail> $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2742. "foreach (MachineApplyDetail $3 in $1)",
  2743. "{",
  2744. " string ApplyNo = $3.ApplyNo; //订单号",
  2745. " int ApplyId = $3.ApplyId; //订单Id",
  2746. " int ProductType = $3.ProductType; //实际发货产品类型",
  2747. " string ProductName = $3.ProductName; //实际发货产品名称",
  2748. " int UserId = $3.UserId; //创客",
  2749. " string DeviceSnNo = $3.DeviceSnNo; //设备SN编号",
  2750. " int DeviceStatus = $3.DeviceStatus; //设备状态",
  2751. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  2752. " string DeviceModel = $3.DeviceModel; //设备型号",
  2753. " string DeviceDesc = $3.DeviceDesc; //设备描述",
  2754. " int UpSrcProType = $3.UpSrcProType; //上级源机具产品类型",
  2755. " string UpSrcProName = $3.UpSrcProName; //上级源机具产品名称",
  2756. " string SourceSnNo = $3.SourceSnNo; //兑换来源SN编码",
  2757. " int SourceSnType = $3.SourceSnType; //兑换来源SN机具类型",
  2758. " string Remark = $3.Remark; //备注",
  2759. "}"
  2760. ]
  2761. },
  2762. "查询机具申请明细": {
  2763. "prefix": "ym-db-MachineApplyDetail-Exist",
  2764. "body": [
  2765. "bool $1 = db.MachineApplyDetail.Any(m => m.Id == $2);",
  2766. ]
  2767. },
  2768. "查询某个机具申请明细,并取值": {
  2769. "prefix": "ym-db-MachineApplyDetail-FindByPrimaryKey",
  2770. "body": [
  2771. "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
  2772. "if ($1 != null)",
  2773. "{",
  2774. " string ApplyNo = $1.ApplyNo; //订单号",
  2775. " int ApplyId = $1.ApplyId; //订单Id",
  2776. " int ProductType = $1.ProductType; //实际发货产品类型",
  2777. " string ProductName = $1.ProductName; //实际发货产品名称",
  2778. " int UserId = $1.UserId; //创客",
  2779. " string DeviceSnNo = $1.DeviceSnNo; //设备SN编号",
  2780. " int DeviceStatus = $1.DeviceStatus; //设备状态",
  2781. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  2782. " string DeviceModel = $1.DeviceModel; //设备型号",
  2783. " string DeviceDesc = $1.DeviceDesc; //设备描述",
  2784. " int UpSrcProType = $1.UpSrcProType; //上级源机具产品类型",
  2785. " string UpSrcProName = $1.UpSrcProName; //上级源机具产品名称",
  2786. " string SourceSnNo = $1.SourceSnNo; //兑换来源SN编码",
  2787. " int SourceSnType = $1.SourceSnType; //兑换来源SN机具类型",
  2788. " string Remark = $1.Remark; //备注",
  2789. "}"
  2790. ]
  2791. },
  2792. "查询某个机具申请明细,并赋值": {
  2793. "prefix": "ym-db-MachineApplyDetail-Update",
  2794. "body": [
  2795. "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
  2796. "if ($1 != null)",
  2797. "{",
  2798. " $1.ApplyNo = $2; //订单号",
  2799. " $1.ApplyId = $3; //订单Id",
  2800. " $1.ProductType = $4; //实际发货产品类型",
  2801. " $1.ProductName = $5; //实际发货产品名称",
  2802. " $1.UserId = $6; //创客",
  2803. " $1.DeviceSnNo = $7; //设备SN编号",
  2804. " $1.DeviceStatus = $8; //设备状态",
  2805. " $1.DeviceVendor = $9; //设备厂商",
  2806. " $1.DeviceModel = $10; //设备型号",
  2807. " $1.DeviceDesc = $11; //设备描述",
  2808. " $1.UpSrcProType = $12; //上级源机具产品类型",
  2809. " $1.UpSrcProName = $13; //上级源机具产品名称",
  2810. " $1.SourceSnNo = $14; //兑换来源SN编码",
  2811. " $1.SourceSnType = $15; //兑换来源SN机具类型",
  2812. " $1.Remark = $16; //备注",
  2813. "}"
  2814. ]
  2815. },
  2816. "获取机具申请明细数量": {
  2817. "prefix": "ym-db-MachineApplyDetail-FindAndCount",
  2818. "body": [
  2819. "int $1 = db.MachineApplyDetail.Count(m => $2);",
  2820. ]
  2821. },
  2822. "添加机具申请明细": {
  2823. "prefix": "ym-db-MachineApplyDetail-Create",
  2824. "body": [
  2825. "db.MachineApplyDetail.Add(new MachineApplyDetail()",
  2826. "{",
  2827. " CreateDate = DateTime.Now,",
  2828. " UpdateDate = DateTime.Now,",
  2829. " ApplyNo = $1, //订单号",
  2830. " ApplyId = $2, //订单Id",
  2831. " ProductType = $3, //实际发货产品类型",
  2832. " ProductName = $4, //实际发货产品名称",
  2833. " UserId = $5, //创客",
  2834. " DeviceSnNo = $6, //设备SN编号",
  2835. " DeviceStatus = $7, //设备状态",
  2836. " DeviceVendor = $8, //设备厂商",
  2837. " DeviceModel = $9, //设备型号",
  2838. " DeviceDesc = $10, //设备描述",
  2839. " UpSrcProType = $11, //上级源机具产品类型",
  2840. " UpSrcProName = $12, //上级源机具产品名称",
  2841. " SourceSnNo = $13, //兑换来源SN编码",
  2842. " SourceSnType = $14, //兑换来源SN机具类型",
  2843. " Remark = $15, //备注",
  2844. "});"
  2845. ]
  2846. },"删除某个机具申请明细": {
  2847. "prefix": "ym-db-MachineApplyDetail-Delete",
  2848. "body": [
  2849. "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
  2850. "if ($1 != null)",
  2851. "{",
  2852. " db.MachineApplyDetail.Remove($1);",
  2853. "}"
  2854. ]
  2855. },
  2856. "查询机具转换订单列表": {
  2857. "prefix": "ym-db-MachineChange-Find",
  2858. "body": [
  2859. "List<MachineChange> $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2860. "foreach (MachineChange $3 in $1)",
  2861. "{",
  2862. "}"
  2863. ]
  2864. },
  2865. "查询机具转换订单列表,并取值": {
  2866. "prefix": "ym-db-MachineChange-FindWithData",
  2867. "body": [
  2868. "List<MachineChange> $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2869. "foreach (MachineChange $3 in $1)",
  2870. "{",
  2871. " string ChangeNo = $3.ChangeNo; //转换单号",
  2872. " int UserId = $3.UserId; //创客",
  2873. " int BackProductType = $3.BackProductType; //退回产品类型",
  2874. " string BackProductName = $3.BackProductName; //退回产品名称",
  2875. " string ChangeDeviceName = $3.ChangeDeviceName; //转换机具名称",
  2876. " int ChangeDeviceNum = $3.ChangeDeviceNum; //转换机具数量",
  2877. " DateTime ChangeTime = $3.ChangeTime; //转换时间",
  2878. " string AuditBy = $3.AuditBy; //审核人",
  2879. " DateTime AuditTime = $3.AuditTime; //审核时间",
  2880. " int AuditResult = $3.AuditResult; //审核结果",
  2881. " string AuditRemark = $3.AuditRemark; //审核备注",
  2882. " DateTime CompleteTime = $3.CompleteTime; //完成时间",
  2883. " string OrderExpand = $3.OrderExpand; //订单扩展信息",
  2884. " string ChangeSnExpand = $3.ChangeSnExpand; //转换机器SN来源",
  2885. " int BackStoreId = $3.BackStoreId; //退回仓库",
  2886. " string BackStoreName = $3.BackStoreName; //退回仓库名称",
  2887. " string Remark = $3.Remark; //订单备注",
  2888. " int BackStoreUserId = $3.BackStoreUserId; //退回仓库归属人",
  2889. " int OutProductType = $3.OutProductType; //出库产品类型",
  2890. " string OutProductName = $3.OutProductName; //出库产品名称",
  2891. " int OutStoreId = $3.OutStoreId; //出库仓库",
  2892. " string OutStoreName = $3.OutStoreName; //出库仓库名称",
  2893. " string OutStoreAreas = $3.OutStoreAreas; //出库仓库所在地区",
  2894. " string OutStoreAddress = $3.OutStoreAddress ; //出库仓库地址",
  2895. " string OutStoreManager = $3.OutStoreManager; //出库仓库联系人",
  2896. " string OutStoreManagerMobile = $3.OutStoreManagerMobile; //出库仓库联系人手机号",
  2897. "}"
  2898. ]
  2899. },
  2900. "查询机具转换订单": {
  2901. "prefix": "ym-db-MachineChange-Exist",
  2902. "body": [
  2903. "bool $1 = db.MachineChange.Any(m => m.Id == $2);",
  2904. ]
  2905. },
  2906. "查询某个机具转换订单,并取值": {
  2907. "prefix": "ym-db-MachineChange-FindByPrimaryKey",
  2908. "body": [
  2909. "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
  2910. "if ($1 != null)",
  2911. "{",
  2912. " string ChangeNo = $1.ChangeNo; //转换单号",
  2913. " int UserId = $1.UserId; //创客",
  2914. " int BackProductType = $1.BackProductType; //退回产品类型",
  2915. " string BackProductName = $1.BackProductName; //退回产品名称",
  2916. " string ChangeDeviceName = $1.ChangeDeviceName; //转换机具名称",
  2917. " int ChangeDeviceNum = $1.ChangeDeviceNum; //转换机具数量",
  2918. " DateTime ChangeTime = $1.ChangeTime; //转换时间",
  2919. " string AuditBy = $1.AuditBy; //审核人",
  2920. " DateTime AuditTime = $1.AuditTime; //审核时间",
  2921. " int AuditResult = $1.AuditResult; //审核结果",
  2922. " string AuditRemark = $1.AuditRemark; //审核备注",
  2923. " DateTime CompleteTime = $1.CompleteTime; //完成时间",
  2924. " string OrderExpand = $1.OrderExpand; //订单扩展信息",
  2925. " string ChangeSnExpand = $1.ChangeSnExpand; //转换机器SN来源",
  2926. " int BackStoreId = $1.BackStoreId; //退回仓库",
  2927. " string BackStoreName = $1.BackStoreName; //退回仓库名称",
  2928. " string Remark = $1.Remark; //订单备注",
  2929. " int BackStoreUserId = $1.BackStoreUserId; //退回仓库归属人",
  2930. " int OutProductType = $1.OutProductType; //出库产品类型",
  2931. " string OutProductName = $1.OutProductName; //出库产品名称",
  2932. " int OutStoreId = $1.OutStoreId; //出库仓库",
  2933. " string OutStoreName = $1.OutStoreName; //出库仓库名称",
  2934. " string OutStoreAreas = $1.OutStoreAreas; //出库仓库所在地区",
  2935. " string OutStoreAddress = $1.OutStoreAddress ; //出库仓库地址",
  2936. " string OutStoreManager = $1.OutStoreManager; //出库仓库联系人",
  2937. " string OutStoreManagerMobile = $1.OutStoreManagerMobile; //出库仓库联系人手机号",
  2938. "}"
  2939. ]
  2940. },
  2941. "查询某个机具转换订单,并赋值": {
  2942. "prefix": "ym-db-MachineChange-Update",
  2943. "body": [
  2944. "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
  2945. "if ($1 != null)",
  2946. "{",
  2947. " $1.ChangeNo = $2; //转换单号",
  2948. " $1.UserId = $3; //创客",
  2949. " $1.BackProductType = $4; //退回产品类型",
  2950. " $1.BackProductName = $5; //退回产品名称",
  2951. " $1.ChangeDeviceName = $6; //转换机具名称",
  2952. " $1.ChangeDeviceNum = $7; //转换机具数量",
  2953. " $1.ChangeTime = $8; //转换时间",
  2954. " $1.AuditBy = $9; //审核人",
  2955. " $1.AuditTime = $10; //审核时间",
  2956. " $1.AuditResult = $11; //审核结果",
  2957. " $1.AuditRemark = $12; //审核备注",
  2958. " $1.CompleteTime = $13; //完成时间",
  2959. " $1.OrderExpand = $14; //订单扩展信息",
  2960. " $1.ChangeSnExpand = $15; //转换机器SN来源",
  2961. " $1.BackStoreId = $16; //退回仓库",
  2962. " $1.BackStoreName = $17; //退回仓库名称",
  2963. " $1.Remark = $18; //订单备注",
  2964. " $1.BackStoreUserId = $19; //退回仓库归属人",
  2965. " $1.OutProductType = $20; //出库产品类型",
  2966. " $1.OutProductName = $21; //出库产品名称",
  2967. " $1.OutStoreId = $22; //出库仓库",
  2968. " $1.OutStoreName = $23; //出库仓库名称",
  2969. " $1.OutStoreAreas = $24; //出库仓库所在地区",
  2970. " $1.OutStoreAddress = $25; //出库仓库地址",
  2971. " $1.OutStoreManager = $26; //出库仓库联系人",
  2972. " $1.OutStoreManagerMobile = $27; //出库仓库联系人手机号",
  2973. "}"
  2974. ]
  2975. },
  2976. "获取机具转换订单数量": {
  2977. "prefix": "ym-db-MachineChange-FindAndCount",
  2978. "body": [
  2979. "int $1 = db.MachineChange.Count(m => $2);",
  2980. ]
  2981. },
  2982. "添加机具转换订单": {
  2983. "prefix": "ym-db-MachineChange-Create",
  2984. "body": [
  2985. "db.MachineChange.Add(new MachineChange()",
  2986. "{",
  2987. " CreateDate = DateTime.Now,",
  2988. " UpdateDate = DateTime.Now,",
  2989. " ChangeNo = $1, //转换单号",
  2990. " UserId = $2, //创客",
  2991. " BackProductType = $3, //退回产品类型",
  2992. " BackProductName = $4, //退回产品名称",
  2993. " ChangeDeviceName = $5, //转换机具名称",
  2994. " ChangeDeviceNum = $6, //转换机具数量",
  2995. " ChangeTime = $7, //转换时间",
  2996. " AuditBy = $8, //审核人",
  2997. " AuditTime = $9, //审核时间",
  2998. " AuditResult = $10, //审核结果",
  2999. " AuditRemark = $11, //审核备注",
  3000. " CompleteTime = $12, //完成时间",
  3001. " OrderExpand = $13, //订单扩展信息",
  3002. " ChangeSnExpand = $14, //转换机器SN来源",
  3003. " BackStoreId = $15, //退回仓库",
  3004. " BackStoreName = $16, //退回仓库名称",
  3005. " Remark = $17, //订单备注",
  3006. " BackStoreUserId = $18, //退回仓库归属人",
  3007. " OutProductType = $19, //出库产品类型",
  3008. " OutProductName = $20, //出库产品名称",
  3009. " OutStoreId = $21, //出库仓库",
  3010. " OutStoreName = $22, //出库仓库名称",
  3011. " OutStoreAreas = $23, //出库仓库所在地区",
  3012. " OutStoreAddress = $24, //出库仓库地址",
  3013. " OutStoreManager = $25, //出库仓库联系人",
  3014. " OutStoreManagerMobile = $26, //出库仓库联系人手机号",
  3015. "});"
  3016. ]
  3017. },"删除某个机具转换订单": {
  3018. "prefix": "ym-db-MachineChange-Delete",
  3019. "body": [
  3020. "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
  3021. "if ($1 != null)",
  3022. "{",
  3023. " db.MachineChange.Remove($1);",
  3024. "}"
  3025. ]
  3026. },
  3027. "查询机具转换明细列表": {
  3028. "prefix": "ym-db-MachineChangeDetail-Find",
  3029. "body": [
  3030. "List<MachineChangeDetail> $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3031. "foreach (MachineChangeDetail $3 in $1)",
  3032. "{",
  3033. "}"
  3034. ]
  3035. },
  3036. "查询机具转换明细列表,并取值": {
  3037. "prefix": "ym-db-MachineChangeDetail-FindWithData",
  3038. "body": [
  3039. "List<MachineChangeDetail> $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3040. "foreach (MachineChangeDetail $3 in $1)",
  3041. "{",
  3042. " string ChangeNo = $3.ChangeNo; //订单号",
  3043. " int ChangeId = $3.ChangeId; //订单Id",
  3044. " int BackProductType = $3.BackProductType; //退回产品类型",
  3045. " string BackProductName = $3.BackProductName; //退回产品名称",
  3046. " int UserId = $3.UserId; //创客",
  3047. " string BackSnNo = $3.BackSnNo; //设备SN编号",
  3048. " int BackDeviceStatus = $3.BackDeviceStatus; //设备状态",
  3049. " int OutProductType = $3.OutProductType ; //出库产品类型",
  3050. " string OutProductName = $3.OutProductName; //出库产品名称",
  3051. " string OutSnNo = $3.OutSnNo; //出库设备SN编号",
  3052. " int OutSnType = $3.OutSnType; //出库SN机具类型",
  3053. " string Remark = $3.Remark; //备注",
  3054. " int BackSnType = $3.BackSnType; //退回SN机具类型",
  3055. "}"
  3056. ]
  3057. },
  3058. "查询机具转换明细": {
  3059. "prefix": "ym-db-MachineChangeDetail-Exist",
  3060. "body": [
  3061. "bool $1 = db.MachineChangeDetail.Any(m => m.Id == $2);",
  3062. ]
  3063. },
  3064. "查询某个机具转换明细,并取值": {
  3065. "prefix": "ym-db-MachineChangeDetail-FindByPrimaryKey",
  3066. "body": [
  3067. "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
  3068. "if ($1 != null)",
  3069. "{",
  3070. " string ChangeNo = $1.ChangeNo; //订单号",
  3071. " int ChangeId = $1.ChangeId; //订单Id",
  3072. " int BackProductType = $1.BackProductType; //退回产品类型",
  3073. " string BackProductName = $1.BackProductName; //退回产品名称",
  3074. " int UserId = $1.UserId; //创客",
  3075. " string BackSnNo = $1.BackSnNo; //设备SN编号",
  3076. " int BackDeviceStatus = $1.BackDeviceStatus; //设备状态",
  3077. " int OutProductType = $1.OutProductType ; //出库产品类型",
  3078. " string OutProductName = $1.OutProductName; //出库产品名称",
  3079. " string OutSnNo = $1.OutSnNo; //出库设备SN编号",
  3080. " int OutSnType = $1.OutSnType; //出库SN机具类型",
  3081. " string Remark = $1.Remark; //备注",
  3082. " int BackSnType = $1.BackSnType; //退回SN机具类型",
  3083. "}"
  3084. ]
  3085. },
  3086. "查询某个机具转换明细,并赋值": {
  3087. "prefix": "ym-db-MachineChangeDetail-Update",
  3088. "body": [
  3089. "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
  3090. "if ($1 != null)",
  3091. "{",
  3092. " $1.ChangeNo = $2; //订单号",
  3093. " $1.ChangeId = $3; //订单Id",
  3094. " $1.BackProductType = $4; //退回产品类型",
  3095. " $1.BackProductName = $5; //退回产品名称",
  3096. " $1.UserId = $6; //创客",
  3097. " $1.BackSnNo = $7; //设备SN编号",
  3098. " $1.BackDeviceStatus = $8; //设备状态",
  3099. " $1.OutProductType = $9; //出库产品类型",
  3100. " $1.OutProductName = $10; //出库产品名称",
  3101. " $1.OutSnNo = $11; //出库设备SN编号",
  3102. " $1.OutSnType = $12; //出库SN机具类型",
  3103. " $1.Remark = $13; //备注",
  3104. " $1.BackSnType = $14; //退回SN机具类型",
  3105. "}"
  3106. ]
  3107. },
  3108. "获取机具转换明细数量": {
  3109. "prefix": "ym-db-MachineChangeDetail-FindAndCount",
  3110. "body": [
  3111. "int $1 = db.MachineChangeDetail.Count(m => $2);",
  3112. ]
  3113. },
  3114. "添加机具转换明细": {
  3115. "prefix": "ym-db-MachineChangeDetail-Create",
  3116. "body": [
  3117. "db.MachineChangeDetail.Add(new MachineChangeDetail()",
  3118. "{",
  3119. " CreateDate = DateTime.Now,",
  3120. " UpdateDate = DateTime.Now,",
  3121. " ChangeNo = $1, //订单号",
  3122. " ChangeId = $2, //订单Id",
  3123. " BackProductType = $3, //退回产品类型",
  3124. " BackProductName = $4, //退回产品名称",
  3125. " UserId = $5, //创客",
  3126. " BackSnNo = $6, //设备SN编号",
  3127. " BackDeviceStatus = $7, //设备状态",
  3128. " OutProductType = $8, //出库产品类型",
  3129. " OutProductName = $9, //出库产品名称",
  3130. " OutSnNo = $10, //出库设备SN编号",
  3131. " OutSnType = $11, //出库SN机具类型",
  3132. " Remark = $12, //备注",
  3133. " BackSnType = $13, //退回SN机具类型",
  3134. "});"
  3135. ]
  3136. },"删除某个机具转换明细": {
  3137. "prefix": "ym-db-MachineChangeDetail-Delete",
  3138. "body": [
  3139. "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
  3140. "if ($1 != null)",
  3141. "{",
  3142. " db.MachineChangeDetail.Remove($1);",
  3143. "}"
  3144. ]
  3145. },
  3146. "查询机具损坏换新申请列表": {
  3147. "prefix": "ym-db-MachineRenew-Find",
  3148. "body": [
  3149. "List<MachineRenew> $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3150. "foreach (MachineRenew $3 in $1)",
  3151. "{",
  3152. "}"
  3153. ]
  3154. },
  3155. "查询机具损坏换新申请列表,并取值": {
  3156. "prefix": "ym-db-MachineRenew-FindWithData",
  3157. "body": [
  3158. "List<MachineRenew> $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3159. "foreach (MachineRenew $3 in $1)",
  3160. "{",
  3161. " string ApplyNo = $3.ApplyNo; //机具售后换新申请订单号",
  3162. " string ApplyDate = $3.ApplyDate; //机具售后换新申请时间",
  3163. " int UserId = $3.UserId; //创客",
  3164. " int DamagedBrandId = $3.DamagedBrandId; //损坏的机具产品类型",
  3165. " string DamagedSnNo = $3.DamagedSnNo; //创客损坏的机具SN",
  3166. " int DamagedSnType = $3.DamagedSnType; //损坏的机具SN机具类型",
  3167. " int ReplaceBrandId = $3.ReplaceBrandId; //替换的机具产品类型",
  3168. " string ReplaceSnNo = $3.ReplaceSnNo; //创客机具替换SN",
  3169. " int ReplaceSnType = $3.ReplaceSnType; //替换的机具SN机具类型",
  3170. " int DeliverBrandId = $3.DeliverBrandId; //仓库换新发货的机具产品类型",
  3171. " string DeliverSnNo = $3.DeliverSnNo; //仓库换新发货SN",
  3172. " string DemandDesc = $3.DemandDesc; //售后换新机具处理需求描述",
  3173. " int audit_status = $3.audit_status; //审核状态",
  3174. " string AuditDesc = $3.AuditDesc; //创客机具售后换新审核描述",
  3175. " DateTime AuditDate = $3.AuditDate; //审核时间",
  3176. "}"
  3177. ]
  3178. },
  3179. "查询机具损坏换新申请": {
  3180. "prefix": "ym-db-MachineRenew-Exist",
  3181. "body": [
  3182. "bool $1 = db.MachineRenew.Any(m => m.Id == $2);",
  3183. ]
  3184. },
  3185. "查询某个机具损坏换新申请,并取值": {
  3186. "prefix": "ym-db-MachineRenew-FindByPrimaryKey",
  3187. "body": [
  3188. "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
  3189. "if ($1 != null)",
  3190. "{",
  3191. " string ApplyNo = $1.ApplyNo; //机具售后换新申请订单号",
  3192. " string ApplyDate = $1.ApplyDate; //机具售后换新申请时间",
  3193. " int UserId = $1.UserId; //创客",
  3194. " int DamagedBrandId = $1.DamagedBrandId; //损坏的机具产品类型",
  3195. " string DamagedSnNo = $1.DamagedSnNo; //创客损坏的机具SN",
  3196. " int DamagedSnType = $1.DamagedSnType; //损坏的机具SN机具类型",
  3197. " int ReplaceBrandId = $1.ReplaceBrandId; //替换的机具产品类型",
  3198. " string ReplaceSnNo = $1.ReplaceSnNo; //创客机具替换SN",
  3199. " int ReplaceSnType = $1.ReplaceSnType; //替换的机具SN机具类型",
  3200. " int DeliverBrandId = $1.DeliverBrandId; //仓库换新发货的机具产品类型",
  3201. " string DeliverSnNo = $1.DeliverSnNo; //仓库换新发货SN",
  3202. " string DemandDesc = $1.DemandDesc; //售后换新机具处理需求描述",
  3203. " int audit_status = $1.audit_status; //审核状态",
  3204. " string AuditDesc = $1.AuditDesc; //创客机具售后换新审核描述",
  3205. " DateTime AuditDate = $1.AuditDate; //审核时间",
  3206. "}"
  3207. ]
  3208. },
  3209. "查询某个机具损坏换新申请,并赋值": {
  3210. "prefix": "ym-db-MachineRenew-Update",
  3211. "body": [
  3212. "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
  3213. "if ($1 != null)",
  3214. "{",
  3215. " $1.ApplyNo = $2; //机具售后换新申请订单号",
  3216. " $1.ApplyDate = $3; //机具售后换新申请时间",
  3217. " $1.UserId = $4; //创客",
  3218. " $1.DamagedBrandId = $5; //损坏的机具产品类型",
  3219. " $1.DamagedSnNo = $6; //创客损坏的机具SN",
  3220. " $1.DamagedSnType = $7; //损坏的机具SN机具类型",
  3221. " $1.ReplaceBrandId = $8; //替换的机具产品类型",
  3222. " $1.ReplaceSnNo = $9; //创客机具替换SN",
  3223. " $1.ReplaceSnType = $10; //替换的机具SN机具类型",
  3224. " $1.DeliverBrandId = $11; //仓库换新发货的机具产品类型",
  3225. " $1.DeliverSnNo = $12; //仓库换新发货SN",
  3226. " $1.DemandDesc = $13; //售后换新机具处理需求描述",
  3227. " $1.audit_status = $14; //审核状态",
  3228. " $1.AuditDesc = $15; //创客机具售后换新审核描述",
  3229. " $1.AuditDate = $16; //审核时间",
  3230. "}"
  3231. ]
  3232. },
  3233. "获取机具损坏换新申请数量": {
  3234. "prefix": "ym-db-MachineRenew-FindAndCount",
  3235. "body": [
  3236. "int $1 = db.MachineRenew.Count(m => $2);",
  3237. ]
  3238. },
  3239. "添加机具损坏换新申请": {
  3240. "prefix": "ym-db-MachineRenew-Create",
  3241. "body": [
  3242. "db.MachineRenew.Add(new MachineRenew()",
  3243. "{",
  3244. " CreateDate = DateTime.Now,",
  3245. " UpdateDate = DateTime.Now,",
  3246. " ApplyNo = $1, //机具售后换新申请订单号",
  3247. " ApplyDate = $2, //机具售后换新申请时间",
  3248. " UserId = $3, //创客",
  3249. " DamagedBrandId = $4, //损坏的机具产品类型",
  3250. " DamagedSnNo = $5, //创客损坏的机具SN",
  3251. " DamagedSnType = $6, //损坏的机具SN机具类型",
  3252. " ReplaceBrandId = $7, //替换的机具产品类型",
  3253. " ReplaceSnNo = $8, //创客机具替换SN",
  3254. " ReplaceSnType = $9, //替换的机具SN机具类型",
  3255. " DeliverBrandId = $10, //仓库换新发货的机具产品类型",
  3256. " DeliverSnNo = $11, //仓库换新发货SN",
  3257. " DemandDesc = $12, //售后换新机具处理需求描述",
  3258. " audit_status = $13, //审核状态",
  3259. " AuditDesc = $14, //创客机具售后换新审核描述",
  3260. " AuditDate = $15, //审核时间",
  3261. "});"
  3262. ]
  3263. },"删除某个机具损坏换新申请": {
  3264. "prefix": "ym-db-MachineRenew-Delete",
  3265. "body": [
  3266. "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
  3267. "if ($1 != null)",
  3268. "{",
  3269. " db.MachineRenew.Remove($1);",
  3270. "}"
  3271. ]
  3272. },
  3273. "查询机具退货申请订单列表": {
  3274. "prefix": "ym-db-MachineReturn-Find",
  3275. "body": [
  3276. "List<MachineReturn> $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3277. "foreach (MachineReturn $3 in $1)",
  3278. "{",
  3279. "}"
  3280. ]
  3281. },
  3282. "查询机具退货申请订单列表,并取值": {
  3283. "prefix": "ym-db-MachineReturn-FindWithData",
  3284. "body": [
  3285. "List<MachineReturn> $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3286. "foreach (MachineReturn $3 in $1)",
  3287. "{",
  3288. " string ApplyNo = $3.ApplyNo; //申请单号",
  3289. " int UserId = $3.UserId; //创客",
  3290. " int BrandId = $3.BrandId; //品牌",
  3291. " int DeviceNum = $3.DeviceNum; //申请退货数量",
  3292. " string DeviceSnNos = $3.DeviceSnNos; //退货机具编号",
  3293. " int ToStoreId = $3.ToStoreId; //退回仓库",
  3294. " string DeviceDesc = $3.DeviceDesc; //设备描述",
  3295. " int AuditStatus = $3.AuditStatus; //审核状态",
  3296. " string Operator = $3.Operator; //操作人",
  3297. " string Remark = $3.Remark; //退货备注",
  3298. "}"
  3299. ]
  3300. },
  3301. "查询机具退货申请订单": {
  3302. "prefix": "ym-db-MachineReturn-Exist",
  3303. "body": [
  3304. "bool $1 = db.MachineReturn.Any(m => m.Id == $2);",
  3305. ]
  3306. },
  3307. "查询某个机具退货申请订单,并取值": {
  3308. "prefix": "ym-db-MachineReturn-FindByPrimaryKey",
  3309. "body": [
  3310. "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
  3311. "if ($1 != null)",
  3312. "{",
  3313. " string ApplyNo = $1.ApplyNo; //申请单号",
  3314. " int UserId = $1.UserId; //创客",
  3315. " int BrandId = $1.BrandId; //品牌",
  3316. " int DeviceNum = $1.DeviceNum; //申请退货数量",
  3317. " string DeviceSnNos = $1.DeviceSnNos; //退货机具编号",
  3318. " int ToStoreId = $1.ToStoreId; //退回仓库",
  3319. " string DeviceDesc = $1.DeviceDesc; //设备描述",
  3320. " int AuditStatus = $1.AuditStatus; //审核状态",
  3321. " string Operator = $1.Operator; //操作人",
  3322. " string Remark = $1.Remark; //退货备注",
  3323. "}"
  3324. ]
  3325. },
  3326. "查询某个机具退货申请订单,并赋值": {
  3327. "prefix": "ym-db-MachineReturn-Update",
  3328. "body": [
  3329. "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
  3330. "if ($1 != null)",
  3331. "{",
  3332. " $1.ApplyNo = $2; //申请单号",
  3333. " $1.UserId = $3; //创客",
  3334. " $1.BrandId = $4; //品牌",
  3335. " $1.DeviceNum = $5; //申请退货数量",
  3336. " $1.DeviceSnNos = $6; //退货机具编号",
  3337. " $1.ToStoreId = $7; //退回仓库",
  3338. " $1.DeviceDesc = $8; //设备描述",
  3339. " $1.AuditStatus = $9; //审核状态",
  3340. " $1.Operator = $10; //操作人",
  3341. " $1.Remark = $11; //退货备注",
  3342. "}"
  3343. ]
  3344. },
  3345. "获取机具退货申请订单数量": {
  3346. "prefix": "ym-db-MachineReturn-FindAndCount",
  3347. "body": [
  3348. "int $1 = db.MachineReturn.Count(m => $2);",
  3349. ]
  3350. },
  3351. "添加机具退货申请订单": {
  3352. "prefix": "ym-db-MachineReturn-Create",
  3353. "body": [
  3354. "db.MachineReturn.Add(new MachineReturn()",
  3355. "{",
  3356. " CreateDate = DateTime.Now,",
  3357. " UpdateDate = DateTime.Now,",
  3358. " ApplyNo = $1, //申请单号",
  3359. " UserId = $2, //创客",
  3360. " BrandId = $3, //品牌",
  3361. " DeviceNum = $4, //申请退货数量",
  3362. " DeviceSnNos = $5, //退货机具编号",
  3363. " ToStoreId = $6, //退回仓库",
  3364. " DeviceDesc = $7, //设备描述",
  3365. " AuditStatus = $8, //审核状态",
  3366. " Operator = $9, //操作人",
  3367. " Remark = $10, //退货备注",
  3368. "});"
  3369. ]
  3370. },"删除某个机具退货申请订单": {
  3371. "prefix": "ym-db-MachineReturn-Delete",
  3372. "body": [
  3373. "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
  3374. "if ($1 != null)",
  3375. "{",
  3376. " db.MachineReturn.Remove($1);",
  3377. "}"
  3378. ]
  3379. },
  3380. "查询商家管理员列表": {
  3381. "prefix": "ym-db-MerchantAdmin-Find",
  3382. "body": [
  3383. "List<MerchantAdmin> $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3384. "foreach (MerchantAdmin $3 in $1)",
  3385. "{",
  3386. "}"
  3387. ]
  3388. },
  3389. "查询商家管理员列表,并取值": {
  3390. "prefix": "ym-db-MerchantAdmin-FindWithData",
  3391. "body": [
  3392. "List<MerchantAdmin> $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3393. "foreach (MerchantAdmin $3 in $1)",
  3394. "{",
  3395. " string AdminName = $3.AdminName; //用户名",
  3396. " string Password = $3.Password; //密码",
  3397. " string RealName = $3.RealName; //名称",
  3398. " string RightInfo = $3.RightInfo; //权限",
  3399. " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间",
  3400. " string Mobile = $3.Mobile; //手机号",
  3401. " string Email = $3.Email; //邮箱",
  3402. " string QQ = $3.QQ; //QQ号",
  3403. " string Note = $3.Note; //备注",
  3404. " int MerchantId = $3.MerchantId; //商家Id",
  3405. "}"
  3406. ]
  3407. },
  3408. "查询商家管理员": {
  3409. "prefix": "ym-db-MerchantAdmin-Exist",
  3410. "body": [
  3411. "bool $1 = db.MerchantAdmin.Any(m => m.Id == $2);",
  3412. ]
  3413. },
  3414. "查询某个商家管理员,并取值": {
  3415. "prefix": "ym-db-MerchantAdmin-FindByPrimaryKey",
  3416. "body": [
  3417. "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
  3418. "if ($1 != null)",
  3419. "{",
  3420. " string AdminName = $1.AdminName; //用户名",
  3421. " string Password = $1.Password; //密码",
  3422. " string RealName = $1.RealName; //名称",
  3423. " string RightInfo = $1.RightInfo; //权限",
  3424. " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间",
  3425. " string Mobile = $1.Mobile; //手机号",
  3426. " string Email = $1.Email; //邮箱",
  3427. " string QQ = $1.QQ; //QQ号",
  3428. " string Note = $1.Note; //备注",
  3429. " int MerchantId = $1.MerchantId; //商家Id",
  3430. "}"
  3431. ]
  3432. },
  3433. "查询某个商家管理员,并赋值": {
  3434. "prefix": "ym-db-MerchantAdmin-Update",
  3435. "body": [
  3436. "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
  3437. "if ($1 != null)",
  3438. "{",
  3439. " $1.AdminName = $2; //用户名",
  3440. " $1.Password = $3; //密码",
  3441. " $1.RealName = $4; //名称",
  3442. " $1.RightInfo = $5; //权限",
  3443. " $1.LastLoginDate = $6; //最后登录时间",
  3444. " $1.Mobile = $7; //手机号",
  3445. " $1.Email = $8; //邮箱",
  3446. " $1.QQ = $9; //QQ号",
  3447. " $1.Note = $10; //备注",
  3448. " $1.MerchantId = $11; //商家Id",
  3449. "}"
  3450. ]
  3451. },
  3452. "获取商家管理员数量": {
  3453. "prefix": "ym-db-MerchantAdmin-FindAndCount",
  3454. "body": [
  3455. "int $1 = db.MerchantAdmin.Count(m => $2);",
  3456. ]
  3457. },
  3458. "添加商家管理员": {
  3459. "prefix": "ym-db-MerchantAdmin-Create",
  3460. "body": [
  3461. "db.MerchantAdmin.Add(new MerchantAdmin()",
  3462. "{",
  3463. " CreateDate = DateTime.Now,",
  3464. " UpdateDate = DateTime.Now,",
  3465. " AdminName = $1, //用户名",
  3466. " Password = $2, //密码",
  3467. " RealName = $3, //名称",
  3468. " RightInfo = $4, //权限",
  3469. " LastLoginDate = $5, //最后登录时间",
  3470. " Mobile = $6, //手机号",
  3471. " Email = $7, //邮箱",
  3472. " QQ = $8, //QQ号",
  3473. " Note = $9, //备注",
  3474. " MerchantId = $10, //商家Id",
  3475. "});"
  3476. ]
  3477. },"删除某个商家管理员": {
  3478. "prefix": "ym-db-MerchantAdmin-Delete",
  3479. "body": [
  3480. "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
  3481. "if ($1 != null)",
  3482. "{",
  3483. " db.MerchantAdmin.Remove($1);",
  3484. "}"
  3485. ]
  3486. },
  3487. "查询商户实名信息列表": {
  3488. "prefix": "ym-db-MerchantAuth-Find",
  3489. "body": [
  3490. "List<MerchantAuth> $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3491. "foreach (MerchantAuth $3 in $1)",
  3492. "{",
  3493. "}"
  3494. ]
  3495. },
  3496. "查询商户实名信息列表,并取值": {
  3497. "prefix": "ym-db-MerchantAuth-FindWithData",
  3498. "body": [
  3499. "List<MerchantAuth> $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3500. "foreach (MerchantAuth $3 in $1)",
  3501. "{",
  3502. " string ChannelCode = $3.ChannelCode; //渠道编码",
  3503. " string ChannelName = $3.ChannelName; //渠道名称 ",
  3504. " string MerNo = $3.MerNo; //商户编号",
  3505. " string RealName = $3.RealName; //真实姓名",
  3506. " string IdCardNo = $3.IdCardNo; //身份证号",
  3507. " string BankCardAccount = $3.BankCardAccount; //银行卡账号",
  3508. " string BankName = $3.BankName; //银行名称",
  3509. " string BankMobile = $3.BankMobile; //银行预留手机号码",
  3510. " string ReqData = $3.ReqData; //渠道请求报文",
  3511. " string RespData = $3.RespData; //渠道响应报文",
  3512. " string ReturnCode = $3.ReturnCode; //渠道返回编码",
  3513. " string ReturnMsg = $3.ReturnMsg; //渠道返回信息",
  3514. " int AuthType = $3.AuthType; //实名类型",
  3515. " int MerchantId = $3.MerchantId; //商户",
  3516. "}"
  3517. ]
  3518. },
  3519. "查询商户实名信息": {
  3520. "prefix": "ym-db-MerchantAuth-Exist",
  3521. "body": [
  3522. "bool $1 = db.MerchantAuth.Any(m => m.Id == $2);",
  3523. ]
  3524. },
  3525. "查询某个商户实名信息,并取值": {
  3526. "prefix": "ym-db-MerchantAuth-FindByPrimaryKey",
  3527. "body": [
  3528. "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
  3529. "if ($1 != null)",
  3530. "{",
  3531. " string ChannelCode = $1.ChannelCode; //渠道编码",
  3532. " string ChannelName = $1.ChannelName; //渠道名称 ",
  3533. " string MerNo = $1.MerNo; //商户编号",
  3534. " string RealName = $1.RealName; //真实姓名",
  3535. " string IdCardNo = $1.IdCardNo; //身份证号",
  3536. " string BankCardAccount = $1.BankCardAccount; //银行卡账号",
  3537. " string BankName = $1.BankName; //银行名称",
  3538. " string BankMobile = $1.BankMobile; //银行预留手机号码",
  3539. " string ReqData = $1.ReqData; //渠道请求报文",
  3540. " string RespData = $1.RespData; //渠道响应报文",
  3541. " string ReturnCode = $1.ReturnCode; //渠道返回编码",
  3542. " string ReturnMsg = $1.ReturnMsg; //渠道返回信息",
  3543. " int AuthType = $1.AuthType; //实名类型",
  3544. " int MerchantId = $1.MerchantId; //商户",
  3545. "}"
  3546. ]
  3547. },
  3548. "查询某个商户实名信息,并赋值": {
  3549. "prefix": "ym-db-MerchantAuth-Update",
  3550. "body": [
  3551. "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
  3552. "if ($1 != null)",
  3553. "{",
  3554. " $1.ChannelCode = $2; //渠道编码",
  3555. " $1.ChannelName = $3; //渠道名称 ",
  3556. " $1.MerNo = $4; //商户编号",
  3557. " $1.RealName = $5; //真实姓名",
  3558. " $1.IdCardNo = $6; //身份证号",
  3559. " $1.BankCardAccount = $7; //银行卡账号",
  3560. " $1.BankName = $8; //银行名称",
  3561. " $1.BankMobile = $9; //银行预留手机号码",
  3562. " $1.ReqData = $10; //渠道请求报文",
  3563. " $1.RespData = $11; //渠道响应报文",
  3564. " $1.ReturnCode = $12; //渠道返回编码",
  3565. " $1.ReturnMsg = $13; //渠道返回信息",
  3566. " $1.AuthType = $14; //实名类型",
  3567. " $1.MerchantId = $15; //商户",
  3568. "}"
  3569. ]
  3570. },
  3571. "获取商户实名信息数量": {
  3572. "prefix": "ym-db-MerchantAuth-FindAndCount",
  3573. "body": [
  3574. "int $1 = db.MerchantAuth.Count(m => $2);",
  3575. ]
  3576. },
  3577. "添加商户实名信息": {
  3578. "prefix": "ym-db-MerchantAuth-Create",
  3579. "body": [
  3580. "db.MerchantAuth.Add(new MerchantAuth()",
  3581. "{",
  3582. " CreateDate = DateTime.Now,",
  3583. " UpdateDate = DateTime.Now,",
  3584. " ChannelCode = $1, //渠道编码",
  3585. " ChannelName = $2, //渠道名称 ",
  3586. " MerNo = $3, //商户编号",
  3587. " RealName = $4, //真实姓名",
  3588. " IdCardNo = $5, //身份证号",
  3589. " BankCardAccount = $6, //银行卡账号",
  3590. " BankName = $7, //银行名称",
  3591. " BankMobile = $8, //银行预留手机号码",
  3592. " ReqData = $9, //渠道请求报文",
  3593. " RespData = $10, //渠道响应报文",
  3594. " ReturnCode = $11, //渠道返回编码",
  3595. " ReturnMsg = $12, //渠道返回信息",
  3596. " AuthType = $13, //实名类型",
  3597. " MerchantId = $14, //商户",
  3598. "});"
  3599. ]
  3600. },"删除某个商户实名信息": {
  3601. "prefix": "ym-db-MerchantAuth-Delete",
  3602. "body": [
  3603. "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
  3604. "if ($1 != null)",
  3605. "{",
  3606. " db.MerchantAuth.Remove($1);",
  3607. "}"
  3608. ]
  3609. },
  3610. "查询商家分类列表": {
  3611. "prefix": "ym-db-MerchantClass-Find",
  3612. "body": [
  3613. "List<MerchantClass> $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3614. "foreach (MerchantClass $3 in $1)",
  3615. "{",
  3616. "}"
  3617. ]
  3618. },
  3619. "查询商家分类列表,并取值": {
  3620. "prefix": "ym-db-MerchantClass-FindWithData",
  3621. "body": [
  3622. "List<MerchantClass> $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3623. "foreach (MerchantClass $3 in $1)",
  3624. "{",
  3625. " string ColName = $3.ColName; //名称",
  3626. " int ParentId = $3.ParentId; //父级Id",
  3627. " int MerchantId = $3.MerchantId; //商家Id",
  3628. "}"
  3629. ]
  3630. },
  3631. "查询商家分类": {
  3632. "prefix": "ym-db-MerchantClass-Exist",
  3633. "body": [
  3634. "bool $1 = db.MerchantClass.Any(m => m.Id == $2);",
  3635. ]
  3636. },
  3637. "查询某个商家分类,并取值": {
  3638. "prefix": "ym-db-MerchantClass-FindByPrimaryKey",
  3639. "body": [
  3640. "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
  3641. "if ($1 != null)",
  3642. "{",
  3643. " string ColName = $1.ColName; //名称",
  3644. " int ParentId = $1.ParentId; //父级Id",
  3645. " int MerchantId = $1.MerchantId; //商家Id",
  3646. "}"
  3647. ]
  3648. },
  3649. "查询某个商家分类,并赋值": {
  3650. "prefix": "ym-db-MerchantClass-Update",
  3651. "body": [
  3652. "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
  3653. "if ($1 != null)",
  3654. "{",
  3655. " $1.ColName = $2; //名称",
  3656. " $1.ParentId = $3; //父级Id",
  3657. " $1.MerchantId = $4; //商家Id",
  3658. "}"
  3659. ]
  3660. },
  3661. "获取商家分类数量": {
  3662. "prefix": "ym-db-MerchantClass-FindAndCount",
  3663. "body": [
  3664. "int $1 = db.MerchantClass.Count(m => $2);",
  3665. ]
  3666. },
  3667. "添加商家分类": {
  3668. "prefix": "ym-db-MerchantClass-Create",
  3669. "body": [
  3670. "db.MerchantClass.Add(new MerchantClass()",
  3671. "{",
  3672. " CreateDate = DateTime.Now,",
  3673. " UpdateDate = DateTime.Now,",
  3674. " ColName = $1, //名称",
  3675. " ParentId = $2, //父级Id",
  3676. " MerchantId = $3, //商家Id",
  3677. "});"
  3678. ]
  3679. },"删除某个商家分类": {
  3680. "prefix": "ym-db-MerchantClass-Delete",
  3681. "body": [
  3682. "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
  3683. "if ($1 != null)",
  3684. "{",
  3685. " db.MerchantClass.Remove($1);",
  3686. "}"
  3687. ]
  3688. },
  3689. "查询商家商品分类列表": {
  3690. "prefix": "ym-db-MerchantCol-Find",
  3691. "body": [
  3692. "List<MerchantCol> $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3693. "foreach (MerchantCol $3 in $1)",
  3694. "{",
  3695. "}"
  3696. ]
  3697. },
  3698. "查询商家商品分类列表,并取值": {
  3699. "prefix": "ym-db-MerchantCol-FindWithData",
  3700. "body": [
  3701. "List<MerchantCol> $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3702. "foreach (MerchantCol $3 in $1)",
  3703. "{",
  3704. " string ColId = $3.ColId; //编号",
  3705. " string ColName = $3.ColName; //名称",
  3706. " string ColPicPath = $3.ColPicPath; //图标",
  3707. " string ColDetail = $3.ColDetail; //简介",
  3708. " ulong Recommend = $3.Recommend; //推荐",
  3709. " string ColEnName = $3.ColEnName; //英文名",
  3710. " int ParentId = $3.ParentId; //父级Id",
  3711. " int MerchantId = $3.MerchantId; //商家Id",
  3712. "}"
  3713. ]
  3714. },
  3715. "查询商家商品分类": {
  3716. "prefix": "ym-db-MerchantCol-Exist",
  3717. "body": [
  3718. "bool $1 = db.MerchantCol.Any(m => m.Id == $2);",
  3719. ]
  3720. },
  3721. "查询某个商家商品分类,并取值": {
  3722. "prefix": "ym-db-MerchantCol-FindByPrimaryKey",
  3723. "body": [
  3724. "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
  3725. "if ($1 != null)",
  3726. "{",
  3727. " string ColId = $1.ColId; //编号",
  3728. " string ColName = $1.ColName; //名称",
  3729. " string ColPicPath = $1.ColPicPath; //图标",
  3730. " string ColDetail = $1.ColDetail; //简介",
  3731. " ulong Recommend = $1.Recommend; //推荐",
  3732. " string ColEnName = $1.ColEnName; //英文名",
  3733. " int ParentId = $1.ParentId; //父级Id",
  3734. " int MerchantId = $1.MerchantId; //商家Id",
  3735. "}"
  3736. ]
  3737. },
  3738. "查询某个商家商品分类,并赋值": {
  3739. "prefix": "ym-db-MerchantCol-Update",
  3740. "body": [
  3741. "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
  3742. "if ($1 != null)",
  3743. "{",
  3744. " $1.ColId = $2; //编号",
  3745. " $1.ColName = $3; //名称",
  3746. " $1.ColPicPath = $4; //图标",
  3747. " $1.ColDetail = $5; //简介",
  3748. " $1.Recommend = $6; //推荐",
  3749. " $1.ColEnName = $7; //英文名",
  3750. " $1.ParentId = $8; //父级Id",
  3751. " $1.MerchantId = $9; //商家Id",
  3752. "}"
  3753. ]
  3754. },
  3755. "获取商家商品分类数量": {
  3756. "prefix": "ym-db-MerchantCol-FindAndCount",
  3757. "body": [
  3758. "int $1 = db.MerchantCol.Count(m => $2);",
  3759. ]
  3760. },
  3761. "添加商家商品分类": {
  3762. "prefix": "ym-db-MerchantCol-Create",
  3763. "body": [
  3764. "db.MerchantCol.Add(new MerchantCol()",
  3765. "{",
  3766. " CreateDate = DateTime.Now,",
  3767. " UpdateDate = DateTime.Now,",
  3768. " ColId = $1, //编号",
  3769. " ColName = $2, //名称",
  3770. " ColPicPath = $3, //图标",
  3771. " ColDetail = $4, //简介",
  3772. " Recommend = $5, //推荐",
  3773. " ColEnName = $6, //英文名",
  3774. " ParentId = $7, //父级Id",
  3775. " MerchantId = $8, //商家Id",
  3776. "});"
  3777. ]
  3778. },"删除某个商家商品分类": {
  3779. "prefix": "ym-db-MerchantCol-Delete",
  3780. "body": [
  3781. "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
  3782. "if ($1 != null)",
  3783. "{",
  3784. " db.MerchantCol.Remove($1);",
  3785. "}"
  3786. ]
  3787. },
  3788. "查询店铺评价列表": {
  3789. "prefix": "ym-db-MerchantComment-Find",
  3790. "body": [
  3791. "List<MerchantComment> $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3792. "foreach (MerchantComment $3 in $1)",
  3793. "{",
  3794. "}"
  3795. ]
  3796. },
  3797. "查询店铺评价列表,并取值": {
  3798. "prefix": "ym-db-MerchantComment-FindWithData",
  3799. "body": [
  3800. "List<MerchantComment> $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3801. "foreach (MerchantComment $3 in $1)",
  3802. "{",
  3803. " int UserId = $3.UserId; //创客Id",
  3804. " int OrderId = $3.OrderId; //订单Id",
  3805. " int StarNum1 = $3.StarNum1; //快递包装评分",
  3806. " int StarNum2 = $3.StarNum2; //送货速度评分",
  3807. " int StarNum3 = $3.StarNum3; //服务态度评分",
  3808. " int MerchantId = $3.MerchantId; //商家Id",
  3809. "}"
  3810. ]
  3811. },
  3812. "查询店铺评价": {
  3813. "prefix": "ym-db-MerchantComment-Exist",
  3814. "body": [
  3815. "bool $1 = db.MerchantComment.Any(m => m.Id == $2);",
  3816. ]
  3817. },
  3818. "查询某个店铺评价,并取值": {
  3819. "prefix": "ym-db-MerchantComment-FindByPrimaryKey",
  3820. "body": [
  3821. "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
  3822. "if ($1 != null)",
  3823. "{",
  3824. " int UserId = $1.UserId; //创客Id",
  3825. " int OrderId = $1.OrderId; //订单Id",
  3826. " int StarNum1 = $1.StarNum1; //快递包装评分",
  3827. " int StarNum2 = $1.StarNum2; //送货速度评分",
  3828. " int StarNum3 = $1.StarNum3; //服务态度评分",
  3829. " int MerchantId = $1.MerchantId; //商家Id",
  3830. "}"
  3831. ]
  3832. },
  3833. "查询某个店铺评价,并赋值": {
  3834. "prefix": "ym-db-MerchantComment-Update",
  3835. "body": [
  3836. "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
  3837. "if ($1 != null)",
  3838. "{",
  3839. " $1.UserId = $2; //创客Id",
  3840. " $1.OrderId = $3; //订单Id",
  3841. " $1.StarNum1 = $4; //快递包装评分",
  3842. " $1.StarNum2 = $5; //送货速度评分",
  3843. " $1.StarNum3 = $6; //服务态度评分",
  3844. " $1.MerchantId = $7; //商家Id",
  3845. "}"
  3846. ]
  3847. },
  3848. "获取店铺评价数量": {
  3849. "prefix": "ym-db-MerchantComment-FindAndCount",
  3850. "body": [
  3851. "int $1 = db.MerchantComment.Count(m => $2);",
  3852. ]
  3853. },
  3854. "添加店铺评价": {
  3855. "prefix": "ym-db-MerchantComment-Create",
  3856. "body": [
  3857. "db.MerchantComment.Add(new MerchantComment()",
  3858. "{",
  3859. " CreateDate = DateTime.Now,",
  3860. " UpdateDate = DateTime.Now,",
  3861. " UserId = $1, //创客Id",
  3862. " OrderId = $2, //订单Id",
  3863. " StarNum1 = $3, //快递包装评分",
  3864. " StarNum2 = $4, //送货速度评分",
  3865. " StarNum3 = $5, //服务态度评分",
  3866. " MerchantId = $6, //商家Id",
  3867. "});"
  3868. ]
  3869. },"删除某个店铺评价": {
  3870. "prefix": "ym-db-MerchantComment-Delete",
  3871. "body": [
  3872. "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
  3873. "if ($1 != null)",
  3874. "{",
  3875. " db.MerchantComment.Remove($1);",
  3876. "}"
  3877. ]
  3878. },
  3879. "查询商户编号为主键的关联表列表": {
  3880. "prefix": "ym-db-MerchantForCode-Find",
  3881. "body": [
  3882. "List<MerchantForCode> $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3883. "foreach (MerchantForCode $3 in $1)",
  3884. "{",
  3885. "}"
  3886. ]
  3887. },
  3888. "查询商户编号为主键的关联表列表,并取值": {
  3889. "prefix": "ym-db-MerchantForCode-FindWithData",
  3890. "body": [
  3891. "List<MerchantForCode> $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3892. "foreach (MerchantForCode $3 in $1)",
  3893. "{",
  3894. " string Code = $3.Code; //编号",
  3895. " int MerchantId = $3.MerchantId; //商户",
  3896. "}"
  3897. ]
  3898. },
  3899. "查询商户编号为主键的关联表": {
  3900. "prefix": "ym-db-MerchantForCode-Exist",
  3901. "body": [
  3902. "bool $1 = db.MerchantForCode.Any(m => m.Code == $2);",
  3903. ]
  3904. },
  3905. "查询某个商户编号为主键的关联表,并取值": {
  3906. "prefix": "ym-db-MerchantForCode-FindByPrimaryKey",
  3907. "body": [
  3908. "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
  3909. "if ($1 != null)",
  3910. "{",
  3911. " string Code = $1.Code; //编号",
  3912. " int MerchantId = $1.MerchantId; //商户",
  3913. "}"
  3914. ]
  3915. },
  3916. "查询某个商户编号为主键的关联表,并赋值": {
  3917. "prefix": "ym-db-MerchantForCode-Update",
  3918. "body": [
  3919. "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
  3920. "if ($1 != null)",
  3921. "{",
  3922. " $1.Code = $2; //编号",
  3923. " $1.MerchantId = $3; //商户",
  3924. "}"
  3925. ]
  3926. },
  3927. "获取商户编号为主键的关联表数量": {
  3928. "prefix": "ym-db-MerchantForCode-FindAndCount",
  3929. "body": [
  3930. "int $1 = db.MerchantForCode.Count(m => $2);",
  3931. ]
  3932. },
  3933. "添加商户编号为主键的关联表": {
  3934. "prefix": "ym-db-MerchantForCode-Create",
  3935. "body": [
  3936. "db.MerchantForCode.Add(new MerchantForCode()",
  3937. "{",
  3938. " CreateDate = DateTime.Now,",
  3939. " UpdateDate = DateTime.Now,",
  3940. " Code = $1, //编号",
  3941. " MerchantId = $2, //商户",
  3942. "});"
  3943. ]
  3944. },"删除某个商户编号为主键的关联表": {
  3945. "prefix": "ym-db-MerchantForCode-Delete",
  3946. "body": [
  3947. "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
  3948. "if ($1 != null)",
  3949. "{",
  3950. " db.MerchantForCode.Remove($1);",
  3951. "}"
  3952. ]
  3953. },
  3954. "查询商户姓名为主键的关联表列表": {
  3955. "prefix": "ym-db-MerchantForName-Find",
  3956. "body": [
  3957. "List<MerchantForName> $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3958. "foreach (MerchantForName $3 in $1)",
  3959. "{",
  3960. "}"
  3961. ]
  3962. },
  3963. "查询商户姓名为主键的关联表列表,并取值": {
  3964. "prefix": "ym-db-MerchantForName-FindWithData",
  3965. "body": [
  3966. "List<MerchantForName> $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3967. "foreach (MerchantForName $3 in $1)",
  3968. "{",
  3969. " string Name = $3.Name; //姓名",
  3970. " int MerchantId = $3.MerchantId; //商户",
  3971. "}"
  3972. ]
  3973. },
  3974. "查询商户姓名为主键的关联表": {
  3975. "prefix": "ym-db-MerchantForName-Exist",
  3976. "body": [
  3977. "bool $1 = db.MerchantForName.Any(m => m.Name == $2);",
  3978. ]
  3979. },
  3980. "查询某个商户姓名为主键的关联表,并取值": {
  3981. "prefix": "ym-db-MerchantForName-FindByPrimaryKey",
  3982. "body": [
  3983. "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
  3984. "if ($1 != null)",
  3985. "{",
  3986. " string Name = $1.Name; //姓名",
  3987. " int MerchantId = $1.MerchantId; //商户",
  3988. "}"
  3989. ]
  3990. },
  3991. "查询某个商户姓名为主键的关联表,并赋值": {
  3992. "prefix": "ym-db-MerchantForName-Update",
  3993. "body": [
  3994. "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
  3995. "if ($1 != null)",
  3996. "{",
  3997. " $1.Name = $2; //姓名",
  3998. " $1.MerchantId = $3; //商户",
  3999. "}"
  4000. ]
  4001. },
  4002. "获取商户姓名为主键的关联表数量": {
  4003. "prefix": "ym-db-MerchantForName-FindAndCount",
  4004. "body": [
  4005. "int $1 = db.MerchantForName.Count(m => $2);",
  4006. ]
  4007. },
  4008. "添加商户姓名为主键的关联表": {
  4009. "prefix": "ym-db-MerchantForName-Create",
  4010. "body": [
  4011. "db.MerchantForName.Add(new MerchantForName()",
  4012. "{",
  4013. " CreateDate = DateTime.Now,",
  4014. " UpdateDate = DateTime.Now,",
  4015. " Name = $1, //姓名",
  4016. " MerchantId = $2, //商户",
  4017. "});"
  4018. ]
  4019. },"删除某个商户姓名为主键的关联表": {
  4020. "prefix": "ym-db-MerchantForName-Delete",
  4021. "body": [
  4022. "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
  4023. "if ($1 != null)",
  4024. "{",
  4025. " db.MerchantForName.Remove($1);",
  4026. "}"
  4027. ]
  4028. },
  4029. "查询商户列表": {
  4030. "prefix": "ym-db-MerchantInfo-Find",
  4031. "body": [
  4032. "List<MerchantInfo> $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4033. "foreach (MerchantInfo $3 in $1)",
  4034. "{",
  4035. "}"
  4036. ]
  4037. },
  4038. "查询商户列表,并取值": {
  4039. "prefix": "ym-db-MerchantInfo-FindWithData",
  4040. "body": [
  4041. "List<MerchantInfo> $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4042. "foreach (MerchantInfo $3 in $1)",
  4043. "{",
  4044. " string MerchantNo = $3.MerchantNo; //商户编号",
  4045. " string MerchantName = $3.MerchantName; //商户姓名",
  4046. " string MerchantMobile = $3.MerchantMobile; //商户手机号",
  4047. " string MerRealName = $3.MerRealName; //商户真实姓名",
  4048. " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
  4049. " string KqMerNo = $3.KqMerNo; //渠道商户编码",
  4050. " string KqSnNo = $3.KqSnNo; //渠道SN号",
  4051. " int MerStatus = $3.MerStatus; //商户状态",
  4052. " int ActiveStatus = $3.ActiveStatus; //商户激活状态",
  4053. " int DirectUserId = $3.DirectUserId; //直属创客编号",
  4054. " string MgrNo = $3.MgrNo; //渠道经理编号",
  4055. " string MgrName = $3.MgrName; //渠道经理姓名",
  4056. " int UserId = $3.UserId; //创客",
  4057. " int MerUserId = $3.MerUserId; //商户创客",
  4058. " int SnType = $3.SnType; //机具类型",
  4059. " int SnApplyUserId = $3.SnApplyUserId; //机具SN申请创客",
  4060. " DateTime MatchTime = $3.MatchTime; //匹配时间",
  4061. " DateTime KqRegTime = $3.KqRegTime; //渠道注册时间",
  4062. " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
  4063. " int RebateQual = $3.RebateQual; //返利资格",
  4064. " int ActType = $3.ActType; //激活类型",
  4065. " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述",
  4066. " int SnStoreId = $3.SnStoreId; //SN仓库",
  4067. " int BrandId = $3.BrandId; //品牌",
  4068. " string Province = $3.Province; //省份",
  4069. " string City = $3.City; //城市",
  4070. " string Remark = $3.Remark; //备注",
  4071. " int MerUserType = $3.MerUserType; //商户创客类型",
  4072. " int TopUserId = $3.TopUserId; //顶级创客",
  4073. "}"
  4074. ]
  4075. },
  4076. "查询商户": {
  4077. "prefix": "ym-db-MerchantInfo-Exist",
  4078. "body": [
  4079. "bool $1 = db.MerchantInfo.Any(m => m.Id == $2);",
  4080. ]
  4081. },
  4082. "查询某个商户,并取值": {
  4083. "prefix": "ym-db-MerchantInfo-FindByPrimaryKey",
  4084. "body": [
  4085. "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
  4086. "if ($1 != null)",
  4087. "{",
  4088. " string MerchantNo = $1.MerchantNo; //商户编号",
  4089. " string MerchantName = $1.MerchantName; //商户姓名",
  4090. " string MerchantMobile = $1.MerchantMobile; //商户手机号",
  4091. " string MerRealName = $1.MerRealName; //商户真实姓名",
  4092. " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
  4093. " string KqMerNo = $1.KqMerNo; //渠道商户编码",
  4094. " string KqSnNo = $1.KqSnNo; //渠道SN号",
  4095. " int MerStatus = $1.MerStatus; //商户状态",
  4096. " int ActiveStatus = $1.ActiveStatus; //商户激活状态",
  4097. " int DirectUserId = $1.DirectUserId; //直属创客编号",
  4098. " string MgrNo = $1.MgrNo; //渠道经理编号",
  4099. " string MgrName = $1.MgrName; //渠道经理姓名",
  4100. " int UserId = $1.UserId; //创客",
  4101. " int MerUserId = $1.MerUserId; //商户创客",
  4102. " int SnType = $1.SnType; //机具类型",
  4103. " int SnApplyUserId = $1.SnApplyUserId; //机具SN申请创客",
  4104. " DateTime MatchTime = $1.MatchTime; //匹配时间",
  4105. " DateTime KqRegTime = $1.KqRegTime; //渠道注册时间",
  4106. " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
  4107. " int RebateQual = $1.RebateQual; //返利资格",
  4108. " int ActType = $1.ActType; //激活类型",
  4109. " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述",
  4110. " int SnStoreId = $1.SnStoreId; //SN仓库",
  4111. " int BrandId = $1.BrandId; //品牌",
  4112. " string Province = $1.Province; //省份",
  4113. " string City = $1.City; //城市",
  4114. " string Remark = $1.Remark; //备注",
  4115. " int MerUserType = $1.MerUserType; //商户创客类型",
  4116. " int TopUserId = $1.TopUserId; //顶级创客",
  4117. "}"
  4118. ]
  4119. },
  4120. "查询某个商户,并赋值": {
  4121. "prefix": "ym-db-MerchantInfo-Update",
  4122. "body": [
  4123. "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
  4124. "if ($1 != null)",
  4125. "{",
  4126. " $1.MerchantNo = $2; //商户编号",
  4127. " $1.MerchantName = $3; //商户姓名",
  4128. " $1.MerchantMobile = $4; //商户手机号",
  4129. " $1.MerRealName = $5; //商户真实姓名",
  4130. " $1.MerIdcardNo = $6; //商户身份证号",
  4131. " $1.KqMerNo = $7; //渠道商户编码",
  4132. " $1.KqSnNo = $8; //渠道SN号",
  4133. " $1.MerStatus = $9; //商户状态",
  4134. " $1.ActiveStatus = $10; //商户激活状态",
  4135. " $1.DirectUserId = $11; //直属创客编号",
  4136. " $1.MgrNo = $12; //渠道经理编号",
  4137. " $1.MgrName = $13; //渠道经理姓名",
  4138. " $1.UserId = $14; //创客",
  4139. " $1.MerUserId = $15; //商户创客",
  4140. " $1.SnType = $16; //机具类型",
  4141. " $1.SnApplyUserId = $17; //机具SN申请创客",
  4142. " $1.MatchTime = $18; //匹配时间",
  4143. " $1.KqRegTime = $19; //渠道注册时间",
  4144. " $1.MerStandardDate = $20; //商户激活时间",
  4145. " $1.RebateQual = $21; //返利资格",
  4146. " $1.ActType = $22; //激活类型",
  4147. " $1.ActTypeDesc = $23; //激活类型描述",
  4148. " $1.SnStoreId = $24; //SN仓库",
  4149. " $1.BrandId = $25; //品牌",
  4150. " $1.Province = $26; //省份",
  4151. " $1.City = $27; //城市",
  4152. " $1.Remark = $28; //备注",
  4153. " $1.MerUserType = $29; //商户创客类型",
  4154. " $1.TopUserId = $30; //顶级创客",
  4155. "}"
  4156. ]
  4157. },
  4158. "获取商户数量": {
  4159. "prefix": "ym-db-MerchantInfo-FindAndCount",
  4160. "body": [
  4161. "int $1 = db.MerchantInfo.Count(m => $2);",
  4162. ]
  4163. },
  4164. "添加商户": {
  4165. "prefix": "ym-db-MerchantInfo-Create",
  4166. "body": [
  4167. "db.MerchantInfo.Add(new MerchantInfo()",
  4168. "{",
  4169. " CreateDate = DateTime.Now,",
  4170. " UpdateDate = DateTime.Now,",
  4171. " MerchantNo = $1, //商户编号",
  4172. " MerchantName = $2, //商户姓名",
  4173. " MerchantMobile = $3, //商户手机号",
  4174. " MerRealName = $4, //商户真实姓名",
  4175. " MerIdcardNo = $5, //商户身份证号",
  4176. " KqMerNo = $6, //渠道商户编码",
  4177. " KqSnNo = $7, //渠道SN号",
  4178. " MerStatus = $8, //商户状态",
  4179. " ActiveStatus = $9, //商户激活状态",
  4180. " DirectUserId = $10, //直属创客编号",
  4181. " MgrNo = $11, //渠道经理编号",
  4182. " MgrName = $12, //渠道经理姓名",
  4183. " UserId = $13, //创客",
  4184. " MerUserId = $14, //商户创客",
  4185. " SnType = $15, //机具类型",
  4186. " SnApplyUserId = $16, //机具SN申请创客",
  4187. " MatchTime = $17, //匹配时间",
  4188. " KqRegTime = $18, //渠道注册时间",
  4189. " MerStandardDate = $19, //商户激活时间",
  4190. " RebateQual = $20, //返利资格",
  4191. " ActType = $21, //激活类型",
  4192. " ActTypeDesc = $22, //激活类型描述",
  4193. " SnStoreId = $23, //SN仓库",
  4194. " BrandId = $24, //品牌",
  4195. " Province = $25, //省份",
  4196. " City = $26, //城市",
  4197. " Remark = $27, //备注",
  4198. " MerUserType = $28, //商户创客类型",
  4199. " TopUserId = $29, //顶级创客",
  4200. "});"
  4201. ]
  4202. },"删除某个商户": {
  4203. "prefix": "ym-db-MerchantInfo-Delete",
  4204. "body": [
  4205. "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
  4206. "if ($1 != null)",
  4207. "{",
  4208. " db.MerchantInfo.Remove($1);",
  4209. "}"
  4210. ]
  4211. },
  4212. "查询商户返利明细列表": {
  4213. "prefix": "ym-db-MerchantRebateDetail-Find",
  4214. "body": [
  4215. "List<MerchantRebateDetail> $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4216. "foreach (MerchantRebateDetail $3 in $1)",
  4217. "{",
  4218. "}"
  4219. ]
  4220. },
  4221. "查询商户返利明细列表,并取值": {
  4222. "prefix": "ym-db-MerchantRebateDetail-FindWithData",
  4223. "body": [
  4224. "List<MerchantRebateDetail> $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4225. "foreach (MerchantRebateDetail $3 in $1)",
  4226. "{",
  4227. " int BrandId = $3.BrandId; //品牌",
  4228. " string ProductName = $3.ProductName; //产品名称",
  4229. " string TradeMonth = $3.TradeMonth; //交易月份",
  4230. " string TradeDate = $3.TradeDate; //达标日期",
  4231. " string MerNo = $3.MerNo; //渠道商户编号",
  4232. " string SnNo = $3.SnNo; //渠道SN号",
  4233. " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间",
  4234. " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
  4235. " int MerchantId = $3.MerchantId; //商户",
  4236. " string MmpUserNo = $3.MmpUserNo; //KYS刷APP创客编号",
  4237. " string MmpUserName = $3.MmpUserName; //KYS商户真实姓名",
  4238. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  4239. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  4240. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  4241. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额",
  4242. " int SyncStatus = $3.SyncStatus; //同步MMP",
  4243. " string RewardDesc = $3.RewardDesc; //奖励描述",
  4244. " string Remark = $3.Remark; //备注",
  4245. "}"
  4246. ]
  4247. },
  4248. "查询商户返利明细": {
  4249. "prefix": "ym-db-MerchantRebateDetail-Exist",
  4250. "body": [
  4251. "bool $1 = db.MerchantRebateDetail.Any(m => m.Id == $2);",
  4252. ]
  4253. },
  4254. "查询某个商户返利明细,并取值": {
  4255. "prefix": "ym-db-MerchantRebateDetail-FindByPrimaryKey",
  4256. "body": [
  4257. "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
  4258. "if ($1 != null)",
  4259. "{",
  4260. " int BrandId = $1.BrandId; //品牌",
  4261. " string ProductName = $1.ProductName; //产品名称",
  4262. " string TradeMonth = $1.TradeMonth; //交易月份",
  4263. " string TradeDate = $1.TradeDate; //达标日期",
  4264. " string MerNo = $1.MerNo; //渠道商户编号",
  4265. " string SnNo = $1.SnNo; //渠道SN号",
  4266. " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间",
  4267. " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
  4268. " int MerchantId = $1.MerchantId; //商户",
  4269. " string MmpUserNo = $1.MmpUserNo; //KYS刷APP创客编号",
  4270. " string MmpUserName = $1.MmpUserName; //KYS商户真实姓名",
  4271. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  4272. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  4273. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  4274. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额",
  4275. " int SyncStatus = $1.SyncStatus; //同步MMP",
  4276. " string RewardDesc = $1.RewardDesc; //奖励描述",
  4277. " string Remark = $1.Remark; //备注",
  4278. "}"
  4279. ]
  4280. },
  4281. "查询某个商户返利明细,并赋值": {
  4282. "prefix": "ym-db-MerchantRebateDetail-Update",
  4283. "body": [
  4284. "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
  4285. "if ($1 != null)",
  4286. "{",
  4287. " $1.BrandId = $2; //品牌",
  4288. " $1.ProductName = $3; //产品名称",
  4289. " $1.TradeMonth = $4; //交易月份",
  4290. " $1.TradeDate = $5; //达标日期",
  4291. " $1.MerNo = $6; //渠道商户编号",
  4292. " $1.SnNo = $7; //渠道SN号",
  4293. " $1.MerRegTime = $8; //渠道注册时间",
  4294. " $1.MerStandardDate = $9; //商户激活时间",
  4295. " $1.MerchantId = $10; //商户",
  4296. " $1.MmpUserNo = $11; //KYS刷APP创客编号",
  4297. " $1.MmpUserName = $12; //KYS商户真实姓名",
  4298. " $1.CreditTradeAmt = $13; //贷记卡交易总金额",
  4299. " $1.DebitTradeAmt = $14; //借记卡交易总金额",
  4300. " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额",
  4301. " $1.DebitRewardAmount = $16; //借记卡交易奖励金额",
  4302. " $1.SyncStatus = $17; //同步MMP",
  4303. " $1.RewardDesc = $18; //奖励描述",
  4304. " $1.Remark = $19; //备注",
  4305. "}"
  4306. ]
  4307. },
  4308. "获取商户返利明细数量": {
  4309. "prefix": "ym-db-MerchantRebateDetail-FindAndCount",
  4310. "body": [
  4311. "int $1 = db.MerchantRebateDetail.Count(m => $2);",
  4312. ]
  4313. },
  4314. "添加商户返利明细": {
  4315. "prefix": "ym-db-MerchantRebateDetail-Create",
  4316. "body": [
  4317. "db.MerchantRebateDetail.Add(new MerchantRebateDetail()",
  4318. "{",
  4319. " CreateDate = DateTime.Now,",
  4320. " UpdateDate = DateTime.Now,",
  4321. " BrandId = $1, //品牌",
  4322. " ProductName = $2, //产品名称",
  4323. " TradeMonth = $3, //交易月份",
  4324. " TradeDate = $4, //达标日期",
  4325. " MerNo = $5, //渠道商户编号",
  4326. " SnNo = $6, //渠道SN号",
  4327. " MerRegTime = $7, //渠道注册时间",
  4328. " MerStandardDate = $8, //商户激活时间",
  4329. " MerchantId = $9, //商户",
  4330. " MmpUserNo = $10, //KYS刷APP创客编号",
  4331. " MmpUserName = $11, //KYS商户真实姓名",
  4332. " CreditTradeAmt = $12, //贷记卡交易总金额",
  4333. " DebitTradeAmt = $13, //借记卡交易总金额",
  4334. " CreditRewardAmount = $14, //贷记卡交易奖励金额",
  4335. " DebitRewardAmount = $15, //借记卡交易奖励金额",
  4336. " SyncStatus = $16, //同步MMP",
  4337. " RewardDesc = $17, //奖励描述",
  4338. " Remark = $18, //备注",
  4339. "});"
  4340. ]
  4341. },"删除某个商户返利明细": {
  4342. "prefix": "ym-db-MerchantRebateDetail-Delete",
  4343. "body": [
  4344. "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
  4345. "if ($1 != null)",
  4346. "{",
  4347. " db.MerchantRebateDetail.Remove($1);",
  4348. "}"
  4349. ]
  4350. },
  4351. "查询商家列表": {
  4352. "prefix": "ym-db-Merchants-Find",
  4353. "body": [
  4354. "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4355. "foreach (Merchants $3 in $1)",
  4356. "{",
  4357. "}"
  4358. ]
  4359. },
  4360. "查询商家列表,并取值": {
  4361. "prefix": "ym-db-Merchants-FindWithData",
  4362. "body": [
  4363. "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4364. "foreach (Merchants $3 in $1)",
  4365. "{",
  4366. " string Name = $3.Name; //名称",
  4367. " string Logo = $3.Logo; //Logo图片",
  4368. " string Areas = $3.Areas; //所在地区",
  4369. " string Principal = $3.Principal; //负责人",
  4370. " string Phone = $3.Phone; //联系电话",
  4371. " string BusinessLicense = $3.BusinessLicense; //营业执照",
  4372. " decimal StarNum1 = $3.StarNum1; //快递包装评分",
  4373. " int FollowCount = $3.FollowCount; //关注数",
  4374. " ulong IsAuth = $3.IsAuth; //是否认证",
  4375. " int CommentCount = $3.CommentCount; //评论数",
  4376. " string Address = $3.Address; //详细地址",
  4377. " decimal StarNum2 = $3.StarNum2; //送货速度评分",
  4378. " decimal StarNum3 = $3.StarNum3; //服务态度评分",
  4379. " string UserName = $3.UserName; //账号",
  4380. " string LoginPwd = $3.LoginPwd; //登录密码",
  4381. " string PayPwd = $3.PayPwd; //支付密码",
  4382. " ulong IsRecommend = $3.IsRecommend; //推荐",
  4383. " string Title = $3.Title; //宣传标语",
  4384. " string Title2 = $3.Title2; //宣传标语2",
  4385. " string Province = $3.Province; //所在省",
  4386. "}"
  4387. ]
  4388. },
  4389. "查询商家": {
  4390. "prefix": "ym-db-Merchants-Exist",
  4391. "body": [
  4392. "bool $1 = db.Merchants.Any(m => m.Id == $2);",
  4393. ]
  4394. },
  4395. "查询某个商家,并取值": {
  4396. "prefix": "ym-db-Merchants-FindByPrimaryKey",
  4397. "body": [
  4398. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
  4399. "if ($1 != null)",
  4400. "{",
  4401. " string Name = $1.Name; //名称",
  4402. " string Logo = $1.Logo; //Logo图片",
  4403. " string Areas = $1.Areas; //所在地区",
  4404. " string Principal = $1.Principal; //负责人",
  4405. " string Phone = $1.Phone; //联系电话",
  4406. " string BusinessLicense = $1.BusinessLicense; //营业执照",
  4407. " decimal StarNum1 = $1.StarNum1; //快递包装评分",
  4408. " int FollowCount = $1.FollowCount; //关注数",
  4409. " ulong IsAuth = $1.IsAuth; //是否认证",
  4410. " int CommentCount = $1.CommentCount; //评论数",
  4411. " string Address = $1.Address; //详细地址",
  4412. " decimal StarNum2 = $1.StarNum2; //送货速度评分",
  4413. " decimal StarNum3 = $1.StarNum3; //服务态度评分",
  4414. " string UserName = $1.UserName; //账号",
  4415. " string LoginPwd = $1.LoginPwd; //登录密码",
  4416. " string PayPwd = $1.PayPwd; //支付密码",
  4417. " ulong IsRecommend = $1.IsRecommend; //推荐",
  4418. " string Title = $1.Title; //宣传标语",
  4419. " string Title2 = $1.Title2; //宣传标语2",
  4420. " string Province = $1.Province; //所在省",
  4421. "}"
  4422. ]
  4423. },
  4424. "查询某个商家,并赋值": {
  4425. "prefix": "ym-db-Merchants-Update",
  4426. "body": [
  4427. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
  4428. "if ($1 != null)",
  4429. "{",
  4430. " $1.Name = $2; //名称",
  4431. " $1.Logo = $3; //Logo图片",
  4432. " $1.Areas = $4; //所在地区",
  4433. " $1.Principal = $5; //负责人",
  4434. " $1.Phone = $6; //联系电话",
  4435. " $1.BusinessLicense = $7; //营业执照",
  4436. " $1.StarNum1 = $8; //快递包装评分",
  4437. " $1.FollowCount = $9; //关注数",
  4438. " $1.IsAuth = $10; //是否认证",
  4439. " $1.CommentCount = $11; //评论数",
  4440. " $1.Address = $12; //详细地址",
  4441. " $1.StarNum2 = $13; //送货速度评分",
  4442. " $1.StarNum3 = $14; //服务态度评分",
  4443. " $1.UserName = $15; //账号",
  4444. " $1.LoginPwd = $16; //登录密码",
  4445. " $1.PayPwd = $17; //支付密码",
  4446. " $1.IsRecommend = $18; //推荐",
  4447. " $1.Title = $19; //宣传标语",
  4448. " $1.Title2 = $20; //宣传标语2",
  4449. " $1.Province = $21; //所在省",
  4450. "}"
  4451. ]
  4452. },
  4453. "获取商家数量": {
  4454. "prefix": "ym-db-Merchants-FindAndCount",
  4455. "body": [
  4456. "int $1 = db.Merchants.Count(m => $2);",
  4457. ]
  4458. },
  4459. "添加商家": {
  4460. "prefix": "ym-db-Merchants-Create",
  4461. "body": [
  4462. "db.Merchants.Add(new Merchants()",
  4463. "{",
  4464. " CreateDate = DateTime.Now,",
  4465. " UpdateDate = DateTime.Now,",
  4466. " Name = $1, //名称",
  4467. " Logo = $2, //Logo图片",
  4468. " Areas = $3, //所在地区",
  4469. " Principal = $4, //负责人",
  4470. " Phone = $5, //联系电话",
  4471. " BusinessLicense = $6, //营业执照",
  4472. " StarNum1 = $7, //快递包装评分",
  4473. " FollowCount = $8, //关注数",
  4474. " IsAuth = $9, //是否认证",
  4475. " CommentCount = $10, //评论数",
  4476. " Address = $11, //详细地址",
  4477. " StarNum2 = $12, //送货速度评分",
  4478. " StarNum3 = $13, //服务态度评分",
  4479. " UserName = $14, //账号",
  4480. " LoginPwd = $15, //登录密码",
  4481. " PayPwd = $16, //支付密码",
  4482. " IsRecommend = $17, //推荐",
  4483. " Title = $18, //宣传标语",
  4484. " Title2 = $19, //宣传标语2",
  4485. " Province = $20, //所在省",
  4486. "});"
  4487. ]
  4488. },"删除某个商家": {
  4489. "prefix": "ym-db-Merchants-Delete",
  4490. "body": [
  4491. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
  4492. "if ($1 != null)",
  4493. "{",
  4494. " db.Merchants.Remove($1);",
  4495. "}"
  4496. ]
  4497. },
  4498. "查询手机验证码列表": {
  4499. "prefix": "ym-db-MobileCodeCheck-Find",
  4500. "body": [
  4501. "List<MobileCodeCheck> $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4502. "foreach (MobileCodeCheck $3 in $1)",
  4503. "{",
  4504. "}"
  4505. ]
  4506. },
  4507. "查询手机验证码列表,并取值": {
  4508. "prefix": "ym-db-MobileCodeCheck-FindWithData",
  4509. "body": [
  4510. "List<MobileCodeCheck> $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4511. "foreach (MobileCodeCheck $3 in $1)",
  4512. "{",
  4513. " string Mobile = $3.Mobile; //手机号",
  4514. " string CheckCode = $3.CheckCode; //验证码",
  4515. " string CheckNo = $3.CheckNo; //图形验证码",
  4516. " DateTime CheckCodeTime = $3.CheckCodeTime; //验证码时间",
  4517. "}"
  4518. ]
  4519. },
  4520. "查询手机验证码": {
  4521. "prefix": "ym-db-MobileCodeCheck-Exist",
  4522. "body": [
  4523. "bool $1 = db.MobileCodeCheck.Any(m => m.Mobile == $2);",
  4524. ]
  4525. },
  4526. "查询某个手机验证码,并取值": {
  4527. "prefix": "ym-db-MobileCodeCheck-FindByPrimaryKey",
  4528. "body": [
  4529. "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
  4530. "if ($1 != null)",
  4531. "{",
  4532. " string Mobile = $1.Mobile; //手机号",
  4533. " string CheckCode = $1.CheckCode; //验证码",
  4534. " string CheckNo = $1.CheckNo; //图形验证码",
  4535. " DateTime CheckCodeTime = $1.CheckCodeTime; //验证码时间",
  4536. "}"
  4537. ]
  4538. },
  4539. "查询某个手机验证码,并赋值": {
  4540. "prefix": "ym-db-MobileCodeCheck-Update",
  4541. "body": [
  4542. "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
  4543. "if ($1 != null)",
  4544. "{",
  4545. " $1.Mobile = $2; //手机号",
  4546. " $1.CheckCode = $3; //验证码",
  4547. " $1.CheckNo = $4; //图形验证码",
  4548. " $1.CheckCodeTime = $5; //验证码时间",
  4549. "}"
  4550. ]
  4551. },
  4552. "获取手机验证码数量": {
  4553. "prefix": "ym-db-MobileCodeCheck-FindAndCount",
  4554. "body": [
  4555. "int $1 = db.MobileCodeCheck.Count(m => $2);",
  4556. ]
  4557. },
  4558. "添加手机验证码": {
  4559. "prefix": "ym-db-MobileCodeCheck-Create",
  4560. "body": [
  4561. "db.MobileCodeCheck.Add(new MobileCodeCheck()",
  4562. "{",
  4563. " CreateDate = DateTime.Now,",
  4564. " UpdateDate = DateTime.Now,",
  4565. " Mobile = $1, //手机号",
  4566. " CheckCode = $2, //验证码",
  4567. " CheckNo = $3, //图形验证码",
  4568. " CheckCodeTime = $4, //验证码时间",
  4569. "});"
  4570. ]
  4571. },"删除某个手机验证码": {
  4572. "prefix": "ym-db-MobileCodeCheck-Delete",
  4573. "body": [
  4574. "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
  4575. "if ($1 != null)",
  4576. "{",
  4577. " db.MobileCodeCheck.Remove($1);",
  4578. "}"
  4579. ]
  4580. },
  4581. "查询开机奖励列表": {
  4582. "prefix": "ym-db-OpenReward-Find",
  4583. "body": [
  4584. "List<OpenReward> $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4585. "foreach (OpenReward $3 in $1)",
  4586. "{",
  4587. "}"
  4588. ]
  4589. },
  4590. "查询开机奖励列表,并取值": {
  4591. "prefix": "ym-db-OpenReward-FindWithData",
  4592. "body": [
  4593. "List<OpenReward> $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4594. "foreach (OpenReward $3 in $1)",
  4595. "{",
  4596. " string TradeMonth = $3.TradeMonth; //交易月",
  4597. " DateTime TradeDate = $3.TradeDate; //达标日期",
  4598. " int UserId = $3.UserId; //创客",
  4599. " int BrandId = $3.BrandId; //品牌",
  4600. " int RewardType = $3.RewardType; //奖励类型",
  4601. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  4602. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  4603. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  4604. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
  4605. " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
  4606. " string RewardDesc = $3.RewardDesc; //奖励描述",
  4607. " string Remark = $3.Remark; //备注",
  4608. " int RewardMerCount = $3.RewardMerCount; //达标商户数",
  4609. " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
  4610. " int TopUserId = $3.TopUserId; //顶级创客",
  4611. "}"
  4612. ]
  4613. },
  4614. "查询开机奖励": {
  4615. "prefix": "ym-db-OpenReward-Exist",
  4616. "body": [
  4617. "bool $1 = db.OpenReward.Any(m => m.Id == $2);",
  4618. ]
  4619. },
  4620. "查询某个开机奖励,并取值": {
  4621. "prefix": "ym-db-OpenReward-FindByPrimaryKey",
  4622. "body": [
  4623. "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
  4624. "if ($1 != null)",
  4625. "{",
  4626. " string TradeMonth = $1.TradeMonth; //交易月",
  4627. " DateTime TradeDate = $1.TradeDate; //达标日期",
  4628. " int UserId = $1.UserId; //创客",
  4629. " int BrandId = $1.BrandId; //品牌",
  4630. " int RewardType = $1.RewardType; //奖励类型",
  4631. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  4632. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  4633. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  4634. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
  4635. " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
  4636. " string RewardDesc = $1.RewardDesc; //奖励描述",
  4637. " string Remark = $1.Remark; //备注",
  4638. " int RewardMerCount = $1.RewardMerCount; //达标商户数",
  4639. " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
  4640. " int TopUserId = $1.TopUserId; //顶级创客",
  4641. "}"
  4642. ]
  4643. },
  4644. "查询某个开机奖励,并赋值": {
  4645. "prefix": "ym-db-OpenReward-Update",
  4646. "body": [
  4647. "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
  4648. "if ($1 != null)",
  4649. "{",
  4650. " $1.TradeMonth = $2; //交易月",
  4651. " $1.TradeDate = $3; //达标日期",
  4652. " $1.UserId = $4; //创客",
  4653. " $1.BrandId = $5; //品牌",
  4654. " $1.RewardType = $6; //奖励类型",
  4655. " $1.CreditTradeAmt = $7; //贷记卡交易总金额",
  4656. " $1.DebitTradeAmt = $8; //借记卡交易总金额",
  4657. " $1.CreditRewardAmount = $9; //贷记卡交易奖励金额",
  4658. " $1.DebitRewardAmount = $10; //借记记卡交易奖励金额",
  4659. " $1.OpenRewardNo = $11; //开机奖励单号",
  4660. " $1.RewardDesc = $12; //奖励描述",
  4661. " $1.Remark = $13; //备注",
  4662. " $1.RewardMerCount = $14; //达标商户数",
  4663. " $1.CheckStatus = $15; //验证和同步账户状态",
  4664. " $1.TopUserId = $16; //顶级创客",
  4665. "}"
  4666. ]
  4667. },
  4668. "获取开机奖励数量": {
  4669. "prefix": "ym-db-OpenReward-FindAndCount",
  4670. "body": [
  4671. "int $1 = db.OpenReward.Count(m => $2);",
  4672. ]
  4673. },
  4674. "添加开机奖励": {
  4675. "prefix": "ym-db-OpenReward-Create",
  4676. "body": [
  4677. "db.OpenReward.Add(new OpenReward()",
  4678. "{",
  4679. " CreateDate = DateTime.Now,",
  4680. " UpdateDate = DateTime.Now,",
  4681. " TradeMonth = $1, //交易月",
  4682. " TradeDate = $2, //达标日期",
  4683. " UserId = $3, //创客",
  4684. " BrandId = $4, //品牌",
  4685. " RewardType = $5, //奖励类型",
  4686. " CreditTradeAmt = $6, //贷记卡交易总金额",
  4687. " DebitTradeAmt = $7, //借记卡交易总金额",
  4688. " CreditRewardAmount = $8, //贷记卡交易奖励金额",
  4689. " DebitRewardAmount = $9, //借记记卡交易奖励金额",
  4690. " OpenRewardNo = $10, //开机奖励单号",
  4691. " RewardDesc = $11, //奖励描述",
  4692. " Remark = $12, //备注",
  4693. " RewardMerCount = $13, //达标商户数",
  4694. " CheckStatus = $14, //验证和同步账户状态",
  4695. " TopUserId = $15, //顶级创客",
  4696. "});"
  4697. ]
  4698. },"删除某个开机奖励": {
  4699. "prefix": "ym-db-OpenReward-Delete",
  4700. "body": [
  4701. "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
  4702. "if ($1 != null)",
  4703. "{",
  4704. " db.OpenReward.Remove($1);",
  4705. "}"
  4706. ]
  4707. },
  4708. "查询开机奖励明细列表": {
  4709. "prefix": "ym-db-OpenRewardDetail-Find",
  4710. "body": [
  4711. "List<OpenRewardDetail> $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4712. "foreach (OpenRewardDetail $3 in $1)",
  4713. "{",
  4714. "}"
  4715. ]
  4716. },
  4717. "查询开机奖励明细列表,并取值": {
  4718. "prefix": "ym-db-OpenRewardDetail-FindWithData",
  4719. "body": [
  4720. "List<OpenRewardDetail> $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4721. "foreach (OpenRewardDetail $3 in $1)",
  4722. "{",
  4723. " string TradeMonth = $3.TradeMonth; //交易月",
  4724. " DateTime TradeDate = $3.TradeDate; //达标日期",
  4725. " int UserId = $3.UserId; //创客",
  4726. " int BrandId = $3.BrandId; //品牌",
  4727. " string ProductName = $3.ProductName; //产品名称",
  4728. " int MerchantId = $3.MerchantId; //商户",
  4729. " int DirectUserId = $3.DirectUserId; //商户直属人",
  4730. " string SnNo = $3.SnNo; //SN号",
  4731. " string MerNo = $3.MerNo; //渠道商户号",
  4732. " int SnType = $3.SnType; //机具类型",
  4733. " int SnApplyUserId = $3.SnApplyUserId; //机具申请人",
  4734. " DateTime StandardDate = $3.StandardDate; //商户的激活日期",
  4735. " int SnStoreId = $3.SnStoreId; //SN仓库",
  4736. " int MerBuddyType = $3.MerBuddyType; //商户创客类型",
  4737. " int RewardType = $3.RewardType; //奖励类型",
  4738. " string RewardTips = $3.RewardTips; //奖励描述",
  4739. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  4740. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  4741. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  4742. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
  4743. " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
  4744. " string RewardDesc = $3.RewardDesc; //奖励描述",
  4745. " string Remark = $3.Remark; //备注",
  4746. " string OpenDetailRec = $3.OpenDetailRec; //明细单号",
  4747. " int CheckStatus = $3.CheckStatus; //同步状态",
  4748. " int TopUserId = $3.TopUserId; //顶级创客",
  4749. "}"
  4750. ]
  4751. },
  4752. "查询开机奖励明细": {
  4753. "prefix": "ym-db-OpenRewardDetail-Exist",
  4754. "body": [
  4755. "bool $1 = db.OpenRewardDetail.Any(m => m.Id == $2);",
  4756. ]
  4757. },
  4758. "查询某个开机奖励明细,并取值": {
  4759. "prefix": "ym-db-OpenRewardDetail-FindByPrimaryKey",
  4760. "body": [
  4761. "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
  4762. "if ($1 != null)",
  4763. "{",
  4764. " string TradeMonth = $1.TradeMonth; //交易月",
  4765. " DateTime TradeDate = $1.TradeDate; //达标日期",
  4766. " int UserId = $1.UserId; //创客",
  4767. " int BrandId = $1.BrandId; //品牌",
  4768. " string ProductName = $1.ProductName; //产品名称",
  4769. " int MerchantId = $1.MerchantId; //商户",
  4770. " int DirectUserId = $1.DirectUserId; //商户直属人",
  4771. " string SnNo = $1.SnNo; //SN号",
  4772. " string MerNo = $1.MerNo; //渠道商户号",
  4773. " int SnType = $1.SnType; //机具类型",
  4774. " int SnApplyUserId = $1.SnApplyUserId; //机具申请人",
  4775. " DateTime StandardDate = $1.StandardDate; //商户的激活日期",
  4776. " int SnStoreId = $1.SnStoreId; //SN仓库",
  4777. " int MerBuddyType = $1.MerBuddyType; //商户创客类型",
  4778. " int RewardType = $1.RewardType; //奖励类型",
  4779. " string RewardTips = $1.RewardTips; //奖励描述",
  4780. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  4781. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  4782. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  4783. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
  4784. " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
  4785. " string RewardDesc = $1.RewardDesc; //奖励描述",
  4786. " string Remark = $1.Remark; //备注",
  4787. " string OpenDetailRec = $1.OpenDetailRec; //明细单号",
  4788. " int CheckStatus = $1.CheckStatus; //同步状态",
  4789. " int TopUserId = $1.TopUserId; //顶级创客",
  4790. "}"
  4791. ]
  4792. },
  4793. "查询某个开机奖励明细,并赋值": {
  4794. "prefix": "ym-db-OpenRewardDetail-Update",
  4795. "body": [
  4796. "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
  4797. "if ($1 != null)",
  4798. "{",
  4799. " $1.TradeMonth = $2; //交易月",
  4800. " $1.TradeDate = $3; //达标日期",
  4801. " $1.UserId = $4; //创客",
  4802. " $1.BrandId = $5; //品牌",
  4803. " $1.ProductName = $6; //产品名称",
  4804. " $1.MerchantId = $7; //商户",
  4805. " $1.DirectUserId = $8; //商户直属人",
  4806. " $1.SnNo = $9; //SN号",
  4807. " $1.MerNo = $10; //渠道商户号",
  4808. " $1.SnType = $11; //机具类型",
  4809. " $1.SnApplyUserId = $12; //机具申请人",
  4810. " $1.StandardDate = $13; //商户的激活日期",
  4811. " $1.SnStoreId = $14; //SN仓库",
  4812. " $1.MerBuddyType = $15; //商户创客类型",
  4813. " $1.RewardType = $16; //奖励类型",
  4814. " $1.RewardTips = $17; //奖励描述",
  4815. " $1.CreditTradeAmt = $18; //贷记卡交易总金额",
  4816. " $1.DebitTradeAmt = $19; //借记卡交易总金额",
  4817. " $1.CreditRewardAmount = $20; //贷记卡交易奖励金额",
  4818. " $1.DebitRewardAmount = $21; //借记记卡交易奖励金额",
  4819. " $1.OpenRewardNo = $22; //开机奖励单号",
  4820. " $1.RewardDesc = $23; //奖励描述",
  4821. " $1.Remark = $24; //备注",
  4822. " $1.OpenDetailRec = $25; //明细单号",
  4823. " $1.CheckStatus = $26; //同步状态",
  4824. " $1.TopUserId = $27; //顶级创客",
  4825. "}"
  4826. ]
  4827. },
  4828. "获取开机奖励明细数量": {
  4829. "prefix": "ym-db-OpenRewardDetail-FindAndCount",
  4830. "body": [
  4831. "int $1 = db.OpenRewardDetail.Count(m => $2);",
  4832. ]
  4833. },
  4834. "添加开机奖励明细": {
  4835. "prefix": "ym-db-OpenRewardDetail-Create",
  4836. "body": [
  4837. "db.OpenRewardDetail.Add(new OpenRewardDetail()",
  4838. "{",
  4839. " CreateDate = DateTime.Now,",
  4840. " UpdateDate = DateTime.Now,",
  4841. " TradeMonth = $1, //交易月",
  4842. " TradeDate = $2, //达标日期",
  4843. " UserId = $3, //创客",
  4844. " BrandId = $4, //品牌",
  4845. " ProductName = $5, //产品名称",
  4846. " MerchantId = $6, //商户",
  4847. " DirectUserId = $7, //商户直属人",
  4848. " SnNo = $8, //SN号",
  4849. " MerNo = $9, //渠道商户号",
  4850. " SnType = $10, //机具类型",
  4851. " SnApplyUserId = $11, //机具申请人",
  4852. " StandardDate = $12, //商户的激活日期",
  4853. " SnStoreId = $13, //SN仓库",
  4854. " MerBuddyType = $14, //商户创客类型",
  4855. " RewardType = $15, //奖励类型",
  4856. " RewardTips = $16, //奖励描述",
  4857. " CreditTradeAmt = $17, //贷记卡交易总金额",
  4858. " DebitTradeAmt = $18, //借记卡交易总金额",
  4859. " CreditRewardAmount = $19, //贷记卡交易奖励金额",
  4860. " DebitRewardAmount = $20, //借记记卡交易奖励金额",
  4861. " OpenRewardNo = $21, //开机奖励单号",
  4862. " RewardDesc = $22, //奖励描述",
  4863. " Remark = $23, //备注",
  4864. " OpenDetailRec = $24, //明细单号",
  4865. " CheckStatus = $25, //同步状态",
  4866. " TopUserId = $26, //顶级创客",
  4867. "});"
  4868. ]
  4869. },"删除某个开机奖励明细": {
  4870. "prefix": "ym-db-OpenRewardDetail-Delete",
  4871. "body": [
  4872. "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
  4873. "if ($1 != null)",
  4874. "{",
  4875. " db.OpenRewardDetail.Remove($1);",
  4876. "}"
  4877. ]
  4878. },
  4879. "查询开机机具快照列表": {
  4880. "prefix": "ym-db-OpenSnSnapshot-Find",
  4881. "body": [
  4882. "List<OpenSnSnapshot> $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4883. "foreach (OpenSnSnapshot $3 in $1)",
  4884. "{",
  4885. "}"
  4886. ]
  4887. },
  4888. "查询开机机具快照列表,并取值": {
  4889. "prefix": "ym-db-OpenSnSnapshot-FindWithData",
  4890. "body": [
  4891. "List<OpenSnSnapshot> $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4892. "foreach (OpenSnSnapshot $3 in $1)",
  4893. "{",
  4894. " string TradeMonth = $3.TradeMonth; //交易月",
  4895. " DateTime TradeDate = $3.TradeDate; //达标日期",
  4896. " int UserId = $3.UserId; //创客",
  4897. " int BrandId = $3.BrandId; //品牌",
  4898. " int MerchantId = $3.MerchantId; //商户",
  4899. " int DirectUserId = $3.DirectUserId; //商户直属人",
  4900. " string SnNo = $3.SnNo; //SN号",
  4901. " string MerNo = $3.MerNo; //渠道商户号",
  4902. " int SnType = $3.SnType; //机具类型",
  4903. " int SnApplyUserId = $3.SnApplyUserId; //机具申请人",
  4904. " DateTime StandardDate = $3.StandardDate; //商户的激活日期",
  4905. " int SnStoreId = $3.SnStoreId; //SN仓库",
  4906. " int MerUserType = $3.MerUserType; //商户创客类型",
  4907. " int RewardType = $3.RewardType; //奖励类型",
  4908. " string RewardTips = $3.RewardTips; //奖励描述",
  4909. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  4910. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  4911. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  4912. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
  4913. " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
  4914. " string RewardDesc = $3.RewardDesc; //奖励描述",
  4915. " string Remark = $3.Remark; //备注",
  4916. " string OpenDetailRec = $3.OpenDetailRec; //明细单号",
  4917. " int BuySnNum = $3.BuySnNum; //购买机数量",
  4918. " int StdBuySnNum = $3.StdBuySnNum; //标准购买机数量",
  4919. " decimal RewardAmount = $3.RewardAmount; //奖励金额",
  4920. " string FailReason = $3.FailReason; //失败原因",
  4921. " string UserNav = $3.UserNav; //创客路径",
  4922. " int TopUserId = $3.TopUserId; //顶级创客",
  4923. "}"
  4924. ]
  4925. },
  4926. "查询开机机具快照": {
  4927. "prefix": "ym-db-OpenSnSnapshot-Exist",
  4928. "body": [
  4929. "bool $1 = db.OpenSnSnapshot.Any(m => m.Id == $2);",
  4930. ]
  4931. },
  4932. "查询某个开机机具快照,并取值": {
  4933. "prefix": "ym-db-OpenSnSnapshot-FindByPrimaryKey",
  4934. "body": [
  4935. "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
  4936. "if ($1 != null)",
  4937. "{",
  4938. " string TradeMonth = $1.TradeMonth; //交易月",
  4939. " DateTime TradeDate = $1.TradeDate; //达标日期",
  4940. " int UserId = $1.UserId; //创客",
  4941. " int BrandId = $1.BrandId; //品牌",
  4942. " int MerchantId = $1.MerchantId; //商户",
  4943. " int DirectUserId = $1.DirectUserId; //商户直属人",
  4944. " string SnNo = $1.SnNo; //SN号",
  4945. " string MerNo = $1.MerNo; //渠道商户号",
  4946. " int SnType = $1.SnType; //机具类型",
  4947. " int SnApplyUserId = $1.SnApplyUserId; //机具申请人",
  4948. " DateTime StandardDate = $1.StandardDate; //商户的激活日期",
  4949. " int SnStoreId = $1.SnStoreId; //SN仓库",
  4950. " int MerUserType = $1.MerUserType; //商户创客类型",
  4951. " int RewardType = $1.RewardType; //奖励类型",
  4952. " string RewardTips = $1.RewardTips; //奖励描述",
  4953. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  4954. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  4955. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  4956. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
  4957. " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
  4958. " string RewardDesc = $1.RewardDesc; //奖励描述",
  4959. " string Remark = $1.Remark; //备注",
  4960. " string OpenDetailRec = $1.OpenDetailRec; //明细单号",
  4961. " int BuySnNum = $1.BuySnNum; //购买机数量",
  4962. " int StdBuySnNum = $1.StdBuySnNum; //标准购买机数量",
  4963. " decimal RewardAmount = $1.RewardAmount; //奖励金额",
  4964. " string FailReason = $1.FailReason; //失败原因",
  4965. " string UserNav = $1.UserNav; //创客路径",
  4966. " int TopUserId = $1.TopUserId; //顶级创客",
  4967. "}"
  4968. ]
  4969. },
  4970. "查询某个开机机具快照,并赋值": {
  4971. "prefix": "ym-db-OpenSnSnapshot-Update",
  4972. "body": [
  4973. "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
  4974. "if ($1 != null)",
  4975. "{",
  4976. " $1.TradeMonth = $2; //交易月",
  4977. " $1.TradeDate = $3; //达标日期",
  4978. " $1.UserId = $4; //创客",
  4979. " $1.BrandId = $5; //品牌",
  4980. " $1.MerchantId = $6; //商户",
  4981. " $1.DirectUserId = $7; //商户直属人",
  4982. " $1.SnNo = $8; //SN号",
  4983. " $1.MerNo = $9; //渠道商户号",
  4984. " $1.SnType = $10; //机具类型",
  4985. " $1.SnApplyUserId = $11; //机具申请人",
  4986. " $1.StandardDate = $12; //商户的激活日期",
  4987. " $1.SnStoreId = $13; //SN仓库",
  4988. " $1.MerUserType = $14; //商户创客类型",
  4989. " $1.RewardType = $15; //奖励类型",
  4990. " $1.RewardTips = $16; //奖励描述",
  4991. " $1.CreditTradeAmt = $17; //贷记卡交易总金额",
  4992. " $1.DebitTradeAmt = $18; //借记卡交易总金额",
  4993. " $1.CreditRewardAmount = $19; //贷记卡交易奖励金额",
  4994. " $1.DebitRewardAmount = $20; //借记记卡交易奖励金额",
  4995. " $1.OpenRewardNo = $21; //开机奖励单号",
  4996. " $1.RewardDesc = $22; //奖励描述",
  4997. " $1.Remark = $23; //备注",
  4998. " $1.OpenDetailRec = $24; //明细单号",
  4999. " $1.BuySnNum = $25; //购买机数量",
  5000. " $1.StdBuySnNum = $26; //标准购买机数量",
  5001. " $1.RewardAmount = $27; //奖励金额",
  5002. " $1.FailReason = $28; //失败原因",
  5003. " $1.UserNav = $29; //创客路径",
  5004. " $1.TopUserId = $30; //顶级创客",
  5005. "}"
  5006. ]
  5007. },
  5008. "获取开机机具快照数量": {
  5009. "prefix": "ym-db-OpenSnSnapshot-FindAndCount",
  5010. "body": [
  5011. "int $1 = db.OpenSnSnapshot.Count(m => $2);",
  5012. ]
  5013. },
  5014. "添加开机机具快照": {
  5015. "prefix": "ym-db-OpenSnSnapshot-Create",
  5016. "body": [
  5017. "db.OpenSnSnapshot.Add(new OpenSnSnapshot()",
  5018. "{",
  5019. " CreateDate = DateTime.Now,",
  5020. " UpdateDate = DateTime.Now,",
  5021. " TradeMonth = $1, //交易月",
  5022. " TradeDate = $2, //达标日期",
  5023. " UserId = $3, //创客",
  5024. " BrandId = $4, //品牌",
  5025. " MerchantId = $5, //商户",
  5026. " DirectUserId = $6, //商户直属人",
  5027. " SnNo = $7, //SN号",
  5028. " MerNo = $8, //渠道商户号",
  5029. " SnType = $9, //机具类型",
  5030. " SnApplyUserId = $10, //机具申请人",
  5031. " StandardDate = $11, //商户的激活日期",
  5032. " SnStoreId = $12, //SN仓库",
  5033. " MerUserType = $13, //商户创客类型",
  5034. " RewardType = $14, //奖励类型",
  5035. " RewardTips = $15, //奖励描述",
  5036. " CreditTradeAmt = $16, //贷记卡交易总金额",
  5037. " DebitTradeAmt = $17, //借记卡交易总金额",
  5038. " CreditRewardAmount = $18, //贷记卡交易奖励金额",
  5039. " DebitRewardAmount = $19, //借记记卡交易奖励金额",
  5040. " OpenRewardNo = $20, //开机奖励单号",
  5041. " RewardDesc = $21, //奖励描述",
  5042. " Remark = $22, //备注",
  5043. " OpenDetailRec = $23, //明细单号",
  5044. " BuySnNum = $24, //购买机数量",
  5045. " StdBuySnNum = $25, //标准购买机数量",
  5046. " RewardAmount = $26, //奖励金额",
  5047. " FailReason = $27, //失败原因",
  5048. " UserNav = $28, //创客路径",
  5049. " TopUserId = $29, //顶级创客",
  5050. "});"
  5051. ]
  5052. },"删除某个开机机具快照": {
  5053. "prefix": "ym-db-OpenSnSnapshot-Delete",
  5054. "body": [
  5055. "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
  5056. "if ($1 != null)",
  5057. "{",
  5058. " db.OpenSnSnapshot.Remove($1);",
  5059. "}"
  5060. ]
  5061. },
  5062. "查询订单号关联表列表": {
  5063. "prefix": "ym-db-OrderForNo-Find",
  5064. "body": [
  5065. "List<OrderForNo> $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5066. "foreach (OrderForNo $3 in $1)",
  5067. "{",
  5068. "}"
  5069. ]
  5070. },
  5071. "查询订单号关联表列表,并取值": {
  5072. "prefix": "ym-db-OrderForNo-FindWithData",
  5073. "body": [
  5074. "List<OrderForNo> $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5075. "foreach (OrderForNo $3 in $1)",
  5076. "{",
  5077. " string OrderNo = $3.OrderNo; //订单号",
  5078. " string OrderIds = $3.OrderIds; //订单Id",
  5079. " int RspCode = $3.RspCode; //返回码",
  5080. " string RspMsg = $3.RspMsg; //返回信息",
  5081. "}"
  5082. ]
  5083. },
  5084. "查询订单号关联表": {
  5085. "prefix": "ym-db-OrderForNo-Exist",
  5086. "body": [
  5087. "bool $1 = db.OrderForNo.Any(m => m.OrderNo == $2);",
  5088. ]
  5089. },
  5090. "查询某个订单号关联表,并取值": {
  5091. "prefix": "ym-db-OrderForNo-FindByPrimaryKey",
  5092. "body": [
  5093. "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
  5094. "if ($1 != null)",
  5095. "{",
  5096. " string OrderNo = $1.OrderNo; //订单号",
  5097. " string OrderIds = $1.OrderIds; //订单Id",
  5098. " int RspCode = $1.RspCode; //返回码",
  5099. " string RspMsg = $1.RspMsg; //返回信息",
  5100. "}"
  5101. ]
  5102. },
  5103. "查询某个订单号关联表,并赋值": {
  5104. "prefix": "ym-db-OrderForNo-Update",
  5105. "body": [
  5106. "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
  5107. "if ($1 != null)",
  5108. "{",
  5109. " $1.OrderNo = $2; //订单号",
  5110. " $1.OrderIds = $3; //订单Id",
  5111. " $1.RspCode = $4; //返回码",
  5112. " $1.RspMsg = $5; //返回信息",
  5113. "}"
  5114. ]
  5115. },
  5116. "获取订单号关联表数量": {
  5117. "prefix": "ym-db-OrderForNo-FindAndCount",
  5118. "body": [
  5119. "int $1 = db.OrderForNo.Count(m => $2);",
  5120. ]
  5121. },
  5122. "添加订单号关联表": {
  5123. "prefix": "ym-db-OrderForNo-Create",
  5124. "body": [
  5125. "db.OrderForNo.Add(new OrderForNo()",
  5126. "{",
  5127. " CreateDate = DateTime.Now,",
  5128. " UpdateDate = DateTime.Now,",
  5129. " OrderNo = $1, //订单号",
  5130. " OrderIds = $2, //订单Id",
  5131. " RspCode = $3, //返回码",
  5132. " RspMsg = $4, //返回信息",
  5133. "});"
  5134. ]
  5135. },"删除某个订单号关联表": {
  5136. "prefix": "ym-db-OrderForNo-Delete",
  5137. "body": [
  5138. "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
  5139. "if ($1 != null)",
  5140. "{",
  5141. " db.OrderForNo.Remove($1);",
  5142. "}"
  5143. ]
  5144. },
  5145. "查询订单商品列表": {
  5146. "prefix": "ym-db-OrderProduct-Find",
  5147. "body": [
  5148. "List<OrderProduct> $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5149. "foreach (OrderProduct $3 in $1)",
  5150. "{",
  5151. "}"
  5152. ]
  5153. },
  5154. "查询订单商品列表,并取值": {
  5155. "prefix": "ym-db-OrderProduct-FindWithData",
  5156. "body": [
  5157. "List<OrderProduct> $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5158. "foreach (OrderProduct $3 in $1)",
  5159. "{",
  5160. " int OrderId = $3.OrderId; //订单Id",
  5161. " int UserId = $3.UserId; //创客Id",
  5162. " int ProductId = $3.ProductId; //商品Id",
  5163. " string ProductName = $3.ProductName; //商品名称",
  5164. " decimal ProductPrice = $3.ProductPrice; //商品单价",
  5165. " int ProductCount = $3.ProductCount; //商品数量",
  5166. " decimal TotalPrice = $3.TotalPrice; //小计",
  5167. " int MerchantId = $3.MerchantId; //商家Id",
  5168. " decimal TotalIntegral = $3.TotalIntegral; //积分",
  5169. " string ProductPhoto = $3.ProductPhoto; //商品缩略图",
  5170. " string NormId = $3.NormId; //规格Id",
  5171. " string NormDetail = $3.NormDetail; //规则描述",
  5172. " decimal ProductIntegral = $3.ProductIntegral; //商品抵扣积分",
  5173. " string ProductCode = $3.ProductCode; //商品编号",
  5174. " int StoreId = $3.StoreId; //发货仓库",
  5175. " string SnNos = $3.SnNos; //SN编号",
  5176. "}"
  5177. ]
  5178. },
  5179. "查询订单商品": {
  5180. "prefix": "ym-db-OrderProduct-Exist",
  5181. "body": [
  5182. "bool $1 = db.OrderProduct.Any(m => m.Id == $2);",
  5183. ]
  5184. },
  5185. "查询某个订单商品,并取值": {
  5186. "prefix": "ym-db-OrderProduct-FindByPrimaryKey",
  5187. "body": [
  5188. "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
  5189. "if ($1 != null)",
  5190. "{",
  5191. " int OrderId = $1.OrderId; //订单Id",
  5192. " int UserId = $1.UserId; //创客Id",
  5193. " int ProductId = $1.ProductId; //商品Id",
  5194. " string ProductName = $1.ProductName; //商品名称",
  5195. " decimal ProductPrice = $1.ProductPrice; //商品单价",
  5196. " int ProductCount = $1.ProductCount; //商品数量",
  5197. " decimal TotalPrice = $1.TotalPrice; //小计",
  5198. " int MerchantId = $1.MerchantId; //商家Id",
  5199. " decimal TotalIntegral = $1.TotalIntegral; //积分",
  5200. " string ProductPhoto = $1.ProductPhoto; //商品缩略图",
  5201. " string NormId = $1.NormId; //规格Id",
  5202. " string NormDetail = $1.NormDetail; //规则描述",
  5203. " decimal ProductIntegral = $1.ProductIntegral; //商品抵扣积分",
  5204. " string ProductCode = $1.ProductCode; //商品编号",
  5205. " int StoreId = $1.StoreId; //发货仓库",
  5206. " string SnNos = $1.SnNos; //SN编号",
  5207. "}"
  5208. ]
  5209. },
  5210. "查询某个订单商品,并赋值": {
  5211. "prefix": "ym-db-OrderProduct-Update",
  5212. "body": [
  5213. "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
  5214. "if ($1 != null)",
  5215. "{",
  5216. " $1.OrderId = $2; //订单Id",
  5217. " $1.UserId = $3; //创客Id",
  5218. " $1.ProductId = $4; //商品Id",
  5219. " $1.ProductName = $5; //商品名称",
  5220. " $1.ProductPrice = $6; //商品单价",
  5221. " $1.ProductCount = $7; //商品数量",
  5222. " $1.TotalPrice = $8; //小计",
  5223. " $1.MerchantId = $9; //商家Id",
  5224. " $1.TotalIntegral = $10; //积分",
  5225. " $1.ProductPhoto = $11; //商品缩略图",
  5226. " $1.NormId = $12; //规格Id",
  5227. " $1.NormDetail = $13; //规则描述",
  5228. " $1.ProductIntegral = $14; //商品抵扣积分",
  5229. " $1.ProductCode = $15; //商品编号",
  5230. " $1.StoreId = $16; //发货仓库",
  5231. " $1.SnNos = $17; //SN编号",
  5232. "}"
  5233. ]
  5234. },
  5235. "获取订单商品数量": {
  5236. "prefix": "ym-db-OrderProduct-FindAndCount",
  5237. "body": [
  5238. "int $1 = db.OrderProduct.Count(m => $2);",
  5239. ]
  5240. },
  5241. "添加订单商品": {
  5242. "prefix": "ym-db-OrderProduct-Create",
  5243. "body": [
  5244. "db.OrderProduct.Add(new OrderProduct()",
  5245. "{",
  5246. " CreateDate = DateTime.Now,",
  5247. " UpdateDate = DateTime.Now,",
  5248. " OrderId = $1, //订单Id",
  5249. " UserId = $2, //创客Id",
  5250. " ProductId = $3, //商品Id",
  5251. " ProductName = $4, //商品名称",
  5252. " ProductPrice = $5, //商品单价",
  5253. " ProductCount = $6, //商品数量",
  5254. " TotalPrice = $7, //小计",
  5255. " MerchantId = $8, //商家Id",
  5256. " TotalIntegral = $9, //积分",
  5257. " ProductPhoto = $10, //商品缩略图",
  5258. " NormId = $11, //规格Id",
  5259. " NormDetail = $12, //规则描述",
  5260. " ProductIntegral = $13, //商品抵扣积分",
  5261. " ProductCode = $14, //商品编号",
  5262. " StoreId = $15, //发货仓库",
  5263. " SnNos = $16, //SN编号",
  5264. "});"
  5265. ]
  5266. },"删除某个订单商品": {
  5267. "prefix": "ym-db-OrderProduct-Delete",
  5268. "body": [
  5269. "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
  5270. "if ($1 != null)",
  5271. "{",
  5272. " db.OrderProduct.Remove($1);",
  5273. "}"
  5274. ]
  5275. },
  5276. "查询退款申请列表": {
  5277. "prefix": "ym-db-OrderRefund-Find",
  5278. "body": [
  5279. "List<OrderRefund> $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5280. "foreach (OrderRefund $3 in $1)",
  5281. "{",
  5282. "}"
  5283. ]
  5284. },
  5285. "查询退款申请列表,并取值": {
  5286. "prefix": "ym-db-OrderRefund-FindWithData",
  5287. "body": [
  5288. "List<OrderRefund> $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5289. "foreach (OrderRefund $3 in $1)",
  5290. "{",
  5291. " int UserId = $3.UserId; //创客Id",
  5292. " int OrderId = $3.OrderId; //订单Id",
  5293. " string ProductId = $3.ProductId; //商品Id",
  5294. " int Reason = $3.Reason; //退款原因",
  5295. " decimal Amount = $3.Amount; //退款金额",
  5296. " string Contents = $3.Contents; //补充说明",
  5297. " string Mobile = $3.Mobile; //申请人手机号",
  5298. " int MerchantId = $3.MerchantId; //商家Id",
  5299. " int GoodStatus = $3.GoodStatus; //货物状态",
  5300. " string Photos = $3.Photos; //凭证",
  5301. " int ErpCompany = $3.ErpCompany; //快递公司",
  5302. " string ErpCode = $3.ErpCode; //快递运单号",
  5303. "}"
  5304. ]
  5305. },
  5306. "查询退款申请": {
  5307. "prefix": "ym-db-OrderRefund-Exist",
  5308. "body": [
  5309. "bool $1 = db.OrderRefund.Any(m => m.Id == $2);",
  5310. ]
  5311. },
  5312. "查询某个退款申请,并取值": {
  5313. "prefix": "ym-db-OrderRefund-FindByPrimaryKey",
  5314. "body": [
  5315. "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
  5316. "if ($1 != null)",
  5317. "{",
  5318. " int UserId = $1.UserId; //创客Id",
  5319. " int OrderId = $1.OrderId; //订单Id",
  5320. " string ProductId = $1.ProductId; //商品Id",
  5321. " int Reason = $1.Reason; //退款原因",
  5322. " decimal Amount = $1.Amount; //退款金额",
  5323. " string Contents = $1.Contents; //补充说明",
  5324. " string Mobile = $1.Mobile; //申请人手机号",
  5325. " int MerchantId = $1.MerchantId; //商家Id",
  5326. " int GoodStatus = $1.GoodStatus; //货物状态",
  5327. " string Photos = $1.Photos; //凭证",
  5328. " int ErpCompany = $1.ErpCompany; //快递公司",
  5329. " string ErpCode = $1.ErpCode; //快递运单号",
  5330. "}"
  5331. ]
  5332. },
  5333. "查询某个退款申请,并赋值": {
  5334. "prefix": "ym-db-OrderRefund-Update",
  5335. "body": [
  5336. "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
  5337. "if ($1 != null)",
  5338. "{",
  5339. " $1.UserId = $2; //创客Id",
  5340. " $1.OrderId = $3; //订单Id",
  5341. " $1.ProductId = $4; //商品Id",
  5342. " $1.Reason = $5; //退款原因",
  5343. " $1.Amount = $6; //退款金额",
  5344. " $1.Contents = $7; //补充说明",
  5345. " $1.Mobile = $8; //申请人手机号",
  5346. " $1.MerchantId = $9; //商家Id",
  5347. " $1.GoodStatus = $10; //货物状态",
  5348. " $1.Photos = $11; //凭证",
  5349. " $1.ErpCompany = $12; //快递公司",
  5350. " $1.ErpCode = $13; //快递运单号",
  5351. "}"
  5352. ]
  5353. },
  5354. "获取退款申请数量": {
  5355. "prefix": "ym-db-OrderRefund-FindAndCount",
  5356. "body": [
  5357. "int $1 = db.OrderRefund.Count(m => $2);",
  5358. ]
  5359. },
  5360. "添加退款申请": {
  5361. "prefix": "ym-db-OrderRefund-Create",
  5362. "body": [
  5363. "db.OrderRefund.Add(new OrderRefund()",
  5364. "{",
  5365. " CreateDate = DateTime.Now,",
  5366. " UpdateDate = DateTime.Now,",
  5367. " UserId = $1, //创客Id",
  5368. " OrderId = $2, //订单Id",
  5369. " ProductId = $3, //商品Id",
  5370. " Reason = $4, //退款原因",
  5371. " Amount = $5, //退款金额",
  5372. " Contents = $6, //补充说明",
  5373. " Mobile = $7, //申请人手机号",
  5374. " MerchantId = $8, //商家Id",
  5375. " GoodStatus = $9, //货物状态",
  5376. " Photos = $10, //凭证",
  5377. " ErpCompany = $11, //快递公司",
  5378. " ErpCode = $12, //快递运单号",
  5379. "});"
  5380. ]
  5381. },"删除某个退款申请": {
  5382. "prefix": "ym-db-OrderRefund-Delete",
  5383. "body": [
  5384. "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
  5385. "if ($1 != null)",
  5386. "{",
  5387. " db.OrderRefund.Remove($1);",
  5388. "}"
  5389. ]
  5390. },
  5391. "查询退款原因列表": {
  5392. "prefix": "ym-db-OrderRefundReason-Find",
  5393. "body": [
  5394. "List<OrderRefundReason> $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5395. "foreach (OrderRefundReason $3 in $1)",
  5396. "{",
  5397. "}"
  5398. ]
  5399. },
  5400. "查询退款原因列表,并取值": {
  5401. "prefix": "ym-db-OrderRefundReason-FindWithData",
  5402. "body": [
  5403. "List<OrderRefundReason> $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5404. "foreach (OrderRefundReason $3 in $1)",
  5405. "{",
  5406. " string Name = $3.Name; //名称",
  5407. "}"
  5408. ]
  5409. },
  5410. "查询退款原因": {
  5411. "prefix": "ym-db-OrderRefundReason-Exist",
  5412. "body": [
  5413. "bool $1 = db.OrderRefundReason.Any(m => m.Id == $2);",
  5414. ]
  5415. },
  5416. "查询某个退款原因,并取值": {
  5417. "prefix": "ym-db-OrderRefundReason-FindByPrimaryKey",
  5418. "body": [
  5419. "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
  5420. "if ($1 != null)",
  5421. "{",
  5422. " string Name = $1.Name; //名称",
  5423. "}"
  5424. ]
  5425. },
  5426. "查询某个退款原因,并赋值": {
  5427. "prefix": "ym-db-OrderRefundReason-Update",
  5428. "body": [
  5429. "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
  5430. "if ($1 != null)",
  5431. "{",
  5432. " $1.Name = $2; //名称",
  5433. "}"
  5434. ]
  5435. },
  5436. "获取退款原因数量": {
  5437. "prefix": "ym-db-OrderRefundReason-FindAndCount",
  5438. "body": [
  5439. "int $1 = db.OrderRefundReason.Count(m => $2);",
  5440. ]
  5441. },
  5442. "添加退款原因": {
  5443. "prefix": "ym-db-OrderRefundReason-Create",
  5444. "body": [
  5445. "db.OrderRefundReason.Add(new OrderRefundReason()",
  5446. "{",
  5447. " CreateDate = DateTime.Now,",
  5448. " UpdateDate = DateTime.Now,",
  5449. " Name = $1, //名称",
  5450. "});"
  5451. ]
  5452. },"删除某个退款原因": {
  5453. "prefix": "ym-db-OrderRefundReason-Delete",
  5454. "body": [
  5455. "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
  5456. "if ($1 != null)",
  5457. "{",
  5458. " db.OrderRefundReason.Remove($1);",
  5459. "}"
  5460. ]
  5461. },
  5462. "查询创客订单列表": {
  5463. "prefix": "ym-db-Orders-Find",
  5464. "body": [
  5465. "List<Orders> $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5466. "foreach (Orders $3 in $1)",
  5467. "{",
  5468. "}"
  5469. ]
  5470. },
  5471. "查询创客订单列表,并取值": {
  5472. "prefix": "ym-db-Orders-FindWithData",
  5473. "body": [
  5474. "List<Orders> $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5475. "foreach (Orders $3 in $1)",
  5476. "{",
  5477. " int UserId = $3.UserId; //创客",
  5478. " string OrderNo = $3.OrderNo; //订单号",
  5479. " string RealName = $3.RealName; //姓名",
  5480. " string Mobile = $3.Mobile; //手机号",
  5481. " decimal TotalPrice = $3.TotalPrice; //总价",
  5482. " string Areas = $3.Areas; //所在地区",
  5483. " string Address = $3.Address; //详细地址",
  5484. " string PostalCode = $3.PostalCode; //邮政编码",
  5485. " int ErpMode = $3.ErpMode; //配送方式",
  5486. " string UserMessage = $3.UserMessage; //买家留言",
  5487. " int CouponId = $3.CouponId; //优惠券Id",
  5488. " string ErpName = $3.ErpName; //物流名称",
  5489. " string ErpCode = $3.ErpCode; //运单号",
  5490. " DateTime PayDate = $3.PayDate; //付款时间",
  5491. " DateTime SendDate = $3.SendDate; //发货时间",
  5492. " DateTime ConfirmDate = $3.ConfirmDate; //确认时间",
  5493. " int PayMode = $3.PayMode; //支付方式",
  5494. " int MerchantId = $3.MerchantId; //商家Id",
  5495. " decimal ErpPrice = $3.ErpPrice; //运费",
  5496. " decimal Integral = $3.Integral; //积分抵扣",
  5497. " string TradeNo = $3.TradeNo; //支付交易号",
  5498. " decimal CouponMoney = $3.CouponMoney; //优惠金额",
  5499. " DateTime AutoConfirmDate = $3.AutoConfirmDate; //自动确认时间",
  5500. " decimal ActualPay = $3.ActualPay; //实付款",
  5501. " int StoreId = $3.StoreId; //仓库",
  5502. " int RefundStatus = $3.RefundStatus; //退款状态",
  5503. " decimal RefundActAmount = $3.RefundActAmount; //实际退款金额",
  5504. " decimal RefundFeeAmount = $3.RefundFeeAmount; //退款手续费",
  5505. " int DeliveryType = $3.DeliveryType; //提货类型",
  5506. " string ReqData = $3.ReqData; //请求数据",
  5507. " string ResData = $3.ResData; //响应数据",
  5508. " string ReturnMsg = $3.ReturnMsg; //返回信息",
  5509. " string ReturnCode = $3.ReturnCode; //返回编码",
  5510. " int SendStatus = $3.SendStatus; //发货状态",
  5511. " int ProductId = $3.ProductId; //商品名称",
  5512. " string StoreContact = $3.StoreContact; //仓库联系人",
  5513. " int StoreType = $3.StoreType; //仓库类型",
  5514. " int StoreUserId = $3.StoreUserId; //仓库归属创客",
  5515. " int TopUserId = $3.TopUserId; //顶级创客",
  5516. " int PayStatus = $3.PayStatus; //支付状态",
  5517. " int BuyCount = $3.BuyCount; //下单数量",
  5518. " string Remark = $3.Remark; //订单备注",
  5519. " string SnNos = $3.SnNos; //SN编号",
  5520. " string StoreContactMobile = $3.StoreContactMobile; //仓库联系人电话",
  5521. " decimal ChannelAmount = $3.ChannelAmount; //渠道返回实际金额",
  5522. " string RefundReason = $3.RefundReason; //退货原因",
  5523. "}"
  5524. ]
  5525. },
  5526. "查询创客订单": {
  5527. "prefix": "ym-db-Orders-Exist",
  5528. "body": [
  5529. "bool $1 = db.Orders.Any(m => m.Id == $2);",
  5530. ]
  5531. },
  5532. "查询某个创客订单,并取值": {
  5533. "prefix": "ym-db-Orders-FindByPrimaryKey",
  5534. "body": [
  5535. "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
  5536. "if ($1 != null)",
  5537. "{",
  5538. " int UserId = $1.UserId; //创客",
  5539. " string OrderNo = $1.OrderNo; //订单号",
  5540. " string RealName = $1.RealName; //姓名",
  5541. " string Mobile = $1.Mobile; //手机号",
  5542. " decimal TotalPrice = $1.TotalPrice; //总价",
  5543. " string Areas = $1.Areas; //所在地区",
  5544. " string Address = $1.Address; //详细地址",
  5545. " string PostalCode = $1.PostalCode; //邮政编码",
  5546. " int ErpMode = $1.ErpMode; //配送方式",
  5547. " string UserMessage = $1.UserMessage; //买家留言",
  5548. " int CouponId = $1.CouponId; //优惠券Id",
  5549. " string ErpName = $1.ErpName; //物流名称",
  5550. " string ErpCode = $1.ErpCode; //运单号",
  5551. " DateTime PayDate = $1.PayDate; //付款时间",
  5552. " DateTime SendDate = $1.SendDate; //发货时间",
  5553. " DateTime ConfirmDate = $1.ConfirmDate; //确认时间",
  5554. " int PayMode = $1.PayMode; //支付方式",
  5555. " int MerchantId = $1.MerchantId; //商家Id",
  5556. " decimal ErpPrice = $1.ErpPrice; //运费",
  5557. " decimal Integral = $1.Integral; //积分抵扣",
  5558. " string TradeNo = $1.TradeNo; //支付交易号",
  5559. " decimal CouponMoney = $1.CouponMoney; //优惠金额",
  5560. " DateTime AutoConfirmDate = $1.AutoConfirmDate; //自动确认时间",
  5561. " decimal ActualPay = $1.ActualPay; //实付款",
  5562. " int StoreId = $1.StoreId; //仓库",
  5563. " int RefundStatus = $1.RefundStatus; //退款状态",
  5564. " decimal RefundActAmount = $1.RefundActAmount; //实际退款金额",
  5565. " decimal RefundFeeAmount = $1.RefundFeeAmount; //退款手续费",
  5566. " int DeliveryType = $1.DeliveryType; //提货类型",
  5567. " string ReqData = $1.ReqData; //请求数据",
  5568. " string ResData = $1.ResData; //响应数据",
  5569. " string ReturnMsg = $1.ReturnMsg; //返回信息",
  5570. " string ReturnCode = $1.ReturnCode; //返回编码",
  5571. " int SendStatus = $1.SendStatus; //发货状态",
  5572. " int ProductId = $1.ProductId; //商品名称",
  5573. " string StoreContact = $1.StoreContact; //仓库联系人",
  5574. " int StoreType = $1.StoreType; //仓库类型",
  5575. " int StoreUserId = $1.StoreUserId; //仓库归属创客",
  5576. " int TopUserId = $1.TopUserId; //顶级创客",
  5577. " int PayStatus = $1.PayStatus; //支付状态",
  5578. " int BuyCount = $1.BuyCount; //下单数量",
  5579. " string Remark = $1.Remark; //订单备注",
  5580. " string SnNos = $1.SnNos; //SN编号",
  5581. " string StoreContactMobile = $1.StoreContactMobile; //仓库联系人电话",
  5582. " decimal ChannelAmount = $1.ChannelAmount; //渠道返回实际金额",
  5583. " string RefundReason = $1.RefundReason; //退货原因",
  5584. "}"
  5585. ]
  5586. },
  5587. "查询某个创客订单,并赋值": {
  5588. "prefix": "ym-db-Orders-Update",
  5589. "body": [
  5590. "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
  5591. "if ($1 != null)",
  5592. "{",
  5593. " $1.UserId = $2; //创客",
  5594. " $1.OrderNo = $3; //订单号",
  5595. " $1.RealName = $4; //姓名",
  5596. " $1.Mobile = $5; //手机号",
  5597. " $1.TotalPrice = $6; //总价",
  5598. " $1.Areas = $7; //所在地区",
  5599. " $1.Address = $8; //详细地址",
  5600. " $1.PostalCode = $9; //邮政编码",
  5601. " $1.ErpMode = $10; //配送方式",
  5602. " $1.UserMessage = $11; //买家留言",
  5603. " $1.CouponId = $12; //优惠券Id",
  5604. " $1.ErpName = $13; //物流名称",
  5605. " $1.ErpCode = $14; //运单号",
  5606. " $1.PayDate = $15; //付款时间",
  5607. " $1.SendDate = $16; //发货时间",
  5608. " $1.ConfirmDate = $17; //确认时间",
  5609. " $1.PayMode = $18; //支付方式",
  5610. " $1.MerchantId = $19; //商家Id",
  5611. " $1.ErpPrice = $20; //运费",
  5612. " $1.Integral = $21; //积分抵扣",
  5613. " $1.TradeNo = $22; //支付交易号",
  5614. " $1.CouponMoney = $23; //优惠金额",
  5615. " $1.AutoConfirmDate = $24; //自动确认时间",
  5616. " $1.ActualPay = $25; //实付款",
  5617. " $1.StoreId = $26; //仓库",
  5618. " $1.RefundStatus = $27; //退款状态",
  5619. " $1.RefundActAmount = $28; //实际退款金额",
  5620. " $1.RefundFeeAmount = $29; //退款手续费",
  5621. " $1.DeliveryType = $30; //提货类型",
  5622. " $1.ReqData = $31; //请求数据",
  5623. " $1.ResData = $32; //响应数据",
  5624. " $1.ReturnMsg = $33; //返回信息",
  5625. " $1.ReturnCode = $34; //返回编码",
  5626. " $1.SendStatus = $35; //发货状态",
  5627. " $1.ProductId = $36; //商品名称",
  5628. " $1.StoreContact = $37; //仓库联系人",
  5629. " $1.StoreType = $38; //仓库类型",
  5630. " $1.StoreUserId = $39; //仓库归属创客",
  5631. " $1.TopUserId = $40; //顶级创客",
  5632. " $1.PayStatus = $41; //支付状态",
  5633. " $1.BuyCount = $42; //下单数量",
  5634. " $1.Remark = $43; //订单备注",
  5635. " $1.SnNos = $44; //SN编号",
  5636. " $1.StoreContactMobile = $45; //仓库联系人电话",
  5637. " $1.ChannelAmount = $46; //渠道返回实际金额",
  5638. " $1.RefundReason = $47; //退货原因",
  5639. "}"
  5640. ]
  5641. },
  5642. "获取创客订单数量": {
  5643. "prefix": "ym-db-Orders-FindAndCount",
  5644. "body": [
  5645. "int $1 = db.Orders.Count(m => $2);",
  5646. ]
  5647. },
  5648. "添加创客订单": {
  5649. "prefix": "ym-db-Orders-Create",
  5650. "body": [
  5651. "db.Orders.Add(new Orders()",
  5652. "{",
  5653. " CreateDate = DateTime.Now,",
  5654. " UpdateDate = DateTime.Now,",
  5655. " UserId = $1, //创客",
  5656. " OrderNo = $2, //订单号",
  5657. " RealName = $3, //姓名",
  5658. " Mobile = $4, //手机号",
  5659. " TotalPrice = $5, //总价",
  5660. " Areas = $6, //所在地区",
  5661. " Address = $7, //详细地址",
  5662. " PostalCode = $8, //邮政编码",
  5663. " ErpMode = $9, //配送方式",
  5664. " UserMessage = $10, //买家留言",
  5665. " CouponId = $11, //优惠券Id",
  5666. " ErpName = $12, //物流名称",
  5667. " ErpCode = $13, //运单号",
  5668. " PayDate = $14, //付款时间",
  5669. " SendDate = $15, //发货时间",
  5670. " ConfirmDate = $16, //确认时间",
  5671. " PayMode = $17, //支付方式",
  5672. " MerchantId = $18, //商家Id",
  5673. " ErpPrice = $19, //运费",
  5674. " Integral = $20, //积分抵扣",
  5675. " TradeNo = $21, //支付交易号",
  5676. " CouponMoney = $22, //优惠金额",
  5677. " AutoConfirmDate = $23, //自动确认时间",
  5678. " ActualPay = $24, //实付款",
  5679. " StoreId = $25, //仓库",
  5680. " RefundStatus = $26, //退款状态",
  5681. " RefundActAmount = $27, //实际退款金额",
  5682. " RefundFeeAmount = $28, //退款手续费",
  5683. " DeliveryType = $29, //提货类型",
  5684. " ReqData = $30, //请求数据",
  5685. " ResData = $31, //响应数据",
  5686. " ReturnMsg = $32, //返回信息",
  5687. " ReturnCode = $33, //返回编码",
  5688. " SendStatus = $34, //发货状态",
  5689. " ProductId = $35, //商品名称",
  5690. " StoreContact = $36, //仓库联系人",
  5691. " StoreType = $37, //仓库类型",
  5692. " StoreUserId = $38, //仓库归属创客",
  5693. " TopUserId = $39, //顶级创客",
  5694. " PayStatus = $40, //支付状态",
  5695. " BuyCount = $41, //下单数量",
  5696. " Remark = $42, //订单备注",
  5697. " SnNos = $43, //SN编号",
  5698. " StoreContactMobile = $44, //仓库联系人电话",
  5699. " ChannelAmount = $45, //渠道返回实际金额",
  5700. " RefundReason = $46, //退货原因",
  5701. "});"
  5702. ]
  5703. },"删除某个创客订单": {
  5704. "prefix": "ym-db-Orders-Delete",
  5705. "body": [
  5706. "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
  5707. "if ($1 != null)",
  5708. "{",
  5709. " db.Orders.Remove($1);",
  5710. "}"
  5711. ]
  5712. },
  5713. "查询页面模板更新信息列表": {
  5714. "prefix": "ym-db-PageUpdateInfo-Find",
  5715. "body": [
  5716. "List<PageUpdateInfo> $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5717. "foreach (PageUpdateInfo $3 in $1)",
  5718. "{",
  5719. "}"
  5720. ]
  5721. },
  5722. "查询页面模板更新信息列表,并取值": {
  5723. "prefix": "ym-db-PageUpdateInfo-FindWithData",
  5724. "body": [
  5725. "List<PageUpdateInfo> $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5726. "foreach (PageUpdateInfo $3 in $1)",
  5727. "{",
  5728. " int ModuleVersion = $3.ModuleVersion; //模板更新版本",
  5729. " string ModulePath = $3.ModulePath; //模板路径",
  5730. " string BgColor = $3.BgColor; //背景色",
  5731. " string TextColor = $3.TextColor; //前景色",
  5732. " string StatusBarStyle = $3.StatusBarStyle; //苹果状态栏",
  5733. " ulong ShowTitle = $3.ShowTitle; //是否显示头部",
  5734. " string Title = $3.Title; //顶部标题",
  5735. " ulong IsScrollBar = $3.IsScrollBar; //是否显示滚动条",
  5736. " ulong IsSkid = $3.IsSkid; //是否侧滑返回",
  5737. " string LeftBtn1 = $3.LeftBtn1; //左侧按钮1",
  5738. " string LeftBtn2 = $3.LeftBtn2; //左侧按钮2",
  5739. " string RightBtn1 = $3.RightBtn1; //右侧按钮1",
  5740. " string RightBtn2 = $3.RightBtn2; //右侧按钮2",
  5741. " string LeftAction1 = $3.LeftAction1; //左侧按钮1点击事件",
  5742. " string LeftAction2 = $3.LeftAction2; //左侧按钮2点击事件",
  5743. " string RightAction1 = $3.RightAction1; //右侧按钮1点击事件",
  5744. " string RightAction2 = $3.RightAction2; //右侧按钮2点击事件",
  5745. " string GotoPages = $3.GotoPages; //下级页面",
  5746. " ulong MustUpdate = $3.MustUpdate; //是否强制更新",
  5747. "}"
  5748. ]
  5749. },
  5750. "查询页面模板更新信息": {
  5751. "prefix": "ym-db-PageUpdateInfo-Exist",
  5752. "body": [
  5753. "bool $1 = db.PageUpdateInfo.Any(m => m.Id == $2);",
  5754. ]
  5755. },
  5756. "查询某个页面模板更新信息,并取值": {
  5757. "prefix": "ym-db-PageUpdateInfo-FindByPrimaryKey",
  5758. "body": [
  5759. "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  5760. "if ($1 != null)",
  5761. "{",
  5762. " int ModuleVersion = $1.ModuleVersion; //模板更新版本",
  5763. " string ModulePath = $1.ModulePath; //模板路径",
  5764. " string BgColor = $1.BgColor; //背景色",
  5765. " string TextColor = $1.TextColor; //前景色",
  5766. " string StatusBarStyle = $1.StatusBarStyle; //苹果状态栏",
  5767. " ulong ShowTitle = $1.ShowTitle; //是否显示头部",
  5768. " string Title = $1.Title; //顶部标题",
  5769. " ulong IsScrollBar = $1.IsScrollBar; //是否显示滚动条",
  5770. " ulong IsSkid = $1.IsSkid; //是否侧滑返回",
  5771. " string LeftBtn1 = $1.LeftBtn1; //左侧按钮1",
  5772. " string LeftBtn2 = $1.LeftBtn2; //左侧按钮2",
  5773. " string RightBtn1 = $1.RightBtn1; //右侧按钮1",
  5774. " string RightBtn2 = $1.RightBtn2; //右侧按钮2",
  5775. " string LeftAction1 = $1.LeftAction1; //左侧按钮1点击事件",
  5776. " string LeftAction2 = $1.LeftAction2; //左侧按钮2点击事件",
  5777. " string RightAction1 = $1.RightAction1; //右侧按钮1点击事件",
  5778. " string RightAction2 = $1.RightAction2; //右侧按钮2点击事件",
  5779. " string GotoPages = $1.GotoPages; //下级页面",
  5780. " ulong MustUpdate = $1.MustUpdate; //是否强制更新",
  5781. "}"
  5782. ]
  5783. },
  5784. "查询某个页面模板更新信息,并赋值": {
  5785. "prefix": "ym-db-PageUpdateInfo-Update",
  5786. "body": [
  5787. "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  5788. "if ($1 != null)",
  5789. "{",
  5790. " $1.ModuleVersion = $2; //模板更新版本",
  5791. " $1.ModulePath = $3; //模板路径",
  5792. " $1.BgColor = $4; //背景色",
  5793. " $1.TextColor = $5; //前景色",
  5794. " $1.StatusBarStyle = $6; //苹果状态栏",
  5795. " $1.ShowTitle = $7; //是否显示头部",
  5796. " $1.Title = $8; //顶部标题",
  5797. " $1.IsScrollBar = $9; //是否显示滚动条",
  5798. " $1.IsSkid = $10; //是否侧滑返回",
  5799. " $1.LeftBtn1 = $11; //左侧按钮1",
  5800. " $1.LeftBtn2 = $12; //左侧按钮2",
  5801. " $1.RightBtn1 = $13; //右侧按钮1",
  5802. " $1.RightBtn2 = $14; //右侧按钮2",
  5803. " $1.LeftAction1 = $15; //左侧按钮1点击事件",
  5804. " $1.LeftAction2 = $16; //左侧按钮2点击事件",
  5805. " $1.RightAction1 = $17; //右侧按钮1点击事件",
  5806. " $1.RightAction2 = $18; //右侧按钮2点击事件",
  5807. " $1.GotoPages = $19; //下级页面",
  5808. " $1.MustUpdate = $20; //是否强制更新",
  5809. "}"
  5810. ]
  5811. },
  5812. "获取页面模板更新信息数量": {
  5813. "prefix": "ym-db-PageUpdateInfo-FindAndCount",
  5814. "body": [
  5815. "int $1 = db.PageUpdateInfo.Count(m => $2);",
  5816. ]
  5817. },
  5818. "添加页面模板更新信息": {
  5819. "prefix": "ym-db-PageUpdateInfo-Create",
  5820. "body": [
  5821. "db.PageUpdateInfo.Add(new PageUpdateInfo()",
  5822. "{",
  5823. " CreateDate = DateTime.Now,",
  5824. " UpdateDate = DateTime.Now,",
  5825. " ModuleVersion = $1, //模板更新版本",
  5826. " ModulePath = $2, //模板路径",
  5827. " BgColor = $3, //背景色",
  5828. " TextColor = $4, //前景色",
  5829. " StatusBarStyle = $5, //苹果状态栏",
  5830. " ShowTitle = $6, //是否显示头部",
  5831. " Title = $7, //顶部标题",
  5832. " IsScrollBar = $8, //是否显示滚动条",
  5833. " IsSkid = $9, //是否侧滑返回",
  5834. " LeftBtn1 = $10, //左侧按钮1",
  5835. " LeftBtn2 = $11, //左侧按钮2",
  5836. " RightBtn1 = $12, //右侧按钮1",
  5837. " RightBtn2 = $13, //右侧按钮2",
  5838. " LeftAction1 = $14, //左侧按钮1点击事件",
  5839. " LeftAction2 = $15, //左侧按钮2点击事件",
  5840. " RightAction1 = $16, //右侧按钮1点击事件",
  5841. " RightAction2 = $17, //右侧按钮2点击事件",
  5842. " GotoPages = $18, //下级页面",
  5843. " MustUpdate = $19, //是否强制更新",
  5844. "});"
  5845. ]
  5846. },"删除某个页面模板更新信息": {
  5847. "prefix": "ym-db-PageUpdateInfo-Delete",
  5848. "body": [
  5849. "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  5850. "if ($1 != null)",
  5851. "{",
  5852. " db.PageUpdateInfo.Remove($1);",
  5853. "}"
  5854. ]
  5855. },
  5856. "查询机具库列表": {
  5857. "prefix": "ym-db-PosMachines-Find",
  5858. "body": [
  5859. "List<PosMachines> $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5860. "foreach (PosMachines $3 in $1)",
  5861. "{",
  5862. "}"
  5863. ]
  5864. },
  5865. "查询机具库列表,并取值": {
  5866. "prefix": "ym-db-PosMachines-FindWithData",
  5867. "body": [
  5868. "List<PosMachines> $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5869. "foreach (PosMachines $3 in $1)",
  5870. "{",
  5871. " int BindingState = $3.BindingState; //绑定状态",
  5872. " int ActivationState = $3.ActivationState; //激活状态",
  5873. " string Detail = $3.Detail; //机具详情",
  5874. " DateTime ActivationTime = $3.ActivationTime; //激活时间",
  5875. " DateTime BindingTime = $3.BindingTime; //绑定时间",
  5876. " int UserId = $3.UserId; //所属创客",
  5877. " ulong IsPurchase = $3.IsPurchase; //是否卖出",
  5878. " string PosSn = $3.PosSn; //SN编号",
  5879. " DateTime TransferTime = $3.TransferTime; //划拨时间",
  5880. " int BuyUserId = $3.BuyUserId; //购买人",
  5881. " string UserNav = $3.UserNav; //所属创客上级集合",
  5882. " int BrandId = $3.BrandId; //产品类型",
  5883. " decimal CreditTrade = $3.CreditTrade; //贷记卡交易额",
  5884. " ulong IsVip = $3.IsVip; //是否VIP",
  5885. " string PrizeParams = $3.PrizeParams; //附加参数",
  5886. " int RecycBackCount = $3.RecycBackCount; //循环返券张数",
  5887. " int StoreId = $3.StoreId; //所在仓库",
  5888. " decimal DebitCardTrade = $3.DebitCardTrade; //借记卡交易额",
  5889. " decimal ScanQrTrade = $3.ScanQrTrade; //扫码交易额",
  5890. " string ActivityList = $3.ActivityList; //参加活动",
  5891. " int BindMerchantId = $3.BindMerchantId; //绑定商户",
  5892. " int PosSnType = $3.PosSnType; //机具类型",
  5893. " string DeviceType = $3.DeviceType; //设备类型",
  5894. "}"
  5895. ]
  5896. },
  5897. "查询机具库": {
  5898. "prefix": "ym-db-PosMachines-Exist",
  5899. "body": [
  5900. "bool $1 = db.PosMachines.Any(m => m.Id == $2);",
  5901. ]
  5902. },
  5903. "查询某个机具库,并取值": {
  5904. "prefix": "ym-db-PosMachines-FindByPrimaryKey",
  5905. "body": [
  5906. "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
  5907. "if ($1 != null)",
  5908. "{",
  5909. " int BindingState = $1.BindingState; //绑定状态",
  5910. " int ActivationState = $1.ActivationState; //激活状态",
  5911. " string Detail = $1.Detail; //机具详情",
  5912. " DateTime ActivationTime = $1.ActivationTime; //激活时间",
  5913. " DateTime BindingTime = $1.BindingTime; //绑定时间",
  5914. " int UserId = $1.UserId; //所属创客",
  5915. " ulong IsPurchase = $1.IsPurchase; //是否卖出",
  5916. " string PosSn = $1.PosSn; //SN编号",
  5917. " DateTime TransferTime = $1.TransferTime; //划拨时间",
  5918. " int BuyUserId = $1.BuyUserId; //购买人",
  5919. " string UserNav = $1.UserNav; //所属创客上级集合",
  5920. " int BrandId = $1.BrandId; //产品类型",
  5921. " decimal CreditTrade = $1.CreditTrade; //贷记卡交易额",
  5922. " ulong IsVip = $1.IsVip; //是否VIP",
  5923. " string PrizeParams = $1.PrizeParams; //附加参数",
  5924. " int RecycBackCount = $1.RecycBackCount; //循环返券张数",
  5925. " int StoreId = $1.StoreId; //所在仓库",
  5926. " decimal DebitCardTrade = $1.DebitCardTrade; //借记卡交易额",
  5927. " decimal ScanQrTrade = $1.ScanQrTrade; //扫码交易额",
  5928. " string ActivityList = $1.ActivityList; //参加活动",
  5929. " int BindMerchantId = $1.BindMerchantId; //绑定商户",
  5930. " int PosSnType = $1.PosSnType; //机具类型",
  5931. " string DeviceType = $1.DeviceType; //设备类型",
  5932. "}"
  5933. ]
  5934. },
  5935. "查询某个机具库,并赋值": {
  5936. "prefix": "ym-db-PosMachines-Update",
  5937. "body": [
  5938. "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
  5939. "if ($1 != null)",
  5940. "{",
  5941. " $1.BindingState = $2; //绑定状态",
  5942. " $1.ActivationState = $3; //激活状态",
  5943. " $1.Detail = $4; //机具详情",
  5944. " $1.ActivationTime = $5; //激活时间",
  5945. " $1.BindingTime = $6; //绑定时间",
  5946. " $1.UserId = $7; //所属创客",
  5947. " $1.IsPurchase = $8; //是否卖出",
  5948. " $1.PosSn = $9; //SN编号",
  5949. " $1.TransferTime = $10; //划拨时间",
  5950. " $1.BuyUserId = $11; //购买人",
  5951. " $1.UserNav = $12; //所属创客上级集合",
  5952. " $1.BrandId = $13; //产品类型",
  5953. " $1.CreditTrade = $14; //贷记卡交易额",
  5954. " $1.IsVip = $15; //是否VIP",
  5955. " $1.PrizeParams = $16; //附加参数",
  5956. " $1.RecycBackCount = $17; //循环返券张数",
  5957. " $1.StoreId = $18; //所在仓库",
  5958. " $1.DebitCardTrade = $19; //借记卡交易额",
  5959. " $1.ScanQrTrade = $20; //扫码交易额",
  5960. " $1.ActivityList = $21; //参加活动",
  5961. " $1.BindMerchantId = $22; //绑定商户",
  5962. " $1.PosSnType = $23; //机具类型",
  5963. " $1.DeviceType = $24; //设备类型",
  5964. "}"
  5965. ]
  5966. },
  5967. "获取机具库数量": {
  5968. "prefix": "ym-db-PosMachines-FindAndCount",
  5969. "body": [
  5970. "int $1 = db.PosMachines.Count(m => $2);",
  5971. ]
  5972. },
  5973. "添加机具库": {
  5974. "prefix": "ym-db-PosMachines-Create",
  5975. "body": [
  5976. "db.PosMachines.Add(new PosMachines()",
  5977. "{",
  5978. " CreateDate = DateTime.Now,",
  5979. " UpdateDate = DateTime.Now,",
  5980. " BindingState = $1, //绑定状态",
  5981. " ActivationState = $2, //激活状态",
  5982. " Detail = $3, //机具详情",
  5983. " ActivationTime = $4, //激活时间",
  5984. " BindingTime = $5, //绑定时间",
  5985. " UserId = $6, //所属创客",
  5986. " IsPurchase = $7, //是否卖出",
  5987. " PosSn = $8, //SN编号",
  5988. " TransferTime = $9, //划拨时间",
  5989. " BuyUserId = $10, //购买人",
  5990. " UserNav = $11, //所属创客上级集合",
  5991. " BrandId = $12, //产品类型",
  5992. " CreditTrade = $13, //贷记卡交易额",
  5993. " IsVip = $14, //是否VIP",
  5994. " PrizeParams = $15, //附加参数",
  5995. " RecycBackCount = $16, //循环返券张数",
  5996. " StoreId = $17, //所在仓库",
  5997. " DebitCardTrade = $18, //借记卡交易额",
  5998. " ScanQrTrade = $19, //扫码交易额",
  5999. " ActivityList = $20, //参加活动",
  6000. " BindMerchantId = $21, //绑定商户",
  6001. " PosSnType = $22, //机具类型",
  6002. " DeviceType = $23, //设备类型",
  6003. "});"
  6004. ]
  6005. },"删除某个机具库": {
  6006. "prefix": "ym-db-PosMachines-Delete",
  6007. "body": [
  6008. "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
  6009. "if ($1 != null)",
  6010. "{",
  6011. " db.PosMachines.Remove($1);",
  6012. "}"
  6013. ]
  6014. },
  6015. "查询商品评价列表": {
  6016. "prefix": "ym-db-ProductComment-Find",
  6017. "body": [
  6018. "List<ProductComment> $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6019. "foreach (ProductComment $3 in $1)",
  6020. "{",
  6021. "}"
  6022. ]
  6023. },
  6024. "查询商品评价列表,并取值": {
  6025. "prefix": "ym-db-ProductComment-FindWithData",
  6026. "body": [
  6027. "List<ProductComment> $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6028. "foreach (ProductComment $3 in $1)",
  6029. "{",
  6030. " int UserId = $3.UserId; //创客Id",
  6031. " int ProductId = $3.ProductId; //商品Id",
  6032. " int OrderId = $3.OrderId; //订单Id",
  6033. " string Contents = $3.Contents; //评论内容",
  6034. " int StarNum = $3.StarNum; //商品评分",
  6035. " int AgreeCount = $3.AgreeCount; //点赞数",
  6036. " int BackCount = $3.BackCount; //回复数",
  6037. " int MerchantId = $3.MerchantId; //商家Id",
  6038. " ulong HasPhoto = $3.HasPhoto; //是否有图",
  6039. " string PhotoList = $3.PhotoList; //图集",
  6040. " int ProductNormId = $3.ProductNormId; //商品规格Id",
  6041. "}"
  6042. ]
  6043. },
  6044. "查询商品评价": {
  6045. "prefix": "ym-db-ProductComment-Exist",
  6046. "body": [
  6047. "bool $1 = db.ProductComment.Any(m => m.Id == $2);",
  6048. ]
  6049. },
  6050. "查询某个商品评价,并取值": {
  6051. "prefix": "ym-db-ProductComment-FindByPrimaryKey",
  6052. "body": [
  6053. "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
  6054. "if ($1 != null)",
  6055. "{",
  6056. " int UserId = $1.UserId; //创客Id",
  6057. " int ProductId = $1.ProductId; //商品Id",
  6058. " int OrderId = $1.OrderId; //订单Id",
  6059. " string Contents = $1.Contents; //评论内容",
  6060. " int StarNum = $1.StarNum; //商品评分",
  6061. " int AgreeCount = $1.AgreeCount; //点赞数",
  6062. " int BackCount = $1.BackCount; //回复数",
  6063. " int MerchantId = $1.MerchantId; //商家Id",
  6064. " ulong HasPhoto = $1.HasPhoto; //是否有图",
  6065. " string PhotoList = $1.PhotoList; //图集",
  6066. " int ProductNormId = $1.ProductNormId; //商品规格Id",
  6067. "}"
  6068. ]
  6069. },
  6070. "查询某个商品评价,并赋值": {
  6071. "prefix": "ym-db-ProductComment-Update",
  6072. "body": [
  6073. "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
  6074. "if ($1 != null)",
  6075. "{",
  6076. " $1.UserId = $2; //创客Id",
  6077. " $1.ProductId = $3; //商品Id",
  6078. " $1.OrderId = $4; //订单Id",
  6079. " $1.Contents = $5; //评论内容",
  6080. " $1.StarNum = $6; //商品评分",
  6081. " $1.AgreeCount = $7; //点赞数",
  6082. " $1.BackCount = $8; //回复数",
  6083. " $1.MerchantId = $9; //商家Id",
  6084. " $1.HasPhoto = $10; //是否有图",
  6085. " $1.PhotoList = $11; //图集",
  6086. " $1.ProductNormId = $12; //商品规格Id",
  6087. "}"
  6088. ]
  6089. },
  6090. "获取商品评价数量": {
  6091. "prefix": "ym-db-ProductComment-FindAndCount",
  6092. "body": [
  6093. "int $1 = db.ProductComment.Count(m => $2);",
  6094. ]
  6095. },
  6096. "添加商品评价": {
  6097. "prefix": "ym-db-ProductComment-Create",
  6098. "body": [
  6099. "db.ProductComment.Add(new ProductComment()",
  6100. "{",
  6101. " CreateDate = DateTime.Now,",
  6102. " UpdateDate = DateTime.Now,",
  6103. " UserId = $1, //创客Id",
  6104. " ProductId = $2, //商品Id",
  6105. " OrderId = $3, //订单Id",
  6106. " Contents = $4, //评论内容",
  6107. " StarNum = $5, //商品评分",
  6108. " AgreeCount = $6, //点赞数",
  6109. " BackCount = $7, //回复数",
  6110. " MerchantId = $8, //商家Id",
  6111. " HasPhoto = $9, //是否有图",
  6112. " PhotoList = $10, //图集",
  6113. " ProductNormId = $11, //商品规格Id",
  6114. "});"
  6115. ]
  6116. },"删除某个商品评价": {
  6117. "prefix": "ym-db-ProductComment-Delete",
  6118. "body": [
  6119. "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
  6120. "if ($1 != null)",
  6121. "{",
  6122. " db.ProductComment.Remove($1);",
  6123. "}"
  6124. ]
  6125. },
  6126. "查询商品评价点赞记录列表": {
  6127. "prefix": "ym-db-ProductCommentAgree-Find",
  6128. "body": [
  6129. "List<ProductCommentAgree> $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6130. "foreach (ProductCommentAgree $3 in $1)",
  6131. "{",
  6132. "}"
  6133. ]
  6134. },
  6135. "查询商品评价点赞记录列表,并取值": {
  6136. "prefix": "ym-db-ProductCommentAgree-FindWithData",
  6137. "body": [
  6138. "List<ProductCommentAgree> $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6139. "foreach (ProductCommentAgree $3 in $1)",
  6140. "{",
  6141. " int Id = $3.Id; //Id",
  6142. " int UserId = $3.UserId; //创客Id",
  6143. " int ProductCommentId = $3.ProductCommentId; //商品评价Id",
  6144. "}"
  6145. ]
  6146. },
  6147. "查询商品评价点赞记录": {
  6148. "prefix": "ym-db-ProductCommentAgree-Exist",
  6149. "body": [
  6150. "bool $1 = db.ProductCommentAgree.Any(m => m.Id == $2);",
  6151. ]
  6152. },
  6153. "查询某个商品评价点赞记录,并取值": {
  6154. "prefix": "ym-db-ProductCommentAgree-FindByPrimaryKey",
  6155. "body": [
  6156. "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
  6157. "if ($1 != null)",
  6158. "{",
  6159. " int Id = $1.Id; //Id",
  6160. " int UserId = $1.UserId; //创客Id",
  6161. " int ProductCommentId = $1.ProductCommentId; //商品评价Id",
  6162. "}"
  6163. ]
  6164. },
  6165. "查询某个商品评价点赞记录,并赋值": {
  6166. "prefix": "ym-db-ProductCommentAgree-Update",
  6167. "body": [
  6168. "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
  6169. "if ($1 != null)",
  6170. "{",
  6171. " $1.Id = $2; //Id",
  6172. " $1.UserId = $3; //创客Id",
  6173. " $1.ProductCommentId = $4; //商品评价Id",
  6174. "}"
  6175. ]
  6176. },
  6177. "获取商品评价点赞记录数量": {
  6178. "prefix": "ym-db-ProductCommentAgree-FindAndCount",
  6179. "body": [
  6180. "int $1 = db.ProductCommentAgree.Count(m => $2);",
  6181. ]
  6182. },
  6183. "添加商品评价点赞记录": {
  6184. "prefix": "ym-db-ProductCommentAgree-Create",
  6185. "body": [
  6186. "db.ProductCommentAgree.Add(new ProductCommentAgree()",
  6187. "{",
  6188. " CreateDate = DateTime.Now,",
  6189. " UpdateDate = DateTime.Now,",
  6190. " Id = $1, //Id",
  6191. " UserId = $2, //创客Id",
  6192. " ProductCommentId = $3, //商品评价Id",
  6193. "});"
  6194. ]
  6195. },"删除某个商品评价点赞记录": {
  6196. "prefix": "ym-db-ProductCommentAgree-Delete",
  6197. "body": [
  6198. "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
  6199. "if ($1 != null)",
  6200. "{",
  6201. " db.ProductCommentAgree.Remove($1);",
  6202. "}"
  6203. ]
  6204. },
  6205. "查询运费按区域列表": {
  6206. "prefix": "ym-db-ProductFareAreas-Find",
  6207. "body": [
  6208. "List<ProductFareAreas> $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6209. "foreach (ProductFareAreas $3 in $1)",
  6210. "{",
  6211. "}"
  6212. ]
  6213. },
  6214. "查询运费按区域列表,并取值": {
  6215. "prefix": "ym-db-ProductFareAreas-FindWithData",
  6216. "body": [
  6217. "List<ProductFareAreas> $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6218. "foreach (ProductFareAreas $3 in $1)",
  6219. "{",
  6220. " int MerchantId = $3.MerchantId; //商家Id",
  6221. " int TemplateId = $3.TemplateId; //模板Id",
  6222. " string Areas = $3.Areas; //地区",
  6223. " decimal FirstAmount = $3.FirstAmount; //首件数量",
  6224. " decimal FirstFee = $3.FirstFee; //首件费用",
  6225. " decimal MoreAmount = $3.MoreAmount; //续件数量",
  6226. " decimal MoreFee = $3.MoreFee; //续件费用",
  6227. "}"
  6228. ]
  6229. },
  6230. "查询运费按区域": {
  6231. "prefix": "ym-db-ProductFareAreas-Exist",
  6232. "body": [
  6233. "bool $1 = db.ProductFareAreas.Any(m => m.Id == $2);",
  6234. ]
  6235. },
  6236. "查询某个运费按区域,并取值": {
  6237. "prefix": "ym-db-ProductFareAreas-FindByPrimaryKey",
  6238. "body": [
  6239. "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
  6240. "if ($1 != null)",
  6241. "{",
  6242. " int MerchantId = $1.MerchantId; //商家Id",
  6243. " int TemplateId = $1.TemplateId; //模板Id",
  6244. " string Areas = $1.Areas; //地区",
  6245. " decimal FirstAmount = $1.FirstAmount; //首件数量",
  6246. " decimal FirstFee = $1.FirstFee; //首件费用",
  6247. " decimal MoreAmount = $1.MoreAmount; //续件数量",
  6248. " decimal MoreFee = $1.MoreFee; //续件费用",
  6249. "}"
  6250. ]
  6251. },
  6252. "查询某个运费按区域,并赋值": {
  6253. "prefix": "ym-db-ProductFareAreas-Update",
  6254. "body": [
  6255. "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
  6256. "if ($1 != null)",
  6257. "{",
  6258. " $1.MerchantId = $2; //商家Id",
  6259. " $1.TemplateId = $3; //模板Id",
  6260. " $1.Areas = $4; //地区",
  6261. " $1.FirstAmount = $5; //首件数量",
  6262. " $1.FirstFee = $6; //首件费用",
  6263. " $1.MoreAmount = $7; //续件数量",
  6264. " $1.MoreFee = $8; //续件费用",
  6265. "}"
  6266. ]
  6267. },
  6268. "获取运费按区域数量": {
  6269. "prefix": "ym-db-ProductFareAreas-FindAndCount",
  6270. "body": [
  6271. "int $1 = db.ProductFareAreas.Count(m => $2);",
  6272. ]
  6273. },
  6274. "添加运费按区域": {
  6275. "prefix": "ym-db-ProductFareAreas-Create",
  6276. "body": [
  6277. "db.ProductFareAreas.Add(new ProductFareAreas()",
  6278. "{",
  6279. " CreateDate = DateTime.Now,",
  6280. " UpdateDate = DateTime.Now,",
  6281. " MerchantId = $1, //商家Id",
  6282. " TemplateId = $2, //模板Id",
  6283. " Areas = $3, //地区",
  6284. " FirstAmount = $4, //首件数量",
  6285. " FirstFee = $5, //首件费用",
  6286. " MoreAmount = $6, //续件数量",
  6287. " MoreFee = $7, //续件费用",
  6288. "});"
  6289. ]
  6290. },"删除某个运费按区域": {
  6291. "prefix": "ym-db-ProductFareAreas-Delete",
  6292. "body": [
  6293. "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
  6294. "if ($1 != null)",
  6295. "{",
  6296. " db.ProductFareAreas.Remove($1);",
  6297. "}"
  6298. ]
  6299. },
  6300. "查询商品运费模板列表": {
  6301. "prefix": "ym-db-ProductFareTemp-Find",
  6302. "body": [
  6303. "List<ProductFareTemp> $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6304. "foreach (ProductFareTemp $3 in $1)",
  6305. "{",
  6306. "}"
  6307. ]
  6308. },
  6309. "查询商品运费模板列表,并取值": {
  6310. "prefix": "ym-db-ProductFareTemp-FindWithData",
  6311. "body": [
  6312. "List<ProductFareTemp> $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6313. "foreach (ProductFareTemp $3 in $1)",
  6314. "{",
  6315. " string Name = $3.Name; //名称",
  6316. " string SendAreas = $3.SendAreas; //发货地区",
  6317. " string SendAddress = $3.SendAddress; //发货地址",
  6318. " int SendDate = $3.SendDate; //发货时间",
  6319. " ulong IsFree = $3.IsFree; //是否包邮",
  6320. " int MeterMode = $3.MeterMode; //计价方式",
  6321. " int TransportMode = $3.TransportMode; //运送方式",
  6322. " int MerchantId = $3.MerchantId; //商家Id",
  6323. " decimal FirstAmount = $3.FirstAmount; //首件数量",
  6324. " decimal FirstFee = $3.FirstFee; //首件费用",
  6325. " decimal MoreAmount = $3.MoreAmount; //续件数量",
  6326. " decimal MoreFee = $3.MoreFee; //续件费用",
  6327. "}"
  6328. ]
  6329. },
  6330. "查询商品运费模板": {
  6331. "prefix": "ym-db-ProductFareTemp-Exist",
  6332. "body": [
  6333. "bool $1 = db.ProductFareTemp.Any(m => m.Id == $2);",
  6334. ]
  6335. },
  6336. "查询某个商品运费模板,并取值": {
  6337. "prefix": "ym-db-ProductFareTemp-FindByPrimaryKey",
  6338. "body": [
  6339. "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
  6340. "if ($1 != null)",
  6341. "{",
  6342. " string Name = $1.Name; //名称",
  6343. " string SendAreas = $1.SendAreas; //发货地区",
  6344. " string SendAddress = $1.SendAddress; //发货地址",
  6345. " int SendDate = $1.SendDate; //发货时间",
  6346. " ulong IsFree = $1.IsFree; //是否包邮",
  6347. " int MeterMode = $1.MeterMode; //计价方式",
  6348. " int TransportMode = $1.TransportMode; //运送方式",
  6349. " int MerchantId = $1.MerchantId; //商家Id",
  6350. " decimal FirstAmount = $1.FirstAmount; //首件数量",
  6351. " decimal FirstFee = $1.FirstFee; //首件费用",
  6352. " decimal MoreAmount = $1.MoreAmount; //续件数量",
  6353. " decimal MoreFee = $1.MoreFee; //续件费用",
  6354. "}"
  6355. ]
  6356. },
  6357. "查询某个商品运费模板,并赋值": {
  6358. "prefix": "ym-db-ProductFareTemp-Update",
  6359. "body": [
  6360. "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
  6361. "if ($1 != null)",
  6362. "{",
  6363. " $1.Name = $2; //名称",
  6364. " $1.SendAreas = $3; //发货地区",
  6365. " $1.SendAddress = $4; //发货地址",
  6366. " $1.SendDate = $5; //发货时间",
  6367. " $1.IsFree = $6; //是否包邮",
  6368. " $1.MeterMode = $7; //计价方式",
  6369. " $1.TransportMode = $8; //运送方式",
  6370. " $1.MerchantId = $9; //商家Id",
  6371. " $1.FirstAmount = $10; //首件数量",
  6372. " $1.FirstFee = $11; //首件费用",
  6373. " $1.MoreAmount = $12; //续件数量",
  6374. " $1.MoreFee = $13; //续件费用",
  6375. "}"
  6376. ]
  6377. },
  6378. "获取商品运费模板数量": {
  6379. "prefix": "ym-db-ProductFareTemp-FindAndCount",
  6380. "body": [
  6381. "int $1 = db.ProductFareTemp.Count(m => $2);",
  6382. ]
  6383. },
  6384. "添加商品运费模板": {
  6385. "prefix": "ym-db-ProductFareTemp-Create",
  6386. "body": [
  6387. "db.ProductFareTemp.Add(new ProductFareTemp()",
  6388. "{",
  6389. " CreateDate = DateTime.Now,",
  6390. " UpdateDate = DateTime.Now,",
  6391. " Name = $1, //名称",
  6392. " SendAreas = $2, //发货地区",
  6393. " SendAddress = $3, //发货地址",
  6394. " SendDate = $4, //发货时间",
  6395. " IsFree = $5, //是否包邮",
  6396. " MeterMode = $6, //计价方式",
  6397. " TransportMode = $7, //运送方式",
  6398. " MerchantId = $8, //商家Id",
  6399. " FirstAmount = $9, //首件数量",
  6400. " FirstFee = $10, //首件费用",
  6401. " MoreAmount = $11, //续件数量",
  6402. " MoreFee = $12, //续件费用",
  6403. "});"
  6404. ]
  6405. },"删除某个商品运费模板": {
  6406. "prefix": "ym-db-ProductFareTemp-Delete",
  6407. "body": [
  6408. "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
  6409. "if ($1 != null)",
  6410. "{",
  6411. " db.ProductFareTemp.Remove($1);",
  6412. "}"
  6413. ]
  6414. },
  6415. "查询商品关键词库列表": {
  6416. "prefix": "ym-db-ProductKeys-Find",
  6417. "body": [
  6418. "List<ProductKeys> $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6419. "foreach (ProductKeys $3 in $1)",
  6420. "{",
  6421. "}"
  6422. ]
  6423. },
  6424. "查询商品关键词库列表,并取值": {
  6425. "prefix": "ym-db-ProductKeys-FindWithData",
  6426. "body": [
  6427. "List<ProductKeys> $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6428. "foreach (ProductKeys $3 in $1)",
  6429. "{",
  6430. " string Name = $3.Name; //关键词",
  6431. " string ProductIds = $3.ProductIds; //商品Id集合",
  6432. " string ColIds = $3.ColIds; //分类Id集合",
  6433. "}"
  6434. ]
  6435. },
  6436. "查询商品关键词库": {
  6437. "prefix": "ym-db-ProductKeys-Exist",
  6438. "body": [
  6439. "bool $1 = db.ProductKeys.Any(m => m.Name == $2);",
  6440. ]
  6441. },
  6442. "查询某个商品关键词库,并取值": {
  6443. "prefix": "ym-db-ProductKeys-FindByPrimaryKey",
  6444. "body": [
  6445. "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
  6446. "if ($1 != null)",
  6447. "{",
  6448. " string Name = $1.Name; //关键词",
  6449. " string ProductIds = $1.ProductIds; //商品Id集合",
  6450. " string ColIds = $1.ColIds; //分类Id集合",
  6451. "}"
  6452. ]
  6453. },
  6454. "查询某个商品关键词库,并赋值": {
  6455. "prefix": "ym-db-ProductKeys-Update",
  6456. "body": [
  6457. "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
  6458. "if ($1 != null)",
  6459. "{",
  6460. " $1.Name = $2; //关键词",
  6461. " $1.ProductIds = $3; //商品Id集合",
  6462. " $1.ColIds = $4; //分类Id集合",
  6463. "}"
  6464. ]
  6465. },
  6466. "获取商品关键词库数量": {
  6467. "prefix": "ym-db-ProductKeys-FindAndCount",
  6468. "body": [
  6469. "int $1 = db.ProductKeys.Count(m => $2);",
  6470. ]
  6471. },
  6472. "添加商品关键词库": {
  6473. "prefix": "ym-db-ProductKeys-Create",
  6474. "body": [
  6475. "db.ProductKeys.Add(new ProductKeys()",
  6476. "{",
  6477. " CreateDate = DateTime.Now,",
  6478. " UpdateDate = DateTime.Now,",
  6479. " Name = $1, //关键词",
  6480. " ProductIds = $2, //商品Id集合",
  6481. " ColIds = $3, //分类Id集合",
  6482. "});"
  6483. ]
  6484. },"删除某个商品关键词库": {
  6485. "prefix": "ym-db-ProductKeys-Delete",
  6486. "body": [
  6487. "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
  6488. "if ($1 != null)",
  6489. "{",
  6490. " db.ProductKeys.Remove($1);",
  6491. "}"
  6492. ]
  6493. },
  6494. "查询商品规格列表": {
  6495. "prefix": "ym-db-ProductNorm-Find",
  6496. "body": [
  6497. "List<ProductNorm> $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6498. "foreach (ProductNorm $3 in $1)",
  6499. "{",
  6500. "}"
  6501. ]
  6502. },
  6503. "查询商品规格列表,并取值": {
  6504. "prefix": "ym-db-ProductNorm-FindWithData",
  6505. "body": [
  6506. "List<ProductNorm> $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6507. "foreach (ProductNorm $3 in $1)",
  6508. "{",
  6509. " string ColName = $3.ColName; //名称",
  6510. " string IdList = $3.IdList; //Id集合",
  6511. " decimal Price = $3.Price; //价格",
  6512. " decimal Integral = $3.Integral; //抵扣积分",
  6513. " decimal UserPrice = $3.UserPrice; //创客价",
  6514. " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分",
  6515. " int ProductId = $3.ProductId; //商品Id",
  6516. " int Stock = $3.Stock; //库存",
  6517. " int BuyCount = $3.BuyCount; //已购买数",
  6518. " decimal CostPrice = $3.CostPrice; //成本价",
  6519. " string Code = $3.Code; //编码",
  6520. " int MerchantId = $3.MerchantId; //商家Id",
  6521. " int LimitCount = $3.LimitCount; //限购数量",
  6522. "}"
  6523. ]
  6524. },
  6525. "查询商品规格": {
  6526. "prefix": "ym-db-ProductNorm-Exist",
  6527. "body": [
  6528. "bool $1 = db.ProductNorm.Any(m => m.Id == $2);",
  6529. ]
  6530. },
  6531. "查询某个商品规格,并取值": {
  6532. "prefix": "ym-db-ProductNorm-FindByPrimaryKey",
  6533. "body": [
  6534. "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
  6535. "if ($1 != null)",
  6536. "{",
  6537. " string ColName = $1.ColName; //名称",
  6538. " string IdList = $1.IdList; //Id集合",
  6539. " decimal Price = $1.Price; //价格",
  6540. " decimal Integral = $1.Integral; //抵扣积分",
  6541. " decimal UserPrice = $1.UserPrice; //创客价",
  6542. " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分",
  6543. " int ProductId = $1.ProductId; //商品Id",
  6544. " int Stock = $1.Stock; //库存",
  6545. " int BuyCount = $1.BuyCount; //已购买数",
  6546. " decimal CostPrice = $1.CostPrice; //成本价",
  6547. " string Code = $1.Code; //编码",
  6548. " int MerchantId = $1.MerchantId; //商家Id",
  6549. " int LimitCount = $1.LimitCount; //限购数量",
  6550. "}"
  6551. ]
  6552. },
  6553. "查询某个商品规格,并赋值": {
  6554. "prefix": "ym-db-ProductNorm-Update",
  6555. "body": [
  6556. "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
  6557. "if ($1 != null)",
  6558. "{",
  6559. " $1.ColName = $2; //名称",
  6560. " $1.IdList = $3; //Id集合",
  6561. " $1.Price = $4; //价格",
  6562. " $1.Integral = $5; //抵扣积分",
  6563. " $1.UserPrice = $6; //创客价",
  6564. " $1.UserIntegral = $7; //创客抵扣积分",
  6565. " $1.ProductId = $8; //商品Id",
  6566. " $1.Stock = $9; //库存",
  6567. " $1.BuyCount = $10; //已购买数",
  6568. " $1.CostPrice = $11; //成本价",
  6569. " $1.Code = $12; //编码",
  6570. " $1.MerchantId = $13; //商家Id",
  6571. " $1.LimitCount = $14; //限购数量",
  6572. "}"
  6573. ]
  6574. },
  6575. "获取商品规格数量": {
  6576. "prefix": "ym-db-ProductNorm-FindAndCount",
  6577. "body": [
  6578. "int $1 = db.ProductNorm.Count(m => $2);",
  6579. ]
  6580. },
  6581. "添加商品规格": {
  6582. "prefix": "ym-db-ProductNorm-Create",
  6583. "body": [
  6584. "db.ProductNorm.Add(new ProductNorm()",
  6585. "{",
  6586. " CreateDate = DateTime.Now,",
  6587. " UpdateDate = DateTime.Now,",
  6588. " ColName = $1, //名称",
  6589. " IdList = $2, //Id集合",
  6590. " Price = $3, //价格",
  6591. " Integral = $4, //抵扣积分",
  6592. " UserPrice = $5, //创客价",
  6593. " UserIntegral = $6, //创客抵扣积分",
  6594. " ProductId = $7, //商品Id",
  6595. " Stock = $8, //库存",
  6596. " BuyCount = $9, //已购买数",
  6597. " CostPrice = $10, //成本价",
  6598. " Code = $11, //编码",
  6599. " MerchantId = $12, //商家Id",
  6600. " LimitCount = $13, //限购数量",
  6601. "});"
  6602. ]
  6603. },"删除某个商品规格": {
  6604. "prefix": "ym-db-ProductNorm-Delete",
  6605. "body": [
  6606. "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
  6607. "if ($1 != null)",
  6608. "{",
  6609. " db.ProductNorm.Remove($1);",
  6610. "}"
  6611. ]
  6612. },
  6613. "查询商品规格项目列表": {
  6614. "prefix": "ym-db-ProductNormItem-Find",
  6615. "body": [
  6616. "List<ProductNormItem> $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6617. "foreach (ProductNormItem $3 in $1)",
  6618. "{",
  6619. "}"
  6620. ]
  6621. },
  6622. "查询商品规格项目列表,并取值": {
  6623. "prefix": "ym-db-ProductNormItem-FindWithData",
  6624. "body": [
  6625. "List<ProductNormItem> $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6626. "foreach (ProductNormItem $3 in $1)",
  6627. "{",
  6628. " string ColName = $3.ColName; //名称",
  6629. " int ParentId = $3.ParentId; //父级Id",
  6630. " int MerchantId = $3.MerchantId; //商家Id",
  6631. " int ProductId = $3.ProductId; //商品Id",
  6632. "}"
  6633. ]
  6634. },
  6635. "查询商品规格项目": {
  6636. "prefix": "ym-db-ProductNormItem-Exist",
  6637. "body": [
  6638. "bool $1 = db.ProductNormItem.Any(m => m.Id == $2);",
  6639. ]
  6640. },
  6641. "查询某个商品规格项目,并取值": {
  6642. "prefix": "ym-db-ProductNormItem-FindByPrimaryKey",
  6643. "body": [
  6644. "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
  6645. "if ($1 != null)",
  6646. "{",
  6647. " string ColName = $1.ColName; //名称",
  6648. " int ParentId = $1.ParentId; //父级Id",
  6649. " int MerchantId = $1.MerchantId; //商家Id",
  6650. " int ProductId = $1.ProductId; //商品Id",
  6651. "}"
  6652. ]
  6653. },
  6654. "查询某个商品规格项目,并赋值": {
  6655. "prefix": "ym-db-ProductNormItem-Update",
  6656. "body": [
  6657. "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
  6658. "if ($1 != null)",
  6659. "{",
  6660. " $1.ColName = $2; //名称",
  6661. " $1.ParentId = $3; //父级Id",
  6662. " $1.MerchantId = $4; //商家Id",
  6663. " $1.ProductId = $5; //商品Id",
  6664. "}"
  6665. ]
  6666. },
  6667. "获取商品规格项目数量": {
  6668. "prefix": "ym-db-ProductNormItem-FindAndCount",
  6669. "body": [
  6670. "int $1 = db.ProductNormItem.Count(m => $2);",
  6671. ]
  6672. },
  6673. "添加商品规格项目": {
  6674. "prefix": "ym-db-ProductNormItem-Create",
  6675. "body": [
  6676. "db.ProductNormItem.Add(new ProductNormItem()",
  6677. "{",
  6678. " CreateDate = DateTime.Now,",
  6679. " UpdateDate = DateTime.Now,",
  6680. " ColName = $1, //名称",
  6681. " ParentId = $2, //父级Id",
  6682. " MerchantId = $3, //商家Id",
  6683. " ProductId = $4, //商品Id",
  6684. "});"
  6685. ]
  6686. },"删除某个商品规格项目": {
  6687. "prefix": "ym-db-ProductNormItem-Delete",
  6688. "body": [
  6689. "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
  6690. "if ($1 != null)",
  6691. "{",
  6692. " db.ProductNormItem.Remove($1);",
  6693. "}"
  6694. ]
  6695. },
  6696. "查询商品规格模板列表": {
  6697. "prefix": "ym-db-ProductNormTemp-Find",
  6698. "body": [
  6699. "List<ProductNormTemp> $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6700. "foreach (ProductNormTemp $3 in $1)",
  6701. "{",
  6702. "}"
  6703. ]
  6704. },
  6705. "查询商品规格模板列表,并取值": {
  6706. "prefix": "ym-db-ProductNormTemp-FindWithData",
  6707. "body": [
  6708. "List<ProductNormTemp> $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6709. "foreach (ProductNormTemp $3 in $1)",
  6710. "{",
  6711. " string Name = $3.Name; //名称",
  6712. " int MerchantId = $3.MerchantId; //商家Id",
  6713. " string TempJsonData = $3.TempJsonData; //模板内容",
  6714. "}"
  6715. ]
  6716. },
  6717. "查询商品规格模板": {
  6718. "prefix": "ym-db-ProductNormTemp-Exist",
  6719. "body": [
  6720. "bool $1 = db.ProductNormTemp.Any(m => m.Id == $2);",
  6721. ]
  6722. },
  6723. "查询某个商品规格模板,并取值": {
  6724. "prefix": "ym-db-ProductNormTemp-FindByPrimaryKey",
  6725. "body": [
  6726. "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
  6727. "if ($1 != null)",
  6728. "{",
  6729. " string Name = $1.Name; //名称",
  6730. " int MerchantId = $1.MerchantId; //商家Id",
  6731. " string TempJsonData = $1.TempJsonData; //模板内容",
  6732. "}"
  6733. ]
  6734. },
  6735. "查询某个商品规格模板,并赋值": {
  6736. "prefix": "ym-db-ProductNormTemp-Update",
  6737. "body": [
  6738. "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
  6739. "if ($1 != null)",
  6740. "{",
  6741. " $1.Name = $2; //名称",
  6742. " $1.MerchantId = $3; //商家Id",
  6743. " $1.TempJsonData = $4; //模板内容",
  6744. "}"
  6745. ]
  6746. },
  6747. "获取商品规格模板数量": {
  6748. "prefix": "ym-db-ProductNormTemp-FindAndCount",
  6749. "body": [
  6750. "int $1 = db.ProductNormTemp.Count(m => $2);",
  6751. ]
  6752. },
  6753. "添加商品规格模板": {
  6754. "prefix": "ym-db-ProductNormTemp-Create",
  6755. "body": [
  6756. "db.ProductNormTemp.Add(new ProductNormTemp()",
  6757. "{",
  6758. " CreateDate = DateTime.Now,",
  6759. " UpdateDate = DateTime.Now,",
  6760. " Name = $1, //名称",
  6761. " MerchantId = $2, //商家Id",
  6762. " TempJsonData = $3, //模板内容",
  6763. "});"
  6764. ]
  6765. },"删除某个商品规格模板": {
  6766. "prefix": "ym-db-ProductNormTemp-Delete",
  6767. "body": [
  6768. "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
  6769. "if ($1 != null)",
  6770. "{",
  6771. " db.ProductNormTemp.Remove($1);",
  6772. "}"
  6773. ]
  6774. },
  6775. "查询商品信息列表": {
  6776. "prefix": "ym-db-Products-Find",
  6777. "body": [
  6778. "List<Products> $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6779. "foreach (Products $3 in $1)",
  6780. "{",
  6781. "}"
  6782. ]
  6783. },
  6784. "查询商品信息列表,并取值": {
  6785. "prefix": "ym-db-Products-FindWithData",
  6786. "body": [
  6787. "List<Products> $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6788. "foreach (Products $3 in $1)",
  6789. "{",
  6790. " string ProductName = $3.ProductName; //商品名称",
  6791. " string Details = $3.Details; //简介",
  6792. " string Contents = $3.Contents; //内容",
  6793. " int Stock = $3.Stock; //库存",
  6794. " int BuyCount = $3.BuyCount; //已购买数",
  6795. " string ListPicPath = $3.ListPicPath; //列表图片",
  6796. " string DetailPicPath = $3.DetailPicPath; //图集",
  6797. " string ColId = $3.ColId; //分类",
  6798. " int CommentCount = $3.CommentCount; //评价数",
  6799. " decimal GoodPercent = $3.GoodPercent; //好评率",
  6800. " ulong IsRecommend = $3.IsRecommend; //推荐",
  6801. " int MerchantId = $3.MerchantId; //商家Id",
  6802. " DateTime StartDate = $3.StartDate; //开始时间",
  6803. " DateTime EndDate = $3.EndDate; //结束时间",
  6804. " ulong IsLimit = $3.IsLimit; //限时抢购",
  6805. " decimal SourcePrice = $3.SourcePrice; //原价",
  6806. " decimal Price = $3.Price; //价格",
  6807. " decimal Integral = $3.Integral; //抵扣积分",
  6808. " decimal MemberPrice = $3.MemberPrice; //创客价",
  6809. " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分",
  6810. " DateTime PublishDate = $3.PublishDate; //上架时间",
  6811. " decimal CostPrice = $3.CostPrice; //成本价",
  6812. " int FareTemplateId = $3.FareTemplateId; //运费模板Id",
  6813. " int LimitCount = $3.LimitCount; //限购数量",
  6814. " string KeyWord = $3.KeyWord; //关键词",
  6815. " int MerchantClassId = $3.MerchantClassId; //商家分类",
  6816. " string NormIds = $3.NormIds; //商品规格Id",
  6817. " string ShareDetail = $3.ShareDetail; //分享描述",
  6818. " string LinkUrl = $3.LinkUrl; //外部链接",
  6819. " string NormJson = $3.NormJson; //规格json",
  6820. " string MerchantColId = $3.MerchantColId; //商家商品分类",
  6821. " int MonthSale = $3.MonthSale; //月销量",
  6822. " ulong IsRecommend2 = $3.IsRecommend2; //推荐2",
  6823. " ulong IsRecommend3 = $3.IsRecommend3; //推荐3",
  6824. " string Title = $3.Title; //宣传标语",
  6825. " string Title2 = $3.Title2; //宣传标语2",
  6826. " string ProductCode = $3.ProductCode; //商品编号",
  6827. "}"
  6828. ]
  6829. },
  6830. "查询商品信息": {
  6831. "prefix": "ym-db-Products-Exist",
  6832. "body": [
  6833. "bool $1 = db.Products.Any(m => m.Id == $2);",
  6834. ]
  6835. },
  6836. "查询某个商品信息,并取值": {
  6837. "prefix": "ym-db-Products-FindByPrimaryKey",
  6838. "body": [
  6839. "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
  6840. "if ($1 != null)",
  6841. "{",
  6842. " string ProductName = $1.ProductName; //商品名称",
  6843. " string Details = $1.Details; //简介",
  6844. " string Contents = $1.Contents; //内容",
  6845. " int Stock = $1.Stock; //库存",
  6846. " int BuyCount = $1.BuyCount; //已购买数",
  6847. " string ListPicPath = $1.ListPicPath; //列表图片",
  6848. " string DetailPicPath = $1.DetailPicPath; //图集",
  6849. " string ColId = $1.ColId; //分类",
  6850. " int CommentCount = $1.CommentCount; //评价数",
  6851. " decimal GoodPercent = $1.GoodPercent; //好评率",
  6852. " ulong IsRecommend = $1.IsRecommend; //推荐",
  6853. " int MerchantId = $1.MerchantId; //商家Id",
  6854. " DateTime StartDate = $1.StartDate; //开始时间",
  6855. " DateTime EndDate = $1.EndDate; //结束时间",
  6856. " ulong IsLimit = $1.IsLimit; //限时抢购",
  6857. " decimal SourcePrice = $1.SourcePrice; //原价",
  6858. " decimal Price = $1.Price; //价格",
  6859. " decimal Integral = $1.Integral; //抵扣积分",
  6860. " decimal MemberPrice = $1.MemberPrice; //创客价",
  6861. " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分",
  6862. " DateTime PublishDate = $1.PublishDate; //上架时间",
  6863. " decimal CostPrice = $1.CostPrice; //成本价",
  6864. " int FareTemplateId = $1.FareTemplateId; //运费模板Id",
  6865. " int LimitCount = $1.LimitCount; //限购数量",
  6866. " string KeyWord = $1.KeyWord; //关键词",
  6867. " int MerchantClassId = $1.MerchantClassId; //商家分类",
  6868. " string NormIds = $1.NormIds; //商品规格Id",
  6869. " string ShareDetail = $1.ShareDetail; //分享描述",
  6870. " string LinkUrl = $1.LinkUrl; //外部链接",
  6871. " string NormJson = $1.NormJson; //规格json",
  6872. " string MerchantColId = $1.MerchantColId; //商家商品分类",
  6873. " int MonthSale = $1.MonthSale; //月销量",
  6874. " ulong IsRecommend2 = $1.IsRecommend2; //推荐2",
  6875. " ulong IsRecommend3 = $1.IsRecommend3; //推荐3",
  6876. " string Title = $1.Title; //宣传标语",
  6877. " string Title2 = $1.Title2; //宣传标语2",
  6878. " string ProductCode = $1.ProductCode; //商品编号",
  6879. "}"
  6880. ]
  6881. },
  6882. "查询某个商品信息,并赋值": {
  6883. "prefix": "ym-db-Products-Update",
  6884. "body": [
  6885. "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
  6886. "if ($1 != null)",
  6887. "{",
  6888. " $1.ProductName = $2; //商品名称",
  6889. " $1.Details = $3; //简介",
  6890. " $1.Contents = $4; //内容",
  6891. " $1.Stock = $5; //库存",
  6892. " $1.BuyCount = $6; //已购买数",
  6893. " $1.ListPicPath = $7; //列表图片",
  6894. " $1.DetailPicPath = $8; //图集",
  6895. " $1.ColId = $9; //分类",
  6896. " $1.CommentCount = $10; //评价数",
  6897. " $1.GoodPercent = $11; //好评率",
  6898. " $1.IsRecommend = $12; //推荐",
  6899. " $1.MerchantId = $13; //商家Id",
  6900. " $1.StartDate = $14; //开始时间",
  6901. " $1.EndDate = $15; //结束时间",
  6902. " $1.IsLimit = $16; //限时抢购",
  6903. " $1.SourcePrice = $17; //原价",
  6904. " $1.Price = $18; //价格",
  6905. " $1.Integral = $19; //抵扣积分",
  6906. " $1.MemberPrice = $20; //创客价",
  6907. " $1.UserIntegral = $21; //创客抵扣积分",
  6908. " $1.PublishDate = $22; //上架时间",
  6909. " $1.CostPrice = $23; //成本价",
  6910. " $1.FareTemplateId = $24; //运费模板Id",
  6911. " $1.LimitCount = $25; //限购数量",
  6912. " $1.KeyWord = $26; //关键词",
  6913. " $1.MerchantClassId = $27; //商家分类",
  6914. " $1.NormIds = $28; //商品规格Id",
  6915. " $1.ShareDetail = $29; //分享描述",
  6916. " $1.LinkUrl = $30; //外部链接",
  6917. " $1.NormJson = $31; //规格json",
  6918. " $1.MerchantColId = $32; //商家商品分类",
  6919. " $1.MonthSale = $33; //月销量",
  6920. " $1.IsRecommend2 = $34; //推荐2",
  6921. " $1.IsRecommend3 = $35; //推荐3",
  6922. " $1.Title = $36; //宣传标语",
  6923. " $1.Title2 = $37; //宣传标语2",
  6924. " $1.ProductCode = $38; //商品编号",
  6925. "}"
  6926. ]
  6927. },
  6928. "获取商品信息数量": {
  6929. "prefix": "ym-db-Products-FindAndCount",
  6930. "body": [
  6931. "int $1 = db.Products.Count(m => $2);",
  6932. ]
  6933. },
  6934. "添加商品信息": {
  6935. "prefix": "ym-db-Products-Create",
  6936. "body": [
  6937. "db.Products.Add(new Products()",
  6938. "{",
  6939. " CreateDate = DateTime.Now,",
  6940. " UpdateDate = DateTime.Now,",
  6941. " ProductName = $1, //商品名称",
  6942. " Details = $2, //简介",
  6943. " Contents = $3, //内容",
  6944. " Stock = $4, //库存",
  6945. " BuyCount = $5, //已购买数",
  6946. " ListPicPath = $6, //列表图片",
  6947. " DetailPicPath = $7, //图集",
  6948. " ColId = $8, //分类",
  6949. " CommentCount = $9, //评价数",
  6950. " GoodPercent = $10, //好评率",
  6951. " IsRecommend = $11, //推荐",
  6952. " MerchantId = $12, //商家Id",
  6953. " StartDate = $13, //开始时间",
  6954. " EndDate = $14, //结束时间",
  6955. " IsLimit = $15, //限时抢购",
  6956. " SourcePrice = $16, //原价",
  6957. " Price = $17, //价格",
  6958. " Integral = $18, //抵扣积分",
  6959. " MemberPrice = $19, //创客价",
  6960. " UserIntegral = $20, //创客抵扣积分",
  6961. " PublishDate = $21, //上架时间",
  6962. " CostPrice = $22, //成本价",
  6963. " FareTemplateId = $23, //运费模板Id",
  6964. " LimitCount = $24, //限购数量",
  6965. " KeyWord = $25, //关键词",
  6966. " MerchantClassId = $26, //商家分类",
  6967. " NormIds = $27, //商品规格Id",
  6968. " ShareDetail = $28, //分享描述",
  6969. " LinkUrl = $29, //外部链接",
  6970. " NormJson = $30, //规格json",
  6971. " MerchantColId = $31, //商家商品分类",
  6972. " MonthSale = $32, //月销量",
  6973. " IsRecommend2 = $33, //推荐2",
  6974. " IsRecommend3 = $34, //推荐3",
  6975. " Title = $35, //宣传标语",
  6976. " Title2 = $36, //宣传标语2",
  6977. " ProductCode = $37, //商品编号",
  6978. "});"
  6979. ]
  6980. },"删除某个商品信息": {
  6981. "prefix": "ym-db-Products-Delete",
  6982. "body": [
  6983. "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
  6984. "if ($1 != null)",
  6985. "{",
  6986. " db.Products.Remove($1);",
  6987. "}"
  6988. ]
  6989. },
  6990. "查询激活奖励设置列表": {
  6991. "prefix": "ym-db-ProfitObjectActivations-Find",
  6992. "body": [
  6993. "List<ProfitObjectActivations> $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6994. "foreach (ProfitObjectActivations $3 in $1)",
  6995. "{",
  6996. "}"
  6997. ]
  6998. },
  6999. "查询激活奖励设置列表,并取值": {
  7000. "prefix": "ym-db-ProfitObjectActivations-FindWithData",
  7001. "body": [
  7002. "List<ProfitObjectActivations> $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7003. "foreach (ProfitObjectActivations $3 in $1)",
  7004. "{",
  7005. " int LimitDateKind = $3.LimitDateKind; //限制时间类型",
  7006. " int LimitDateVal = $3.LimitDateVal; //限制时间值",
  7007. " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制",
  7008. " decimal ExpiredNumber = $3.ExpiredNumber; //过期收益值",
  7009. " int ObjectId = $3.ObjectId; //对象Id",
  7010. "}"
  7011. ]
  7012. },
  7013. "查询激活奖励设置": {
  7014. "prefix": "ym-db-ProfitObjectActivations-Exist",
  7015. "body": [
  7016. "bool $1 = db.ProfitObjectActivations.Any(m => m.Id == $2);",
  7017. ]
  7018. },
  7019. "查询某个激活奖励设置,并取值": {
  7020. "prefix": "ym-db-ProfitObjectActivations-FindByPrimaryKey",
  7021. "body": [
  7022. "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
  7023. "if ($1 != null)",
  7024. "{",
  7025. " int LimitDateKind = $1.LimitDateKind; //限制时间类型",
  7026. " int LimitDateVal = $1.LimitDateVal; //限制时间值",
  7027. " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制",
  7028. " decimal ExpiredNumber = $1.ExpiredNumber; //过期收益值",
  7029. " int ObjectId = $1.ObjectId; //对象Id",
  7030. "}"
  7031. ]
  7032. },
  7033. "查询某个激活奖励设置,并赋值": {
  7034. "prefix": "ym-db-ProfitObjectActivations-Update",
  7035. "body": [
  7036. "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
  7037. "if ($1 != null)",
  7038. "{",
  7039. " $1.LimitDateKind = $2; //限制时间类型",
  7040. " $1.LimitDateVal = $3; //限制时间值",
  7041. " $1.LimitCustomerDate = $4; //自定时间限制",
  7042. " $1.ExpiredNumber = $5; //过期收益值",
  7043. " $1.ObjectId = $6; //对象Id",
  7044. "}"
  7045. ]
  7046. },
  7047. "获取激活奖励设置数量": {
  7048. "prefix": "ym-db-ProfitObjectActivations-FindAndCount",
  7049. "body": [
  7050. "int $1 = db.ProfitObjectActivations.Count(m => $2);",
  7051. ]
  7052. },
  7053. "添加激活奖励设置": {
  7054. "prefix": "ym-db-ProfitObjectActivations-Create",
  7055. "body": [
  7056. "db.ProfitObjectActivations.Add(new ProfitObjectActivations()",
  7057. "{",
  7058. " CreateDate = DateTime.Now,",
  7059. " UpdateDate = DateTime.Now,",
  7060. " LimitDateKind = $1, //限制时间类型",
  7061. " LimitDateVal = $2, //限制时间值",
  7062. " LimitCustomerDate = $3, //自定时间限制",
  7063. " ExpiredNumber = $4, //过期收益值",
  7064. " ObjectId = $5, //对象Id",
  7065. "});"
  7066. ]
  7067. },"删除某个激活奖励设置": {
  7068. "prefix": "ym-db-ProfitObjectActivations-Delete",
  7069. "body": [
  7070. "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
  7071. "if ($1 != null)",
  7072. "{",
  7073. " db.ProfitObjectActivations.Remove($1);",
  7074. "}"
  7075. ]
  7076. },
  7077. "查询继续分润层级列表": {
  7078. "prefix": "ym-db-ProfitObjectContinueFloors-Find",
  7079. "body": [
  7080. "List<ProfitObjectContinueFloors> $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7081. "foreach (ProfitObjectContinueFloors $3 in $1)",
  7082. "{",
  7083. "}"
  7084. ]
  7085. },
  7086. "查询继续分润层级列表,并取值": {
  7087. "prefix": "ym-db-ProfitObjectContinueFloors-FindWithData",
  7088. "body": [
  7089. "List<ProfitObjectContinueFloors> $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7090. "foreach (ProfitObjectContinueFloors $3 in $1)",
  7091. "{",
  7092. " int FloorNumber = $3.FloorNumber; //层级",
  7093. " decimal Percents = $3.Percents; //分润比例",
  7094. " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
  7095. " int ObjectId = $3.ObjectId; //对象Id",
  7096. "}"
  7097. ]
  7098. },
  7099. "查询继续分润层级": {
  7100. "prefix": "ym-db-ProfitObjectContinueFloors-Exist",
  7101. "body": [
  7102. "bool $1 = db.ProfitObjectContinueFloors.Any(m => m.Id == $2);",
  7103. ]
  7104. },
  7105. "查询某个继续分润层级,并取值": {
  7106. "prefix": "ym-db-ProfitObjectContinueFloors-FindByPrimaryKey",
  7107. "body": [
  7108. "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
  7109. "if ($1 != null)",
  7110. "{",
  7111. " int FloorNumber = $1.FloorNumber; //层级",
  7112. " decimal Percents = $1.Percents; //分润比例",
  7113. " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
  7114. " int ObjectId = $1.ObjectId; //对象Id",
  7115. "}"
  7116. ]
  7117. },
  7118. "查询某个继续分润层级,并赋值": {
  7119. "prefix": "ym-db-ProfitObjectContinueFloors-Update",
  7120. "body": [
  7121. "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
  7122. "if ($1 != null)",
  7123. "{",
  7124. " $1.FloorNumber = $2; //层级",
  7125. " $1.Percents = $3; //分润比例",
  7126. " $1.AddProfitVal = $4; //附加分润值",
  7127. " $1.ObjectId = $5; //对象Id",
  7128. "}"
  7129. ]
  7130. },
  7131. "获取继续分润层级数量": {
  7132. "prefix": "ym-db-ProfitObjectContinueFloors-FindAndCount",
  7133. "body": [
  7134. "int $1 = db.ProfitObjectContinueFloors.Count(m => $2);",
  7135. ]
  7136. },
  7137. "添加继续分润层级": {
  7138. "prefix": "ym-db-ProfitObjectContinueFloors-Create",
  7139. "body": [
  7140. "db.ProfitObjectContinueFloors.Add(new ProfitObjectContinueFloors()",
  7141. "{",
  7142. " CreateDate = DateTime.Now,",
  7143. " UpdateDate = DateTime.Now,",
  7144. " FloorNumber = $1, //层级",
  7145. " Percents = $2, //分润比例",
  7146. " AddProfitVal = $3, //附加分润值",
  7147. " ObjectId = $4, //对象Id",
  7148. "});"
  7149. ]
  7150. },"删除某个继续分润层级": {
  7151. "prefix": "ym-db-ProfitObjectContinueFloors-Delete",
  7152. "body": [
  7153. "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
  7154. "if ($1 != null)",
  7155. "{",
  7156. " db.ProfitObjectContinueFloors.Remove($1);",
  7157. "}"
  7158. ]
  7159. },
  7160. "查询分润对象层级列表": {
  7161. "prefix": "ym-db-ProfitObjectFloors-Find",
  7162. "body": [
  7163. "List<ProfitObjectFloors> $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7164. "foreach (ProfitObjectFloors $3 in $1)",
  7165. "{",
  7166. "}"
  7167. ]
  7168. },
  7169. "查询分润对象层级列表,并取值": {
  7170. "prefix": "ym-db-ProfitObjectFloors-FindWithData",
  7171. "body": [
  7172. "List<ProfitObjectFloors> $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7173. "foreach (ProfitObjectFloors $3 in $1)",
  7174. "{",
  7175. " int FloorNumber = $3.FloorNumber; //层级",
  7176. " decimal Percents = $3.Percents; //分润比例",
  7177. " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
  7178. " ulong FloorDiff = $3.FloorDiff; //级差",
  7179. " int ObjectId = $3.ObjectId; //对象Id",
  7180. "}"
  7181. ]
  7182. },
  7183. "查询分润对象层级": {
  7184. "prefix": "ym-db-ProfitObjectFloors-Exist",
  7185. "body": [
  7186. "bool $1 = db.ProfitObjectFloors.Any(m => m.Id == $2);",
  7187. ]
  7188. },
  7189. "查询某个分润对象层级,并取值": {
  7190. "prefix": "ym-db-ProfitObjectFloors-FindByPrimaryKey",
  7191. "body": [
  7192. "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
  7193. "if ($1 != null)",
  7194. "{",
  7195. " int FloorNumber = $1.FloorNumber; //层级",
  7196. " decimal Percents = $1.Percents; //分润比例",
  7197. " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
  7198. " ulong FloorDiff = $1.FloorDiff; //级差",
  7199. " int ObjectId = $1.ObjectId; //对象Id",
  7200. "}"
  7201. ]
  7202. },
  7203. "查询某个分润对象层级,并赋值": {
  7204. "prefix": "ym-db-ProfitObjectFloors-Update",
  7205. "body": [
  7206. "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
  7207. "if ($1 != null)",
  7208. "{",
  7209. " $1.FloorNumber = $2; //层级",
  7210. " $1.Percents = $3; //分润比例",
  7211. " $1.AddProfitVal = $4; //附加分润值",
  7212. " $1.FloorDiff = $5; //级差",
  7213. " $1.ObjectId = $6; //对象Id",
  7214. "}"
  7215. ]
  7216. },
  7217. "获取分润对象层级数量": {
  7218. "prefix": "ym-db-ProfitObjectFloors-FindAndCount",
  7219. "body": [
  7220. "int $1 = db.ProfitObjectFloors.Count(m => $2);",
  7221. ]
  7222. },
  7223. "添加分润对象层级": {
  7224. "prefix": "ym-db-ProfitObjectFloors-Create",
  7225. "body": [
  7226. "db.ProfitObjectFloors.Add(new ProfitObjectFloors()",
  7227. "{",
  7228. " CreateDate = DateTime.Now,",
  7229. " UpdateDate = DateTime.Now,",
  7230. " FloorNumber = $1, //层级",
  7231. " Percents = $2, //分润比例",
  7232. " AddProfitVal = $3, //附加分润值",
  7233. " FloorDiff = $4, //级差",
  7234. " ObjectId = $5, //对象Id",
  7235. "});"
  7236. ]
  7237. },"删除某个分润对象层级": {
  7238. "prefix": "ym-db-ProfitObjectFloors-Delete",
  7239. "body": [
  7240. "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
  7241. "if ($1 != null)",
  7242. "{",
  7243. " db.ProfitObjectFloors.Remove($1);",
  7244. "}"
  7245. ]
  7246. },
  7247. "查询分润对象等级分类列表": {
  7248. "prefix": "ym-db-ProfitObjectLevelKinds-Find",
  7249. "body": [
  7250. "List<ProfitObjectLevelKinds> $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7251. "foreach (ProfitObjectLevelKinds $3 in $1)",
  7252. "{",
  7253. "}"
  7254. ]
  7255. },
  7256. "查询分润对象等级分类列表,并取值": {
  7257. "prefix": "ym-db-ProfitObjectLevelKinds-FindWithData",
  7258. "body": [
  7259. "List<ProfitObjectLevelKinds> $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7260. "foreach (ProfitObjectLevelKinds $3 in $1)",
  7261. "{",
  7262. " string Name = $3.Name; //名称",
  7263. " int ObjectId = $3.ObjectId; //对象id",
  7264. "}"
  7265. ]
  7266. },
  7267. "查询分润对象等级分类": {
  7268. "prefix": "ym-db-ProfitObjectLevelKinds-Exist",
  7269. "body": [
  7270. "bool $1 = db.ProfitObjectLevelKinds.Any(m => m.Id == $2);",
  7271. ]
  7272. },
  7273. "查询某个分润对象等级分类,并取值": {
  7274. "prefix": "ym-db-ProfitObjectLevelKinds-FindByPrimaryKey",
  7275. "body": [
  7276. "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
  7277. "if ($1 != null)",
  7278. "{",
  7279. " string Name = $1.Name; //名称",
  7280. " int ObjectId = $1.ObjectId; //对象id",
  7281. "}"
  7282. ]
  7283. },
  7284. "查询某个分润对象等级分类,并赋值": {
  7285. "prefix": "ym-db-ProfitObjectLevelKinds-Update",
  7286. "body": [
  7287. "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
  7288. "if ($1 != null)",
  7289. "{",
  7290. " $1.Name = $2; //名称",
  7291. " $1.ObjectId = $3; //对象id",
  7292. "}"
  7293. ]
  7294. },
  7295. "获取分润对象等级分类数量": {
  7296. "prefix": "ym-db-ProfitObjectLevelKinds-FindAndCount",
  7297. "body": [
  7298. "int $1 = db.ProfitObjectLevelKinds.Count(m => $2);",
  7299. ]
  7300. },
  7301. "添加分润对象等级分类": {
  7302. "prefix": "ym-db-ProfitObjectLevelKinds-Create",
  7303. "body": [
  7304. "db.ProfitObjectLevelKinds.Add(new ProfitObjectLevelKinds()",
  7305. "{",
  7306. " CreateDate = DateTime.Now,",
  7307. " UpdateDate = DateTime.Now,",
  7308. " Name = $1, //名称",
  7309. " ObjectId = $2, //对象id",
  7310. "});"
  7311. ]
  7312. },"删除某个分润对象等级分类": {
  7313. "prefix": "ym-db-ProfitObjectLevelKinds-Delete",
  7314. "body": [
  7315. "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
  7316. "if ($1 != null)",
  7317. "{",
  7318. " db.ProfitObjectLevelKinds.Remove($1);",
  7319. "}"
  7320. ]
  7321. },
  7322. "查询分润对象等级列表": {
  7323. "prefix": "ym-db-ProfitObjectLevels-Find",
  7324. "body": [
  7325. "List<ProfitObjectLevels> $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7326. "foreach (ProfitObjectLevels $3 in $1)",
  7327. "{",
  7328. "}"
  7329. ]
  7330. },
  7331. "查询分润对象等级列表,并取值": {
  7332. "prefix": "ym-db-ProfitObjectLevels-FindWithData",
  7333. "body": [
  7334. "List<ProfitObjectLevels> $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7335. "foreach (ProfitObjectLevels $3 in $1)",
  7336. "{",
  7337. " int LevelNumber = $3.LevelNumber; //级别",
  7338. " string Name = $3.Name; //名称",
  7339. " decimal Percents = $3.Percents; //分润比例",
  7340. " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
  7341. " ulong LevelDiff = $3.LevelDiff; //级差",
  7342. " int KindId = $3.KindId; //分类Id",
  7343. " decimal DebitPercents = $3.DebitPercents; //借记卡分润比例",
  7344. " decimal DebitAddProfitVal = $3.DebitAddProfitVal; //借记卡附加分润值",
  7345. "}"
  7346. ]
  7347. },
  7348. "查询分润对象等级": {
  7349. "prefix": "ym-db-ProfitObjectLevels-Exist",
  7350. "body": [
  7351. "bool $1 = db.ProfitObjectLevels.Any(m => m.Id == $2);",
  7352. ]
  7353. },
  7354. "查询某个分润对象等级,并取值": {
  7355. "prefix": "ym-db-ProfitObjectLevels-FindByPrimaryKey",
  7356. "body": [
  7357. "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
  7358. "if ($1 != null)",
  7359. "{",
  7360. " int LevelNumber = $1.LevelNumber; //级别",
  7361. " string Name = $1.Name; //名称",
  7362. " decimal Percents = $1.Percents; //分润比例",
  7363. " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
  7364. " ulong LevelDiff = $1.LevelDiff; //级差",
  7365. " int KindId = $1.KindId; //分类Id",
  7366. " decimal DebitPercents = $1.DebitPercents; //借记卡分润比例",
  7367. " decimal DebitAddProfitVal = $1.DebitAddProfitVal; //借记卡附加分润值",
  7368. "}"
  7369. ]
  7370. },
  7371. "查询某个分润对象等级,并赋值": {
  7372. "prefix": "ym-db-ProfitObjectLevels-Update",
  7373. "body": [
  7374. "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
  7375. "if ($1 != null)",
  7376. "{",
  7377. " $1.LevelNumber = $2; //级别",
  7378. " $1.Name = $3; //名称",
  7379. " $1.Percents = $4; //分润比例",
  7380. " $1.AddProfitVal = $5; //附加分润值",
  7381. " $1.LevelDiff = $6; //级差",
  7382. " $1.KindId = $7; //分类Id",
  7383. " $1.DebitPercents = $8; //借记卡分润比例",
  7384. " $1.DebitAddProfitVal = $9; //借记卡附加分润值",
  7385. "}"
  7386. ]
  7387. },
  7388. "获取分润对象等级数量": {
  7389. "prefix": "ym-db-ProfitObjectLevels-FindAndCount",
  7390. "body": [
  7391. "int $1 = db.ProfitObjectLevels.Count(m => $2);",
  7392. ]
  7393. },
  7394. "添加分润对象等级": {
  7395. "prefix": "ym-db-ProfitObjectLevels-Create",
  7396. "body": [
  7397. "db.ProfitObjectLevels.Add(new ProfitObjectLevels()",
  7398. "{",
  7399. " CreateDate = DateTime.Now,",
  7400. " UpdateDate = DateTime.Now,",
  7401. " LevelNumber = $1, //级别",
  7402. " Name = $2, //名称",
  7403. " Percents = $3, //分润比例",
  7404. " AddProfitVal = $4, //附加分润值",
  7405. " LevelDiff = $5, //级差",
  7406. " KindId = $6, //分类Id",
  7407. " DebitPercents = $7, //借记卡分润比例",
  7408. " DebitAddProfitVal = $8, //借记卡附加分润值",
  7409. "});"
  7410. ]
  7411. },"删除某个分润对象等级": {
  7412. "prefix": "ym-db-ProfitObjectLevels-Delete",
  7413. "body": [
  7414. "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
  7415. "if ($1 != null)",
  7416. "{",
  7417. " db.ProfitObjectLevels.Remove($1);",
  7418. "}"
  7419. ]
  7420. },
  7421. "查询分润对象列表": {
  7422. "prefix": "ym-db-ProfitObjects-Find",
  7423. "body": [
  7424. "List<ProfitObjects> $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7425. "foreach (ProfitObjects $3 in $1)",
  7426. "{",
  7427. "}"
  7428. ]
  7429. },
  7430. "查询分润对象列表,并取值": {
  7431. "prefix": "ym-db-ProfitObjects-FindWithData",
  7432. "body": [
  7433. "List<ProfitObjects> $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7434. "foreach (ProfitObjects $3 in $1)",
  7435. "{",
  7436. " string Name = $3.Name; //名称",
  7437. " int MaxFloor = $3.MaxFloor; //最大层级",
  7438. " int MaxLevel = $3.MaxLevel; //最大等级",
  7439. " ulong MaxLevelContinue = $3.MaxLevelContinue; //到顶级是否继续",
  7440. " decimal MinProfitVal = $3.MinProfitVal; //最小分润值",
  7441. " DateTime StartDate = $3.StartDate; //开始时间",
  7442. " DateTime EndDate = $3.EndDate; //结束时间",
  7443. "}"
  7444. ]
  7445. },
  7446. "查询分润对象": {
  7447. "prefix": "ym-db-ProfitObjects-Exist",
  7448. "body": [
  7449. "bool $1 = db.ProfitObjects.Any(m => m.Id == $2);",
  7450. ]
  7451. },
  7452. "查询某个分润对象,并取值": {
  7453. "prefix": "ym-db-ProfitObjects-FindByPrimaryKey",
  7454. "body": [
  7455. "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
  7456. "if ($1 != null)",
  7457. "{",
  7458. " string Name = $1.Name; //名称",
  7459. " int MaxFloor = $1.MaxFloor; //最大层级",
  7460. " int MaxLevel = $1.MaxLevel; //最大等级",
  7461. " ulong MaxLevelContinue = $1.MaxLevelContinue; //到顶级是否继续",
  7462. " decimal MinProfitVal = $1.MinProfitVal; //最小分润值",
  7463. " DateTime StartDate = $1.StartDate; //开始时间",
  7464. " DateTime EndDate = $1.EndDate; //结束时间",
  7465. "}"
  7466. ]
  7467. },
  7468. "查询某个分润对象,并赋值": {
  7469. "prefix": "ym-db-ProfitObjects-Update",
  7470. "body": [
  7471. "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
  7472. "if ($1 != null)",
  7473. "{",
  7474. " $1.Name = $2; //名称",
  7475. " $1.MaxFloor = $3; //最大层级",
  7476. " $1.MaxLevel = $4; //最大等级",
  7477. " $1.MaxLevelContinue = $5; //到顶级是否继续",
  7478. " $1.MinProfitVal = $6; //最小分润值",
  7479. " $1.StartDate = $7; //开始时间",
  7480. " $1.EndDate = $8; //结束时间",
  7481. "}"
  7482. ]
  7483. },
  7484. "获取分润对象数量": {
  7485. "prefix": "ym-db-ProfitObjects-FindAndCount",
  7486. "body": [
  7487. "int $1 = db.ProfitObjects.Count(m => $2);",
  7488. ]
  7489. },
  7490. "添加分润对象": {
  7491. "prefix": "ym-db-ProfitObjects-Create",
  7492. "body": [
  7493. "db.ProfitObjects.Add(new ProfitObjects()",
  7494. "{",
  7495. " CreateDate = DateTime.Now,",
  7496. " UpdateDate = DateTime.Now,",
  7497. " Name = $1, //名称",
  7498. " MaxFloor = $2, //最大层级",
  7499. " MaxLevel = $3, //最大等级",
  7500. " MaxLevelContinue = $4, //到顶级是否继续",
  7501. " MinProfitVal = $5, //最小分润值",
  7502. " StartDate = $6, //开始时间",
  7503. " EndDate = $7, //结束时间",
  7504. "});"
  7505. ]
  7506. },"删除某个分润对象": {
  7507. "prefix": "ym-db-ProfitObjects-Delete",
  7508. "body": [
  7509. "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
  7510. "if ($1 != null)",
  7511. "{",
  7512. " db.ProfitObjects.Remove($1);",
  7513. "}"
  7514. ]
  7515. },
  7516. "查询激活奖励队列列表": {
  7517. "prefix": "ym-db-ProfitObjectsActiveCheck-Find",
  7518. "body": [
  7519. "List<ProfitObjectsActiveCheck> $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7520. "foreach (ProfitObjectsActiveCheck $3 in $1)",
  7521. "{",
  7522. "}"
  7523. ]
  7524. },
  7525. "查询激活奖励队列列表,并取值": {
  7526. "prefix": "ym-db-ProfitObjectsActiveCheck-FindWithData",
  7527. "body": [
  7528. "List<ProfitObjectsActiveCheck> $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7529. "foreach (ProfitObjectsActiveCheck $3 in $1)",
  7530. "{",
  7531. " string CheckData = $3.CheckData; //队列数据",
  7532. "}"
  7533. ]
  7534. },
  7535. "查询激活奖励队列": {
  7536. "prefix": "ym-db-ProfitObjectsActiveCheck-Exist",
  7537. "body": [
  7538. "bool $1 = db.ProfitObjectsActiveCheck.Any(m => m.CheckData == $2);",
  7539. ]
  7540. },
  7541. "查询某个激活奖励队列,并取值": {
  7542. "prefix": "ym-db-ProfitObjectsActiveCheck-FindByPrimaryKey",
  7543. "body": [
  7544. "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
  7545. "if ($1 != null)",
  7546. "{",
  7547. " string CheckData = $1.CheckData; //队列数据",
  7548. "}"
  7549. ]
  7550. },
  7551. "查询某个激活奖励队列,并赋值": {
  7552. "prefix": "ym-db-ProfitObjectsActiveCheck-Update",
  7553. "body": [
  7554. "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
  7555. "if ($1 != null)",
  7556. "{",
  7557. " $1.CheckData = $2; //队列数据",
  7558. "}"
  7559. ]
  7560. },
  7561. "获取激活奖励队列数量": {
  7562. "prefix": "ym-db-ProfitObjectsActiveCheck-FindAndCount",
  7563. "body": [
  7564. "int $1 = db.ProfitObjectsActiveCheck.Count(m => $2);",
  7565. ]
  7566. },
  7567. "添加激活奖励队列": {
  7568. "prefix": "ym-db-ProfitObjectsActiveCheck-Create",
  7569. "body": [
  7570. "db.ProfitObjectsActiveCheck.Add(new ProfitObjectsActiveCheck()",
  7571. "{",
  7572. " CreateDate = DateTime.Now,",
  7573. " UpdateDate = DateTime.Now,",
  7574. " CheckData = $1, //队列数据",
  7575. "});"
  7576. ]
  7577. },"删除某个激活奖励队列": {
  7578. "prefix": "ym-db-ProfitObjectsActiveCheck-Delete",
  7579. "body": [
  7580. "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
  7581. "if ($1 != null)",
  7582. "{",
  7583. " db.ProfitObjectsActiveCheck.Remove($1);",
  7584. "}"
  7585. ]
  7586. },
  7587. "查询分润对象活动参数列表": {
  7588. "prefix": "ym-db-ProfitObjectsActiveParams-Find",
  7589. "body": [
  7590. "List<ProfitObjectsActiveParams> $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7591. "foreach (ProfitObjectsActiveParams $3 in $1)",
  7592. "{",
  7593. "}"
  7594. ]
  7595. },
  7596. "查询分润对象活动参数列表,并取值": {
  7597. "prefix": "ym-db-ProfitObjectsActiveParams-FindWithData",
  7598. "body": [
  7599. "List<ProfitObjectsActiveParams> $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7600. "foreach (ProfitObjectsActiveParams $3 in $1)",
  7601. "{",
  7602. " int ProfitObjectsActiveId = $3.ProfitObjectsActiveId; //分润对象活动",
  7603. " string Name = $3.Name; //参数名称",
  7604. " string TextValue = $3.TextValue; //参数值",
  7605. " string Remark = $3.Remark; //参数说明",
  7606. "}"
  7607. ]
  7608. },
  7609. "查询分润对象活动参数": {
  7610. "prefix": "ym-db-ProfitObjectsActiveParams-Exist",
  7611. "body": [
  7612. "bool $1 = db.ProfitObjectsActiveParams.Any(m => m.Id == $2);",
  7613. ]
  7614. },
  7615. "查询某个分润对象活动参数,并取值": {
  7616. "prefix": "ym-db-ProfitObjectsActiveParams-FindByPrimaryKey",
  7617. "body": [
  7618. "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
  7619. "if ($1 != null)",
  7620. "{",
  7621. " int ProfitObjectsActiveId = $1.ProfitObjectsActiveId; //分润对象活动",
  7622. " string Name = $1.Name; //参数名称",
  7623. " string TextValue = $1.TextValue; //参数值",
  7624. " string Remark = $1.Remark; //参数说明",
  7625. "}"
  7626. ]
  7627. },
  7628. "查询某个分润对象活动参数,并赋值": {
  7629. "prefix": "ym-db-ProfitObjectsActiveParams-Update",
  7630. "body": [
  7631. "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
  7632. "if ($1 != null)",
  7633. "{",
  7634. " $1.ProfitObjectsActiveId = $2; //分润对象活动",
  7635. " $1.Name = $3; //参数名称",
  7636. " $1.TextValue = $4; //参数值",
  7637. " $1.Remark = $5; //参数说明",
  7638. "}"
  7639. ]
  7640. },
  7641. "获取分润对象活动参数数量": {
  7642. "prefix": "ym-db-ProfitObjectsActiveParams-FindAndCount",
  7643. "body": [
  7644. "int $1 = db.ProfitObjectsActiveParams.Count(m => $2);",
  7645. ]
  7646. },
  7647. "添加分润对象活动参数": {
  7648. "prefix": "ym-db-ProfitObjectsActiveParams-Create",
  7649. "body": [
  7650. "db.ProfitObjectsActiveParams.Add(new ProfitObjectsActiveParams()",
  7651. "{",
  7652. " CreateDate = DateTime.Now,",
  7653. " UpdateDate = DateTime.Now,",
  7654. " ProfitObjectsActiveId = $1, //分润对象活动",
  7655. " Name = $2, //参数名称",
  7656. " TextValue = $3, //参数值",
  7657. " Remark = $4, //参数说明",
  7658. "});"
  7659. ]
  7660. },"删除某个分润对象活动参数": {
  7661. "prefix": "ym-db-ProfitObjectsActiveParams-Delete",
  7662. "body": [
  7663. "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
  7664. "if ($1 != null)",
  7665. "{",
  7666. " db.ProfitObjectsActiveParams.Remove($1);",
  7667. "}"
  7668. ]
  7669. },
  7670. "查询分润对象活动奖列表": {
  7671. "prefix": "ym-db-ProfitObjectsActives-Find",
  7672. "body": [
  7673. "List<ProfitObjectsActives> $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7674. "foreach (ProfitObjectsActives $3 in $1)",
  7675. "{",
  7676. "}"
  7677. ]
  7678. },
  7679. "查询分润对象活动奖列表,并取值": {
  7680. "prefix": "ym-db-ProfitObjectsActives-FindWithData",
  7681. "body": [
  7682. "List<ProfitObjectsActives> $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7683. "foreach (ProfitObjectsActives $3 in $1)",
  7684. "{",
  7685. " string Name = $3.Name; //名称",
  7686. " int LimitDateKind = $3.LimitDateKind; //限制时间类型",
  7687. " int LimitDateVal = $3.LimitDateVal; //限制时间值",
  7688. " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制",
  7689. " decimal FinishNumber = $3.FinishNumber; //满足条件的数值",
  7690. " decimal ProfitNumber = $3.ProfitNumber; //获得收益值",
  7691. " int ObjectId = $3.ObjectId; //对象Id",
  7692. " DateTime StartDate = $3.StartDate; //活动开始时间",
  7693. " DateTime EndDate = $3.EndDate; //活动结束时间",
  7694. " int MachineCount = $3.MachineCount; //赠机台数",
  7695. "}"
  7696. ]
  7697. },
  7698. "查询分润对象活动奖": {
  7699. "prefix": "ym-db-ProfitObjectsActives-Exist",
  7700. "body": [
  7701. "bool $1 = db.ProfitObjectsActives.Any(m => m.Id == $2);",
  7702. ]
  7703. },
  7704. "查询某个分润对象活动奖,并取值": {
  7705. "prefix": "ym-db-ProfitObjectsActives-FindByPrimaryKey",
  7706. "body": [
  7707. "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
  7708. "if ($1 != null)",
  7709. "{",
  7710. " string Name = $1.Name; //名称",
  7711. " int LimitDateKind = $1.LimitDateKind; //限制时间类型",
  7712. " int LimitDateVal = $1.LimitDateVal; //限制时间值",
  7713. " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制",
  7714. " decimal FinishNumber = $1.FinishNumber; //满足条件的数值",
  7715. " decimal ProfitNumber = $1.ProfitNumber; //获得收益值",
  7716. " int ObjectId = $1.ObjectId; //对象Id",
  7717. " DateTime StartDate = $1.StartDate; //活动开始时间",
  7718. " DateTime EndDate = $1.EndDate; //活动结束时间",
  7719. " int MachineCount = $1.MachineCount; //赠机台数",
  7720. "}"
  7721. ]
  7722. },
  7723. "查询某个分润对象活动奖,并赋值": {
  7724. "prefix": "ym-db-ProfitObjectsActives-Update",
  7725. "body": [
  7726. "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
  7727. "if ($1 != null)",
  7728. "{",
  7729. " $1.Name = $2; //名称",
  7730. " $1.LimitDateKind = $3; //限制时间类型",
  7731. " $1.LimitDateVal = $4; //限制时间值",
  7732. " $1.LimitCustomerDate = $5; //自定时间限制",
  7733. " $1.FinishNumber = $6; //满足条件的数值",
  7734. " $1.ProfitNumber = $7; //获得收益值",
  7735. " $1.ObjectId = $8; //对象Id",
  7736. " $1.StartDate = $9; //活动开始时间",
  7737. " $1.EndDate = $10; //活动结束时间",
  7738. " $1.MachineCount = $11; //赠机台数",
  7739. "}"
  7740. ]
  7741. },
  7742. "获取分润对象活动奖数量": {
  7743. "prefix": "ym-db-ProfitObjectsActives-FindAndCount",
  7744. "body": [
  7745. "int $1 = db.ProfitObjectsActives.Count(m => $2);",
  7746. ]
  7747. },
  7748. "添加分润对象活动奖": {
  7749. "prefix": "ym-db-ProfitObjectsActives-Create",
  7750. "body": [
  7751. "db.ProfitObjectsActives.Add(new ProfitObjectsActives()",
  7752. "{",
  7753. " CreateDate = DateTime.Now,",
  7754. " UpdateDate = DateTime.Now,",
  7755. " Name = $1, //名称",
  7756. " LimitDateKind = $2, //限制时间类型",
  7757. " LimitDateVal = $3, //限制时间值",
  7758. " LimitCustomerDate = $4, //自定时间限制",
  7759. " FinishNumber = $5, //满足条件的数值",
  7760. " ProfitNumber = $6, //获得收益值",
  7761. " ObjectId = $7, //对象Id",
  7762. " StartDate = $8, //活动开始时间",
  7763. " EndDate = $9, //活动结束时间",
  7764. " MachineCount = $10, //赠机台数",
  7765. "});"
  7766. ]
  7767. },"删除某个分润对象活动奖": {
  7768. "prefix": "ym-db-ProfitObjectsActives-Delete",
  7769. "body": [
  7770. "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
  7771. "if ($1 != null)",
  7772. "{",
  7773. " db.ProfitObjectsActives.Remove($1);",
  7774. "}"
  7775. ]
  7776. },
  7777. "查询活动名称为主键的关联表列表": {
  7778. "prefix": "ym-db-ProfitObjectsActivesForId-Find",
  7779. "body": [
  7780. "List<ProfitObjectsActivesForId> $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7781. "foreach (ProfitObjectsActivesForId $3 in $1)",
  7782. "{",
  7783. "}"
  7784. ]
  7785. },
  7786. "查询活动名称为主键的关联表列表,并取值": {
  7787. "prefix": "ym-db-ProfitObjectsActivesForId-FindWithData",
  7788. "body": [
  7789. "List<ProfitObjectsActivesForId> $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7790. "foreach (ProfitObjectsActivesForId $3 in $1)",
  7791. "{",
  7792. " string Name = $3.Name; //名称",
  7793. " int ActivityId = $3.ActivityId; //活动Id",
  7794. "}"
  7795. ]
  7796. },
  7797. "查询活动名称为主键的关联表": {
  7798. "prefix": "ym-db-ProfitObjectsActivesForId-Exist",
  7799. "body": [
  7800. "bool $1 = db.ProfitObjectsActivesForId.Any(m => m.Name == $2);",
  7801. ]
  7802. },
  7803. "查询某个活动名称为主键的关联表,并取值": {
  7804. "prefix": "ym-db-ProfitObjectsActivesForId-FindByPrimaryKey",
  7805. "body": [
  7806. "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
  7807. "if ($1 != null)",
  7808. "{",
  7809. " string Name = $1.Name; //名称",
  7810. " int ActivityId = $1.ActivityId; //活动Id",
  7811. "}"
  7812. ]
  7813. },
  7814. "查询某个活动名称为主键的关联表,并赋值": {
  7815. "prefix": "ym-db-ProfitObjectsActivesForId-Update",
  7816. "body": [
  7817. "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
  7818. "if ($1 != null)",
  7819. "{",
  7820. " $1.Name = $2; //名称",
  7821. " $1.ActivityId = $3; //活动Id",
  7822. "}"
  7823. ]
  7824. },
  7825. "获取活动名称为主键的关联表数量": {
  7826. "prefix": "ym-db-ProfitObjectsActivesForId-FindAndCount",
  7827. "body": [
  7828. "int $1 = db.ProfitObjectsActivesForId.Count(m => $2);",
  7829. ]
  7830. },
  7831. "添加活动名称为主键的关联表": {
  7832. "prefix": "ym-db-ProfitObjectsActivesForId-Create",
  7833. "body": [
  7834. "db.ProfitObjectsActivesForId.Add(new ProfitObjectsActivesForId()",
  7835. "{",
  7836. " CreateDate = DateTime.Now,",
  7837. " UpdateDate = DateTime.Now,",
  7838. " Name = $1, //名称",
  7839. " ActivityId = $2, //活动Id",
  7840. "});"
  7841. ]
  7842. },"删除某个活动名称为主键的关联表": {
  7843. "prefix": "ym-db-ProfitObjectsActivesForId-Delete",
  7844. "body": [
  7845. "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
  7846. "if ($1 != null)",
  7847. "{",
  7848. " db.ProfitObjectsActivesForId.Remove($1);",
  7849. "}"
  7850. ]
  7851. },
  7852. "查询分润奖励记录列表": {
  7853. "prefix": "ym-db-ProfitRewardRecord-Find",
  7854. "body": [
  7855. "List<ProfitRewardRecord> $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7856. "foreach (ProfitRewardRecord $3 in $1)",
  7857. "{",
  7858. "}"
  7859. ]
  7860. },
  7861. "查询分润奖励记录列表,并取值": {
  7862. "prefix": "ym-db-ProfitRewardRecord-FindWithData",
  7863. "body": [
  7864. "List<ProfitRewardRecord> $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7865. "foreach (ProfitRewardRecord $3 in $1)",
  7866. "{",
  7867. " int UserId = $3.UserId; //创客",
  7868. " int MerchantId = $3.MerchantId; //商户",
  7869. " int BrandId = $3.BrandId; //品牌",
  7870. " int ProfitType = $3.ProfitType; //创客分润类型",
  7871. " decimal OtherTradeAmt = $3.OtherTradeAmt; //其他产品交易总金额",
  7872. " decimal OtherCreditTradeAmt = $3.OtherCreditTradeAmt; //其他产品贷记卡交易总金额",
  7873. " decimal OtherDebitNotCapTradeAmt = $3.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额",
  7874. " decimal TradeAmt = $3.TradeAmt; //商户交易总额",
  7875. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  7876. " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额",
  7877. " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额",
  7878. " decimal NotHelpCreditTradeAmt = $3.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额",
  7879. " decimal HelpCreditTradeAmt = $3.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额",
  7880. " decimal DebitNonCapTradeAmt = $3.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额",
  7881. " decimal QrDebitNotCapTradeAmt = $3.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额",
  7882. " decimal NonQrDebitNotCapTradeAmt = $3.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额",
  7883. " decimal NotHelpDebitNonCapTradeAmt = $3.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  7884. " decimal HelpDebitNonCapTradeAmt = $3.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  7885. " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  7886. " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  7887. " decimal TradeProfit = $3.TradeProfit; //交易分润",
  7888. " decimal CreditTradeProfit = $3.CreditTradeProfit; //贷记卡分润总金额",
  7889. " decimal QrCreditTradeProfit = $3.QrCreditTradeProfit; //(云闪付)贷记卡交易分润",
  7890. " decimal NonQrCreditTradeProfit = $3.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润",
  7891. " decimal NotHelpCreditTradeProfit = $3.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额",
  7892. " decimal HelpCreditTradeProfit = $3.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额",
  7893. " decimal DebitNonTradeCapProfit = $3.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额",
  7894. " decimal QrDebitNonTradeCapProfit = $3.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额",
  7895. " decimal NonQrDebitNonTradeCapProfit = $3.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额",
  7896. " decimal NotHelpDebitNonTradeCapProfit = $3.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  7897. " decimal HelpDebitNonTradeCapProfit = $3.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  7898. " decimal DebitTradeCapProfit = $3.DebitTradeCapProfit; //借记卡封顶交易分润总金额",
  7899. " decimal NotHelpCreditProfitRate = $3.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  7900. " decimal NotHelpCreditProfitStandardRate = $3.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例",
  7901. " decimal NotHelpCreditAddOrSubRate = $3.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  7902. " decimal HelpCreditProfitRate = $3.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  7903. " decimal HelpCreditProfitStandardRate = $3.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例",
  7904. " decimal HelpCreditAddOrSubRate = $3.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  7905. " decimal NotHelpDebitProfitRate = $3.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  7906. " decimal NotHelpDebitProfitStandardRate = $3.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例",
  7907. " decimal NotHelpDebitAddOrSubRate = $3.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  7908. " decimal HelpDebitProfitRate = $3.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  7909. " decimal HelpDebitProfitStandardRate = $3.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例",
  7910. " decimal HelpDebitAddOrSubRate = $3.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例",
  7911. " decimal DebitCapSingleReward = $3.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额",
  7912. " decimal QrCreditProfitRate = $3.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例",
  7913. " decimal QrCreditProfitStandardRate = $3.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准",
  7914. " decimal QrCreditAddOrSubRate = $3.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减",
  7915. " decimal QrDebitProfitRate = $3.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例",
  7916. " decimal QrDebitProfitStandardRate = $3.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准",
  7917. " decimal QrDebitAddOrSubRate = $3.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减",
  7918. " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
  7919. " string Remark = $3.Remark; //备注",
  7920. " string TradeMonth = $3.TradeMonth; //交易月",
  7921. " string RecordNo = $3.RecordNo; //记录单号",
  7922. " int TopUserId = $3.TopUserId; //顶级创客",
  7923. "}"
  7924. ]
  7925. },
  7926. "查询分润奖励记录": {
  7927. "prefix": "ym-db-ProfitRewardRecord-Exist",
  7928. "body": [
  7929. "bool $1 = db.ProfitRewardRecord.Any(m => m.Id == $2);",
  7930. ]
  7931. },
  7932. "查询某个分润奖励记录,并取值": {
  7933. "prefix": "ym-db-ProfitRewardRecord-FindByPrimaryKey",
  7934. "body": [
  7935. "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
  7936. "if ($1 != null)",
  7937. "{",
  7938. " int UserId = $1.UserId; //创客",
  7939. " int MerchantId = $1.MerchantId; //商户",
  7940. " int BrandId = $1.BrandId; //品牌",
  7941. " int ProfitType = $1.ProfitType; //创客分润类型",
  7942. " decimal OtherTradeAmt = $1.OtherTradeAmt; //其他产品交易总金额",
  7943. " decimal OtherCreditTradeAmt = $1.OtherCreditTradeAmt; //其他产品贷记卡交易总金额",
  7944. " decimal OtherDebitNotCapTradeAmt = $1.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额",
  7945. " decimal TradeAmt = $1.TradeAmt; //商户交易总额",
  7946. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  7947. " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额",
  7948. " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额",
  7949. " decimal NotHelpCreditTradeAmt = $1.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额",
  7950. " decimal HelpCreditTradeAmt = $1.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额",
  7951. " decimal DebitNonCapTradeAmt = $1.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额",
  7952. " decimal QrDebitNotCapTradeAmt = $1.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额",
  7953. " decimal NonQrDebitNotCapTradeAmt = $1.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额",
  7954. " decimal NotHelpDebitNonCapTradeAmt = $1.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  7955. " decimal HelpDebitNonCapTradeAmt = $1.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  7956. " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  7957. " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  7958. " decimal TradeProfit = $1.TradeProfit; //交易分润",
  7959. " decimal CreditTradeProfit = $1.CreditTradeProfit; //贷记卡分润总金额",
  7960. " decimal QrCreditTradeProfit = $1.QrCreditTradeProfit; //(云闪付)贷记卡交易分润",
  7961. " decimal NonQrCreditTradeProfit = $1.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润",
  7962. " decimal NotHelpCreditTradeProfit = $1.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额",
  7963. " decimal HelpCreditTradeProfit = $1.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额",
  7964. " decimal DebitNonTradeCapProfit = $1.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额",
  7965. " decimal QrDebitNonTradeCapProfit = $1.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额",
  7966. " decimal NonQrDebitNonTradeCapProfit = $1.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额",
  7967. " decimal NotHelpDebitNonTradeCapProfit = $1.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  7968. " decimal HelpDebitNonTradeCapProfit = $1.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  7969. " decimal DebitTradeCapProfit = $1.DebitTradeCapProfit; //借记卡封顶交易分润总金额",
  7970. " decimal NotHelpCreditProfitRate = $1.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  7971. " decimal NotHelpCreditProfitStandardRate = $1.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例",
  7972. " decimal NotHelpCreditAddOrSubRate = $1.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  7973. " decimal HelpCreditProfitRate = $1.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  7974. " decimal HelpCreditProfitStandardRate = $1.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例",
  7975. " decimal HelpCreditAddOrSubRate = $1.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  7976. " decimal NotHelpDebitProfitRate = $1.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  7977. " decimal NotHelpDebitProfitStandardRate = $1.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例",
  7978. " decimal NotHelpDebitAddOrSubRate = $1.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  7979. " decimal HelpDebitProfitRate = $1.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  7980. " decimal HelpDebitProfitStandardRate = $1.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例",
  7981. " decimal HelpDebitAddOrSubRate = $1.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例",
  7982. " decimal DebitCapSingleReward = $1.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额",
  7983. " decimal QrCreditProfitRate = $1.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例",
  7984. " decimal QrCreditProfitStandardRate = $1.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准",
  7985. " decimal QrCreditAddOrSubRate = $1.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减",
  7986. " decimal QrDebitProfitRate = $1.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例",
  7987. " decimal QrDebitProfitStandardRate = $1.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准",
  7988. " decimal QrDebitAddOrSubRate = $1.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减",
  7989. " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
  7990. " string Remark = $1.Remark; //备注",
  7991. " string TradeMonth = $1.TradeMonth; //交易月",
  7992. " string RecordNo = $1.RecordNo; //记录单号",
  7993. " int TopUserId = $1.TopUserId; //顶级创客",
  7994. "}"
  7995. ]
  7996. },
  7997. "查询某个分润奖励记录,并赋值": {
  7998. "prefix": "ym-db-ProfitRewardRecord-Update",
  7999. "body": [
  8000. "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
  8001. "if ($1 != null)",
  8002. "{",
  8003. " $1.UserId = $2; //创客",
  8004. " $1.MerchantId = $3; //商户",
  8005. " $1.BrandId = $4; //品牌",
  8006. " $1.ProfitType = $5; //创客分润类型",
  8007. " $1.OtherTradeAmt = $6; //其他产品交易总金额",
  8008. " $1.OtherCreditTradeAmt = $7; //其他产品贷记卡交易总金额",
  8009. " $1.OtherDebitNotCapTradeAmt = $8; //其他产品借记卡非封顶交易总金额",
  8010. " $1.TradeAmt = $9; //商户交易总额",
  8011. " $1.CreditTradeAmt = $10; //贷记卡交易总金额",
  8012. " $1.QrCreditTradeAmt = $11; //(云闪付)贷记卡交易总金额",
  8013. " $1.NonQrCreditTradeAmt = $12; //(非云闪付)贷记卡交易总金额",
  8014. " $1.NotHelpCreditTradeAmt = $13; //(非扶持期)(非云闪付)贷记卡交易总金额",
  8015. " $1.HelpCreditTradeAmt = $14; //(扶持期)(非云闪付)贷记卡交易总金额",
  8016. " $1.DebitNonCapTradeAmt = $15; //商户非封顶借记卡交易总额",
  8017. " $1.QrDebitNotCapTradeAmt = $16; //(云闪付)商户非封顶借记卡交易总额",
  8018. " $1.NonQrDebitNotCapTradeAmt = $17; //(非云闪付)商户非封顶借记卡交易总额",
  8019. " $1.NotHelpDebitNonCapTradeAmt = $18; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  8020. " $1.HelpDebitNonCapTradeAmt = $19; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  8021. " $1.DebitCapTradeAmt = $20; //商户借记卡封顶交易总额",
  8022. " $1.DebitCapTradeNum = $21; //商户借记卡封顶交易总笔数",
  8023. " $1.TradeProfit = $22; //交易分润",
  8024. " $1.CreditTradeProfit = $23; //贷记卡分润总金额",
  8025. " $1.QrCreditTradeProfit = $24; //(云闪付)贷记卡交易分润",
  8026. " $1.NonQrCreditTradeProfit = $25; //(非云闪付)贷记卡交易分润",
  8027. " $1.NotHelpCreditTradeProfit = $26; //(非扶持期)(非云闪付)贷记卡分润总金额",
  8028. " $1.HelpCreditTradeProfit = $27; //(扶持期)(非云闪付)贷记卡分润总金额",
  8029. " $1.DebitNonTradeCapProfit = $28; //借记卡非封顶交易分润总金额",
  8030. " $1.QrDebitNonTradeCapProfit = $29; //(云闪付)借记卡非封顶交易分润总金额",
  8031. " $1.NonQrDebitNonTradeCapProfit = $30; //(非云闪付)借记卡非封顶交易分润总金额",
  8032. " $1.NotHelpDebitNonTradeCapProfit = $31; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  8033. " $1.HelpDebitNonTradeCapProfit = $32; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  8034. " $1.DebitTradeCapProfit = $33; //借记卡封顶交易分润总金额",
  8035. " $1.NotHelpCreditProfitRate = $34; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  8036. " $1.NotHelpCreditProfitStandardRate = $35; //(非扶持期)(非云闪付)贷记卡标准分润比例",
  8037. " $1.NotHelpCreditAddOrSubRate = $36; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  8038. " $1.HelpCreditProfitRate = $37; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  8039. " $1.HelpCreditProfitStandardRate = $38; //(扶持期)(非云闪付)贷记卡-标准分润比例",
  8040. " $1.HelpCreditAddOrSubRate = $39; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  8041. " $1.NotHelpDebitProfitRate = $40; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  8042. " $1.NotHelpDebitProfitStandardRate = $41; //(非扶持期)(非云闪付)借记卡标准分润比例",
  8043. " $1.NotHelpDebitAddOrSubRate = $42; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  8044. " $1.HelpDebitProfitRate = $43; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  8045. " $1.HelpDebitProfitStandardRate = $44; //(扶持期)(非云闪付)借记卡-标准分润比例",
  8046. " $1.HelpDebitAddOrSubRate = $45; //(扶持期)(非云闪付)借记卡成本或增或减比例",
  8047. " $1.DebitCapSingleReward = $46; //借记卡合伙人直营封顶交易奖励金额",
  8048. " $1.QrCreditProfitRate = $47; //(云闪付)贷记卡交易分润比例",
  8049. " $1.QrCreditProfitStandardRate = $48; //(云闪付)贷记卡分润基准",
  8050. " $1.QrCreditAddOrSubRate = $49; //(云闪付)贷记卡分润比例或增或减",
  8051. " $1.QrDebitProfitRate = $50; //(云闪付)借记卡非封顶交易分润比例",
  8052. " $1.QrDebitProfitStandardRate = $51; //(云闪付)借记卡非封顶交易分润基准",
  8053. " $1.QrDebitAddOrSubRate = $52; //(云闪付)借记卡非封顶交易分润比例或增或减",
  8054. " $1.CheckStatus = $53; //验证和同步账户状态",
  8055. " $1.Remark = $54; //备注",
  8056. " $1.TradeMonth = $55; //交易月",
  8057. " $1.RecordNo = $56; //记录单号",
  8058. " $1.TopUserId = $57; //顶级创客",
  8059. "}"
  8060. ]
  8061. },
  8062. "获取分润奖励记录数量": {
  8063. "prefix": "ym-db-ProfitRewardRecord-FindAndCount",
  8064. "body": [
  8065. "int $1 = db.ProfitRewardRecord.Count(m => $2);",
  8066. ]
  8067. },
  8068. "添加分润奖励记录": {
  8069. "prefix": "ym-db-ProfitRewardRecord-Create",
  8070. "body": [
  8071. "db.ProfitRewardRecord.Add(new ProfitRewardRecord()",
  8072. "{",
  8073. " CreateDate = DateTime.Now,",
  8074. " UpdateDate = DateTime.Now,",
  8075. " UserId = $1, //创客",
  8076. " MerchantId = $2, //商户",
  8077. " BrandId = $3, //品牌",
  8078. " ProfitType = $4, //创客分润类型",
  8079. " OtherTradeAmt = $5, //其他产品交易总金额",
  8080. " OtherCreditTradeAmt = $6, //其他产品贷记卡交易总金额",
  8081. " OtherDebitNotCapTradeAmt = $7, //其他产品借记卡非封顶交易总金额",
  8082. " TradeAmt = $8, //商户交易总额",
  8083. " CreditTradeAmt = $9, //贷记卡交易总金额",
  8084. " QrCreditTradeAmt = $10, //(云闪付)贷记卡交易总金额",
  8085. " NonQrCreditTradeAmt = $11, //(非云闪付)贷记卡交易总金额",
  8086. " NotHelpCreditTradeAmt = $12, //(非扶持期)(非云闪付)贷记卡交易总金额",
  8087. " HelpCreditTradeAmt = $13, //(扶持期)(非云闪付)贷记卡交易总金额",
  8088. " DebitNonCapTradeAmt = $14, //商户非封顶借记卡交易总额",
  8089. " QrDebitNotCapTradeAmt = $15, //(云闪付)商户非封顶借记卡交易总额",
  8090. " NonQrDebitNotCapTradeAmt = $16, //(非云闪付)商户非封顶借记卡交易总额",
  8091. " NotHelpDebitNonCapTradeAmt = $17, //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  8092. " HelpDebitNonCapTradeAmt = $18, //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  8093. " DebitCapTradeAmt = $19, //商户借记卡封顶交易总额",
  8094. " DebitCapTradeNum = $20, //商户借记卡封顶交易总笔数",
  8095. " TradeProfit = $21, //交易分润",
  8096. " CreditTradeProfit = $22, //贷记卡分润总金额",
  8097. " QrCreditTradeProfit = $23, //(云闪付)贷记卡交易分润",
  8098. " NonQrCreditTradeProfit = $24, //(非云闪付)贷记卡交易分润",
  8099. " NotHelpCreditTradeProfit = $25, //(非扶持期)(非云闪付)贷记卡分润总金额",
  8100. " HelpCreditTradeProfit = $26, //(扶持期)(非云闪付)贷记卡分润总金额",
  8101. " DebitNonTradeCapProfit = $27, //借记卡非封顶交易分润总金额",
  8102. " QrDebitNonTradeCapProfit = $28, //(云闪付)借记卡非封顶交易分润总金额",
  8103. " NonQrDebitNonTradeCapProfit = $29, //(非云闪付)借记卡非封顶交易分润总金额",
  8104. " NotHelpDebitNonTradeCapProfit = $30, //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  8105. " HelpDebitNonTradeCapProfit = $31, //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  8106. " DebitTradeCapProfit = $32, //借记卡封顶交易分润总金额",
  8107. " NotHelpCreditProfitRate = $33, //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  8108. " NotHelpCreditProfitStandardRate = $34, //(非扶持期)(非云闪付)贷记卡标准分润比例",
  8109. " NotHelpCreditAddOrSubRate = $35, //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  8110. " HelpCreditProfitRate = $36, //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  8111. " HelpCreditProfitStandardRate = $37, //(扶持期)(非云闪付)贷记卡-标准分润比例",
  8112. " HelpCreditAddOrSubRate = $38, //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  8113. " NotHelpDebitProfitRate = $39, //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  8114. " NotHelpDebitProfitStandardRate = $40, //(非扶持期)(非云闪付)借记卡标准分润比例",
  8115. " NotHelpDebitAddOrSubRate = $41, //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  8116. " HelpDebitProfitRate = $42, //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  8117. " HelpDebitProfitStandardRate = $43, //(扶持期)(非云闪付)借记卡-标准分润比例",
  8118. " HelpDebitAddOrSubRate = $44, //(扶持期)(非云闪付)借记卡成本或增或减比例",
  8119. " DebitCapSingleReward = $45, //借记卡合伙人直营封顶交易奖励金额",
  8120. " QrCreditProfitRate = $46, //(云闪付)贷记卡交易分润比例",
  8121. " QrCreditProfitStandardRate = $47, //(云闪付)贷记卡分润基准",
  8122. " QrCreditAddOrSubRate = $48, //(云闪付)贷记卡分润比例或增或减",
  8123. " QrDebitProfitRate = $49, //(云闪付)借记卡非封顶交易分润比例",
  8124. " QrDebitProfitStandardRate = $50, //(云闪付)借记卡非封顶交易分润基准",
  8125. " QrDebitAddOrSubRate = $51, //(云闪付)借记卡非封顶交易分润比例或增或减",
  8126. " CheckStatus = $52, //验证和同步账户状态",
  8127. " Remark = $53, //备注",
  8128. " TradeMonth = $54, //交易月",
  8129. " RecordNo = $55, //记录单号",
  8130. " TopUserId = $56, //顶级创客",
  8131. "});"
  8132. ]
  8133. },"删除某个分润奖励记录": {
  8134. "prefix": "ym-db-ProfitRewardRecord-Delete",
  8135. "body": [
  8136. "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
  8137. "if ($1 != null)",
  8138. "{",
  8139. " db.ProfitRewardRecord.Remove($1);",
  8140. "}"
  8141. ]
  8142. },
  8143. "查询分润补贴明细列表": {
  8144. "prefix": "ym-db-ProfitSubsidyDetail-Find",
  8145. "body": [
  8146. "List<ProfitSubsidyDetail> $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8147. "foreach (ProfitSubsidyDetail $3 in $1)",
  8148. "{",
  8149. "}"
  8150. ]
  8151. },
  8152. "查询分润补贴明细列表,并取值": {
  8153. "prefix": "ym-db-ProfitSubsidyDetail-FindWithData",
  8154. "body": [
  8155. "List<ProfitSubsidyDetail> $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8156. "foreach (ProfitSubsidyDetail $3 in $1)",
  8157. "{",
  8158. " string RecordNo = $3.RecordNo; //流水号",
  8159. " int BrandId = $3.BrandId; //品牌",
  8160. " string ProductName = $3.ProductName; //产品名称",
  8161. " string TradeMonth = $3.TradeMonth; //交易月份",
  8162. " int MerchantId = $3.MerchantId; //商户",
  8163. " string MerNo = $3.MerNo; //渠道商户编号",
  8164. " string SnNo = $3.SnNo; //渠道SN号",
  8165. " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间",
  8166. " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
  8167. " int BelongUserId = $3.BelongUserId; //商户归属人",
  8168. " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户",
  8169. " int SubsidyUserId = $3.SubsidyUserId; //补贴人",
  8170. " int SubsidyType = $3.SubsidyType; //分润补贴类型",
  8171. " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额",
  8172. " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额",
  8173. " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额",
  8174. " decimal CreditProfitRate = $3.CreditProfitRate; //(非云闪付)贷记卡交易分润比例",
  8175. " decimal SubsidyProfitRate = $3.SubsidyProfitRate; //创客活动期内直营商户分润万分之十",
  8176. " decimal SubsidyProfit = $3.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额",
  8177. " string Remark = $3.Remark; //备注",
  8178. "}"
  8179. ]
  8180. },
  8181. "查询分润补贴明细": {
  8182. "prefix": "ym-db-ProfitSubsidyDetail-Exist",
  8183. "body": [
  8184. "bool $1 = db.ProfitSubsidyDetail.Any(m => m.Id == $2);",
  8185. ]
  8186. },
  8187. "查询某个分润补贴明细,并取值": {
  8188. "prefix": "ym-db-ProfitSubsidyDetail-FindByPrimaryKey",
  8189. "body": [
  8190. "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
  8191. "if ($1 != null)",
  8192. "{",
  8193. " string RecordNo = $1.RecordNo; //流水号",
  8194. " int BrandId = $1.BrandId; //品牌",
  8195. " string ProductName = $1.ProductName; //产品名称",
  8196. " string TradeMonth = $1.TradeMonth; //交易月份",
  8197. " int MerchantId = $1.MerchantId; //商户",
  8198. " string MerNo = $1.MerNo; //渠道商户编号",
  8199. " string SnNo = $1.SnNo; //渠道SN号",
  8200. " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间",
  8201. " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
  8202. " int BelongUserId = $1.BelongUserId; //商户归属人",
  8203. " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户",
  8204. " int SubsidyUserId = $1.SubsidyUserId; //补贴人",
  8205. " int SubsidyType = $1.SubsidyType; //分润补贴类型",
  8206. " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额",
  8207. " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额",
  8208. " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额",
  8209. " decimal CreditProfitRate = $1.CreditProfitRate; //(非云闪付)贷记卡交易分润比例",
  8210. " decimal SubsidyProfitRate = $1.SubsidyProfitRate; //创客活动期内直营商户分润万分之十",
  8211. " decimal SubsidyProfit = $1.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额",
  8212. " string Remark = $1.Remark; //备注",
  8213. "}"
  8214. ]
  8215. },
  8216. "查询某个分润补贴明细,并赋值": {
  8217. "prefix": "ym-db-ProfitSubsidyDetail-Update",
  8218. "body": [
  8219. "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
  8220. "if ($1 != null)",
  8221. "{",
  8222. " $1.RecordNo = $2; //流水号",
  8223. " $1.BrandId = $3; //品牌",
  8224. " $1.ProductName = $4; //产品名称",
  8225. " $1.TradeMonth = $5; //交易月份",
  8226. " $1.MerchantId = $6; //商户",
  8227. " $1.MerNo = $7; //渠道商户编号",
  8228. " $1.SnNo = $8; //渠道SN号",
  8229. " $1.MerRegTime = $9; //渠道注册时间",
  8230. " $1.MerStandardDate = $10; //商户激活时间",
  8231. " $1.BelongUserId = $11; //商户归属人",
  8232. " $1.MerHelpFlag = $12; //是否属于扶持周期内商户",
  8233. " $1.SubsidyUserId = $13; //补贴人",
  8234. " $1.SubsidyType = $14; //分润补贴类型",
  8235. " $1.CreditTradeAmt = $15; //商户贷记卡交易总金额",
  8236. " $1.QrCreditTradeAmt = $16; //商户(云闪付)贷记卡交易总金额",
  8237. " $1.NonQrCreditTradeAmt = $17; //商户(非云闪付)贷记卡交易总金额",
  8238. " $1.CreditProfitRate = $18; //(非云闪付)贷记卡交易分润比例",
  8239. " $1.SubsidyProfitRate = $19; //创客活动期内直营商户分润万分之十",
  8240. " $1.SubsidyProfit = $20; //商户(非云闪付)贷记卡交易分润补贴金额",
  8241. " $1.Remark = $21; //备注",
  8242. "}"
  8243. ]
  8244. },
  8245. "获取分润补贴明细数量": {
  8246. "prefix": "ym-db-ProfitSubsidyDetail-FindAndCount",
  8247. "body": [
  8248. "int $1 = db.ProfitSubsidyDetail.Count(m => $2);",
  8249. ]
  8250. },
  8251. "添加分润补贴明细": {
  8252. "prefix": "ym-db-ProfitSubsidyDetail-Create",
  8253. "body": [
  8254. "db.ProfitSubsidyDetail.Add(new ProfitSubsidyDetail()",
  8255. "{",
  8256. " CreateDate = DateTime.Now,",
  8257. " UpdateDate = DateTime.Now,",
  8258. " RecordNo = $1, //流水号",
  8259. " BrandId = $2, //品牌",
  8260. " ProductName = $3, //产品名称",
  8261. " TradeMonth = $4, //交易月份",
  8262. " MerchantId = $5, //商户",
  8263. " MerNo = $6, //渠道商户编号",
  8264. " SnNo = $7, //渠道SN号",
  8265. " MerRegTime = $8, //渠道注册时间",
  8266. " MerStandardDate = $9, //商户激活时间",
  8267. " BelongUserId = $10, //商户归属人",
  8268. " MerHelpFlag = $11, //是否属于扶持周期内商户",
  8269. " SubsidyUserId = $12, //补贴人",
  8270. " SubsidyType = $13, //分润补贴类型",
  8271. " CreditTradeAmt = $14, //商户贷记卡交易总金额",
  8272. " QrCreditTradeAmt = $15, //商户(云闪付)贷记卡交易总金额",
  8273. " NonQrCreditTradeAmt = $16, //商户(非云闪付)贷记卡交易总金额",
  8274. " CreditProfitRate = $17, //(非云闪付)贷记卡交易分润比例",
  8275. " SubsidyProfitRate = $18, //创客活动期内直营商户分润万分之十",
  8276. " SubsidyProfit = $19, //商户(非云闪付)贷记卡交易分润补贴金额",
  8277. " Remark = $20, //备注",
  8278. "});"
  8279. ]
  8280. },"删除某个分润补贴明细": {
  8281. "prefix": "ym-db-ProfitSubsidyDetail-Delete",
  8282. "body": [
  8283. "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
  8284. "if ($1 != null)",
  8285. "{",
  8286. " db.ProfitSubsidyDetail.Remove($1);",
  8287. "}"
  8288. ]
  8289. },
  8290. "查询拉新活动信息列表": {
  8291. "prefix": "ym-db-PullNewAct-Find",
  8292. "body": [
  8293. "List<PullNewAct> $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8294. "foreach (PullNewAct $3 in $1)",
  8295. "{",
  8296. "}"
  8297. ]
  8298. },
  8299. "查询拉新活动信息列表,并取值": {
  8300. "prefix": "ym-db-PullNewAct-FindWithData",
  8301. "body": [
  8302. "List<PullNewAct> $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8303. "foreach (PullNewAct $3 in $1)",
  8304. "{",
  8305. " int SnDelayDay = $3.SnDelayDay; //机具延时时间",
  8306. " int ProductType = $3.ProductType; //产品类型",
  8307. " string ProductName = $3.ProductName; //产品名称",
  8308. " string ActStdCond = $3.ActStdCond; //拉新活动达标条件",
  8309. " DateTime ActEffectStartDate = $3.ActEffectStartDate; //有效开始时间",
  8310. " DateTime ActEffectEndDate = $3.ActEffectEndDate; //有效结束时间",
  8311. " string Remark = $3.Remark; //备注",
  8312. "}"
  8313. ]
  8314. },
  8315. "查询拉新活动信息": {
  8316. "prefix": "ym-db-PullNewAct-Exist",
  8317. "body": [
  8318. "bool $1 = db.PullNewAct.Any(m => m.Id == $2);",
  8319. ]
  8320. },
  8321. "查询某个拉新活动信息,并取值": {
  8322. "prefix": "ym-db-PullNewAct-FindByPrimaryKey",
  8323. "body": [
  8324. "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
  8325. "if ($1 != null)",
  8326. "{",
  8327. " int SnDelayDay = $1.SnDelayDay; //机具延时时间",
  8328. " int ProductType = $1.ProductType; //产品类型",
  8329. " string ProductName = $1.ProductName; //产品名称",
  8330. " string ActStdCond = $1.ActStdCond; //拉新活动达标条件",
  8331. " DateTime ActEffectStartDate = $1.ActEffectStartDate; //有效开始时间",
  8332. " DateTime ActEffectEndDate = $1.ActEffectEndDate; //有效结束时间",
  8333. " string Remark = $1.Remark; //备注",
  8334. "}"
  8335. ]
  8336. },
  8337. "查询某个拉新活动信息,并赋值": {
  8338. "prefix": "ym-db-PullNewAct-Update",
  8339. "body": [
  8340. "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
  8341. "if ($1 != null)",
  8342. "{",
  8343. " $1.SnDelayDay = $2; //机具延时时间",
  8344. " $1.ProductType = $3; //产品类型",
  8345. " $1.ProductName = $4; //产品名称",
  8346. " $1.ActStdCond = $5; //拉新活动达标条件",
  8347. " $1.ActEffectStartDate = $6; //有效开始时间",
  8348. " $1.ActEffectEndDate = $7; //有效结束时间",
  8349. " $1.Remark = $8; //备注",
  8350. "}"
  8351. ]
  8352. },
  8353. "获取拉新活动信息数量": {
  8354. "prefix": "ym-db-PullNewAct-FindAndCount",
  8355. "body": [
  8356. "int $1 = db.PullNewAct.Count(m => $2);",
  8357. ]
  8358. },
  8359. "添加拉新活动信息": {
  8360. "prefix": "ym-db-PullNewAct-Create",
  8361. "body": [
  8362. "db.PullNewAct.Add(new PullNewAct()",
  8363. "{",
  8364. " CreateDate = DateTime.Now,",
  8365. " UpdateDate = DateTime.Now,",
  8366. " SnDelayDay = $1, //机具延时时间",
  8367. " ProductType = $2, //产品类型",
  8368. " ProductName = $3, //产品名称",
  8369. " ActStdCond = $4, //拉新活动达标条件",
  8370. " ActEffectStartDate = $5, //有效开始时间",
  8371. " ActEffectEndDate = $6, //有效结束时间",
  8372. " Remark = $7, //备注",
  8373. "});"
  8374. ]
  8375. },"删除某个拉新活动信息": {
  8376. "prefix": "ym-db-PullNewAct-Delete",
  8377. "body": [
  8378. "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
  8379. "if ($1 != null)",
  8380. "{",
  8381. " db.PullNewAct.Remove($1);",
  8382. "}"
  8383. ]
  8384. },
  8385. "查询拉新明细列表": {
  8386. "prefix": "ym-db-PullNewDetail-Find",
  8387. "body": [
  8388. "List<PullNewDetail> $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8389. "foreach (PullNewDetail $3 in $1)",
  8390. "{",
  8391. "}"
  8392. ]
  8393. },
  8394. "查询拉新明细列表,并取值": {
  8395. "prefix": "ym-db-PullNewDetail-FindWithData",
  8396. "body": [
  8397. "List<PullNewDetail> $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8398. "foreach (PullNewDetail $3 in $1)",
  8399. "{",
  8400. " string StatDate = $3.StatDate; //统计日期",
  8401. " string StatMonth = $3.StatMonth; //统计所在月份",
  8402. " int UserId = $3.UserId; //创客",
  8403. " int StatType = $3.StatType; //统计类型",
  8404. " int RecUserId = $3.RecUserId; //招募人",
  8405. " string RecMallOrder = $3.RecMallOrder; //招募人商城订单号",
  8406. " DateTime RecMallOrderTime = $3.RecMallOrderTime; //招募创客商城下单时间",
  8407. " DateTime RecMallSendTime = $3.RecMallSendTime; //招募人商城发货时间",
  8408. " int RecMallBrandId = $3.RecMallBrandId; //招募人商城订单品牌",
  8409. " string RecMallProductName = $3.RecMallProductName; //招募人商城订单产品名称",
  8410. " int RecMallProductNum = $3.RecMallProductNum; //招募人商城订单产品数量",
  8411. " int BizStatus = $3.BizStatus; //业务状态",
  8412. " int RewardStatus = $3.RewardStatus; //奖励状态",
  8413. " string Remark = $3.Remark; //备注",
  8414. " int RecUserType = $3.RecUserType; //商户创客类型",
  8415. " DateTime RegDate = $3.RegDate; //注册时间",
  8416. "}"
  8417. ]
  8418. },
  8419. "查询拉新明细": {
  8420. "prefix": "ym-db-PullNewDetail-Exist",
  8421. "body": [
  8422. "bool $1 = db.PullNewDetail.Any(m => m.Id == $2);",
  8423. ]
  8424. },
  8425. "查询某个拉新明细,并取值": {
  8426. "prefix": "ym-db-PullNewDetail-FindByPrimaryKey",
  8427. "body": [
  8428. "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
  8429. "if ($1 != null)",
  8430. "{",
  8431. " string StatDate = $1.StatDate; //统计日期",
  8432. " string StatMonth = $1.StatMonth; //统计所在月份",
  8433. " int UserId = $1.UserId; //创客",
  8434. " int StatType = $1.StatType; //统计类型",
  8435. " int RecUserId = $1.RecUserId; //招募人",
  8436. " string RecMallOrder = $1.RecMallOrder; //招募人商城订单号",
  8437. " DateTime RecMallOrderTime = $1.RecMallOrderTime; //招募创客商城下单时间",
  8438. " DateTime RecMallSendTime = $1.RecMallSendTime; //招募人商城发货时间",
  8439. " int RecMallBrandId = $1.RecMallBrandId; //招募人商城订单品牌",
  8440. " string RecMallProductName = $1.RecMallProductName; //招募人商城订单产品名称",
  8441. " int RecMallProductNum = $1.RecMallProductNum; //招募人商城订单产品数量",
  8442. " int BizStatus = $1.BizStatus; //业务状态",
  8443. " int RewardStatus = $1.RewardStatus; //奖励状态",
  8444. " string Remark = $1.Remark; //备注",
  8445. " int RecUserType = $1.RecUserType; //商户创客类型",
  8446. " DateTime RegDate = $1.RegDate; //注册时间",
  8447. "}"
  8448. ]
  8449. },
  8450. "查询某个拉新明细,并赋值": {
  8451. "prefix": "ym-db-PullNewDetail-Update",
  8452. "body": [
  8453. "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
  8454. "if ($1 != null)",
  8455. "{",
  8456. " $1.StatDate = $2; //统计日期",
  8457. " $1.StatMonth = $3; //统计所在月份",
  8458. " $1.UserId = $4; //创客",
  8459. " $1.StatType = $5; //统计类型",
  8460. " $1.RecUserId = $6; //招募人",
  8461. " $1.RecMallOrder = $7; //招募人商城订单号",
  8462. " $1.RecMallOrderTime = $8; //招募创客商城下单时间",
  8463. " $1.RecMallSendTime = $9; //招募人商城发货时间",
  8464. " $1.RecMallBrandId = $10; //招募人商城订单品牌",
  8465. " $1.RecMallProductName = $11; //招募人商城订单产品名称",
  8466. " $1.RecMallProductNum = $12; //招募人商城订单产品数量",
  8467. " $1.BizStatus = $13; //业务状态",
  8468. " $1.RewardStatus = $14; //奖励状态",
  8469. " $1.Remark = $15; //备注",
  8470. " $1.RecUserType = $16; //商户创客类型",
  8471. " $1.RegDate = $17; //注册时间",
  8472. "}"
  8473. ]
  8474. },
  8475. "获取拉新明细数量": {
  8476. "prefix": "ym-db-PullNewDetail-FindAndCount",
  8477. "body": [
  8478. "int $1 = db.PullNewDetail.Count(m => $2);",
  8479. ]
  8480. },
  8481. "添加拉新明细": {
  8482. "prefix": "ym-db-PullNewDetail-Create",
  8483. "body": [
  8484. "db.PullNewDetail.Add(new PullNewDetail()",
  8485. "{",
  8486. " CreateDate = DateTime.Now,",
  8487. " UpdateDate = DateTime.Now,",
  8488. " StatDate = $1, //统计日期",
  8489. " StatMonth = $2, //统计所在月份",
  8490. " UserId = $3, //创客",
  8491. " StatType = $4, //统计类型",
  8492. " RecUserId = $5, //招募人",
  8493. " RecMallOrder = $6, //招募人商城订单号",
  8494. " RecMallOrderTime = $7, //招募创客商城下单时间",
  8495. " RecMallSendTime = $8, //招募人商城发货时间",
  8496. " RecMallBrandId = $9, //招募人商城订单品牌",
  8497. " RecMallProductName = $10, //招募人商城订单产品名称",
  8498. " RecMallProductNum = $11, //招募人商城订单产品数量",
  8499. " BizStatus = $12, //业务状态",
  8500. " RewardStatus = $13, //奖励状态",
  8501. " Remark = $14, //备注",
  8502. " RecUserType = $15, //商户创客类型",
  8503. " RegDate = $16, //注册时间",
  8504. "});"
  8505. ]
  8506. },"删除某个拉新明细": {
  8507. "prefix": "ym-db-PullNewDetail-Delete",
  8508. "body": [
  8509. "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
  8510. "if ($1 != null)",
  8511. "{",
  8512. " db.PullNewDetail.Remove($1);",
  8513. "}"
  8514. ]
  8515. },
  8516. "查询拉新日统计信息列表": {
  8517. "prefix": "ym-db-PullnewSummary-Find",
  8518. "body": [
  8519. "List<PullnewSummary> $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8520. "foreach (PullnewSummary $3 in $1)",
  8521. "{",
  8522. "}"
  8523. ]
  8524. },
  8525. "查询拉新日统计信息列表,并取值": {
  8526. "prefix": "ym-db-PullnewSummary-FindWithData",
  8527. "body": [
  8528. "List<PullnewSummary> $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8529. "foreach (PullnewSummary $3 in $1)",
  8530. "{",
  8531. " string StatDate = $3.StatDate; //统计日",
  8532. " string StatMonth = $3.StatMonth; //统计月",
  8533. " int UserId = $3.UserId; //创客",
  8534. " int BrandId = $3.BrandId; //产品类型",
  8535. " int RecUserAuthNum = $3.RecUserAuthNum; //招募实名创客数",
  8536. " int RecUserDeliveryStdNum = $3.RecUserDeliveryStdNum; //招募创客提货达标人数",
  8537. " int RuleSnDelayDay = $3.RuleSnDelayDay; //规则机具延迟天数",
  8538. " int BizSnDelayDay = $3.BizSnDelayDay; //业务机具延迟天数",
  8539. " string Remark = $3.Remark; //备注",
  8540. "}"
  8541. ]
  8542. },
  8543. "查询拉新日统计信息": {
  8544. "prefix": "ym-db-PullnewSummary-Exist",
  8545. "body": [
  8546. "bool $1 = db.PullnewSummary.Any(m => m.Id == $2);",
  8547. ]
  8548. },
  8549. "查询某个拉新日统计信息,并取值": {
  8550. "prefix": "ym-db-PullnewSummary-FindByPrimaryKey",
  8551. "body": [
  8552. "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
  8553. "if ($1 != null)",
  8554. "{",
  8555. " string StatDate = $1.StatDate; //统计日",
  8556. " string StatMonth = $1.StatMonth; //统计月",
  8557. " int UserId = $1.UserId; //创客",
  8558. " int BrandId = $1.BrandId; //产品类型",
  8559. " int RecUserAuthNum = $1.RecUserAuthNum; //招募实名创客数",
  8560. " int RecUserDeliveryStdNum = $1.RecUserDeliveryStdNum; //招募创客提货达标人数",
  8561. " int RuleSnDelayDay = $1.RuleSnDelayDay; //规则机具延迟天数",
  8562. " int BizSnDelayDay = $1.BizSnDelayDay; //业务机具延迟天数",
  8563. " string Remark = $1.Remark; //备注",
  8564. "}"
  8565. ]
  8566. },
  8567. "查询某个拉新日统计信息,并赋值": {
  8568. "prefix": "ym-db-PullnewSummary-Update",
  8569. "body": [
  8570. "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
  8571. "if ($1 != null)",
  8572. "{",
  8573. " $1.StatDate = $2; //统计日",
  8574. " $1.StatMonth = $3; //统计月",
  8575. " $1.UserId = $4; //创客",
  8576. " $1.BrandId = $5; //产品类型",
  8577. " $1.RecUserAuthNum = $6; //招募实名创客数",
  8578. " $1.RecUserDeliveryStdNum = $7; //招募创客提货达标人数",
  8579. " $1.RuleSnDelayDay = $8; //规则机具延迟天数",
  8580. " $1.BizSnDelayDay = $9; //业务机具延迟天数",
  8581. " $1.Remark = $10; //备注",
  8582. "}"
  8583. ]
  8584. },
  8585. "获取拉新日统计信息数量": {
  8586. "prefix": "ym-db-PullnewSummary-FindAndCount",
  8587. "body": [
  8588. "int $1 = db.PullnewSummary.Count(m => $2);",
  8589. ]
  8590. },
  8591. "添加拉新日统计信息": {
  8592. "prefix": "ym-db-PullnewSummary-Create",
  8593. "body": [
  8594. "db.PullnewSummary.Add(new PullnewSummary()",
  8595. "{",
  8596. " CreateDate = DateTime.Now,",
  8597. " UpdateDate = DateTime.Now,",
  8598. " StatDate = $1, //统计日",
  8599. " StatMonth = $2, //统计月",
  8600. " UserId = $3, //创客",
  8601. " BrandId = $4, //产品类型",
  8602. " RecUserAuthNum = $5, //招募实名创客数",
  8603. " RecUserDeliveryStdNum = $6, //招募创客提货达标人数",
  8604. " RuleSnDelayDay = $7, //规则机具延迟天数",
  8605. " BizSnDelayDay = $8, //业务机具延迟天数",
  8606. " Remark = $9, //备注",
  8607. "});"
  8608. ]
  8609. },"删除某个拉新日统计信息": {
  8610. "prefix": "ym-db-PullnewSummary-Delete",
  8611. "body": [
  8612. "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
  8613. "if ($1 != null)",
  8614. "{",
  8615. " db.PullnewSummary.Remove($1);",
  8616. "}"
  8617. ]
  8618. },
  8619. "查询服务中心列表": {
  8620. "prefix": "ym-db-ServiceCenter-Find",
  8621. "body": [
  8622. "List<ServiceCenter> $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8623. "foreach (ServiceCenter $3 in $1)",
  8624. "{",
  8625. "}"
  8626. ]
  8627. },
  8628. "查询服务中心列表,并取值": {
  8629. "prefix": "ym-db-ServiceCenter-FindWithData",
  8630. "body": [
  8631. "List<ServiceCenter> $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8632. "foreach (ServiceCenter $3 in $1)",
  8633. "{",
  8634. " string Title = $3.Title; //标题",
  8635. " string SubTitle = $3.SubTitle; //副标题",
  8636. " string Content = $3.Content; //内容",
  8637. " int CategoryId = $3.CategoryId; //问答类型",
  8638. "}"
  8639. ]
  8640. },
  8641. "查询服务中心": {
  8642. "prefix": "ym-db-ServiceCenter-Exist",
  8643. "body": [
  8644. "bool $1 = db.ServiceCenter.Any(m => m.Id == $2);",
  8645. ]
  8646. },
  8647. "查询某个服务中心,并取值": {
  8648. "prefix": "ym-db-ServiceCenter-FindByPrimaryKey",
  8649. "body": [
  8650. "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
  8651. "if ($1 != null)",
  8652. "{",
  8653. " string Title = $1.Title; //标题",
  8654. " string SubTitle = $1.SubTitle; //副标题",
  8655. " string Content = $1.Content; //内容",
  8656. " int CategoryId = $1.CategoryId; //问答类型",
  8657. "}"
  8658. ]
  8659. },
  8660. "查询某个服务中心,并赋值": {
  8661. "prefix": "ym-db-ServiceCenter-Update",
  8662. "body": [
  8663. "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
  8664. "if ($1 != null)",
  8665. "{",
  8666. " $1.Title = $2; //标题",
  8667. " $1.SubTitle = $3; //副标题",
  8668. " $1.Content = $4; //内容",
  8669. " $1.CategoryId = $5; //问答类型",
  8670. "}"
  8671. ]
  8672. },
  8673. "获取服务中心数量": {
  8674. "prefix": "ym-db-ServiceCenter-FindAndCount",
  8675. "body": [
  8676. "int $1 = db.ServiceCenter.Count(m => $2);",
  8677. ]
  8678. },
  8679. "添加服务中心": {
  8680. "prefix": "ym-db-ServiceCenter-Create",
  8681. "body": [
  8682. "db.ServiceCenter.Add(new ServiceCenter()",
  8683. "{",
  8684. " CreateDate = DateTime.Now,",
  8685. " UpdateDate = DateTime.Now,",
  8686. " Title = $1, //标题",
  8687. " SubTitle = $2, //副标题",
  8688. " Content = $3, //内容",
  8689. " CategoryId = $4, //问答类型",
  8690. "});"
  8691. ]
  8692. },"删除某个服务中心": {
  8693. "prefix": "ym-db-ServiceCenter-Delete",
  8694. "body": [
  8695. "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
  8696. "if ($1 != null)",
  8697. "{",
  8698. " db.ServiceCenter.Remove($1);",
  8699. "}"
  8700. ]
  8701. },
  8702. "查询仓库库存变动信息列表": {
  8703. "prefix": "ym-db-StoreBalance-Find",
  8704. "body": [
  8705. "List<StoreBalance> $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8706. "foreach (StoreBalance $3 in $1)",
  8707. "{",
  8708. "}"
  8709. ]
  8710. },
  8711. "查询仓库库存变动信息列表,并取值": {
  8712. "prefix": "ym-db-StoreBalance-FindWithData",
  8713. "body": [
  8714. "List<StoreBalance> $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8715. "foreach (StoreBalance $3 in $1)",
  8716. "{",
  8717. " int StoreId = $3.StoreId; //仓库",
  8718. " string TransRecordNo = $3.TransRecordNo; //交易流水编号",
  8719. " int TransType = $3.TransType; //交易类型",
  8720. " int BrandId = $3.BrandId; //产品类型",
  8721. " int OpStoreNum = $3.OpStoreNum; //操作库存数",
  8722. " string OpSymbol = $3.OpSymbol; //操作符",
  8723. " int BeforeTotalNum = $3.BeforeTotalNum; //操作前总库存数",
  8724. " int AfterTotalNum = $3.AfterTotalNum; //操作后总库存数",
  8725. " int BeforeLaveNum = $3.BeforeLaveNum; //操作前剩余库存数",
  8726. " int AfterLaveNum = $3.AfterLaveNum; //操作后剩余库存数",
  8727. " int BeforeOutNum = $3.BeforeOutNum; //操作前出库数",
  8728. " int AfterOutNum = $3.AfterOutNum; //操作后出库数",
  8729. "}"
  8730. ]
  8731. },
  8732. "查询仓库库存变动信息": {
  8733. "prefix": "ym-db-StoreBalance-Exist",
  8734. "body": [
  8735. "bool $1 = db.StoreBalance.Any(m => m.Id == $2);",
  8736. ]
  8737. },
  8738. "查询某个仓库库存变动信息,并取值": {
  8739. "prefix": "ym-db-StoreBalance-FindByPrimaryKey",
  8740. "body": [
  8741. "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
  8742. "if ($1 != null)",
  8743. "{",
  8744. " int StoreId = $1.StoreId; //仓库",
  8745. " string TransRecordNo = $1.TransRecordNo; //交易流水编号",
  8746. " int TransType = $1.TransType; //交易类型",
  8747. " int BrandId = $1.BrandId; //产品类型",
  8748. " int OpStoreNum = $1.OpStoreNum; //操作库存数",
  8749. " string OpSymbol = $1.OpSymbol; //操作符",
  8750. " int BeforeTotalNum = $1.BeforeTotalNum; //操作前总库存数",
  8751. " int AfterTotalNum = $1.AfterTotalNum; //操作后总库存数",
  8752. " int BeforeLaveNum = $1.BeforeLaveNum; //操作前剩余库存数",
  8753. " int AfterLaveNum = $1.AfterLaveNum; //操作后剩余库存数",
  8754. " int BeforeOutNum = $1.BeforeOutNum; //操作前出库数",
  8755. " int AfterOutNum = $1.AfterOutNum; //操作后出库数",
  8756. "}"
  8757. ]
  8758. },
  8759. "查询某个仓库库存变动信息,并赋值": {
  8760. "prefix": "ym-db-StoreBalance-Update",
  8761. "body": [
  8762. "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
  8763. "if ($1 != null)",
  8764. "{",
  8765. " $1.StoreId = $2; //仓库",
  8766. " $1.TransRecordNo = $3; //交易流水编号",
  8767. " $1.TransType = $4; //交易类型",
  8768. " $1.BrandId = $5; //产品类型",
  8769. " $1.OpStoreNum = $6; //操作库存数",
  8770. " $1.OpSymbol = $7; //操作符",
  8771. " $1.BeforeTotalNum = $8; //操作前总库存数",
  8772. " $1.AfterTotalNum = $9; //操作后总库存数",
  8773. " $1.BeforeLaveNum = $10; //操作前剩余库存数",
  8774. " $1.AfterLaveNum = $11; //操作后剩余库存数",
  8775. " $1.BeforeOutNum = $12; //操作前出库数",
  8776. " $1.AfterOutNum = $13; //操作后出库数",
  8777. "}"
  8778. ]
  8779. },
  8780. "获取仓库库存变动信息数量": {
  8781. "prefix": "ym-db-StoreBalance-FindAndCount",
  8782. "body": [
  8783. "int $1 = db.StoreBalance.Count(m => $2);",
  8784. ]
  8785. },
  8786. "添加仓库库存变动信息": {
  8787. "prefix": "ym-db-StoreBalance-Create",
  8788. "body": [
  8789. "db.StoreBalance.Add(new StoreBalance()",
  8790. "{",
  8791. " CreateDate = DateTime.Now,",
  8792. " UpdateDate = DateTime.Now,",
  8793. " StoreId = $1, //仓库",
  8794. " TransRecordNo = $2, //交易流水编号",
  8795. " TransType = $3, //交易类型",
  8796. " BrandId = $4, //产品类型",
  8797. " OpStoreNum = $5, //操作库存数",
  8798. " OpSymbol = $6, //操作符",
  8799. " BeforeTotalNum = $7, //操作前总库存数",
  8800. " AfterTotalNum = $8, //操作后总库存数",
  8801. " BeforeLaveNum = $9, //操作前剩余库存数",
  8802. " AfterLaveNum = $10, //操作后剩余库存数",
  8803. " BeforeOutNum = $11, //操作前出库数",
  8804. " AfterOutNum = $12, //操作后出库数",
  8805. "});"
  8806. ]
  8807. },"删除某个仓库库存变动信息": {
  8808. "prefix": "ym-db-StoreBalance-Delete",
  8809. "body": [
  8810. "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
  8811. "if ($1 != null)",
  8812. "{",
  8813. " db.StoreBalance.Remove($1);",
  8814. "}"
  8815. ]
  8816. },
  8817. "查询机具变动历史列表": {
  8818. "prefix": "ym-db-StoreChangeHistory-Find",
  8819. "body": [
  8820. "List<StoreChangeHistory> $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8821. "foreach (StoreChangeHistory $3 in $1)",
  8822. "{",
  8823. "}"
  8824. ]
  8825. },
  8826. "查询机具变动历史列表,并取值": {
  8827. "prefix": "ym-db-StoreChangeHistory-FindWithData",
  8828. "body": [
  8829. "List<StoreChangeHistory> $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8830. "foreach (StoreChangeHistory $3 in $1)",
  8831. "{",
  8832. " int UserId = $3.UserId; //创客",
  8833. " int BrandId = $3.BrandId; //产品类型",
  8834. " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
  8835. " string BizBatchNo = $3.BizBatchNo; //业务批次号",
  8836. " int TransType = $3.TransType; //交易类型",
  8837. " string SnNo = $3.SnNo; //SN编号",
  8838. " int SnType = $3.SnType; //SN机具类型",
  8839. " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
  8840. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  8841. " string DeviceType = $3.DeviceType; //设备类型",
  8842. " string DeviceModel = $3.DeviceModel; //设备型号",
  8843. " int FromUserId = $3.FromUserId; //出货创客",
  8844. " DateTime FromDate = $3.FromDate; //出库时间",
  8845. " string FromRemark = $3.FromRemark; //出库备注",
  8846. " int ToUserId = $3.ToUserId; //收货创客",
  8847. " int ToStoreId = $3.ToStoreId; //创客退货收货仓库",
  8848. " DateTime ToDate = $3.ToDate; //入库时间",
  8849. " string ToRemark = $3.ToRemark; //入库备注",
  8850. " int SourceStoreId = $3.SourceStoreId; //源仓库",
  8851. " int StoreId = $3.StoreId; //仓库",
  8852. "}"
  8853. ]
  8854. },
  8855. "查询机具变动历史": {
  8856. "prefix": "ym-db-StoreChangeHistory-Exist",
  8857. "body": [
  8858. "bool $1 = db.StoreChangeHistory.Any(m => m.Id == $2);",
  8859. ]
  8860. },
  8861. "查询某个机具变动历史,并取值": {
  8862. "prefix": "ym-db-StoreChangeHistory-FindByPrimaryKey",
  8863. "body": [
  8864. "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
  8865. "if ($1 != null)",
  8866. "{",
  8867. " int UserId = $1.UserId; //创客",
  8868. " int BrandId = $1.BrandId; //产品类型",
  8869. " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
  8870. " string BizBatchNo = $1.BizBatchNo; //业务批次号",
  8871. " int TransType = $1.TransType; //交易类型",
  8872. " string SnNo = $1.SnNo; //SN编号",
  8873. " int SnType = $1.SnType; //SN机具类型",
  8874. " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
  8875. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  8876. " string DeviceType = $1.DeviceType; //设备类型",
  8877. " string DeviceModel = $1.DeviceModel; //设备型号",
  8878. " int FromUserId = $1.FromUserId; //出货创客",
  8879. " DateTime FromDate = $1.FromDate; //出库时间",
  8880. " string FromRemark = $1.FromRemark; //出库备注",
  8881. " int ToUserId = $1.ToUserId; //收货创客",
  8882. " int ToStoreId = $1.ToStoreId; //创客退货收货仓库",
  8883. " DateTime ToDate = $1.ToDate; //入库时间",
  8884. " string ToRemark = $1.ToRemark; //入库备注",
  8885. " int SourceStoreId = $1.SourceStoreId; //源仓库",
  8886. " int StoreId = $1.StoreId; //仓库",
  8887. "}"
  8888. ]
  8889. },
  8890. "查询某个机具变动历史,并赋值": {
  8891. "prefix": "ym-db-StoreChangeHistory-Update",
  8892. "body": [
  8893. "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
  8894. "if ($1 != null)",
  8895. "{",
  8896. " $1.UserId = $2; //创客",
  8897. " $1.BrandId = $3; //产品类型",
  8898. " $1.ChangeRecordNo = $4; //变更记录单号",
  8899. " $1.BizBatchNo = $5; //业务批次号",
  8900. " $1.TransType = $6; //交易类型",
  8901. " $1.SnNo = $7; //SN编号",
  8902. " $1.SnType = $8; //SN机具类型",
  8903. " $1.StockOpDirect = $9; //库存操作方向",
  8904. " $1.DeviceVendor = $10; //设备厂商",
  8905. " $1.DeviceType = $11; //设备类型",
  8906. " $1.DeviceModel = $12; //设备型号",
  8907. " $1.FromUserId = $13; //出货创客",
  8908. " $1.FromDate = $14; //出库时间",
  8909. " $1.FromRemark = $15; //出库备注",
  8910. " $1.ToUserId = $16; //收货创客",
  8911. " $1.ToStoreId = $17; //创客退货收货仓库",
  8912. " $1.ToDate = $18; //入库时间",
  8913. " $1.ToRemark = $19; //入库备注",
  8914. " $1.SourceStoreId = $20; //源仓库",
  8915. " $1.StoreId = $21; //仓库",
  8916. "}"
  8917. ]
  8918. },
  8919. "获取机具变动历史数量": {
  8920. "prefix": "ym-db-StoreChangeHistory-FindAndCount",
  8921. "body": [
  8922. "int $1 = db.StoreChangeHistory.Count(m => $2);",
  8923. ]
  8924. },
  8925. "添加机具变动历史": {
  8926. "prefix": "ym-db-StoreChangeHistory-Create",
  8927. "body": [
  8928. "db.StoreChangeHistory.Add(new StoreChangeHistory()",
  8929. "{",
  8930. " CreateDate = DateTime.Now,",
  8931. " UpdateDate = DateTime.Now,",
  8932. " UserId = $1, //创客",
  8933. " BrandId = $2, //产品类型",
  8934. " ChangeRecordNo = $3, //变更记录单号",
  8935. " BizBatchNo = $4, //业务批次号",
  8936. " TransType = $5, //交易类型",
  8937. " SnNo = $6, //SN编号",
  8938. " SnType = $7, //SN机具类型",
  8939. " StockOpDirect = $8, //库存操作方向",
  8940. " DeviceVendor = $9, //设备厂商",
  8941. " DeviceType = $10, //设备类型",
  8942. " DeviceModel = $11, //设备型号",
  8943. " FromUserId = $12, //出货创客",
  8944. " FromDate = $13, //出库时间",
  8945. " FromRemark = $14, //出库备注",
  8946. " ToUserId = $15, //收货创客",
  8947. " ToStoreId = $16, //创客退货收货仓库",
  8948. " ToDate = $17, //入库时间",
  8949. " ToRemark = $18, //入库备注",
  8950. " SourceStoreId = $19, //源仓库",
  8951. " StoreId = $20, //仓库",
  8952. "});"
  8953. ]
  8954. },"删除某个机具变动历史": {
  8955. "prefix": "ym-db-StoreChangeHistory-Delete",
  8956. "body": [
  8957. "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
  8958. "if ($1 != null)",
  8959. "{",
  8960. " db.StoreChangeHistory.Remove($1);",
  8961. "}"
  8962. ]
  8963. },
  8964. "查询仓库编号为主键的关联表列表": {
  8965. "prefix": "ym-db-StoreForCode-Find",
  8966. "body": [
  8967. "List<StoreForCode> $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8968. "foreach (StoreForCode $3 in $1)",
  8969. "{",
  8970. "}"
  8971. ]
  8972. },
  8973. "查询仓库编号为主键的关联表列表,并取值": {
  8974. "prefix": "ym-db-StoreForCode-FindWithData",
  8975. "body": [
  8976. "List<StoreForCode> $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8977. "foreach (StoreForCode $3 in $1)",
  8978. "{",
  8979. " string Code = $3.Code; //编号",
  8980. " int StoreId = $3.StoreId; //仓库",
  8981. "}"
  8982. ]
  8983. },
  8984. "查询仓库编号为主键的关联表": {
  8985. "prefix": "ym-db-StoreForCode-Exist",
  8986. "body": [
  8987. "bool $1 = db.StoreForCode.Any(m => m.Code == $2);",
  8988. ]
  8989. },
  8990. "查询某个仓库编号为主键的关联表,并取值": {
  8991. "prefix": "ym-db-StoreForCode-FindByPrimaryKey",
  8992. "body": [
  8993. "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
  8994. "if ($1 != null)",
  8995. "{",
  8996. " string Code = $1.Code; //编号",
  8997. " int StoreId = $1.StoreId; //仓库",
  8998. "}"
  8999. ]
  9000. },
  9001. "查询某个仓库编号为主键的关联表,并赋值": {
  9002. "prefix": "ym-db-StoreForCode-Update",
  9003. "body": [
  9004. "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
  9005. "if ($1 != null)",
  9006. "{",
  9007. " $1.Code = $2; //编号",
  9008. " $1.StoreId = $3; //仓库",
  9009. "}"
  9010. ]
  9011. },
  9012. "获取仓库编号为主键的关联表数量": {
  9013. "prefix": "ym-db-StoreForCode-FindAndCount",
  9014. "body": [
  9015. "int $1 = db.StoreForCode.Count(m => $2);",
  9016. ]
  9017. },
  9018. "添加仓库编号为主键的关联表": {
  9019. "prefix": "ym-db-StoreForCode-Create",
  9020. "body": [
  9021. "db.StoreForCode.Add(new StoreForCode()",
  9022. "{",
  9023. " CreateDate = DateTime.Now,",
  9024. " UpdateDate = DateTime.Now,",
  9025. " Code = $1, //编号",
  9026. " StoreId = $2, //仓库",
  9027. "});"
  9028. ]
  9029. },"删除某个仓库编号为主键的关联表": {
  9030. "prefix": "ym-db-StoreForCode-Delete",
  9031. "body": [
  9032. "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
  9033. "if ($1 != null)",
  9034. "{",
  9035. " db.StoreForCode.Remove($1);",
  9036. "}"
  9037. ]
  9038. },
  9039. "查询仓库名称为主键的关联表列表": {
  9040. "prefix": "ym-db-StoreForName-Find",
  9041. "body": [
  9042. "List<StoreForName> $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9043. "foreach (StoreForName $3 in $1)",
  9044. "{",
  9045. "}"
  9046. ]
  9047. },
  9048. "查询仓库名称为主键的关联表列表,并取值": {
  9049. "prefix": "ym-db-StoreForName-FindWithData",
  9050. "body": [
  9051. "List<StoreForName> $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9052. "foreach (StoreForName $3 in $1)",
  9053. "{",
  9054. " string Name = $3.Name; //名称",
  9055. " int StoreId = $3.StoreId; //仓库",
  9056. "}"
  9057. ]
  9058. },
  9059. "查询仓库名称为主键的关联表": {
  9060. "prefix": "ym-db-StoreForName-Exist",
  9061. "body": [
  9062. "bool $1 = db.StoreForName.Any(m => m.Name == $2);",
  9063. ]
  9064. },
  9065. "查询某个仓库名称为主键的关联表,并取值": {
  9066. "prefix": "ym-db-StoreForName-FindByPrimaryKey",
  9067. "body": [
  9068. "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
  9069. "if ($1 != null)",
  9070. "{",
  9071. " string Name = $1.Name; //名称",
  9072. " int StoreId = $1.StoreId; //仓库",
  9073. "}"
  9074. ]
  9075. },
  9076. "查询某个仓库名称为主键的关联表,并赋值": {
  9077. "prefix": "ym-db-StoreForName-Update",
  9078. "body": [
  9079. "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
  9080. "if ($1 != null)",
  9081. "{",
  9082. " $1.Name = $2; //名称",
  9083. " $1.StoreId = $3; //仓库",
  9084. "}"
  9085. ]
  9086. },
  9087. "获取仓库名称为主键的关联表数量": {
  9088. "prefix": "ym-db-StoreForName-FindAndCount",
  9089. "body": [
  9090. "int $1 = db.StoreForName.Count(m => $2);",
  9091. ]
  9092. },
  9093. "添加仓库名称为主键的关联表": {
  9094. "prefix": "ym-db-StoreForName-Create",
  9095. "body": [
  9096. "db.StoreForName.Add(new StoreForName()",
  9097. "{",
  9098. " CreateDate = DateTime.Now,",
  9099. " UpdateDate = DateTime.Now,",
  9100. " Name = $1, //名称",
  9101. " StoreId = $2, //仓库",
  9102. "});"
  9103. ]
  9104. },"删除某个仓库名称为主键的关联表": {
  9105. "prefix": "ym-db-StoreForName-Delete",
  9106. "body": [
  9107. "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
  9108. "if ($1 != null)",
  9109. "{",
  9110. " db.StoreForName.Remove($1);",
  9111. "}"
  9112. ]
  9113. },
  9114. "查询仓库列表": {
  9115. "prefix": "ym-db-StoreHouse-Find",
  9116. "body": [
  9117. "List<StoreHouse> $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9118. "foreach (StoreHouse $3 in $1)",
  9119. "{",
  9120. "}"
  9121. ]
  9122. },
  9123. "查询仓库列表,并取值": {
  9124. "prefix": "ym-db-StoreHouse-FindWithData",
  9125. "body": [
  9126. "List<StoreHouse> $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9127. "foreach (StoreHouse $3 in $1)",
  9128. "{",
  9129. " string StoreNo = $3.StoreNo; //仓库编号",
  9130. " string StoreName = $3.StoreName; //仓库名称",
  9131. " int UserId = $3.UserId; //仓库归属人",
  9132. " string BrandId = $3.BrandId; //产品类型",
  9133. " string ProductName = $3.ProductName; //产品名称",
  9134. " string Address = $3.Address; //仓库地址",
  9135. " int ManageUserId = $3.ManageUserId; //仓库管理员",
  9136. " string ManagerEmail = $3.ManagerEmail; //管理者邮箱",
  9137. " int ParentStoreId = $3.ParentStoreId; //父级Id",
  9138. " string ParentNav = $3.ParentNav; //父级集合",
  9139. " int StoreType = $3.StoreType; //仓库类型",
  9140. " int TotalNum = $3.TotalNum; //总库存数",
  9141. " int LaveNum = $3.LaveNum; //剩余库存数",
  9142. " int OutNum = $3.OutNum; //出库数",
  9143. " string Remark = $3.Remark; //备注",
  9144. " string Areas = $3.Areas; //所属地区",
  9145. " string LimitTopUserId = $3.LimitTopUserId; //限制创客特殊仓库",
  9146. " int StoreStatus = $3.StoreStatus; //仓库状态",
  9147. " int StoreKind = $3.StoreKind; //仓库归属类型",
  9148. " string ManageMobile = $3.ManageMobile; //管理者手机号",
  9149. "}"
  9150. ]
  9151. },
  9152. "查询仓库": {
  9153. "prefix": "ym-db-StoreHouse-Exist",
  9154. "body": [
  9155. "bool $1 = db.StoreHouse.Any(m => m.Id == $2);",
  9156. ]
  9157. },
  9158. "查询某个仓库,并取值": {
  9159. "prefix": "ym-db-StoreHouse-FindByPrimaryKey",
  9160. "body": [
  9161. "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
  9162. "if ($1 != null)",
  9163. "{",
  9164. " string StoreNo = $1.StoreNo; //仓库编号",
  9165. " string StoreName = $1.StoreName; //仓库名称",
  9166. " int UserId = $1.UserId; //仓库归属人",
  9167. " string BrandId = $1.BrandId; //产品类型",
  9168. " string ProductName = $1.ProductName; //产品名称",
  9169. " string Address = $1.Address; //仓库地址",
  9170. " int ManageUserId = $1.ManageUserId; //仓库管理员",
  9171. " string ManagerEmail = $1.ManagerEmail; //管理者邮箱",
  9172. " int ParentStoreId = $1.ParentStoreId; //父级Id",
  9173. " string ParentNav = $1.ParentNav; //父级集合",
  9174. " int StoreType = $1.StoreType; //仓库类型",
  9175. " int TotalNum = $1.TotalNum; //总库存数",
  9176. " int LaveNum = $1.LaveNum; //剩余库存数",
  9177. " int OutNum = $1.OutNum; //出库数",
  9178. " string Remark = $1.Remark; //备注",
  9179. " string Areas = $1.Areas; //所属地区",
  9180. " string LimitTopUserId = $1.LimitTopUserId; //限制创客特殊仓库",
  9181. " int StoreStatus = $1.StoreStatus; //仓库状态",
  9182. " int StoreKind = $1.StoreKind; //仓库归属类型",
  9183. " string ManageMobile = $1.ManageMobile; //管理者手机号",
  9184. "}"
  9185. ]
  9186. },
  9187. "查询某个仓库,并赋值": {
  9188. "prefix": "ym-db-StoreHouse-Update",
  9189. "body": [
  9190. "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
  9191. "if ($1 != null)",
  9192. "{",
  9193. " $1.StoreNo = $2; //仓库编号",
  9194. " $1.StoreName = $3; //仓库名称",
  9195. " $1.UserId = $4; //仓库归属人",
  9196. " $1.BrandId = $5; //产品类型",
  9197. " $1.ProductName = $6; //产品名称",
  9198. " $1.Address = $7; //仓库地址",
  9199. " $1.ManageUserId = $8; //仓库管理员",
  9200. " $1.ManagerEmail = $9; //管理者邮箱",
  9201. " $1.ParentStoreId = $10; //父级Id",
  9202. " $1.ParentNav = $11; //父级集合",
  9203. " $1.StoreType = $12; //仓库类型",
  9204. " $1.TotalNum = $13; //总库存数",
  9205. " $1.LaveNum = $14; //剩余库存数",
  9206. " $1.OutNum = $15; //出库数",
  9207. " $1.Remark = $16; //备注",
  9208. " $1.Areas = $17; //所属地区",
  9209. " $1.LimitTopUserId = $18; //限制创客特殊仓库",
  9210. " $1.StoreStatus = $19; //仓库状态",
  9211. " $1.StoreKind = $20; //仓库归属类型",
  9212. " $1.ManageMobile = $21; //管理者手机号",
  9213. "}"
  9214. ]
  9215. },
  9216. "获取仓库数量": {
  9217. "prefix": "ym-db-StoreHouse-FindAndCount",
  9218. "body": [
  9219. "int $1 = db.StoreHouse.Count(m => $2);",
  9220. ]
  9221. },
  9222. "添加仓库": {
  9223. "prefix": "ym-db-StoreHouse-Create",
  9224. "body": [
  9225. "db.StoreHouse.Add(new StoreHouse()",
  9226. "{",
  9227. " CreateDate = DateTime.Now,",
  9228. " UpdateDate = DateTime.Now,",
  9229. " StoreNo = $1, //仓库编号",
  9230. " StoreName = $2, //仓库名称",
  9231. " UserId = $3, //仓库归属人",
  9232. " BrandId = $4, //产品类型",
  9233. " ProductName = $5, //产品名称",
  9234. " Address = $6, //仓库地址",
  9235. " ManageUserId = $7, //仓库管理员",
  9236. " ManagerEmail = $8, //管理者邮箱",
  9237. " ParentStoreId = $9, //父级Id",
  9238. " ParentNav = $10, //父级集合",
  9239. " StoreType = $11, //仓库类型",
  9240. " TotalNum = $12, //总库存数",
  9241. " LaveNum = $13, //剩余库存数",
  9242. " OutNum = $14, //出库数",
  9243. " Remark = $15, //备注",
  9244. " Areas = $16, //所属地区",
  9245. " LimitTopUserId = $17, //限制创客特殊仓库",
  9246. " StoreStatus = $18, //仓库状态",
  9247. " StoreKind = $19, //仓库归属类型",
  9248. " ManageMobile = $20, //管理者手机号",
  9249. "});"
  9250. ]
  9251. },"删除某个仓库": {
  9252. "prefix": "ym-db-StoreHouse-Delete",
  9253. "body": [
  9254. "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
  9255. "if ($1 != null)",
  9256. "{",
  9257. " db.StoreHouse.Remove($1);",
  9258. "}"
  9259. ]
  9260. },
  9261. "查询仓库订单汇总列表": {
  9262. "prefix": "ym-db-StoreMallOrderSummary-Find",
  9263. "body": [
  9264. "List<StoreMallOrderSummary> $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9265. "foreach (StoreMallOrderSummary $3 in $1)",
  9266. "{",
  9267. "}"
  9268. ]
  9269. },
  9270. "查询仓库订单汇总列表,并取值": {
  9271. "prefix": "ym-db-StoreMallOrderSummary-FindWithData",
  9272. "body": [
  9273. "List<StoreMallOrderSummary> $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9274. "foreach (StoreMallOrderSummary $3 in $1)",
  9275. "{",
  9276. " string TradeMonth = $3.TradeMonth; //交易月",
  9277. " int StoreId = $3.StoreId; //仓库",
  9278. " int AgentStoreId = $3.AgentStoreId; //代理分仓",
  9279. " int BrandId = $3.BrandId; //品牌",
  9280. " decimal UnitPrice = $3.UnitPrice; //单价",
  9281. " int OrderNum = $3.OrderNum; //订单数量",
  9282. " int OrderAmt = $3.OrderAmt; //订单金额",
  9283. " int RefundOrderNum = $3.RefundOrderNum; //退款订单数量",
  9284. " decimal RefundAmt = $3.RefundAmt; //退款金额",
  9285. " decimal SettleAmt = $3.SettleAmt; //结算金额",
  9286. " int SettleStatus = $3.SettleStatus; //结算状态",
  9287. " string Remark = $3.Remark; //备注",
  9288. "}"
  9289. ]
  9290. },
  9291. "查询仓库订单汇总": {
  9292. "prefix": "ym-db-StoreMallOrderSummary-Exist",
  9293. "body": [
  9294. "bool $1 = db.StoreMallOrderSummary.Any(m => m.Id == $2);",
  9295. ]
  9296. },
  9297. "查询某个仓库订单汇总,并取值": {
  9298. "prefix": "ym-db-StoreMallOrderSummary-FindByPrimaryKey",
  9299. "body": [
  9300. "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
  9301. "if ($1 != null)",
  9302. "{",
  9303. " string TradeMonth = $1.TradeMonth; //交易月",
  9304. " int StoreId = $1.StoreId; //仓库",
  9305. " int AgentStoreId = $1.AgentStoreId; //代理分仓",
  9306. " int BrandId = $1.BrandId; //品牌",
  9307. " decimal UnitPrice = $1.UnitPrice; //单价",
  9308. " int OrderNum = $1.OrderNum; //订单数量",
  9309. " int OrderAmt = $1.OrderAmt; //订单金额",
  9310. " int RefundOrderNum = $1.RefundOrderNum; //退款订单数量",
  9311. " decimal RefundAmt = $1.RefundAmt; //退款金额",
  9312. " decimal SettleAmt = $1.SettleAmt; //结算金额",
  9313. " int SettleStatus = $1.SettleStatus; //结算状态",
  9314. " string Remark = $1.Remark; //备注",
  9315. "}"
  9316. ]
  9317. },
  9318. "查询某个仓库订单汇总,并赋值": {
  9319. "prefix": "ym-db-StoreMallOrderSummary-Update",
  9320. "body": [
  9321. "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
  9322. "if ($1 != null)",
  9323. "{",
  9324. " $1.TradeMonth = $2; //交易月",
  9325. " $1.StoreId = $3; //仓库",
  9326. " $1.AgentStoreId = $4; //代理分仓",
  9327. " $1.BrandId = $5; //品牌",
  9328. " $1.UnitPrice = $6; //单价",
  9329. " $1.OrderNum = $7; //订单数量",
  9330. " $1.OrderAmt = $8; //订单金额",
  9331. " $1.RefundOrderNum = $9; //退款订单数量",
  9332. " $1.RefundAmt = $10; //退款金额",
  9333. " $1.SettleAmt = $11; //结算金额",
  9334. " $1.SettleStatus = $12; //结算状态",
  9335. " $1.Remark = $13; //备注",
  9336. "}"
  9337. ]
  9338. },
  9339. "获取仓库订单汇总数量": {
  9340. "prefix": "ym-db-StoreMallOrderSummary-FindAndCount",
  9341. "body": [
  9342. "int $1 = db.StoreMallOrderSummary.Count(m => $2);",
  9343. ]
  9344. },
  9345. "添加仓库订单汇总": {
  9346. "prefix": "ym-db-StoreMallOrderSummary-Create",
  9347. "body": [
  9348. "db.StoreMallOrderSummary.Add(new StoreMallOrderSummary()",
  9349. "{",
  9350. " CreateDate = DateTime.Now,",
  9351. " UpdateDate = DateTime.Now,",
  9352. " TradeMonth = $1, //交易月",
  9353. " StoreId = $2, //仓库",
  9354. " AgentStoreId = $3, //代理分仓",
  9355. " BrandId = $4, //品牌",
  9356. " UnitPrice = $5, //单价",
  9357. " OrderNum = $6, //订单数量",
  9358. " OrderAmt = $7, //订单金额",
  9359. " RefundOrderNum = $8, //退款订单数量",
  9360. " RefundAmt = $9, //退款金额",
  9361. " SettleAmt = $10, //结算金额",
  9362. " SettleStatus = $11, //结算状态",
  9363. " Remark = $12, //备注",
  9364. "});"
  9365. ]
  9366. },"删除某个仓库订单汇总": {
  9367. "prefix": "ym-db-StoreMallOrderSummary-Delete",
  9368. "body": [
  9369. "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
  9370. "if ($1 != null)",
  9371. "{",
  9372. " db.StoreMallOrderSummary.Remove($1);",
  9373. "}"
  9374. ]
  9375. },
  9376. "查询仓库SN激活统计列表": {
  9377. "prefix": "ym-db-StoreSnActivateSummary-Find",
  9378. "body": [
  9379. "List<StoreSnActivateSummary> $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9380. "foreach (StoreSnActivateSummary $3 in $1)",
  9381. "{",
  9382. "}"
  9383. ]
  9384. },
  9385. "查询仓库SN激活统计列表,并取值": {
  9386. "prefix": "ym-db-StoreSnActivateSummary-FindWithData",
  9387. "body": [
  9388. "List<StoreSnActivateSummary> $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9389. "foreach (StoreSnActivateSummary $3 in $1)",
  9390. "{",
  9391. " string TradeDate = $3.TradeDate; //交易日",
  9392. " string TradeMonth = $3.TradeMonth; //交易月",
  9393. " int StoreId = $3.StoreId; //仓库",
  9394. " int AgentStoreId = $3.AgentStoreId; //代理分仓",
  9395. " int BrandId = $3.BrandId; //产品类型",
  9396. " int ActivateNum = $3.ActivateNum; //激活数量",
  9397. " int RejectActNum = $3.RejectActNum; //互斥激活数量",
  9398. " int TransferActNum = $3.TransferActNum; //划拨激活数量(循环机划拨激活数)",
  9399. " int EffectActNum = $3.EffectActNum; //有效激活数量",
  9400. " int UserApplyNum = $3.UserApplyNum; //创客申请数量",
  9401. " string Remark = $3.Remark; //备注",
  9402. "}"
  9403. ]
  9404. },
  9405. "查询仓库SN激活统计": {
  9406. "prefix": "ym-db-StoreSnActivateSummary-Exist",
  9407. "body": [
  9408. "bool $1 = db.StoreSnActivateSummary.Any(m => m.Id == $2);",
  9409. ]
  9410. },
  9411. "查询某个仓库SN激活统计,并取值": {
  9412. "prefix": "ym-db-StoreSnActivateSummary-FindByPrimaryKey",
  9413. "body": [
  9414. "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
  9415. "if ($1 != null)",
  9416. "{",
  9417. " string TradeDate = $1.TradeDate; //交易日",
  9418. " string TradeMonth = $1.TradeMonth; //交易月",
  9419. " int StoreId = $1.StoreId; //仓库",
  9420. " int AgentStoreId = $1.AgentStoreId; //代理分仓",
  9421. " int BrandId = $1.BrandId; //产品类型",
  9422. " int ActivateNum = $1.ActivateNum; //激活数量",
  9423. " int RejectActNum = $1.RejectActNum; //互斥激活数量",
  9424. " int TransferActNum = $1.TransferActNum; //划拨激活数量(循环机划拨激活数)",
  9425. " int EffectActNum = $1.EffectActNum; //有效激活数量",
  9426. " int UserApplyNum = $1.UserApplyNum; //创客申请数量",
  9427. " string Remark = $1.Remark; //备注",
  9428. "}"
  9429. ]
  9430. },
  9431. "查询某个仓库SN激活统计,并赋值": {
  9432. "prefix": "ym-db-StoreSnActivateSummary-Update",
  9433. "body": [
  9434. "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
  9435. "if ($1 != null)",
  9436. "{",
  9437. " $1.TradeDate = $2; //交易日",
  9438. " $1.TradeMonth = $3; //交易月",
  9439. " $1.StoreId = $4; //仓库",
  9440. " $1.AgentStoreId = $5; //代理分仓",
  9441. " $1.BrandId = $6; //产品类型",
  9442. " $1.ActivateNum = $7; //激活数量",
  9443. " $1.RejectActNum = $8; //互斥激活数量",
  9444. " $1.TransferActNum = $9; //划拨激活数量(循环机划拨激活数)",
  9445. " $1.EffectActNum = $10; //有效激活数量",
  9446. " $1.UserApplyNum = $11; //创客申请数量",
  9447. " $1.Remark = $12; //备注",
  9448. "}"
  9449. ]
  9450. },
  9451. "获取仓库SN激活统计数量": {
  9452. "prefix": "ym-db-StoreSnActivateSummary-FindAndCount",
  9453. "body": [
  9454. "int $1 = db.StoreSnActivateSummary.Count(m => $2);",
  9455. ]
  9456. },
  9457. "添加仓库SN激活统计": {
  9458. "prefix": "ym-db-StoreSnActivateSummary-Create",
  9459. "body": [
  9460. "db.StoreSnActivateSummary.Add(new StoreSnActivateSummary()",
  9461. "{",
  9462. " CreateDate = DateTime.Now,",
  9463. " UpdateDate = DateTime.Now,",
  9464. " TradeDate = $1, //交易日",
  9465. " TradeMonth = $2, //交易月",
  9466. " StoreId = $3, //仓库",
  9467. " AgentStoreId = $4, //代理分仓",
  9468. " BrandId = $5, //产品类型",
  9469. " ActivateNum = $6, //激活数量",
  9470. " RejectActNum = $7, //互斥激活数量",
  9471. " TransferActNum = $8, //划拨激活数量(循环机划拨激活数)",
  9472. " EffectActNum = $9, //有效激活数量",
  9473. " UserApplyNum = $10, //创客申请数量",
  9474. " Remark = $11, //备注",
  9475. "});"
  9476. ]
  9477. },"删除某个仓库SN激活统计": {
  9478. "prefix": "ym-db-StoreSnActivateSummary-Delete",
  9479. "body": [
  9480. "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
  9481. "if ($1 != null)",
  9482. "{",
  9483. " db.StoreSnActivateSummary.Remove($1);",
  9484. "}"
  9485. ]
  9486. },
  9487. "查询仓库库存变动记录列表": {
  9488. "prefix": "ym-db-StoreStockChange-Find",
  9489. "body": [
  9490. "List<StoreStockChange> $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9491. "foreach (StoreStockChange $3 in $1)",
  9492. "{",
  9493. "}"
  9494. ]
  9495. },
  9496. "查询仓库库存变动记录列表,并取值": {
  9497. "prefix": "ym-db-StoreStockChange-FindWithData",
  9498. "body": [
  9499. "List<StoreStockChange> $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9500. "foreach (StoreStockChange $3 in $1)",
  9501. "{",
  9502. " int StoreId = $3.StoreId; //仓库",
  9503. " int BrandId = $3.BrandId; //产品类型",
  9504. " string ProductName = $3.ProductName; //产品名称",
  9505. " string ChangeNo = $3.ChangeNo ; //变更单号",
  9506. " string BizBatchNo = $3.BizBatchNo; //业务批次号",
  9507. " int TransType = $3.TransType; //交易类型",
  9508. " string SnNo = $3.SnNo; //SN编号",
  9509. " int SnType = $3.SnType; //SN机具类型",
  9510. " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
  9511. " int SnStatus = $3.SnStatus; //SN状态",
  9512. " int BindStatus = $3.BindStatus; //绑定状态",
  9513. " int BindMerchant = $3.BindMerchant; //绑定商户",
  9514. " int ActiveStatus = $3.ActiveStatus; //激活状态",
  9515. " int ActRewardUserId = $3.ActRewardUserId; //激活奖励人",
  9516. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  9517. " string DeviceModel = $3.DeviceModel; //设备型号",
  9518. " string DeviceType = $3.DeviceType; //设备类型",
  9519. " int FromUserId = $3.FromUserId; //出货人",
  9520. " DateTime FromDate = $3.FromDate; //出库时间",
  9521. " string FromRemark = $3.FromRemark; //出库备注",
  9522. " int ToUserId = $3.ToUserId; //收货人",
  9523. " int ToStoreId = $3.ToStoreId; //退货收货仓库",
  9524. " DateTime ToDate = $3.ToDate; //入库时间",
  9525. " string ToRemark = $3.ToRemark; //入库备注",
  9526. " int SourceStoreId = $3.SourceStoreId; //源仓库编号",
  9527. " string ExpressNo = $3.ExpressNo; //快递单号",
  9528. " string BrandType = $3.BrandType; //品牌类型",
  9529. "}"
  9530. ]
  9531. },
  9532. "查询仓库库存变动记录": {
  9533. "prefix": "ym-db-StoreStockChange-Exist",
  9534. "body": [
  9535. "bool $1 = db.StoreStockChange.Any(m => m.Id == $2);",
  9536. ]
  9537. },
  9538. "查询某个仓库库存变动记录,并取值": {
  9539. "prefix": "ym-db-StoreStockChange-FindByPrimaryKey",
  9540. "body": [
  9541. "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
  9542. "if ($1 != null)",
  9543. "{",
  9544. " int StoreId = $1.StoreId; //仓库",
  9545. " int BrandId = $1.BrandId; //产品类型",
  9546. " string ProductName = $1.ProductName; //产品名称",
  9547. " string ChangeNo = $1.ChangeNo ; //变更单号",
  9548. " string BizBatchNo = $1.BizBatchNo; //业务批次号",
  9549. " int TransType = $1.TransType; //交易类型",
  9550. " string SnNo = $1.SnNo; //SN编号",
  9551. " int SnType = $1.SnType; //SN机具类型",
  9552. " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
  9553. " int SnStatus = $1.SnStatus; //SN状态",
  9554. " int BindStatus = $1.BindStatus; //绑定状态",
  9555. " int BindMerchant = $1.BindMerchant; //绑定商户",
  9556. " int ActiveStatus = $1.ActiveStatus; //激活状态",
  9557. " int ActRewardUserId = $1.ActRewardUserId; //激活奖励人",
  9558. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  9559. " string DeviceModel = $1.DeviceModel; //设备型号",
  9560. " string DeviceType = $1.DeviceType; //设备类型",
  9561. " int FromUserId = $1.FromUserId; //出货人",
  9562. " DateTime FromDate = $1.FromDate; //出库时间",
  9563. " string FromRemark = $1.FromRemark; //出库备注",
  9564. " int ToUserId = $1.ToUserId; //收货人",
  9565. " int ToStoreId = $1.ToStoreId; //退货收货仓库",
  9566. " DateTime ToDate = $1.ToDate; //入库时间",
  9567. " string ToRemark = $1.ToRemark; //入库备注",
  9568. " int SourceStoreId = $1.SourceStoreId; //源仓库编号",
  9569. " string ExpressNo = $1.ExpressNo; //快递单号",
  9570. " string BrandType = $1.BrandType; //品牌类型",
  9571. "}"
  9572. ]
  9573. },
  9574. "查询某个仓库库存变动记录,并赋值": {
  9575. "prefix": "ym-db-StoreStockChange-Update",
  9576. "body": [
  9577. "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
  9578. "if ($1 != null)",
  9579. "{",
  9580. " $1.StoreId = $2; //仓库",
  9581. " $1.BrandId = $3; //产品类型",
  9582. " $1.ProductName = $4; //产品名称",
  9583. " $1.ChangeNo = $5; //变更单号",
  9584. " $1.BizBatchNo = $6; //业务批次号",
  9585. " $1.TransType = $7; //交易类型",
  9586. " $1.SnNo = $8; //SN编号",
  9587. " $1.SnType = $9; //SN机具类型",
  9588. " $1.StockOpDirect = $10; //库存操作方向",
  9589. " $1.SnStatus = $11; //SN状态",
  9590. " $1.BindStatus = $12; //绑定状态",
  9591. " $1.BindMerchant = $13; //绑定商户",
  9592. " $1.ActiveStatus = $14; //激活状态",
  9593. " $1.ActRewardUserId = $15; //激活奖励人",
  9594. " $1.DeviceVendor = $16; //设备厂商",
  9595. " $1.DeviceModel = $17; //设备型号",
  9596. " $1.DeviceType = $18; //设备类型",
  9597. " $1.FromUserId = $19; //出货人",
  9598. " $1.FromDate = $20; //出库时间",
  9599. " $1.FromRemark = $21; //出库备注",
  9600. " $1.ToUserId = $22; //收货人",
  9601. " $1.ToStoreId = $23; //退货收货仓库",
  9602. " $1.ToDate = $24; //入库时间",
  9603. " $1.ToRemark = $25; //入库备注",
  9604. " $1.SourceStoreId = $26; //源仓库编号",
  9605. " $1.ExpressNo = $27; //快递单号",
  9606. " $1.BrandType = $28; //品牌类型",
  9607. "}"
  9608. ]
  9609. },
  9610. "获取仓库库存变动记录数量": {
  9611. "prefix": "ym-db-StoreStockChange-FindAndCount",
  9612. "body": [
  9613. "int $1 = db.StoreStockChange.Count(m => $2);",
  9614. ]
  9615. },
  9616. "添加仓库库存变动记录": {
  9617. "prefix": "ym-db-StoreStockChange-Create",
  9618. "body": [
  9619. "db.StoreStockChange.Add(new StoreStockChange()",
  9620. "{",
  9621. " CreateDate = DateTime.Now,",
  9622. " UpdateDate = DateTime.Now,",
  9623. " StoreId = $1, //仓库",
  9624. " BrandId = $2, //产品类型",
  9625. " ProductName = $3, //产品名称",
  9626. " ChangeNo = $4, //变更单号",
  9627. " BizBatchNo = $5, //业务批次号",
  9628. " TransType = $6, //交易类型",
  9629. " SnNo = $7, //SN编号",
  9630. " SnType = $8, //SN机具类型",
  9631. " StockOpDirect = $9, //库存操作方向",
  9632. " SnStatus = $10, //SN状态",
  9633. " BindStatus = $11, //绑定状态",
  9634. " BindMerchant = $12, //绑定商户",
  9635. " ActiveStatus = $13, //激活状态",
  9636. " ActRewardUserId = $14, //激活奖励人",
  9637. " DeviceVendor = $15, //设备厂商",
  9638. " DeviceModel = $16, //设备型号",
  9639. " DeviceType = $17, //设备类型",
  9640. " FromUserId = $18, //出货人",
  9641. " FromDate = $19, //出库时间",
  9642. " FromRemark = $20, //出库备注",
  9643. " ToUserId = $21, //收货人",
  9644. " ToStoreId = $22, //退货收货仓库",
  9645. " ToDate = $23, //入库时间",
  9646. " ToRemark = $24, //入库备注",
  9647. " SourceStoreId = $25, //源仓库编号",
  9648. " ExpressNo = $26, //快递单号",
  9649. " BrandType = $27, //品牌类型",
  9650. "});"
  9651. ]
  9652. },"删除某个仓库库存变动记录": {
  9653. "prefix": "ym-db-StoreStockChange-Delete",
  9654. "body": [
  9655. "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
  9656. "if ($1 != null)",
  9657. "{",
  9658. " db.StoreStockChange.Remove($1);",
  9659. "}"
  9660. ]
  9661. },
  9662. "查询兑换机具记录列表": {
  9663. "prefix": "ym-db-StoreSwapSn-Find",
  9664. "body": [
  9665. "List<StoreSwapSn> $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9666. "foreach (StoreSwapSn $3 in $1)",
  9667. "{",
  9668. "}"
  9669. ]
  9670. },
  9671. "查询兑换机具记录列表,并取值": {
  9672. "prefix": "ym-db-StoreSwapSn-FindWithData",
  9673. "body": [
  9674. "List<StoreSwapSn> $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9675. "foreach (StoreSwapSn $3 in $1)",
  9676. "{",
  9677. " int UserId = $3.UserId; //创客",
  9678. " int BrandId = $3.BrandId; //品牌",
  9679. " string SnNo = $3.SnNo; //SN号",
  9680. " int SnType = $3.SnType; //SN类型",
  9681. " DateTime StandardDate = $3.StandardDate; //达标日期",
  9682. " int ActType = $3.ActType; //激活类型",
  9683. " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述",
  9684. " int SnStoreId = $3.SnStoreId; //SN仓库",
  9685. " string PosType = $3.PosType; //POS类型",
  9686. " int SwapStatus = $3.SwapStatus; //兑换状态",
  9687. " int BizStatus = $3.BizStatus; //业务状态",
  9688. " int RiskStatus = $3.RiskStatus; //风控状态",
  9689. " string SwapExtProductTypes = $3.SwapExtProductTypes; //可兑换产品类型",
  9690. " string SwapSnNo = $3.SwapSnNo; //兑换SN号",
  9691. " string SwapApplyOrderNo = $3.SwapApplyOrderNo; //兑换申请单号",
  9692. " DateTime SwapApplyDate = $3.SwapApplyDate; //兑换时间",
  9693. " string Remark = $3.Remark; //备注",
  9694. "}"
  9695. ]
  9696. },
  9697. "查询兑换机具记录": {
  9698. "prefix": "ym-db-StoreSwapSn-Exist",
  9699. "body": [
  9700. "bool $1 = db.StoreSwapSn.Any(m => m.Id == $2);",
  9701. ]
  9702. },
  9703. "查询某个兑换机具记录,并取值": {
  9704. "prefix": "ym-db-StoreSwapSn-FindByPrimaryKey",
  9705. "body": [
  9706. "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
  9707. "if ($1 != null)",
  9708. "{",
  9709. " int UserId = $1.UserId; //创客",
  9710. " int BrandId = $1.BrandId; //品牌",
  9711. " string SnNo = $1.SnNo; //SN号",
  9712. " int SnType = $1.SnType; //SN类型",
  9713. " DateTime StandardDate = $1.StandardDate; //达标日期",
  9714. " int ActType = $1.ActType; //激活类型",
  9715. " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述",
  9716. " int SnStoreId = $1.SnStoreId; //SN仓库",
  9717. " string PosType = $1.PosType; //POS类型",
  9718. " int SwapStatus = $1.SwapStatus; //兑换状态",
  9719. " int BizStatus = $1.BizStatus; //业务状态",
  9720. " int RiskStatus = $1.RiskStatus; //风控状态",
  9721. " string SwapExtProductTypes = $1.SwapExtProductTypes; //可兑换产品类型",
  9722. " string SwapSnNo = $1.SwapSnNo; //兑换SN号",
  9723. " string SwapApplyOrderNo = $1.SwapApplyOrderNo; //兑换申请单号",
  9724. " DateTime SwapApplyDate = $1.SwapApplyDate; //兑换时间",
  9725. " string Remark = $1.Remark; //备注",
  9726. "}"
  9727. ]
  9728. },
  9729. "查询某个兑换机具记录,并赋值": {
  9730. "prefix": "ym-db-StoreSwapSn-Update",
  9731. "body": [
  9732. "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
  9733. "if ($1 != null)",
  9734. "{",
  9735. " $1.UserId = $2; //创客",
  9736. " $1.BrandId = $3; //品牌",
  9737. " $1.SnNo = $4; //SN号",
  9738. " $1.SnType = $5; //SN类型",
  9739. " $1.StandardDate = $6; //达标日期",
  9740. " $1.ActType = $7; //激活类型",
  9741. " $1.ActTypeDesc = $8; //激活类型描述",
  9742. " $1.SnStoreId = $9; //SN仓库",
  9743. " $1.PosType = $10; //POS类型",
  9744. " $1.SwapStatus = $11; //兑换状态",
  9745. " $1.BizStatus = $12; //业务状态",
  9746. " $1.RiskStatus = $13; //风控状态",
  9747. " $1.SwapExtProductTypes = $14; //可兑换产品类型",
  9748. " $1.SwapSnNo = $15; //兑换SN号",
  9749. " $1.SwapApplyOrderNo = $16; //兑换申请单号",
  9750. " $1.SwapApplyDate = $17; //兑换时间",
  9751. " $1.Remark = $18; //备注",
  9752. "}"
  9753. ]
  9754. },
  9755. "获取兑换机具记录数量": {
  9756. "prefix": "ym-db-StoreSwapSn-FindAndCount",
  9757. "body": [
  9758. "int $1 = db.StoreSwapSn.Count(m => $2);",
  9759. ]
  9760. },
  9761. "添加兑换机具记录": {
  9762. "prefix": "ym-db-StoreSwapSn-Create",
  9763. "body": [
  9764. "db.StoreSwapSn.Add(new StoreSwapSn()",
  9765. "{",
  9766. " CreateDate = DateTime.Now,",
  9767. " UpdateDate = DateTime.Now,",
  9768. " UserId = $1, //创客",
  9769. " BrandId = $2, //品牌",
  9770. " SnNo = $3, //SN号",
  9771. " SnType = $4, //SN类型",
  9772. " StandardDate = $5, //达标日期",
  9773. " ActType = $6, //激活类型",
  9774. " ActTypeDesc = $7, //激活类型描述",
  9775. " SnStoreId = $8, //SN仓库",
  9776. " PosType = $9, //POS类型",
  9777. " SwapStatus = $10, //兑换状态",
  9778. " BizStatus = $11, //业务状态",
  9779. " RiskStatus = $12, //风控状态",
  9780. " SwapExtProductTypes = $13, //可兑换产品类型",
  9781. " SwapSnNo = $14, //兑换SN号",
  9782. " SwapApplyOrderNo = $15, //兑换申请单号",
  9783. " SwapApplyDate = $16, //兑换时间",
  9784. " Remark = $17, //备注",
  9785. "});"
  9786. ]
  9787. },"删除某个兑换机具记录": {
  9788. "prefix": "ym-db-StoreSwapSn-Delete",
  9789. "body": [
  9790. "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
  9791. "if ($1 != null)",
  9792. "{",
  9793. " db.StoreSwapSn.Remove($1);",
  9794. "}"
  9795. ]
  9796. },
  9797. "查询创客奖励记录列表": {
  9798. "prefix": "ym-db-SysRechargeRecord-Find",
  9799. "body": [
  9800. "List<SysRechargeRecord> $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9801. "foreach (SysRechargeRecord $3 in $1)",
  9802. "{",
  9803. "}"
  9804. ]
  9805. },
  9806. "查询创客奖励记录列表,并取值": {
  9807. "prefix": "ym-db-SysRechargeRecord-FindWithData",
  9808. "body": [
  9809. "List<SysRechargeRecord> $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9810. "foreach (SysRechargeRecord $3 in $1)",
  9811. "{",
  9812. " string RechargeRecNo = $3.RechargeRecNo; //充值流水号",
  9813. " string PartnerTradeNo = $3.PartnerTradeNo; //业务单号",
  9814. " int ProductType = $3.ProductType; //产品类型",
  9815. " int UserId = $3.UserId; //创客",
  9816. " int BizType = $3.BizType; //业务类型",
  9817. " DateTime BizTime = $3.BizTime; //奖励时间",
  9818. " decimal Amount = $3.Amount; //奖励金额",
  9819. " int SyncStatus = $3.SyncStatus; //同步状态",
  9820. " string BatchCode = $3.BatchCode; //批次号",
  9821. " string ClientIp = $3.ClientIp; //客户IP",
  9822. "}"
  9823. ]
  9824. },
  9825. "查询创客奖励记录": {
  9826. "prefix": "ym-db-SysRechargeRecord-Exist",
  9827. "body": [
  9828. "bool $1 = db.SysRechargeRecord.Any(m => m.Id == $2);",
  9829. ]
  9830. },
  9831. "查询某个创客奖励记录,并取值": {
  9832. "prefix": "ym-db-SysRechargeRecord-FindByPrimaryKey",
  9833. "body": [
  9834. "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
  9835. "if ($1 != null)",
  9836. "{",
  9837. " string RechargeRecNo = $1.RechargeRecNo; //充值流水号",
  9838. " string PartnerTradeNo = $1.PartnerTradeNo; //业务单号",
  9839. " int ProductType = $1.ProductType; //产品类型",
  9840. " int UserId = $1.UserId; //创客",
  9841. " int BizType = $1.BizType; //业务类型",
  9842. " DateTime BizTime = $1.BizTime; //奖励时间",
  9843. " decimal Amount = $1.Amount; //奖励金额",
  9844. " int SyncStatus = $1.SyncStatus; //同步状态",
  9845. " string BatchCode = $1.BatchCode; //批次号",
  9846. " string ClientIp = $1.ClientIp; //客户IP",
  9847. "}"
  9848. ]
  9849. },
  9850. "查询某个创客奖励记录,并赋值": {
  9851. "prefix": "ym-db-SysRechargeRecord-Update",
  9852. "body": [
  9853. "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
  9854. "if ($1 != null)",
  9855. "{",
  9856. " $1.RechargeRecNo = $2; //充值流水号",
  9857. " $1.PartnerTradeNo = $3; //业务单号",
  9858. " $1.ProductType = $4; //产品类型",
  9859. " $1.UserId = $5; //创客",
  9860. " $1.BizType = $6; //业务类型",
  9861. " $1.BizTime = $7; //奖励时间",
  9862. " $1.Amount = $8; //奖励金额",
  9863. " $1.SyncStatus = $9; //同步状态",
  9864. " $1.BatchCode = $10; //批次号",
  9865. " $1.ClientIp = $11; //客户IP",
  9866. "}"
  9867. ]
  9868. },
  9869. "获取创客奖励记录数量": {
  9870. "prefix": "ym-db-SysRechargeRecord-FindAndCount",
  9871. "body": [
  9872. "int $1 = db.SysRechargeRecord.Count(m => $2);",
  9873. ]
  9874. },
  9875. "添加创客奖励记录": {
  9876. "prefix": "ym-db-SysRechargeRecord-Create",
  9877. "body": [
  9878. "db.SysRechargeRecord.Add(new SysRechargeRecord()",
  9879. "{",
  9880. " CreateDate = DateTime.Now,",
  9881. " UpdateDate = DateTime.Now,",
  9882. " RechargeRecNo = $1, //充值流水号",
  9883. " PartnerTradeNo = $2, //业务单号",
  9884. " ProductType = $3, //产品类型",
  9885. " UserId = $4, //创客",
  9886. " BizType = $5, //业务类型",
  9887. " BizTime = $6, //奖励时间",
  9888. " Amount = $7, //奖励金额",
  9889. " SyncStatus = $8, //同步状态",
  9890. " BatchCode = $9, //批次号",
  9891. " ClientIp = $10, //客户IP",
  9892. "});"
  9893. ]
  9894. },"删除某个创客奖励记录": {
  9895. "prefix": "ym-db-SysRechargeRecord-Delete",
  9896. "body": [
  9897. "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
  9898. "if ($1 != null)",
  9899. "{",
  9900. " db.SysRechargeRecord.Remove($1);",
  9901. "}"
  9902. ]
  9903. },
  9904. "查询开团申请列表": {
  9905. "prefix": "ym-db-TeamApply-Find",
  9906. "body": [
  9907. "List<TeamApply> $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9908. "foreach (TeamApply $3 in $1)",
  9909. "{",
  9910. "}"
  9911. ]
  9912. },
  9913. "查询开团申请列表,并取值": {
  9914. "prefix": "ym-db-TeamApply-FindWithData",
  9915. "body": [
  9916. "List<TeamApply> $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9917. "foreach (TeamApply $3 in $1)",
  9918. "{",
  9919. " string TeamNo = $3.TeamNo; //队伍编码",
  9920. " string TeamName = $3.TeamName; //队伍名称",
  9921. " int UserId = $3.UserId; //队长",
  9922. " string ManagerNo = $3.ManagerNo; //渠道经理编号",
  9923. " string ManagerName = $3.ManagerName; //渠道经理名称",
  9924. " string Areas = $3.Areas; //特训营所在地区",
  9925. " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
  9926. " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间",
  9927. " DateTime EnterStartDate = $3.EnterStartDate; //报名开始时间",
  9928. " DateTime EnterEndDate = $3.EnterEndDate; //报名结束时间",
  9929. " int MinUserNum = $3.MinUserNum; //最小队伍人数",
  9930. " int MaxUserNum = $3.MaxUserNum; //最大队伍人数",
  9931. " string WatchWord = $3.WatchWord; //口号",
  9932. " DateTime AuditTime = $3.AuditTime; //审核时间",
  9933. " int AuditResult = $3.AuditResult; //审核结果",
  9934. " string AuditRemark = $3.AuditRemark; //审核备注",
  9935. " int NotifyFlag = $3.NotifyFlag; //提醒标识",
  9936. " string Remark = $3.Remark; //备注",
  9937. " int TopUserId = $3.TopUserId; //顶级创客",
  9938. " int TeamStatus = $3.TeamStatus; //组队状态",
  9939. "}"
  9940. ]
  9941. },
  9942. "查询开团申请": {
  9943. "prefix": "ym-db-TeamApply-Exist",
  9944. "body": [
  9945. "bool $1 = db.TeamApply.Any(m => m.Id == $2);",
  9946. ]
  9947. },
  9948. "查询某个开团申请,并取值": {
  9949. "prefix": "ym-db-TeamApply-FindByPrimaryKey",
  9950. "body": [
  9951. "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
  9952. "if ($1 != null)",
  9953. "{",
  9954. " string TeamNo = $1.TeamNo; //队伍编码",
  9955. " string TeamName = $1.TeamName; //队伍名称",
  9956. " int UserId = $1.UserId; //队长",
  9957. " string ManagerNo = $1.ManagerNo; //渠道经理编号",
  9958. " string ManagerName = $1.ManagerName; //渠道经理名称",
  9959. " string Areas = $1.Areas; //特训营所在地区",
  9960. " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
  9961. " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间",
  9962. " DateTime EnterStartDate = $1.EnterStartDate; //报名开始时间",
  9963. " DateTime EnterEndDate = $1.EnterEndDate; //报名结束时间",
  9964. " int MinUserNum = $1.MinUserNum; //最小队伍人数",
  9965. " int MaxUserNum = $1.MaxUserNum; //最大队伍人数",
  9966. " string WatchWord = $1.WatchWord; //口号",
  9967. " DateTime AuditTime = $1.AuditTime; //审核时间",
  9968. " int AuditResult = $1.AuditResult; //审核结果",
  9969. " string AuditRemark = $1.AuditRemark; //审核备注",
  9970. " int NotifyFlag = $1.NotifyFlag; //提醒标识",
  9971. " string Remark = $1.Remark; //备注",
  9972. " int TopUserId = $1.TopUserId; //顶级创客",
  9973. " int TeamStatus = $1.TeamStatus; //组队状态",
  9974. "}"
  9975. ]
  9976. },
  9977. "查询某个开团申请,并赋值": {
  9978. "prefix": "ym-db-TeamApply-Update",
  9979. "body": [
  9980. "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
  9981. "if ($1 != null)",
  9982. "{",
  9983. " $1.TeamNo = $2; //队伍编码",
  9984. " $1.TeamName = $3; //队伍名称",
  9985. " $1.UserId = $4; //队长",
  9986. " $1.ManagerNo = $5; //渠道经理编号",
  9987. " $1.ManagerName = $6; //渠道经理名称",
  9988. " $1.Areas = $7; //特训营所在地区",
  9989. " $1.EffectStartDate = $8; //活动开始时间",
  9990. " $1.EffectEndDate = $9; //活动结束时间",
  9991. " $1.EnterStartDate = $10; //报名开始时间",
  9992. " $1.EnterEndDate = $11; //报名结束时间",
  9993. " $1.MinUserNum = $12; //最小队伍人数",
  9994. " $1.MaxUserNum = $13; //最大队伍人数",
  9995. " $1.WatchWord = $14; //口号",
  9996. " $1.AuditTime = $15; //审核时间",
  9997. " $1.AuditResult = $16; //审核结果",
  9998. " $1.AuditRemark = $17; //审核备注",
  9999. " $1.NotifyFlag = $18; //提醒标识",
  10000. " $1.Remark = $19; //备注",
  10001. " $1.TopUserId = $20; //顶级创客",
  10002. " $1.TeamStatus = $21; //组队状态",
  10003. "}"
  10004. ]
  10005. },
  10006. "获取开团申请数量": {
  10007. "prefix": "ym-db-TeamApply-FindAndCount",
  10008. "body": [
  10009. "int $1 = db.TeamApply.Count(m => $2);",
  10010. ]
  10011. },
  10012. "添加开团申请": {
  10013. "prefix": "ym-db-TeamApply-Create",
  10014. "body": [
  10015. "db.TeamApply.Add(new TeamApply()",
  10016. "{",
  10017. " CreateDate = DateTime.Now,",
  10018. " UpdateDate = DateTime.Now,",
  10019. " TeamNo = $1, //队伍编码",
  10020. " TeamName = $2, //队伍名称",
  10021. " UserId = $3, //队长",
  10022. " ManagerNo = $4, //渠道经理编号",
  10023. " ManagerName = $5, //渠道经理名称",
  10024. " Areas = $6, //特训营所在地区",
  10025. " EffectStartDate = $7, //活动开始时间",
  10026. " EffectEndDate = $8, //活动结束时间",
  10027. " EnterStartDate = $9, //报名开始时间",
  10028. " EnterEndDate = $10, //报名结束时间",
  10029. " MinUserNum = $11, //最小队伍人数",
  10030. " MaxUserNum = $12, //最大队伍人数",
  10031. " WatchWord = $13, //口号",
  10032. " AuditTime = $14, //审核时间",
  10033. " AuditResult = $15, //审核结果",
  10034. " AuditRemark = $16, //审核备注",
  10035. " NotifyFlag = $17, //提醒标识",
  10036. " Remark = $18, //备注",
  10037. " TopUserId = $19, //顶级创客",
  10038. " TeamStatus = $20, //组队状态",
  10039. "});"
  10040. ]
  10041. },"删除某个开团申请": {
  10042. "prefix": "ym-db-TeamApply-Delete",
  10043. "body": [
  10044. "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
  10045. "if ($1 != null)",
  10046. "{",
  10047. " db.TeamApply.Remove($1);",
  10048. "}"
  10049. ]
  10050. },
  10051. "查询团队名称为主键的关联表列表": {
  10052. "prefix": "ym-db-TeamApplyForTeamName-Find",
  10053. "body": [
  10054. "List<TeamApplyForTeamName> $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10055. "foreach (TeamApplyForTeamName $3 in $1)",
  10056. "{",
  10057. "}"
  10058. ]
  10059. },
  10060. "查询团队名称为主键的关联表列表,并取值": {
  10061. "prefix": "ym-db-TeamApplyForTeamName-FindWithData",
  10062. "body": [
  10063. "List<TeamApplyForTeamName> $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10064. "foreach (TeamApplyForTeamName $3 in $1)",
  10065. "{",
  10066. " string TeamName = $3.TeamName; //团队名称",
  10067. " int TeamId = $3.TeamId; //团队Id",
  10068. "}"
  10069. ]
  10070. },
  10071. "查询团队名称为主键的关联表": {
  10072. "prefix": "ym-db-TeamApplyForTeamName-Exist",
  10073. "body": [
  10074. "bool $1 = db.TeamApplyForTeamName.Any(m => m.TeamName == $2);",
  10075. ]
  10076. },
  10077. "查询某个团队名称为主键的关联表,并取值": {
  10078. "prefix": "ym-db-TeamApplyForTeamName-FindByPrimaryKey",
  10079. "body": [
  10080. "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
  10081. "if ($1 != null)",
  10082. "{",
  10083. " string TeamName = $1.TeamName; //团队名称",
  10084. " int TeamId = $1.TeamId; //团队Id",
  10085. "}"
  10086. ]
  10087. },
  10088. "查询某个团队名称为主键的关联表,并赋值": {
  10089. "prefix": "ym-db-TeamApplyForTeamName-Update",
  10090. "body": [
  10091. "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
  10092. "if ($1 != null)",
  10093. "{",
  10094. " $1.TeamName = $2; //团队名称",
  10095. " $1.TeamId = $3; //团队Id",
  10096. "}"
  10097. ]
  10098. },
  10099. "获取团队名称为主键的关联表数量": {
  10100. "prefix": "ym-db-TeamApplyForTeamName-FindAndCount",
  10101. "body": [
  10102. "int $1 = db.TeamApplyForTeamName.Count(m => $2);",
  10103. ]
  10104. },
  10105. "添加团队名称为主键的关联表": {
  10106. "prefix": "ym-db-TeamApplyForTeamName-Create",
  10107. "body": [
  10108. "db.TeamApplyForTeamName.Add(new TeamApplyForTeamName()",
  10109. "{",
  10110. " CreateDate = DateTime.Now,",
  10111. " UpdateDate = DateTime.Now,",
  10112. " TeamName = $1, //团队名称",
  10113. " TeamId = $2, //团队Id",
  10114. "});"
  10115. ]
  10116. },"删除某个团队名称为主键的关联表": {
  10117. "prefix": "ym-db-TeamApplyForTeamName-Delete",
  10118. "body": [
  10119. "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
  10120. "if ($1 != null)",
  10121. "{",
  10122. " db.TeamApplyForTeamName.Remove($1);",
  10123. "}"
  10124. ]
  10125. },
  10126. "查询团队编号为主键的关联表列表": {
  10127. "prefix": "ym-db-TeamApplyForTeamNo-Find",
  10128. "body": [
  10129. "List<TeamApplyForTeamNo> $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10130. "foreach (TeamApplyForTeamNo $3 in $1)",
  10131. "{",
  10132. "}"
  10133. ]
  10134. },
  10135. "查询团队编号为主键的关联表列表,并取值": {
  10136. "prefix": "ym-db-TeamApplyForTeamNo-FindWithData",
  10137. "body": [
  10138. "List<TeamApplyForTeamNo> $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10139. "foreach (TeamApplyForTeamNo $3 in $1)",
  10140. "{",
  10141. " string TeamNo = $3.TeamNo; //团队编号",
  10142. " int TeamId = $3.TeamId; //团队Id",
  10143. "}"
  10144. ]
  10145. },
  10146. "查询团队编号为主键的关联表": {
  10147. "prefix": "ym-db-TeamApplyForTeamNo-Exist",
  10148. "body": [
  10149. "bool $1 = db.TeamApplyForTeamNo.Any(m => m.TeamNo == $2);",
  10150. ]
  10151. },
  10152. "查询某个团队编号为主键的关联表,并取值": {
  10153. "prefix": "ym-db-TeamApplyForTeamNo-FindByPrimaryKey",
  10154. "body": [
  10155. "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
  10156. "if ($1 != null)",
  10157. "{",
  10158. " string TeamNo = $1.TeamNo; //团队编号",
  10159. " int TeamId = $1.TeamId; //团队Id",
  10160. "}"
  10161. ]
  10162. },
  10163. "查询某个团队编号为主键的关联表,并赋值": {
  10164. "prefix": "ym-db-TeamApplyForTeamNo-Update",
  10165. "body": [
  10166. "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
  10167. "if ($1 != null)",
  10168. "{",
  10169. " $1.TeamNo = $2; //团队编号",
  10170. " $1.TeamId = $3; //团队Id",
  10171. "}"
  10172. ]
  10173. },
  10174. "获取团队编号为主键的关联表数量": {
  10175. "prefix": "ym-db-TeamApplyForTeamNo-FindAndCount",
  10176. "body": [
  10177. "int $1 = db.TeamApplyForTeamNo.Count(m => $2);",
  10178. ]
  10179. },
  10180. "添加团队编号为主键的关联表": {
  10181. "prefix": "ym-db-TeamApplyForTeamNo-Create",
  10182. "body": [
  10183. "db.TeamApplyForTeamNo.Add(new TeamApplyForTeamNo()",
  10184. "{",
  10185. " CreateDate = DateTime.Now,",
  10186. " UpdateDate = DateTime.Now,",
  10187. " TeamNo = $1, //团队编号",
  10188. " TeamId = $2, //团队Id",
  10189. "});"
  10190. ]
  10191. },"删除某个团队编号为主键的关联表": {
  10192. "prefix": "ym-db-TeamApplyForTeamNo-Delete",
  10193. "body": [
  10194. "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
  10195. "if ($1 != null)",
  10196. "{",
  10197. " db.TeamApplyForTeamNo.Remove($1);",
  10198. "}"
  10199. ]
  10200. },
  10201. "查询开团黑名单列表": {
  10202. "prefix": "ym-db-TeamBlackList-Find",
  10203. "body": [
  10204. "List<TeamBlackList> $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10205. "foreach (TeamBlackList $3 in $1)",
  10206. "{",
  10207. "}"
  10208. ]
  10209. },
  10210. "查询开团黑名单列表,并取值": {
  10211. "prefix": "ym-db-TeamBlackList-FindWithData",
  10212. "body": [
  10213. "List<TeamBlackList> $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10214. "foreach (TeamBlackList $3 in $1)",
  10215. "{",
  10216. " int UserId = $3.UserId; //创客",
  10217. " string ManagerNo = $3.ManagerNo; //渠道经理编号",
  10218. " string ManagerName = $3.ManagerName; //渠道经理名称",
  10219. " DateTime EffectStartDate = $3.EffectStartDate; //生效时间",
  10220. " DateTime EffectEndDate = $3.EffectEndDate; //失效时间",
  10221. " string Remark = $3.Remark; //备注",
  10222. " int TopUserId = $3.TopUserId; //顶级创客",
  10223. " int BlackStatus = $3.BlackStatus; //状态",
  10224. "}"
  10225. ]
  10226. },
  10227. "查询开团黑名单": {
  10228. "prefix": "ym-db-TeamBlackList-Exist",
  10229. "body": [
  10230. "bool $1 = db.TeamBlackList.Any(m => m.Id == $2);",
  10231. ]
  10232. },
  10233. "查询某个开团黑名单,并取值": {
  10234. "prefix": "ym-db-TeamBlackList-FindByPrimaryKey",
  10235. "body": [
  10236. "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
  10237. "if ($1 != null)",
  10238. "{",
  10239. " int UserId = $1.UserId; //创客",
  10240. " string ManagerNo = $1.ManagerNo; //渠道经理编号",
  10241. " string ManagerName = $1.ManagerName; //渠道经理名称",
  10242. " DateTime EffectStartDate = $1.EffectStartDate; //生效时间",
  10243. " DateTime EffectEndDate = $1.EffectEndDate; //失效时间",
  10244. " string Remark = $1.Remark; //备注",
  10245. " int TopUserId = $1.TopUserId; //顶级创客",
  10246. " int BlackStatus = $1.BlackStatus; //状态",
  10247. "}"
  10248. ]
  10249. },
  10250. "查询某个开团黑名单,并赋值": {
  10251. "prefix": "ym-db-TeamBlackList-Update",
  10252. "body": [
  10253. "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
  10254. "if ($1 != null)",
  10255. "{",
  10256. " $1.UserId = $2; //创客",
  10257. " $1.ManagerNo = $3; //渠道经理编号",
  10258. " $1.ManagerName = $4; //渠道经理名称",
  10259. " $1.EffectStartDate = $5; //生效时间",
  10260. " $1.EffectEndDate = $6; //失效时间",
  10261. " $1.Remark = $7; //备注",
  10262. " $1.TopUserId = $8; //顶级创客",
  10263. " $1.BlackStatus = $9; //状态",
  10264. "}"
  10265. ]
  10266. },
  10267. "获取开团黑名单数量": {
  10268. "prefix": "ym-db-TeamBlackList-FindAndCount",
  10269. "body": [
  10270. "int $1 = db.TeamBlackList.Count(m => $2);",
  10271. ]
  10272. },
  10273. "添加开团黑名单": {
  10274. "prefix": "ym-db-TeamBlackList-Create",
  10275. "body": [
  10276. "db.TeamBlackList.Add(new TeamBlackList()",
  10277. "{",
  10278. " CreateDate = DateTime.Now,",
  10279. " UpdateDate = DateTime.Now,",
  10280. " UserId = $1, //创客",
  10281. " ManagerNo = $2, //渠道经理编号",
  10282. " ManagerName = $3, //渠道经理名称",
  10283. " EffectStartDate = $4, //生效时间",
  10284. " EffectEndDate = $5, //失效时间",
  10285. " Remark = $6, //备注",
  10286. " TopUserId = $7, //顶级创客",
  10287. " BlackStatus = $8, //状态",
  10288. "});"
  10289. ]
  10290. },"删除某个开团黑名单": {
  10291. "prefix": "ym-db-TeamBlackList-Delete",
  10292. "body": [
  10293. "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
  10294. "if ($1 != null)",
  10295. "{",
  10296. " db.TeamBlackList.Remove($1);",
  10297. "}"
  10298. ]
  10299. },
  10300. "查询开团配置列表": {
  10301. "prefix": "ym-db-TeamConfig-Find",
  10302. "body": [
  10303. "List<TeamConfig> $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10304. "foreach (TeamConfig $3 in $1)",
  10305. "{",
  10306. "}"
  10307. ]
  10308. },
  10309. "查询开团配置列表,并取值": {
  10310. "prefix": "ym-db-TeamConfig-FindWithData",
  10311. "body": [
  10312. "List<TeamConfig> $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10313. "foreach (TeamConfig $3 in $1)",
  10314. "{",
  10315. " string LimitBuddyNo = $3.LimitBuddyNo; //限制人",
  10316. " int MinUserNum = $3.MinUserNum; //最小队伍人数",
  10317. " int MaxUserNum = $3.MaxUserNum; //最大队伍人数",
  10318. " int MinCycleNum = $3.MinCycleNum; //最小周期天数",
  10319. " int MaxCycleNum = $3.MaxCycleNum; //最大周期天数",
  10320. " int MinStartDayLimit = $3.MinStartDayLimit; //最小间隔天数",
  10321. " int MaxStartDayLimit = $3.MaxStartDayLimit; //最大间隔天数",
  10322. " ulong OverlineStatus = $3.OverlineStatus; //是否允许跨顶级线报名",
  10323. " int BlacklistCycle = $3.BlacklistCycle; //黑名单周期",
  10324. " int EnterEndMin = $3.EnterEndMin; //活动时间差",
  10325. " string Remark = $3.Remark; //备注",
  10326. "}"
  10327. ]
  10328. },
  10329. "查询开团配置": {
  10330. "prefix": "ym-db-TeamConfig-Exist",
  10331. "body": [
  10332. "bool $1 = db.TeamConfig.Any(m => m.Id == $2);",
  10333. ]
  10334. },
  10335. "查询某个开团配置,并取值": {
  10336. "prefix": "ym-db-TeamConfig-FindByPrimaryKey",
  10337. "body": [
  10338. "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
  10339. "if ($1 != null)",
  10340. "{",
  10341. " string LimitBuddyNo = $1.LimitBuddyNo; //限制人",
  10342. " int MinUserNum = $1.MinUserNum; //最小队伍人数",
  10343. " int MaxUserNum = $1.MaxUserNum; //最大队伍人数",
  10344. " int MinCycleNum = $1.MinCycleNum; //最小周期天数",
  10345. " int MaxCycleNum = $1.MaxCycleNum; //最大周期天数",
  10346. " int MinStartDayLimit = $1.MinStartDayLimit; //最小间隔天数",
  10347. " int MaxStartDayLimit = $1.MaxStartDayLimit; //最大间隔天数",
  10348. " ulong OverlineStatus = $1.OverlineStatus; //是否允许跨顶级线报名",
  10349. " int BlacklistCycle = $1.BlacklistCycle; //黑名单周期",
  10350. " int EnterEndMin = $1.EnterEndMin; //活动时间差",
  10351. " string Remark = $1.Remark; //备注",
  10352. "}"
  10353. ]
  10354. },
  10355. "查询某个开团配置,并赋值": {
  10356. "prefix": "ym-db-TeamConfig-Update",
  10357. "body": [
  10358. "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
  10359. "if ($1 != null)",
  10360. "{",
  10361. " $1.LimitBuddyNo = $2; //限制人",
  10362. " $1.MinUserNum = $3; //最小队伍人数",
  10363. " $1.MaxUserNum = $4; //最大队伍人数",
  10364. " $1.MinCycleNum = $5; //最小周期天数",
  10365. " $1.MaxCycleNum = $6; //最大周期天数",
  10366. " $1.MinStartDayLimit = $7; //最小间隔天数",
  10367. " $1.MaxStartDayLimit = $8; //最大间隔天数",
  10368. " $1.OverlineStatus = $9; //是否允许跨顶级线报名",
  10369. " $1.BlacklistCycle = $10; //黑名单周期",
  10370. " $1.EnterEndMin = $11; //活动时间差",
  10371. " $1.Remark = $12; //备注",
  10372. "}"
  10373. ]
  10374. },
  10375. "获取开团配置数量": {
  10376. "prefix": "ym-db-TeamConfig-FindAndCount",
  10377. "body": [
  10378. "int $1 = db.TeamConfig.Count(m => $2);",
  10379. ]
  10380. },
  10381. "添加开团配置": {
  10382. "prefix": "ym-db-TeamConfig-Create",
  10383. "body": [
  10384. "db.TeamConfig.Add(new TeamConfig()",
  10385. "{",
  10386. " CreateDate = DateTime.Now,",
  10387. " UpdateDate = DateTime.Now,",
  10388. " LimitBuddyNo = $1, //限制人",
  10389. " MinUserNum = $2, //最小队伍人数",
  10390. " MaxUserNum = $3, //最大队伍人数",
  10391. " MinCycleNum = $4, //最小周期天数",
  10392. " MaxCycleNum = $5, //最大周期天数",
  10393. " MinStartDayLimit = $6, //最小间隔天数",
  10394. " MaxStartDayLimit = $7, //最大间隔天数",
  10395. " OverlineStatus = $8, //是否允许跨顶级线报名",
  10396. " BlacklistCycle = $9, //黑名单周期",
  10397. " EnterEndMin = $10, //活动时间差",
  10398. " Remark = $11, //备注",
  10399. "});"
  10400. ]
  10401. },"删除某个开团配置": {
  10402. "prefix": "ym-db-TeamConfig-Delete",
  10403. "body": [
  10404. "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
  10405. "if ($1 != null)",
  10406. "{",
  10407. " db.TeamConfig.Remove($1);",
  10408. "}"
  10409. ]
  10410. },
  10411. "查询特训营团队排行榜列表": {
  10412. "prefix": "ym-db-TeamDayTop-Find",
  10413. "body": [
  10414. "List<TeamDayTop> $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10415. "foreach (TeamDayTop $3 in $1)",
  10416. "{",
  10417. "}"
  10418. ]
  10419. },
  10420. "查询特训营团队排行榜列表,并取值": {
  10421. "prefix": "ym-db-TeamDayTop-FindWithData",
  10422. "body": [
  10423. "List<TeamDayTop> $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10424. "foreach (TeamDayTop $3 in $1)",
  10425. "{",
  10426. " string StatDate = $3.StatDate; //统计日",
  10427. " string StatMonth = $3.StatMonth; //统计月",
  10428. " int UserId = $3.UserId; //创客",
  10429. " int TopUserId = $3.TopUserId; //顶级创客",
  10430. " int BrandId = $3.BrandId; //品牌",
  10431. " int TeamId = $3.TeamId; //队伍",
  10432. " int TeamUserId = $3.TeamUserId; //团队长创客",
  10433. " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间",
  10434. " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间",
  10435. " int ActMerNum = $3.ActMerNum; //团员直营激活商户数",
  10436. " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数",
  10437. " string Remark = $3.Remark; //备注",
  10438. "}"
  10439. ]
  10440. },
  10441. "查询特训营团队排行榜": {
  10442. "prefix": "ym-db-TeamDayTop-Exist",
  10443. "body": [
  10444. "bool $1 = db.TeamDayTop.Any(m => m.Id == $2);",
  10445. ]
  10446. },
  10447. "查询某个特训营团队排行榜,并取值": {
  10448. "prefix": "ym-db-TeamDayTop-FindByPrimaryKey",
  10449. "body": [
  10450. "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
  10451. "if ($1 != null)",
  10452. "{",
  10453. " string StatDate = $1.StatDate; //统计日",
  10454. " string StatMonth = $1.StatMonth; //统计月",
  10455. " int UserId = $1.UserId; //创客",
  10456. " int TopUserId = $1.TopUserId; //顶级创客",
  10457. " int BrandId = $1.BrandId; //品牌",
  10458. " int TeamId = $1.TeamId; //队伍",
  10459. " int TeamUserId = $1.TeamUserId; //团队长创客",
  10460. " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间",
  10461. " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间",
  10462. " int ActMerNum = $1.ActMerNum; //团员直营激活商户数",
  10463. " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数",
  10464. " string Remark = $1.Remark; //备注",
  10465. "}"
  10466. ]
  10467. },
  10468. "查询某个特训营团队排行榜,并赋值": {
  10469. "prefix": "ym-db-TeamDayTop-Update",
  10470. "body": [
  10471. "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
  10472. "if ($1 != null)",
  10473. "{",
  10474. " $1.StatDate = $2; //统计日",
  10475. " $1.StatMonth = $3; //统计月",
  10476. " $1.UserId = $4; //创客",
  10477. " $1.TopUserId = $5; //顶级创客",
  10478. " $1.BrandId = $6; //品牌",
  10479. " $1.TeamId = $7; //队伍",
  10480. " $1.TeamUserId = $8; //团队长创客",
  10481. " $1.TeamStartDate = $9; //队伍开始时间",
  10482. " $1.TeamEndDate = $10; //队伍结束时间",
  10483. " $1.ActMerNum = $11; //团员直营激活商户数",
  10484. " $1.TeamActMerNum = $12; //队伍直营激活商户数",
  10485. " $1.Remark = $13; //备注",
  10486. "}"
  10487. ]
  10488. },
  10489. "获取特训营团队排行榜数量": {
  10490. "prefix": "ym-db-TeamDayTop-FindAndCount",
  10491. "body": [
  10492. "int $1 = db.TeamDayTop.Count(m => $2);",
  10493. ]
  10494. },
  10495. "添加特训营团队排行榜": {
  10496. "prefix": "ym-db-TeamDayTop-Create",
  10497. "body": [
  10498. "db.TeamDayTop.Add(new TeamDayTop()",
  10499. "{",
  10500. " CreateDate = DateTime.Now,",
  10501. " UpdateDate = DateTime.Now,",
  10502. " StatDate = $1, //统计日",
  10503. " StatMonth = $2, //统计月",
  10504. " UserId = $3, //创客",
  10505. " TopUserId = $4, //顶级创客",
  10506. " BrandId = $5, //品牌",
  10507. " TeamId = $6, //队伍",
  10508. " TeamUserId = $7, //团队长创客",
  10509. " TeamStartDate = $8, //队伍开始时间",
  10510. " TeamEndDate = $9, //队伍结束时间",
  10511. " ActMerNum = $10, //团员直营激活商户数",
  10512. " TeamActMerNum = $11, //队伍直营激活商户数",
  10513. " Remark = $12, //备注",
  10514. "});"
  10515. ]
  10516. },"删除某个特训营团队排行榜": {
  10517. "prefix": "ym-db-TeamDayTop-Delete",
  10518. "body": [
  10519. "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
  10520. "if ($1 != null)",
  10521. "{",
  10522. " db.TeamDayTop.Remove($1);",
  10523. "}"
  10524. ]
  10525. },
  10526. "查询参团申请列表": {
  10527. "prefix": "ym-db-TeamOfferApply-Find",
  10528. "body": [
  10529. "List<TeamOfferApply> $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10530. "foreach (TeamOfferApply $3 in $1)",
  10531. "{",
  10532. "}"
  10533. ]
  10534. },
  10535. "查询参团申请列表,并取值": {
  10536. "prefix": "ym-db-TeamOfferApply-FindWithData",
  10537. "body": [
  10538. "List<TeamOfferApply> $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10539. "foreach (TeamOfferApply $3 in $1)",
  10540. "{",
  10541. " string ManagerNo = $3.ManagerNo; //渠道经理编号",
  10542. " string ManagerName = $3.ManagerName; //渠道经理名称",
  10543. " string Areas = $3.Areas; //特训营所在地区",
  10544. " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
  10545. " DateTime EffectEndDate = $3.EffectEndDate ; //活动结束时间",
  10546. " DateTime EnterDate = $3.EnterDate; //报名时间",
  10547. " DateTime AuditTime = $3.AuditTime; //审核时间",
  10548. " int AuditResult = $3.AuditResult; //审核结果",
  10549. " string AuditRemark = $3.AuditRemark; //审核备注",
  10550. " int NotifyFlag = $3.NotifyFlag; //提醒标识",
  10551. " string Remark = $3.Remark; //备注",
  10552. " int UserId = $3.UserId; //创客",
  10553. " int TeamId = $3.TeamId; //团队",
  10554. " int TeamLeader = $3.TeamLeader; //队长",
  10555. " int TopUserId = $3.TopUserId; //顶级创客",
  10556. " int TeamApplyStatus = $3.TeamApplyStatus; //组队申请状态",
  10557. " int TeamStatus = $3.TeamStatus; //状态",
  10558. "}"
  10559. ]
  10560. },
  10561. "查询参团申请": {
  10562. "prefix": "ym-db-TeamOfferApply-Exist",
  10563. "body": [
  10564. "bool $1 = db.TeamOfferApply.Any(m => m.Id == $2);",
  10565. ]
  10566. },
  10567. "查询某个参团申请,并取值": {
  10568. "prefix": "ym-db-TeamOfferApply-FindByPrimaryKey",
  10569. "body": [
  10570. "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
  10571. "if ($1 != null)",
  10572. "{",
  10573. " string ManagerNo = $1.ManagerNo; //渠道经理编号",
  10574. " string ManagerName = $1.ManagerName; //渠道经理名称",
  10575. " string Areas = $1.Areas; //特训营所在地区",
  10576. " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
  10577. " DateTime EffectEndDate = $1.EffectEndDate ; //活动结束时间",
  10578. " DateTime EnterDate = $1.EnterDate; //报名时间",
  10579. " DateTime AuditTime = $1.AuditTime; //审核时间",
  10580. " int AuditResult = $1.AuditResult; //审核结果",
  10581. " string AuditRemark = $1.AuditRemark; //审核备注",
  10582. " int NotifyFlag = $1.NotifyFlag; //提醒标识",
  10583. " string Remark = $1.Remark; //备注",
  10584. " int UserId = $1.UserId; //创客",
  10585. " int TeamId = $1.TeamId; //团队",
  10586. " int TeamLeader = $1.TeamLeader; //队长",
  10587. " int TopUserId = $1.TopUserId; //顶级创客",
  10588. " int TeamApplyStatus = $1.TeamApplyStatus; //组队申请状态",
  10589. " int TeamStatus = $1.TeamStatus; //状态",
  10590. "}"
  10591. ]
  10592. },
  10593. "查询某个参团申请,并赋值": {
  10594. "prefix": "ym-db-TeamOfferApply-Update",
  10595. "body": [
  10596. "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
  10597. "if ($1 != null)",
  10598. "{",
  10599. " $1.ManagerNo = $2; //渠道经理编号",
  10600. " $1.ManagerName = $3; //渠道经理名称",
  10601. " $1.Areas = $4; //特训营所在地区",
  10602. " $1.EffectStartDate = $5; //活动开始时间",
  10603. " $1.EffectEndDate = $6; //活动结束时间",
  10604. " $1.EnterDate = $7; //报名时间",
  10605. " $1.AuditTime = $8; //审核时间",
  10606. " $1.AuditResult = $9; //审核结果",
  10607. " $1.AuditRemark = $10; //审核备注",
  10608. " $1.NotifyFlag = $11; //提醒标识",
  10609. " $1.Remark = $12; //备注",
  10610. " $1.UserId = $13; //创客",
  10611. " $1.TeamId = $14; //团队",
  10612. " $1.TeamLeader = $15; //队长",
  10613. " $1.TopUserId = $16; //顶级创客",
  10614. " $1.TeamApplyStatus = $17; //组队申请状态",
  10615. " $1.TeamStatus = $18; //状态",
  10616. "}"
  10617. ]
  10618. },
  10619. "获取参团申请数量": {
  10620. "prefix": "ym-db-TeamOfferApply-FindAndCount",
  10621. "body": [
  10622. "int $1 = db.TeamOfferApply.Count(m => $2);",
  10623. ]
  10624. },
  10625. "添加参团申请": {
  10626. "prefix": "ym-db-TeamOfferApply-Create",
  10627. "body": [
  10628. "db.TeamOfferApply.Add(new TeamOfferApply()",
  10629. "{",
  10630. " CreateDate = DateTime.Now,",
  10631. " UpdateDate = DateTime.Now,",
  10632. " ManagerNo = $1, //渠道经理编号",
  10633. " ManagerName = $2, //渠道经理名称",
  10634. " Areas = $3, //特训营所在地区",
  10635. " EffectStartDate = $4, //活动开始时间",
  10636. " EffectEndDate = $5, //活动结束时间",
  10637. " EnterDate = $6, //报名时间",
  10638. " AuditTime = $7, //审核时间",
  10639. " AuditResult = $8, //审核结果",
  10640. " AuditRemark = $9, //审核备注",
  10641. " NotifyFlag = $10, //提醒标识",
  10642. " Remark = $11, //备注",
  10643. " UserId = $12, //创客",
  10644. " TeamId = $13, //团队",
  10645. " TeamLeader = $14, //队长",
  10646. " TopUserId = $15, //顶级创客",
  10647. " TeamApplyStatus = $16, //组队申请状态",
  10648. " TeamStatus = $17, //状态",
  10649. "});"
  10650. ]
  10651. },"删除某个参团申请": {
  10652. "prefix": "ym-db-TeamOfferApply-Delete",
  10653. "body": [
  10654. "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
  10655. "if ($1 != null)",
  10656. "{",
  10657. " db.TeamOfferApply.Remove($1);",
  10658. "}"
  10659. ]
  10660. },
  10661. "查询特训营个人排行榜列表": {
  10662. "prefix": "ym-db-TeamPersonDayTop-Find",
  10663. "body": [
  10664. "List<TeamPersonDayTop> $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10665. "foreach (TeamPersonDayTop $3 in $1)",
  10666. "{",
  10667. "}"
  10668. ]
  10669. },
  10670. "查询特训营个人排行榜列表,并取值": {
  10671. "prefix": "ym-db-TeamPersonDayTop-FindWithData",
  10672. "body": [
  10673. "List<TeamPersonDayTop> $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10674. "foreach (TeamPersonDayTop $3 in $1)",
  10675. "{",
  10676. " string StatDate = $3.StatDate; //统计日",
  10677. " string StatMonth = $3.StatMonth; //统计月",
  10678. " int UserId = $3.UserId; //创客",
  10679. " int TopUserId = $3.TopUserId; //顶级创客",
  10680. " int BrandId = $3.BrandId; //品牌",
  10681. " int TeamId = $3.TeamId; //队伍",
  10682. " int TeamUserId = $3.TeamUserId; //团队长创客",
  10683. " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间",
  10684. " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间",
  10685. " int ActMerNum = $3.ActMerNum; //团员直营激活商户数",
  10686. " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数",
  10687. " string Remark = $3.Remark; //备注",
  10688. "}"
  10689. ]
  10690. },
  10691. "查询特训营个人排行榜": {
  10692. "prefix": "ym-db-TeamPersonDayTop-Exist",
  10693. "body": [
  10694. "bool $1 = db.TeamPersonDayTop.Any(m => m.Id == $2);",
  10695. ]
  10696. },
  10697. "查询某个特训营个人排行榜,并取值": {
  10698. "prefix": "ym-db-TeamPersonDayTop-FindByPrimaryKey",
  10699. "body": [
  10700. "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
  10701. "if ($1 != null)",
  10702. "{",
  10703. " string StatDate = $1.StatDate; //统计日",
  10704. " string StatMonth = $1.StatMonth; //统计月",
  10705. " int UserId = $1.UserId; //创客",
  10706. " int TopUserId = $1.TopUserId; //顶级创客",
  10707. " int BrandId = $1.BrandId; //品牌",
  10708. " int TeamId = $1.TeamId; //队伍",
  10709. " int TeamUserId = $1.TeamUserId; //团队长创客",
  10710. " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间",
  10711. " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间",
  10712. " int ActMerNum = $1.ActMerNum; //团员直营激活商户数",
  10713. " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数",
  10714. " string Remark = $1.Remark; //备注",
  10715. "}"
  10716. ]
  10717. },
  10718. "查询某个特训营个人排行榜,并赋值": {
  10719. "prefix": "ym-db-TeamPersonDayTop-Update",
  10720. "body": [
  10721. "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
  10722. "if ($1 != null)",
  10723. "{",
  10724. " $1.StatDate = $2; //统计日",
  10725. " $1.StatMonth = $3; //统计月",
  10726. " $1.UserId = $4; //创客",
  10727. " $1.TopUserId = $5; //顶级创客",
  10728. " $1.BrandId = $6; //品牌",
  10729. " $1.TeamId = $7; //队伍",
  10730. " $1.TeamUserId = $8; //团队长创客",
  10731. " $1.TeamStartDate = $9; //队伍开始时间",
  10732. " $1.TeamEndDate = $10; //队伍结束时间",
  10733. " $1.ActMerNum = $11; //团员直营激活商户数",
  10734. " $1.TeamActMerNum = $12; //队伍直营激活商户数",
  10735. " $1.Remark = $13; //备注",
  10736. "}"
  10737. ]
  10738. },
  10739. "获取特训营个人排行榜数量": {
  10740. "prefix": "ym-db-TeamPersonDayTop-FindAndCount",
  10741. "body": [
  10742. "int $1 = db.TeamPersonDayTop.Count(m => $2);",
  10743. ]
  10744. },
  10745. "添加特训营个人排行榜": {
  10746. "prefix": "ym-db-TeamPersonDayTop-Create",
  10747. "body": [
  10748. "db.TeamPersonDayTop.Add(new TeamPersonDayTop()",
  10749. "{",
  10750. " CreateDate = DateTime.Now,",
  10751. " UpdateDate = DateTime.Now,",
  10752. " StatDate = $1, //统计日",
  10753. " StatMonth = $2, //统计月",
  10754. " UserId = $3, //创客",
  10755. " TopUserId = $4, //顶级创客",
  10756. " BrandId = $5, //品牌",
  10757. " TeamId = $6, //队伍",
  10758. " TeamUserId = $7, //团队长创客",
  10759. " TeamStartDate = $8, //队伍开始时间",
  10760. " TeamEndDate = $9, //队伍结束时间",
  10761. " ActMerNum = $10, //团员直营激活商户数",
  10762. " TeamActMerNum = $11, //队伍直营激活商户数",
  10763. " Remark = $12, //备注",
  10764. "});"
  10765. ]
  10766. },"删除某个特训营个人排行榜": {
  10767. "prefix": "ym-db-TeamPersonDayTop-Delete",
  10768. "body": [
  10769. "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
  10770. "if ($1 != null)",
  10771. "{",
  10772. " db.TeamPersonDayTop.Remove($1);",
  10773. "}"
  10774. ]
  10775. },
  10776. "查询交易日汇总列表": {
  10777. "prefix": "ym-db-TradeDaySummary-Find",
  10778. "body": [
  10779. "List<TradeDaySummary> $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10780. "foreach (TradeDaySummary $3 in $1)",
  10781. "{",
  10782. "}"
  10783. ]
  10784. },
  10785. "查询交易日汇总列表,并取值": {
  10786. "prefix": "ym-db-TradeDaySummary-FindWithData",
  10787. "body": [
  10788. "List<TradeDaySummary> $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10789. "foreach (TradeDaySummary $3 in $1)",
  10790. "{",
  10791. " int UserId = $3.UserId; //创客",
  10792. " string TradeDate = $3.TradeDate; //交易日",
  10793. " string TradeMonth = $3.TradeMonth; //交易月",
  10794. " int BrandId = $3.BrandId; //品牌",
  10795. " string MgrNo = $3.MgrNo; //渠道经理编号",
  10796. " string MgrName = $3.MgrName; //渠道经理姓名",
  10797. " decimal NotHelpDirectTradeAmt = $3.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)",
  10798. " decimal NotHelpNonDirectTradeAmt = $3.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)",
  10799. " decimal NotHelpDirectCreditTradeAmt = $3.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)",
  10800. " decimal NotHelpNonDirectCreditTradeAmt = $3.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)",
  10801. " decimal NotHelpDirectQrCreditTradeAmt = $3.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)",
  10802. " decimal NotHelpNonDirectQrCreditTradeAmt = $3.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)",
  10803. " decimal NotHelpDirectNonQrCreditTradeAmt = $3.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)",
  10804. " decimal NotHelpNonDirectNonQrCreditTradeAmt = $3.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)",
  10805. " decimal NotHelpDirectDebitTradeAmt = $3.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)",
  10806. " decimal NotHelpDirectDebitCapTradeAmt = $3.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)",
  10807. " int NotHelpDirectDebitCapNum = $3.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)",
  10808. " decimal NotHelpNonDirectDebitTradeAmt = $3.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)",
  10809. " decimal NotHelpNonDirectDebitCapTradeAmt = $3.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)",
  10810. " int NotHelpNonDirectDebitCapNum = $3.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)",
  10811. " decimal NotHelpDirectQrDebitTradeAmt = $3.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)",
  10812. " decimal NotHelpNonDirectQrDebitTradeAmt = $3.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)",
  10813. " decimal NotHelpDirectNonQrDebitTradeAmt = $3.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)",
  10814. " decimal NotHelpNonDirectNonQrDebitTradeAmt = $3.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)",
  10815. " decimal HelpDirectTradeAmt = $3.HelpDirectTradeAmt; //直营商户交易总额(扶持期)",
  10816. " decimal HelpNonDirectTradeAmt = $3.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)",
  10817. " decimal HelpDirectCreditTradeAmt = $3.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)",
  10818. " decimal HelpNonDirectCreditTradeAmt = $3.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)",
  10819. " decimal HelpDirectQrCreditTradeAmt = $3.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)",
  10820. " decimal HelpNonDirectQrCreditTradeAmt = $3.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)",
  10821. " decimal HelpDirectNonQrCreditTradeAmt = $3.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)",
  10822. " decimal HelpNonDirectNonQrCreditTradeAmt = $3.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)",
  10823. " decimal HelpDirectDebitTradeAmt = $3.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)",
  10824. " decimal HelpDirectDebitCapTradeAmt = $3.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)",
  10825. " decimal HelpDirectDebitCapNum = $3.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)",
  10826. " decimal HelpNonDirectDebitTradeAmt = $3.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)",
  10827. " decimal HelpNonDirectDebitCapTradeAmt = $3.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)",
  10828. " decimal HelpNonDirectDebitCapNum = $3.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)",
  10829. " decimal HelpDirectQrDebitTradeAmt = $3.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)",
  10830. " decimal HelpNonDirectQrDebitTradeAmt = $3.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)",
  10831. " decimal HelpDirectNonQrDebitTradeAmt = $3.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)",
  10832. " decimal HelpNonDirectNonQrDebitTradeAmt = $3.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)",
  10833. " int TopUserId = $3.TopUserId; //顶级创客",
  10834. "}"
  10835. ]
  10836. },
  10837. "查询交易日汇总": {
  10838. "prefix": "ym-db-TradeDaySummary-Exist",
  10839. "body": [
  10840. "bool $1 = db.TradeDaySummary.Any(m => m.Id == $2);",
  10841. ]
  10842. },
  10843. "查询某个交易日汇总,并取值": {
  10844. "prefix": "ym-db-TradeDaySummary-FindByPrimaryKey",
  10845. "body": [
  10846. "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  10847. "if ($1 != null)",
  10848. "{",
  10849. " int UserId = $1.UserId; //创客",
  10850. " string TradeDate = $1.TradeDate; //交易日",
  10851. " string TradeMonth = $1.TradeMonth; //交易月",
  10852. " int BrandId = $1.BrandId; //品牌",
  10853. " string MgrNo = $1.MgrNo; //渠道经理编号",
  10854. " string MgrName = $1.MgrName; //渠道经理姓名",
  10855. " decimal NotHelpDirectTradeAmt = $1.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)",
  10856. " decimal NotHelpNonDirectTradeAmt = $1.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)",
  10857. " decimal NotHelpDirectCreditTradeAmt = $1.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)",
  10858. " decimal NotHelpNonDirectCreditTradeAmt = $1.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)",
  10859. " decimal NotHelpDirectQrCreditTradeAmt = $1.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)",
  10860. " decimal NotHelpNonDirectQrCreditTradeAmt = $1.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)",
  10861. " decimal NotHelpDirectNonQrCreditTradeAmt = $1.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)",
  10862. " decimal NotHelpNonDirectNonQrCreditTradeAmt = $1.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)",
  10863. " decimal NotHelpDirectDebitTradeAmt = $1.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)",
  10864. " decimal NotHelpDirectDebitCapTradeAmt = $1.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)",
  10865. " int NotHelpDirectDebitCapNum = $1.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)",
  10866. " decimal NotHelpNonDirectDebitTradeAmt = $1.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)",
  10867. " decimal NotHelpNonDirectDebitCapTradeAmt = $1.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)",
  10868. " int NotHelpNonDirectDebitCapNum = $1.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)",
  10869. " decimal NotHelpDirectQrDebitTradeAmt = $1.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)",
  10870. " decimal NotHelpNonDirectQrDebitTradeAmt = $1.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)",
  10871. " decimal NotHelpDirectNonQrDebitTradeAmt = $1.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)",
  10872. " decimal NotHelpNonDirectNonQrDebitTradeAmt = $1.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)",
  10873. " decimal HelpDirectTradeAmt = $1.HelpDirectTradeAmt; //直营商户交易总额(扶持期)",
  10874. " decimal HelpNonDirectTradeAmt = $1.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)",
  10875. " decimal HelpDirectCreditTradeAmt = $1.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)",
  10876. " decimal HelpNonDirectCreditTradeAmt = $1.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)",
  10877. " decimal HelpDirectQrCreditTradeAmt = $1.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)",
  10878. " decimal HelpNonDirectQrCreditTradeAmt = $1.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)",
  10879. " decimal HelpDirectNonQrCreditTradeAmt = $1.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)",
  10880. " decimal HelpNonDirectNonQrCreditTradeAmt = $1.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)",
  10881. " decimal HelpDirectDebitTradeAmt = $1.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)",
  10882. " decimal HelpDirectDebitCapTradeAmt = $1.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)",
  10883. " decimal HelpDirectDebitCapNum = $1.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)",
  10884. " decimal HelpNonDirectDebitTradeAmt = $1.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)",
  10885. " decimal HelpNonDirectDebitCapTradeAmt = $1.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)",
  10886. " decimal HelpNonDirectDebitCapNum = $1.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)",
  10887. " decimal HelpDirectQrDebitTradeAmt = $1.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)",
  10888. " decimal HelpNonDirectQrDebitTradeAmt = $1.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)",
  10889. " decimal HelpDirectNonQrDebitTradeAmt = $1.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)",
  10890. " decimal HelpNonDirectNonQrDebitTradeAmt = $1.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)",
  10891. " int TopUserId = $1.TopUserId; //顶级创客",
  10892. "}"
  10893. ]
  10894. },
  10895. "查询某个交易日汇总,并赋值": {
  10896. "prefix": "ym-db-TradeDaySummary-Update",
  10897. "body": [
  10898. "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  10899. "if ($1 != null)",
  10900. "{",
  10901. " $1.UserId = $2; //创客",
  10902. " $1.TradeDate = $3; //交易日",
  10903. " $1.TradeMonth = $4; //交易月",
  10904. " $1.BrandId = $5; //品牌",
  10905. " $1.MgrNo = $6; //渠道经理编号",
  10906. " $1.MgrName = $7; //渠道经理姓名",
  10907. " $1.NotHelpDirectTradeAmt = $8; //直营商户交易总额(非扶持期)",
  10908. " $1.NotHelpNonDirectTradeAmt = $9; //非直营商户交易总额(非扶持期)",
  10909. " $1.NotHelpDirectCreditTradeAmt = $10; //直营贷记卡交易总额(非扶持期)",
  10910. " $1.NotHelpNonDirectCreditTradeAmt = $11; //非直营贷记卡交易总额(非扶持期)",
  10911. " $1.NotHelpDirectQrCreditTradeAmt = $12; //直营云闪付贷记卡交易额(非扶持期)",
  10912. " $1.NotHelpNonDirectQrCreditTradeAmt = $13; //非直营云闪付贷记卡交易额(非扶持期)",
  10913. " $1.NotHelpDirectNonQrCreditTradeAmt = $14; //直营非云闪付贷记卡交易额(非扶持期)",
  10914. " $1.NotHelpNonDirectNonQrCreditTradeAmt = $15; //非直营非云闪付贷记卡交易额(非扶持期)",
  10915. " $1.NotHelpDirectDebitTradeAmt = $16; //直营商户借记卡交易总额(非扶持期)",
  10916. " $1.NotHelpDirectDebitCapTradeAmt = $17; //直营商户借记卡封顶交易总金额(非扶持期)",
  10917. " $1.NotHelpDirectDebitCapNum = $18; //直营商户借记卡封顶交易总数(非扶持期)",
  10918. " $1.NotHelpNonDirectDebitTradeAmt = $19; //非直营商户借记卡交易总额(非扶持期)",
  10919. " $1.NotHelpNonDirectDebitCapTradeAmt = $20; //非直营商户借记卡封顶交易总金额(非扶持期)",
  10920. " $1.NotHelpNonDirectDebitCapNum = $21; //非直营商户借记卡封顶交易总数(非扶持期)",
  10921. " $1.NotHelpDirectQrDebitTradeAmt = $22; //直营云闪付非封顶借记卡(非扶持期)",
  10922. " $1.NotHelpNonDirectQrDebitTradeAmt = $23; //非直营云闪付非封顶借记卡(非扶持期)",
  10923. " $1.NotHelpDirectNonQrDebitTradeAmt = $24; //直营非云闪付非封顶借记卡(非扶持期)",
  10924. " $1.NotHelpNonDirectNonQrDebitTradeAmt = $25; //非直营非云闪付非封顶借记卡(非扶持期)",
  10925. " $1.HelpDirectTradeAmt = $26; //直营商户交易总额(扶持期)",
  10926. " $1.HelpNonDirectTradeAmt = $27; //非直营商户交易总额(扶持期)",
  10927. " $1.HelpDirectCreditTradeAmt = $28; //直营贷记卡交易总额(扶持期)",
  10928. " $1.HelpNonDirectCreditTradeAmt = $29; //非直营贷记卡交易总额(扶持期)",
  10929. " $1.HelpDirectQrCreditTradeAmt = $30; //直营云闪付贷记卡交易额(扶持期)",
  10930. " $1.HelpNonDirectQrCreditTradeAmt = $31; //非直营云闪付贷记卡交易额(扶持期)",
  10931. " $1.HelpDirectNonQrCreditTradeAmt = $32; //直营非云闪付贷记卡交易额(扶持期)",
  10932. " $1.HelpNonDirectNonQrCreditTradeAmt = $33; //非直营非云闪付贷记卡交易额(扶持期)",
  10933. " $1.HelpDirectDebitTradeAmt = $34; //直营商户借记卡交易总额(扶持期)",
  10934. " $1.HelpDirectDebitCapTradeAmt = $35; //直营商户借记卡封顶交易总金额(扶持期)",
  10935. " $1.HelpDirectDebitCapNum = $36; //直营商户借记卡封顶交易总数(扶持期)",
  10936. " $1.HelpNonDirectDebitTradeAmt = $37; //非直营商户借记卡交易总额(扶持期)",
  10937. " $1.HelpNonDirectDebitCapTradeAmt = $38; //非直营商户借记卡封顶交易总金额(扶持期)",
  10938. " $1.HelpNonDirectDebitCapNum = $39; //非直营商户借记卡封顶交易总数(扶持期)",
  10939. " $1.HelpDirectQrDebitTradeAmt = $40; //直营云闪付非封顶借记卡(扶持期)",
  10940. " $1.HelpNonDirectQrDebitTradeAmt = $41; //非直营云闪付非封顶借记卡(扶持期)",
  10941. " $1.HelpDirectNonQrDebitTradeAmt = $42; //直营非云闪付非封顶借记卡(扶持期)",
  10942. " $1.HelpNonDirectNonQrDebitTradeAmt = $43; //非直营非云闪付非封顶借记卡(扶持期)",
  10943. " $1.TopUserId = $44; //顶级创客",
  10944. "}"
  10945. ]
  10946. },
  10947. "获取交易日汇总数量": {
  10948. "prefix": "ym-db-TradeDaySummary-FindAndCount",
  10949. "body": [
  10950. "int $1 = db.TradeDaySummary.Count(m => $2);",
  10951. ]
  10952. },
  10953. "添加交易日汇总": {
  10954. "prefix": "ym-db-TradeDaySummary-Create",
  10955. "body": [
  10956. "db.TradeDaySummary.Add(new TradeDaySummary()",
  10957. "{",
  10958. " CreateDate = DateTime.Now,",
  10959. " UpdateDate = DateTime.Now,",
  10960. " UserId = $1, //创客",
  10961. " TradeDate = $2, //交易日",
  10962. " TradeMonth = $3, //交易月",
  10963. " BrandId = $4, //品牌",
  10964. " MgrNo = $5, //渠道经理编号",
  10965. " MgrName = $6, //渠道经理姓名",
  10966. " NotHelpDirectTradeAmt = $7, //直营商户交易总额(非扶持期)",
  10967. " NotHelpNonDirectTradeAmt = $8, //非直营商户交易总额(非扶持期)",
  10968. " NotHelpDirectCreditTradeAmt = $9, //直营贷记卡交易总额(非扶持期)",
  10969. " NotHelpNonDirectCreditTradeAmt = $10, //非直营贷记卡交易总额(非扶持期)",
  10970. " NotHelpDirectQrCreditTradeAmt = $11, //直营云闪付贷记卡交易额(非扶持期)",
  10971. " NotHelpNonDirectQrCreditTradeAmt = $12, //非直营云闪付贷记卡交易额(非扶持期)",
  10972. " NotHelpDirectNonQrCreditTradeAmt = $13, //直营非云闪付贷记卡交易额(非扶持期)",
  10973. " NotHelpNonDirectNonQrCreditTradeAmt = $14, //非直营非云闪付贷记卡交易额(非扶持期)",
  10974. " NotHelpDirectDebitTradeAmt = $15, //直营商户借记卡交易总额(非扶持期)",
  10975. " NotHelpDirectDebitCapTradeAmt = $16, //直营商户借记卡封顶交易总金额(非扶持期)",
  10976. " NotHelpDirectDebitCapNum = $17, //直营商户借记卡封顶交易总数(非扶持期)",
  10977. " NotHelpNonDirectDebitTradeAmt = $18, //非直营商户借记卡交易总额(非扶持期)",
  10978. " NotHelpNonDirectDebitCapTradeAmt = $19, //非直营商户借记卡封顶交易总金额(非扶持期)",
  10979. " NotHelpNonDirectDebitCapNum = $20, //非直营商户借记卡封顶交易总数(非扶持期)",
  10980. " NotHelpDirectQrDebitTradeAmt = $21, //直营云闪付非封顶借记卡(非扶持期)",
  10981. " NotHelpNonDirectQrDebitTradeAmt = $22, //非直营云闪付非封顶借记卡(非扶持期)",
  10982. " NotHelpDirectNonQrDebitTradeAmt = $23, //直营非云闪付非封顶借记卡(非扶持期)",
  10983. " NotHelpNonDirectNonQrDebitTradeAmt = $24, //非直营非云闪付非封顶借记卡(非扶持期)",
  10984. " HelpDirectTradeAmt = $25, //直营商户交易总额(扶持期)",
  10985. " HelpNonDirectTradeAmt = $26, //非直营商户交易总额(扶持期)",
  10986. " HelpDirectCreditTradeAmt = $27, //直营贷记卡交易总额(扶持期)",
  10987. " HelpNonDirectCreditTradeAmt = $28, //非直营贷记卡交易总额(扶持期)",
  10988. " HelpDirectQrCreditTradeAmt = $29, //直营云闪付贷记卡交易额(扶持期)",
  10989. " HelpNonDirectQrCreditTradeAmt = $30, //非直营云闪付贷记卡交易额(扶持期)",
  10990. " HelpDirectNonQrCreditTradeAmt = $31, //直营非云闪付贷记卡交易额(扶持期)",
  10991. " HelpNonDirectNonQrCreditTradeAmt = $32, //非直营非云闪付贷记卡交易额(扶持期)",
  10992. " HelpDirectDebitTradeAmt = $33, //直营商户借记卡交易总额(扶持期)",
  10993. " HelpDirectDebitCapTradeAmt = $34, //直营商户借记卡封顶交易总金额(扶持期)",
  10994. " HelpDirectDebitCapNum = $35, //直营商户借记卡封顶交易总数(扶持期)",
  10995. " HelpNonDirectDebitTradeAmt = $36, //非直营商户借记卡交易总额(扶持期)",
  10996. " HelpNonDirectDebitCapTradeAmt = $37, //非直营商户借记卡封顶交易总金额(扶持期)",
  10997. " HelpNonDirectDebitCapNum = $38, //非直营商户借记卡封顶交易总数(扶持期)",
  10998. " HelpDirectQrDebitTradeAmt = $39, //直营云闪付非封顶借记卡(扶持期)",
  10999. " HelpNonDirectQrDebitTradeAmt = $40, //非直营云闪付非封顶借记卡(扶持期)",
  11000. " HelpDirectNonQrDebitTradeAmt = $41, //直营非云闪付非封顶借记卡(扶持期)",
  11001. " HelpNonDirectNonQrDebitTradeAmt = $42, //非直营非云闪付非封顶借记卡(扶持期)",
  11002. " TopUserId = $43, //顶级创客",
  11003. "});"
  11004. ]
  11005. },"删除某个交易日汇总": {
  11006. "prefix": "ym-db-TradeDaySummary-Delete",
  11007. "body": [
  11008. "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  11009. "if ($1 != null)",
  11010. "{",
  11011. " db.TradeDaySummary.Remove($1);",
  11012. "}"
  11013. ]
  11014. },
  11015. "查询交易记录列表": {
  11016. "prefix": "ym-db-TradeRecord-Find",
  11017. "body": [
  11018. "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11019. "foreach (TradeRecord $3 in $1)",
  11020. "{",
  11021. "}"
  11022. ]
  11023. },
  11024. "查询交易记录列表,并取值": {
  11025. "prefix": "ym-db-TradeRecord-FindWithData",
  11026. "body": [
  11027. "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11028. "foreach (TradeRecord $3 in $1)",
  11029. "{",
  11030. " string RecordNo = $3.RecordNo; //单号",
  11031. " int UserId = $3.UserId; //创客",
  11032. " int MerchantId = $3.MerchantId; //商户",
  11033. " string MerNo = $3.MerNo; //渠道商户编号",
  11034. " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户",
  11035. " int HelpMonthCount = $3.HelpMonthCount; //扶持第几个月",
  11036. " int MerBuddyType = $3.MerBuddyType; //商户创客类型",
  11037. " string SnNo = $3.SnNo; //渠道SN号",
  11038. " DateTime TradeDate = $3.TradeDate; //交易日期",
  11039. " DateTime ClearDate = $3.ClearDate; //清算日期",
  11040. " string TradeSerialNo = $3.TradeSerialNo; //交易流水号",
  11041. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  11042. " int BankCardType = $3.BankCardType; //银行卡类型",
  11043. " int QrPayFlag = $3.QrPayFlag; //云闪付标识",
  11044. " int CapFlag = $3.CapFlag; //借记卡封顶交易标志",
  11045. " ulong DirectFlag = $3.DirectFlag; //是否直营",
  11046. " int BrandId = $3.BrandId; //品牌",
  11047. " string Remark = $3.Remark; //备注",
  11048. " int TopUserId = $3.TopUserId; //顶级创客",
  11049. " int MerUserId = $3.MerUserId; //商户直属创客",
  11050. "}"
  11051. ]
  11052. },
  11053. "查询交易记录": {
  11054. "prefix": "ym-db-TradeRecord-Exist",
  11055. "body": [
  11056. "bool $1 = db.TradeRecord.Any(m => m.Id == $2);",
  11057. ]
  11058. },
  11059. "查询某个交易记录,并取值": {
  11060. "prefix": "ym-db-TradeRecord-FindByPrimaryKey",
  11061. "body": [
  11062. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  11063. "if ($1 != null)",
  11064. "{",
  11065. " string RecordNo = $1.RecordNo; //单号",
  11066. " int UserId = $1.UserId; //创客",
  11067. " int MerchantId = $1.MerchantId; //商户",
  11068. " string MerNo = $1.MerNo; //渠道商户编号",
  11069. " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户",
  11070. " int HelpMonthCount = $1.HelpMonthCount; //扶持第几个月",
  11071. " int MerBuddyType = $1.MerBuddyType; //商户创客类型",
  11072. " string SnNo = $1.SnNo; //渠道SN号",
  11073. " DateTime TradeDate = $1.TradeDate; //交易日期",
  11074. " DateTime ClearDate = $1.ClearDate; //清算日期",
  11075. " string TradeSerialNo = $1.TradeSerialNo; //交易流水号",
  11076. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  11077. " int BankCardType = $1.BankCardType; //银行卡类型",
  11078. " int QrPayFlag = $1.QrPayFlag; //云闪付标识",
  11079. " int CapFlag = $1.CapFlag; //借记卡封顶交易标志",
  11080. " ulong DirectFlag = $1.DirectFlag; //是否直营",
  11081. " int BrandId = $1.BrandId; //品牌",
  11082. " string Remark = $1.Remark; //备注",
  11083. " int TopUserId = $1.TopUserId; //顶级创客",
  11084. " int MerUserId = $1.MerUserId; //商户直属创客",
  11085. "}"
  11086. ]
  11087. },
  11088. "查询某个交易记录,并赋值": {
  11089. "prefix": "ym-db-TradeRecord-Update",
  11090. "body": [
  11091. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  11092. "if ($1 != null)",
  11093. "{",
  11094. " $1.RecordNo = $2; //单号",
  11095. " $1.UserId = $3; //创客",
  11096. " $1.MerchantId = $4; //商户",
  11097. " $1.MerNo = $5; //渠道商户编号",
  11098. " $1.MerHelpFlag = $6; //是否属于扶持周期内商户",
  11099. " $1.HelpMonthCount = $7; //扶持第几个月",
  11100. " $1.MerBuddyType = $8; //商户创客类型",
  11101. " $1.SnNo = $9; //渠道SN号",
  11102. " $1.TradeDate = $10; //交易日期",
  11103. " $1.ClearDate = $11; //清算日期",
  11104. " $1.TradeSerialNo = $12; //交易流水号",
  11105. " $1.TradeAmount = $13; //交易金额",
  11106. " $1.BankCardType = $14; //银行卡类型",
  11107. " $1.QrPayFlag = $15; //云闪付标识",
  11108. " $1.CapFlag = $16; //借记卡封顶交易标志",
  11109. " $1.DirectFlag = $17; //是否直营",
  11110. " $1.BrandId = $18; //品牌",
  11111. " $1.Remark = $19; //备注",
  11112. " $1.TopUserId = $20; //顶级创客",
  11113. " $1.MerUserId = $21; //商户直属创客",
  11114. "}"
  11115. ]
  11116. },
  11117. "获取交易记录数量": {
  11118. "prefix": "ym-db-TradeRecord-FindAndCount",
  11119. "body": [
  11120. "int $1 = db.TradeRecord.Count(m => $2);",
  11121. ]
  11122. },
  11123. "添加交易记录": {
  11124. "prefix": "ym-db-TradeRecord-Create",
  11125. "body": [
  11126. "db.TradeRecord.Add(new TradeRecord()",
  11127. "{",
  11128. " CreateDate = DateTime.Now,",
  11129. " UpdateDate = DateTime.Now,",
  11130. " RecordNo = $1, //单号",
  11131. " UserId = $2, //创客",
  11132. " MerchantId = $3, //商户",
  11133. " MerNo = $4, //渠道商户编号",
  11134. " MerHelpFlag = $5, //是否属于扶持周期内商户",
  11135. " HelpMonthCount = $6, //扶持第几个月",
  11136. " MerBuddyType = $7, //商户创客类型",
  11137. " SnNo = $8, //渠道SN号",
  11138. " TradeDate = $9, //交易日期",
  11139. " ClearDate = $10, //清算日期",
  11140. " TradeSerialNo = $11, //交易流水号",
  11141. " TradeAmount = $12, //交易金额",
  11142. " BankCardType = $13, //银行卡类型",
  11143. " QrPayFlag = $14, //云闪付标识",
  11144. " CapFlag = $15, //借记卡封顶交易标志",
  11145. " DirectFlag = $16, //是否直营",
  11146. " BrandId = $17, //品牌",
  11147. " Remark = $18, //备注",
  11148. " TopUserId = $19, //顶级创客",
  11149. " MerUserId = $20, //商户直属创客",
  11150. "});"
  11151. ]
  11152. },"删除某个交易记录": {
  11153. "prefix": "ym-db-TradeRecord-Delete",
  11154. "body": [
  11155. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  11156. "if ($1 != null)",
  11157. "{",
  11158. " db.TradeRecord.Remove($1);",
  11159. "}"
  11160. ]
  11161. },
  11162. "查询上传配置项列表": {
  11163. "prefix": "ym-db-UploadParams-Find",
  11164. "body": [
  11165. "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11166. "foreach (UploadParams $3 in $1)",
  11167. "{",
  11168. "}"
  11169. ]
  11170. },
  11171. "查询上传配置项列表,并取值": {
  11172. "prefix": "ym-db-UploadParams-FindWithData",
  11173. "body": [
  11174. "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11175. "foreach (UploadParams $3 in $1)",
  11176. "{",
  11177. " string TableName = $3.TableName; //表名",
  11178. " string ColumnName = $3.ColumnName; //字段名",
  11179. " string ColumnEnName = $3.ColumnEnName; //字段英文明",
  11180. " string ParamString = $3.ParamString; //参数",
  11181. " string TableEnName = $3.TableEnName; //表英文名",
  11182. "}"
  11183. ]
  11184. },
  11185. "查询上传配置项": {
  11186. "prefix": "ym-db-UploadParams-Exist",
  11187. "body": [
  11188. "bool $1 = db.UploadParams.Any(m => m.Id == $2);",
  11189. ]
  11190. },
  11191. "查询某个上传配置项,并取值": {
  11192. "prefix": "ym-db-UploadParams-FindByPrimaryKey",
  11193. "body": [
  11194. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  11195. "if ($1 != null)",
  11196. "{",
  11197. " string TableName = $1.TableName; //表名",
  11198. " string ColumnName = $1.ColumnName; //字段名",
  11199. " string ColumnEnName = $1.ColumnEnName; //字段英文明",
  11200. " string ParamString = $1.ParamString; //参数",
  11201. " string TableEnName = $1.TableEnName; //表英文名",
  11202. "}"
  11203. ]
  11204. },
  11205. "查询某个上传配置项,并赋值": {
  11206. "prefix": "ym-db-UploadParams-Update",
  11207. "body": [
  11208. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  11209. "if ($1 != null)",
  11210. "{",
  11211. " $1.TableName = $2; //表名",
  11212. " $1.ColumnName = $3; //字段名",
  11213. " $1.ColumnEnName = $4; //字段英文明",
  11214. " $1.ParamString = $5; //参数",
  11215. " $1.TableEnName = $6; //表英文名",
  11216. "}"
  11217. ]
  11218. },
  11219. "获取上传配置项数量": {
  11220. "prefix": "ym-db-UploadParams-FindAndCount",
  11221. "body": [
  11222. "int $1 = db.UploadParams.Count(m => $2);",
  11223. ]
  11224. },
  11225. "添加上传配置项": {
  11226. "prefix": "ym-db-UploadParams-Create",
  11227. "body": [
  11228. "db.UploadParams.Add(new UploadParams()",
  11229. "{",
  11230. " CreateDate = DateTime.Now,",
  11231. " UpdateDate = DateTime.Now,",
  11232. " TableName = $1, //表名",
  11233. " ColumnName = $2, //字段名",
  11234. " ColumnEnName = $3, //字段英文明",
  11235. " ParamString = $4, //参数",
  11236. " TableEnName = $5, //表英文名",
  11237. "});"
  11238. ]
  11239. },"删除某个上传配置项": {
  11240. "prefix": "ym-db-UploadParams-Delete",
  11241. "body": [
  11242. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  11243. "if ($1 != null)",
  11244. "{",
  11245. " db.UploadParams.Remove($1);",
  11246. "}"
  11247. ]
  11248. },
  11249. "查询创客账户列表": {
  11250. "prefix": "ym-db-UserAccount-Find",
  11251. "body": [
  11252. "List<UserAccount> $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11253. "foreach (UserAccount $3 in $1)",
  11254. "{",
  11255. "}"
  11256. ]
  11257. },
  11258. "查询创客账户列表,并取值": {
  11259. "prefix": "ym-db-UserAccount-FindWithData",
  11260. "body": [
  11261. "List<UserAccount> $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11262. "foreach (UserAccount $3 in $1)",
  11263. "{",
  11264. " int UserId = $3.UserId; //创客",
  11265. " int UserType = $3.UserType; //创客类型",
  11266. " int UserProperty = $3.UserProperty; //创客属性",
  11267. " decimal TotalAmount = $3.TotalAmount; //总金额",
  11268. " decimal FreezeAmount = $3.FreezeAmount; //冻结金额",
  11269. " decimal BalanceAmount = $3.BalanceAmount; //余额",
  11270. " int AccountStatus = $3.AccountStatus; //账户状态",
  11271. " int LockStatus = $3.LockStatus; //锁定状态",
  11272. " decimal WithdrawAmount = $3.WithdrawAmount; //已提现金额",
  11273. "}"
  11274. ]
  11275. },
  11276. "查询创客账户": {
  11277. "prefix": "ym-db-UserAccount-Exist",
  11278. "body": [
  11279. "bool $1 = db.UserAccount.Any(m => m.Id == $2);",
  11280. ]
  11281. },
  11282. "查询某个创客账户,并取值": {
  11283. "prefix": "ym-db-UserAccount-FindByPrimaryKey",
  11284. "body": [
  11285. "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
  11286. "if ($1 != null)",
  11287. "{",
  11288. " int UserId = $1.UserId; //创客",
  11289. " int UserType = $1.UserType; //创客类型",
  11290. " int UserProperty = $1.UserProperty; //创客属性",
  11291. " decimal TotalAmount = $1.TotalAmount; //总金额",
  11292. " decimal FreezeAmount = $1.FreezeAmount; //冻结金额",
  11293. " decimal BalanceAmount = $1.BalanceAmount; //余额",
  11294. " int AccountStatus = $1.AccountStatus; //账户状态",
  11295. " int LockStatus = $1.LockStatus; //锁定状态",
  11296. " decimal WithdrawAmount = $1.WithdrawAmount; //已提现金额",
  11297. "}"
  11298. ]
  11299. },
  11300. "查询某个创客账户,并赋值": {
  11301. "prefix": "ym-db-UserAccount-Update",
  11302. "body": [
  11303. "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
  11304. "if ($1 != null)",
  11305. "{",
  11306. " $1.UserId = $2; //创客",
  11307. " $1.UserType = $3; //创客类型",
  11308. " $1.UserProperty = $4; //创客属性",
  11309. " $1.TotalAmount = $5; //总金额",
  11310. " $1.FreezeAmount = $6; //冻结金额",
  11311. " $1.BalanceAmount = $7; //余额",
  11312. " $1.AccountStatus = $8; //账户状态",
  11313. " $1.LockStatus = $9; //锁定状态",
  11314. " $1.WithdrawAmount = $10; //已提现金额",
  11315. "}"
  11316. ]
  11317. },
  11318. "获取创客账户数量": {
  11319. "prefix": "ym-db-UserAccount-FindAndCount",
  11320. "body": [
  11321. "int $1 = db.UserAccount.Count(m => $2);",
  11322. ]
  11323. },
  11324. "添加创客账户": {
  11325. "prefix": "ym-db-UserAccount-Create",
  11326. "body": [
  11327. "db.UserAccount.Add(new UserAccount()",
  11328. "{",
  11329. " CreateDate = DateTime.Now,",
  11330. " UpdateDate = DateTime.Now,",
  11331. " UserId = $1, //创客",
  11332. " UserType = $2, //创客类型",
  11333. " UserProperty = $3, //创客属性",
  11334. " TotalAmount = $4, //总金额",
  11335. " FreezeAmount = $5, //冻结金额",
  11336. " BalanceAmount = $6, //余额",
  11337. " AccountStatus = $7, //账户状态",
  11338. " LockStatus = $8, //锁定状态",
  11339. " WithdrawAmount = $9, //已提现金额",
  11340. "});"
  11341. ]
  11342. },"删除某个创客账户": {
  11343. "prefix": "ym-db-UserAccount-Delete",
  11344. "body": [
  11345. "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
  11346. "if ($1 != null)",
  11347. "{",
  11348. " db.UserAccount.Remove($1);",
  11349. "}"
  11350. ]
  11351. },
  11352. "查询创客账户变动记录列表": {
  11353. "prefix": "ym-db-UserAccountRecord-Find",
  11354. "body": [
  11355. "List<UserAccountRecord> $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11356. "foreach (UserAccountRecord $3 in $1)",
  11357. "{",
  11358. "}"
  11359. ]
  11360. },
  11361. "查询创客账户变动记录列表,并取值": {
  11362. "prefix": "ym-db-UserAccountRecord-FindWithData",
  11363. "body": [
  11364. "List<UserAccountRecord> $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11365. "foreach (UserAccountRecord $3 in $1)",
  11366. "{",
  11367. " int UserId = $3.UserId; //创客",
  11368. " int ChangeType = $3.ChangeType; //变动类型",
  11369. " int ProductType = $3.ProductType; //产品类型",
  11370. " decimal ChangeAmount = $3.ChangeAmount; //变更金额",
  11371. " decimal BeforeTotalAmount = $3.BeforeTotalAmount; //变更前总金额",
  11372. " decimal AfterTotalAmount = $3.AfterTotalAmount; //变更后总金额",
  11373. " decimal BeforeFreezeAmount = $3.BeforeFreezeAmount; //变更前冻结金额",
  11374. " decimal AfterFreezeAmount = $3.AfterFreezeAmount; //变更后冻结金额",
  11375. " decimal BeforeBalanceAmount = $3.BeforeBalanceAmount; //变更前余额",
  11376. " decimal AfterBalanceAmount = $3.AfterBalanceAmount; //变更后余额",
  11377. " string Remark = $3.Remark; //账户变动明细备注信息",
  11378. " string TransRecordNo = $3.TransRecordNo; //交易流水编号",
  11379. "}"
  11380. ]
  11381. },
  11382. "查询创客账户变动记录": {
  11383. "prefix": "ym-db-UserAccountRecord-Exist",
  11384. "body": [
  11385. "bool $1 = db.UserAccountRecord.Any(m => m.Id == $2);",
  11386. ]
  11387. },
  11388. "查询某个创客账户变动记录,并取值": {
  11389. "prefix": "ym-db-UserAccountRecord-FindByPrimaryKey",
  11390. "body": [
  11391. "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
  11392. "if ($1 != null)",
  11393. "{",
  11394. " int UserId = $1.UserId; //创客",
  11395. " int ChangeType = $1.ChangeType; //变动类型",
  11396. " int ProductType = $1.ProductType; //产品类型",
  11397. " decimal ChangeAmount = $1.ChangeAmount; //变更金额",
  11398. " decimal BeforeTotalAmount = $1.BeforeTotalAmount; //变更前总金额",
  11399. " decimal AfterTotalAmount = $1.AfterTotalAmount; //变更后总金额",
  11400. " decimal BeforeFreezeAmount = $1.BeforeFreezeAmount; //变更前冻结金额",
  11401. " decimal AfterFreezeAmount = $1.AfterFreezeAmount; //变更后冻结金额",
  11402. " decimal BeforeBalanceAmount = $1.BeforeBalanceAmount; //变更前余额",
  11403. " decimal AfterBalanceAmount = $1.AfterBalanceAmount; //变更后余额",
  11404. " string Remark = $1.Remark; //账户变动明细备注信息",
  11405. " string TransRecordNo = $1.TransRecordNo; //交易流水编号",
  11406. "}"
  11407. ]
  11408. },
  11409. "查询某个创客账户变动记录,并赋值": {
  11410. "prefix": "ym-db-UserAccountRecord-Update",
  11411. "body": [
  11412. "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
  11413. "if ($1 != null)",
  11414. "{",
  11415. " $1.UserId = $2; //创客",
  11416. " $1.ChangeType = $3; //变动类型",
  11417. " $1.ProductType = $4; //产品类型",
  11418. " $1.ChangeAmount = $5; //变更金额",
  11419. " $1.BeforeTotalAmount = $6; //变更前总金额",
  11420. " $1.AfterTotalAmount = $7; //变更后总金额",
  11421. " $1.BeforeFreezeAmount = $8; //变更前冻结金额",
  11422. " $1.AfterFreezeAmount = $9; //变更后冻结金额",
  11423. " $1.BeforeBalanceAmount = $10; //变更前余额",
  11424. " $1.AfterBalanceAmount = $11; //变更后余额",
  11425. " $1.Remark = $12; //账户变动明细备注信息",
  11426. " $1.TransRecordNo = $13; //交易流水编号",
  11427. "}"
  11428. ]
  11429. },
  11430. "获取创客账户变动记录数量": {
  11431. "prefix": "ym-db-UserAccountRecord-FindAndCount",
  11432. "body": [
  11433. "int $1 = db.UserAccountRecord.Count(m => $2);",
  11434. ]
  11435. },
  11436. "添加创客账户变动记录": {
  11437. "prefix": "ym-db-UserAccountRecord-Create",
  11438. "body": [
  11439. "db.UserAccountRecord.Add(new UserAccountRecord()",
  11440. "{",
  11441. " CreateDate = DateTime.Now,",
  11442. " UpdateDate = DateTime.Now,",
  11443. " UserId = $1, //创客",
  11444. " ChangeType = $2, //变动类型",
  11445. " ProductType = $3, //产品类型",
  11446. " ChangeAmount = $4, //变更金额",
  11447. " BeforeTotalAmount = $5, //变更前总金额",
  11448. " AfterTotalAmount = $6, //变更后总金额",
  11449. " BeforeFreezeAmount = $7, //变更前冻结金额",
  11450. " AfterFreezeAmount = $8, //变更后冻结金额",
  11451. " BeforeBalanceAmount = $9, //变更前余额",
  11452. " AfterBalanceAmount = $10, //变更后余额",
  11453. " Remark = $11, //账户变动明细备注信息",
  11454. " TransRecordNo = $12, //交易流水编号",
  11455. "});"
  11456. ]
  11457. },"删除某个创客账户变动记录": {
  11458. "prefix": "ym-db-UserAccountRecord-Delete",
  11459. "body": [
  11460. "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
  11461. "if ($1 != null)",
  11462. "{",
  11463. " db.UserAccountRecord.Remove($1);",
  11464. "}"
  11465. ]
  11466. },
  11467. "查询创客收货地址列表": {
  11468. "prefix": "ym-db-UserAddress-Find",
  11469. "body": [
  11470. "List<UserAddress> $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11471. "foreach (UserAddress $3 in $1)",
  11472. "{",
  11473. "}"
  11474. ]
  11475. },
  11476. "查询创客收货地址列表,并取值": {
  11477. "prefix": "ym-db-UserAddress-FindWithData",
  11478. "body": [
  11479. "List<UserAddress> $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11480. "foreach (UserAddress $3 in $1)",
  11481. "{",
  11482. " string Address = $3.Address; //详细地址",
  11483. " string PostalCode = $3.PostalCode; //邮政编码",
  11484. " string RealName = $3.RealName; //收货人姓名",
  11485. " string Mobile = $3.Mobile; //手机号码",
  11486. " int UserId = $3.UserId; //所属创客Id",
  11487. " string Areas = $3.Areas; //所在地区",
  11488. " ulong IsDefault = $3.IsDefault; //是否默认",
  11489. "}"
  11490. ]
  11491. },
  11492. "查询创客收货地址": {
  11493. "prefix": "ym-db-UserAddress-Exist",
  11494. "body": [
  11495. "bool $1 = db.UserAddress.Any(m => m.Id == $2);",
  11496. ]
  11497. },
  11498. "查询某个创客收货地址,并取值": {
  11499. "prefix": "ym-db-UserAddress-FindByPrimaryKey",
  11500. "body": [
  11501. "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
  11502. "if ($1 != null)",
  11503. "{",
  11504. " string Address = $1.Address; //详细地址",
  11505. " string PostalCode = $1.PostalCode; //邮政编码",
  11506. " string RealName = $1.RealName; //收货人姓名",
  11507. " string Mobile = $1.Mobile; //手机号码",
  11508. " int UserId = $1.UserId; //所属创客Id",
  11509. " string Areas = $1.Areas; //所在地区",
  11510. " ulong IsDefault = $1.IsDefault; //是否默认",
  11511. "}"
  11512. ]
  11513. },
  11514. "查询某个创客收货地址,并赋值": {
  11515. "prefix": "ym-db-UserAddress-Update",
  11516. "body": [
  11517. "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
  11518. "if ($1 != null)",
  11519. "{",
  11520. " $1.Address = $2; //详细地址",
  11521. " $1.PostalCode = $3; //邮政编码",
  11522. " $1.RealName = $4; //收货人姓名",
  11523. " $1.Mobile = $5; //手机号码",
  11524. " $1.UserId = $6; //所属创客Id",
  11525. " $1.Areas = $7; //所在地区",
  11526. " $1.IsDefault = $8; //是否默认",
  11527. "}"
  11528. ]
  11529. },
  11530. "获取创客收货地址数量": {
  11531. "prefix": "ym-db-UserAddress-FindAndCount",
  11532. "body": [
  11533. "int $1 = db.UserAddress.Count(m => $2);",
  11534. ]
  11535. },
  11536. "添加创客收货地址": {
  11537. "prefix": "ym-db-UserAddress-Create",
  11538. "body": [
  11539. "db.UserAddress.Add(new UserAddress()",
  11540. "{",
  11541. " CreateDate = DateTime.Now,",
  11542. " UpdateDate = DateTime.Now,",
  11543. " Address = $1, //详细地址",
  11544. " PostalCode = $2, //邮政编码",
  11545. " RealName = $3, //收货人姓名",
  11546. " Mobile = $4, //手机号码",
  11547. " UserId = $5, //所属创客Id",
  11548. " Areas = $6, //所在地区",
  11549. " IsDefault = $7, //是否默认",
  11550. "});"
  11551. ]
  11552. },"删除某个创客收货地址": {
  11553. "prefix": "ym-db-UserAddress-Delete",
  11554. "body": [
  11555. "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
  11556. "if ($1 != null)",
  11557. "{",
  11558. " db.UserAddress.Remove($1);",
  11559. "}"
  11560. ]
  11561. },
  11562. "查询创客绑卡记录列表": {
  11563. "prefix": "ym-db-UserAuthRecord-Find",
  11564. "body": [
  11565. "List<UserAuthRecord> $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11566. "foreach (UserAuthRecord $3 in $1)",
  11567. "{",
  11568. "}"
  11569. ]
  11570. },
  11571. "查询创客绑卡记录列表,并取值": {
  11572. "prefix": "ym-db-UserAuthRecord-FindWithData",
  11573. "body": [
  11574. "List<UserAuthRecord> $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11575. "foreach (UserAuthRecord $3 in $1)",
  11576. "{",
  11577. " string ChannelCode = $3.ChannelCode; //渠道编码",
  11578. " string ChannelName = $3.ChannelName; //渠道名称",
  11579. " int UserId = $3.UserId; //创客",
  11580. " string RealName = $3.RealName; //真实姓名",
  11581. " string IdcardNo = $3.IdcardNo; //身份证号码",
  11582. " string BankCardAccount = $3.BankCardAccount; //银行卡账号",
  11583. " string BankName = $3.BankName; //银行名称",
  11584. " string BankMobile = $3.BankMobile; //银行预留手机号码",
  11585. " string ReqData = $3.ReqData; //请求数据",
  11586. " string ResData = $3.ResData; //响应数据",
  11587. " string ReturnCode = $3.ReturnCode; //返回编码",
  11588. " string ReturnMsg = $3.ReturnMsg; //返回信息",
  11589. " int AuthType = $3.AuthType; //实名类型",
  11590. "}"
  11591. ]
  11592. },
  11593. "查询创客绑卡记录": {
  11594. "prefix": "ym-db-UserAuthRecord-Exist",
  11595. "body": [
  11596. "bool $1 = db.UserAuthRecord.Any(m => m.Id == $2);",
  11597. ]
  11598. },
  11599. "查询某个创客绑卡记录,并取值": {
  11600. "prefix": "ym-db-UserAuthRecord-FindByPrimaryKey",
  11601. "body": [
  11602. "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
  11603. "if ($1 != null)",
  11604. "{",
  11605. " string ChannelCode = $1.ChannelCode; //渠道编码",
  11606. " string ChannelName = $1.ChannelName; //渠道名称",
  11607. " int UserId = $1.UserId; //创客",
  11608. " string RealName = $1.RealName; //真实姓名",
  11609. " string IdcardNo = $1.IdcardNo; //身份证号码",
  11610. " string BankCardAccount = $1.BankCardAccount; //银行卡账号",
  11611. " string BankName = $1.BankName; //银行名称",
  11612. " string BankMobile = $1.BankMobile; //银行预留手机号码",
  11613. " string ReqData = $1.ReqData; //请求数据",
  11614. " string ResData = $1.ResData; //响应数据",
  11615. " string ReturnCode = $1.ReturnCode; //返回编码",
  11616. " string ReturnMsg = $1.ReturnMsg; //返回信息",
  11617. " int AuthType = $1.AuthType; //实名类型",
  11618. "}"
  11619. ]
  11620. },
  11621. "查询某个创客绑卡记录,并赋值": {
  11622. "prefix": "ym-db-UserAuthRecord-Update",
  11623. "body": [
  11624. "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
  11625. "if ($1 != null)",
  11626. "{",
  11627. " $1.ChannelCode = $2; //渠道编码",
  11628. " $1.ChannelName = $3; //渠道名称",
  11629. " $1.UserId = $4; //创客",
  11630. " $1.RealName = $5; //真实姓名",
  11631. " $1.IdcardNo = $6; //身份证号码",
  11632. " $1.BankCardAccount = $7; //银行卡账号",
  11633. " $1.BankName = $8; //银行名称",
  11634. " $1.BankMobile = $9; //银行预留手机号码",
  11635. " $1.ReqData = $10; //请求数据",
  11636. " $1.ResData = $11; //响应数据",
  11637. " $1.ReturnCode = $12; //返回编码",
  11638. " $1.ReturnMsg = $13; //返回信息",
  11639. " $1.AuthType = $14; //实名类型",
  11640. "}"
  11641. ]
  11642. },
  11643. "获取创客绑卡记录数量": {
  11644. "prefix": "ym-db-UserAuthRecord-FindAndCount",
  11645. "body": [
  11646. "int $1 = db.UserAuthRecord.Count(m => $2);",
  11647. ]
  11648. },
  11649. "添加创客绑卡记录": {
  11650. "prefix": "ym-db-UserAuthRecord-Create",
  11651. "body": [
  11652. "db.UserAuthRecord.Add(new UserAuthRecord()",
  11653. "{",
  11654. " CreateDate = DateTime.Now,",
  11655. " UpdateDate = DateTime.Now,",
  11656. " ChannelCode = $1, //渠道编码",
  11657. " ChannelName = $2, //渠道名称",
  11658. " UserId = $3, //创客",
  11659. " RealName = $4, //真实姓名",
  11660. " IdcardNo = $5, //身份证号码",
  11661. " BankCardAccount = $6, //银行卡账号",
  11662. " BankName = $7, //银行名称",
  11663. " BankMobile = $8, //银行预留手机号码",
  11664. " ReqData = $9, //请求数据",
  11665. " ResData = $10, //响应数据",
  11666. " ReturnCode = $11, //返回编码",
  11667. " ReturnMsg = $12, //返回信息",
  11668. " AuthType = $13, //实名类型",
  11669. "});"
  11670. ]
  11671. },"删除某个创客绑卡记录": {
  11672. "prefix": "ym-db-UserAuthRecord-Delete",
  11673. "body": [
  11674. "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
  11675. "if ($1 != null)",
  11676. "{",
  11677. " db.UserAuthRecord.Remove($1);",
  11678. "}"
  11679. ]
  11680. },
  11681. "查询创客反馈列表": {
  11682. "prefix": "ym-db-UserBack-Find",
  11683. "body": [
  11684. "List<UserBack> $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11685. "foreach (UserBack $3 in $1)",
  11686. "{",
  11687. "}"
  11688. ]
  11689. },
  11690. "查询创客反馈列表,并取值": {
  11691. "prefix": "ym-db-UserBack-FindWithData",
  11692. "body": [
  11693. "List<UserBack> $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11694. "foreach (UserBack $3 in $1)",
  11695. "{",
  11696. " int UserId = $3.UserId; //创客",
  11697. " string Content = $3.Content; //回复内容",
  11698. " ulong IsPhoneCallBack = $3.IsPhoneCallBack; //是否需要电话回复",
  11699. " int BackKind = $3.BackKind; //反馈类型",
  11700. " string ReplyContent = $3.ReplyContent; //后台回复内容",
  11701. " int BackStatus = $3.BackStatus; //回复状态",
  11702. "}"
  11703. ]
  11704. },
  11705. "查询创客反馈": {
  11706. "prefix": "ym-db-UserBack-Exist",
  11707. "body": [
  11708. "bool $1 = db.UserBack.Any(m => m.Id == $2);",
  11709. ]
  11710. },
  11711. "查询某个创客反馈,并取值": {
  11712. "prefix": "ym-db-UserBack-FindByPrimaryKey",
  11713. "body": [
  11714. "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
  11715. "if ($1 != null)",
  11716. "{",
  11717. " int UserId = $1.UserId; //创客",
  11718. " string Content = $1.Content; //回复内容",
  11719. " ulong IsPhoneCallBack = $1.IsPhoneCallBack; //是否需要电话回复",
  11720. " int BackKind = $1.BackKind; //反馈类型",
  11721. " string ReplyContent = $1.ReplyContent; //后台回复内容",
  11722. " int BackStatus = $1.BackStatus; //回复状态",
  11723. "}"
  11724. ]
  11725. },
  11726. "查询某个创客反馈,并赋值": {
  11727. "prefix": "ym-db-UserBack-Update",
  11728. "body": [
  11729. "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
  11730. "if ($1 != null)",
  11731. "{",
  11732. " $1.UserId = $2; //创客",
  11733. " $1.Content = $3; //回复内容",
  11734. " $1.IsPhoneCallBack = $4; //是否需要电话回复",
  11735. " $1.BackKind = $5; //反馈类型",
  11736. " $1.ReplyContent = $6; //后台回复内容",
  11737. " $1.BackStatus = $7; //回复状态",
  11738. "}"
  11739. ]
  11740. },
  11741. "获取创客反馈数量": {
  11742. "prefix": "ym-db-UserBack-FindAndCount",
  11743. "body": [
  11744. "int $1 = db.UserBack.Count(m => $2);",
  11745. ]
  11746. },
  11747. "添加创客反馈": {
  11748. "prefix": "ym-db-UserBack-Create",
  11749. "body": [
  11750. "db.UserBack.Add(new UserBack()",
  11751. "{",
  11752. " CreateDate = DateTime.Now,",
  11753. " UpdateDate = DateTime.Now,",
  11754. " UserId = $1, //创客",
  11755. " Content = $2, //回复内容",
  11756. " IsPhoneCallBack = $3, //是否需要电话回复",
  11757. " BackKind = $4, //反馈类型",
  11758. " ReplyContent = $5, //后台回复内容",
  11759. " BackStatus = $6, //回复状态",
  11760. "});"
  11761. ]
  11762. },"删除某个创客反馈": {
  11763. "prefix": "ym-db-UserBack-Delete",
  11764. "body": [
  11765. "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
  11766. "if ($1 != null)",
  11767. "{",
  11768. " db.UserBack.Remove($1);",
  11769. "}"
  11770. ]
  11771. },
  11772. "查询创客反馈类型列表": {
  11773. "prefix": "ym-db-UserBackKind-Find",
  11774. "body": [
  11775. "List<UserBackKind> $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11776. "foreach (UserBackKind $3 in $1)",
  11777. "{",
  11778. "}"
  11779. ]
  11780. },
  11781. "查询创客反馈类型列表,并取值": {
  11782. "prefix": "ym-db-UserBackKind-FindWithData",
  11783. "body": [
  11784. "List<UserBackKind> $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11785. "foreach (UserBackKind $3 in $1)",
  11786. "{",
  11787. " string Name = $3.Name; //名称",
  11788. "}"
  11789. ]
  11790. },
  11791. "查询创客反馈类型": {
  11792. "prefix": "ym-db-UserBackKind-Exist",
  11793. "body": [
  11794. "bool $1 = db.UserBackKind.Any(m => m.Id == $2);",
  11795. ]
  11796. },
  11797. "查询某个创客反馈类型,并取值": {
  11798. "prefix": "ym-db-UserBackKind-FindByPrimaryKey",
  11799. "body": [
  11800. "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
  11801. "if ($1 != null)",
  11802. "{",
  11803. " string Name = $1.Name; //名称",
  11804. "}"
  11805. ]
  11806. },
  11807. "查询某个创客反馈类型,并赋值": {
  11808. "prefix": "ym-db-UserBackKind-Update",
  11809. "body": [
  11810. "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
  11811. "if ($1 != null)",
  11812. "{",
  11813. " $1.Name = $2; //名称",
  11814. "}"
  11815. ]
  11816. },
  11817. "获取创客反馈类型数量": {
  11818. "prefix": "ym-db-UserBackKind-FindAndCount",
  11819. "body": [
  11820. "int $1 = db.UserBackKind.Count(m => $2);",
  11821. ]
  11822. },
  11823. "添加创客反馈类型": {
  11824. "prefix": "ym-db-UserBackKind-Create",
  11825. "body": [
  11826. "db.UserBackKind.Add(new UserBackKind()",
  11827. "{",
  11828. " CreateDate = DateTime.Now,",
  11829. " UpdateDate = DateTime.Now,",
  11830. " Name = $1, //名称",
  11831. "});"
  11832. ]
  11833. },"删除某个创客反馈类型": {
  11834. "prefix": "ym-db-UserBackKind-Delete",
  11835. "body": [
  11836. "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
  11837. "if ($1 != null)",
  11838. "{",
  11839. " db.UserBackKind.Remove($1);",
  11840. "}"
  11841. ]
  11842. },
  11843. "查询创客收益排行列表": {
  11844. "prefix": "ym-db-UserBalanceTop-Find",
  11845. "body": [
  11846. "List<UserBalanceTop> $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11847. "foreach (UserBalanceTop $3 in $1)",
  11848. "{",
  11849. "}"
  11850. ]
  11851. },
  11852. "查询创客收益排行列表,并取值": {
  11853. "prefix": "ym-db-UserBalanceTop-FindWithData",
  11854. "body": [
  11855. "List<UserBalanceTop> $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11856. "foreach (UserBalanceTop $3 in $1)",
  11857. "{",
  11858. " int UserId = $3.UserId; //创客",
  11859. " decimal Balance = $3.Balance; //收益金额",
  11860. " string StatDate = $3.StatDate; //统计日",
  11861. " string StatMonth = $3.StatMonth; //统计月",
  11862. "}"
  11863. ]
  11864. },
  11865. "查询创客收益排行": {
  11866. "prefix": "ym-db-UserBalanceTop-Exist",
  11867. "body": [
  11868. "bool $1 = db.UserBalanceTop.Any(m => m.Id == $2);",
  11869. ]
  11870. },
  11871. "查询某个创客收益排行,并取值": {
  11872. "prefix": "ym-db-UserBalanceTop-FindByPrimaryKey",
  11873. "body": [
  11874. "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
  11875. "if ($1 != null)",
  11876. "{",
  11877. " int UserId = $1.UserId; //创客",
  11878. " decimal Balance = $1.Balance; //收益金额",
  11879. " string StatDate = $1.StatDate; //统计日",
  11880. " string StatMonth = $1.StatMonth; //统计月",
  11881. "}"
  11882. ]
  11883. },
  11884. "查询某个创客收益排行,并赋值": {
  11885. "prefix": "ym-db-UserBalanceTop-Update",
  11886. "body": [
  11887. "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
  11888. "if ($1 != null)",
  11889. "{",
  11890. " $1.UserId = $2; //创客",
  11891. " $1.Balance = $3; //收益金额",
  11892. " $1.StatDate = $4; //统计日",
  11893. " $1.StatMonth = $5; //统计月",
  11894. "}"
  11895. ]
  11896. },
  11897. "获取创客收益排行数量": {
  11898. "prefix": "ym-db-UserBalanceTop-FindAndCount",
  11899. "body": [
  11900. "int $1 = db.UserBalanceTop.Count(m => $2);",
  11901. ]
  11902. },
  11903. "添加创客收益排行": {
  11904. "prefix": "ym-db-UserBalanceTop-Create",
  11905. "body": [
  11906. "db.UserBalanceTop.Add(new UserBalanceTop()",
  11907. "{",
  11908. " CreateDate = DateTime.Now,",
  11909. " UpdateDate = DateTime.Now,",
  11910. " UserId = $1, //创客",
  11911. " Balance = $2, //收益金额",
  11912. " StatDate = $3, //统计日",
  11913. " StatMonth = $4, //统计月",
  11914. "});"
  11915. ]
  11916. },"删除某个创客收益排行": {
  11917. "prefix": "ym-db-UserBalanceTop-Delete",
  11918. "body": [
  11919. "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
  11920. "if ($1 != null)",
  11921. "{",
  11922. " db.UserBalanceTop.Remove($1);",
  11923. "}"
  11924. ]
  11925. },
  11926. "查询创客购物车列表": {
  11927. "prefix": "ym-db-UserCar-Find",
  11928. "body": [
  11929. "List<UserCar> $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11930. "foreach (UserCar $3 in $1)",
  11931. "{",
  11932. "}"
  11933. ]
  11934. },
  11935. "查询创客购物车列表,并取值": {
  11936. "prefix": "ym-db-UserCar-FindWithData",
  11937. "body": [
  11938. "List<UserCar> $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11939. "foreach (UserCar $3 in $1)",
  11940. "{",
  11941. " int UserId = $3.UserId; //创客Id",
  11942. " int ProductId = $3.ProductId; //商品Id",
  11943. " int BuyCount = $3.BuyCount; //购买数量",
  11944. " int MerchantId = $3.MerchantId; //商家Id",
  11945. " int NormId = $3.NormId; //规格Id",
  11946. "}"
  11947. ]
  11948. },
  11949. "查询创客购物车": {
  11950. "prefix": "ym-db-UserCar-Exist",
  11951. "body": [
  11952. "bool $1 = db.UserCar.Any(m => m.Id == $2);",
  11953. ]
  11954. },
  11955. "查询某个创客购物车,并取值": {
  11956. "prefix": "ym-db-UserCar-FindByPrimaryKey",
  11957. "body": [
  11958. "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
  11959. "if ($1 != null)",
  11960. "{",
  11961. " int UserId = $1.UserId; //创客Id",
  11962. " int ProductId = $1.ProductId; //商品Id",
  11963. " int BuyCount = $1.BuyCount; //购买数量",
  11964. " int MerchantId = $1.MerchantId; //商家Id",
  11965. " int NormId = $1.NormId; //规格Id",
  11966. "}"
  11967. ]
  11968. },
  11969. "查询某个创客购物车,并赋值": {
  11970. "prefix": "ym-db-UserCar-Update",
  11971. "body": [
  11972. "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
  11973. "if ($1 != null)",
  11974. "{",
  11975. " $1.UserId = $2; //创客Id",
  11976. " $1.ProductId = $3; //商品Id",
  11977. " $1.BuyCount = $4; //购买数量",
  11978. " $1.MerchantId = $5; //商家Id",
  11979. " $1.NormId = $6; //规格Id",
  11980. "}"
  11981. ]
  11982. },
  11983. "获取创客购物车数量": {
  11984. "prefix": "ym-db-UserCar-FindAndCount",
  11985. "body": [
  11986. "int $1 = db.UserCar.Count(m => $2);",
  11987. ]
  11988. },
  11989. "添加创客购物车": {
  11990. "prefix": "ym-db-UserCar-Create",
  11991. "body": [
  11992. "db.UserCar.Add(new UserCar()",
  11993. "{",
  11994. " CreateDate = DateTime.Now,",
  11995. " UpdateDate = DateTime.Now,",
  11996. " UserId = $1, //创客Id",
  11997. " ProductId = $2, //商品Id",
  11998. " BuyCount = $3, //购买数量",
  11999. " MerchantId = $4, //商家Id",
  12000. " NormId = $5, //规格Id",
  12001. "});"
  12002. ]
  12003. },"删除某个创客购物车": {
  12004. "prefix": "ym-db-UserCar-Delete",
  12005. "body": [
  12006. "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
  12007. "if ($1 != null)",
  12008. "{",
  12009. " db.UserCar.Remove($1);",
  12010. "}"
  12011. ]
  12012. },
  12013. "查询提现记录列表": {
  12014. "prefix": "ym-db-UserCashRecord-Find",
  12015. "body": [
  12016. "List<UserCashRecord> $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12017. "foreach (UserCashRecord $3 in $1)",
  12018. "{",
  12019. "}"
  12020. ]
  12021. },
  12022. "查询提现记录列表,并取值": {
  12023. "prefix": "ym-db-UserCashRecord-FindWithData",
  12024. "body": [
  12025. "List<UserCashRecord> $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12026. "foreach (UserCashRecord $3 in $1)",
  12027. "{",
  12028. " string CashOrderNo = $3.CashOrderNo; //申请提现单号",
  12029. " int UserId = $3.UserId; //创客",
  12030. " string IdCardNo = $3.IdCardNo; //身份证号",
  12031. " string SettleBankCardNo = $3.SettleBankCardNo; //提现卡号",
  12032. " string SettleBankName = $3.SettleBankName; //银行名称",
  12033. " int TradeType = $3.TradeType; //交易类型",
  12034. " string PayTradeNo = $3.PayTradeNo; //提现服务交易流水号",
  12035. " string ChannelCode = $3.ChannelCode; //支付渠道编号",
  12036. " string ChanelName = $3.ChanelName; //支付渠道名称",
  12037. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  12038. " decimal ActualTradeAmount = $3.ActualTradeAmount; //实际交易金额",
  12039. " decimal TradeFee = $3.TradeFee; //交易手续费",
  12040. " decimal ManageFee = $3.ManageFee; //扣税金额",
  12041. " string ReqData = $3.ReqData; //请求数据",
  12042. " string ResData = $3.ResData; //响应数据",
  12043. " string ReturnCode = $3.ReturnCode; //返回编码",
  12044. " string ReturnMsg = $3.ReturnMsg; //返回信息",
  12045. " DateTime PaymentDate = $3.PaymentDate; //支付时间",
  12046. " string Ip = $3.Ip; //IP地址",
  12047. " string MediaSource = $3.MediaSource; //媒体来源",
  12048. " string Remark = $3.Remark; //备注",
  12049. "}"
  12050. ]
  12051. },
  12052. "查询提现记录": {
  12053. "prefix": "ym-db-UserCashRecord-Exist",
  12054. "body": [
  12055. "bool $1 = db.UserCashRecord.Any(m => m.Id == $2);",
  12056. ]
  12057. },
  12058. "查询某个提现记录,并取值": {
  12059. "prefix": "ym-db-UserCashRecord-FindByPrimaryKey",
  12060. "body": [
  12061. "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
  12062. "if ($1 != null)",
  12063. "{",
  12064. " string CashOrderNo = $1.CashOrderNo; //申请提现单号",
  12065. " int UserId = $1.UserId; //创客",
  12066. " string IdCardNo = $1.IdCardNo; //身份证号",
  12067. " string SettleBankCardNo = $1.SettleBankCardNo; //提现卡号",
  12068. " string SettleBankName = $1.SettleBankName; //银行名称",
  12069. " int TradeType = $1.TradeType; //交易类型",
  12070. " string PayTradeNo = $1.PayTradeNo; //提现服务交易流水号",
  12071. " string ChannelCode = $1.ChannelCode; //支付渠道编号",
  12072. " string ChanelName = $1.ChanelName; //支付渠道名称",
  12073. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  12074. " decimal ActualTradeAmount = $1.ActualTradeAmount; //实际交易金额",
  12075. " decimal TradeFee = $1.TradeFee; //交易手续费",
  12076. " decimal ManageFee = $1.ManageFee; //扣税金额",
  12077. " string ReqData = $1.ReqData; //请求数据",
  12078. " string ResData = $1.ResData; //响应数据",
  12079. " string ReturnCode = $1.ReturnCode; //返回编码",
  12080. " string ReturnMsg = $1.ReturnMsg; //返回信息",
  12081. " DateTime PaymentDate = $1.PaymentDate; //支付时间",
  12082. " string Ip = $1.Ip; //IP地址",
  12083. " string MediaSource = $1.MediaSource; //媒体来源",
  12084. " string Remark = $1.Remark; //备注",
  12085. "}"
  12086. ]
  12087. },
  12088. "查询某个提现记录,并赋值": {
  12089. "prefix": "ym-db-UserCashRecord-Update",
  12090. "body": [
  12091. "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
  12092. "if ($1 != null)",
  12093. "{",
  12094. " $1.CashOrderNo = $2; //申请提现单号",
  12095. " $1.UserId = $3; //创客",
  12096. " $1.IdCardNo = $4; //身份证号",
  12097. " $1.SettleBankCardNo = $5; //提现卡号",
  12098. " $1.SettleBankName = $6; //银行名称",
  12099. " $1.TradeType = $7; //交易类型",
  12100. " $1.PayTradeNo = $8; //提现服务交易流水号",
  12101. " $1.ChannelCode = $9; //支付渠道编号",
  12102. " $1.ChanelName = $10; //支付渠道名称",
  12103. " $1.TradeAmount = $11; //交易金额",
  12104. " $1.ActualTradeAmount = $12; //实际交易金额",
  12105. " $1.TradeFee = $13; //交易手续费",
  12106. " $1.ManageFee = $14; //扣税金额",
  12107. " $1.ReqData = $15; //请求数据",
  12108. " $1.ResData = $16; //响应数据",
  12109. " $1.ReturnCode = $17; //返回编码",
  12110. " $1.ReturnMsg = $18; //返回信息",
  12111. " $1.PaymentDate = $19; //支付时间",
  12112. " $1.Ip = $20; //IP地址",
  12113. " $1.MediaSource = $21; //媒体来源",
  12114. " $1.Remark = $22; //备注",
  12115. "}"
  12116. ]
  12117. },
  12118. "获取提现记录数量": {
  12119. "prefix": "ym-db-UserCashRecord-FindAndCount",
  12120. "body": [
  12121. "int $1 = db.UserCashRecord.Count(m => $2);",
  12122. ]
  12123. },
  12124. "添加提现记录": {
  12125. "prefix": "ym-db-UserCashRecord-Create",
  12126. "body": [
  12127. "db.UserCashRecord.Add(new UserCashRecord()",
  12128. "{",
  12129. " CreateDate = DateTime.Now,",
  12130. " UpdateDate = DateTime.Now,",
  12131. " CashOrderNo = $1, //申请提现单号",
  12132. " UserId = $2, //创客",
  12133. " IdCardNo = $3, //身份证号",
  12134. " SettleBankCardNo = $4, //提现卡号",
  12135. " SettleBankName = $5, //银行名称",
  12136. " TradeType = $6, //交易类型",
  12137. " PayTradeNo = $7, //提现服务交易流水号",
  12138. " ChannelCode = $8, //支付渠道编号",
  12139. " ChanelName = $9, //支付渠道名称",
  12140. " TradeAmount = $10, //交易金额",
  12141. " ActualTradeAmount = $11, //实际交易金额",
  12142. " TradeFee = $12, //交易手续费",
  12143. " ManageFee = $13, //扣税金额",
  12144. " ReqData = $14, //请求数据",
  12145. " ResData = $15, //响应数据",
  12146. " ReturnCode = $16, //返回编码",
  12147. " ReturnMsg = $17, //返回信息",
  12148. " PaymentDate = $18, //支付时间",
  12149. " Ip = $19, //IP地址",
  12150. " MediaSource = $20, //媒体来源",
  12151. " Remark = $21, //备注",
  12152. "});"
  12153. ]
  12154. },"删除某个提现记录": {
  12155. "prefix": "ym-db-UserCashRecord-Delete",
  12156. "body": [
  12157. "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
  12158. "if ($1 != null)",
  12159. "{",
  12160. " db.UserCashRecord.Remove($1);",
  12161. "}"
  12162. ]
  12163. },
  12164. "查询个人中心常用工具列表": {
  12165. "prefix": "ym-db-UserCenterIconList-Find",
  12166. "body": [
  12167. "List<UserCenterIconList> $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12168. "foreach (UserCenterIconList $3 in $1)",
  12169. "{",
  12170. "}"
  12171. ]
  12172. },
  12173. "查询个人中心常用工具列表,并取值": {
  12174. "prefix": "ym-db-UserCenterIconList-FindWithData",
  12175. "body": [
  12176. "List<UserCenterIconList> $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12177. "foreach (UserCenterIconList $3 in $1)",
  12178. "{",
  12179. " string Icon = $3.Icon; //图标",
  12180. " string Title = $3.Title; //标题",
  12181. " string Url = $3.Url; //跳转地址",
  12182. "}"
  12183. ]
  12184. },
  12185. "查询个人中心常用工具": {
  12186. "prefix": "ym-db-UserCenterIconList-Exist",
  12187. "body": [
  12188. "bool $1 = db.UserCenterIconList.Any(m => m.Id == $2);",
  12189. ]
  12190. },
  12191. "查询某个个人中心常用工具,并取值": {
  12192. "prefix": "ym-db-UserCenterIconList-FindByPrimaryKey",
  12193. "body": [
  12194. "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
  12195. "if ($1 != null)",
  12196. "{",
  12197. " string Icon = $1.Icon; //图标",
  12198. " string Title = $1.Title; //标题",
  12199. " string Url = $1.Url; //跳转地址",
  12200. "}"
  12201. ]
  12202. },
  12203. "查询某个个人中心常用工具,并赋值": {
  12204. "prefix": "ym-db-UserCenterIconList-Update",
  12205. "body": [
  12206. "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
  12207. "if ($1 != null)",
  12208. "{",
  12209. " $1.Icon = $2; //图标",
  12210. " $1.Title = $3; //标题",
  12211. " $1.Url = $4; //跳转地址",
  12212. "}"
  12213. ]
  12214. },
  12215. "获取个人中心常用工具数量": {
  12216. "prefix": "ym-db-UserCenterIconList-FindAndCount",
  12217. "body": [
  12218. "int $1 = db.UserCenterIconList.Count(m => $2);",
  12219. ]
  12220. },
  12221. "添加个人中心常用工具": {
  12222. "prefix": "ym-db-UserCenterIconList-Create",
  12223. "body": [
  12224. "db.UserCenterIconList.Add(new UserCenterIconList()",
  12225. "{",
  12226. " CreateDate = DateTime.Now,",
  12227. " UpdateDate = DateTime.Now,",
  12228. " Icon = $1, //图标",
  12229. " Title = $2, //标题",
  12230. " Url = $3, //跳转地址",
  12231. "});"
  12232. ]
  12233. },"删除某个个人中心常用工具": {
  12234. "prefix": "ym-db-UserCenterIconList-Delete",
  12235. "body": [
  12236. "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
  12237. "if ($1 != null)",
  12238. "{",
  12239. " db.UserCenterIconList.Remove($1);",
  12240. "}"
  12241. ]
  12242. },
  12243. "查询收藏列表": {
  12244. "prefix": "ym-db-UserCollection-Find",
  12245. "body": [
  12246. "List<UserCollection> $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12247. "foreach (UserCollection $3 in $1)",
  12248. "{",
  12249. "}"
  12250. ]
  12251. },
  12252. "查询收藏列表,并取值": {
  12253. "prefix": "ym-db-UserCollection-FindWithData",
  12254. "body": [
  12255. "List<UserCollection> $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12256. "foreach (UserCollection $3 in $1)",
  12257. "{",
  12258. " int DataId = $3.DataId; //数据Id",
  12259. " int Kind = $3.Kind; //类别",
  12260. " int UserId = $3.UserId; //创客Id",
  12261. "}"
  12262. ]
  12263. },
  12264. "查询收藏": {
  12265. "prefix": "ym-db-UserCollection-Exist",
  12266. "body": [
  12267. "bool $1 = db.UserCollection.Any(m => m.Id == $2);",
  12268. ]
  12269. },
  12270. "查询某个收藏,并取值": {
  12271. "prefix": "ym-db-UserCollection-FindByPrimaryKey",
  12272. "body": [
  12273. "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
  12274. "if ($1 != null)",
  12275. "{",
  12276. " int DataId = $1.DataId; //数据Id",
  12277. " int Kind = $1.Kind; //类别",
  12278. " int UserId = $1.UserId; //创客Id",
  12279. "}"
  12280. ]
  12281. },
  12282. "查询某个收藏,并赋值": {
  12283. "prefix": "ym-db-UserCollection-Update",
  12284. "body": [
  12285. "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
  12286. "if ($1 != null)",
  12287. "{",
  12288. " $1.DataId = $2; //数据Id",
  12289. " $1.Kind = $3; //类别",
  12290. " $1.UserId = $4; //创客Id",
  12291. "}"
  12292. ]
  12293. },
  12294. "获取收藏数量": {
  12295. "prefix": "ym-db-UserCollection-FindAndCount",
  12296. "body": [
  12297. "int $1 = db.UserCollection.Count(m => $2);",
  12298. ]
  12299. },
  12300. "添加收藏": {
  12301. "prefix": "ym-db-UserCollection-Create",
  12302. "body": [
  12303. "db.UserCollection.Add(new UserCollection()",
  12304. "{",
  12305. " CreateDate = DateTime.Now,",
  12306. " UpdateDate = DateTime.Now,",
  12307. " DataId = $1, //数据Id",
  12308. " Kind = $2, //类别",
  12309. " UserId = $3, //创客Id",
  12310. "});"
  12311. ]
  12312. },"删除某个收藏": {
  12313. "prefix": "ym-db-UserCollection-Delete",
  12314. "body": [
  12315. "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
  12316. "if ($1 != null)",
  12317. "{",
  12318. " db.UserCollection.Remove($1);",
  12319. "}"
  12320. ]
  12321. },
  12322. "查询创客数据列表": {
  12323. "prefix": "ym-db-UserData-Find",
  12324. "body": [
  12325. "List<UserData> $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12326. "foreach (UserData $3 in $1)",
  12327. "{",
  12328. "}"
  12329. ]
  12330. },
  12331. "查询创客数据列表,并取值": {
  12332. "prefix": "ym-db-UserData-FindWithData",
  12333. "body": [
  12334. "List<UserData> $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12335. "foreach (UserData $3 in $1)",
  12336. "{",
  12337. " int UserId = $3.UserId; //创客Id",
  12338. " int GrowthValue = $3.GrowthValue; //成长值",
  12339. " decimal CurMoney = $3.CurMoney; //当前余额",
  12340. " decimal Integral = $3.Integral; //当前积分",
  12341. " decimal TotalOrderMoney = $3.TotalOrderMoney; //消费总额",
  12342. " decimal TotalUseIntegral = $3.TotalUseIntegral; //消耗积分总额",
  12343. " int FollowCount = $3.FollowCount; //关注数",
  12344. " int FansCount = $3.FansCount; //粉丝数",
  12345. " int CollectionCount = $3.CollectionCount; //收藏数",
  12346. " decimal Coupons = $3.Coupons; //卡券包",
  12347. " int ToPayOrderCount = $3.ToPayOrderCount; //待付款",
  12348. " int ToSendOrderCount = $3.ToSendOrderCount; //待发货",
  12349. " int ToReceiveOrderCount = $3.ToReceiveOrderCount; //待收货",
  12350. " int ToCommentOrderCount = $3.ToCommentOrderCount; //待评价",
  12351. " int ToRefundOrderCount = $3.ToRefundOrderCount; //退款售后",
  12352. " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额",
  12353. " decimal SettleAmount = $3.SettleAmount; //最低结算金额",
  12354. " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额",
  12355. " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励",
  12356. "}"
  12357. ]
  12358. },
  12359. "查询创客数据": {
  12360. "prefix": "ym-db-UserData-Exist",
  12361. "body": [
  12362. "bool $1 = db.UserData.Any(m => m.UserId == $2);",
  12363. ]
  12364. },
  12365. "查询某个创客数据,并取值": {
  12366. "prefix": "ym-db-UserData-FindByPrimaryKey",
  12367. "body": [
  12368. "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
  12369. "if ($1 != null)",
  12370. "{",
  12371. " int UserId = $1.UserId; //创客Id",
  12372. " int GrowthValue = $1.GrowthValue; //成长值",
  12373. " decimal CurMoney = $1.CurMoney; //当前余额",
  12374. " decimal Integral = $1.Integral; //当前积分",
  12375. " decimal TotalOrderMoney = $1.TotalOrderMoney; //消费总额",
  12376. " decimal TotalUseIntegral = $1.TotalUseIntegral; //消耗积分总额",
  12377. " int FollowCount = $1.FollowCount; //关注数",
  12378. " int FansCount = $1.FansCount; //粉丝数",
  12379. " int CollectionCount = $1.CollectionCount; //收藏数",
  12380. " decimal Coupons = $1.Coupons; //卡券包",
  12381. " int ToPayOrderCount = $1.ToPayOrderCount; //待付款",
  12382. " int ToSendOrderCount = $1.ToSendOrderCount; //待发货",
  12383. " int ToReceiveOrderCount = $1.ToReceiveOrderCount; //待收货",
  12384. " int ToCommentOrderCount = $1.ToCommentOrderCount; //待评价",
  12385. " int ToRefundOrderCount = $1.ToRefundOrderCount; //退款售后",
  12386. " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额",
  12387. " decimal SettleAmount = $1.SettleAmount; //最低结算金额",
  12388. " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额",
  12389. " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励",
  12390. "}"
  12391. ]
  12392. },
  12393. "查询某个创客数据,并赋值": {
  12394. "prefix": "ym-db-UserData-Update",
  12395. "body": [
  12396. "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
  12397. "if ($1 != null)",
  12398. "{",
  12399. " $1.UserId = $2; //创客Id",
  12400. " $1.GrowthValue = $3; //成长值",
  12401. " $1.CurMoney = $4; //当前余额",
  12402. " $1.Integral = $5; //当前积分",
  12403. " $1.TotalOrderMoney = $6; //消费总额",
  12404. " $1.TotalUseIntegral = $7; //消耗积分总额",
  12405. " $1.FollowCount = $8; //关注数",
  12406. " $1.FansCount = $9; //粉丝数",
  12407. " $1.CollectionCount = $10; //收藏数",
  12408. " $1.Coupons = $11; //卡券包",
  12409. " $1.ToPayOrderCount = $12; //待付款",
  12410. " $1.ToSendOrderCount = $13; //待发货",
  12411. " $1.ToReceiveOrderCount = $14; //待收货",
  12412. " $1.ToCommentOrderCount = $15; //待评价",
  12413. " $1.ToRefundOrderCount = $16; //退款售后",
  12414. " $1.ActiveRewardAmount = $17; //激活奖励金额",
  12415. " $1.SettleAmount = $18; //最低结算金额",
  12416. " $1.CashFreezeAmt = $19; //提现冻结金额",
  12417. " $1.ProfitRewardRate = $20; //分润奖励",
  12418. "}"
  12419. ]
  12420. },
  12421. "获取创客数据数量": {
  12422. "prefix": "ym-db-UserData-FindAndCount",
  12423. "body": [
  12424. "int $1 = db.UserData.Count(m => $2);",
  12425. ]
  12426. },
  12427. "添加创客数据": {
  12428. "prefix": "ym-db-UserData-Create",
  12429. "body": [
  12430. "db.UserData.Add(new UserData()",
  12431. "{",
  12432. " CreateDate = DateTime.Now,",
  12433. " UpdateDate = DateTime.Now,",
  12434. " UserId = $1, //创客Id",
  12435. " GrowthValue = $2, //成长值",
  12436. " CurMoney = $3, //当前余额",
  12437. " Integral = $4, //当前积分",
  12438. " TotalOrderMoney = $5, //消费总额",
  12439. " TotalUseIntegral = $6, //消耗积分总额",
  12440. " FollowCount = $7, //关注数",
  12441. " FansCount = $8, //粉丝数",
  12442. " CollectionCount = $9, //收藏数",
  12443. " Coupons = $10, //卡券包",
  12444. " ToPayOrderCount = $11, //待付款",
  12445. " ToSendOrderCount = $12, //待发货",
  12446. " ToReceiveOrderCount = $13, //待收货",
  12447. " ToCommentOrderCount = $14, //待评价",
  12448. " ToRefundOrderCount = $15, //退款售后",
  12449. " ActiveRewardAmount = $16, //激活奖励金额",
  12450. " SettleAmount = $17, //最低结算金额",
  12451. " CashFreezeAmt = $18, //提现冻结金额",
  12452. " ProfitRewardRate = $19, //分润奖励",
  12453. "});"
  12454. ]
  12455. },"删除某个创客数据": {
  12456. "prefix": "ym-db-UserData-Delete",
  12457. "body": [
  12458. "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
  12459. "if ($1 != null)",
  12460. "{",
  12461. " db.UserData.Remove($1);",
  12462. "}"
  12463. ]
  12464. },
  12465. "查询创客详细信息列表": {
  12466. "prefix": "ym-db-UserDetail-Find",
  12467. "body": [
  12468. "List<UserDetail> $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12469. "foreach (UserDetail $3 in $1)",
  12470. "{",
  12471. "}"
  12472. ]
  12473. },
  12474. "查询创客详细信息列表,并取值": {
  12475. "prefix": "ym-db-UserDetail-FindWithData",
  12476. "body": [
  12477. "List<UserDetail> $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12478. "foreach (UserDetail $3 in $1)",
  12479. "{",
  12480. " int Id = $3.Id; //创客Id",
  12481. " DateTime Birthday = $3.Birthday; //出生日期",
  12482. " string PostalCode = $3.PostalCode; //邮编",
  12483. " string Email = $3.Email; //邮箱",
  12484. " int UserJob = $3.UserJob; //职业",
  12485. " string OfficePhone = $3.OfficePhone; //办公电话",
  12486. " string PrivatePhone = $3.PrivatePhone; //私人电话",
  12487. " DateTime ToShopDate = $3.ToShopDate; //到达时间",
  12488. " int EduLevel = $3.EduLevel; //教育程度",
  12489. " int FamilyIncome = $3.FamilyIncome; //家庭收入",
  12490. " int TrafficTool = $3.TrafficTool; //交通工具",
  12491. " DateTime CardExpireDate = $3.CardExpireDate; //卡有效期",
  12492. " int CardAddAddress = $3.CardAddAddress; //办卡地点",
  12493. " string Note = $3.Note; //备注",
  12494. " int AddMan = $3.AddMan; //登记创客",
  12495. " int UpdateMan = $3.UpdateMan; //更新人",
  12496. " string Interests = $3.Interests; //兴趣爱好",
  12497. "}"
  12498. ]
  12499. },
  12500. "查询创客详细信息": {
  12501. "prefix": "ym-db-UserDetail-Exist",
  12502. "body": [
  12503. "bool $1 = db.UserDetail.Any(m => m.Id == $2);",
  12504. ]
  12505. },
  12506. "查询某个创客详细信息,并取值": {
  12507. "prefix": "ym-db-UserDetail-FindByPrimaryKey",
  12508. "body": [
  12509. "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
  12510. "if ($1 != null)",
  12511. "{",
  12512. " int Id = $1.Id; //创客Id",
  12513. " DateTime Birthday = $1.Birthday; //出生日期",
  12514. " string PostalCode = $1.PostalCode; //邮编",
  12515. " string Email = $1.Email; //邮箱",
  12516. " int UserJob = $1.UserJob; //职业",
  12517. " string OfficePhone = $1.OfficePhone; //办公电话",
  12518. " string PrivatePhone = $1.PrivatePhone; //私人电话",
  12519. " DateTime ToShopDate = $1.ToShopDate; //到达时间",
  12520. " int EduLevel = $1.EduLevel; //教育程度",
  12521. " int FamilyIncome = $1.FamilyIncome; //家庭收入",
  12522. " int TrafficTool = $1.TrafficTool; //交通工具",
  12523. " DateTime CardExpireDate = $1.CardExpireDate; //卡有效期",
  12524. " int CardAddAddress = $1.CardAddAddress; //办卡地点",
  12525. " string Note = $1.Note; //备注",
  12526. " int AddMan = $1.AddMan; //登记创客",
  12527. " int UpdateMan = $1.UpdateMan; //更新人",
  12528. " string Interests = $1.Interests; //兴趣爱好",
  12529. "}"
  12530. ]
  12531. },
  12532. "查询某个创客详细信息,并赋值": {
  12533. "prefix": "ym-db-UserDetail-Update",
  12534. "body": [
  12535. "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
  12536. "if ($1 != null)",
  12537. "{",
  12538. " $1.Id = $2; //创客Id",
  12539. " $1.Birthday = $3; //出生日期",
  12540. " $1.PostalCode = $4; //邮编",
  12541. " $1.Email = $5; //邮箱",
  12542. " $1.UserJob = $6; //职业",
  12543. " $1.OfficePhone = $7; //办公电话",
  12544. " $1.PrivatePhone = $8; //私人电话",
  12545. " $1.ToShopDate = $9; //到达时间",
  12546. " $1.EduLevel = $10; //教育程度",
  12547. " $1.FamilyIncome = $11; //家庭收入",
  12548. " $1.TrafficTool = $12; //交通工具",
  12549. " $1.CardExpireDate = $13; //卡有效期",
  12550. " $1.CardAddAddress = $14; //办卡地点",
  12551. " $1.Note = $15; //备注",
  12552. " $1.AddMan = $16; //登记创客",
  12553. " $1.UpdateMan = $17; //更新人",
  12554. " $1.Interests = $18; //兴趣爱好",
  12555. "}"
  12556. ]
  12557. },
  12558. "获取创客详细信息数量": {
  12559. "prefix": "ym-db-UserDetail-FindAndCount",
  12560. "body": [
  12561. "int $1 = db.UserDetail.Count(m => $2);",
  12562. ]
  12563. },
  12564. "添加创客详细信息": {
  12565. "prefix": "ym-db-UserDetail-Create",
  12566. "body": [
  12567. "db.UserDetail.Add(new UserDetail()",
  12568. "{",
  12569. " CreateDate = DateTime.Now,",
  12570. " UpdateDate = DateTime.Now,",
  12571. " Id = $1, //创客Id",
  12572. " Birthday = $2, //出生日期",
  12573. " PostalCode = $3, //邮编",
  12574. " Email = $4, //邮箱",
  12575. " UserJob = $5, //职业",
  12576. " OfficePhone = $6, //办公电话",
  12577. " PrivatePhone = $7, //私人电话",
  12578. " ToShopDate = $8, //到达时间",
  12579. " EduLevel = $9, //教育程度",
  12580. " FamilyIncome = $10, //家庭收入",
  12581. " TrafficTool = $11, //交通工具",
  12582. " CardExpireDate = $12, //卡有效期",
  12583. " CardAddAddress = $13, //办卡地点",
  12584. " Note = $14, //备注",
  12585. " AddMan = $15, //登记创客",
  12586. " UpdateMan = $16, //更新人",
  12587. " Interests = $17, //兴趣爱好",
  12588. "});"
  12589. ]
  12590. },"删除某个创客详细信息": {
  12591. "prefix": "ym-db-UserDetail-Delete",
  12592. "body": [
  12593. "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
  12594. "if ($1 != null)",
  12595. "{",
  12596. " db.UserDetail.Remove($1);",
  12597. "}"
  12598. ]
  12599. },
  12600. "查询创客家庭成员列表": {
  12601. "prefix": "ym-db-UserFamilyMember-Find",
  12602. "body": [
  12603. "List<UserFamilyMember> $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12604. "foreach (UserFamilyMember $3 in $1)",
  12605. "{",
  12606. "}"
  12607. ]
  12608. },
  12609. "查询创客家庭成员列表,并取值": {
  12610. "prefix": "ym-db-UserFamilyMember-FindWithData",
  12611. "body": [
  12612. "List<UserFamilyMember> $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12613. "foreach (UserFamilyMember $3 in $1)",
  12614. "{",
  12615. " int UserId = $3.UserId; //创客Id",
  12616. " string Name = $3.Name; //姓名",
  12617. " string Mobile = $3.Mobile; //手机号",
  12618. " int MemberKind = $3.MemberKind; //关系",
  12619. " string IdCardNo = $3.IdCardNo; //身份证号",
  12620. " int Job = $3.Job; //职业",
  12621. "}"
  12622. ]
  12623. },
  12624. "查询创客家庭成员": {
  12625. "prefix": "ym-db-UserFamilyMember-Exist",
  12626. "body": [
  12627. "bool $1 = db.UserFamilyMember.Any(m => m.Id == $2);",
  12628. ]
  12629. },
  12630. "查询某个创客家庭成员,并取值": {
  12631. "prefix": "ym-db-UserFamilyMember-FindByPrimaryKey",
  12632. "body": [
  12633. "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
  12634. "if ($1 != null)",
  12635. "{",
  12636. " int UserId = $1.UserId; //创客Id",
  12637. " string Name = $1.Name; //姓名",
  12638. " string Mobile = $1.Mobile; //手机号",
  12639. " int MemberKind = $1.MemberKind; //关系",
  12640. " string IdCardNo = $1.IdCardNo; //身份证号",
  12641. " int Job = $1.Job; //职业",
  12642. "}"
  12643. ]
  12644. },
  12645. "查询某个创客家庭成员,并赋值": {
  12646. "prefix": "ym-db-UserFamilyMember-Update",
  12647. "body": [
  12648. "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
  12649. "if ($1 != null)",
  12650. "{",
  12651. " $1.UserId = $2; //创客Id",
  12652. " $1.Name = $3; //姓名",
  12653. " $1.Mobile = $4; //手机号",
  12654. " $1.MemberKind = $5; //关系",
  12655. " $1.IdCardNo = $6; //身份证号",
  12656. " $1.Job = $7; //职业",
  12657. "}"
  12658. ]
  12659. },
  12660. "获取创客家庭成员数量": {
  12661. "prefix": "ym-db-UserFamilyMember-FindAndCount",
  12662. "body": [
  12663. "int $1 = db.UserFamilyMember.Count(m => $2);",
  12664. ]
  12665. },
  12666. "添加创客家庭成员": {
  12667. "prefix": "ym-db-UserFamilyMember-Create",
  12668. "body": [
  12669. "db.UserFamilyMember.Add(new UserFamilyMember()",
  12670. "{",
  12671. " CreateDate = DateTime.Now,",
  12672. " UpdateDate = DateTime.Now,",
  12673. " UserId = $1, //创客Id",
  12674. " Name = $2, //姓名",
  12675. " Mobile = $3, //手机号",
  12676. " MemberKind = $4, //关系",
  12677. " IdCardNo = $5, //身份证号",
  12678. " Job = $6, //职业",
  12679. "});"
  12680. ]
  12681. },"删除某个创客家庭成员": {
  12682. "prefix": "ym-db-UserFamilyMember-Delete",
  12683. "body": [
  12684. "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
  12685. "if ($1 != null)",
  12686. "{",
  12687. " db.UserFamilyMember.Remove($1);",
  12688. "}"
  12689. ]
  12690. },
  12691. "查询创客编号为主键的关联表列表": {
  12692. "prefix": "ym-db-UserForMakerCode-Find",
  12693. "body": [
  12694. "List<UserForMakerCode> $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12695. "foreach (UserForMakerCode $3 in $1)",
  12696. "{",
  12697. "}"
  12698. ]
  12699. },
  12700. "查询创客编号为主键的关联表列表,并取值": {
  12701. "prefix": "ym-db-UserForMakerCode-FindWithData",
  12702. "body": [
  12703. "List<UserForMakerCode> $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12704. "foreach (UserForMakerCode $3 in $1)",
  12705. "{",
  12706. " string MakerCode = $3.MakerCode; //编号",
  12707. " int UserId = $3.UserId; //创客",
  12708. "}"
  12709. ]
  12710. },
  12711. "查询创客编号为主键的关联表": {
  12712. "prefix": "ym-db-UserForMakerCode-Exist",
  12713. "body": [
  12714. "bool $1 = db.UserForMakerCode.Any(m => m.MakerCode == $2);",
  12715. ]
  12716. },
  12717. "查询某个创客编号为主键的关联表,并取值": {
  12718. "prefix": "ym-db-UserForMakerCode-FindByPrimaryKey",
  12719. "body": [
  12720. "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
  12721. "if ($1 != null)",
  12722. "{",
  12723. " string MakerCode = $1.MakerCode; //编号",
  12724. " int UserId = $1.UserId; //创客",
  12725. "}"
  12726. ]
  12727. },
  12728. "查询某个创客编号为主键的关联表,并赋值": {
  12729. "prefix": "ym-db-UserForMakerCode-Update",
  12730. "body": [
  12731. "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
  12732. "if ($1 != null)",
  12733. "{",
  12734. " $1.MakerCode = $2; //编号",
  12735. " $1.UserId = $3; //创客",
  12736. "}"
  12737. ]
  12738. },
  12739. "获取创客编号为主键的关联表数量": {
  12740. "prefix": "ym-db-UserForMakerCode-FindAndCount",
  12741. "body": [
  12742. "int $1 = db.UserForMakerCode.Count(m => $2);",
  12743. ]
  12744. },
  12745. "添加创客编号为主键的关联表": {
  12746. "prefix": "ym-db-UserForMakerCode-Create",
  12747. "body": [
  12748. "db.UserForMakerCode.Add(new UserForMakerCode()",
  12749. "{",
  12750. " CreateDate = DateTime.Now,",
  12751. " UpdateDate = DateTime.Now,",
  12752. " MakerCode = $1, //编号",
  12753. " UserId = $2, //创客",
  12754. "});"
  12755. ]
  12756. },"删除某个创客编号为主键的关联表": {
  12757. "prefix": "ym-db-UserForMakerCode-Delete",
  12758. "body": [
  12759. "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
  12760. "if ($1 != null)",
  12761. "{",
  12762. " db.UserForMakerCode.Remove($1);",
  12763. "}"
  12764. ]
  12765. },
  12766. "查询创客手机号为主键的关联表列表": {
  12767. "prefix": "ym-db-UserForMobile-Find",
  12768. "body": [
  12769. "List<UserForMobile> $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12770. "foreach (UserForMobile $3 in $1)",
  12771. "{",
  12772. "}"
  12773. ]
  12774. },
  12775. "查询创客手机号为主键的关联表列表,并取值": {
  12776. "prefix": "ym-db-UserForMobile-FindWithData",
  12777. "body": [
  12778. "List<UserForMobile> $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12779. "foreach (UserForMobile $3 in $1)",
  12780. "{",
  12781. " string Mobile = $3.Mobile; //手机号",
  12782. " int UserId = $3.UserId; //创客Id",
  12783. "}"
  12784. ]
  12785. },
  12786. "查询创客手机号为主键的关联表": {
  12787. "prefix": "ym-db-UserForMobile-Exist",
  12788. "body": [
  12789. "bool $1 = db.UserForMobile.Any(m => m.Mobile == $2);",
  12790. ]
  12791. },
  12792. "查询某个创客手机号为主键的关联表,并取值": {
  12793. "prefix": "ym-db-UserForMobile-FindByPrimaryKey",
  12794. "body": [
  12795. "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
  12796. "if ($1 != null)",
  12797. "{",
  12798. " string Mobile = $1.Mobile; //手机号",
  12799. " int UserId = $1.UserId; //创客Id",
  12800. "}"
  12801. ]
  12802. },
  12803. "查询某个创客手机号为主键的关联表,并赋值": {
  12804. "prefix": "ym-db-UserForMobile-Update",
  12805. "body": [
  12806. "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
  12807. "if ($1 != null)",
  12808. "{",
  12809. " $1.Mobile = $2; //手机号",
  12810. " $1.UserId = $3; //创客Id",
  12811. "}"
  12812. ]
  12813. },
  12814. "获取创客手机号为主键的关联表数量": {
  12815. "prefix": "ym-db-UserForMobile-FindAndCount",
  12816. "body": [
  12817. "int $1 = db.UserForMobile.Count(m => $2);",
  12818. ]
  12819. },
  12820. "添加创客手机号为主键的关联表": {
  12821. "prefix": "ym-db-UserForMobile-Create",
  12822. "body": [
  12823. "db.UserForMobile.Add(new UserForMobile()",
  12824. "{",
  12825. " CreateDate = DateTime.Now,",
  12826. " UpdateDate = DateTime.Now,",
  12827. " Mobile = $1, //手机号",
  12828. " UserId = $2, //创客Id",
  12829. "});"
  12830. ]
  12831. },"删除某个创客手机号为主键的关联表": {
  12832. "prefix": "ym-db-UserForMobile-Delete",
  12833. "body": [
  12834. "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
  12835. "if ($1 != null)",
  12836. "{",
  12837. " db.UserForMobile.Remove($1);",
  12838. "}"
  12839. ]
  12840. },
  12841. "查询创客姓名为主键的关联表列表": {
  12842. "prefix": "ym-db-UserForRealName-Find",
  12843. "body": [
  12844. "List<UserForRealName> $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12845. "foreach (UserForRealName $3 in $1)",
  12846. "{",
  12847. "}"
  12848. ]
  12849. },
  12850. "查询创客姓名为主键的关联表列表,并取值": {
  12851. "prefix": "ym-db-UserForRealName-FindWithData",
  12852. "body": [
  12853. "List<UserForRealName> $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12854. "foreach (UserForRealName $3 in $1)",
  12855. "{",
  12856. " string RealName = $3.RealName; //姓名",
  12857. " string UserId = $3.UserId; //创客",
  12858. "}"
  12859. ]
  12860. },
  12861. "查询创客姓名为主键的关联表": {
  12862. "prefix": "ym-db-UserForRealName-Exist",
  12863. "body": [
  12864. "bool $1 = db.UserForRealName.Any(m => m.RealName == $2);",
  12865. ]
  12866. },
  12867. "查询某个创客姓名为主键的关联表,并取值": {
  12868. "prefix": "ym-db-UserForRealName-FindByPrimaryKey",
  12869. "body": [
  12870. "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
  12871. "if ($1 != null)",
  12872. "{",
  12873. " string RealName = $1.RealName; //姓名",
  12874. " string UserId = $1.UserId; //创客",
  12875. "}"
  12876. ]
  12877. },
  12878. "查询某个创客姓名为主键的关联表,并赋值": {
  12879. "prefix": "ym-db-UserForRealName-Update",
  12880. "body": [
  12881. "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
  12882. "if ($1 != null)",
  12883. "{",
  12884. " $1.RealName = $2; //姓名",
  12885. " $1.UserId = $3; //创客",
  12886. "}"
  12887. ]
  12888. },
  12889. "获取创客姓名为主键的关联表数量": {
  12890. "prefix": "ym-db-UserForRealName-FindAndCount",
  12891. "body": [
  12892. "int $1 = db.UserForRealName.Count(m => $2);",
  12893. ]
  12894. },
  12895. "添加创客姓名为主键的关联表": {
  12896. "prefix": "ym-db-UserForRealName-Create",
  12897. "body": [
  12898. "db.UserForRealName.Add(new UserForRealName()",
  12899. "{",
  12900. " CreateDate = DateTime.Now,",
  12901. " UpdateDate = DateTime.Now,",
  12902. " RealName = $1, //姓名",
  12903. " UserId = $2, //创客",
  12904. "});"
  12905. ]
  12906. },"删除某个创客姓名为主键的关联表": {
  12907. "prefix": "ym-db-UserForRealName-Delete",
  12908. "body": [
  12909. "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
  12910. "if ($1 != null)",
  12911. "{",
  12912. " db.UserForRealName.Remove($1);",
  12913. "}"
  12914. ]
  12915. },
  12916. "查询创客好友关联表列表": {
  12917. "prefix": "ym-db-UserFriend-Find",
  12918. "body": [
  12919. "List<UserFriend> $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12920. "foreach (UserFriend $3 in $1)",
  12921. "{",
  12922. "}"
  12923. ]
  12924. },
  12925. "查询创客好友关联表列表,并取值": {
  12926. "prefix": "ym-db-UserFriend-FindWithData",
  12927. "body": [
  12928. "List<UserFriend> $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12929. "foreach (UserFriend $3 in $1)",
  12930. "{",
  12931. " int Id = $3.Id; //Id",
  12932. " int UserId = $3.UserId; //创客Id",
  12933. " int FriendId = $3.FriendId; //好友Id",
  12934. "}"
  12935. ]
  12936. },
  12937. "查询创客好友关联表": {
  12938. "prefix": "ym-db-UserFriend-Exist",
  12939. "body": [
  12940. "bool $1 = db.UserFriend.Any(m => m.Id == $2);",
  12941. ]
  12942. },
  12943. "查询某个创客好友关联表,并取值": {
  12944. "prefix": "ym-db-UserFriend-FindByPrimaryKey",
  12945. "body": [
  12946. "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
  12947. "if ($1 != null)",
  12948. "{",
  12949. " int Id = $1.Id; //Id",
  12950. " int UserId = $1.UserId; //创客Id",
  12951. " int FriendId = $1.FriendId; //好友Id",
  12952. "}"
  12953. ]
  12954. },
  12955. "查询某个创客好友关联表,并赋值": {
  12956. "prefix": "ym-db-UserFriend-Update",
  12957. "body": [
  12958. "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
  12959. "if ($1 != null)",
  12960. "{",
  12961. " $1.Id = $2; //Id",
  12962. " $1.UserId = $3; //创客Id",
  12963. " $1.FriendId = $4; //好友Id",
  12964. "}"
  12965. ]
  12966. },
  12967. "获取创客好友关联表数量": {
  12968. "prefix": "ym-db-UserFriend-FindAndCount",
  12969. "body": [
  12970. "int $1 = db.UserFriend.Count(m => $2);",
  12971. ]
  12972. },
  12973. "添加创客好友关联表": {
  12974. "prefix": "ym-db-UserFriend-Create",
  12975. "body": [
  12976. "db.UserFriend.Add(new UserFriend()",
  12977. "{",
  12978. " CreateDate = DateTime.Now,",
  12979. " UpdateDate = DateTime.Now,",
  12980. " Id = $1, //Id",
  12981. " UserId = $2, //创客Id",
  12982. " FriendId = $3, //好友Id",
  12983. "});"
  12984. ]
  12985. },"删除某个创客好友关联表": {
  12986. "prefix": "ym-db-UserFriend-Delete",
  12987. "body": [
  12988. "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
  12989. "if ($1 != null)",
  12990. "{",
  12991. " db.UserFriend.Remove($1);",
  12992. "}"
  12993. ]
  12994. },
  12995. "查询创客分组列表": {
  12996. "prefix": "ym-db-UserGroup-Find",
  12997. "body": [
  12998. "List<UserGroup> $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12999. "foreach (UserGroup $3 in $1)",
  13000. "{",
  13001. "}"
  13002. ]
  13003. },
  13004. "查询创客分组列表,并取值": {
  13005. "prefix": "ym-db-UserGroup-FindWithData",
  13006. "body": [
  13007. "List<UserGroup> $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13008. "foreach (UserGroup $3 in $1)",
  13009. "{",
  13010. " string Name = $3.Name; //名称",
  13011. " string Details = $3.Details; //描述",
  13012. "}"
  13013. ]
  13014. },
  13015. "查询创客分组": {
  13016. "prefix": "ym-db-UserGroup-Exist",
  13017. "body": [
  13018. "bool $1 = db.UserGroup.Any(m => m.Id == $2);",
  13019. ]
  13020. },
  13021. "查询某个创客分组,并取值": {
  13022. "prefix": "ym-db-UserGroup-FindByPrimaryKey",
  13023. "body": [
  13024. "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
  13025. "if ($1 != null)",
  13026. "{",
  13027. " string Name = $1.Name; //名称",
  13028. " string Details = $1.Details; //描述",
  13029. "}"
  13030. ]
  13031. },
  13032. "查询某个创客分组,并赋值": {
  13033. "prefix": "ym-db-UserGroup-Update",
  13034. "body": [
  13035. "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
  13036. "if ($1 != null)",
  13037. "{",
  13038. " $1.Name = $2; //名称",
  13039. " $1.Details = $3; //描述",
  13040. "}"
  13041. ]
  13042. },
  13043. "获取创客分组数量": {
  13044. "prefix": "ym-db-UserGroup-FindAndCount",
  13045. "body": [
  13046. "int $1 = db.UserGroup.Count(m => $2);",
  13047. ]
  13048. },
  13049. "添加创客分组": {
  13050. "prefix": "ym-db-UserGroup-Create",
  13051. "body": [
  13052. "db.UserGroup.Add(new UserGroup()",
  13053. "{",
  13054. " CreateDate = DateTime.Now,",
  13055. " UpdateDate = DateTime.Now,",
  13056. " Name = $1, //名称",
  13057. " Details = $2, //描述",
  13058. "});"
  13059. ]
  13060. },"删除某个创客分组": {
  13061. "prefix": "ym-db-UserGroup-Delete",
  13062. "body": [
  13063. "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
  13064. "if ($1 != null)",
  13065. "{",
  13066. " db.UserGroup.Remove($1);",
  13067. "}"
  13068. ]
  13069. },
  13070. "查询创客等级设定列表": {
  13071. "prefix": "ym-db-UserLevelSet-Find",
  13072. "body": [
  13073. "List<UserLevelSet> $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13074. "foreach (UserLevelSet $3 in $1)",
  13075. "{",
  13076. "}"
  13077. ]
  13078. },
  13079. "查询创客等级设定列表,并取值": {
  13080. "prefix": "ym-db-UserLevelSet-FindWithData",
  13081. "body": [
  13082. "List<UserLevelSet> $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13083. "foreach (UserLevelSet $3 in $1)",
  13084. "{",
  13085. " string Name = $3.Name; //等级名称",
  13086. " string Details = $3.Details; //等级描述",
  13087. " int UpLevelDays = $3.UpLevelDays; //升级天数",
  13088. " decimal UpLevelIntegral = $3.UpLevelIntegral; //升级需要积分值",
  13089. " int UpLevelGrowth = $3.UpLevelGrowth; //升级需要成长值",
  13090. "}"
  13091. ]
  13092. },
  13093. "查询创客等级设定": {
  13094. "prefix": "ym-db-UserLevelSet-Exist",
  13095. "body": [
  13096. "bool $1 = db.UserLevelSet.Any(m => m.Id == $2);",
  13097. ]
  13098. },
  13099. "查询某个创客等级设定,并取值": {
  13100. "prefix": "ym-db-UserLevelSet-FindByPrimaryKey",
  13101. "body": [
  13102. "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
  13103. "if ($1 != null)",
  13104. "{",
  13105. " string Name = $1.Name; //等级名称",
  13106. " string Details = $1.Details; //等级描述",
  13107. " int UpLevelDays = $1.UpLevelDays; //升级天数",
  13108. " decimal UpLevelIntegral = $1.UpLevelIntegral; //升级需要积分值",
  13109. " int UpLevelGrowth = $1.UpLevelGrowth; //升级需要成长值",
  13110. "}"
  13111. ]
  13112. },
  13113. "查询某个创客等级设定,并赋值": {
  13114. "prefix": "ym-db-UserLevelSet-Update",
  13115. "body": [
  13116. "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
  13117. "if ($1 != null)",
  13118. "{",
  13119. " $1.Name = $2; //等级名称",
  13120. " $1.Details = $3; //等级描述",
  13121. " $1.UpLevelDays = $4; //升级天数",
  13122. " $1.UpLevelIntegral = $5; //升级需要积分值",
  13123. " $1.UpLevelGrowth = $6; //升级需要成长值",
  13124. "}"
  13125. ]
  13126. },
  13127. "获取创客等级设定数量": {
  13128. "prefix": "ym-db-UserLevelSet-FindAndCount",
  13129. "body": [
  13130. "int $1 = db.UserLevelSet.Count(m => $2);",
  13131. ]
  13132. },
  13133. "添加创客等级设定": {
  13134. "prefix": "ym-db-UserLevelSet-Create",
  13135. "body": [
  13136. "db.UserLevelSet.Add(new UserLevelSet()",
  13137. "{",
  13138. " CreateDate = DateTime.Now,",
  13139. " UpdateDate = DateTime.Now,",
  13140. " Name = $1, //等级名称",
  13141. " Details = $2, //等级描述",
  13142. " UpLevelDays = $3, //升级天数",
  13143. " UpLevelIntegral = $4, //升级需要积分值",
  13144. " UpLevelGrowth = $5, //升级需要成长值",
  13145. "});"
  13146. ]
  13147. },"删除某个创客等级设定": {
  13148. "prefix": "ym-db-UserLevelSet-Delete",
  13149. "body": [
  13150. "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
  13151. "if ($1 != null)",
  13152. "{",
  13153. " db.UserLevelSet.Remove($1);",
  13154. "}"
  13155. ]
  13156. },
  13157. "查询创客登录记录列表": {
  13158. "prefix": "ym-db-UserLoginRecord-Find",
  13159. "body": [
  13160. "List<UserLoginRecord> $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13161. "foreach (UserLoginRecord $3 in $1)",
  13162. "{",
  13163. "}"
  13164. ]
  13165. },
  13166. "查询创客登录记录列表,并取值": {
  13167. "prefix": "ym-db-UserLoginRecord-FindWithData",
  13168. "body": [
  13169. "List<UserLoginRecord> $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13170. "foreach (UserLoginRecord $3 in $1)",
  13171. "{",
  13172. " int UserId = $3.UserId; //创客",
  13173. " int Kind = $3.Kind; //类别",
  13174. "}"
  13175. ]
  13176. },
  13177. "查询创客登录记录": {
  13178. "prefix": "ym-db-UserLoginRecord-Exist",
  13179. "body": [
  13180. "bool $1 = db.UserLoginRecord.Any(m => m.Id == $2);",
  13181. ]
  13182. },
  13183. "查询某个创客登录记录,并取值": {
  13184. "prefix": "ym-db-UserLoginRecord-FindByPrimaryKey",
  13185. "body": [
  13186. "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
  13187. "if ($1 != null)",
  13188. "{",
  13189. " int UserId = $1.UserId; //创客",
  13190. " int Kind = $1.Kind; //类别",
  13191. "}"
  13192. ]
  13193. },
  13194. "查询某个创客登录记录,并赋值": {
  13195. "prefix": "ym-db-UserLoginRecord-Update",
  13196. "body": [
  13197. "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
  13198. "if ($1 != null)",
  13199. "{",
  13200. " $1.UserId = $2; //创客",
  13201. " $1.Kind = $3; //类别",
  13202. "}"
  13203. ]
  13204. },
  13205. "获取创客登录记录数量": {
  13206. "prefix": "ym-db-UserLoginRecord-FindAndCount",
  13207. "body": [
  13208. "int $1 = db.UserLoginRecord.Count(m => $2);",
  13209. ]
  13210. },
  13211. "添加创客登录记录": {
  13212. "prefix": "ym-db-UserLoginRecord-Create",
  13213. "body": [
  13214. "db.UserLoginRecord.Add(new UserLoginRecord()",
  13215. "{",
  13216. " CreateDate = DateTime.Now,",
  13217. " UpdateDate = DateTime.Now,",
  13218. " UserId = $1, //创客",
  13219. " Kind = $2, //类别",
  13220. "});"
  13221. ]
  13222. },"删除某个创客登录记录": {
  13223. "prefix": "ym-db-UserLoginRecord-Delete",
  13224. "body": [
  13225. "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
  13226. "if ($1 != null)",
  13227. "{",
  13228. " db.UserLoginRecord.Remove($1);",
  13229. "}"
  13230. ]
  13231. },
  13232. "查询创客商城提大货SN列表": {
  13233. "prefix": "ym-db-UserMallLargeSn-Find",
  13234. "body": [
  13235. "List<UserMallLargeSn> $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13236. "foreach (UserMallLargeSn $3 in $1)",
  13237. "{",
  13238. "}"
  13239. ]
  13240. },
  13241. "查询创客商城提大货SN列表,并取值": {
  13242. "prefix": "ym-db-UserMallLargeSn-FindWithData",
  13243. "body": [
  13244. "List<UserMallLargeSn> $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13245. "foreach (UserMallLargeSn $3 in $1)",
  13246. "{",
  13247. " int UserId = $3.UserId; //创客",
  13248. " int BrandId = $3.BrandId; //品牌",
  13249. " string ProductName = $3.ProductName; //产品名称",
  13250. " string OrderNo = $3.OrderNo; //订单号",
  13251. " decimal OrderAmount = $3.OrderAmount; //订单金额",
  13252. " int OrderNum = $3.OrderNum; //订单数量",
  13253. " decimal RuleOrderAmt = $3.RuleOrderAmt; //规则订单金额",
  13254. " int SnStatus = $3.SnStatus; //SN状态",
  13255. " string SnNo = $3.SnNo; //SN编号",
  13256. " int SnType = $3.SnType; //SN类型",
  13257. " DateTime SnShipDate = $3.SnShipDate; //SN发货时间",
  13258. " int StoreId = $3.StoreId; //SN发货仓库",
  13259. " string Remark = $3.Remark; //备注",
  13260. "}"
  13261. ]
  13262. },
  13263. "查询创客商城提大货SN": {
  13264. "prefix": "ym-db-UserMallLargeSn-Exist",
  13265. "body": [
  13266. "bool $1 = db.UserMallLargeSn.Any(m => m.Id == $2);",
  13267. ]
  13268. },
  13269. "查询某个创客商城提大货SN,并取值": {
  13270. "prefix": "ym-db-UserMallLargeSn-FindByPrimaryKey",
  13271. "body": [
  13272. "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
  13273. "if ($1 != null)",
  13274. "{",
  13275. " int UserId = $1.UserId; //创客",
  13276. " int BrandId = $1.BrandId; //品牌",
  13277. " string ProductName = $1.ProductName; //产品名称",
  13278. " string OrderNo = $1.OrderNo; //订单号",
  13279. " decimal OrderAmount = $1.OrderAmount; //订单金额",
  13280. " int OrderNum = $1.OrderNum; //订单数量",
  13281. " decimal RuleOrderAmt = $1.RuleOrderAmt; //规则订单金额",
  13282. " int SnStatus = $1.SnStatus; //SN状态",
  13283. " string SnNo = $1.SnNo; //SN编号",
  13284. " int SnType = $1.SnType; //SN类型",
  13285. " DateTime SnShipDate = $1.SnShipDate; //SN发货时间",
  13286. " int StoreId = $1.StoreId; //SN发货仓库",
  13287. " string Remark = $1.Remark; //备注",
  13288. "}"
  13289. ]
  13290. },
  13291. "查询某个创客商城提大货SN,并赋值": {
  13292. "prefix": "ym-db-UserMallLargeSn-Update",
  13293. "body": [
  13294. "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
  13295. "if ($1 != null)",
  13296. "{",
  13297. " $1.UserId = $2; //创客",
  13298. " $1.BrandId = $3; //品牌",
  13299. " $1.ProductName = $4; //产品名称",
  13300. " $1.OrderNo = $5; //订单号",
  13301. " $1.OrderAmount = $6; //订单金额",
  13302. " $1.OrderNum = $7; //订单数量",
  13303. " $1.RuleOrderAmt = $8; //规则订单金额",
  13304. " $1.SnStatus = $9; //SN状态",
  13305. " $1.SnNo = $10; //SN编号",
  13306. " $1.SnType = $11; //SN类型",
  13307. " $1.SnShipDate = $12; //SN发货时间",
  13308. " $1.StoreId = $13; //SN发货仓库",
  13309. " $1.Remark = $14; //备注",
  13310. "}"
  13311. ]
  13312. },
  13313. "获取创客商城提大货SN数量": {
  13314. "prefix": "ym-db-UserMallLargeSn-FindAndCount",
  13315. "body": [
  13316. "int $1 = db.UserMallLargeSn.Count(m => $2);",
  13317. ]
  13318. },
  13319. "添加创客商城提大货SN": {
  13320. "prefix": "ym-db-UserMallLargeSn-Create",
  13321. "body": [
  13322. "db.UserMallLargeSn.Add(new UserMallLargeSn()",
  13323. "{",
  13324. " CreateDate = DateTime.Now,",
  13325. " UpdateDate = DateTime.Now,",
  13326. " UserId = $1, //创客",
  13327. " BrandId = $2, //品牌",
  13328. " ProductName = $3, //产品名称",
  13329. " OrderNo = $4, //订单号",
  13330. " OrderAmount = $5, //订单金额",
  13331. " OrderNum = $6, //订单数量",
  13332. " RuleOrderAmt = $7, //规则订单金额",
  13333. " SnStatus = $8, //SN状态",
  13334. " SnNo = $9, //SN编号",
  13335. " SnType = $10, //SN类型",
  13336. " SnShipDate = $11, //SN发货时间",
  13337. " StoreId = $12, //SN发货仓库",
  13338. " Remark = $13, //备注",
  13339. "});"
  13340. ]
  13341. },"删除某个创客商城提大货SN": {
  13342. "prefix": "ym-db-UserMallLargeSn-Delete",
  13343. "body": [
  13344. "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
  13345. "if ($1 != null)",
  13346. "{",
  13347. " db.UserMallLargeSn.Remove($1);",
  13348. "}"
  13349. ]
  13350. },
  13351. "查询创客线下签到记录列表": {
  13352. "prefix": "ym-db-UserOfflineSignInRecords-Find",
  13353. "body": [
  13354. "List<UserOfflineSignInRecords> $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13355. "foreach (UserOfflineSignInRecords $3 in $1)",
  13356. "{",
  13357. "}"
  13358. ]
  13359. },
  13360. "查询创客线下签到记录列表,并取值": {
  13361. "prefix": "ym-db-UserOfflineSignInRecords-FindWithData",
  13362. "body": [
  13363. "List<UserOfflineSignInRecords> $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13364. "foreach (UserOfflineSignInRecords $3 in $1)",
  13365. "{",
  13366. " int UserId = $3.UserId; //创客Id",
  13367. " int MerchantId = $3.MerchantId; //商家Id",
  13368. "}"
  13369. ]
  13370. },
  13371. "查询创客线下签到记录": {
  13372. "prefix": "ym-db-UserOfflineSignInRecords-Exist",
  13373. "body": [
  13374. "bool $1 = db.UserOfflineSignInRecords.Any(m => m.Id == $2);",
  13375. ]
  13376. },
  13377. "查询某个创客线下签到记录,并取值": {
  13378. "prefix": "ym-db-UserOfflineSignInRecords-FindByPrimaryKey",
  13379. "body": [
  13380. "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
  13381. "if ($1 != null)",
  13382. "{",
  13383. " int UserId = $1.UserId; //创客Id",
  13384. " int MerchantId = $1.MerchantId; //商家Id",
  13385. "}"
  13386. ]
  13387. },
  13388. "查询某个创客线下签到记录,并赋值": {
  13389. "prefix": "ym-db-UserOfflineSignInRecords-Update",
  13390. "body": [
  13391. "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
  13392. "if ($1 != null)",
  13393. "{",
  13394. " $1.UserId = $2; //创客Id",
  13395. " $1.MerchantId = $3; //商家Id",
  13396. "}"
  13397. ]
  13398. },
  13399. "获取创客线下签到记录数量": {
  13400. "prefix": "ym-db-UserOfflineSignInRecords-FindAndCount",
  13401. "body": [
  13402. "int $1 = db.UserOfflineSignInRecords.Count(m => $2);",
  13403. ]
  13404. },
  13405. "添加创客线下签到记录": {
  13406. "prefix": "ym-db-UserOfflineSignInRecords-Create",
  13407. "body": [
  13408. "db.UserOfflineSignInRecords.Add(new UserOfflineSignInRecords()",
  13409. "{",
  13410. " CreateDate = DateTime.Now,",
  13411. " UpdateDate = DateTime.Now,",
  13412. " UserId = $1, //创客Id",
  13413. " MerchantId = $2, //商家Id",
  13414. "});"
  13415. ]
  13416. },"删除某个创客线下签到记录": {
  13417. "prefix": "ym-db-UserOfflineSignInRecords-Delete",
  13418. "body": [
  13419. "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
  13420. "if ($1 != null)",
  13421. "{",
  13422. " db.UserOfflineSignInRecords.Remove($1);",
  13423. "}"
  13424. ]
  13425. },
  13426. "查询创客分润规则列表": {
  13427. "prefix": "ym-db-UserProfit-Find",
  13428. "body": [
  13429. "List<UserProfit> $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13430. "foreach (UserProfit $3 in $1)",
  13431. "{",
  13432. "}"
  13433. ]
  13434. },
  13435. "查询创客分润规则列表,并取值": {
  13436. "prefix": "ym-db-UserProfit-FindWithData",
  13437. "body": [
  13438. "List<UserProfit> $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13439. "foreach (UserProfit $3 in $1)",
  13440. "{",
  13441. " int UserId = $3.UserId; //创客",
  13442. " int BrandId = $3.BrandId; //品牌",
  13443. " string CardType = $3.CardType; //交易卡类型",
  13444. " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例",
  13445. " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比",
  13446. " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间",
  13447. " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数",
  13448. " string Remark = $3.Remark; //备注",
  13449. " int TopUserId = $3.TopUserId; //顶级创客",
  13450. " decimal HelpAddOrSubRate = $3.HelpAddOrSubRate; //扶持期浮动空间",
  13451. " decimal HelpProfitPercent = $3.HelpProfitPercent; //扶持期创客预设分润百分比",
  13452. " decimal HelpProfitRate = $3.HelpProfitRate; //扶持期创客预设分润比例",
  13453. " decimal HelpProfitRateBase = $3.HelpProfitRateBase; //扶持期分润比例基数",
  13454. "}"
  13455. ]
  13456. },
  13457. "查询创客分润规则": {
  13458. "prefix": "ym-db-UserProfit-Exist",
  13459. "body": [
  13460. "bool $1 = db.UserProfit.Any(m => m.Id == $2);",
  13461. ]
  13462. },
  13463. "查询某个创客分润规则,并取值": {
  13464. "prefix": "ym-db-UserProfit-FindByPrimaryKey",
  13465. "body": [
  13466. "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
  13467. "if ($1 != null)",
  13468. "{",
  13469. " int UserId = $1.UserId; //创客",
  13470. " int BrandId = $1.BrandId; //品牌",
  13471. " string CardType = $1.CardType; //交易卡类型",
  13472. " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例",
  13473. " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比",
  13474. " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间",
  13475. " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数",
  13476. " string Remark = $1.Remark; //备注",
  13477. " int TopUserId = $1.TopUserId; //顶级创客",
  13478. " decimal HelpAddOrSubRate = $1.HelpAddOrSubRate; //扶持期浮动空间",
  13479. " decimal HelpProfitPercent = $1.HelpProfitPercent; //扶持期创客预设分润百分比",
  13480. " decimal HelpProfitRate = $1.HelpProfitRate; //扶持期创客预设分润比例",
  13481. " decimal HelpProfitRateBase = $1.HelpProfitRateBase; //扶持期分润比例基数",
  13482. "}"
  13483. ]
  13484. },
  13485. "查询某个创客分润规则,并赋值": {
  13486. "prefix": "ym-db-UserProfit-Update",
  13487. "body": [
  13488. "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
  13489. "if ($1 != null)",
  13490. "{",
  13491. " $1.UserId = $2; //创客",
  13492. " $1.BrandId = $3; //品牌",
  13493. " $1.CardType = $4; //交易卡类型",
  13494. " $1.ProfitRate = $5; //创客预设分润比例",
  13495. " $1.ProfitPercent = $6; //创客预设分润百分比",
  13496. " $1.AddOrSubRate = $7; //浮动空间",
  13497. " $1.ProfitRateBase = $8; //分润比例基数",
  13498. " $1.Remark = $9; //备注",
  13499. " $1.TopUserId = $10; //顶级创客",
  13500. " $1.HelpAddOrSubRate = $11; //扶持期浮动空间",
  13501. " $1.HelpProfitPercent = $12; //扶持期创客预设分润百分比",
  13502. " $1.HelpProfitRate = $13; //扶持期创客预设分润比例",
  13503. " $1.HelpProfitRateBase = $14; //扶持期分润比例基数",
  13504. "}"
  13505. ]
  13506. },
  13507. "获取创客分润规则数量": {
  13508. "prefix": "ym-db-UserProfit-FindAndCount",
  13509. "body": [
  13510. "int $1 = db.UserProfit.Count(m => $2);",
  13511. ]
  13512. },
  13513. "添加创客分润规则": {
  13514. "prefix": "ym-db-UserProfit-Create",
  13515. "body": [
  13516. "db.UserProfit.Add(new UserProfit()",
  13517. "{",
  13518. " CreateDate = DateTime.Now,",
  13519. " UpdateDate = DateTime.Now,",
  13520. " UserId = $1, //创客",
  13521. " BrandId = $2, //品牌",
  13522. " CardType = $3, //交易卡类型",
  13523. " ProfitRate = $4, //创客预设分润比例",
  13524. " ProfitPercent = $5, //创客预设分润百分比",
  13525. " AddOrSubRate = $6, //浮动空间",
  13526. " ProfitRateBase = $7, //分润比例基数",
  13527. " Remark = $8, //备注",
  13528. " TopUserId = $9, //顶级创客",
  13529. " HelpAddOrSubRate = $10, //扶持期浮动空间",
  13530. " HelpProfitPercent = $11, //扶持期创客预设分润百分比",
  13531. " HelpProfitRate = $12, //扶持期创客预设分润比例",
  13532. " HelpProfitRateBase = $13, //扶持期分润比例基数",
  13533. "});"
  13534. ]
  13535. },"删除某个创客分润规则": {
  13536. "prefix": "ym-db-UserProfit-Delete",
  13537. "body": [
  13538. "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
  13539. "if ($1 != null)",
  13540. "{",
  13541. " db.UserProfit.Remove($1);",
  13542. "}"
  13543. ]
  13544. },
  13545. "查询创客预设分润列表": {
  13546. "prefix": "ym-db-UserProfitSet-Find",
  13547. "body": [
  13548. "List<UserProfitSet> $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13549. "foreach (UserProfitSet $3 in $1)",
  13550. "{",
  13551. "}"
  13552. ]
  13553. },
  13554. "查询创客预设分润列表,并取值": {
  13555. "prefix": "ym-db-UserProfitSet-FindWithData",
  13556. "body": [
  13557. "List<UserProfitSet> $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13558. "foreach (UserProfitSet $3 in $1)",
  13559. "{",
  13560. " int UserId = $3.UserId; //创客",
  13561. " int BrandId = $3.BrandId; //品牌",
  13562. " int CardType = $3.CardType; //交易卡类型",
  13563. " int HelpFlag = $3.HelpFlag; //扶持期标识",
  13564. " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例",
  13565. " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比",
  13566. " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间",
  13567. " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数",
  13568. " string Remark = $3.Remark; //备注",
  13569. " int TopUserId = $3.TopUserId; //顶级创客",
  13570. "}"
  13571. ]
  13572. },
  13573. "查询创客预设分润": {
  13574. "prefix": "ym-db-UserProfitSet-Exist",
  13575. "body": [
  13576. "bool $1 = db.UserProfitSet.Any(m => m.Id == $2);",
  13577. ]
  13578. },
  13579. "查询某个创客预设分润,并取值": {
  13580. "prefix": "ym-db-UserProfitSet-FindByPrimaryKey",
  13581. "body": [
  13582. "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
  13583. "if ($1 != null)",
  13584. "{",
  13585. " int UserId = $1.UserId; //创客",
  13586. " int BrandId = $1.BrandId; //品牌",
  13587. " int CardType = $1.CardType; //交易卡类型",
  13588. " int HelpFlag = $1.HelpFlag; //扶持期标识",
  13589. " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例",
  13590. " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比",
  13591. " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间",
  13592. " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数",
  13593. " string Remark = $1.Remark; //备注",
  13594. " int TopUserId = $1.TopUserId; //顶级创客",
  13595. "}"
  13596. ]
  13597. },
  13598. "查询某个创客预设分润,并赋值": {
  13599. "prefix": "ym-db-UserProfitSet-Update",
  13600. "body": [
  13601. "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
  13602. "if ($1 != null)",
  13603. "{",
  13604. " $1.UserId = $2; //创客",
  13605. " $1.BrandId = $3; //品牌",
  13606. " $1.CardType = $4; //交易卡类型",
  13607. " $1.HelpFlag = $5; //扶持期标识",
  13608. " $1.ProfitRate = $6; //创客预设分润比例",
  13609. " $1.ProfitPercent = $7; //创客预设分润百分比",
  13610. " $1.AddOrSubRate = $8; //浮动空间",
  13611. " $1.ProfitRateBase = $9; //分润比例基数",
  13612. " $1.Remark = $10; //备注",
  13613. " $1.TopUserId = $11; //顶级创客",
  13614. "}"
  13615. ]
  13616. },
  13617. "获取创客预设分润数量": {
  13618. "prefix": "ym-db-UserProfitSet-FindAndCount",
  13619. "body": [
  13620. "int $1 = db.UserProfitSet.Count(m => $2);",
  13621. ]
  13622. },
  13623. "添加创客预设分润": {
  13624. "prefix": "ym-db-UserProfitSet-Create",
  13625. "body": [
  13626. "db.UserProfitSet.Add(new UserProfitSet()",
  13627. "{",
  13628. " CreateDate = DateTime.Now,",
  13629. " UpdateDate = DateTime.Now,",
  13630. " UserId = $1, //创客",
  13631. " BrandId = $2, //品牌",
  13632. " CardType = $3, //交易卡类型",
  13633. " HelpFlag = $4, //扶持期标识",
  13634. " ProfitRate = $5, //创客预设分润比例",
  13635. " ProfitPercent = $6, //创客预设分润百分比",
  13636. " AddOrSubRate = $7, //浮动空间",
  13637. " ProfitRateBase = $8, //分润比例基数",
  13638. " Remark = $9, //备注",
  13639. " TopUserId = $10, //顶级创客",
  13640. "});"
  13641. ]
  13642. },"删除某个创客预设分润": {
  13643. "prefix": "ym-db-UserProfitSet-Delete",
  13644. "body": [
  13645. "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
  13646. "if ($1 != null)",
  13647. "{",
  13648. " db.UserProfitSet.Remove($1);",
  13649. "}"
  13650. ]
  13651. },
  13652. "查询创客分润补贴月汇总列表": {
  13653. "prefix": "ym-db-UserProfitSubsidySummary-Find",
  13654. "body": [
  13655. "List<UserProfitSubsidySummary> $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13656. "foreach (UserProfitSubsidySummary $3 in $1)",
  13657. "{",
  13658. "}"
  13659. ]
  13660. },
  13661. "查询创客分润补贴月汇总列表,并取值": {
  13662. "prefix": "ym-db-UserProfitSubsidySummary-FindWithData",
  13663. "body": [
  13664. "List<UserProfitSubsidySummary> $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13665. "foreach (UserProfitSubsidySummary $3 in $1)",
  13666. "{",
  13667. " int UserId = $3.UserId; //创客",
  13668. " int BrandId = $3.BrandId; //品牌",
  13669. " string TradeMonth = $3.TradeMonth; //交易月",
  13670. " string MgrNo = $3.MgrNo; //渠道经理编号",
  13671. " string MgrName = $3.MgrName; //渠道经理姓名",
  13672. " decimal SubsidyTotalProfit = $3.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额",
  13673. " decimal SubsidyJuniorProfit = $3.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  13674. " decimal SubsidyDirectProfit = $3.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  13675. " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
  13676. "}"
  13677. ]
  13678. },
  13679. "查询创客分润补贴月汇总": {
  13680. "prefix": "ym-db-UserProfitSubsidySummary-Exist",
  13681. "body": [
  13682. "bool $1 = db.UserProfitSubsidySummary.Any(m => m.Id == $2);",
  13683. ]
  13684. },
  13685. "查询某个创客分润补贴月汇总,并取值": {
  13686. "prefix": "ym-db-UserProfitSubsidySummary-FindByPrimaryKey",
  13687. "body": [
  13688. "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
  13689. "if ($1 != null)",
  13690. "{",
  13691. " int UserId = $1.UserId; //创客",
  13692. " int BrandId = $1.BrandId; //品牌",
  13693. " string TradeMonth = $1.TradeMonth; //交易月",
  13694. " string MgrNo = $1.MgrNo; //渠道经理编号",
  13695. " string MgrName = $1.MgrName; //渠道经理姓名",
  13696. " decimal SubsidyTotalProfit = $1.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额",
  13697. " decimal SubsidyJuniorProfit = $1.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  13698. " decimal SubsidyDirectProfit = $1.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  13699. " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
  13700. "}"
  13701. ]
  13702. },
  13703. "查询某个创客分润补贴月汇总,并赋值": {
  13704. "prefix": "ym-db-UserProfitSubsidySummary-Update",
  13705. "body": [
  13706. "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
  13707. "if ($1 != null)",
  13708. "{",
  13709. " $1.UserId = $2; //创客",
  13710. " $1.BrandId = $3; //品牌",
  13711. " $1.TradeMonth = $4; //交易月",
  13712. " $1.MgrNo = $5; //渠道经理编号",
  13713. " $1.MgrName = $6; //渠道经理姓名",
  13714. " $1.SubsidyTotalProfit = $7; //商户(非云闪付)贷记卡交易分润补贴总金额",
  13715. " $1.SubsidyJuniorProfit = $8; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  13716. " $1.SubsidyDirectProfit = $9; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  13717. " $1.CheckStatus = $10; //验证和同步账户状态",
  13718. "}"
  13719. ]
  13720. },
  13721. "获取创客分润补贴月汇总数量": {
  13722. "prefix": "ym-db-UserProfitSubsidySummary-FindAndCount",
  13723. "body": [
  13724. "int $1 = db.UserProfitSubsidySummary.Count(m => $2);",
  13725. ]
  13726. },
  13727. "添加创客分润补贴月汇总": {
  13728. "prefix": "ym-db-UserProfitSubsidySummary-Create",
  13729. "body": [
  13730. "db.UserProfitSubsidySummary.Add(new UserProfitSubsidySummary()",
  13731. "{",
  13732. " CreateDate = DateTime.Now,",
  13733. " UpdateDate = DateTime.Now,",
  13734. " UserId = $1, //创客",
  13735. " BrandId = $2, //品牌",
  13736. " TradeMonth = $3, //交易月",
  13737. " MgrNo = $4, //渠道经理编号",
  13738. " MgrName = $5, //渠道经理姓名",
  13739. " SubsidyTotalProfit = $6, //商户(非云闪付)贷记卡交易分润补贴总金额",
  13740. " SubsidyJuniorProfit = $7, //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  13741. " SubsidyDirectProfit = $8, //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  13742. " CheckStatus = $9, //验证和同步账户状态",
  13743. "});"
  13744. ]
  13745. },"删除某个创客分润补贴月汇总": {
  13746. "prefix": "ym-db-UserProfitSubsidySummary-Delete",
  13747. "body": [
  13748. "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
  13749. "if ($1 != null)",
  13750. "{",
  13751. " db.UserProfitSubsidySummary.Remove($1);",
  13752. "}"
  13753. ]
  13754. },
  13755. "查询创客职级信息列表": {
  13756. "prefix": "ym-db-UserRank-Find",
  13757. "body": [
  13758. "List<UserRank> $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13759. "foreach (UserRank $3 in $1)",
  13760. "{",
  13761. "}"
  13762. ]
  13763. },
  13764. "查询创客职级信息列表,并取值": {
  13765. "prefix": "ym-db-UserRank-FindWithData",
  13766. "body": [
  13767. "List<UserRank> $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13768. "foreach (UserRank $3 in $1)",
  13769. "{",
  13770. " int UserId = $3.UserId; //创客",
  13771. " int Rank = $3.Rank; //当前等级",
  13772. " int WhiteRank = $3.WhiteRank; //白名单等级",
  13773. " int NextRank = $3.NextRank; //下个等级",
  13774. " int StatYear = $3.StatYear; //统计年份",
  13775. " int StatMonth = $3.StatMonth; //统计月份",
  13776. " decimal TradeAmt = $3.TradeAmt; //团队交易总额",
  13777. " int ExceedVal = $3.ExceedVal; //超越值",
  13778. " ulong UpgradeFlag = $3.UpgradeFlag; //升级标识",
  13779. " DateTime OperateDate = $3.OperateDate; //操作时间",
  13780. "}"
  13781. ]
  13782. },
  13783. "查询创客职级信息": {
  13784. "prefix": "ym-db-UserRank-Exist",
  13785. "body": [
  13786. "bool $1 = db.UserRank.Any(m => m.Id == $2);",
  13787. ]
  13788. },
  13789. "查询某个创客职级信息,并取值": {
  13790. "prefix": "ym-db-UserRank-FindByPrimaryKey",
  13791. "body": [
  13792. "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
  13793. "if ($1 != null)",
  13794. "{",
  13795. " int UserId = $1.UserId; //创客",
  13796. " int Rank = $1.Rank; //当前等级",
  13797. " int WhiteRank = $1.WhiteRank; //白名单等级",
  13798. " int NextRank = $1.NextRank; //下个等级",
  13799. " int StatYear = $1.StatYear; //统计年份",
  13800. " int StatMonth = $1.StatMonth; //统计月份",
  13801. " decimal TradeAmt = $1.TradeAmt; //团队交易总额",
  13802. " int ExceedVal = $1.ExceedVal; //超越值",
  13803. " ulong UpgradeFlag = $1.UpgradeFlag; //升级标识",
  13804. " DateTime OperateDate = $1.OperateDate; //操作时间",
  13805. "}"
  13806. ]
  13807. },
  13808. "查询某个创客职级信息,并赋值": {
  13809. "prefix": "ym-db-UserRank-Update",
  13810. "body": [
  13811. "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
  13812. "if ($1 != null)",
  13813. "{",
  13814. " $1.UserId = $2; //创客",
  13815. " $1.Rank = $3; //当前等级",
  13816. " $1.WhiteRank = $4; //白名单等级",
  13817. " $1.NextRank = $5; //下个等级",
  13818. " $1.StatYear = $6; //统计年份",
  13819. " $1.StatMonth = $7; //统计月份",
  13820. " $1.TradeAmt = $8; //团队交易总额",
  13821. " $1.ExceedVal = $9; //超越值",
  13822. " $1.UpgradeFlag = $10; //升级标识",
  13823. " $1.OperateDate = $11; //操作时间",
  13824. "}"
  13825. ]
  13826. },
  13827. "获取创客职级信息数量": {
  13828. "prefix": "ym-db-UserRank-FindAndCount",
  13829. "body": [
  13830. "int $1 = db.UserRank.Count(m => $2);",
  13831. ]
  13832. },
  13833. "添加创客职级信息": {
  13834. "prefix": "ym-db-UserRank-Create",
  13835. "body": [
  13836. "db.UserRank.Add(new UserRank()",
  13837. "{",
  13838. " CreateDate = DateTime.Now,",
  13839. " UpdateDate = DateTime.Now,",
  13840. " UserId = $1, //创客",
  13841. " Rank = $2, //当前等级",
  13842. " WhiteRank = $3, //白名单等级",
  13843. " NextRank = $4, //下个等级",
  13844. " StatYear = $5, //统计年份",
  13845. " StatMonth = $6, //统计月份",
  13846. " TradeAmt = $7, //团队交易总额",
  13847. " ExceedVal = $8, //超越值",
  13848. " UpgradeFlag = $9, //升级标识",
  13849. " OperateDate = $10, //操作时间",
  13850. "});"
  13851. ]
  13852. },"删除某个创客职级信息": {
  13853. "prefix": "ym-db-UserRank-Delete",
  13854. "body": [
  13855. "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
  13856. "if ($1 != null)",
  13857. "{",
  13858. " db.UserRank.Remove($1);",
  13859. "}"
  13860. ]
  13861. },
  13862. "查询创客预设职级列表": {
  13863. "prefix": "ym-db-UserRankWhite-Find",
  13864. "body": [
  13865. "List<UserRankWhite> $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13866. "foreach (UserRankWhite $3 in $1)",
  13867. "{",
  13868. "}"
  13869. ]
  13870. },
  13871. "查询创客预设职级列表,并取值": {
  13872. "prefix": "ym-db-UserRankWhite-FindWithData",
  13873. "body": [
  13874. "List<UserRankWhite> $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13875. "foreach (UserRankWhite $3 in $1)",
  13876. "{",
  13877. " int UserId = $3.UserId; //用户",
  13878. " int Rank = $3.Rank; //当前等级类型",
  13879. "}"
  13880. ]
  13881. },
  13882. "查询创客预设职级": {
  13883. "prefix": "ym-db-UserRankWhite-Exist",
  13884. "body": [
  13885. "bool $1 = db.UserRankWhite.Any(m => m.Id == $2);",
  13886. ]
  13887. },
  13888. "查询某个创客预设职级,并取值": {
  13889. "prefix": "ym-db-UserRankWhite-FindByPrimaryKey",
  13890. "body": [
  13891. "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
  13892. "if ($1 != null)",
  13893. "{",
  13894. " int UserId = $1.UserId; //用户",
  13895. " int Rank = $1.Rank; //当前等级类型",
  13896. "}"
  13897. ]
  13898. },
  13899. "查询某个创客预设职级,并赋值": {
  13900. "prefix": "ym-db-UserRankWhite-Update",
  13901. "body": [
  13902. "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
  13903. "if ($1 != null)",
  13904. "{",
  13905. " $1.UserId = $2; //用户",
  13906. " $1.Rank = $3; //当前等级类型",
  13907. "}"
  13908. ]
  13909. },
  13910. "获取创客预设职级数量": {
  13911. "prefix": "ym-db-UserRankWhite-FindAndCount",
  13912. "body": [
  13913. "int $1 = db.UserRankWhite.Count(m => $2);",
  13914. ]
  13915. },
  13916. "添加创客预设职级": {
  13917. "prefix": "ym-db-UserRankWhite-Create",
  13918. "body": [
  13919. "db.UserRankWhite.Add(new UserRankWhite()",
  13920. "{",
  13921. " CreateDate = DateTime.Now,",
  13922. " UpdateDate = DateTime.Now,",
  13923. " UserId = $1, //用户",
  13924. " Rank = $2, //当前等级类型",
  13925. "});"
  13926. ]
  13927. },"删除某个创客预设职级": {
  13928. "prefix": "ym-db-UserRankWhite-Delete",
  13929. "body": [
  13930. "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
  13931. "if ($1 != null)",
  13932. "{",
  13933. " db.UserRankWhite.Remove($1);",
  13934. "}"
  13935. ]
  13936. },
  13937. "查询返利明细表列表": {
  13938. "prefix": "ym-db-UserRebateDetail-Find",
  13939. "body": [
  13940. "List<UserRebateDetail> $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13941. "foreach (UserRebateDetail $3 in $1)",
  13942. "{",
  13943. "}"
  13944. ]
  13945. },
  13946. "查询返利明细表列表,并取值": {
  13947. "prefix": "ym-db-UserRebateDetail-FindWithData",
  13948. "body": [
  13949. "List<UserRebateDetail> $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13950. "foreach (UserRebateDetail $3 in $1)",
  13951. "{",
  13952. " string TradeMonth = $3.TradeMonth; //交易月份",
  13953. " string TradeDate = $3.TradeDate; //达标日期",
  13954. " int UserId = $3.UserId; //创客",
  13955. " string MgrNo = $3.MgrNo; //渠道经理编号",
  13956. " string MgrName = $3.MgrName; //渠道经理姓名",
  13957. " int ProductType = $3.ProductType; //产品类型",
  13958. " string ProductName = $3.ProductName; //产品名称",
  13959. " int MerchantId = $3.MerchantId; //商户",
  13960. " string ChannelMerNo = $3.ChannelMerNo; //渠道商户编号",
  13961. " int RebateType = $3.RebateType; //返利类型",
  13962. " int RebateMonthCount = $3.RebateMonthCount; //返利周期数",
  13963. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  13964. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  13965. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  13966. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额",
  13967. " string RebateRewardNo = $3.RebateRewardNo; //达标返利单号",
  13968. " string Remark = $3.Remark; //备注",
  13969. "}"
  13970. ]
  13971. },
  13972. "查询返利明细表": {
  13973. "prefix": "ym-db-UserRebateDetail-Exist",
  13974. "body": [
  13975. "bool $1 = db.UserRebateDetail.Any(m => m.Id == $2);",
  13976. ]
  13977. },
  13978. "查询某个返利明细表,并取值": {
  13979. "prefix": "ym-db-UserRebateDetail-FindByPrimaryKey",
  13980. "body": [
  13981. "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
  13982. "if ($1 != null)",
  13983. "{",
  13984. " string TradeMonth = $1.TradeMonth; //交易月份",
  13985. " string TradeDate = $1.TradeDate; //达标日期",
  13986. " int UserId = $1.UserId; //创客",
  13987. " string MgrNo = $1.MgrNo; //渠道经理编号",
  13988. " string MgrName = $1.MgrName; //渠道经理姓名",
  13989. " int ProductType = $1.ProductType; //产品类型",
  13990. " string ProductName = $1.ProductName; //产品名称",
  13991. " int MerchantId = $1.MerchantId; //商户",
  13992. " string ChannelMerNo = $1.ChannelMerNo; //渠道商户编号",
  13993. " int RebateType = $1.RebateType; //返利类型",
  13994. " int RebateMonthCount = $1.RebateMonthCount; //返利周期数",
  13995. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  13996. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  13997. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  13998. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额",
  13999. " string RebateRewardNo = $1.RebateRewardNo; //达标返利单号",
  14000. " string Remark = $1.Remark; //备注",
  14001. "}"
  14002. ]
  14003. },
  14004. "查询某个返利明细表,并赋值": {
  14005. "prefix": "ym-db-UserRebateDetail-Update",
  14006. "body": [
  14007. "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
  14008. "if ($1 != null)",
  14009. "{",
  14010. " $1.TradeMonth = $2; //交易月份",
  14011. " $1.TradeDate = $3; //达标日期",
  14012. " $1.UserId = $4; //创客",
  14013. " $1.MgrNo = $5; //渠道经理编号",
  14014. " $1.MgrName = $6; //渠道经理姓名",
  14015. " $1.ProductType = $7; //产品类型",
  14016. " $1.ProductName = $8; //产品名称",
  14017. " $1.MerchantId = $9; //商户",
  14018. " $1.ChannelMerNo = $10; //渠道商户编号",
  14019. " $1.RebateType = $11; //返利类型",
  14020. " $1.RebateMonthCount = $12; //返利周期数",
  14021. " $1.CreditTradeAmt = $13; //贷记卡交易总金额",
  14022. " $1.DebitTradeAmt = $14; //借记卡交易总金额",
  14023. " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额",
  14024. " $1.DebitRewardAmount = $16; //借记卡交易奖励金额",
  14025. " $1.RebateRewardNo = $17; //达标返利单号",
  14026. " $1.Remark = $18; //备注",
  14027. "}"
  14028. ]
  14029. },
  14030. "获取返利明细表数量": {
  14031. "prefix": "ym-db-UserRebateDetail-FindAndCount",
  14032. "body": [
  14033. "int $1 = db.UserRebateDetail.Count(m => $2);",
  14034. ]
  14035. },
  14036. "添加返利明细表": {
  14037. "prefix": "ym-db-UserRebateDetail-Create",
  14038. "body": [
  14039. "db.UserRebateDetail.Add(new UserRebateDetail()",
  14040. "{",
  14041. " CreateDate = DateTime.Now,",
  14042. " UpdateDate = DateTime.Now,",
  14043. " TradeMonth = $1, //交易月份",
  14044. " TradeDate = $2, //达标日期",
  14045. " UserId = $3, //创客",
  14046. " MgrNo = $4, //渠道经理编号",
  14047. " MgrName = $5, //渠道经理姓名",
  14048. " ProductType = $6, //产品类型",
  14049. " ProductName = $7, //产品名称",
  14050. " MerchantId = $8, //商户",
  14051. " ChannelMerNo = $9, //渠道商户编号",
  14052. " RebateType = $10, //返利类型",
  14053. " RebateMonthCount = $11, //返利周期数",
  14054. " CreditTradeAmt = $12, //贷记卡交易总金额",
  14055. " DebitTradeAmt = $13, //借记卡交易总金额",
  14056. " CreditRewardAmount = $14, //贷记卡交易奖励金额",
  14057. " DebitRewardAmount = $15, //借记卡交易奖励金额",
  14058. " RebateRewardNo = $16, //达标返利单号",
  14059. " Remark = $17, //备注",
  14060. "});"
  14061. ]
  14062. },"删除某个返利明细表": {
  14063. "prefix": "ym-db-UserRebateDetail-Delete",
  14064. "body": [
  14065. "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
  14066. "if ($1 != null)",
  14067. "{",
  14068. " db.UserRebateDetail.Remove($1);",
  14069. "}"
  14070. ]
  14071. },
  14072. "查询创客列表": {
  14073. "prefix": "ym-db-Users-Find",
  14074. "body": [
  14075. "List<Users> $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14076. "foreach (Users $3 in $1)",
  14077. "{",
  14078. "}"
  14079. ]
  14080. },
  14081. "查询创客列表,并取值": {
  14082. "prefix": "ym-db-Users-FindWithData",
  14083. "body": [
  14084. "List<Users> $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14085. "foreach (Users $3 in $1)",
  14086. "{",
  14087. " string NickName = $3.NickName; //昵称",
  14088. " string RealName = $3.RealName; //真实姓名",
  14089. " int Sex = $3.Sex; //性别",
  14090. " string CertId = $3.CertId; //身份证号",
  14091. " string Areas = $3.Areas; //所在地区",
  14092. " string Address = $3.Address; //详细地址",
  14093. " string HeadPhoto = $3.HeadPhoto; //头像",
  14094. " int ParentUserId = $3.ParentUserId; //父级Id",
  14095. " int UserLevel = $3.UserLevel; //创客等级",
  14096. " string CardNo = $3.CardNo; //卡号",
  14097. " string Mobile = $3.Mobile; //手机号",
  14098. " string GroupId = $3.GroupId; //分组",
  14099. " string Tags = $3.Tags; //标签",
  14100. " string ParentNav = $3.ParentNav; //父级集合",
  14101. " string LoginPwd = $3.LoginPwd; //登录密码",
  14102. " string PayPwd = $3.PayPwd; //支付密码",
  14103. " string CarIds = $3.CarIds; //购物车Id集合",
  14104. " string OpenId = $3.OpenId; //OpenId",
  14105. " string AlipayUserId = $3.AlipayUserId; //支付宝用户Id",
  14106. " ulong IsNewUser = $3.IsNewUser; //是否新创客",
  14107. " string IdCardEndNo = $3.IdCardEndNo; //身份证后四位",
  14108. " string SettleBankCardNo = $3.SettleBankCardNo; //结算银行卡号",
  14109. " string SettleBankName = $3.SettleBankName; //结算银行名称",
  14110. " string ReferenceCode = $3.ReferenceCode; //推荐码",
  14111. " int ReferralUserId = $3.ReferralUserId; //引荐人",
  14112. " string CardRecCode = $3.CardRecCode; //办卡分享图片地址",
  14113. " string ReferenceQrCode = $3.ReferenceQrCode; //推广二维码地址",
  14114. " string SignImgUrl = $3.SignImgUrl; //特定协议签名图片地址",
  14115. " int UserType = $3.UserType; //创客类型",
  14116. " int UserProperty = $3.UserProperty; //创客属性",
  14117. " int MerchantType = $3.MerchantType; //商户创客类型",
  14118. " DateTime MerchantDate = $3.MerchantDate; //成为商户型创客时间",
  14119. " int LoginStatus = $3.LoginStatus; //登录状态",
  14120. " int AuditStatus = $3.AuditStatus; //审核状态",
  14121. " ulong LockStatus = $3.LockStatus; //锁定状态",
  14122. " ulong AuthFlag = $3.AuthFlag; //实名标识",
  14123. " DateTime AuthDate = $3.AuthDate; //实名时间",
  14124. " ulong RiskFlag = $3.RiskFlag; //风控标识",
  14125. " string RiskRemark = $3.RiskRemark; //风控备注",
  14126. " string RreezeRemark = $3.RreezeRemark; //账户冻结备注信息",
  14127. " string SettleRemark = $3.SettleRemark; //结算金额调整备注",
  14128. " string AccessToken = $3.AccessToken; //创客登录授权令牌",
  14129. " DateTime ExpiredDate = $3.ExpiredDate; //过期时间",
  14130. " string DeviceId = $3.DeviceId; //设备ID",
  14131. " string DeviceToken = $3.DeviceToken; //设备令牌",
  14132. " string CertFrontImage = $3.CertFrontImage; //身份证正面照",
  14133. " string CertReverseImage = $3.CertReverseImage; //身份证反面照",
  14134. " string HandCertImage = $3.HandCertImage; //手持身份证",
  14135. " string BankCardPositiveImage = $3.BankCardPositiveImage; //银行卡正面照",
  14136. " string Remark = $3.Remark; //备注信息",
  14137. " string HandPwd = $3.HandPwd; //手势密码",
  14138. " string MakerCode = $3.MakerCode; //创客编号",
  14139. " decimal SettleAmount = $3.SettleAmount; //最低结算金额",
  14140. " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额",
  14141. " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额",
  14142. " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励",
  14143. " DateTime CitySetDate = $3.CitySetDate; //省市设置时间",
  14144. "}"
  14145. ]
  14146. },
  14147. "查询创客": {
  14148. "prefix": "ym-db-Users-Exist",
  14149. "body": [
  14150. "bool $1 = db.Users.Any(m => m.Id == $2);",
  14151. ]
  14152. },
  14153. "查询某个创客,并取值": {
  14154. "prefix": "ym-db-Users-FindByPrimaryKey",
  14155. "body": [
  14156. "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
  14157. "if ($1 != null)",
  14158. "{",
  14159. " string NickName = $1.NickName; //昵称",
  14160. " string RealName = $1.RealName; //真实姓名",
  14161. " int Sex = $1.Sex; //性别",
  14162. " string CertId = $1.CertId; //身份证号",
  14163. " string Areas = $1.Areas; //所在地区",
  14164. " string Address = $1.Address; //详细地址",
  14165. " string HeadPhoto = $1.HeadPhoto; //头像",
  14166. " int ParentUserId = $1.ParentUserId; //父级Id",
  14167. " int UserLevel = $1.UserLevel; //创客等级",
  14168. " string CardNo = $1.CardNo; //卡号",
  14169. " string Mobile = $1.Mobile; //手机号",
  14170. " string GroupId = $1.GroupId; //分组",
  14171. " string Tags = $1.Tags; //标签",
  14172. " string ParentNav = $1.ParentNav; //父级集合",
  14173. " string LoginPwd = $1.LoginPwd; //登录密码",
  14174. " string PayPwd = $1.PayPwd; //支付密码",
  14175. " string CarIds = $1.CarIds; //购物车Id集合",
  14176. " string OpenId = $1.OpenId; //OpenId",
  14177. " string AlipayUserId = $1.AlipayUserId; //支付宝用户Id",
  14178. " ulong IsNewUser = $1.IsNewUser; //是否新创客",
  14179. " string IdCardEndNo = $1.IdCardEndNo; //身份证后四位",
  14180. " string SettleBankCardNo = $1.SettleBankCardNo; //结算银行卡号",
  14181. " string SettleBankName = $1.SettleBankName; //结算银行名称",
  14182. " string ReferenceCode = $1.ReferenceCode; //推荐码",
  14183. " int ReferralUserId = $1.ReferralUserId; //引荐人",
  14184. " string CardRecCode = $1.CardRecCode; //办卡分享图片地址",
  14185. " string ReferenceQrCode = $1.ReferenceQrCode; //推广二维码地址",
  14186. " string SignImgUrl = $1.SignImgUrl; //特定协议签名图片地址",
  14187. " int UserType = $1.UserType; //创客类型",
  14188. " int UserProperty = $1.UserProperty; //创客属性",
  14189. " int MerchantType = $1.MerchantType; //商户创客类型",
  14190. " DateTime MerchantDate = $1.MerchantDate; //成为商户型创客时间",
  14191. " int LoginStatus = $1.LoginStatus; //登录状态",
  14192. " int AuditStatus = $1.AuditStatus; //审核状态",
  14193. " ulong LockStatus = $1.LockStatus; //锁定状态",
  14194. " ulong AuthFlag = $1.AuthFlag; //实名标识",
  14195. " DateTime AuthDate = $1.AuthDate; //实名时间",
  14196. " ulong RiskFlag = $1.RiskFlag; //风控标识",
  14197. " string RiskRemark = $1.RiskRemark; //风控备注",
  14198. " string RreezeRemark = $1.RreezeRemark; //账户冻结备注信息",
  14199. " string SettleRemark = $1.SettleRemark; //结算金额调整备注",
  14200. " string AccessToken = $1.AccessToken; //创客登录授权令牌",
  14201. " DateTime ExpiredDate = $1.ExpiredDate; //过期时间",
  14202. " string DeviceId = $1.DeviceId; //设备ID",
  14203. " string DeviceToken = $1.DeviceToken; //设备令牌",
  14204. " string CertFrontImage = $1.CertFrontImage; //身份证正面照",
  14205. " string CertReverseImage = $1.CertReverseImage; //身份证反面照",
  14206. " string HandCertImage = $1.HandCertImage; //手持身份证",
  14207. " string BankCardPositiveImage = $1.BankCardPositiveImage; //银行卡正面照",
  14208. " string Remark = $1.Remark; //备注信息",
  14209. " string HandPwd = $1.HandPwd; //手势密码",
  14210. " string MakerCode = $1.MakerCode; //创客编号",
  14211. " decimal SettleAmount = $1.SettleAmount; //最低结算金额",
  14212. " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额",
  14213. " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额",
  14214. " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励",
  14215. " DateTime CitySetDate = $1.CitySetDate; //省市设置时间",
  14216. "}"
  14217. ]
  14218. },
  14219. "查询某个创客,并赋值": {
  14220. "prefix": "ym-db-Users-Update",
  14221. "body": [
  14222. "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
  14223. "if ($1 != null)",
  14224. "{",
  14225. " $1.NickName = $2; //昵称",
  14226. " $1.RealName = $3; //真实姓名",
  14227. " $1.Sex = $4; //性别",
  14228. " $1.CertId = $5; //身份证号",
  14229. " $1.Areas = $6; //所在地区",
  14230. " $1.Address = $7; //详细地址",
  14231. " $1.HeadPhoto = $8; //头像",
  14232. " $1.ParentUserId = $9; //父级Id",
  14233. " $1.UserLevel = $10; //创客等级",
  14234. " $1.CardNo = $11; //卡号",
  14235. " $1.Mobile = $12; //手机号",
  14236. " $1.GroupId = $13; //分组",
  14237. " $1.Tags = $14; //标签",
  14238. " $1.ParentNav = $15; //父级集合",
  14239. " $1.LoginPwd = $16; //登录密码",
  14240. " $1.PayPwd = $17; //支付密码",
  14241. " $1.CarIds = $18; //购物车Id集合",
  14242. " $1.OpenId = $19; //OpenId",
  14243. " $1.AlipayUserId = $20; //支付宝用户Id",
  14244. " $1.IsNewUser = $21; //是否新创客",
  14245. " $1.IdCardEndNo = $22; //身份证后四位",
  14246. " $1.SettleBankCardNo = $23; //结算银行卡号",
  14247. " $1.SettleBankName = $24; //结算银行名称",
  14248. " $1.ReferenceCode = $25; //推荐码",
  14249. " $1.ReferralUserId = $26; //引荐人",
  14250. " $1.CardRecCode = $27; //办卡分享图片地址",
  14251. " $1.ReferenceQrCode = $28; //推广二维码地址",
  14252. " $1.SignImgUrl = $29; //特定协议签名图片地址",
  14253. " $1.UserType = $30; //创客类型",
  14254. " $1.UserProperty = $31; //创客属性",
  14255. " $1.MerchantType = $32; //商户创客类型",
  14256. " $1.MerchantDate = $33; //成为商户型创客时间",
  14257. " $1.LoginStatus = $34; //登录状态",
  14258. " $1.AuditStatus = $35; //审核状态",
  14259. " $1.LockStatus = $36; //锁定状态",
  14260. " $1.AuthFlag = $37; //实名标识",
  14261. " $1.AuthDate = $38; //实名时间",
  14262. " $1.RiskFlag = $39; //风控标识",
  14263. " $1.RiskRemark = $40; //风控备注",
  14264. " $1.RreezeRemark = $41; //账户冻结备注信息",
  14265. " $1.SettleRemark = $42; //结算金额调整备注",
  14266. " $1.AccessToken = $43; //创客登录授权令牌",
  14267. " $1.ExpiredDate = $44; //过期时间",
  14268. " $1.DeviceId = $45; //设备ID",
  14269. " $1.DeviceToken = $46; //设备令牌",
  14270. " $1.CertFrontImage = $47; //身份证正面照",
  14271. " $1.CertReverseImage = $48; //身份证反面照",
  14272. " $1.HandCertImage = $49; //手持身份证",
  14273. " $1.BankCardPositiveImage = $50; //银行卡正面照",
  14274. " $1.Remark = $51; //备注信息",
  14275. " $1.HandPwd = $52; //手势密码",
  14276. " $1.MakerCode = $53; //创客编号",
  14277. " $1.SettleAmount = $54; //最低结算金额",
  14278. " $1.CashFreezeAmt = $55; //提现冻结金额",
  14279. " $1.ActiveRewardAmount = $56; //激活奖励金额",
  14280. " $1.ProfitRewardRate = $57; //分润奖励",
  14281. " $1.CitySetDate = $58; //省市设置时间",
  14282. "}"
  14283. ]
  14284. },
  14285. "获取创客数量": {
  14286. "prefix": "ym-db-Users-FindAndCount",
  14287. "body": [
  14288. "int $1 = db.Users.Count(m => $2);",
  14289. ]
  14290. },
  14291. "添加创客": {
  14292. "prefix": "ym-db-Users-Create",
  14293. "body": [
  14294. "db.Users.Add(new Users()",
  14295. "{",
  14296. " CreateDate = DateTime.Now,",
  14297. " UpdateDate = DateTime.Now,",
  14298. " NickName = $1, //昵称",
  14299. " RealName = $2, //真实姓名",
  14300. " Sex = $3, //性别",
  14301. " CertId = $4, //身份证号",
  14302. " Areas = $5, //所在地区",
  14303. " Address = $6, //详细地址",
  14304. " HeadPhoto = $7, //头像",
  14305. " ParentUserId = $8, //父级Id",
  14306. " UserLevel = $9, //创客等级",
  14307. " CardNo = $10, //卡号",
  14308. " Mobile = $11, //手机号",
  14309. " GroupId = $12, //分组",
  14310. " Tags = $13, //标签",
  14311. " ParentNav = $14, //父级集合",
  14312. " LoginPwd = $15, //登录密码",
  14313. " PayPwd = $16, //支付密码",
  14314. " CarIds = $17, //购物车Id集合",
  14315. " OpenId = $18, //OpenId",
  14316. " AlipayUserId = $19, //支付宝用户Id",
  14317. " IsNewUser = $20, //是否新创客",
  14318. " IdCardEndNo = $21, //身份证后四位",
  14319. " SettleBankCardNo = $22, //结算银行卡号",
  14320. " SettleBankName = $23, //结算银行名称",
  14321. " ReferenceCode = $24, //推荐码",
  14322. " ReferralUserId = $25, //引荐人",
  14323. " CardRecCode = $26, //办卡分享图片地址",
  14324. " ReferenceQrCode = $27, //推广二维码地址",
  14325. " SignImgUrl = $28, //特定协议签名图片地址",
  14326. " UserType = $29, //创客类型",
  14327. " UserProperty = $30, //创客属性",
  14328. " MerchantType = $31, //商户创客类型",
  14329. " MerchantDate = $32, //成为商户型创客时间",
  14330. " LoginStatus = $33, //登录状态",
  14331. " AuditStatus = $34, //审核状态",
  14332. " LockStatus = $35, //锁定状态",
  14333. " AuthFlag = $36, //实名标识",
  14334. " AuthDate = $37, //实名时间",
  14335. " RiskFlag = $38, //风控标识",
  14336. " RiskRemark = $39, //风控备注",
  14337. " RreezeRemark = $40, //账户冻结备注信息",
  14338. " SettleRemark = $41, //结算金额调整备注",
  14339. " AccessToken = $42, //创客登录授权令牌",
  14340. " ExpiredDate = $43, //过期时间",
  14341. " DeviceId = $44, //设备ID",
  14342. " DeviceToken = $45, //设备令牌",
  14343. " CertFrontImage = $46, //身份证正面照",
  14344. " CertReverseImage = $47, //身份证反面照",
  14345. " HandCertImage = $48, //手持身份证",
  14346. " BankCardPositiveImage = $49, //银行卡正面照",
  14347. " Remark = $50, //备注信息",
  14348. " HandPwd = $51, //手势密码",
  14349. " MakerCode = $52, //创客编号",
  14350. " SettleAmount = $53, //最低结算金额",
  14351. " CashFreezeAmt = $54, //提现冻结金额",
  14352. " ActiveRewardAmount = $55, //激活奖励金额",
  14353. " ProfitRewardRate = $56, //分润奖励",
  14354. " CitySetDate = $57, //省市设置时间",
  14355. "});"
  14356. ]
  14357. },"删除某个创客": {
  14358. "prefix": "ym-db-Users-Delete",
  14359. "body": [
  14360. "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
  14361. "if ($1 != null)",
  14362. "{",
  14363. " db.Users.Remove($1);",
  14364. "}"
  14365. ]
  14366. },
  14367. "查询机具激活限制信息列表": {
  14368. "prefix": "ym-db-UserSnActInfo-Find",
  14369. "body": [
  14370. "List<UserSnActInfo> $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14371. "foreach (UserSnActInfo $3 in $1)",
  14372. "{",
  14373. "}"
  14374. ]
  14375. },
  14376. "查询机具激活限制信息列表,并取值": {
  14377. "prefix": "ym-db-UserSnActInfo-FindWithData",
  14378. "body": [
  14379. "List<UserSnActInfo> $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14380. "foreach (UserSnActInfo $3 in $1)",
  14381. "{",
  14382. " int UserId = $3.UserId; //创客",
  14383. " int BrandId = $3.BrandId; //产品类型",
  14384. " string SnNo = $3.SnNo; //SN编号",
  14385. " int SnType = $3.SnType; //SN机具类型",
  14386. " DateTime SnShipDate = $3.SnShipDate; //发货时间",
  14387. " int SnStoreId = $3.SnStoreId; //SN仓库",
  14388. " string EffectStartActDate = $3.EffectStartActDate; //有效开始激活时间",
  14389. " string EffectEndActDate = $3.EffectEndActDate; //有效结束激活时间",
  14390. " string EffectStartCycleDate = $3.EffectStartCycleDate; //有效开始循环时间",
  14391. " string EffectEndCycleDate = $3.EffectEndCycleDate; //有效结束循环时间",
  14392. " int ActUserId = $3.ActUserId; //激活奖励创客",
  14393. " int ActiveStatus = $3.ActiveStatus; //商户激活状态",
  14394. " string StandardDate = $3.StandardDate; //激活日期",
  14395. " string SourceSnNo = $3.SourceSnNo; //源SN编号",
  14396. " int SourceSnType = $3.SourceSnType; //源SN机具类型",
  14397. " DateTime SourceShipDate = $3.SourceShipDate; //源SN发货时间",
  14398. " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库",
  14399. " string Remark = $3.Remark; //备注",
  14400. "}"
  14401. ]
  14402. },
  14403. "查询机具激活限制信息": {
  14404. "prefix": "ym-db-UserSnActInfo-Exist",
  14405. "body": [
  14406. "bool $1 = db.UserSnActInfo.Any(m => m.Id == $2);",
  14407. ]
  14408. },
  14409. "查询某个机具激活限制信息,并取值": {
  14410. "prefix": "ym-db-UserSnActInfo-FindByPrimaryKey",
  14411. "body": [
  14412. "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
  14413. "if ($1 != null)",
  14414. "{",
  14415. " int UserId = $1.UserId; //创客",
  14416. " int BrandId = $1.BrandId; //产品类型",
  14417. " string SnNo = $1.SnNo; //SN编号",
  14418. " int SnType = $1.SnType; //SN机具类型",
  14419. " DateTime SnShipDate = $1.SnShipDate; //发货时间",
  14420. " int SnStoreId = $1.SnStoreId; //SN仓库",
  14421. " string EffectStartActDate = $1.EffectStartActDate; //有效开始激活时间",
  14422. " string EffectEndActDate = $1.EffectEndActDate; //有效结束激活时间",
  14423. " string EffectStartCycleDate = $1.EffectStartCycleDate; //有效开始循环时间",
  14424. " string EffectEndCycleDate = $1.EffectEndCycleDate; //有效结束循环时间",
  14425. " int ActUserId = $1.ActUserId; //激活奖励创客",
  14426. " int ActiveStatus = $1.ActiveStatus; //商户激活状态",
  14427. " string StandardDate = $1.StandardDate; //激活日期",
  14428. " string SourceSnNo = $1.SourceSnNo; //源SN编号",
  14429. " int SourceSnType = $1.SourceSnType; //源SN机具类型",
  14430. " DateTime SourceShipDate = $1.SourceShipDate; //源SN发货时间",
  14431. " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库",
  14432. " string Remark = $1.Remark; //备注",
  14433. "}"
  14434. ]
  14435. },
  14436. "查询某个机具激活限制信息,并赋值": {
  14437. "prefix": "ym-db-UserSnActInfo-Update",
  14438. "body": [
  14439. "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
  14440. "if ($1 != null)",
  14441. "{",
  14442. " $1.UserId = $2; //创客",
  14443. " $1.BrandId = $3; //产品类型",
  14444. " $1.SnNo = $4; //SN编号",
  14445. " $1.SnType = $5; //SN机具类型",
  14446. " $1.SnShipDate = $6; //发货时间",
  14447. " $1.SnStoreId = $7; //SN仓库",
  14448. " $1.EffectStartActDate = $8; //有效开始激活时间",
  14449. " $1.EffectEndActDate = $9; //有效结束激活时间",
  14450. " $1.EffectStartCycleDate = $10; //有效开始循环时间",
  14451. " $1.EffectEndCycleDate = $11; //有效结束循环时间",
  14452. " $1.ActUserId = $12; //激活奖励创客",
  14453. " $1.ActiveStatus = $13; //商户激活状态",
  14454. " $1.StandardDate = $14; //激活日期",
  14455. " $1.SourceSnNo = $15; //源SN编号",
  14456. " $1.SourceSnType = $16; //源SN机具类型",
  14457. " $1.SourceShipDate = $17; //源SN发货时间",
  14458. " $1.SourceStoreId = $18; //源SN发货你仓库",
  14459. " $1.Remark = $19; //备注",
  14460. "}"
  14461. ]
  14462. },
  14463. "获取机具激活限制信息数量": {
  14464. "prefix": "ym-db-UserSnActInfo-FindAndCount",
  14465. "body": [
  14466. "int $1 = db.UserSnActInfo.Count(m => $2);",
  14467. ]
  14468. },
  14469. "添加机具激活限制信息": {
  14470. "prefix": "ym-db-UserSnActInfo-Create",
  14471. "body": [
  14472. "db.UserSnActInfo.Add(new UserSnActInfo()",
  14473. "{",
  14474. " CreateDate = DateTime.Now,",
  14475. " UpdateDate = DateTime.Now,",
  14476. " UserId = $1, //创客",
  14477. " BrandId = $2, //产品类型",
  14478. " SnNo = $3, //SN编号",
  14479. " SnType = $4, //SN机具类型",
  14480. " SnShipDate = $5, //发货时间",
  14481. " SnStoreId = $6, //SN仓库",
  14482. " EffectStartActDate = $7, //有效开始激活时间",
  14483. " EffectEndActDate = $8, //有效结束激活时间",
  14484. " EffectStartCycleDate = $9, //有效开始循环时间",
  14485. " EffectEndCycleDate = $10, //有效结束循环时间",
  14486. " ActUserId = $11, //激活奖励创客",
  14487. " ActiveStatus = $12, //商户激活状态",
  14488. " StandardDate = $13, //激活日期",
  14489. " SourceSnNo = $14, //源SN编号",
  14490. " SourceSnType = $15, //源SN机具类型",
  14491. " SourceShipDate = $16, //源SN发货时间",
  14492. " SourceStoreId = $17, //源SN发货你仓库",
  14493. " Remark = $18, //备注",
  14494. "});"
  14495. ]
  14496. },"删除某个机具激活限制信息": {
  14497. "prefix": "ym-db-UserSnActInfo-Delete",
  14498. "body": [
  14499. "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
  14500. "if ($1 != null)",
  14501. "{",
  14502. " db.UserSnActInfo.Remove($1);",
  14503. "}"
  14504. ]
  14505. },
  14506. "查询创客机具延迟变动明细表列表": {
  14507. "prefix": "ym-db-UserSnDelayChange-Find",
  14508. "body": [
  14509. "List<UserSnDelayChange> $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14510. "foreach (UserSnDelayChange $3 in $1)",
  14511. "{",
  14512. "}"
  14513. ]
  14514. },
  14515. "查询创客机具延迟变动明细表列表,并取值": {
  14516. "prefix": "ym-db-UserSnDelayChange-FindWithData",
  14517. "body": [
  14518. "List<UserSnDelayChange> $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14519. "foreach (UserSnDelayChange $3 in $1)",
  14520. "{",
  14521. " int UserId = $3.UserId; //创客",
  14522. " int BrandId = $3.BrandId; //品牌",
  14523. " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
  14524. " string SnNo = $3.SnNo; //SN编号",
  14525. " int SnType = $3.SnType; //SN机具类型",
  14526. " int SnStoreId = $3.SnStoreId; //发货仓库",
  14527. " string InitCycleDate = $3.InitCycleDate; //初始循环截止时间",
  14528. " string BeforeEndCycleDate = $3.BeforeEndCycleDate; //变动前循环截止时间",
  14529. " string AfterEndCycleDate = $3.AfterEndCycleDate; //变动后循环截止时间",
  14530. " int RecUserId = $3.RecUserId; //招募创客",
  14531. " int SnDelayDay = $3.SnDelayDay; //机具延时天数",
  14532. " int ActivityRuleId = $3.ActivityRuleId; //拉新活动",
  14533. " string SourceSnNo = $3.SourceSnNo; //源SN编号",
  14534. " int SourceSnType = $3.SourceSnType; //源SN类型",
  14535. " DateTime SourceSnShipDate = $3.SourceSnShipDate; //源SN发货时间",
  14536. " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库",
  14537. " string Remark = $3.Remark; //备注",
  14538. "}"
  14539. ]
  14540. },
  14541. "查询创客机具延迟变动明细表": {
  14542. "prefix": "ym-db-UserSnDelayChange-Exist",
  14543. "body": [
  14544. "bool $1 = db.UserSnDelayChange.Any(m => m.Id == $2);",
  14545. ]
  14546. },
  14547. "查询某个创客机具延迟变动明细表,并取值": {
  14548. "prefix": "ym-db-UserSnDelayChange-FindByPrimaryKey",
  14549. "body": [
  14550. "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
  14551. "if ($1 != null)",
  14552. "{",
  14553. " int UserId = $1.UserId; //创客",
  14554. " int BrandId = $1.BrandId; //品牌",
  14555. " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
  14556. " string SnNo = $1.SnNo; //SN编号",
  14557. " int SnType = $1.SnType; //SN机具类型",
  14558. " int SnStoreId = $1.SnStoreId; //发货仓库",
  14559. " string InitCycleDate = $1.InitCycleDate; //初始循环截止时间",
  14560. " string BeforeEndCycleDate = $1.BeforeEndCycleDate; //变动前循环截止时间",
  14561. " string AfterEndCycleDate = $1.AfterEndCycleDate; //变动后循环截止时间",
  14562. " int RecUserId = $1.RecUserId; //招募创客",
  14563. " int SnDelayDay = $1.SnDelayDay; //机具延时天数",
  14564. " int ActivityRuleId = $1.ActivityRuleId; //拉新活动",
  14565. " string SourceSnNo = $1.SourceSnNo; //源SN编号",
  14566. " int SourceSnType = $1.SourceSnType; //源SN类型",
  14567. " DateTime SourceSnShipDate = $1.SourceSnShipDate; //源SN发货时间",
  14568. " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库",
  14569. " string Remark = $1.Remark; //备注",
  14570. "}"
  14571. ]
  14572. },
  14573. "查询某个创客机具延迟变动明细表,并赋值": {
  14574. "prefix": "ym-db-UserSnDelayChange-Update",
  14575. "body": [
  14576. "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
  14577. "if ($1 != null)",
  14578. "{",
  14579. " $1.UserId = $2; //创客",
  14580. " $1.BrandId = $3; //品牌",
  14581. " $1.ChangeRecordNo = $4; //变更记录单号",
  14582. " $1.SnNo = $5; //SN编号",
  14583. " $1.SnType = $6; //SN机具类型",
  14584. " $1.SnStoreId = $7; //发货仓库",
  14585. " $1.InitCycleDate = $8; //初始循环截止时间",
  14586. " $1.BeforeEndCycleDate = $9; //变动前循环截止时间",
  14587. " $1.AfterEndCycleDate = $10; //变动后循环截止时间",
  14588. " $1.RecUserId = $11; //招募创客",
  14589. " $1.SnDelayDay = $12; //机具延时天数",
  14590. " $1.ActivityRuleId = $13; //拉新活动",
  14591. " $1.SourceSnNo = $14; //源SN编号",
  14592. " $1.SourceSnType = $15; //源SN类型",
  14593. " $1.SourceSnShipDate = $16; //源SN发货时间",
  14594. " $1.SourceStoreId = $17; //源SN发货你仓库",
  14595. " $1.Remark = $18; //备注",
  14596. "}"
  14597. ]
  14598. },
  14599. "获取创客机具延迟变动明细表数量": {
  14600. "prefix": "ym-db-UserSnDelayChange-FindAndCount",
  14601. "body": [
  14602. "int $1 = db.UserSnDelayChange.Count(m => $2);",
  14603. ]
  14604. },
  14605. "添加创客机具延迟变动明细表": {
  14606. "prefix": "ym-db-UserSnDelayChange-Create",
  14607. "body": [
  14608. "db.UserSnDelayChange.Add(new UserSnDelayChange()",
  14609. "{",
  14610. " CreateDate = DateTime.Now,",
  14611. " UpdateDate = DateTime.Now,",
  14612. " UserId = $1, //创客",
  14613. " BrandId = $2, //品牌",
  14614. " ChangeRecordNo = $3, //变更记录单号",
  14615. " SnNo = $4, //SN编号",
  14616. " SnType = $5, //SN机具类型",
  14617. " SnStoreId = $6, //发货仓库",
  14618. " InitCycleDate = $7, //初始循环截止时间",
  14619. " BeforeEndCycleDate = $8, //变动前循环截止时间",
  14620. " AfterEndCycleDate = $9, //变动后循环截止时间",
  14621. " RecUserId = $10, //招募创客",
  14622. " SnDelayDay = $11, //机具延时天数",
  14623. " ActivityRuleId = $12, //拉新活动",
  14624. " SourceSnNo = $13, //源SN编号",
  14625. " SourceSnType = $14, //源SN类型",
  14626. " SourceSnShipDate = $15, //源SN发货时间",
  14627. " SourceStoreId = $16, //源SN发货你仓库",
  14628. " Remark = $17, //备注",
  14629. "});"
  14630. ]
  14631. },"删除某个创客机具延迟变动明细表": {
  14632. "prefix": "ym-db-UserSnDelayChange-Delete",
  14633. "body": [
  14634. "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
  14635. "if ($1 != null)",
  14636. "{",
  14637. " db.UserSnDelayChange.Remove($1);",
  14638. "}"
  14639. ]
  14640. },
  14641. "查询创客库存变动记录列表": {
  14642. "prefix": "ym-db-UserStoreChange-Find",
  14643. "body": [
  14644. "List<UserStoreChange> $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14645. "foreach (UserStoreChange $3 in $1)",
  14646. "{",
  14647. "}"
  14648. ]
  14649. },
  14650. "查询创客库存变动记录列表,并取值": {
  14651. "prefix": "ym-db-UserStoreChange-FindWithData",
  14652. "body": [
  14653. "List<UserStoreChange> $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14654. "foreach (UserStoreChange $3 in $1)",
  14655. "{",
  14656. " int UserId = $3.UserId; //创客",
  14657. " int BrandId = $3.BrandId; //产品类型",
  14658. " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
  14659. " int TransType = $3.TransType; //交易类型",
  14660. " string SnNo = $3.SnNo; //SN编号",
  14661. " int SnType = $3.SnType; //SN机具类型",
  14662. " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
  14663. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  14664. " string DeviceType = $3.DeviceType; //设备类型",
  14665. " string DeviceModel = $3.DeviceModel; //设备型号",
  14666. " int ToUserId = $3.ToUserId; //收货创客",
  14667. " int ToStoreId = $3.ToStoreId; //创客退货收货仓库",
  14668. " DateTime ToDate = $3.ToDate; //入库时间",
  14669. " string ToRemark = $3.ToRemark; //入库备注",
  14670. " int SourceStoreId = $3.SourceStoreId; //源仓库",
  14671. " int SnStatus = $3.SnStatus; //SN状态",
  14672. " string BizBatchNo = $3.BizBatchNo; //业务批次号",
  14673. " int BindStatus = $3.BindStatus; //绑定状态",
  14674. " int BindMerchantId = $3.BindMerchantId; //绑定商户",
  14675. " int ActiveStatus = $3.ActiveStatus; //激活状态",
  14676. " int ActRewardUserId = $3.ActRewardUserId; //激活奖励创客",
  14677. " int FromUserId = $3.FromUserId; //出货创客",
  14678. " DateTime FromDate = $3.FromDate; //出库时间",
  14679. " string FromRemark = $3.FromRemark; //出库备注",
  14680. " string BrandType = $3.BrandType; //品牌类型",
  14681. "}"
  14682. ]
  14683. },
  14684. "查询创客库存变动记录": {
  14685. "prefix": "ym-db-UserStoreChange-Exist",
  14686. "body": [
  14687. "bool $1 = db.UserStoreChange.Any(m => m.Id == $2);",
  14688. ]
  14689. },
  14690. "查询某个创客库存变动记录,并取值": {
  14691. "prefix": "ym-db-UserStoreChange-FindByPrimaryKey",
  14692. "body": [
  14693. "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
  14694. "if ($1 != null)",
  14695. "{",
  14696. " int UserId = $1.UserId; //创客",
  14697. " int BrandId = $1.BrandId; //产品类型",
  14698. " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
  14699. " int TransType = $1.TransType; //交易类型",
  14700. " string SnNo = $1.SnNo; //SN编号",
  14701. " int SnType = $1.SnType; //SN机具类型",
  14702. " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
  14703. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  14704. " string DeviceType = $1.DeviceType; //设备类型",
  14705. " string DeviceModel = $1.DeviceModel; //设备型号",
  14706. " int ToUserId = $1.ToUserId; //收货创客",
  14707. " int ToStoreId = $1.ToStoreId; //创客退货收货仓库",
  14708. " DateTime ToDate = $1.ToDate; //入库时间",
  14709. " string ToRemark = $1.ToRemark; //入库备注",
  14710. " int SourceStoreId = $1.SourceStoreId; //源仓库",
  14711. " int SnStatus = $1.SnStatus; //SN状态",
  14712. " string BizBatchNo = $1.BizBatchNo; //业务批次号",
  14713. " int BindStatus = $1.BindStatus; //绑定状态",
  14714. " int BindMerchantId = $1.BindMerchantId; //绑定商户",
  14715. " int ActiveStatus = $1.ActiveStatus; //激活状态",
  14716. " int ActRewardUserId = $1.ActRewardUserId; //激活奖励创客",
  14717. " int FromUserId = $1.FromUserId; //出货创客",
  14718. " DateTime FromDate = $1.FromDate; //出库时间",
  14719. " string FromRemark = $1.FromRemark; //出库备注",
  14720. " string BrandType = $1.BrandType; //品牌类型",
  14721. "}"
  14722. ]
  14723. },
  14724. "查询某个创客库存变动记录,并赋值": {
  14725. "prefix": "ym-db-UserStoreChange-Update",
  14726. "body": [
  14727. "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
  14728. "if ($1 != null)",
  14729. "{",
  14730. " $1.UserId = $2; //创客",
  14731. " $1.BrandId = $3; //产品类型",
  14732. " $1.ChangeRecordNo = $4; //变更记录单号",
  14733. " $1.TransType = $5; //交易类型",
  14734. " $1.SnNo = $6; //SN编号",
  14735. " $1.SnType = $7; //SN机具类型",
  14736. " $1.StockOpDirect = $8; //库存操作方向",
  14737. " $1.DeviceVendor = $9; //设备厂商",
  14738. " $1.DeviceType = $10; //设备类型",
  14739. " $1.DeviceModel = $11; //设备型号",
  14740. " $1.ToUserId = $12; //收货创客",
  14741. " $1.ToStoreId = $13; //创客退货收货仓库",
  14742. " $1.ToDate = $14; //入库时间",
  14743. " $1.ToRemark = $15; //入库备注",
  14744. " $1.SourceStoreId = $16; //源仓库",
  14745. " $1.SnStatus = $17; //SN状态",
  14746. " $1.BizBatchNo = $18; //业务批次号",
  14747. " $1.BindStatus = $19; //绑定状态",
  14748. " $1.BindMerchantId = $20; //绑定商户",
  14749. " $1.ActiveStatus = $21; //激活状态",
  14750. " $1.ActRewardUserId = $22; //激活奖励创客",
  14751. " $1.FromUserId = $23; //出货创客",
  14752. " $1.FromDate = $24; //出库时间",
  14753. " $1.FromRemark = $25; //出库备注",
  14754. " $1.BrandType = $26; //品牌类型",
  14755. "}"
  14756. ]
  14757. },
  14758. "获取创客库存变动记录数量": {
  14759. "prefix": "ym-db-UserStoreChange-FindAndCount",
  14760. "body": [
  14761. "int $1 = db.UserStoreChange.Count(m => $2);",
  14762. ]
  14763. },
  14764. "添加创客库存变动记录": {
  14765. "prefix": "ym-db-UserStoreChange-Create",
  14766. "body": [
  14767. "db.UserStoreChange.Add(new UserStoreChange()",
  14768. "{",
  14769. " CreateDate = DateTime.Now,",
  14770. " UpdateDate = DateTime.Now,",
  14771. " UserId = $1, //创客",
  14772. " BrandId = $2, //产品类型",
  14773. " ChangeRecordNo = $3, //变更记录单号",
  14774. " TransType = $4, //交易类型",
  14775. " SnNo = $5, //SN编号",
  14776. " SnType = $6, //SN机具类型",
  14777. " StockOpDirect = $7, //库存操作方向",
  14778. " DeviceVendor = $8, //设备厂商",
  14779. " DeviceType = $9, //设备类型",
  14780. " DeviceModel = $10, //设备型号",
  14781. " ToUserId = $11, //收货创客",
  14782. " ToStoreId = $12, //创客退货收货仓库",
  14783. " ToDate = $13, //入库时间",
  14784. " ToRemark = $14, //入库备注",
  14785. " SourceStoreId = $15, //源仓库",
  14786. " SnStatus = $16, //SN状态",
  14787. " BizBatchNo = $17, //业务批次号",
  14788. " BindStatus = $18, //绑定状态",
  14789. " BindMerchantId = $19, //绑定商户",
  14790. " ActiveStatus = $20, //激活状态",
  14791. " ActRewardUserId = $21, //激活奖励创客",
  14792. " FromUserId = $22, //出货创客",
  14793. " FromDate = $23, //出库时间",
  14794. " FromRemark = $24, //出库备注",
  14795. " BrandType = $25, //品牌类型",
  14796. "});"
  14797. ]
  14798. },"删除某个创客库存变动记录": {
  14799. "prefix": "ym-db-UserStoreChange-Delete",
  14800. "body": [
  14801. "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
  14802. "if ($1 != null)",
  14803. "{",
  14804. " db.UserStoreChange.Remove($1);",
  14805. "}"
  14806. ]
  14807. },
  14808. "查询循环返风控明细信息列表": {
  14809. "prefix": "ym-db-UserSwapDetail-Find",
  14810. "body": [
  14811. "List<UserSwapDetail> $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14812. "foreach (UserSwapDetail $3 in $1)",
  14813. "{",
  14814. "}"
  14815. ]
  14816. },
  14817. "查询循环返风控明细信息列表,并取值": {
  14818. "prefix": "ym-db-UserSwapDetail-FindWithData",
  14819. "body": [
  14820. "List<UserSwapDetail> $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14821. "foreach (UserSwapDetail $3 in $1)",
  14822. "{",
  14823. " string RecordNo = $3.RecordNo; //单号",
  14824. " int UserId = $3.UserId; //创客",
  14825. " string TradeMonth = $3.TradeMonth; //交易月",
  14826. " string TradeDate = $3.TradeDate; //交易日",
  14827. " int BrandId = $3.BrandId; //品牌",
  14828. " string SnNo = $3.SnNo; //风控SN编号",
  14829. " int SnType = $3.SnType; //风控SN机具类型",
  14830. " int RiskResult = $3.RiskResult; //循环风控降档状态",
  14831. " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型",
  14832. " decimal DirectSnTradeAmt = $3.DirectSnTradeAmt; //直营商户激活sn交易总额",
  14833. " string UpSourceSnNo = $3.UpSourceSnNo; //上一个兑换来源SN编码",
  14834. " int UpSourceSnType = $3.UpSourceSnType; //上一个兑换来源SN机具类型",
  14835. " string SourceSnNo = $3.SourceSnNo; //源SN编号",
  14836. " int SourceSnType = $3.SourceSnType; //源SN机具类型",
  14837. " string Remark = $3.Remark; //备注",
  14838. " int TopUserId = $3.TopUserId; //顶级创客",
  14839. "}"
  14840. ]
  14841. },
  14842. "查询循环返风控明细信息": {
  14843. "prefix": "ym-db-UserSwapDetail-Exist",
  14844. "body": [
  14845. "bool $1 = db.UserSwapDetail.Any(m => m.Id == $2);",
  14846. ]
  14847. },
  14848. "查询某个循环返风控明细信息,并取值": {
  14849. "prefix": "ym-db-UserSwapDetail-FindByPrimaryKey",
  14850. "body": [
  14851. "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
  14852. "if ($1 != null)",
  14853. "{",
  14854. " string RecordNo = $1.RecordNo; //单号",
  14855. " int UserId = $1.UserId; //创客",
  14856. " string TradeMonth = $1.TradeMonth; //交易月",
  14857. " string TradeDate = $1.TradeDate; //交易日",
  14858. " int BrandId = $1.BrandId; //品牌",
  14859. " string SnNo = $1.SnNo; //风控SN编号",
  14860. " int SnType = $1.SnType; //风控SN机具类型",
  14861. " int RiskResult = $1.RiskResult; //循环风控降档状态",
  14862. " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型",
  14863. " decimal DirectSnTradeAmt = $1.DirectSnTradeAmt; //直营商户激活sn交易总额",
  14864. " string UpSourceSnNo = $1.UpSourceSnNo; //上一个兑换来源SN编码",
  14865. " int UpSourceSnType = $1.UpSourceSnType; //上一个兑换来源SN机具类型",
  14866. " string SourceSnNo = $1.SourceSnNo; //源SN编号",
  14867. " int SourceSnType = $1.SourceSnType; //源SN机具类型",
  14868. " string Remark = $1.Remark; //备注",
  14869. " int TopUserId = $1.TopUserId; //顶级创客",
  14870. "}"
  14871. ]
  14872. },
  14873. "查询某个循环返风控明细信息,并赋值": {
  14874. "prefix": "ym-db-UserSwapDetail-Update",
  14875. "body": [
  14876. "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
  14877. "if ($1 != null)",
  14878. "{",
  14879. " $1.RecordNo = $2; //单号",
  14880. " $1.UserId = $3; //创客",
  14881. " $1.TradeMonth = $4; //交易月",
  14882. " $1.TradeDate = $5; //交易日",
  14883. " $1.BrandId = $6; //品牌",
  14884. " $1.SnNo = $7; //风控SN编号",
  14885. " $1.SnType = $8; //风控SN机具类型",
  14886. " $1.RiskResult = $9; //循环风控降档状态",
  14887. " $1.SwapExtProductTypes = $10; //可申请循环产品类型",
  14888. " $1.DirectSnTradeAmt = $11; //直营商户激活sn交易总额",
  14889. " $1.UpSourceSnNo = $12; //上一个兑换来源SN编码",
  14890. " $1.UpSourceSnType = $13; //上一个兑换来源SN机具类型",
  14891. " $1.SourceSnNo = $14; //源SN编号",
  14892. " $1.SourceSnType = $15; //源SN机具类型",
  14893. " $1.Remark = $16; //备注",
  14894. " $1.TopUserId = $17; //顶级创客",
  14895. "}"
  14896. ]
  14897. },
  14898. "获取循环返风控明细信息数量": {
  14899. "prefix": "ym-db-UserSwapDetail-FindAndCount",
  14900. "body": [
  14901. "int $1 = db.UserSwapDetail.Count(m => $2);",
  14902. ]
  14903. },
  14904. "添加循环返风控明细信息": {
  14905. "prefix": "ym-db-UserSwapDetail-Create",
  14906. "body": [
  14907. "db.UserSwapDetail.Add(new UserSwapDetail()",
  14908. "{",
  14909. " CreateDate = DateTime.Now,",
  14910. " UpdateDate = DateTime.Now,",
  14911. " RecordNo = $1, //单号",
  14912. " UserId = $2, //创客",
  14913. " TradeMonth = $3, //交易月",
  14914. " TradeDate = $4, //交易日",
  14915. " BrandId = $5, //品牌",
  14916. " SnNo = $6, //风控SN编号",
  14917. " SnType = $7, //风控SN机具类型",
  14918. " RiskResult = $8, //循环风控降档状态",
  14919. " SwapExtProductTypes = $9, //可申请循环产品类型",
  14920. " DirectSnTradeAmt = $10, //直营商户激活sn交易总额",
  14921. " UpSourceSnNo = $11, //上一个兑换来源SN编码",
  14922. " UpSourceSnType = $12, //上一个兑换来源SN机具类型",
  14923. " SourceSnNo = $13, //源SN编号",
  14924. " SourceSnType = $14, //源SN机具类型",
  14925. " Remark = $15, //备注",
  14926. " TopUserId = $16, //顶级创客",
  14927. "});"
  14928. ]
  14929. },"删除某个循环返风控明细信息": {
  14930. "prefix": "ym-db-UserSwapDetail-Delete",
  14931. "body": [
  14932. "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
  14933. "if ($1 != null)",
  14934. "{",
  14935. " db.UserSwapDetail.Remove($1);",
  14936. "}"
  14937. ]
  14938. },
  14939. "查询创客循环返风控月汇总列表": {
  14940. "prefix": "ym-db-UserSwapSummary-Find",
  14941. "body": [
  14942. "List<UserSwapSummary> $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14943. "foreach (UserSwapSummary $3 in $1)",
  14944. "{",
  14945. "}"
  14946. ]
  14947. },
  14948. "查询创客循环返风控月汇总列表,并取值": {
  14949. "prefix": "ym-db-UserSwapSummary-FindWithData",
  14950. "body": [
  14951. "List<UserSwapSummary> $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14952. "foreach (UserSwapSummary $3 in $1)",
  14953. "{",
  14954. " int UserId = $3.UserId; //创客",
  14955. " int TopUserId = $3.TopUserId; //顶级创客",
  14956. " string TradeMonth = $3.TradeMonth; //交易月",
  14957. " int BrandId = $3.BrandId; //品牌",
  14958. " int DirectActMerCount = $3.DirectActMerCount; //上月直营激活商户数",
  14959. " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户新增激活交易户均总额",
  14960. " decimal DirAvgTradeAmt = $3.DirAvgTradeAmt; //户均",
  14961. " int RiskStatus = $3.RiskStatus; //循环风控降档状态",
  14962. " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型",
  14963. " int RuleId = $3.RuleId; //规则",
  14964. "}"
  14965. ]
  14966. },
  14967. "查询创客循环返风控月汇总": {
  14968. "prefix": "ym-db-UserSwapSummary-Exist",
  14969. "body": [
  14970. "bool $1 = db.UserSwapSummary.Any(m => m.Id == $2);",
  14971. ]
  14972. },
  14973. "查询某个创客循环返风控月汇总,并取值": {
  14974. "prefix": "ym-db-UserSwapSummary-FindByPrimaryKey",
  14975. "body": [
  14976. "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
  14977. "if ($1 != null)",
  14978. "{",
  14979. " int UserId = $1.UserId; //创客",
  14980. " int TopUserId = $1.TopUserId; //顶级创客",
  14981. " string TradeMonth = $1.TradeMonth; //交易月",
  14982. " int BrandId = $1.BrandId; //品牌",
  14983. " int DirectActMerCount = $1.DirectActMerCount; //上月直营激活商户数",
  14984. " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户新增激活交易户均总额",
  14985. " decimal DirAvgTradeAmt = $1.DirAvgTradeAmt; //户均",
  14986. " int RiskStatus = $1.RiskStatus; //循环风控降档状态",
  14987. " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型",
  14988. " int RuleId = $1.RuleId; //规则",
  14989. "}"
  14990. ]
  14991. },
  14992. "查询某个创客循环返风控月汇总,并赋值": {
  14993. "prefix": "ym-db-UserSwapSummary-Update",
  14994. "body": [
  14995. "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
  14996. "if ($1 != null)",
  14997. "{",
  14998. " $1.UserId = $2; //创客",
  14999. " $1.TopUserId = $3; //顶级创客",
  15000. " $1.TradeMonth = $4; //交易月",
  15001. " $1.BrandId = $5; //品牌",
  15002. " $1.DirectActMerCount = $6; //上月直营激活商户数",
  15003. " $1.DirectTradeAmt = $7; //直营商户新增激活交易户均总额",
  15004. " $1.DirAvgTradeAmt = $8; //户均",
  15005. " $1.RiskStatus = $9; //循环风控降档状态",
  15006. " $1.SwapExtProductTypes = $10; //可申请循环产品类型",
  15007. " $1.RuleId = $11; //规则",
  15008. "}"
  15009. ]
  15010. },
  15011. "获取创客循环返风控月汇总数量": {
  15012. "prefix": "ym-db-UserSwapSummary-FindAndCount",
  15013. "body": [
  15014. "int $1 = db.UserSwapSummary.Count(m => $2);",
  15015. ]
  15016. },
  15017. "添加创客循环返风控月汇总": {
  15018. "prefix": "ym-db-UserSwapSummary-Create",
  15019. "body": [
  15020. "db.UserSwapSummary.Add(new UserSwapSummary()",
  15021. "{",
  15022. " CreateDate = DateTime.Now,",
  15023. " UpdateDate = DateTime.Now,",
  15024. " UserId = $1, //创客",
  15025. " TopUserId = $2, //顶级创客",
  15026. " TradeMonth = $3, //交易月",
  15027. " BrandId = $4, //品牌",
  15028. " DirectActMerCount = $5, //上月直营激活商户数",
  15029. " DirectTradeAmt = $6, //直营商户新增激活交易户均总额",
  15030. " DirAvgTradeAmt = $7, //户均",
  15031. " RiskStatus = $8, //循环风控降档状态",
  15032. " SwapExtProductTypes = $9, //可申请循环产品类型",
  15033. " RuleId = $10, //规则",
  15034. "});"
  15035. ]
  15036. },"删除某个创客循环返风控月汇总": {
  15037. "prefix": "ym-db-UserSwapSummary-Delete",
  15038. "body": [
  15039. "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
  15040. "if ($1 != null)",
  15041. "{",
  15042. " db.UserSwapSummary.Remove($1);",
  15043. "}"
  15044. ]
  15045. },
  15046. "查询循环返风控白名单列表": {
  15047. "prefix": "ym-db-UserSwapWhite-Find",
  15048. "body": [
  15049. "List<UserSwapWhite> $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15050. "foreach (UserSwapWhite $3 in $1)",
  15051. "{",
  15052. "}"
  15053. ]
  15054. },
  15055. "查询循环返风控白名单列表,并取值": {
  15056. "prefix": "ym-db-UserSwapWhite-FindWithData",
  15057. "body": [
  15058. "List<UserSwapWhite> $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15059. "foreach (UserSwapWhite $3 in $1)",
  15060. "{",
  15061. " int UserId = $3.UserId; //创客",
  15062. " int RiskType = $3.RiskType; //风控类型",
  15063. " int BrandId = $3.BrandId; //品牌",
  15064. " DateTime StartEffectTime = $3.StartEffectTime; //生效开始时间",
  15065. " DateTime EndEffectTime = $3.EndEffectTime; //生效截止时间",
  15066. " string Remark = $3.Remark; //备注",
  15067. "}"
  15068. ]
  15069. },
  15070. "查询循环返风控白名单": {
  15071. "prefix": "ym-db-UserSwapWhite-Exist",
  15072. "body": [
  15073. "bool $1 = db.UserSwapWhite.Any(m => m.Id == $2);",
  15074. ]
  15075. },
  15076. "查询某个循环返风控白名单,并取值": {
  15077. "prefix": "ym-db-UserSwapWhite-FindByPrimaryKey",
  15078. "body": [
  15079. "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
  15080. "if ($1 != null)",
  15081. "{",
  15082. " int UserId = $1.UserId; //创客",
  15083. " int RiskType = $1.RiskType; //风控类型",
  15084. " int BrandId = $1.BrandId; //品牌",
  15085. " DateTime StartEffectTime = $1.StartEffectTime; //生效开始时间",
  15086. " DateTime EndEffectTime = $1.EndEffectTime; //生效截止时间",
  15087. " string Remark = $1.Remark; //备注",
  15088. "}"
  15089. ]
  15090. },
  15091. "查询某个循环返风控白名单,并赋值": {
  15092. "prefix": "ym-db-UserSwapWhite-Update",
  15093. "body": [
  15094. "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
  15095. "if ($1 != null)",
  15096. "{",
  15097. " $1.UserId = $2; //创客",
  15098. " $1.RiskType = $3; //风控类型",
  15099. " $1.BrandId = $4; //品牌",
  15100. " $1.StartEffectTime = $5; //生效开始时间",
  15101. " $1.EndEffectTime = $6; //生效截止时间",
  15102. " $1.Remark = $7; //备注",
  15103. "}"
  15104. ]
  15105. },
  15106. "获取循环返风控白名单数量": {
  15107. "prefix": "ym-db-UserSwapWhite-FindAndCount",
  15108. "body": [
  15109. "int $1 = db.UserSwapWhite.Count(m => $2);",
  15110. ]
  15111. },
  15112. "添加循环返风控白名单": {
  15113. "prefix": "ym-db-UserSwapWhite-Create",
  15114. "body": [
  15115. "db.UserSwapWhite.Add(new UserSwapWhite()",
  15116. "{",
  15117. " CreateDate = DateTime.Now,",
  15118. " UpdateDate = DateTime.Now,",
  15119. " UserId = $1, //创客",
  15120. " RiskType = $2, //风控类型",
  15121. " BrandId = $3, //品牌",
  15122. " StartEffectTime = $4, //生效开始时间",
  15123. " EndEffectTime = $5, //生效截止时间",
  15124. " Remark = $6, //备注",
  15125. "});"
  15126. ]
  15127. },"删除某个循环返风控白名单": {
  15128. "prefix": "ym-db-UserSwapWhite-Delete",
  15129. "body": [
  15130. "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
  15131. "if ($1 != null)",
  15132. "{",
  15133. " db.UserSwapWhite.Remove($1);",
  15134. "}"
  15135. ]
  15136. },
  15137. "查询创客交易日汇总列表": {
  15138. "prefix": "ym-db-UserTradeDaySummary-Find",
  15139. "body": [
  15140. "List<UserTradeDaySummary> $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15141. "foreach (UserTradeDaySummary $3 in $1)",
  15142. "{",
  15143. "}"
  15144. ]
  15145. },
  15146. "查询创客交易日汇总列表,并取值": {
  15147. "prefix": "ym-db-UserTradeDaySummary-FindWithData",
  15148. "body": [
  15149. "List<UserTradeDaySummary> $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15150. "foreach (UserTradeDaySummary $3 in $1)",
  15151. "{",
  15152. " int UserId = $3.UserId; //创客",
  15153. " string TradeDate = $3.TradeDate; //交易日",
  15154. " string TradeMonth = $3.TradeMonth; //交易月",
  15155. " int BrandId = $3.BrandId; //品牌",
  15156. " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户交易总额",
  15157. " decimal NonDirectTradeAmt = $3.NonDirectTradeAmt; //非直营商户交易总额",
  15158. " decimal DirectDebitTradeAmt = $3.DirectDebitTradeAmt; //直营商户借记卡交易总额",
  15159. " int DirectDebitCapNum = $3.DirectDebitCapNum; //直营激活商户数",
  15160. " decimal NonDirectDebitTradeAmt = $3.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额",
  15161. " int NonDirectDebitCapNum = $3.NonDirectDebitCapNum; //非直营激活商户数",
  15162. " string Remark = $3.Remark; //备注",
  15163. "}"
  15164. ]
  15165. },
  15166. "查询创客交易日汇总": {
  15167. "prefix": "ym-db-UserTradeDaySummary-Exist",
  15168. "body": [
  15169. "bool $1 = db.UserTradeDaySummary.Any(m => m.Id == $2);",
  15170. ]
  15171. },
  15172. "查询某个创客交易日汇总,并取值": {
  15173. "prefix": "ym-db-UserTradeDaySummary-FindByPrimaryKey",
  15174. "body": [
  15175. "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  15176. "if ($1 != null)",
  15177. "{",
  15178. " int UserId = $1.UserId; //创客",
  15179. " string TradeDate = $1.TradeDate; //交易日",
  15180. " string TradeMonth = $1.TradeMonth; //交易月",
  15181. " int BrandId = $1.BrandId; //品牌",
  15182. " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户交易总额",
  15183. " decimal NonDirectTradeAmt = $1.NonDirectTradeAmt; //非直营商户交易总额",
  15184. " decimal DirectDebitTradeAmt = $1.DirectDebitTradeAmt; //直营商户借记卡交易总额",
  15185. " int DirectDebitCapNum = $1.DirectDebitCapNum; //直营激活商户数",
  15186. " decimal NonDirectDebitTradeAmt = $1.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额",
  15187. " int NonDirectDebitCapNum = $1.NonDirectDebitCapNum; //非直营激活商户数",
  15188. " string Remark = $1.Remark; //备注",
  15189. "}"
  15190. ]
  15191. },
  15192. "查询某个创客交易日汇总,并赋值": {
  15193. "prefix": "ym-db-UserTradeDaySummary-Update",
  15194. "body": [
  15195. "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  15196. "if ($1 != null)",
  15197. "{",
  15198. " $1.UserId = $2; //创客",
  15199. " $1.TradeDate = $3; //交易日",
  15200. " $1.TradeMonth = $4; //交易月",
  15201. " $1.BrandId = $5; //品牌",
  15202. " $1.DirectTradeAmt = $6; //直营商户交易总额",
  15203. " $1.NonDirectTradeAmt = $7; //非直营商户交易总额",
  15204. " $1.DirectDebitTradeAmt = $8; //直营商户借记卡交易总额",
  15205. " $1.DirectDebitCapNum = $9; //直营激活商户数",
  15206. " $1.NonDirectDebitTradeAmt = $10; //非直营商户借记卡交易总额",
  15207. " $1.NonDirectDebitCapNum = $11; //非直营激活商户数",
  15208. " $1.Remark = $12; //备注",
  15209. "}"
  15210. ]
  15211. },
  15212. "获取创客交易日汇总数量": {
  15213. "prefix": "ym-db-UserTradeDaySummary-FindAndCount",
  15214. "body": [
  15215. "int $1 = db.UserTradeDaySummary.Count(m => $2);",
  15216. ]
  15217. },
  15218. "添加创客交易日汇总": {
  15219. "prefix": "ym-db-UserTradeDaySummary-Create",
  15220. "body": [
  15221. "db.UserTradeDaySummary.Add(new UserTradeDaySummary()",
  15222. "{",
  15223. " CreateDate = DateTime.Now,",
  15224. " UpdateDate = DateTime.Now,",
  15225. " UserId = $1, //创客",
  15226. " TradeDate = $2, //交易日",
  15227. " TradeMonth = $3, //交易月",
  15228. " BrandId = $4, //品牌",
  15229. " DirectTradeAmt = $5, //直营商户交易总额",
  15230. " NonDirectTradeAmt = $6, //非直营商户交易总额",
  15231. " DirectDebitTradeAmt = $7, //直营商户借记卡交易总额",
  15232. " DirectDebitCapNum = $8, //直营激活商户数",
  15233. " NonDirectDebitTradeAmt = $9, //非直营商户借记卡交易总额",
  15234. " NonDirectDebitCapNum = $10, //非直营激活商户数",
  15235. " Remark = $11, //备注",
  15236. "});"
  15237. ]
  15238. },"删除某个创客交易日汇总": {
  15239. "prefix": "ym-db-UserTradeDaySummary-Delete",
  15240. "body": [
  15241. "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  15242. "if ($1 != null)",
  15243. "{",
  15244. " db.UserTradeDaySummary.Remove($1);",
  15245. "}"
  15246. ]
  15247. },
  15248. "查询交易按产品汇总列表": {
  15249. "prefix": "ym-db-UserTradeMonthSummary-Find",
  15250. "body": [
  15251. "List<UserTradeMonthSummary> $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15252. "foreach (UserTradeMonthSummary $3 in $1)",
  15253. "{",
  15254. "}"
  15255. ]
  15256. },
  15257. "查询交易按产品汇总列表,并取值": {
  15258. "prefix": "ym-db-UserTradeMonthSummary-FindWithData",
  15259. "body": [
  15260. "List<UserTradeMonthSummary> $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15261. "foreach (UserTradeMonthSummary $3 in $1)",
  15262. "{",
  15263. " int UserId = $3.UserId; //创客",
  15264. " string TradeMonth = $3.TradeMonth; //交易月",
  15265. " int BrandId = $3.BrandId; //品牌",
  15266. " int StatType = $3.StatType; //交易统计类型",
  15267. " decimal TradeAmt = $3.TradeAmt; //商户交易总额",
  15268. " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额",
  15269. " decimal DebitNotCapTradeAmt = $3.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额",
  15270. " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  15271. " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  15272. " int MallPosOrderStatus = $3.MallPosOrderStatus; //商城购买机具状态",
  15273. " int ActiveBuddyMerStatus = $3.ActiveBuddyMerStatus; //激活创客同名商户",
  15274. " string Remark = $3.Remark; //备注",
  15275. "}"
  15276. ]
  15277. },
  15278. "查询交易按产品汇总": {
  15279. "prefix": "ym-db-UserTradeMonthSummary-Exist",
  15280. "body": [
  15281. "bool $1 = db.UserTradeMonthSummary.Any(m => m.Id == $2);",
  15282. ]
  15283. },
  15284. "查询某个交易按产品汇总,并取值": {
  15285. "prefix": "ym-db-UserTradeMonthSummary-FindByPrimaryKey",
  15286. "body": [
  15287. "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
  15288. "if ($1 != null)",
  15289. "{",
  15290. " int UserId = $1.UserId; //创客",
  15291. " string TradeMonth = $1.TradeMonth; //交易月",
  15292. " int BrandId = $1.BrandId; //品牌",
  15293. " int StatType = $1.StatType; //交易统计类型",
  15294. " decimal TradeAmt = $1.TradeAmt; //商户交易总额",
  15295. " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额",
  15296. " decimal DebitNotCapTradeAmt = $1.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额",
  15297. " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  15298. " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  15299. " int MallPosOrderStatus = $1.MallPosOrderStatus; //商城购买机具状态",
  15300. " int ActiveBuddyMerStatus = $1.ActiveBuddyMerStatus; //激活创客同名商户",
  15301. " string Remark = $1.Remark; //备注",
  15302. "}"
  15303. ]
  15304. },
  15305. "查询某个交易按产品汇总,并赋值": {
  15306. "prefix": "ym-db-UserTradeMonthSummary-Update",
  15307. "body": [
  15308. "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
  15309. "if ($1 != null)",
  15310. "{",
  15311. " $1.UserId = $2; //创客",
  15312. " $1.TradeMonth = $3; //交易月",
  15313. " $1.BrandId = $4; //品牌",
  15314. " $1.StatType = $5; //交易统计类型",
  15315. " $1.TradeAmt = $6; //商户交易总额",
  15316. " $1.CreditTradeAmt = $7; //商户贷记卡交易总金额",
  15317. " $1.DebitNotCapTradeAmt = $8; //商户非封顶借记卡交易总金额",
  15318. " $1.DebitCapTradeAmt = $9; //商户借记卡封顶交易总额",
  15319. " $1.DebitCapTradeNum = $10; //商户借记卡封顶交易总笔数",
  15320. " $1.MallPosOrderStatus = $11; //商城购买机具状态",
  15321. " $1.ActiveBuddyMerStatus = $12; //激活创客同名商户",
  15322. " $1.Remark = $13; //备注",
  15323. "}"
  15324. ]
  15325. },
  15326. "获取交易按产品汇总数量": {
  15327. "prefix": "ym-db-UserTradeMonthSummary-FindAndCount",
  15328. "body": [
  15329. "int $1 = db.UserTradeMonthSummary.Count(m => $2);",
  15330. ]
  15331. },
  15332. "添加交易按产品汇总": {
  15333. "prefix": "ym-db-UserTradeMonthSummary-Create",
  15334. "body": [
  15335. "db.UserTradeMonthSummary.Add(new UserTradeMonthSummary()",
  15336. "{",
  15337. " CreateDate = DateTime.Now,",
  15338. " UpdateDate = DateTime.Now,",
  15339. " UserId = $1, //创客",
  15340. " TradeMonth = $2, //交易月",
  15341. " BrandId = $3, //品牌",
  15342. " StatType = $4, //交易统计类型",
  15343. " TradeAmt = $5, //商户交易总额",
  15344. " CreditTradeAmt = $6, //商户贷记卡交易总金额",
  15345. " DebitNotCapTradeAmt = $7, //商户非封顶借记卡交易总金额",
  15346. " DebitCapTradeAmt = $8, //商户借记卡封顶交易总额",
  15347. " DebitCapTradeNum = $9, //商户借记卡封顶交易总笔数",
  15348. " MallPosOrderStatus = $10, //商城购买机具状态",
  15349. " ActiveBuddyMerStatus = $11, //激活创客同名商户",
  15350. " Remark = $12, //备注",
  15351. "});"
  15352. ]
  15353. },"删除某个交易按产品汇总": {
  15354. "prefix": "ym-db-UserTradeMonthSummary-Delete",
  15355. "body": [
  15356. "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
  15357. "if ($1 != null)",
  15358. "{",
  15359. " db.UserTradeMonthSummary.Remove($1);",
  15360. "}"
  15361. ]
  15362. },
  15363. }