maindb.code-snippets 677 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493
  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. "查询广告位列表": {
  510. "prefix": "ym-db-Advertisment-Find",
  511. "body": [
  512. "List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  513. "foreach (Advertisment $3 in $1)",
  514. "{",
  515. "}"
  516. ]
  517. },
  518. "查询广告位列表,并取值": {
  519. "prefix": "ym-db-Advertisment-FindWithData",
  520. "body": [
  521. "List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  522. "foreach (Advertisment $3 in $1)",
  523. "{",
  524. " string Title = $3.Title; //标题",
  525. " string ColId = $3.ColId; //分类",
  526. " string PicPath = $3.PicPath; //图片",
  527. " string Contents = $3.Contents; //内容",
  528. " string Url = $3.Url; //链接地址",
  529. "}"
  530. ]
  531. },
  532. "查询广告位": {
  533. "prefix": "ym-db-Advertisment-Exist",
  534. "body": [
  535. "bool $1 = db.Advertisment.Any(m => m.Id == $2);",
  536. ]
  537. },
  538. "查询某个广告位,并取值": {
  539. "prefix": "ym-db-Advertisment-FindByPrimaryKey",
  540. "body": [
  541. "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
  542. "if ($1 != null)",
  543. "{",
  544. " string Title = $1.Title; //标题",
  545. " string ColId = $1.ColId; //分类",
  546. " string PicPath = $1.PicPath; //图片",
  547. " string Contents = $1.Contents; //内容",
  548. " string Url = $1.Url; //链接地址",
  549. "}"
  550. ]
  551. },
  552. "查询某个广告位,并赋值": {
  553. "prefix": "ym-db-Advertisment-Update",
  554. "body": [
  555. "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
  556. "if ($1 != null)",
  557. "{",
  558. " $1.Title = $2; //标题",
  559. " $1.ColId = $3; //分类",
  560. " $1.PicPath = $4; //图片",
  561. " $1.Contents = $5; //内容",
  562. " $1.Url = $6; //链接地址",
  563. "}"
  564. ]
  565. },
  566. "获取广告位数量": {
  567. "prefix": "ym-db-Advertisment-FindAndCount",
  568. "body": [
  569. "int $1 = db.Advertisment.Count(m => $2);",
  570. ]
  571. },
  572. "添加广告位": {
  573. "prefix": "ym-db-Advertisment-Create",
  574. "body": [
  575. "db.Advertisment.Add(new Advertisment()",
  576. "{",
  577. " CreateDate = DateTime.Now,",
  578. " UpdateDate = DateTime.Now,",
  579. " Title = $1, //标题",
  580. " ColId = $2, //分类",
  581. " PicPath = $3, //图片",
  582. " Contents = $4, //内容",
  583. " Url = $5, //链接地址",
  584. "});"
  585. ]
  586. },"删除某个广告位": {
  587. "prefix": "ym-db-Advertisment-Delete",
  588. "body": [
  589. "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
  590. "if ($1 != null)",
  591. "{",
  592. " db.Advertisment.Remove($1);",
  593. "}"
  594. ]
  595. },
  596. "查询代理商等级列表": {
  597. "prefix": "ym-db-AgentLevelSet-Find",
  598. "body": [
  599. "List<AgentLevelSet> $1 = db.AgentLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  600. "foreach (AgentLevelSet $3 in $1)",
  601. "{",
  602. "}"
  603. ]
  604. },
  605. "查询代理商等级列表,并取值": {
  606. "prefix": "ym-db-AgentLevelSet-FindWithData",
  607. "body": [
  608. "List<AgentLevelSet> $1 = db.AgentLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  609. "foreach (AgentLevelSet $3 in $1)",
  610. "{",
  611. " string Name = $3.Name; //名称",
  612. " decimal ProfitPercent = $3.ProfitPercent; //分润比例",
  613. " ulong LevelDiff = $3.LevelDiff; //分润级差",
  614. " decimal AreasProfitPercent = $3.AreasProfitPercent; //区域保护分润比例",
  615. "}"
  616. ]
  617. },
  618. "查询代理商等级": {
  619. "prefix": "ym-db-AgentLevelSet-Exist",
  620. "body": [
  621. "bool $1 = db.AgentLevelSet.Any(m => m.Id == $2);",
  622. ]
  623. },
  624. "查询某个代理商等级,并取值": {
  625. "prefix": "ym-db-AgentLevelSet-FindByPrimaryKey",
  626. "body": [
  627. "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);",
  628. "if ($1 != null)",
  629. "{",
  630. " string Name = $1.Name; //名称",
  631. " decimal ProfitPercent = $1.ProfitPercent; //分润比例",
  632. " ulong LevelDiff = $1.LevelDiff; //分润级差",
  633. " decimal AreasProfitPercent = $1.AreasProfitPercent; //区域保护分润比例",
  634. "}"
  635. ]
  636. },
  637. "查询某个代理商等级,并赋值": {
  638. "prefix": "ym-db-AgentLevelSet-Update",
  639. "body": [
  640. "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);",
  641. "if ($1 != null)",
  642. "{",
  643. " $1.Name = $2; //名称",
  644. " $1.ProfitPercent = $3; //分润比例",
  645. " $1.LevelDiff = $4; //分润级差",
  646. " $1.AreasProfitPercent = $5; //区域保护分润比例",
  647. "}"
  648. ]
  649. },
  650. "获取代理商等级数量": {
  651. "prefix": "ym-db-AgentLevelSet-FindAndCount",
  652. "body": [
  653. "int $1 = db.AgentLevelSet.Count(m => $2);",
  654. ]
  655. },
  656. "添加代理商等级": {
  657. "prefix": "ym-db-AgentLevelSet-Create",
  658. "body": [
  659. "db.AgentLevelSet.Add(new AgentLevelSet()",
  660. "{",
  661. " CreateDate = DateTime.Now,",
  662. " UpdateDate = DateTime.Now,",
  663. " Name = $1, //名称",
  664. " ProfitPercent = $2, //分润比例",
  665. " LevelDiff = $3, //分润级差",
  666. " AreasProfitPercent = $4, //区域保护分润比例",
  667. "});"
  668. ]
  669. },"删除某个代理商等级": {
  670. "prefix": "ym-db-AgentLevelSet-Delete",
  671. "body": [
  672. "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);",
  673. "if ($1 != null)",
  674. "{",
  675. " db.AgentLevelSet.Remove($1);",
  676. "}"
  677. ]
  678. },
  679. "查询App底部导航列表": {
  680. "prefix": "ym-db-AppBottomNavs-Find",
  681. "body": [
  682. "List<AppBottomNavs> $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  683. "foreach (AppBottomNavs $3 in $1)",
  684. "{",
  685. "}"
  686. ]
  687. },
  688. "查询App底部导航列表,并取值": {
  689. "prefix": "ym-db-AppBottomNavs-FindWithData",
  690. "body": [
  691. "List<AppBottomNavs> $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  692. "foreach (AppBottomNavs $3 in $1)",
  693. "{",
  694. " string Title = $3.Title; //标题",
  695. " string SelectIcon = $3.SelectIcon; //选中图标",
  696. " string NormalIcon = $3.NormalIcon; //未选中图标",
  697. " string SelectTextColor = $3.SelectTextColor; //选中文字颜色",
  698. " string NormalTextColor = $3.NormalTextColor; //未选中文字颜色",
  699. " string PageName = $3.PageName; //关联页面文件",
  700. " string NoPageHint = $3.NoPageHint; //空页面提示信息",
  701. " string BgColor = $3.BgColor; //背景色",
  702. "}"
  703. ]
  704. },
  705. "查询App底部导航": {
  706. "prefix": "ym-db-AppBottomNavs-Exist",
  707. "body": [
  708. "bool $1 = db.AppBottomNavs.Any(m => m.Id == $2);",
  709. ]
  710. },
  711. "查询某个App底部导航,并取值": {
  712. "prefix": "ym-db-AppBottomNavs-FindByPrimaryKey",
  713. "body": [
  714. "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
  715. "if ($1 != null)",
  716. "{",
  717. " string Title = $1.Title; //标题",
  718. " string SelectIcon = $1.SelectIcon; //选中图标",
  719. " string NormalIcon = $1.NormalIcon; //未选中图标",
  720. " string SelectTextColor = $1.SelectTextColor; //选中文字颜色",
  721. " string NormalTextColor = $1.NormalTextColor; //未选中文字颜色",
  722. " string PageName = $1.PageName; //关联页面文件",
  723. " string NoPageHint = $1.NoPageHint; //空页面提示信息",
  724. " string BgColor = $1.BgColor; //背景色",
  725. "}"
  726. ]
  727. },
  728. "查询某个App底部导航,并赋值": {
  729. "prefix": "ym-db-AppBottomNavs-Update",
  730. "body": [
  731. "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
  732. "if ($1 != null)",
  733. "{",
  734. " $1.Title = $2; //标题",
  735. " $1.SelectIcon = $3; //选中图标",
  736. " $1.NormalIcon = $4; //未选中图标",
  737. " $1.SelectTextColor = $5; //选中文字颜色",
  738. " $1.NormalTextColor = $6; //未选中文字颜色",
  739. " $1.PageName = $7; //关联页面文件",
  740. " $1.NoPageHint = $8; //空页面提示信息",
  741. " $1.BgColor = $9; //背景色",
  742. "}"
  743. ]
  744. },
  745. "获取App底部导航数量": {
  746. "prefix": "ym-db-AppBottomNavs-FindAndCount",
  747. "body": [
  748. "int $1 = db.AppBottomNavs.Count(m => $2);",
  749. ]
  750. },
  751. "添加App底部导航": {
  752. "prefix": "ym-db-AppBottomNavs-Create",
  753. "body": [
  754. "db.AppBottomNavs.Add(new AppBottomNavs()",
  755. "{",
  756. " CreateDate = DateTime.Now,",
  757. " UpdateDate = DateTime.Now,",
  758. " Title = $1, //标题",
  759. " SelectIcon = $2, //选中图标",
  760. " NormalIcon = $3, //未选中图标",
  761. " SelectTextColor = $4, //选中文字颜色",
  762. " NormalTextColor = $5, //未选中文字颜色",
  763. " PageName = $6, //关联页面文件",
  764. " NoPageHint = $7, //空页面提示信息",
  765. " BgColor = $8, //背景色",
  766. "});"
  767. ]
  768. },"删除某个App底部导航": {
  769. "prefix": "ym-db-AppBottomNavs-Delete",
  770. "body": [
  771. "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
  772. "if ($1 != null)",
  773. "{",
  774. " db.AppBottomNavs.Remove($1);",
  775. "}"
  776. ]
  777. },
  778. "查询App版本管理列表": {
  779. "prefix": "ym-db-AppVersion-Find",
  780. "body": [
  781. "List<AppVersion> $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  782. "foreach (AppVersion $3 in $1)",
  783. "{",
  784. "}"
  785. ]
  786. },
  787. "查询App版本管理列表,并取值": {
  788. "prefix": "ym-db-AppVersion-FindWithData",
  789. "body": [
  790. "List<AppVersion> $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  791. "foreach (AppVersion $3 in $1)",
  792. "{",
  793. " string TerminalKind = $3.TerminalKind; //终端类型",
  794. " string VersionNum = $3.VersionNum; //版本号",
  795. " string Title = $3.Title; //标题",
  796. " string Info = $3.Info; //更新信息",
  797. " string ConfirmText = $3.ConfirmText; //确定按钮文字",
  798. " string CancelText = $3.CancelText; //取消按钮文字",
  799. " string DownloadUrl = $3.DownloadUrl; //更新地址",
  800. "}"
  801. ]
  802. },
  803. "查询App版本管理": {
  804. "prefix": "ym-db-AppVersion-Exist",
  805. "body": [
  806. "bool $1 = db.AppVersion.Any(m => m.Id == $2);",
  807. ]
  808. },
  809. "查询某个App版本管理,并取值": {
  810. "prefix": "ym-db-AppVersion-FindByPrimaryKey",
  811. "body": [
  812. "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
  813. "if ($1 != null)",
  814. "{",
  815. " string TerminalKind = $1.TerminalKind; //终端类型",
  816. " string VersionNum = $1.VersionNum; //版本号",
  817. " string Title = $1.Title; //标题",
  818. " string Info = $1.Info; //更新信息",
  819. " string ConfirmText = $1.ConfirmText; //确定按钮文字",
  820. " string CancelText = $1.CancelText; //取消按钮文字",
  821. " string DownloadUrl = $1.DownloadUrl; //更新地址",
  822. "}"
  823. ]
  824. },
  825. "查询某个App版本管理,并赋值": {
  826. "prefix": "ym-db-AppVersion-Update",
  827. "body": [
  828. "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
  829. "if ($1 != null)",
  830. "{",
  831. " $1.TerminalKind = $2; //终端类型",
  832. " $1.VersionNum = $3; //版本号",
  833. " $1.Title = $4; //标题",
  834. " $1.Info = $5; //更新信息",
  835. " $1.ConfirmText = $6; //确定按钮文字",
  836. " $1.CancelText = $7; //取消按钮文字",
  837. " $1.DownloadUrl = $8; //更新地址",
  838. "}"
  839. ]
  840. },
  841. "获取App版本管理数量": {
  842. "prefix": "ym-db-AppVersion-FindAndCount",
  843. "body": [
  844. "int $1 = db.AppVersion.Count(m => $2);",
  845. ]
  846. },
  847. "添加App版本管理": {
  848. "prefix": "ym-db-AppVersion-Create",
  849. "body": [
  850. "db.AppVersion.Add(new AppVersion()",
  851. "{",
  852. " CreateDate = DateTime.Now,",
  853. " UpdateDate = DateTime.Now,",
  854. " TerminalKind = $1, //终端类型",
  855. " VersionNum = $2, //版本号",
  856. " Title = $3, //标题",
  857. " Info = $4, //更新信息",
  858. " ConfirmText = $5, //确定按钮文字",
  859. " CancelText = $6, //取消按钮文字",
  860. " DownloadUrl = $7, //更新地址",
  861. "});"
  862. ]
  863. },"删除某个App版本管理": {
  864. "prefix": "ym-db-AppVersion-Delete",
  865. "body": [
  866. "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
  867. "if ($1 != null)",
  868. "{",
  869. " db.AppVersion.Remove($1);",
  870. "}"
  871. ]
  872. },
  873. "查询操作视频分类列表": {
  874. "prefix": "ym-db-AppVideo-Find",
  875. "body": [
  876. "List<AppVideo> $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  877. "foreach (AppVideo $3 in $1)",
  878. "{",
  879. "}"
  880. ]
  881. },
  882. "查询操作视频分类列表,并取值": {
  883. "prefix": "ym-db-AppVideo-FindWithData",
  884. "body": [
  885. "List<AppVideo> $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  886. "foreach (AppVideo $3 in $1)",
  887. "{",
  888. " string Name = $3.Name; //名称",
  889. " string BannerPic = $3.BannerPic; //Banner图片",
  890. " string Remark = $3.Remark; //备注",
  891. "}"
  892. ]
  893. },
  894. "查询操作视频分类": {
  895. "prefix": "ym-db-AppVideo-Exist",
  896. "body": [
  897. "bool $1 = db.AppVideo.Any(m => m.Id == $2);",
  898. ]
  899. },
  900. "查询某个操作视频分类,并取值": {
  901. "prefix": "ym-db-AppVideo-FindByPrimaryKey",
  902. "body": [
  903. "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
  904. "if ($1 != null)",
  905. "{",
  906. " string Name = $1.Name; //名称",
  907. " string BannerPic = $1.BannerPic; //Banner图片",
  908. " string Remark = $1.Remark; //备注",
  909. "}"
  910. ]
  911. },
  912. "查询某个操作视频分类,并赋值": {
  913. "prefix": "ym-db-AppVideo-Update",
  914. "body": [
  915. "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
  916. "if ($1 != null)",
  917. "{",
  918. " $1.Name = $2; //名称",
  919. " $1.BannerPic = $3; //Banner图片",
  920. " $1.Remark = $4; //备注",
  921. "}"
  922. ]
  923. },
  924. "获取操作视频分类数量": {
  925. "prefix": "ym-db-AppVideo-FindAndCount",
  926. "body": [
  927. "int $1 = db.AppVideo.Count(m => $2);",
  928. ]
  929. },
  930. "添加操作视频分类": {
  931. "prefix": "ym-db-AppVideo-Create",
  932. "body": [
  933. "db.AppVideo.Add(new AppVideo()",
  934. "{",
  935. " CreateDate = DateTime.Now,",
  936. " UpdateDate = DateTime.Now,",
  937. " Name = $1, //名称",
  938. " BannerPic = $2, //Banner图片",
  939. " Remark = $3, //备注",
  940. "});"
  941. ]
  942. },"删除某个操作视频分类": {
  943. "prefix": "ym-db-AppVideo-Delete",
  944. "body": [
  945. "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
  946. "if ($1 != null)",
  947. "{",
  948. " db.AppVideo.Remove($1);",
  949. "}"
  950. ]
  951. },
  952. "查询操作视频列表列表": {
  953. "prefix": "ym-db-AppVideoList-Find",
  954. "body": [
  955. "List<AppVideoList> $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  956. "foreach (AppVideoList $3 in $1)",
  957. "{",
  958. "}"
  959. ]
  960. },
  961. "查询操作视频列表列表,并取值": {
  962. "prefix": "ym-db-AppVideoList-FindWithData",
  963. "body": [
  964. "List<AppVideoList> $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  965. "foreach (AppVideoList $3 in $1)",
  966. "{",
  967. " string Title = $3.Title; //标题",
  968. " string VideoUrl = $3.VideoUrl; //视频地址",
  969. " string Remark = $3.Remark; //备注",
  970. " int VideoId = $3.VideoId; //视频分类Id",
  971. " string BgPic = $3.BgPic; //背景图",
  972. "}"
  973. ]
  974. },
  975. "查询操作视频列表": {
  976. "prefix": "ym-db-AppVideoList-Exist",
  977. "body": [
  978. "bool $1 = db.AppVideoList.Any(m => m.Id == $2);",
  979. ]
  980. },
  981. "查询某个操作视频列表,并取值": {
  982. "prefix": "ym-db-AppVideoList-FindByPrimaryKey",
  983. "body": [
  984. "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
  985. "if ($1 != null)",
  986. "{",
  987. " string Title = $1.Title; //标题",
  988. " string VideoUrl = $1.VideoUrl; //视频地址",
  989. " string Remark = $1.Remark; //备注",
  990. " int VideoId = $1.VideoId; //视频分类Id",
  991. " string BgPic = $1.BgPic; //背景图",
  992. "}"
  993. ]
  994. },
  995. "查询某个操作视频列表,并赋值": {
  996. "prefix": "ym-db-AppVideoList-Update",
  997. "body": [
  998. "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
  999. "if ($1 != null)",
  1000. "{",
  1001. " $1.Title = $2; //标题",
  1002. " $1.VideoUrl = $3; //视频地址",
  1003. " $1.Remark = $4; //备注",
  1004. " $1.VideoId = $5; //视频分类Id",
  1005. " $1.BgPic = $6; //背景图",
  1006. "}"
  1007. ]
  1008. },
  1009. "获取操作视频列表数量": {
  1010. "prefix": "ym-db-AppVideoList-FindAndCount",
  1011. "body": [
  1012. "int $1 = db.AppVideoList.Count(m => $2);",
  1013. ]
  1014. },
  1015. "添加操作视频列表": {
  1016. "prefix": "ym-db-AppVideoList-Create",
  1017. "body": [
  1018. "db.AppVideoList.Add(new AppVideoList()",
  1019. "{",
  1020. " CreateDate = DateTime.Now,",
  1021. " UpdateDate = DateTime.Now,",
  1022. " Title = $1, //标题",
  1023. " VideoUrl = $2, //视频地址",
  1024. " Remark = $3, //备注",
  1025. " VideoId = $4, //视频分类Id",
  1026. " BgPic = $5, //背景图",
  1027. "});"
  1028. ]
  1029. },"删除某个操作视频列表": {
  1030. "prefix": "ym-db-AppVideoList-Delete",
  1031. "body": [
  1032. "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
  1033. "if ($1 != null)",
  1034. "{",
  1035. " db.AppVideoList.Remove($1);",
  1036. "}"
  1037. ]
  1038. },
  1039. "查询银行信息列表": {
  1040. "prefix": "ym-db-BankInfo-Find",
  1041. "body": [
  1042. "List<BankInfo> $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1043. "foreach (BankInfo $3 in $1)",
  1044. "{",
  1045. "}"
  1046. ]
  1047. },
  1048. "查询银行信息列表,并取值": {
  1049. "prefix": "ym-db-BankInfo-FindWithData",
  1050. "body": [
  1051. "List<BankInfo> $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1052. "foreach (BankInfo $3 in $1)",
  1053. "{",
  1054. " string BankName = $3.BankName; //银行全称",
  1055. " string BankCode = $3.BankCode; //银行编码",
  1056. " string UnitedBankNo = $3.UnitedBankNo; //银行总行联行号",
  1057. " string UnitedBankName = $3.UnitedBankName; //总行名称",
  1058. " string BankNameAbbr = $3.BankNameAbbr; //银行简称",
  1059. "}"
  1060. ]
  1061. },
  1062. "查询银行信息": {
  1063. "prefix": "ym-db-BankInfo-Exist",
  1064. "body": [
  1065. "bool $1 = db.BankInfo.Any(m => m.Id == $2);",
  1066. ]
  1067. },
  1068. "查询某个银行信息,并取值": {
  1069. "prefix": "ym-db-BankInfo-FindByPrimaryKey",
  1070. "body": [
  1071. "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
  1072. "if ($1 != null)",
  1073. "{",
  1074. " string BankName = $1.BankName; //银行全称",
  1075. " string BankCode = $1.BankCode; //银行编码",
  1076. " string UnitedBankNo = $1.UnitedBankNo; //银行总行联行号",
  1077. " string UnitedBankName = $1.UnitedBankName; //总行名称",
  1078. " string BankNameAbbr = $1.BankNameAbbr; //银行简称",
  1079. "}"
  1080. ]
  1081. },
  1082. "查询某个银行信息,并赋值": {
  1083. "prefix": "ym-db-BankInfo-Update",
  1084. "body": [
  1085. "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
  1086. "if ($1 != null)",
  1087. "{",
  1088. " $1.BankName = $2; //银行全称",
  1089. " $1.BankCode = $3; //银行编码",
  1090. " $1.UnitedBankNo = $4; //银行总行联行号",
  1091. " $1.UnitedBankName = $5; //总行名称",
  1092. " $1.BankNameAbbr = $6; //银行简称",
  1093. "}"
  1094. ]
  1095. },
  1096. "获取银行信息数量": {
  1097. "prefix": "ym-db-BankInfo-FindAndCount",
  1098. "body": [
  1099. "int $1 = db.BankInfo.Count(m => $2);",
  1100. ]
  1101. },
  1102. "添加银行信息": {
  1103. "prefix": "ym-db-BankInfo-Create",
  1104. "body": [
  1105. "db.BankInfo.Add(new BankInfo()",
  1106. "{",
  1107. " CreateDate = DateTime.Now,",
  1108. " UpdateDate = DateTime.Now,",
  1109. " BankName = $1, //银行全称",
  1110. " BankCode = $2, //银行编码",
  1111. " UnitedBankNo = $3, //银行总行联行号",
  1112. " UnitedBankName = $4, //总行名称",
  1113. " BankNameAbbr = $5, //银行简称",
  1114. "});"
  1115. ]
  1116. },"删除某个银行信息": {
  1117. "prefix": "ym-db-BankInfo-Delete",
  1118. "body": [
  1119. "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
  1120. "if ($1 != null)",
  1121. "{",
  1122. " db.BankInfo.Remove($1);",
  1123. "}"
  1124. ]
  1125. },
  1126. "查询分类设置列表": {
  1127. "prefix": "ym-db-Col-Find",
  1128. "body": [
  1129. "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1130. "foreach (Col $3 in $1)",
  1131. "{",
  1132. "}"
  1133. ]
  1134. },
  1135. "查询分类设置列表,并取值": {
  1136. "prefix": "ym-db-Col-FindWithData",
  1137. "body": [
  1138. "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1139. "foreach (Col $3 in $1)",
  1140. "{",
  1141. " string ColId = $3.ColId; //编号",
  1142. " string ColName = $3.ColName; //名称",
  1143. " string ColPicPath = $3.ColPicPath; //图标",
  1144. " string ColDetail = $3.ColDetail; //简介",
  1145. " ulong Recommend = $3.Recommend; //推荐",
  1146. " string ColEnName = $3.ColEnName; //英文名",
  1147. " string Contents = $3.Contents; //详细内容",
  1148. " string Url = $3.Url; //第三方链接",
  1149. " string ListTemp = $3.ListTemp; //列表模板PC",
  1150. " string DetailTemp = $3.DetailTemp; //详情模板PC",
  1151. " string ListTempM = $3.ListTempM; //列表模板移动",
  1152. " string DetailTempM = $3.DetailTempM; //详情模板移动",
  1153. " int ListPageCount = $3.ListPageCount; //每页数量",
  1154. " int ParentId = $3.ParentId; //父级Id",
  1155. " string ColEnNav = $3.ColEnNav; //英文路径",
  1156. " string ClassName = $3.ClassName; //class样式名1",
  1157. "}"
  1158. ]
  1159. },
  1160. "查询分类设置": {
  1161. "prefix": "ym-db-Col-Exist",
  1162. "body": [
  1163. "bool $1 = db.Col.Any(m => m.Id == $2);",
  1164. ]
  1165. },
  1166. "查询某个分类设置,并取值": {
  1167. "prefix": "ym-db-Col-FindByPrimaryKey",
  1168. "body": [
  1169. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  1170. "if ($1 != null)",
  1171. "{",
  1172. " string ColId = $1.ColId; //编号",
  1173. " string ColName = $1.ColName; //名称",
  1174. " string ColPicPath = $1.ColPicPath; //图标",
  1175. " string ColDetail = $1.ColDetail; //简介",
  1176. " ulong Recommend = $1.Recommend; //推荐",
  1177. " string ColEnName = $1.ColEnName; //英文名",
  1178. " string Contents = $1.Contents; //详细内容",
  1179. " string Url = $1.Url; //第三方链接",
  1180. " string ListTemp = $1.ListTemp; //列表模板PC",
  1181. " string DetailTemp = $1.DetailTemp; //详情模板PC",
  1182. " string ListTempM = $1.ListTempM; //列表模板移动",
  1183. " string DetailTempM = $1.DetailTempM; //详情模板移动",
  1184. " int ListPageCount = $1.ListPageCount; //每页数量",
  1185. " int ParentId = $1.ParentId; //父级Id",
  1186. " string ColEnNav = $1.ColEnNav; //英文路径",
  1187. " string ClassName = $1.ClassName; //class样式名1",
  1188. "}"
  1189. ]
  1190. },
  1191. "查询某个分类设置,并赋值": {
  1192. "prefix": "ym-db-Col-Update",
  1193. "body": [
  1194. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  1195. "if ($1 != null)",
  1196. "{",
  1197. " $1.ColId = $2; //编号",
  1198. " $1.ColName = $3; //名称",
  1199. " $1.ColPicPath = $4; //图标",
  1200. " $1.ColDetail = $5; //简介",
  1201. " $1.Recommend = $6; //推荐",
  1202. " $1.ColEnName = $7; //英文名",
  1203. " $1.Contents = $8; //详细内容",
  1204. " $1.Url = $9; //第三方链接",
  1205. " $1.ListTemp = $10; //列表模板PC",
  1206. " $1.DetailTemp = $11; //详情模板PC",
  1207. " $1.ListTempM = $12; //列表模板移动",
  1208. " $1.DetailTempM = $13; //详情模板移动",
  1209. " $1.ListPageCount = $14; //每页数量",
  1210. " $1.ParentId = $15; //父级Id",
  1211. " $1.ColEnNav = $16; //英文路径",
  1212. " $1.ClassName = $17; //class样式名1",
  1213. "}"
  1214. ]
  1215. },
  1216. "获取分类设置数量": {
  1217. "prefix": "ym-db-Col-FindAndCount",
  1218. "body": [
  1219. "int $1 = db.Col.Count(m => $2);",
  1220. ]
  1221. },
  1222. "添加分类设置": {
  1223. "prefix": "ym-db-Col-Create",
  1224. "body": [
  1225. "db.Col.Add(new Col()",
  1226. "{",
  1227. " CreateDate = DateTime.Now,",
  1228. " UpdateDate = DateTime.Now,",
  1229. " ColId = $1, //编号",
  1230. " ColName = $2, //名称",
  1231. " ColPicPath = $3, //图标",
  1232. " ColDetail = $4, //简介",
  1233. " Recommend = $5, //推荐",
  1234. " ColEnName = $6, //英文名",
  1235. " Contents = $7, //详细内容",
  1236. " Url = $8, //第三方链接",
  1237. " ListTemp = $9, //列表模板PC",
  1238. " DetailTemp = $10, //详情模板PC",
  1239. " ListTempM = $11, //列表模板移动",
  1240. " DetailTempM = $12, //详情模板移动",
  1241. " ListPageCount = $13, //每页数量",
  1242. " ParentId = $14, //父级Id",
  1243. " ColEnNav = $15, //英文路径",
  1244. " ClassName = $16, //class样式名1",
  1245. "});"
  1246. ]
  1247. },"删除某个分类设置": {
  1248. "prefix": "ym-db-Col-Delete",
  1249. "body": [
  1250. "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
  1251. "if ($1 != null)",
  1252. "{",
  1253. " db.Col.Remove($1);",
  1254. "}"
  1255. ]
  1256. },
  1257. "查询消费者对应商户的OpenId列表": {
  1258. "prefix": "ym-db-ConsumerOpenIds-Find",
  1259. "body": [
  1260. "List<ConsumerOpenIds> $1 = db.ConsumerOpenIds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1261. "foreach (ConsumerOpenIds $3 in $1)",
  1262. "{",
  1263. "}"
  1264. ]
  1265. },
  1266. "查询消费者对应商户的OpenId列表,并取值": {
  1267. "prefix": "ym-db-ConsumerOpenIds-FindWithData",
  1268. "body": [
  1269. "List<ConsumerOpenIds> $1 = db.ConsumerOpenIds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1270. "foreach (ConsumerOpenIds $3 in $1)",
  1271. "{",
  1272. " string OpenId = $3.OpenId; //消费者OpenId",
  1273. " int ConsumerId = $3.ConsumerId; //消费者",
  1274. "}"
  1275. ]
  1276. },
  1277. "查询消费者对应商户的OpenId": {
  1278. "prefix": "ym-db-ConsumerOpenIds-Exist",
  1279. "body": [
  1280. "bool $1 = db.ConsumerOpenIds.Any(m => m.OpenId == $2);",
  1281. ]
  1282. },
  1283. "查询某个消费者对应商户的OpenId,并取值": {
  1284. "prefix": "ym-db-ConsumerOpenIds-FindByPrimaryKey",
  1285. "body": [
  1286. "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);",
  1287. "if ($1 != null)",
  1288. "{",
  1289. " string OpenId = $1.OpenId; //消费者OpenId",
  1290. " int ConsumerId = $1.ConsumerId; //消费者",
  1291. "}"
  1292. ]
  1293. },
  1294. "查询某个消费者对应商户的OpenId,并赋值": {
  1295. "prefix": "ym-db-ConsumerOpenIds-Update",
  1296. "body": [
  1297. "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);",
  1298. "if ($1 != null)",
  1299. "{",
  1300. " $1.OpenId = $2; //消费者OpenId",
  1301. " $1.ConsumerId = $3; //消费者",
  1302. "}"
  1303. ]
  1304. },
  1305. "获取消费者对应商户的OpenId数量": {
  1306. "prefix": "ym-db-ConsumerOpenIds-FindAndCount",
  1307. "body": [
  1308. "int $1 = db.ConsumerOpenIds.Count(m => $2);",
  1309. ]
  1310. },
  1311. "添加消费者对应商户的OpenId": {
  1312. "prefix": "ym-db-ConsumerOpenIds-Create",
  1313. "body": [
  1314. "db.ConsumerOpenIds.Add(new ConsumerOpenIds()",
  1315. "{",
  1316. " CreateDate = DateTime.Now,",
  1317. " UpdateDate = DateTime.Now,",
  1318. " OpenId = $1, //消费者OpenId",
  1319. " ConsumerId = $2, //消费者",
  1320. "});"
  1321. ]
  1322. },"删除某个消费者对应商户的OpenId": {
  1323. "prefix": "ym-db-ConsumerOpenIds-Delete",
  1324. "body": [
  1325. "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);",
  1326. "if ($1 != null)",
  1327. "{",
  1328. " db.ConsumerOpenIds.Remove($1);",
  1329. "}"
  1330. ]
  1331. },
  1332. "查询消费记录列表": {
  1333. "prefix": "ym-db-ConsumerOrders-Find",
  1334. "body": [
  1335. "List<ConsumerOrders> $1 = db.ConsumerOrders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1336. "foreach (ConsumerOrders $3 in $1)",
  1337. "{",
  1338. "}"
  1339. ]
  1340. },
  1341. "查询消费记录列表,并取值": {
  1342. "prefix": "ym-db-ConsumerOrders-FindWithData",
  1343. "body": [
  1344. "List<ConsumerOrders> $1 = db.ConsumerOrders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1345. "foreach (ConsumerOrders $3 in $1)",
  1346. "{",
  1347. " int MerchantId = $3.MerchantId; //商户",
  1348. " int ConsumerId = $3.ConsumerId; //消费者",
  1349. " string OrderNo = $3.OrderNo; //订单号",
  1350. " int PayMode = $3.PayMode; //支付方式",
  1351. " decimal PayMoney = $3.PayMoney; //支付金额",
  1352. " decimal ReturnMoney = $3.ReturnMoney; //已返金额",
  1353. " string SnNo = $3.SnNo; //SN号",
  1354. " decimal MaxDivi = $3.MaxDivi; //最大分红",
  1355. " decimal CurDivi = $3.CurDivi; //当前分红",
  1356. "}"
  1357. ]
  1358. },
  1359. "查询消费记录": {
  1360. "prefix": "ym-db-ConsumerOrders-Exist",
  1361. "body": [
  1362. "bool $1 = db.ConsumerOrders.Any(m => m.Id == $2);",
  1363. ]
  1364. },
  1365. "查询某个消费记录,并取值": {
  1366. "prefix": "ym-db-ConsumerOrders-FindByPrimaryKey",
  1367. "body": [
  1368. "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);",
  1369. "if ($1 != null)",
  1370. "{",
  1371. " int MerchantId = $1.MerchantId; //商户",
  1372. " int ConsumerId = $1.ConsumerId; //消费者",
  1373. " string OrderNo = $1.OrderNo; //订单号",
  1374. " int PayMode = $1.PayMode; //支付方式",
  1375. " decimal PayMoney = $1.PayMoney; //支付金额",
  1376. " decimal ReturnMoney = $1.ReturnMoney; //已返金额",
  1377. " string SnNo = $1.SnNo; //SN号",
  1378. " decimal MaxDivi = $1.MaxDivi; //最大分红",
  1379. " decimal CurDivi = $1.CurDivi; //当前分红",
  1380. "}"
  1381. ]
  1382. },
  1383. "查询某个消费记录,并赋值": {
  1384. "prefix": "ym-db-ConsumerOrders-Update",
  1385. "body": [
  1386. "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);",
  1387. "if ($1 != null)",
  1388. "{",
  1389. " $1.MerchantId = $2; //商户",
  1390. " $1.ConsumerId = $3; //消费者",
  1391. " $1.OrderNo = $4; //订单号",
  1392. " $1.PayMode = $5; //支付方式",
  1393. " $1.PayMoney = $6; //支付金额",
  1394. " $1.ReturnMoney = $7; //已返金额",
  1395. " $1.SnNo = $8; //SN号",
  1396. " $1.MaxDivi = $9; //最大分红",
  1397. " $1.CurDivi = $10; //当前分红",
  1398. "}"
  1399. ]
  1400. },
  1401. "获取消费记录数量": {
  1402. "prefix": "ym-db-ConsumerOrders-FindAndCount",
  1403. "body": [
  1404. "int $1 = db.ConsumerOrders.Count(m => $2);",
  1405. ]
  1406. },
  1407. "添加消费记录": {
  1408. "prefix": "ym-db-ConsumerOrders-Create",
  1409. "body": [
  1410. "db.ConsumerOrders.Add(new ConsumerOrders()",
  1411. "{",
  1412. " CreateDate = DateTime.Now,",
  1413. " UpdateDate = DateTime.Now,",
  1414. " MerchantId = $1, //商户",
  1415. " ConsumerId = $2, //消费者",
  1416. " OrderNo = $3, //订单号",
  1417. " PayMode = $4, //支付方式",
  1418. " PayMoney = $5, //支付金额",
  1419. " ReturnMoney = $6, //已返金额",
  1420. " SnNo = $7, //SN号",
  1421. " MaxDivi = $8, //最大分红",
  1422. " CurDivi = $9, //当前分红",
  1423. "});"
  1424. ]
  1425. },"删除某个消费记录": {
  1426. "prefix": "ym-db-ConsumerOrders-Delete",
  1427. "body": [
  1428. "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);",
  1429. "if ($1 != null)",
  1430. "{",
  1431. " db.ConsumerOrders.Remove($1);",
  1432. "}"
  1433. ]
  1434. },
  1435. "查询消费者分红记录列表": {
  1436. "prefix": "ym-db-ConsumerProfit-Find",
  1437. "body": [
  1438. "List<ConsumerProfit> $1 = db.ConsumerProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1439. "foreach (ConsumerProfit $3 in $1)",
  1440. "{",
  1441. "}"
  1442. ]
  1443. },
  1444. "查询消费者分红记录列表,并取值": {
  1445. "prefix": "ym-db-ConsumerProfit-FindWithData",
  1446. "body": [
  1447. "List<ConsumerProfit> $1 = db.ConsumerProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1448. "foreach (ConsumerProfit $3 in $1)",
  1449. "{",
  1450. " int ConsumerId = $3.ConsumerId; //消费者",
  1451. " int MerchantId = $3.MerchantId; //商户",
  1452. " decimal GetMoney = $3.GetMoney; //分红金额",
  1453. " int OrderId = $3.OrderId; //订单",
  1454. "}"
  1455. ]
  1456. },
  1457. "查询消费者分红记录": {
  1458. "prefix": "ym-db-ConsumerProfit-Exist",
  1459. "body": [
  1460. "bool $1 = db.ConsumerProfit.Any(m => m.Id == $2);",
  1461. ]
  1462. },
  1463. "查询某个消费者分红记录,并取值": {
  1464. "prefix": "ym-db-ConsumerProfit-FindByPrimaryKey",
  1465. "body": [
  1466. "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);",
  1467. "if ($1 != null)",
  1468. "{",
  1469. " int ConsumerId = $1.ConsumerId; //消费者",
  1470. " int MerchantId = $1.MerchantId; //商户",
  1471. " decimal GetMoney = $1.GetMoney; //分红金额",
  1472. " int OrderId = $1.OrderId; //订单",
  1473. "}"
  1474. ]
  1475. },
  1476. "查询某个消费者分红记录,并赋值": {
  1477. "prefix": "ym-db-ConsumerProfit-Update",
  1478. "body": [
  1479. "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);",
  1480. "if ($1 != null)",
  1481. "{",
  1482. " $1.ConsumerId = $2; //消费者",
  1483. " $1.MerchantId = $3; //商户",
  1484. " $1.GetMoney = $4; //分红金额",
  1485. " $1.OrderId = $5; //订单",
  1486. "}"
  1487. ]
  1488. },
  1489. "获取消费者分红记录数量": {
  1490. "prefix": "ym-db-ConsumerProfit-FindAndCount",
  1491. "body": [
  1492. "int $1 = db.ConsumerProfit.Count(m => $2);",
  1493. ]
  1494. },
  1495. "添加消费者分红记录": {
  1496. "prefix": "ym-db-ConsumerProfit-Create",
  1497. "body": [
  1498. "db.ConsumerProfit.Add(new ConsumerProfit()",
  1499. "{",
  1500. " CreateDate = DateTime.Now,",
  1501. " UpdateDate = DateTime.Now,",
  1502. " ConsumerId = $1, //消费者",
  1503. " MerchantId = $2, //商户",
  1504. " GetMoney = $3, //分红金额",
  1505. " OrderId = $4, //订单",
  1506. "});"
  1507. ]
  1508. },"删除某个消费者分红记录": {
  1509. "prefix": "ym-db-ConsumerProfit-Delete",
  1510. "body": [
  1511. "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);",
  1512. "if ($1 != null)",
  1513. "{",
  1514. " db.ConsumerProfit.Remove($1);",
  1515. "}"
  1516. ]
  1517. },
  1518. "查询消费者列表": {
  1519. "prefix": "ym-db-Consumers-Find",
  1520. "body": [
  1521. "List<Consumers> $1 = db.Consumers.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1522. "foreach (Consumers $3 in $1)",
  1523. "{",
  1524. "}"
  1525. ]
  1526. },
  1527. "查询消费者列表,并取值": {
  1528. "prefix": "ym-db-Consumers-FindWithData",
  1529. "body": [
  1530. "List<Consumers> $1 = db.Consumers.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1531. "foreach (Consumers $3 in $1)",
  1532. "{",
  1533. " string NickName = $3.NickName; //昵称",
  1534. " string HeadPhoto = $3.HeadPhoto; //头像",
  1535. " string Mobile = $3.Mobile; //手机号",
  1536. " decimal TotalDividend = $3.TotalDividend; //累计分红",
  1537. " int TotalIntegral = $3.TotalIntegral; //累计积分",
  1538. " int CurIntgegral = $3.CurIntgegral; //当前积分",
  1539. " string WechatUnionid = $3.WechatUnionid; //微信Unionid",
  1540. " string AlipayUserId = $3.AlipayUserId; //支付宝UserId",
  1541. " decimal TotalAmount = $3.TotalAmount; //累计消费金额",
  1542. " int TotalConsumCount = $3.TotalConsumCount; //累计消费次数",
  1543. " DateTime LastConsumDate = $3.LastConsumDate; //最近消费时间",
  1544. " ulong WeChatPayFlag = $3.WeChatPayFlag; //微信付款标记",
  1545. " ulong AlipayFlag = $3.AlipayFlag; //支付宝付款标记",
  1546. " ulong CardFlag = $3.CardFlag; //是否领取会员卡",
  1547. " string WechatOpenId = $3.WechatOpenId; //微信OpenId",
  1548. "}"
  1549. ]
  1550. },
  1551. "查询消费者": {
  1552. "prefix": "ym-db-Consumers-Exist",
  1553. "body": [
  1554. "bool $1 = db.Consumers.Any(m => m.Id == $2);",
  1555. ]
  1556. },
  1557. "查询某个消费者,并取值": {
  1558. "prefix": "ym-db-Consumers-FindByPrimaryKey",
  1559. "body": [
  1560. "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);",
  1561. "if ($1 != null)",
  1562. "{",
  1563. " string NickName = $1.NickName; //昵称",
  1564. " string HeadPhoto = $1.HeadPhoto; //头像",
  1565. " string Mobile = $1.Mobile; //手机号",
  1566. " decimal TotalDividend = $1.TotalDividend; //累计分红",
  1567. " int TotalIntegral = $1.TotalIntegral; //累计积分",
  1568. " int CurIntgegral = $1.CurIntgegral; //当前积分",
  1569. " string WechatUnionid = $1.WechatUnionid; //微信Unionid",
  1570. " string AlipayUserId = $1.AlipayUserId; //支付宝UserId",
  1571. " decimal TotalAmount = $1.TotalAmount; //累计消费金额",
  1572. " int TotalConsumCount = $1.TotalConsumCount; //累计消费次数",
  1573. " DateTime LastConsumDate = $1.LastConsumDate; //最近消费时间",
  1574. " ulong WeChatPayFlag = $1.WeChatPayFlag; //微信付款标记",
  1575. " ulong AlipayFlag = $1.AlipayFlag; //支付宝付款标记",
  1576. " ulong CardFlag = $1.CardFlag; //是否领取会员卡",
  1577. " string WechatOpenId = $1.WechatOpenId; //微信OpenId",
  1578. "}"
  1579. ]
  1580. },
  1581. "查询某个消费者,并赋值": {
  1582. "prefix": "ym-db-Consumers-Update",
  1583. "body": [
  1584. "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);",
  1585. "if ($1 != null)",
  1586. "{",
  1587. " $1.NickName = $2; //昵称",
  1588. " $1.HeadPhoto = $3; //头像",
  1589. " $1.Mobile = $4; //手机号",
  1590. " $1.TotalDividend = $5; //累计分红",
  1591. " $1.TotalIntegral = $6; //累计积分",
  1592. " $1.CurIntgegral = $7; //当前积分",
  1593. " $1.WechatUnionid = $8; //微信Unionid",
  1594. " $1.AlipayUserId = $9; //支付宝UserId",
  1595. " $1.TotalAmount = $10; //累计消费金额",
  1596. " $1.TotalConsumCount = $11; //累计消费次数",
  1597. " $1.LastConsumDate = $12; //最近消费时间",
  1598. " $1.WeChatPayFlag = $13; //微信付款标记",
  1599. " $1.AlipayFlag = $14; //支付宝付款标记",
  1600. " $1.CardFlag = $15; //是否领取会员卡",
  1601. " $1.WechatOpenId = $16; //微信OpenId",
  1602. "}"
  1603. ]
  1604. },
  1605. "获取消费者数量": {
  1606. "prefix": "ym-db-Consumers-FindAndCount",
  1607. "body": [
  1608. "int $1 = db.Consumers.Count(m => $2);",
  1609. ]
  1610. },
  1611. "添加消费者": {
  1612. "prefix": "ym-db-Consumers-Create",
  1613. "body": [
  1614. "db.Consumers.Add(new Consumers()",
  1615. "{",
  1616. " CreateDate = DateTime.Now,",
  1617. " UpdateDate = DateTime.Now,",
  1618. " NickName = $1, //昵称",
  1619. " HeadPhoto = $2, //头像",
  1620. " Mobile = $3, //手机号",
  1621. " TotalDividend = $4, //累计分红",
  1622. " TotalIntegral = $5, //累计积分",
  1623. " CurIntgegral = $6, //当前积分",
  1624. " WechatUnionid = $7, //微信Unionid",
  1625. " AlipayUserId = $8, //支付宝UserId",
  1626. " TotalAmount = $9, //累计消费金额",
  1627. " TotalConsumCount = $10, //累计消费次数",
  1628. " LastConsumDate = $11, //最近消费时间",
  1629. " WeChatPayFlag = $12, //微信付款标记",
  1630. " AlipayFlag = $13, //支付宝付款标记",
  1631. " CardFlag = $14, //是否领取会员卡",
  1632. " WechatOpenId = $15, //微信OpenId",
  1633. "});"
  1634. ]
  1635. },"删除某个消费者": {
  1636. "prefix": "ym-db-Consumers-Delete",
  1637. "body": [
  1638. "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);",
  1639. "if ($1 != null)",
  1640. "{",
  1641. " db.Consumers.Remove($1);",
  1642. "}"
  1643. ]
  1644. },
  1645. "查询优惠券发放记录列表": {
  1646. "prefix": "ym-db-CouponAssignRecords-Find",
  1647. "body": [
  1648. "List<CouponAssignRecords> $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1649. "foreach (CouponAssignRecords $3 in $1)",
  1650. "{",
  1651. "}"
  1652. ]
  1653. },
  1654. "查询优惠券发放记录列表,并取值": {
  1655. "prefix": "ym-db-CouponAssignRecords-FindWithData",
  1656. "body": [
  1657. "List<CouponAssignRecords> $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1658. "foreach (CouponAssignRecords $3 in $1)",
  1659. "{",
  1660. " int UserMinLevel = $3.UserMinLevel; //创客最低等级",
  1661. " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级",
  1662. " decimal TotalOrderMoneyMin = $3.TotalOrderMoneyMin; //最小消费总额",
  1663. " decimal TotalOrderMoneyMax = $3.TotalOrderMoneyMax; //最大消费总额",
  1664. " decimal TotalUseIntegralMin = $3.TotalUseIntegralMin; //最小消耗积分总额",
  1665. " decimal TotalUseIntegralMax = $3.TotalUseIntegralMax; //最大消耗积分总额",
  1666. " decimal CurMoneyMin = $3.CurMoneyMin; //当前最低余额",
  1667. " decimal CurMoneyMax = $3.CurMoneyMax; //当前最高余额",
  1668. " string UserGroupId = $3.UserGroupId; //创客分组",
  1669. " string Areas = $3.Areas; //创客所在地区",
  1670. " string Mobile = $3.Mobile; //手机号",
  1671. " string CouponIds = $3.CouponIds; //优惠券",
  1672. "}"
  1673. ]
  1674. },
  1675. "查询优惠券发放记录": {
  1676. "prefix": "ym-db-CouponAssignRecords-Exist",
  1677. "body": [
  1678. "bool $1 = db.CouponAssignRecords.Any(m => m.Id == $2);",
  1679. ]
  1680. },
  1681. "查询某个优惠券发放记录,并取值": {
  1682. "prefix": "ym-db-CouponAssignRecords-FindByPrimaryKey",
  1683. "body": [
  1684. "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
  1685. "if ($1 != null)",
  1686. "{",
  1687. " int UserMinLevel = $1.UserMinLevel; //创客最低等级",
  1688. " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级",
  1689. " decimal TotalOrderMoneyMin = $1.TotalOrderMoneyMin; //最小消费总额",
  1690. " decimal TotalOrderMoneyMax = $1.TotalOrderMoneyMax; //最大消费总额",
  1691. " decimal TotalUseIntegralMin = $1.TotalUseIntegralMin; //最小消耗积分总额",
  1692. " decimal TotalUseIntegralMax = $1.TotalUseIntegralMax; //最大消耗积分总额",
  1693. " decimal CurMoneyMin = $1.CurMoneyMin; //当前最低余额",
  1694. " decimal CurMoneyMax = $1.CurMoneyMax; //当前最高余额",
  1695. " string UserGroupId = $1.UserGroupId; //创客分组",
  1696. " string Areas = $1.Areas; //创客所在地区",
  1697. " string Mobile = $1.Mobile; //手机号",
  1698. " string CouponIds = $1.CouponIds; //优惠券",
  1699. "}"
  1700. ]
  1701. },
  1702. "查询某个优惠券发放记录,并赋值": {
  1703. "prefix": "ym-db-CouponAssignRecords-Update",
  1704. "body": [
  1705. "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
  1706. "if ($1 != null)",
  1707. "{",
  1708. " $1.UserMinLevel = $2; //创客最低等级",
  1709. " $1.UserMaxLevel = $3; //创客最高等级",
  1710. " $1.TotalOrderMoneyMin = $4; //最小消费总额",
  1711. " $1.TotalOrderMoneyMax = $5; //最大消费总额",
  1712. " $1.TotalUseIntegralMin = $6; //最小消耗积分总额",
  1713. " $1.TotalUseIntegralMax = $7; //最大消耗积分总额",
  1714. " $1.CurMoneyMin = $8; //当前最低余额",
  1715. " $1.CurMoneyMax = $9; //当前最高余额",
  1716. " $1.UserGroupId = $10; //创客分组",
  1717. " $1.Areas = $11; //创客所在地区",
  1718. " $1.Mobile = $12; //手机号",
  1719. " $1.CouponIds = $13; //优惠券",
  1720. "}"
  1721. ]
  1722. },
  1723. "获取优惠券发放记录数量": {
  1724. "prefix": "ym-db-CouponAssignRecords-FindAndCount",
  1725. "body": [
  1726. "int $1 = db.CouponAssignRecords.Count(m => $2);",
  1727. ]
  1728. },
  1729. "添加优惠券发放记录": {
  1730. "prefix": "ym-db-CouponAssignRecords-Create",
  1731. "body": [
  1732. "db.CouponAssignRecords.Add(new CouponAssignRecords()",
  1733. "{",
  1734. " CreateDate = DateTime.Now,",
  1735. " UpdateDate = DateTime.Now,",
  1736. " UserMinLevel = $1, //创客最低等级",
  1737. " UserMaxLevel = $2, //创客最高等级",
  1738. " TotalOrderMoneyMin = $3, //最小消费总额",
  1739. " TotalOrderMoneyMax = $4, //最大消费总额",
  1740. " TotalUseIntegralMin = $5, //最小消耗积分总额",
  1741. " TotalUseIntegralMax = $6, //最大消耗积分总额",
  1742. " CurMoneyMin = $7, //当前最低余额",
  1743. " CurMoneyMax = $8, //当前最高余额",
  1744. " UserGroupId = $9, //创客分组",
  1745. " Areas = $10, //创客所在地区",
  1746. " Mobile = $11, //手机号",
  1747. " CouponIds = $12, //优惠券",
  1748. "});"
  1749. ]
  1750. },"删除某个优惠券发放记录": {
  1751. "prefix": "ym-db-CouponAssignRecords-Delete",
  1752. "body": [
  1753. "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
  1754. "if ($1 != null)",
  1755. "{",
  1756. " db.CouponAssignRecords.Remove($1);",
  1757. "}"
  1758. ]
  1759. },
  1760. "查询优惠券列表": {
  1761. "prefix": "ym-db-Coupons-Find",
  1762. "body": [
  1763. "List<Coupons> $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1764. "foreach (Coupons $3 in $1)",
  1765. "{",
  1766. "}"
  1767. ]
  1768. },
  1769. "查询优惠券列表,并取值": {
  1770. "prefix": "ym-db-Coupons-FindWithData",
  1771. "body": [
  1772. "List<Coupons> $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1773. "foreach (Coupons $3 in $1)",
  1774. "{",
  1775. " string Name = $3.Name; //名称",
  1776. " string Explanation = $3.Explanation; //说明",
  1777. " ulong IsNewUser = $3.IsNewUser; //新创客使用",
  1778. " ulong IsPublic = $3.IsPublic; //是否公开领取",
  1779. " decimal Stock = $3.Stock; //库存",
  1780. " int Kind = $3.Kind; //优惠券类型",
  1781. " string MerchantId = $3.MerchantId; //商家",
  1782. " string ProductColId = $3.ProductColId; //商品分类",
  1783. " string ProductId = $3.ProductId; //商品",
  1784. " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级",
  1785. " int UserMinLevel = $3.UserMinLevel; //创客最低等级",
  1786. " DateTime UseStartDate = $3.UseStartDate; //开始使用时间",
  1787. " DateTime UseEndDate = $3.UseEndDate; //结束使用时间",
  1788. " ulong IsRepeat = $3.IsRepeat; //是否重复",
  1789. " int RepeatType = $3.RepeatType; //重复类型",
  1790. " string RepeatCondition = $3.RepeatCondition; //重复条件值",
  1791. " ulong IsReUse = $3.IsReUse; //是否一次性使用",
  1792. " DateTime PublicStartDate = $3.PublicStartDate; //公开领取开始时间",
  1793. " DateTime PublicEndDate = $3.PublicEndDate; //公开领取结束时间",
  1794. " int PublicMax = $3.PublicMax; //公开每人领取数量",
  1795. " int PublicMaxByDay = $3.PublicMaxByDay; //公开每人每天领取数量",
  1796. " ulong IsSuperpose = $3.IsSuperpose; //是否叠加使用",
  1797. " ulong AndPromotion = $3.AndPromotion; //是否与促销活动同时使用",
  1798. " decimal FullReduceMoney = $3.FullReduceMoney; //满多少可用",
  1799. " decimal FullReduceData = $3.FullReduceData; //满减数据",
  1800. " DateTime ExpireStartDate = $3.ExpireStartDate; //过期开始时间",
  1801. " DateTime ExpireEndDate = $3.ExpireEndDate; //过期结束时间",
  1802. "}"
  1803. ]
  1804. },
  1805. "查询优惠券": {
  1806. "prefix": "ym-db-Coupons-Exist",
  1807. "body": [
  1808. "bool $1 = db.Coupons.Any(m => m.Id == $2);",
  1809. ]
  1810. },
  1811. "查询某个优惠券,并取值": {
  1812. "prefix": "ym-db-Coupons-FindByPrimaryKey",
  1813. "body": [
  1814. "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
  1815. "if ($1 != null)",
  1816. "{",
  1817. " string Name = $1.Name; //名称",
  1818. " string Explanation = $1.Explanation; //说明",
  1819. " ulong IsNewUser = $1.IsNewUser; //新创客使用",
  1820. " ulong IsPublic = $1.IsPublic; //是否公开领取",
  1821. " decimal Stock = $1.Stock; //库存",
  1822. " int Kind = $1.Kind; //优惠券类型",
  1823. " string MerchantId = $1.MerchantId; //商家",
  1824. " string ProductColId = $1.ProductColId; //商品分类",
  1825. " string ProductId = $1.ProductId; //商品",
  1826. " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级",
  1827. " int UserMinLevel = $1.UserMinLevel; //创客最低等级",
  1828. " DateTime UseStartDate = $1.UseStartDate; //开始使用时间",
  1829. " DateTime UseEndDate = $1.UseEndDate; //结束使用时间",
  1830. " ulong IsRepeat = $1.IsRepeat; //是否重复",
  1831. " int RepeatType = $1.RepeatType; //重复类型",
  1832. " string RepeatCondition = $1.RepeatCondition; //重复条件值",
  1833. " ulong IsReUse = $1.IsReUse; //是否一次性使用",
  1834. " DateTime PublicStartDate = $1.PublicStartDate; //公开领取开始时间",
  1835. " DateTime PublicEndDate = $1.PublicEndDate; //公开领取结束时间",
  1836. " int PublicMax = $1.PublicMax; //公开每人领取数量",
  1837. " int PublicMaxByDay = $1.PublicMaxByDay; //公开每人每天领取数量",
  1838. " ulong IsSuperpose = $1.IsSuperpose; //是否叠加使用",
  1839. " ulong AndPromotion = $1.AndPromotion; //是否与促销活动同时使用",
  1840. " decimal FullReduceMoney = $1.FullReduceMoney; //满多少可用",
  1841. " decimal FullReduceData = $1.FullReduceData; //满减数据",
  1842. " DateTime ExpireStartDate = $1.ExpireStartDate; //过期开始时间",
  1843. " DateTime ExpireEndDate = $1.ExpireEndDate; //过期结束时间",
  1844. "}"
  1845. ]
  1846. },
  1847. "查询某个优惠券,并赋值": {
  1848. "prefix": "ym-db-Coupons-Update",
  1849. "body": [
  1850. "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
  1851. "if ($1 != null)",
  1852. "{",
  1853. " $1.Name = $2; //名称",
  1854. " $1.Explanation = $3; //说明",
  1855. " $1.IsNewUser = $4; //新创客使用",
  1856. " $1.IsPublic = $5; //是否公开领取",
  1857. " $1.Stock = $6; //库存",
  1858. " $1.Kind = $7; //优惠券类型",
  1859. " $1.MerchantId = $8; //商家",
  1860. " $1.ProductColId = $9; //商品分类",
  1861. " $1.ProductId = $10; //商品",
  1862. " $1.UserMaxLevel = $11; //创客最高等级",
  1863. " $1.UserMinLevel = $12; //创客最低等级",
  1864. " $1.UseStartDate = $13; //开始使用时间",
  1865. " $1.UseEndDate = $14; //结束使用时间",
  1866. " $1.IsRepeat = $15; //是否重复",
  1867. " $1.RepeatType = $16; //重复类型",
  1868. " $1.RepeatCondition = $17; //重复条件值",
  1869. " $1.IsReUse = $18; //是否一次性使用",
  1870. " $1.PublicStartDate = $19; //公开领取开始时间",
  1871. " $1.PublicEndDate = $20; //公开领取结束时间",
  1872. " $1.PublicMax = $21; //公开每人领取数量",
  1873. " $1.PublicMaxByDay = $22; //公开每人每天领取数量",
  1874. " $1.IsSuperpose = $23; //是否叠加使用",
  1875. " $1.AndPromotion = $24; //是否与促销活动同时使用",
  1876. " $1.FullReduceMoney = $25; //满多少可用",
  1877. " $1.FullReduceData = $26; //满减数据",
  1878. " $1.ExpireStartDate = $27; //过期开始时间",
  1879. " $1.ExpireEndDate = $28; //过期结束时间",
  1880. "}"
  1881. ]
  1882. },
  1883. "获取优惠券数量": {
  1884. "prefix": "ym-db-Coupons-FindAndCount",
  1885. "body": [
  1886. "int $1 = db.Coupons.Count(m => $2);",
  1887. ]
  1888. },
  1889. "添加优惠券": {
  1890. "prefix": "ym-db-Coupons-Create",
  1891. "body": [
  1892. "db.Coupons.Add(new Coupons()",
  1893. "{",
  1894. " CreateDate = DateTime.Now,",
  1895. " UpdateDate = DateTime.Now,",
  1896. " Name = $1, //名称",
  1897. " Explanation = $2, //说明",
  1898. " IsNewUser = $3, //新创客使用",
  1899. " IsPublic = $4, //是否公开领取",
  1900. " Stock = $5, //库存",
  1901. " Kind = $6, //优惠券类型",
  1902. " MerchantId = $7, //商家",
  1903. " ProductColId = $8, //商品分类",
  1904. " ProductId = $9, //商品",
  1905. " UserMaxLevel = $10, //创客最高等级",
  1906. " UserMinLevel = $11, //创客最低等级",
  1907. " UseStartDate = $12, //开始使用时间",
  1908. " UseEndDate = $13, //结束使用时间",
  1909. " IsRepeat = $14, //是否重复",
  1910. " RepeatType = $15, //重复类型",
  1911. " RepeatCondition = $16, //重复条件值",
  1912. " IsReUse = $17, //是否一次性使用",
  1913. " PublicStartDate = $18, //公开领取开始时间",
  1914. " PublicEndDate = $19, //公开领取结束时间",
  1915. " PublicMax = $20, //公开每人领取数量",
  1916. " PublicMaxByDay = $21, //公开每人每天领取数量",
  1917. " IsSuperpose = $22, //是否叠加使用",
  1918. " AndPromotion = $23, //是否与促销活动同时使用",
  1919. " FullReduceMoney = $24, //满多少可用",
  1920. " FullReduceData = $25, //满减数据",
  1921. " ExpireStartDate = $26, //过期开始时间",
  1922. " ExpireEndDate = $27, //过期结束时间",
  1923. "});"
  1924. ]
  1925. },"删除某个优惠券": {
  1926. "prefix": "ym-db-Coupons-Delete",
  1927. "body": [
  1928. "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
  1929. "if ($1 != null)",
  1930. "{",
  1931. " db.Coupons.Remove($1);",
  1932. "}"
  1933. ]
  1934. },
  1935. "查询优惠券领取记录列表": {
  1936. "prefix": "ym-db-CouponsForUser-Find",
  1937. "body": [
  1938. "List<CouponsForUser> $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1939. "foreach (CouponsForUser $3 in $1)",
  1940. "{",
  1941. "}"
  1942. ]
  1943. },
  1944. "查询优惠券领取记录列表,并取值": {
  1945. "prefix": "ym-db-CouponsForUser-FindWithData",
  1946. "body": [
  1947. "List<CouponsForUser> $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1948. "foreach (CouponsForUser $3 in $1)",
  1949. "{",
  1950. " int UserId = $3.UserId; //创客Id",
  1951. " int CouponId = $3.CouponId; //券Id",
  1952. " ulong IsUse = $3.IsUse; //是否使用",
  1953. " ulong IsLock = $3.IsLock; //是否锁定",
  1954. " DateTime UseDate = $3.UseDate; //使用时间",
  1955. "}"
  1956. ]
  1957. },
  1958. "查询优惠券领取记录": {
  1959. "prefix": "ym-db-CouponsForUser-Exist",
  1960. "body": [
  1961. "bool $1 = db.CouponsForUser.Any(m => m.Id == $2);",
  1962. ]
  1963. },
  1964. "查询某个优惠券领取记录,并取值": {
  1965. "prefix": "ym-db-CouponsForUser-FindByPrimaryKey",
  1966. "body": [
  1967. "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
  1968. "if ($1 != null)",
  1969. "{",
  1970. " int UserId = $1.UserId; //创客Id",
  1971. " int CouponId = $1.CouponId; //券Id",
  1972. " ulong IsUse = $1.IsUse; //是否使用",
  1973. " ulong IsLock = $1.IsLock; //是否锁定",
  1974. " DateTime UseDate = $1.UseDate; //使用时间",
  1975. "}"
  1976. ]
  1977. },
  1978. "查询某个优惠券领取记录,并赋值": {
  1979. "prefix": "ym-db-CouponsForUser-Update",
  1980. "body": [
  1981. "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
  1982. "if ($1 != null)",
  1983. "{",
  1984. " $1.UserId = $2; //创客Id",
  1985. " $1.CouponId = $3; //券Id",
  1986. " $1.IsUse = $4; //是否使用",
  1987. " $1.IsLock = $5; //是否锁定",
  1988. " $1.UseDate = $6; //使用时间",
  1989. "}"
  1990. ]
  1991. },
  1992. "获取优惠券领取记录数量": {
  1993. "prefix": "ym-db-CouponsForUser-FindAndCount",
  1994. "body": [
  1995. "int $1 = db.CouponsForUser.Count(m => $2);",
  1996. ]
  1997. },
  1998. "添加优惠券领取记录": {
  1999. "prefix": "ym-db-CouponsForUser-Create",
  2000. "body": [
  2001. "db.CouponsForUser.Add(new CouponsForUser()",
  2002. "{",
  2003. " CreateDate = DateTime.Now,",
  2004. " UpdateDate = DateTime.Now,",
  2005. " UserId = $1, //创客Id",
  2006. " CouponId = $2, //券Id",
  2007. " IsUse = $3, //是否使用",
  2008. " IsLock = $4, //是否锁定",
  2009. " UseDate = $5, //使用时间",
  2010. "});"
  2011. ]
  2012. },"删除某个优惠券领取记录": {
  2013. "prefix": "ym-db-CouponsForUser-Delete",
  2014. "body": [
  2015. "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
  2016. "if ($1 != null)",
  2017. "{",
  2018. " db.CouponsForUser.Remove($1);",
  2019. "}"
  2020. ]
  2021. },
  2022. "查询自定义全局标签列表": {
  2023. "prefix": "ym-db-CustomTagSet-Find",
  2024. "body": [
  2025. "List<CustomTagSet> $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2026. "foreach (CustomTagSet $3 in $1)",
  2027. "{",
  2028. "}"
  2029. ]
  2030. },
  2031. "查询自定义全局标签列表,并取值": {
  2032. "prefix": "ym-db-CustomTagSet-FindWithData",
  2033. "body": [
  2034. "List<CustomTagSet> $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2035. "foreach (CustomTagSet $3 in $1)",
  2036. "{",
  2037. " string Tags = $3.Tags; //标签",
  2038. " string Title = $3.Title; //标题",
  2039. " string Contents = $3.Contents; //内容",
  2040. "}"
  2041. ]
  2042. },
  2043. "查询自定义全局标签": {
  2044. "prefix": "ym-db-CustomTagSet-Exist",
  2045. "body": [
  2046. "bool $1 = db.CustomTagSet.Any(m => m.Id == $2);",
  2047. ]
  2048. },
  2049. "查询某个自定义全局标签,并取值": {
  2050. "prefix": "ym-db-CustomTagSet-FindByPrimaryKey",
  2051. "body": [
  2052. "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
  2053. "if ($1 != null)",
  2054. "{",
  2055. " string Tags = $1.Tags; //标签",
  2056. " string Title = $1.Title; //标题",
  2057. " string Contents = $1.Contents; //内容",
  2058. "}"
  2059. ]
  2060. },
  2061. "查询某个自定义全局标签,并赋值": {
  2062. "prefix": "ym-db-CustomTagSet-Update",
  2063. "body": [
  2064. "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
  2065. "if ($1 != null)",
  2066. "{",
  2067. " $1.Tags = $2; //标签",
  2068. " $1.Title = $3; //标题",
  2069. " $1.Contents = $4; //内容",
  2070. "}"
  2071. ]
  2072. },
  2073. "获取自定义全局标签数量": {
  2074. "prefix": "ym-db-CustomTagSet-FindAndCount",
  2075. "body": [
  2076. "int $1 = db.CustomTagSet.Count(m => $2);",
  2077. ]
  2078. },
  2079. "添加自定义全局标签": {
  2080. "prefix": "ym-db-CustomTagSet-Create",
  2081. "body": [
  2082. "db.CustomTagSet.Add(new CustomTagSet()",
  2083. "{",
  2084. " CreateDate = DateTime.Now,",
  2085. " UpdateDate = DateTime.Now,",
  2086. " Tags = $1, //标签",
  2087. " Title = $2, //标题",
  2088. " Contents = $3, //内容",
  2089. "});"
  2090. ]
  2091. },"删除某个自定义全局标签": {
  2092. "prefix": "ym-db-CustomTagSet-Delete",
  2093. "body": [
  2094. "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
  2095. "if ($1 != null)",
  2096. "{",
  2097. " db.CustomTagSet.Remove($1);",
  2098. "}"
  2099. ]
  2100. },
  2101. "查询快递公司列表": {
  2102. "prefix": "ym-db-ErpCompanys-Find",
  2103. "body": [
  2104. "List<ErpCompanys> $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2105. "foreach (ErpCompanys $3 in $1)",
  2106. "{",
  2107. "}"
  2108. ]
  2109. },
  2110. "查询快递公司列表,并取值": {
  2111. "prefix": "ym-db-ErpCompanys-FindWithData",
  2112. "body": [
  2113. "List<ErpCompanys> $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2114. "foreach (ErpCompanys $3 in $1)",
  2115. "{",
  2116. " string Name = $3.Name; //名称",
  2117. " string Code = $3.Code; //编码",
  2118. " string Phone = $3.Phone; //客服电话",
  2119. "}"
  2120. ]
  2121. },
  2122. "查询快递公司": {
  2123. "prefix": "ym-db-ErpCompanys-Exist",
  2124. "body": [
  2125. "bool $1 = db.ErpCompanys.Any(m => m.Id == $2);",
  2126. ]
  2127. },
  2128. "查询某个快递公司,并取值": {
  2129. "prefix": "ym-db-ErpCompanys-FindByPrimaryKey",
  2130. "body": [
  2131. "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
  2132. "if ($1 != null)",
  2133. "{",
  2134. " string Name = $1.Name; //名称",
  2135. " string Code = $1.Code; //编码",
  2136. " string Phone = $1.Phone; //客服电话",
  2137. "}"
  2138. ]
  2139. },
  2140. "查询某个快递公司,并赋值": {
  2141. "prefix": "ym-db-ErpCompanys-Update",
  2142. "body": [
  2143. "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
  2144. "if ($1 != null)",
  2145. "{",
  2146. " $1.Name = $2; //名称",
  2147. " $1.Code = $3; //编码",
  2148. " $1.Phone = $4; //客服电话",
  2149. "}"
  2150. ]
  2151. },
  2152. "获取快递公司数量": {
  2153. "prefix": "ym-db-ErpCompanys-FindAndCount",
  2154. "body": [
  2155. "int $1 = db.ErpCompanys.Count(m => $2);",
  2156. ]
  2157. },
  2158. "添加快递公司": {
  2159. "prefix": "ym-db-ErpCompanys-Create",
  2160. "body": [
  2161. "db.ErpCompanys.Add(new ErpCompanys()",
  2162. "{",
  2163. " CreateDate = DateTime.Now,",
  2164. " UpdateDate = DateTime.Now,",
  2165. " Name = $1, //名称",
  2166. " Code = $2, //编码",
  2167. " Phone = $3, //客服电话",
  2168. "});"
  2169. ]
  2170. },"删除某个快递公司": {
  2171. "prefix": "ym-db-ErpCompanys-Delete",
  2172. "body": [
  2173. "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
  2174. "if ($1 != null)",
  2175. "{",
  2176. " db.ErpCompanys.Remove($1);",
  2177. "}"
  2178. ]
  2179. },
  2180. "查询资源文件更新信息列表": {
  2181. "prefix": "ym-db-FileUpdateInfo-Find",
  2182. "body": [
  2183. "List<FileUpdateInfo> $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2184. "foreach (FileUpdateInfo $3 in $1)",
  2185. "{",
  2186. "}"
  2187. ]
  2188. },
  2189. "查询资源文件更新信息列表,并取值": {
  2190. "prefix": "ym-db-FileUpdateInfo-FindWithData",
  2191. "body": [
  2192. "List<FileUpdateInfo> $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2193. "foreach (FileUpdateInfo $3 in $1)",
  2194. "{",
  2195. " int VersionNum = $3.VersionNum; //更新版本",
  2196. " string Path = $3.Path; //路径",
  2197. " string FileName = $3.FileName; //文件名",
  2198. "}"
  2199. ]
  2200. },
  2201. "查询资源文件更新信息": {
  2202. "prefix": "ym-db-FileUpdateInfo-Exist",
  2203. "body": [
  2204. "bool $1 = db.FileUpdateInfo.Any(m => m.Id == $2);",
  2205. ]
  2206. },
  2207. "查询某个资源文件更新信息,并取值": {
  2208. "prefix": "ym-db-FileUpdateInfo-FindByPrimaryKey",
  2209. "body": [
  2210. "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  2211. "if ($1 != null)",
  2212. "{",
  2213. " int VersionNum = $1.VersionNum; //更新版本",
  2214. " string Path = $1.Path; //路径",
  2215. " string FileName = $1.FileName; //文件名",
  2216. "}"
  2217. ]
  2218. },
  2219. "查询某个资源文件更新信息,并赋值": {
  2220. "prefix": "ym-db-FileUpdateInfo-Update",
  2221. "body": [
  2222. "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  2223. "if ($1 != null)",
  2224. "{",
  2225. " $1.VersionNum = $2; //更新版本",
  2226. " $1.Path = $3; //路径",
  2227. " $1.FileName = $4; //文件名",
  2228. "}"
  2229. ]
  2230. },
  2231. "获取资源文件更新信息数量": {
  2232. "prefix": "ym-db-FileUpdateInfo-FindAndCount",
  2233. "body": [
  2234. "int $1 = db.FileUpdateInfo.Count(m => $2);",
  2235. ]
  2236. },
  2237. "添加资源文件更新信息": {
  2238. "prefix": "ym-db-FileUpdateInfo-Create",
  2239. "body": [
  2240. "db.FileUpdateInfo.Add(new FileUpdateInfo()",
  2241. "{",
  2242. " CreateDate = DateTime.Now,",
  2243. " UpdateDate = DateTime.Now,",
  2244. " VersionNum = $1, //更新版本",
  2245. " Path = $2, //路径",
  2246. " FileName = $3, //文件名",
  2247. "});"
  2248. ]
  2249. },"删除某个资源文件更新信息": {
  2250. "prefix": "ym-db-FileUpdateInfo-Delete",
  2251. "body": [
  2252. "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  2253. "if ($1 != null)",
  2254. "{",
  2255. " db.FileUpdateInfo.Remove($1);",
  2256. "}"
  2257. ]
  2258. },
  2259. "查询流量分佣明细列表": {
  2260. "prefix": "ym-db-FluxProfitDetail-Find",
  2261. "body": [
  2262. "List<FluxProfitDetail> $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2263. "foreach (FluxProfitDetail $3 in $1)",
  2264. "{",
  2265. "}"
  2266. ]
  2267. },
  2268. "查询流量分佣明细列表,并取值": {
  2269. "prefix": "ym-db-FluxProfitDetail-FindWithData",
  2270. "body": [
  2271. "List<FluxProfitDetail> $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2272. "foreach (FluxProfitDetail $3 in $1)",
  2273. "{",
  2274. " string RecordNo = $3.RecordNo; //单号",
  2275. " string TradeDate = $3.TradeDate; //交易日期",
  2276. " string TradeTime = $3.TradeTime; //交易时间",
  2277. " string TradeMonth = $3.TradeMonth; //交易月",
  2278. " int UserId = $3.UserId; //创客",
  2279. " int MerchantId = $3.MerchantId; //商户",
  2280. " int MerchantUserId = $3.MerchantUserId; //商户直属人",
  2281. " string MerNo = $3.MerNo; //渠道商户编号",
  2282. " string SnNo = $3.SnNo; //渠道SN号",
  2283. " int ProfitType = $3.ProfitType; //分润类型",
  2284. " string FluxOrderNo = $3.FluxOrderNo; //流量扣费单号",
  2285. " string TradeOrderNo = $3.TradeOrderNo; //交易流水号",
  2286. " decimal TradeAmt = $3.TradeAmt; //商户交易额",
  2287. " decimal FluxFeeAmt = $3.FluxFeeAmt; //流量费",
  2288. " string FluxStartDate = $3.FluxStartDate; //流量扣费开始日期",
  2289. " string FluxEndDate = $3.FluxEndDate; //流量扣费结束日期",
  2290. " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额",
  2291. " string PosType = $3.PosType; //POS类型",
  2292. " string Remark = $3.Remark; //备注",
  2293. " int BrandId = $3.BrandId; //品牌",
  2294. " int TopUserId = $3.TopUserId; //顶级创客",
  2295. " int MerUserType = $3.MerUserType; //商户创客类型",
  2296. "}"
  2297. ]
  2298. },
  2299. "查询流量分佣明细": {
  2300. "prefix": "ym-db-FluxProfitDetail-Exist",
  2301. "body": [
  2302. "bool $1 = db.FluxProfitDetail.Any(m => m.Id == $2);",
  2303. ]
  2304. },
  2305. "查询某个流量分佣明细,并取值": {
  2306. "prefix": "ym-db-FluxProfitDetail-FindByPrimaryKey",
  2307. "body": [
  2308. "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
  2309. "if ($1 != null)",
  2310. "{",
  2311. " string RecordNo = $1.RecordNo; //单号",
  2312. " string TradeDate = $1.TradeDate; //交易日期",
  2313. " string TradeTime = $1.TradeTime; //交易时间",
  2314. " string TradeMonth = $1.TradeMonth; //交易月",
  2315. " int UserId = $1.UserId; //创客",
  2316. " int MerchantId = $1.MerchantId; //商户",
  2317. " int MerchantUserId = $1.MerchantUserId; //商户直属人",
  2318. " string MerNo = $1.MerNo; //渠道商户编号",
  2319. " string SnNo = $1.SnNo; //渠道SN号",
  2320. " int ProfitType = $1.ProfitType; //分润类型",
  2321. " string FluxOrderNo = $1.FluxOrderNo; //流量扣费单号",
  2322. " string TradeOrderNo = $1.TradeOrderNo; //交易流水号",
  2323. " decimal TradeAmt = $1.TradeAmt; //商户交易额",
  2324. " decimal FluxFeeAmt = $1.FluxFeeAmt; //流量费",
  2325. " string FluxStartDate = $1.FluxStartDate; //流量扣费开始日期",
  2326. " string FluxEndDate = $1.FluxEndDate; //流量扣费结束日期",
  2327. " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额",
  2328. " string PosType = $1.PosType; //POS类型",
  2329. " string Remark = $1.Remark; //备注",
  2330. " int BrandId = $1.BrandId; //品牌",
  2331. " int TopUserId = $1.TopUserId; //顶级创客",
  2332. " int MerUserType = $1.MerUserType; //商户创客类型",
  2333. "}"
  2334. ]
  2335. },
  2336. "查询某个流量分佣明细,并赋值": {
  2337. "prefix": "ym-db-FluxProfitDetail-Update",
  2338. "body": [
  2339. "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
  2340. "if ($1 != null)",
  2341. "{",
  2342. " $1.RecordNo = $2; //单号",
  2343. " $1.TradeDate = $3; //交易日期",
  2344. " $1.TradeTime = $4; //交易时间",
  2345. " $1.TradeMonth = $5; //交易月",
  2346. " $1.UserId = $6; //创客",
  2347. " $1.MerchantId = $7; //商户",
  2348. " $1.MerchantUserId = $8; //商户直属人",
  2349. " $1.MerNo = $9; //渠道商户编号",
  2350. " $1.SnNo = $10; //渠道SN号",
  2351. " $1.ProfitType = $11; //分润类型",
  2352. " $1.FluxOrderNo = $12; //流量扣费单号",
  2353. " $1.TradeOrderNo = $13; //交易流水号",
  2354. " $1.TradeAmt = $14; //商户交易额",
  2355. " $1.FluxFeeAmt = $15; //流量费",
  2356. " $1.FluxStartDate = $16; //流量扣费开始日期",
  2357. " $1.FluxEndDate = $17; //流量扣费结束日期",
  2358. " $1.FluxProfitAmt = $18; //流量分润总金额",
  2359. " $1.PosType = $19; //POS类型",
  2360. " $1.Remark = $20; //备注",
  2361. " $1.BrandId = $21; //品牌",
  2362. " $1.TopUserId = $22; //顶级创客",
  2363. " $1.MerUserType = $23; //商户创客类型",
  2364. "}"
  2365. ]
  2366. },
  2367. "获取流量分佣明细数量": {
  2368. "prefix": "ym-db-FluxProfitDetail-FindAndCount",
  2369. "body": [
  2370. "int $1 = db.FluxProfitDetail.Count(m => $2);",
  2371. ]
  2372. },
  2373. "添加流量分佣明细": {
  2374. "prefix": "ym-db-FluxProfitDetail-Create",
  2375. "body": [
  2376. "db.FluxProfitDetail.Add(new FluxProfitDetail()",
  2377. "{",
  2378. " CreateDate = DateTime.Now,",
  2379. " UpdateDate = DateTime.Now,",
  2380. " RecordNo = $1, //单号",
  2381. " TradeDate = $2, //交易日期",
  2382. " TradeTime = $3, //交易时间",
  2383. " TradeMonth = $4, //交易月",
  2384. " UserId = $5, //创客",
  2385. " MerchantId = $6, //商户",
  2386. " MerchantUserId = $7, //商户直属人",
  2387. " MerNo = $8, //渠道商户编号",
  2388. " SnNo = $9, //渠道SN号",
  2389. " ProfitType = $10, //分润类型",
  2390. " FluxOrderNo = $11, //流量扣费单号",
  2391. " TradeOrderNo = $12, //交易流水号",
  2392. " TradeAmt = $13, //商户交易额",
  2393. " FluxFeeAmt = $14, //流量费",
  2394. " FluxStartDate = $15, //流量扣费开始日期",
  2395. " FluxEndDate = $16, //流量扣费结束日期",
  2396. " FluxProfitAmt = $17, //流量分润总金额",
  2397. " PosType = $18, //POS类型",
  2398. " Remark = $19, //备注",
  2399. " BrandId = $20, //品牌",
  2400. " TopUserId = $21, //顶级创客",
  2401. " MerUserType = $22, //商户创客类型",
  2402. "});"
  2403. ]
  2404. },"删除某个流量分佣明细": {
  2405. "prefix": "ym-db-FluxProfitDetail-Delete",
  2406. "body": [
  2407. "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
  2408. "if ($1 != null)",
  2409. "{",
  2410. " db.FluxProfitDetail.Remove($1);",
  2411. "}"
  2412. ]
  2413. },
  2414. "查询流量分佣汇总列表": {
  2415. "prefix": "ym-db-FluxProfitSummary-Find",
  2416. "body": [
  2417. "List<FluxProfitSummary> $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2418. "foreach (FluxProfitSummary $3 in $1)",
  2419. "{",
  2420. "}"
  2421. ]
  2422. },
  2423. "查询流量分佣汇总列表,并取值": {
  2424. "prefix": "ym-db-FluxProfitSummary-FindWithData",
  2425. "body": [
  2426. "List<FluxProfitSummary> $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2427. "foreach (FluxProfitSummary $3 in $1)",
  2428. "{",
  2429. " int UserId = $3.UserId; //创客",
  2430. " int TopUserId = $3.TopUserId; //顶级创客",
  2431. " string TradeMonth = $3.TradeMonth; //交易月",
  2432. " int MerUserType = $3.MerUserType; //商户创客类型",
  2433. " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额",
  2434. " int FluxTradeNum = $3.FluxTradeNum; //商户借记卡封顶交易总笔数",
  2435. " int CheckStatus = $3.CheckStatus; //同步账户状态",
  2436. " string Remark = $3.Remark; //备注",
  2437. " int BrandId = $3.BrandId; //品牌",
  2438. "}"
  2439. ]
  2440. },
  2441. "查询流量分佣汇总": {
  2442. "prefix": "ym-db-FluxProfitSummary-Exist",
  2443. "body": [
  2444. "bool $1 = db.FluxProfitSummary.Any(m => m.Id == $2);",
  2445. ]
  2446. },
  2447. "查询某个流量分佣汇总,并取值": {
  2448. "prefix": "ym-db-FluxProfitSummary-FindByPrimaryKey",
  2449. "body": [
  2450. "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
  2451. "if ($1 != null)",
  2452. "{",
  2453. " int UserId = $1.UserId; //创客",
  2454. " int TopUserId = $1.TopUserId; //顶级创客",
  2455. " string TradeMonth = $1.TradeMonth; //交易月",
  2456. " int MerUserType = $1.MerUserType; //商户创客类型",
  2457. " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额",
  2458. " int FluxTradeNum = $1.FluxTradeNum; //商户借记卡封顶交易总笔数",
  2459. " int CheckStatus = $1.CheckStatus; //同步账户状态",
  2460. " string Remark = $1.Remark; //备注",
  2461. " int BrandId = $1.BrandId; //品牌",
  2462. "}"
  2463. ]
  2464. },
  2465. "查询某个流量分佣汇总,并赋值": {
  2466. "prefix": "ym-db-FluxProfitSummary-Update",
  2467. "body": [
  2468. "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
  2469. "if ($1 != null)",
  2470. "{",
  2471. " $1.UserId = $2; //创客",
  2472. " $1.TopUserId = $3; //顶级创客",
  2473. " $1.TradeMonth = $4; //交易月",
  2474. " $1.MerUserType = $5; //商户创客类型",
  2475. " $1.FluxProfitAmt = $6; //流量分润总金额",
  2476. " $1.FluxTradeNum = $7; //商户借记卡封顶交易总笔数",
  2477. " $1.CheckStatus = $8; //同步账户状态",
  2478. " $1.Remark = $9; //备注",
  2479. " $1.BrandId = $10; //品牌",
  2480. "}"
  2481. ]
  2482. },
  2483. "获取流量分佣汇总数量": {
  2484. "prefix": "ym-db-FluxProfitSummary-FindAndCount",
  2485. "body": [
  2486. "int $1 = db.FluxProfitSummary.Count(m => $2);",
  2487. ]
  2488. },
  2489. "添加流量分佣汇总": {
  2490. "prefix": "ym-db-FluxProfitSummary-Create",
  2491. "body": [
  2492. "db.FluxProfitSummary.Add(new FluxProfitSummary()",
  2493. "{",
  2494. " CreateDate = DateTime.Now,",
  2495. " UpdateDate = DateTime.Now,",
  2496. " UserId = $1, //创客",
  2497. " TopUserId = $2, //顶级创客",
  2498. " TradeMonth = $3, //交易月",
  2499. " MerUserType = $4, //商户创客类型",
  2500. " FluxProfitAmt = $5, //流量分润总金额",
  2501. " FluxTradeNum = $6, //商户借记卡封顶交易总笔数",
  2502. " CheckStatus = $7, //同步账户状态",
  2503. " Remark = $8, //备注",
  2504. " BrandId = $9, //品牌",
  2505. "});"
  2506. ]
  2507. },"删除某个流量分佣汇总": {
  2508. "prefix": "ym-db-FluxProfitSummary-Delete",
  2509. "body": [
  2510. "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
  2511. "if ($1 != null)",
  2512. "{",
  2513. " db.FluxProfitSummary.Remove($1);",
  2514. "}"
  2515. ]
  2516. },
  2517. "查询首页快捷入口列表": {
  2518. "prefix": "ym-db-IndexIconList-Find",
  2519. "body": [
  2520. "List<IndexIconList> $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2521. "foreach (IndexIconList $3 in $1)",
  2522. "{",
  2523. "}"
  2524. ]
  2525. },
  2526. "查询首页快捷入口列表,并取值": {
  2527. "prefix": "ym-db-IndexIconList-FindWithData",
  2528. "body": [
  2529. "List<IndexIconList> $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2530. "foreach (IndexIconList $3 in $1)",
  2531. "{",
  2532. " string Icon = $3.Icon; //图标",
  2533. " string Title = $3.Title; //标题",
  2534. " string Url = $3.Url; //跳转地址",
  2535. "}"
  2536. ]
  2537. },
  2538. "查询首页快捷入口": {
  2539. "prefix": "ym-db-IndexIconList-Exist",
  2540. "body": [
  2541. "bool $1 = db.IndexIconList.Any(m => m.Id == $2);",
  2542. ]
  2543. },
  2544. "查询某个首页快捷入口,并取值": {
  2545. "prefix": "ym-db-IndexIconList-FindByPrimaryKey",
  2546. "body": [
  2547. "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
  2548. "if ($1 != null)",
  2549. "{",
  2550. " string Icon = $1.Icon; //图标",
  2551. " string Title = $1.Title; //标题",
  2552. " string Url = $1.Url; //跳转地址",
  2553. "}"
  2554. ]
  2555. },
  2556. "查询某个首页快捷入口,并赋值": {
  2557. "prefix": "ym-db-IndexIconList-Update",
  2558. "body": [
  2559. "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
  2560. "if ($1 != null)",
  2561. "{",
  2562. " $1.Icon = $2; //图标",
  2563. " $1.Title = $3; //标题",
  2564. " $1.Url = $4; //跳转地址",
  2565. "}"
  2566. ]
  2567. },
  2568. "获取首页快捷入口数量": {
  2569. "prefix": "ym-db-IndexIconList-FindAndCount",
  2570. "body": [
  2571. "int $1 = db.IndexIconList.Count(m => $2);",
  2572. ]
  2573. },
  2574. "添加首页快捷入口": {
  2575. "prefix": "ym-db-IndexIconList-Create",
  2576. "body": [
  2577. "db.IndexIconList.Add(new IndexIconList()",
  2578. "{",
  2579. " CreateDate = DateTime.Now,",
  2580. " UpdateDate = DateTime.Now,",
  2581. " Icon = $1, //图标",
  2582. " Title = $2, //标题",
  2583. " Url = $3, //跳转地址",
  2584. "});"
  2585. ]
  2586. },"删除某个首页快捷入口": {
  2587. "prefix": "ym-db-IndexIconList-Delete",
  2588. "body": [
  2589. "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
  2590. "if ($1 != null)",
  2591. "{",
  2592. " db.IndexIconList.Remove($1);",
  2593. "}"
  2594. ]
  2595. },
  2596. "查询产品品牌列表": {
  2597. "prefix": "ym-db-KqProductBrand-Find",
  2598. "body": [
  2599. "List<KqProductBrand> $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2600. "foreach (KqProductBrand $3 in $1)",
  2601. "{",
  2602. "}"
  2603. ]
  2604. },
  2605. "查询产品品牌列表,并取值": {
  2606. "prefix": "ym-db-KqProductBrand-FindWithData",
  2607. "body": [
  2608. "List<KqProductBrand> $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2609. "foreach (KqProductBrand $3 in $1)",
  2610. "{",
  2611. " int ProductId = $3.ProductId; //产品",
  2612. " string Name = $3.Name; //品牌名称",
  2613. "}"
  2614. ]
  2615. },
  2616. "查询产品品牌": {
  2617. "prefix": "ym-db-KqProductBrand-Exist",
  2618. "body": [
  2619. "bool $1 = db.KqProductBrand.Any(m => m.Id == $2);",
  2620. ]
  2621. },
  2622. "查询某个产品品牌,并取值": {
  2623. "prefix": "ym-db-KqProductBrand-FindByPrimaryKey",
  2624. "body": [
  2625. "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
  2626. "if ($1 != null)",
  2627. "{",
  2628. " int ProductId = $1.ProductId; //产品",
  2629. " string Name = $1.Name; //品牌名称",
  2630. "}"
  2631. ]
  2632. },
  2633. "查询某个产品品牌,并赋值": {
  2634. "prefix": "ym-db-KqProductBrand-Update",
  2635. "body": [
  2636. "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
  2637. "if ($1 != null)",
  2638. "{",
  2639. " $1.ProductId = $2; //产品",
  2640. " $1.Name = $3; //品牌名称",
  2641. "}"
  2642. ]
  2643. },
  2644. "获取产品品牌数量": {
  2645. "prefix": "ym-db-KqProductBrand-FindAndCount",
  2646. "body": [
  2647. "int $1 = db.KqProductBrand.Count(m => $2);",
  2648. ]
  2649. },
  2650. "添加产品品牌": {
  2651. "prefix": "ym-db-KqProductBrand-Create",
  2652. "body": [
  2653. "db.KqProductBrand.Add(new KqProductBrand()",
  2654. "{",
  2655. " CreateDate = DateTime.Now,",
  2656. " UpdateDate = DateTime.Now,",
  2657. " ProductId = $1, //产品",
  2658. " Name = $2, //品牌名称",
  2659. "});"
  2660. ]
  2661. },"删除某个产品品牌": {
  2662. "prefix": "ym-db-KqProductBrand-Delete",
  2663. "body": [
  2664. "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
  2665. "if ($1 != null)",
  2666. "{",
  2667. " db.KqProductBrand.Remove($1);",
  2668. "}"
  2669. ]
  2670. },
  2671. "查询产品机构列表": {
  2672. "prefix": "ym-db-KqProductOrgs-Find",
  2673. "body": [
  2674. "List<KqProductOrgs> $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2675. "foreach (KqProductOrgs $3 in $1)",
  2676. "{",
  2677. "}"
  2678. ]
  2679. },
  2680. "查询产品机构列表,并取值": {
  2681. "prefix": "ym-db-KqProductOrgs-FindWithData",
  2682. "body": [
  2683. "List<KqProductOrgs> $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2684. "foreach (KqProductOrgs $3 in $1)",
  2685. "{",
  2686. " int BrandId = $3.BrandId; //品牌",
  2687. " string Name = $3.Name; //机构名称",
  2688. "}"
  2689. ]
  2690. },
  2691. "查询产品机构": {
  2692. "prefix": "ym-db-KqProductOrgs-Exist",
  2693. "body": [
  2694. "bool $1 = db.KqProductOrgs.Any(m => m.Id == $2);",
  2695. ]
  2696. },
  2697. "查询某个产品机构,并取值": {
  2698. "prefix": "ym-db-KqProductOrgs-FindByPrimaryKey",
  2699. "body": [
  2700. "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
  2701. "if ($1 != null)",
  2702. "{",
  2703. " int BrandId = $1.BrandId; //品牌",
  2704. " string Name = $1.Name; //机构名称",
  2705. "}"
  2706. ]
  2707. },
  2708. "查询某个产品机构,并赋值": {
  2709. "prefix": "ym-db-KqProductOrgs-Update",
  2710. "body": [
  2711. "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
  2712. "if ($1 != null)",
  2713. "{",
  2714. " $1.BrandId = $2; //品牌",
  2715. " $1.Name = $3; //机构名称",
  2716. "}"
  2717. ]
  2718. },
  2719. "获取产品机构数量": {
  2720. "prefix": "ym-db-KqProductOrgs-FindAndCount",
  2721. "body": [
  2722. "int $1 = db.KqProductOrgs.Count(m => $2);",
  2723. ]
  2724. },
  2725. "添加产品机构": {
  2726. "prefix": "ym-db-KqProductOrgs-Create",
  2727. "body": [
  2728. "db.KqProductOrgs.Add(new KqProductOrgs()",
  2729. "{",
  2730. " CreateDate = DateTime.Now,",
  2731. " UpdateDate = DateTime.Now,",
  2732. " BrandId = $1, //品牌",
  2733. " Name = $2, //机构名称",
  2734. "});"
  2735. ]
  2736. },"删除某个产品机构": {
  2737. "prefix": "ym-db-KqProductOrgs-Delete",
  2738. "body": [
  2739. "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
  2740. "if ($1 != null)",
  2741. "{",
  2742. " db.KqProductOrgs.Remove($1);",
  2743. "}"
  2744. ]
  2745. },
  2746. "查询产品规则配置列表": {
  2747. "prefix": "ym-db-KqProductRuleSet-Find",
  2748. "body": [
  2749. "List<KqProductRuleSet> $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2750. "foreach (KqProductRuleSet $3 in $1)",
  2751. "{",
  2752. "}"
  2753. ]
  2754. },
  2755. "查询产品规则配置列表,并取值": {
  2756. "prefix": "ym-db-KqProductRuleSet-FindWithData",
  2757. "body": [
  2758. "List<KqProductRuleSet> $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2759. "foreach (KqProductRuleSet $3 in $1)",
  2760. "{",
  2761. " int OrgId = $3.OrgId; //机构",
  2762. " decimal Deposit = $3.Deposit; //押金",
  2763. " int ActiveCount = $3.ActiveCount; //活动政策台数",
  2764. " decimal ActivePrice = $3.ActivePrice; //活动政策价格",
  2765. " DateTime MerStaStartDate = $3.MerStaStartDate; //活动开始时间",
  2766. " DateTime MerStaEndDate = $3.MerStaEndDate; //活动结束时间",
  2767. " decimal MerStaProfit = $3.MerStaProfit; //达标奖励",
  2768. " int MerStaMonths = $3.MerStaMonths; //激活后达标月",
  2769. " decimal MerStaTradeForMonth = $3.MerStaTradeForMonth; //激活后每月达标交易",
  2770. " DateTime ActStartDate = $3.ActStartDate; //活动开始时间",
  2771. " DateTime ActEndDate = $3.ActEndDate; //活动结束时间",
  2772. " decimal ActDeposit = $3.ActDeposit; //激活押金",
  2773. " decimal ActFirst = $3.ActFirst; //激活首刷",
  2774. " decimal ActFirstDeposit = $3.ActFirstDeposit; //激活首刷押金",
  2775. " decimal ActPrize = $3.ActPrize; //激活奖励金额",
  2776. " int ActPosCount = $3.ActPosCount; //激活赠机台数",
  2777. " DateTime OpenStartDate = $3.OpenStartDate; //活动开始时间",
  2778. " DateTime OpenEndDate = $3.OpenEndDate; //活动结束时间",
  2779. " int OpenStaDays = $3.OpenStaDays; //达标天数",
  2780. " decimal OpenStaTrade = $3.OpenStaTrade; //达标交易",
  2781. " decimal OpenStaPrize = $3.OpenStaPrize; //达标奖励1",
  2782. " decimal OpenStaPrize2 = $3.OpenStaPrize2; //达标奖励2",
  2783. " DateTime CycleStartDate = $3.CycleStartDate; //活动开始时间",
  2784. " DateTime CycleEndDate = $3.CycleEndDate; //活动结束时间",
  2785. " ulong CycleIsOther = $3.CycleIsOther; //是否允许划拨给他人",
  2786. " int CyclePosDays = $3.CyclePosDays; //领机天数",
  2787. " DateTime PullNewStartDate = $3.PullNewStartDate; //活动开始时间",
  2788. " DateTime PullNewEndDate = $3.PullNewEndDate; //活动结束时间",
  2789. " int PullNewExtendDays = $3.PullNewExtendDays; //延长领机天数",
  2790. " decimal BigTotalAmount = $3.BigTotalAmount; //购买机起始价",
  2791. " int BigExtendCycleDays = $3.BigExtendCycleDays; //延长循环周期天数",
  2792. " DateTime SubsidyStartDate = $3.SubsidyStartDate; //活动开始时间",
  2793. " DateTime SubsidyEndDate = $3.SubsidyEndDate; //活动结束时间",
  2794. " DateTime FlowCardStartDate = $3.FlowCardStartDate; //活动开始时间",
  2795. " DateTime FlowCardEndDate = $3.FlowCardEndDate; //活动结束时间",
  2796. " int FlowCardFreeDays = $3.FlowCardFreeDays; //免收天数",
  2797. " decimal FlowCardFee = $3.FlowCardFee; //费用",
  2798. " DateTime FeeOfDays = $3.FeeOfDays; //扣费频率(天)",
  2799. " decimal FlowCardDirectProfit = $3.FlowCardDirectProfit; //直属上级返佣",
  2800. " DateTime HelpStartDate = $3.HelpStartDate; //活动开始时间",
  2801. " DateTime HelpEndDate = $3.HelpEndDate; //活动结束时间",
  2802. " int HelpMonths = $3.HelpMonths; //计算自然月",
  2803. " decimal HelpFee = $3.HelpFee; //扶植期费率",
  2804. " decimal HelpSteadyFee = $3.HelpSteadyFee; //稳定期费率",
  2805. " int FeeBindDays = $3.FeeBindDays; //绑定起天数",
  2806. " decimal FeeFixed = $3.FeeFixed; //固定手续费",
  2807. " decimal FeeRate = $3.FeeRate; //费率",
  2808. "}"
  2809. ]
  2810. },
  2811. "查询产品规则配置": {
  2812. "prefix": "ym-db-KqProductRuleSet-Exist",
  2813. "body": [
  2814. "bool $1 = db.KqProductRuleSet.Any(m => m.Id == $2);",
  2815. ]
  2816. },
  2817. "查询某个产品规则配置,并取值": {
  2818. "prefix": "ym-db-KqProductRuleSet-FindByPrimaryKey",
  2819. "body": [
  2820. "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
  2821. "if ($1 != null)",
  2822. "{",
  2823. " int OrgId = $1.OrgId; //机构",
  2824. " decimal Deposit = $1.Deposit; //押金",
  2825. " int ActiveCount = $1.ActiveCount; //活动政策台数",
  2826. " decimal ActivePrice = $1.ActivePrice; //活动政策价格",
  2827. " DateTime MerStaStartDate = $1.MerStaStartDate; //活动开始时间",
  2828. " DateTime MerStaEndDate = $1.MerStaEndDate; //活动结束时间",
  2829. " decimal MerStaProfit = $1.MerStaProfit; //达标奖励",
  2830. " int MerStaMonths = $1.MerStaMonths; //激活后达标月",
  2831. " decimal MerStaTradeForMonth = $1.MerStaTradeForMonth; //激活后每月达标交易",
  2832. " DateTime ActStartDate = $1.ActStartDate; //活动开始时间",
  2833. " DateTime ActEndDate = $1.ActEndDate; //活动结束时间",
  2834. " decimal ActDeposit = $1.ActDeposit; //激活押金",
  2835. " decimal ActFirst = $1.ActFirst; //激活首刷",
  2836. " decimal ActFirstDeposit = $1.ActFirstDeposit; //激活首刷押金",
  2837. " decimal ActPrize = $1.ActPrize; //激活奖励金额",
  2838. " int ActPosCount = $1.ActPosCount; //激活赠机台数",
  2839. " DateTime OpenStartDate = $1.OpenStartDate; //活动开始时间",
  2840. " DateTime OpenEndDate = $1.OpenEndDate; //活动结束时间",
  2841. " int OpenStaDays = $1.OpenStaDays; //达标天数",
  2842. " decimal OpenStaTrade = $1.OpenStaTrade; //达标交易",
  2843. " decimal OpenStaPrize = $1.OpenStaPrize; //达标奖励1",
  2844. " decimal OpenStaPrize2 = $1.OpenStaPrize2; //达标奖励2",
  2845. " DateTime CycleStartDate = $1.CycleStartDate; //活动开始时间",
  2846. " DateTime CycleEndDate = $1.CycleEndDate; //活动结束时间",
  2847. " ulong CycleIsOther = $1.CycleIsOther; //是否允许划拨给他人",
  2848. " int CyclePosDays = $1.CyclePosDays; //领机天数",
  2849. " DateTime PullNewStartDate = $1.PullNewStartDate; //活动开始时间",
  2850. " DateTime PullNewEndDate = $1.PullNewEndDate; //活动结束时间",
  2851. " int PullNewExtendDays = $1.PullNewExtendDays; //延长领机天数",
  2852. " decimal BigTotalAmount = $1.BigTotalAmount; //购买机起始价",
  2853. " int BigExtendCycleDays = $1.BigExtendCycleDays; //延长循环周期天数",
  2854. " DateTime SubsidyStartDate = $1.SubsidyStartDate; //活动开始时间",
  2855. " DateTime SubsidyEndDate = $1.SubsidyEndDate; //活动结束时间",
  2856. " DateTime FlowCardStartDate = $1.FlowCardStartDate; //活动开始时间",
  2857. " DateTime FlowCardEndDate = $1.FlowCardEndDate; //活动结束时间",
  2858. " int FlowCardFreeDays = $1.FlowCardFreeDays; //免收天数",
  2859. " decimal FlowCardFee = $1.FlowCardFee; //费用",
  2860. " DateTime FeeOfDays = $1.FeeOfDays; //扣费频率(天)",
  2861. " decimal FlowCardDirectProfit = $1.FlowCardDirectProfit; //直属上级返佣",
  2862. " DateTime HelpStartDate = $1.HelpStartDate; //活动开始时间",
  2863. " DateTime HelpEndDate = $1.HelpEndDate; //活动结束时间",
  2864. " int HelpMonths = $1.HelpMonths; //计算自然月",
  2865. " decimal HelpFee = $1.HelpFee; //扶植期费率",
  2866. " decimal HelpSteadyFee = $1.HelpSteadyFee; //稳定期费率",
  2867. " int FeeBindDays = $1.FeeBindDays; //绑定起天数",
  2868. " decimal FeeFixed = $1.FeeFixed; //固定手续费",
  2869. " decimal FeeRate = $1.FeeRate; //费率",
  2870. "}"
  2871. ]
  2872. },
  2873. "查询某个产品规则配置,并赋值": {
  2874. "prefix": "ym-db-KqProductRuleSet-Update",
  2875. "body": [
  2876. "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
  2877. "if ($1 != null)",
  2878. "{",
  2879. " $1.OrgId = $2; //机构",
  2880. " $1.Deposit = $3; //押金",
  2881. " $1.ActiveCount = $4; //活动政策台数",
  2882. " $1.ActivePrice = $5; //活动政策价格",
  2883. " $1.MerStaStartDate = $6; //活动开始时间",
  2884. " $1.MerStaEndDate = $7; //活动结束时间",
  2885. " $1.MerStaProfit = $8; //达标奖励",
  2886. " $1.MerStaMonths = $9; //激活后达标月",
  2887. " $1.MerStaTradeForMonth = $10; //激活后每月达标交易",
  2888. " $1.ActStartDate = $11; //活动开始时间",
  2889. " $1.ActEndDate = $12; //活动结束时间",
  2890. " $1.ActDeposit = $13; //激活押金",
  2891. " $1.ActFirst = $14; //激活首刷",
  2892. " $1.ActFirstDeposit = $15; //激活首刷押金",
  2893. " $1.ActPrize = $16; //激活奖励金额",
  2894. " $1.ActPosCount = $17; //激活赠机台数",
  2895. " $1.OpenStartDate = $18; //活动开始时间",
  2896. " $1.OpenEndDate = $19; //活动结束时间",
  2897. " $1.OpenStaDays = $20; //达标天数",
  2898. " $1.OpenStaTrade = $21; //达标交易",
  2899. " $1.OpenStaPrize = $22; //达标奖励1",
  2900. " $1.OpenStaPrize2 = $23; //达标奖励2",
  2901. " $1.CycleStartDate = $24; //活动开始时间",
  2902. " $1.CycleEndDate = $25; //活动结束时间",
  2903. " $1.CycleIsOther = $26; //是否允许划拨给他人",
  2904. " $1.CyclePosDays = $27; //领机天数",
  2905. " $1.PullNewStartDate = $28; //活动开始时间",
  2906. " $1.PullNewEndDate = $29; //活动结束时间",
  2907. " $1.PullNewExtendDays = $30; //延长领机天数",
  2908. " $1.BigTotalAmount = $31; //购买机起始价",
  2909. " $1.BigExtendCycleDays = $32; //延长循环周期天数",
  2910. " $1.SubsidyStartDate = $33; //活动开始时间",
  2911. " $1.SubsidyEndDate = $34; //活动结束时间",
  2912. " $1.FlowCardStartDate = $35; //活动开始时间",
  2913. " $1.FlowCardEndDate = $36; //活动结束时间",
  2914. " $1.FlowCardFreeDays = $37; //免收天数",
  2915. " $1.FlowCardFee = $38; //费用",
  2916. " $1.FeeOfDays = $39; //扣费频率(天)",
  2917. " $1.FlowCardDirectProfit = $40; //直属上级返佣",
  2918. " $1.HelpStartDate = $41; //活动开始时间",
  2919. " $1.HelpEndDate = $42; //活动结束时间",
  2920. " $1.HelpMonths = $43; //计算自然月",
  2921. " $1.HelpFee = $44; //扶植期费率",
  2922. " $1.HelpSteadyFee = $45; //稳定期费率",
  2923. " $1.FeeBindDays = $46; //绑定起天数",
  2924. " $1.FeeFixed = $47; //固定手续费",
  2925. " $1.FeeRate = $48; //费率",
  2926. "}"
  2927. ]
  2928. },
  2929. "获取产品规则配置数量": {
  2930. "prefix": "ym-db-KqProductRuleSet-FindAndCount",
  2931. "body": [
  2932. "int $1 = db.KqProductRuleSet.Count(m => $2);",
  2933. ]
  2934. },
  2935. "添加产品规则配置": {
  2936. "prefix": "ym-db-KqProductRuleSet-Create",
  2937. "body": [
  2938. "db.KqProductRuleSet.Add(new KqProductRuleSet()",
  2939. "{",
  2940. " CreateDate = DateTime.Now,",
  2941. " UpdateDate = DateTime.Now,",
  2942. " OrgId = $1, //机构",
  2943. " Deposit = $2, //押金",
  2944. " ActiveCount = $3, //活动政策台数",
  2945. " ActivePrice = $4, //活动政策价格",
  2946. " MerStaStartDate = $5, //活动开始时间",
  2947. " MerStaEndDate = $6, //活动结束时间",
  2948. " MerStaProfit = $7, //达标奖励",
  2949. " MerStaMonths = $8, //激活后达标月",
  2950. " MerStaTradeForMonth = $9, //激活后每月达标交易",
  2951. " ActStartDate = $10, //活动开始时间",
  2952. " ActEndDate = $11, //活动结束时间",
  2953. " ActDeposit = $12, //激活押金",
  2954. " ActFirst = $13, //激活首刷",
  2955. " ActFirstDeposit = $14, //激活首刷押金",
  2956. " ActPrize = $15, //激活奖励金额",
  2957. " ActPosCount = $16, //激活赠机台数",
  2958. " OpenStartDate = $17, //活动开始时间",
  2959. " OpenEndDate = $18, //活动结束时间",
  2960. " OpenStaDays = $19, //达标天数",
  2961. " OpenStaTrade = $20, //达标交易",
  2962. " OpenStaPrize = $21, //达标奖励1",
  2963. " OpenStaPrize2 = $22, //达标奖励2",
  2964. " CycleStartDate = $23, //活动开始时间",
  2965. " CycleEndDate = $24, //活动结束时间",
  2966. " CycleIsOther = $25, //是否允许划拨给他人",
  2967. " CyclePosDays = $26, //领机天数",
  2968. " PullNewStartDate = $27, //活动开始时间",
  2969. " PullNewEndDate = $28, //活动结束时间",
  2970. " PullNewExtendDays = $29, //延长领机天数",
  2971. " BigTotalAmount = $30, //购买机起始价",
  2972. " BigExtendCycleDays = $31, //延长循环周期天数",
  2973. " SubsidyStartDate = $32, //活动开始时间",
  2974. " SubsidyEndDate = $33, //活动结束时间",
  2975. " FlowCardStartDate = $34, //活动开始时间",
  2976. " FlowCardEndDate = $35, //活动结束时间",
  2977. " FlowCardFreeDays = $36, //免收天数",
  2978. " FlowCardFee = $37, //费用",
  2979. " FeeOfDays = $38, //扣费频率(天)",
  2980. " FlowCardDirectProfit = $39, //直属上级返佣",
  2981. " HelpStartDate = $40, //活动开始时间",
  2982. " HelpEndDate = $41, //活动结束时间",
  2983. " HelpMonths = $42, //计算自然月",
  2984. " HelpFee = $43, //扶植期费率",
  2985. " HelpSteadyFee = $44, //稳定期费率",
  2986. " FeeBindDays = $45, //绑定起天数",
  2987. " FeeFixed = $46, //固定手续费",
  2988. " FeeRate = $47, //费率",
  2989. "});"
  2990. ]
  2991. },"删除某个产品规则配置": {
  2992. "prefix": "ym-db-KqProductRuleSet-Delete",
  2993. "body": [
  2994. "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
  2995. "if ($1 != null)",
  2996. "{",
  2997. " db.KqProductRuleSet.Remove($1);",
  2998. "}"
  2999. ]
  3000. },
  3001. "查询产品库列表": {
  3002. "prefix": "ym-db-KqProducts-Find",
  3003. "body": [
  3004. "List<KqProducts> $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3005. "foreach (KqProducts $3 in $1)",
  3006. "{",
  3007. "}"
  3008. ]
  3009. },
  3010. "查询产品库列表,并取值": {
  3011. "prefix": "ym-db-KqProducts-FindWithData",
  3012. "body": [
  3013. "List<KqProducts> $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3014. "foreach (KqProducts $3 in $1)",
  3015. "{",
  3016. " string Name = $3.Name; //名称",
  3017. "}"
  3018. ]
  3019. },
  3020. "查询产品库": {
  3021. "prefix": "ym-db-KqProducts-Exist",
  3022. "body": [
  3023. "bool $1 = db.KqProducts.Any(m => m.Id == $2);",
  3024. ]
  3025. },
  3026. "查询某个产品库,并取值": {
  3027. "prefix": "ym-db-KqProducts-FindByPrimaryKey",
  3028. "body": [
  3029. "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
  3030. "if ($1 != null)",
  3031. "{",
  3032. " string Name = $1.Name; //名称",
  3033. "}"
  3034. ]
  3035. },
  3036. "查询某个产品库,并赋值": {
  3037. "prefix": "ym-db-KqProducts-Update",
  3038. "body": [
  3039. "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
  3040. "if ($1 != null)",
  3041. "{",
  3042. " $1.Name = $2; //名称",
  3043. "}"
  3044. ]
  3045. },
  3046. "获取产品库数量": {
  3047. "prefix": "ym-db-KqProducts-FindAndCount",
  3048. "body": [
  3049. "int $1 = db.KqProducts.Count(m => $2);",
  3050. ]
  3051. },
  3052. "添加产品库": {
  3053. "prefix": "ym-db-KqProducts-Create",
  3054. "body": [
  3055. "db.KqProducts.Add(new KqProducts()",
  3056. "{",
  3057. " CreateDate = DateTime.Now,",
  3058. " UpdateDate = DateTime.Now,",
  3059. " Name = $1, //名称",
  3060. "});"
  3061. ]
  3062. },"删除某个产品库": {
  3063. "prefix": "ym-db-KqProducts-Delete",
  3064. "body": [
  3065. "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
  3066. "if ($1 != null)",
  3067. "{",
  3068. " db.KqProducts.Remove($1);",
  3069. "}"
  3070. ]
  3071. },
  3072. "查询机具申请订单列表": {
  3073. "prefix": "ym-db-MachineApply-Find",
  3074. "body": [
  3075. "List<MachineApply> $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3076. "foreach (MachineApply $3 in $1)",
  3077. "{",
  3078. "}"
  3079. ]
  3080. },
  3081. "查询机具申请订单列表,并取值": {
  3082. "prefix": "ym-db-MachineApply-FindWithData",
  3083. "body": [
  3084. "List<MachineApply> $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3085. "foreach (MachineApply $3 in $1)",
  3086. "{",
  3087. " string ApplyNo = $3.ApplyNo; //申请单号",
  3088. " int UserId = $3.UserId; //创客",
  3089. " int BrandId = $3.BrandId; //品牌",
  3090. " string ProductName = $3.ProductName; //产品名称",
  3091. " string Areas = $3.Areas; //收货所在地区",
  3092. " string Address = $3.Address; //收货详细地址",
  3093. " string RealName = $3.RealName; //收件人姓名",
  3094. " string Mobile = $3.Mobile; //收件人手机号",
  3095. " string ApplyDeviceName = $3.ApplyDeviceName; //申请机具名称",
  3096. " int ApplyDeviceNum = $3.ApplyDeviceNum; //申请机具数量",
  3097. " DateTime ApplyTime = $3.ApplyTime; //申请时间",
  3098. " string AuditBy = $3.AuditBy; //审核人",
  3099. " DateTime AuditTime = $3.AuditTime; //审核时间",
  3100. " int AuditResult = $3.AuditResult; //审核结果",
  3101. " string AuditRemark = $3.AuditRemark; //审核备注",
  3102. " DateTime CompleteTime = $3.CompleteTime; //完成时间",
  3103. " int SendStatus = $3.SendStatus; //发货状态",
  3104. " string ReturnOrderNo = $3.ReturnOrderNo; //退货单号",
  3105. " int ReturnStatus = $3.ReturnStatus; //退货状态",
  3106. " string ExpressNo = $3.ExpressNo; //快递单号",
  3107. " string ExpressName = $3.ExpressName; //快递名称",
  3108. " int DeliveryType = $3.DeliveryType; //提货类型",
  3109. " int SwapActProType = $3.SwapActProType; //兑换实际产品类型",
  3110. " string SwapActProName = $3.SwapActProName; //兑换实际产品名称",
  3111. " string OrderExpand = $3.OrderExpand; //订单扩展信息",
  3112. " string SwapSnExpand = $3.SwapSnExpand; //兑换机器SN来源",
  3113. " int StoreId = $3.StoreId; //发货仓库",
  3114. " string StoreName = $3.StoreName; //发货仓库名称",
  3115. " string StoreAreas = $3.StoreAreas; //仓库所在地区",
  3116. " string StoreAddress = $3.StoreAddress; //仓库地址",
  3117. " string StoreManager = $3.StoreManager; //仓库联系人",
  3118. " string StoreManagerMobile = $3.StoreManagerMobile; //仓库联系人手机号",
  3119. " string Remark = $3.Remark; //订单备注",
  3120. " int StoreUserId = $3.StoreUserId; //仓库归属创客",
  3121. " int StoreType = $3.StoreType; //仓库类型",
  3122. " DateTime SendDate = $3.SendDate; //发货时间",
  3123. " int TopUserId = $3.TopUserId; //顶级创客",
  3124. " string SendSn = $3.SendSn; //发货SN",
  3125. "}"
  3126. ]
  3127. },
  3128. "查询机具申请订单": {
  3129. "prefix": "ym-db-MachineApply-Exist",
  3130. "body": [
  3131. "bool $1 = db.MachineApply.Any(m => m.Id == $2);",
  3132. ]
  3133. },
  3134. "查询某个机具申请订单,并取值": {
  3135. "prefix": "ym-db-MachineApply-FindByPrimaryKey",
  3136. "body": [
  3137. "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
  3138. "if ($1 != null)",
  3139. "{",
  3140. " string ApplyNo = $1.ApplyNo; //申请单号",
  3141. " int UserId = $1.UserId; //创客",
  3142. " int BrandId = $1.BrandId; //品牌",
  3143. " string ProductName = $1.ProductName; //产品名称",
  3144. " string Areas = $1.Areas; //收货所在地区",
  3145. " string Address = $1.Address; //收货详细地址",
  3146. " string RealName = $1.RealName; //收件人姓名",
  3147. " string Mobile = $1.Mobile; //收件人手机号",
  3148. " string ApplyDeviceName = $1.ApplyDeviceName; //申请机具名称",
  3149. " int ApplyDeviceNum = $1.ApplyDeviceNum; //申请机具数量",
  3150. " DateTime ApplyTime = $1.ApplyTime; //申请时间",
  3151. " string AuditBy = $1.AuditBy; //审核人",
  3152. " DateTime AuditTime = $1.AuditTime; //审核时间",
  3153. " int AuditResult = $1.AuditResult; //审核结果",
  3154. " string AuditRemark = $1.AuditRemark; //审核备注",
  3155. " DateTime CompleteTime = $1.CompleteTime; //完成时间",
  3156. " int SendStatus = $1.SendStatus; //发货状态",
  3157. " string ReturnOrderNo = $1.ReturnOrderNo; //退货单号",
  3158. " int ReturnStatus = $1.ReturnStatus; //退货状态",
  3159. " string ExpressNo = $1.ExpressNo; //快递单号",
  3160. " string ExpressName = $1.ExpressName; //快递名称",
  3161. " int DeliveryType = $1.DeliveryType; //提货类型",
  3162. " int SwapActProType = $1.SwapActProType; //兑换实际产品类型",
  3163. " string SwapActProName = $1.SwapActProName; //兑换实际产品名称",
  3164. " string OrderExpand = $1.OrderExpand; //订单扩展信息",
  3165. " string SwapSnExpand = $1.SwapSnExpand; //兑换机器SN来源",
  3166. " int StoreId = $1.StoreId; //发货仓库",
  3167. " string StoreName = $1.StoreName; //发货仓库名称",
  3168. " string StoreAreas = $1.StoreAreas; //仓库所在地区",
  3169. " string StoreAddress = $1.StoreAddress; //仓库地址",
  3170. " string StoreManager = $1.StoreManager; //仓库联系人",
  3171. " string StoreManagerMobile = $1.StoreManagerMobile; //仓库联系人手机号",
  3172. " string Remark = $1.Remark; //订单备注",
  3173. " int StoreUserId = $1.StoreUserId; //仓库归属创客",
  3174. " int StoreType = $1.StoreType; //仓库类型",
  3175. " DateTime SendDate = $1.SendDate; //发货时间",
  3176. " int TopUserId = $1.TopUserId; //顶级创客",
  3177. " string SendSn = $1.SendSn; //发货SN",
  3178. "}"
  3179. ]
  3180. },
  3181. "查询某个机具申请订单,并赋值": {
  3182. "prefix": "ym-db-MachineApply-Update",
  3183. "body": [
  3184. "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
  3185. "if ($1 != null)",
  3186. "{",
  3187. " $1.ApplyNo = $2; //申请单号",
  3188. " $1.UserId = $3; //创客",
  3189. " $1.BrandId = $4; //品牌",
  3190. " $1.ProductName = $5; //产品名称",
  3191. " $1.Areas = $6; //收货所在地区",
  3192. " $1.Address = $7; //收货详细地址",
  3193. " $1.RealName = $8; //收件人姓名",
  3194. " $1.Mobile = $9; //收件人手机号",
  3195. " $1.ApplyDeviceName = $10; //申请机具名称",
  3196. " $1.ApplyDeviceNum = $11; //申请机具数量",
  3197. " $1.ApplyTime = $12; //申请时间",
  3198. " $1.AuditBy = $13; //审核人",
  3199. " $1.AuditTime = $14; //审核时间",
  3200. " $1.AuditResult = $15; //审核结果",
  3201. " $1.AuditRemark = $16; //审核备注",
  3202. " $1.CompleteTime = $17; //完成时间",
  3203. " $1.SendStatus = $18; //发货状态",
  3204. " $1.ReturnOrderNo = $19; //退货单号",
  3205. " $1.ReturnStatus = $20; //退货状态",
  3206. " $1.ExpressNo = $21; //快递单号",
  3207. " $1.ExpressName = $22; //快递名称",
  3208. " $1.DeliveryType = $23; //提货类型",
  3209. " $1.SwapActProType = $24; //兑换实际产品类型",
  3210. " $1.SwapActProName = $25; //兑换实际产品名称",
  3211. " $1.OrderExpand = $26; //订单扩展信息",
  3212. " $1.SwapSnExpand = $27; //兑换机器SN来源",
  3213. " $1.StoreId = $28; //发货仓库",
  3214. " $1.StoreName = $29; //发货仓库名称",
  3215. " $1.StoreAreas = $30; //仓库所在地区",
  3216. " $1.StoreAddress = $31; //仓库地址",
  3217. " $1.StoreManager = $32; //仓库联系人",
  3218. " $1.StoreManagerMobile = $33; //仓库联系人手机号",
  3219. " $1.Remark = $34; //订单备注",
  3220. " $1.StoreUserId = $35; //仓库归属创客",
  3221. " $1.StoreType = $36; //仓库类型",
  3222. " $1.SendDate = $37; //发货时间",
  3223. " $1.TopUserId = $38; //顶级创客",
  3224. " $1.SendSn = $39; //发货SN",
  3225. "}"
  3226. ]
  3227. },
  3228. "获取机具申请订单数量": {
  3229. "prefix": "ym-db-MachineApply-FindAndCount",
  3230. "body": [
  3231. "int $1 = db.MachineApply.Count(m => $2);",
  3232. ]
  3233. },
  3234. "添加机具申请订单": {
  3235. "prefix": "ym-db-MachineApply-Create",
  3236. "body": [
  3237. "db.MachineApply.Add(new MachineApply()",
  3238. "{",
  3239. " CreateDate = DateTime.Now,",
  3240. " UpdateDate = DateTime.Now,",
  3241. " ApplyNo = $1, //申请单号",
  3242. " UserId = $2, //创客",
  3243. " BrandId = $3, //品牌",
  3244. " ProductName = $4, //产品名称",
  3245. " Areas = $5, //收货所在地区",
  3246. " Address = $6, //收货详细地址",
  3247. " RealName = $7, //收件人姓名",
  3248. " Mobile = $8, //收件人手机号",
  3249. " ApplyDeviceName = $9, //申请机具名称",
  3250. " ApplyDeviceNum = $10, //申请机具数量",
  3251. " ApplyTime = $11, //申请时间",
  3252. " AuditBy = $12, //审核人",
  3253. " AuditTime = $13, //审核时间",
  3254. " AuditResult = $14, //审核结果",
  3255. " AuditRemark = $15, //审核备注",
  3256. " CompleteTime = $16, //完成时间",
  3257. " SendStatus = $17, //发货状态",
  3258. " ReturnOrderNo = $18, //退货单号",
  3259. " ReturnStatus = $19, //退货状态",
  3260. " ExpressNo = $20, //快递单号",
  3261. " ExpressName = $21, //快递名称",
  3262. " DeliveryType = $22, //提货类型",
  3263. " SwapActProType = $23, //兑换实际产品类型",
  3264. " SwapActProName = $24, //兑换实际产品名称",
  3265. " OrderExpand = $25, //订单扩展信息",
  3266. " SwapSnExpand = $26, //兑换机器SN来源",
  3267. " StoreId = $27, //发货仓库",
  3268. " StoreName = $28, //发货仓库名称",
  3269. " StoreAreas = $29, //仓库所在地区",
  3270. " StoreAddress = $30, //仓库地址",
  3271. " StoreManager = $31, //仓库联系人",
  3272. " StoreManagerMobile = $32, //仓库联系人手机号",
  3273. " Remark = $33, //订单备注",
  3274. " StoreUserId = $34, //仓库归属创客",
  3275. " StoreType = $35, //仓库类型",
  3276. " SendDate = $36, //发货时间",
  3277. " TopUserId = $37, //顶级创客",
  3278. " SendSn = $38, //发货SN",
  3279. "});"
  3280. ]
  3281. },"删除某个机具申请订单": {
  3282. "prefix": "ym-db-MachineApply-Delete",
  3283. "body": [
  3284. "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
  3285. "if ($1 != null)",
  3286. "{",
  3287. " db.MachineApply.Remove($1);",
  3288. "}"
  3289. ]
  3290. },
  3291. "查询机具申请明细列表": {
  3292. "prefix": "ym-db-MachineApplyDetail-Find",
  3293. "body": [
  3294. "List<MachineApplyDetail> $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3295. "foreach (MachineApplyDetail $3 in $1)",
  3296. "{",
  3297. "}"
  3298. ]
  3299. },
  3300. "查询机具申请明细列表,并取值": {
  3301. "prefix": "ym-db-MachineApplyDetail-FindWithData",
  3302. "body": [
  3303. "List<MachineApplyDetail> $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3304. "foreach (MachineApplyDetail $3 in $1)",
  3305. "{",
  3306. " string ApplyNo = $3.ApplyNo; //订单号",
  3307. " int ApplyId = $3.ApplyId; //订单Id",
  3308. " int ProductType = $3.ProductType; //实际发货产品类型",
  3309. " string ProductName = $3.ProductName; //实际发货产品名称",
  3310. " int UserId = $3.UserId; //创客",
  3311. " string DeviceSnNo = $3.DeviceSnNo; //设备SN编号",
  3312. " int DeviceStatus = $3.DeviceStatus; //设备状态",
  3313. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  3314. " string DeviceModel = $3.DeviceModel; //设备型号",
  3315. " string DeviceDesc = $3.DeviceDesc; //设备描述",
  3316. " int UpSrcProType = $3.UpSrcProType; //上级源机具产品类型",
  3317. " string UpSrcProName = $3.UpSrcProName; //上级源机具产品名称",
  3318. " string SourceSnNo = $3.SourceSnNo; //兑换来源SN编码",
  3319. " int SourceSnType = $3.SourceSnType; //兑换来源SN机具类型",
  3320. " string Remark = $3.Remark; //备注",
  3321. "}"
  3322. ]
  3323. },
  3324. "查询机具申请明细": {
  3325. "prefix": "ym-db-MachineApplyDetail-Exist",
  3326. "body": [
  3327. "bool $1 = db.MachineApplyDetail.Any(m => m.Id == $2);",
  3328. ]
  3329. },
  3330. "查询某个机具申请明细,并取值": {
  3331. "prefix": "ym-db-MachineApplyDetail-FindByPrimaryKey",
  3332. "body": [
  3333. "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
  3334. "if ($1 != null)",
  3335. "{",
  3336. " string ApplyNo = $1.ApplyNo; //订单号",
  3337. " int ApplyId = $1.ApplyId; //订单Id",
  3338. " int ProductType = $1.ProductType; //实际发货产品类型",
  3339. " string ProductName = $1.ProductName; //实际发货产品名称",
  3340. " int UserId = $1.UserId; //创客",
  3341. " string DeviceSnNo = $1.DeviceSnNo; //设备SN编号",
  3342. " int DeviceStatus = $1.DeviceStatus; //设备状态",
  3343. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  3344. " string DeviceModel = $1.DeviceModel; //设备型号",
  3345. " string DeviceDesc = $1.DeviceDesc; //设备描述",
  3346. " int UpSrcProType = $1.UpSrcProType; //上级源机具产品类型",
  3347. " string UpSrcProName = $1.UpSrcProName; //上级源机具产品名称",
  3348. " string SourceSnNo = $1.SourceSnNo; //兑换来源SN编码",
  3349. " int SourceSnType = $1.SourceSnType; //兑换来源SN机具类型",
  3350. " string Remark = $1.Remark; //备注",
  3351. "}"
  3352. ]
  3353. },
  3354. "查询某个机具申请明细,并赋值": {
  3355. "prefix": "ym-db-MachineApplyDetail-Update",
  3356. "body": [
  3357. "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
  3358. "if ($1 != null)",
  3359. "{",
  3360. " $1.ApplyNo = $2; //订单号",
  3361. " $1.ApplyId = $3; //订单Id",
  3362. " $1.ProductType = $4; //实际发货产品类型",
  3363. " $1.ProductName = $5; //实际发货产品名称",
  3364. " $1.UserId = $6; //创客",
  3365. " $1.DeviceSnNo = $7; //设备SN编号",
  3366. " $1.DeviceStatus = $8; //设备状态",
  3367. " $1.DeviceVendor = $9; //设备厂商",
  3368. " $1.DeviceModel = $10; //设备型号",
  3369. " $1.DeviceDesc = $11; //设备描述",
  3370. " $1.UpSrcProType = $12; //上级源机具产品类型",
  3371. " $1.UpSrcProName = $13; //上级源机具产品名称",
  3372. " $1.SourceSnNo = $14; //兑换来源SN编码",
  3373. " $1.SourceSnType = $15; //兑换来源SN机具类型",
  3374. " $1.Remark = $16; //备注",
  3375. "}"
  3376. ]
  3377. },
  3378. "获取机具申请明细数量": {
  3379. "prefix": "ym-db-MachineApplyDetail-FindAndCount",
  3380. "body": [
  3381. "int $1 = db.MachineApplyDetail.Count(m => $2);",
  3382. ]
  3383. },
  3384. "添加机具申请明细": {
  3385. "prefix": "ym-db-MachineApplyDetail-Create",
  3386. "body": [
  3387. "db.MachineApplyDetail.Add(new MachineApplyDetail()",
  3388. "{",
  3389. " CreateDate = DateTime.Now,",
  3390. " UpdateDate = DateTime.Now,",
  3391. " ApplyNo = $1, //订单号",
  3392. " ApplyId = $2, //订单Id",
  3393. " ProductType = $3, //实际发货产品类型",
  3394. " ProductName = $4, //实际发货产品名称",
  3395. " UserId = $5, //创客",
  3396. " DeviceSnNo = $6, //设备SN编号",
  3397. " DeviceStatus = $7, //设备状态",
  3398. " DeviceVendor = $8, //设备厂商",
  3399. " DeviceModel = $9, //设备型号",
  3400. " DeviceDesc = $10, //设备描述",
  3401. " UpSrcProType = $11, //上级源机具产品类型",
  3402. " UpSrcProName = $12, //上级源机具产品名称",
  3403. " SourceSnNo = $13, //兑换来源SN编码",
  3404. " SourceSnType = $14, //兑换来源SN机具类型",
  3405. " Remark = $15, //备注",
  3406. "});"
  3407. ]
  3408. },"删除某个机具申请明细": {
  3409. "prefix": "ym-db-MachineApplyDetail-Delete",
  3410. "body": [
  3411. "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
  3412. "if ($1 != null)",
  3413. "{",
  3414. " db.MachineApplyDetail.Remove($1);",
  3415. "}"
  3416. ]
  3417. },
  3418. "查询机具转换订单列表": {
  3419. "prefix": "ym-db-MachineChange-Find",
  3420. "body": [
  3421. "List<MachineChange> $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3422. "foreach (MachineChange $3 in $1)",
  3423. "{",
  3424. "}"
  3425. ]
  3426. },
  3427. "查询机具转换订单列表,并取值": {
  3428. "prefix": "ym-db-MachineChange-FindWithData",
  3429. "body": [
  3430. "List<MachineChange> $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3431. "foreach (MachineChange $3 in $1)",
  3432. "{",
  3433. " string ChangeNo = $3.ChangeNo; //转换单号",
  3434. " int UserId = $3.UserId; //创客",
  3435. " int BackProductType = $3.BackProductType; //退回产品类型",
  3436. " string BackProductName = $3.BackProductName; //退回产品名称",
  3437. " string ChangeDeviceName = $3.ChangeDeviceName; //转换机具名称",
  3438. " int ChangeDeviceNum = $3.ChangeDeviceNum; //转换机具数量",
  3439. " DateTime ChangeTime = $3.ChangeTime; //转换时间",
  3440. " string AuditBy = $3.AuditBy; //审核人",
  3441. " DateTime AuditTime = $3.AuditTime; //审核时间",
  3442. " int AuditResult = $3.AuditResult; //审核结果",
  3443. " string AuditRemark = $3.AuditRemark; //审核备注",
  3444. " DateTime CompleteTime = $3.CompleteTime; //完成时间",
  3445. " string OrderExpand = $3.OrderExpand; //订单扩展信息",
  3446. " string ChangeSnExpand = $3.ChangeSnExpand; //转换机器SN来源",
  3447. " int BackStoreId = $3.BackStoreId; //退回仓库",
  3448. " string BackStoreName = $3.BackStoreName; //退回仓库名称",
  3449. " string Remark = $3.Remark; //订单备注",
  3450. " int BackStoreUserId = $3.BackStoreUserId; //退回仓库归属人",
  3451. " int OutProductType = $3.OutProductType; //出库产品类型",
  3452. " string OutProductName = $3.OutProductName; //出库产品名称",
  3453. " int OutStoreId = $3.OutStoreId; //出库仓库",
  3454. " string OutStoreName = $3.OutStoreName; //出库仓库名称",
  3455. " string OutStoreAreas = $3.OutStoreAreas; //出库仓库所在地区",
  3456. " string OutStoreAddress = $3.OutStoreAddress ; //出库仓库地址",
  3457. " string OutStoreManager = $3.OutStoreManager; //出库仓库联系人",
  3458. " string OutStoreManagerMobile = $3.OutStoreManagerMobile; //出库仓库联系人手机号",
  3459. "}"
  3460. ]
  3461. },
  3462. "查询机具转换订单": {
  3463. "prefix": "ym-db-MachineChange-Exist",
  3464. "body": [
  3465. "bool $1 = db.MachineChange.Any(m => m.Id == $2);",
  3466. ]
  3467. },
  3468. "查询某个机具转换订单,并取值": {
  3469. "prefix": "ym-db-MachineChange-FindByPrimaryKey",
  3470. "body": [
  3471. "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
  3472. "if ($1 != null)",
  3473. "{",
  3474. " string ChangeNo = $1.ChangeNo; //转换单号",
  3475. " int UserId = $1.UserId; //创客",
  3476. " int BackProductType = $1.BackProductType; //退回产品类型",
  3477. " string BackProductName = $1.BackProductName; //退回产品名称",
  3478. " string ChangeDeviceName = $1.ChangeDeviceName; //转换机具名称",
  3479. " int ChangeDeviceNum = $1.ChangeDeviceNum; //转换机具数量",
  3480. " DateTime ChangeTime = $1.ChangeTime; //转换时间",
  3481. " string AuditBy = $1.AuditBy; //审核人",
  3482. " DateTime AuditTime = $1.AuditTime; //审核时间",
  3483. " int AuditResult = $1.AuditResult; //审核结果",
  3484. " string AuditRemark = $1.AuditRemark; //审核备注",
  3485. " DateTime CompleteTime = $1.CompleteTime; //完成时间",
  3486. " string OrderExpand = $1.OrderExpand; //订单扩展信息",
  3487. " string ChangeSnExpand = $1.ChangeSnExpand; //转换机器SN来源",
  3488. " int BackStoreId = $1.BackStoreId; //退回仓库",
  3489. " string BackStoreName = $1.BackStoreName; //退回仓库名称",
  3490. " string Remark = $1.Remark; //订单备注",
  3491. " int BackStoreUserId = $1.BackStoreUserId; //退回仓库归属人",
  3492. " int OutProductType = $1.OutProductType; //出库产品类型",
  3493. " string OutProductName = $1.OutProductName; //出库产品名称",
  3494. " int OutStoreId = $1.OutStoreId; //出库仓库",
  3495. " string OutStoreName = $1.OutStoreName; //出库仓库名称",
  3496. " string OutStoreAreas = $1.OutStoreAreas; //出库仓库所在地区",
  3497. " string OutStoreAddress = $1.OutStoreAddress ; //出库仓库地址",
  3498. " string OutStoreManager = $1.OutStoreManager; //出库仓库联系人",
  3499. " string OutStoreManagerMobile = $1.OutStoreManagerMobile; //出库仓库联系人手机号",
  3500. "}"
  3501. ]
  3502. },
  3503. "查询某个机具转换订单,并赋值": {
  3504. "prefix": "ym-db-MachineChange-Update",
  3505. "body": [
  3506. "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
  3507. "if ($1 != null)",
  3508. "{",
  3509. " $1.ChangeNo = $2; //转换单号",
  3510. " $1.UserId = $3; //创客",
  3511. " $1.BackProductType = $4; //退回产品类型",
  3512. " $1.BackProductName = $5; //退回产品名称",
  3513. " $1.ChangeDeviceName = $6; //转换机具名称",
  3514. " $1.ChangeDeviceNum = $7; //转换机具数量",
  3515. " $1.ChangeTime = $8; //转换时间",
  3516. " $1.AuditBy = $9; //审核人",
  3517. " $1.AuditTime = $10; //审核时间",
  3518. " $1.AuditResult = $11; //审核结果",
  3519. " $1.AuditRemark = $12; //审核备注",
  3520. " $1.CompleteTime = $13; //完成时间",
  3521. " $1.OrderExpand = $14; //订单扩展信息",
  3522. " $1.ChangeSnExpand = $15; //转换机器SN来源",
  3523. " $1.BackStoreId = $16; //退回仓库",
  3524. " $1.BackStoreName = $17; //退回仓库名称",
  3525. " $1.Remark = $18; //订单备注",
  3526. " $1.BackStoreUserId = $19; //退回仓库归属人",
  3527. " $1.OutProductType = $20; //出库产品类型",
  3528. " $1.OutProductName = $21; //出库产品名称",
  3529. " $1.OutStoreId = $22; //出库仓库",
  3530. " $1.OutStoreName = $23; //出库仓库名称",
  3531. " $1.OutStoreAreas = $24; //出库仓库所在地区",
  3532. " $1.OutStoreAddress = $25; //出库仓库地址",
  3533. " $1.OutStoreManager = $26; //出库仓库联系人",
  3534. " $1.OutStoreManagerMobile = $27; //出库仓库联系人手机号",
  3535. "}"
  3536. ]
  3537. },
  3538. "获取机具转换订单数量": {
  3539. "prefix": "ym-db-MachineChange-FindAndCount",
  3540. "body": [
  3541. "int $1 = db.MachineChange.Count(m => $2);",
  3542. ]
  3543. },
  3544. "添加机具转换订单": {
  3545. "prefix": "ym-db-MachineChange-Create",
  3546. "body": [
  3547. "db.MachineChange.Add(new MachineChange()",
  3548. "{",
  3549. " CreateDate = DateTime.Now,",
  3550. " UpdateDate = DateTime.Now,",
  3551. " ChangeNo = $1, //转换单号",
  3552. " UserId = $2, //创客",
  3553. " BackProductType = $3, //退回产品类型",
  3554. " BackProductName = $4, //退回产品名称",
  3555. " ChangeDeviceName = $5, //转换机具名称",
  3556. " ChangeDeviceNum = $6, //转换机具数量",
  3557. " ChangeTime = $7, //转换时间",
  3558. " AuditBy = $8, //审核人",
  3559. " AuditTime = $9, //审核时间",
  3560. " AuditResult = $10, //审核结果",
  3561. " AuditRemark = $11, //审核备注",
  3562. " CompleteTime = $12, //完成时间",
  3563. " OrderExpand = $13, //订单扩展信息",
  3564. " ChangeSnExpand = $14, //转换机器SN来源",
  3565. " BackStoreId = $15, //退回仓库",
  3566. " BackStoreName = $16, //退回仓库名称",
  3567. " Remark = $17, //订单备注",
  3568. " BackStoreUserId = $18, //退回仓库归属人",
  3569. " OutProductType = $19, //出库产品类型",
  3570. " OutProductName = $20, //出库产品名称",
  3571. " OutStoreId = $21, //出库仓库",
  3572. " OutStoreName = $22, //出库仓库名称",
  3573. " OutStoreAreas = $23, //出库仓库所在地区",
  3574. " OutStoreAddress = $24, //出库仓库地址",
  3575. " OutStoreManager = $25, //出库仓库联系人",
  3576. " OutStoreManagerMobile = $26, //出库仓库联系人手机号",
  3577. "});"
  3578. ]
  3579. },"删除某个机具转换订单": {
  3580. "prefix": "ym-db-MachineChange-Delete",
  3581. "body": [
  3582. "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
  3583. "if ($1 != null)",
  3584. "{",
  3585. " db.MachineChange.Remove($1);",
  3586. "}"
  3587. ]
  3588. },
  3589. "查询机具转换明细列表": {
  3590. "prefix": "ym-db-MachineChangeDetail-Find",
  3591. "body": [
  3592. "List<MachineChangeDetail> $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3593. "foreach (MachineChangeDetail $3 in $1)",
  3594. "{",
  3595. "}"
  3596. ]
  3597. },
  3598. "查询机具转换明细列表,并取值": {
  3599. "prefix": "ym-db-MachineChangeDetail-FindWithData",
  3600. "body": [
  3601. "List<MachineChangeDetail> $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3602. "foreach (MachineChangeDetail $3 in $1)",
  3603. "{",
  3604. " string ChangeNo = $3.ChangeNo; //订单号",
  3605. " int ChangeId = $3.ChangeId; //订单Id",
  3606. " int BackProductType = $3.BackProductType; //退回产品类型",
  3607. " string BackProductName = $3.BackProductName; //退回产品名称",
  3608. " int UserId = $3.UserId; //创客",
  3609. " string BackSnNo = $3.BackSnNo; //设备SN编号",
  3610. " int BackDeviceStatus = $3.BackDeviceStatus; //设备状态",
  3611. " int OutProductType = $3.OutProductType ; //出库产品类型",
  3612. " string OutProductName = $3.OutProductName; //出库产品名称",
  3613. " string OutSnNo = $3.OutSnNo; //出库设备SN编号",
  3614. " int OutSnType = $3.OutSnType; //出库SN机具类型",
  3615. " string Remark = $3.Remark; //备注",
  3616. " int BackSnType = $3.BackSnType; //退回SN机具类型",
  3617. "}"
  3618. ]
  3619. },
  3620. "查询机具转换明细": {
  3621. "prefix": "ym-db-MachineChangeDetail-Exist",
  3622. "body": [
  3623. "bool $1 = db.MachineChangeDetail.Any(m => m.Id == $2);",
  3624. ]
  3625. },
  3626. "查询某个机具转换明细,并取值": {
  3627. "prefix": "ym-db-MachineChangeDetail-FindByPrimaryKey",
  3628. "body": [
  3629. "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
  3630. "if ($1 != null)",
  3631. "{",
  3632. " string ChangeNo = $1.ChangeNo; //订单号",
  3633. " int ChangeId = $1.ChangeId; //订单Id",
  3634. " int BackProductType = $1.BackProductType; //退回产品类型",
  3635. " string BackProductName = $1.BackProductName; //退回产品名称",
  3636. " int UserId = $1.UserId; //创客",
  3637. " string BackSnNo = $1.BackSnNo; //设备SN编号",
  3638. " int BackDeviceStatus = $1.BackDeviceStatus; //设备状态",
  3639. " int OutProductType = $1.OutProductType ; //出库产品类型",
  3640. " string OutProductName = $1.OutProductName; //出库产品名称",
  3641. " string OutSnNo = $1.OutSnNo; //出库设备SN编号",
  3642. " int OutSnType = $1.OutSnType; //出库SN机具类型",
  3643. " string Remark = $1.Remark; //备注",
  3644. " int BackSnType = $1.BackSnType; //退回SN机具类型",
  3645. "}"
  3646. ]
  3647. },
  3648. "查询某个机具转换明细,并赋值": {
  3649. "prefix": "ym-db-MachineChangeDetail-Update",
  3650. "body": [
  3651. "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
  3652. "if ($1 != null)",
  3653. "{",
  3654. " $1.ChangeNo = $2; //订单号",
  3655. " $1.ChangeId = $3; //订单Id",
  3656. " $1.BackProductType = $4; //退回产品类型",
  3657. " $1.BackProductName = $5; //退回产品名称",
  3658. " $1.UserId = $6; //创客",
  3659. " $1.BackSnNo = $7; //设备SN编号",
  3660. " $1.BackDeviceStatus = $8; //设备状态",
  3661. " $1.OutProductType = $9; //出库产品类型",
  3662. " $1.OutProductName = $10; //出库产品名称",
  3663. " $1.OutSnNo = $11; //出库设备SN编号",
  3664. " $1.OutSnType = $12; //出库SN机具类型",
  3665. " $1.Remark = $13; //备注",
  3666. " $1.BackSnType = $14; //退回SN机具类型",
  3667. "}"
  3668. ]
  3669. },
  3670. "获取机具转换明细数量": {
  3671. "prefix": "ym-db-MachineChangeDetail-FindAndCount",
  3672. "body": [
  3673. "int $1 = db.MachineChangeDetail.Count(m => $2);",
  3674. ]
  3675. },
  3676. "添加机具转换明细": {
  3677. "prefix": "ym-db-MachineChangeDetail-Create",
  3678. "body": [
  3679. "db.MachineChangeDetail.Add(new MachineChangeDetail()",
  3680. "{",
  3681. " CreateDate = DateTime.Now,",
  3682. " UpdateDate = DateTime.Now,",
  3683. " ChangeNo = $1, //订单号",
  3684. " ChangeId = $2, //订单Id",
  3685. " BackProductType = $3, //退回产品类型",
  3686. " BackProductName = $4, //退回产品名称",
  3687. " UserId = $5, //创客",
  3688. " BackSnNo = $6, //设备SN编号",
  3689. " BackDeviceStatus = $7, //设备状态",
  3690. " OutProductType = $8, //出库产品类型",
  3691. " OutProductName = $9, //出库产品名称",
  3692. " OutSnNo = $10, //出库设备SN编号",
  3693. " OutSnType = $11, //出库SN机具类型",
  3694. " Remark = $12, //备注",
  3695. " BackSnType = $13, //退回SN机具类型",
  3696. "});"
  3697. ]
  3698. },"删除某个机具转换明细": {
  3699. "prefix": "ym-db-MachineChangeDetail-Delete",
  3700. "body": [
  3701. "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
  3702. "if ($1 != null)",
  3703. "{",
  3704. " db.MachineChangeDetail.Remove($1);",
  3705. "}"
  3706. ]
  3707. },
  3708. "查询机具绑定收款码列表": {
  3709. "prefix": "ym-db-MachineForQrCode-Find",
  3710. "body": [
  3711. "List<MachineForQrCode> $1 = db.MachineForQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3712. "foreach (MachineForQrCode $3 in $1)",
  3713. "{",
  3714. "}"
  3715. ]
  3716. },
  3717. "查询机具绑定收款码列表,并取值": {
  3718. "prefix": "ym-db-MachineForQrCode-FindWithData",
  3719. "body": [
  3720. "List<MachineForQrCode> $1 = db.MachineForQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3721. "foreach (MachineForQrCode $3 in $1)",
  3722. "{",
  3723. " string DataId = $3.DataId; //关联主键",
  3724. " DateTime BindDate = $3.BindDate; //绑定时间",
  3725. " string SnNo = $3.SnNo; //收款SN",
  3726. " string MachineSnNo = $3.MachineSnNo; //音箱SN",
  3727. " int MerchantId = $3.MerchantId; //商户",
  3728. "}"
  3729. ]
  3730. },
  3731. "查询机具绑定收款码": {
  3732. "prefix": "ym-db-MachineForQrCode-Exist",
  3733. "body": [
  3734. "bool $1 = db.MachineForQrCode.Any(m => m.DataId == $2);",
  3735. ]
  3736. },
  3737. "查询某个机具绑定收款码,并取值": {
  3738. "prefix": "ym-db-MachineForQrCode-FindByPrimaryKey",
  3739. "body": [
  3740. "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);",
  3741. "if ($1 != null)",
  3742. "{",
  3743. " string DataId = $1.DataId; //关联主键",
  3744. " DateTime BindDate = $1.BindDate; //绑定时间",
  3745. " string SnNo = $1.SnNo; //收款SN",
  3746. " string MachineSnNo = $1.MachineSnNo; //音箱SN",
  3747. " int MerchantId = $1.MerchantId; //商户",
  3748. "}"
  3749. ]
  3750. },
  3751. "查询某个机具绑定收款码,并赋值": {
  3752. "prefix": "ym-db-MachineForQrCode-Update",
  3753. "body": [
  3754. "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);",
  3755. "if ($1 != null)",
  3756. "{",
  3757. " $1.DataId = $2; //关联主键",
  3758. " $1.BindDate = $3; //绑定时间",
  3759. " $1.SnNo = $4; //收款SN",
  3760. " $1.MachineSnNo = $5; //音箱SN",
  3761. " $1.MerchantId = $6; //商户",
  3762. "}"
  3763. ]
  3764. },
  3765. "获取机具绑定收款码数量": {
  3766. "prefix": "ym-db-MachineForQrCode-FindAndCount",
  3767. "body": [
  3768. "int $1 = db.MachineForQrCode.Count(m => $2);",
  3769. ]
  3770. },
  3771. "添加机具绑定收款码": {
  3772. "prefix": "ym-db-MachineForQrCode-Create",
  3773. "body": [
  3774. "db.MachineForQrCode.Add(new MachineForQrCode()",
  3775. "{",
  3776. " CreateDate = DateTime.Now,",
  3777. " UpdateDate = DateTime.Now,",
  3778. " DataId = $1, //关联主键",
  3779. " BindDate = $2, //绑定时间",
  3780. " SnNo = $3, //收款SN",
  3781. " MachineSnNo = $4, //音箱SN",
  3782. " MerchantId = $5, //商户",
  3783. "});"
  3784. ]
  3785. },"删除某个机具绑定收款码": {
  3786. "prefix": "ym-db-MachineForQrCode-Delete",
  3787. "body": [
  3788. "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);",
  3789. "if ($1 != null)",
  3790. "{",
  3791. " db.MachineForQrCode.Remove($1);",
  3792. "}"
  3793. ]
  3794. },
  3795. "查询机具号为主键的关联表列表": {
  3796. "prefix": "ym-db-MachineForSnNo-Find",
  3797. "body": [
  3798. "List<MachineForSnNo> $1 = db.MachineForSnNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3799. "foreach (MachineForSnNo $3 in $1)",
  3800. "{",
  3801. "}"
  3802. ]
  3803. },
  3804. "查询机具号为主键的关联表列表,并取值": {
  3805. "prefix": "ym-db-MachineForSnNo-FindWithData",
  3806. "body": [
  3807. "List<MachineForSnNo> $1 = db.MachineForSnNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3808. "foreach (MachineForSnNo $3 in $1)",
  3809. "{",
  3810. " string SnNo = $3.SnNo; //机具号",
  3811. " int SnId = $3.SnId; //机具Id",
  3812. "}"
  3813. ]
  3814. },
  3815. "查询机具号为主键的关联表": {
  3816. "prefix": "ym-db-MachineForSnNo-Exist",
  3817. "body": [
  3818. "bool $1 = db.MachineForSnNo.Any(m => m.SnNo == $2);",
  3819. ]
  3820. },
  3821. "查询某个机具号为主键的关联表,并取值": {
  3822. "prefix": "ym-db-MachineForSnNo-FindByPrimaryKey",
  3823. "body": [
  3824. "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);",
  3825. "if ($1 != null)",
  3826. "{",
  3827. " string SnNo = $1.SnNo; //机具号",
  3828. " int SnId = $1.SnId; //机具Id",
  3829. "}"
  3830. ]
  3831. },
  3832. "查询某个机具号为主键的关联表,并赋值": {
  3833. "prefix": "ym-db-MachineForSnNo-Update",
  3834. "body": [
  3835. "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);",
  3836. "if ($1 != null)",
  3837. "{",
  3838. " $1.SnNo = $2; //机具号",
  3839. " $1.SnId = $3; //机具Id",
  3840. "}"
  3841. ]
  3842. },
  3843. "获取机具号为主键的关联表数量": {
  3844. "prefix": "ym-db-MachineForSnNo-FindAndCount",
  3845. "body": [
  3846. "int $1 = db.MachineForSnNo.Count(m => $2);",
  3847. ]
  3848. },
  3849. "添加机具号为主键的关联表": {
  3850. "prefix": "ym-db-MachineForSnNo-Create",
  3851. "body": [
  3852. "db.MachineForSnNo.Add(new MachineForSnNo()",
  3853. "{",
  3854. " CreateDate = DateTime.Now,",
  3855. " UpdateDate = DateTime.Now,",
  3856. " SnNo = $1, //机具号",
  3857. " SnId = $2, //机具Id",
  3858. "});"
  3859. ]
  3860. },"删除某个机具号为主键的关联表": {
  3861. "prefix": "ym-db-MachineForSnNo-Delete",
  3862. "body": [
  3863. "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);",
  3864. "if ($1 != null)",
  3865. "{",
  3866. " db.MachineForSnNo.Remove($1);",
  3867. "}"
  3868. ]
  3869. },
  3870. "查询机具损坏换新申请列表": {
  3871. "prefix": "ym-db-MachineRenew-Find",
  3872. "body": [
  3873. "List<MachineRenew> $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3874. "foreach (MachineRenew $3 in $1)",
  3875. "{",
  3876. "}"
  3877. ]
  3878. },
  3879. "查询机具损坏换新申请列表,并取值": {
  3880. "prefix": "ym-db-MachineRenew-FindWithData",
  3881. "body": [
  3882. "List<MachineRenew> $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  3883. "foreach (MachineRenew $3 in $1)",
  3884. "{",
  3885. " string ApplyNo = $3.ApplyNo; //机具售后换新申请订单号",
  3886. " string ApplyDate = $3.ApplyDate; //机具售后换新申请时间",
  3887. " int UserId = $3.UserId; //创客",
  3888. " int DamagedBrandId = $3.DamagedBrandId; //损坏的机具产品类型",
  3889. " string DamagedSnNo = $3.DamagedSnNo; //创客损坏的机具SN",
  3890. " int DamagedSnType = $3.DamagedSnType; //损坏的机具SN机具类型",
  3891. " int ReplaceBrandId = $3.ReplaceBrandId; //替换的机具产品类型",
  3892. " string ReplaceSnNo = $3.ReplaceSnNo; //创客机具替换SN",
  3893. " int ReplaceSnType = $3.ReplaceSnType; //替换的机具SN机具类型",
  3894. " int DeliverBrandId = $3.DeliverBrandId; //仓库换新发货的机具产品类型",
  3895. " string DeliverSnNo = $3.DeliverSnNo; //仓库换新发货SN",
  3896. " string DemandDesc = $3.DemandDesc; //售后换新机具处理需求描述",
  3897. " int audit_status = $3.audit_status; //审核状态",
  3898. " string AuditDesc = $3.AuditDesc; //创客机具售后换新审核描述",
  3899. " DateTime AuditDate = $3.AuditDate; //审核时间",
  3900. "}"
  3901. ]
  3902. },
  3903. "查询机具损坏换新申请": {
  3904. "prefix": "ym-db-MachineRenew-Exist",
  3905. "body": [
  3906. "bool $1 = db.MachineRenew.Any(m => m.Id == $2);",
  3907. ]
  3908. },
  3909. "查询某个机具损坏换新申请,并取值": {
  3910. "prefix": "ym-db-MachineRenew-FindByPrimaryKey",
  3911. "body": [
  3912. "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
  3913. "if ($1 != null)",
  3914. "{",
  3915. " string ApplyNo = $1.ApplyNo; //机具售后换新申请订单号",
  3916. " string ApplyDate = $1.ApplyDate; //机具售后换新申请时间",
  3917. " int UserId = $1.UserId; //创客",
  3918. " int DamagedBrandId = $1.DamagedBrandId; //损坏的机具产品类型",
  3919. " string DamagedSnNo = $1.DamagedSnNo; //创客损坏的机具SN",
  3920. " int DamagedSnType = $1.DamagedSnType; //损坏的机具SN机具类型",
  3921. " int ReplaceBrandId = $1.ReplaceBrandId; //替换的机具产品类型",
  3922. " string ReplaceSnNo = $1.ReplaceSnNo; //创客机具替换SN",
  3923. " int ReplaceSnType = $1.ReplaceSnType; //替换的机具SN机具类型",
  3924. " int DeliverBrandId = $1.DeliverBrandId; //仓库换新发货的机具产品类型",
  3925. " string DeliverSnNo = $1.DeliverSnNo; //仓库换新发货SN",
  3926. " string DemandDesc = $1.DemandDesc; //售后换新机具处理需求描述",
  3927. " int audit_status = $1.audit_status; //审核状态",
  3928. " string AuditDesc = $1.AuditDesc; //创客机具售后换新审核描述",
  3929. " DateTime AuditDate = $1.AuditDate; //审核时间",
  3930. "}"
  3931. ]
  3932. },
  3933. "查询某个机具损坏换新申请,并赋值": {
  3934. "prefix": "ym-db-MachineRenew-Update",
  3935. "body": [
  3936. "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
  3937. "if ($1 != null)",
  3938. "{",
  3939. " $1.ApplyNo = $2; //机具售后换新申请订单号",
  3940. " $1.ApplyDate = $3; //机具售后换新申请时间",
  3941. " $1.UserId = $4; //创客",
  3942. " $1.DamagedBrandId = $5; //损坏的机具产品类型",
  3943. " $1.DamagedSnNo = $6; //创客损坏的机具SN",
  3944. " $1.DamagedSnType = $7; //损坏的机具SN机具类型",
  3945. " $1.ReplaceBrandId = $8; //替换的机具产品类型",
  3946. " $1.ReplaceSnNo = $9; //创客机具替换SN",
  3947. " $1.ReplaceSnType = $10; //替换的机具SN机具类型",
  3948. " $1.DeliverBrandId = $11; //仓库换新发货的机具产品类型",
  3949. " $1.DeliverSnNo = $12; //仓库换新发货SN",
  3950. " $1.DemandDesc = $13; //售后换新机具处理需求描述",
  3951. " $1.audit_status = $14; //审核状态",
  3952. " $1.AuditDesc = $15; //创客机具售后换新审核描述",
  3953. " $1.AuditDate = $16; //审核时间",
  3954. "}"
  3955. ]
  3956. },
  3957. "获取机具损坏换新申请数量": {
  3958. "prefix": "ym-db-MachineRenew-FindAndCount",
  3959. "body": [
  3960. "int $1 = db.MachineRenew.Count(m => $2);",
  3961. ]
  3962. },
  3963. "添加机具损坏换新申请": {
  3964. "prefix": "ym-db-MachineRenew-Create",
  3965. "body": [
  3966. "db.MachineRenew.Add(new MachineRenew()",
  3967. "{",
  3968. " CreateDate = DateTime.Now,",
  3969. " UpdateDate = DateTime.Now,",
  3970. " ApplyNo = $1, //机具售后换新申请订单号",
  3971. " ApplyDate = $2, //机具售后换新申请时间",
  3972. " UserId = $3, //创客",
  3973. " DamagedBrandId = $4, //损坏的机具产品类型",
  3974. " DamagedSnNo = $5, //创客损坏的机具SN",
  3975. " DamagedSnType = $6, //损坏的机具SN机具类型",
  3976. " ReplaceBrandId = $7, //替换的机具产品类型",
  3977. " ReplaceSnNo = $8, //创客机具替换SN",
  3978. " ReplaceSnType = $9, //替换的机具SN机具类型",
  3979. " DeliverBrandId = $10, //仓库换新发货的机具产品类型",
  3980. " DeliverSnNo = $11, //仓库换新发货SN",
  3981. " DemandDesc = $12, //售后换新机具处理需求描述",
  3982. " audit_status = $13, //审核状态",
  3983. " AuditDesc = $14, //创客机具售后换新审核描述",
  3984. " AuditDate = $15, //审核时间",
  3985. "});"
  3986. ]
  3987. },"删除某个机具损坏换新申请": {
  3988. "prefix": "ym-db-MachineRenew-Delete",
  3989. "body": [
  3990. "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
  3991. "if ($1 != null)",
  3992. "{",
  3993. " db.MachineRenew.Remove($1);",
  3994. "}"
  3995. ]
  3996. },
  3997. "查询机具退货申请订单列表": {
  3998. "prefix": "ym-db-MachineReturn-Find",
  3999. "body": [
  4000. "List<MachineReturn> $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4001. "foreach (MachineReturn $3 in $1)",
  4002. "{",
  4003. "}"
  4004. ]
  4005. },
  4006. "查询机具退货申请订单列表,并取值": {
  4007. "prefix": "ym-db-MachineReturn-FindWithData",
  4008. "body": [
  4009. "List<MachineReturn> $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4010. "foreach (MachineReturn $3 in $1)",
  4011. "{",
  4012. " string ApplyNo = $3.ApplyNo; //申请单号",
  4013. " int UserId = $3.UserId; //创客",
  4014. " int BrandId = $3.BrandId; //品牌",
  4015. " int DeviceNum = $3.DeviceNum; //申请退货数量",
  4016. " string DeviceSnNos = $3.DeviceSnNos; //退货机具编号",
  4017. " int ToStoreId = $3.ToStoreId; //退回仓库",
  4018. " string DeviceDesc = $3.DeviceDesc; //设备描述",
  4019. " int AuditStatus = $3.AuditStatus; //审核状态",
  4020. " string Operator = $3.Operator; //操作人",
  4021. " string Remark = $3.Remark; //退货备注",
  4022. "}"
  4023. ]
  4024. },
  4025. "查询机具退货申请订单": {
  4026. "prefix": "ym-db-MachineReturn-Exist",
  4027. "body": [
  4028. "bool $1 = db.MachineReturn.Any(m => m.Id == $2);",
  4029. ]
  4030. },
  4031. "查询某个机具退货申请订单,并取值": {
  4032. "prefix": "ym-db-MachineReturn-FindByPrimaryKey",
  4033. "body": [
  4034. "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
  4035. "if ($1 != null)",
  4036. "{",
  4037. " string ApplyNo = $1.ApplyNo; //申请单号",
  4038. " int UserId = $1.UserId; //创客",
  4039. " int BrandId = $1.BrandId; //品牌",
  4040. " int DeviceNum = $1.DeviceNum; //申请退货数量",
  4041. " string DeviceSnNos = $1.DeviceSnNos; //退货机具编号",
  4042. " int ToStoreId = $1.ToStoreId; //退回仓库",
  4043. " string DeviceDesc = $1.DeviceDesc; //设备描述",
  4044. " int AuditStatus = $1.AuditStatus; //审核状态",
  4045. " string Operator = $1.Operator; //操作人",
  4046. " string Remark = $1.Remark; //退货备注",
  4047. "}"
  4048. ]
  4049. },
  4050. "查询某个机具退货申请订单,并赋值": {
  4051. "prefix": "ym-db-MachineReturn-Update",
  4052. "body": [
  4053. "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
  4054. "if ($1 != null)",
  4055. "{",
  4056. " $1.ApplyNo = $2; //申请单号",
  4057. " $1.UserId = $3; //创客",
  4058. " $1.BrandId = $4; //品牌",
  4059. " $1.DeviceNum = $5; //申请退货数量",
  4060. " $1.DeviceSnNos = $6; //退货机具编号",
  4061. " $1.ToStoreId = $7; //退回仓库",
  4062. " $1.DeviceDesc = $8; //设备描述",
  4063. " $1.AuditStatus = $9; //审核状态",
  4064. " $1.Operator = $10; //操作人",
  4065. " $1.Remark = $11; //退货备注",
  4066. "}"
  4067. ]
  4068. },
  4069. "获取机具退货申请订单数量": {
  4070. "prefix": "ym-db-MachineReturn-FindAndCount",
  4071. "body": [
  4072. "int $1 = db.MachineReturn.Count(m => $2);",
  4073. ]
  4074. },
  4075. "添加机具退货申请订单": {
  4076. "prefix": "ym-db-MachineReturn-Create",
  4077. "body": [
  4078. "db.MachineReturn.Add(new MachineReturn()",
  4079. "{",
  4080. " CreateDate = DateTime.Now,",
  4081. " UpdateDate = DateTime.Now,",
  4082. " ApplyNo = $1, //申请单号",
  4083. " UserId = $2, //创客",
  4084. " BrandId = $3, //品牌",
  4085. " DeviceNum = $4, //申请退货数量",
  4086. " DeviceSnNos = $5, //退货机具编号",
  4087. " ToStoreId = $6, //退回仓库",
  4088. " DeviceDesc = $7, //设备描述",
  4089. " AuditStatus = $8, //审核状态",
  4090. " Operator = $9, //操作人",
  4091. " Remark = $10, //退货备注",
  4092. "});"
  4093. ]
  4094. },"删除某个机具退货申请订单": {
  4095. "prefix": "ym-db-MachineReturn-Delete",
  4096. "body": [
  4097. "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
  4098. "if ($1 != null)",
  4099. "{",
  4100. " db.MachineReturn.Remove($1);",
  4101. "}"
  4102. ]
  4103. },
  4104. "查询菜单权限列表": {
  4105. "prefix": "ym-db-MenuRight-Find",
  4106. "body": [
  4107. "List<MenuRight> $1 = db.MenuRight.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4108. "foreach (MenuRight $3 in $1)",
  4109. "{",
  4110. "}"
  4111. ]
  4112. },
  4113. "查询菜单权限列表,并取值": {
  4114. "prefix": "ym-db-MenuRight-FindWithData",
  4115. "body": [
  4116. "List<MenuRight> $1 = db.MenuRight.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4117. "foreach (MenuRight $3 in $1)",
  4118. "{",
  4119. " string Name = $3.Name; //名称",
  4120. " string MenuId = $3.MenuId; //权限名",
  4121. "}"
  4122. ]
  4123. },
  4124. "查询菜单权限": {
  4125. "prefix": "ym-db-MenuRight-Exist",
  4126. "body": [
  4127. "bool $1 = db.MenuRight.Any(m => m.MenuId == $2);",
  4128. ]
  4129. },
  4130. "查询某个菜单权限,并取值": {
  4131. "prefix": "ym-db-MenuRight-FindByPrimaryKey",
  4132. "body": [
  4133. "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);",
  4134. "if ($1 != null)",
  4135. "{",
  4136. " string Name = $1.Name; //名称",
  4137. " string MenuId = $1.MenuId; //权限名",
  4138. "}"
  4139. ]
  4140. },
  4141. "查询某个菜单权限,并赋值": {
  4142. "prefix": "ym-db-MenuRight-Update",
  4143. "body": [
  4144. "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);",
  4145. "if ($1 != null)",
  4146. "{",
  4147. " $1.Name = $2; //名称",
  4148. " $1.MenuId = $3; //权限名",
  4149. "}"
  4150. ]
  4151. },
  4152. "获取菜单权限数量": {
  4153. "prefix": "ym-db-MenuRight-FindAndCount",
  4154. "body": [
  4155. "int $1 = db.MenuRight.Count(m => $2);",
  4156. ]
  4157. },
  4158. "添加菜单权限": {
  4159. "prefix": "ym-db-MenuRight-Create",
  4160. "body": [
  4161. "db.MenuRight.Add(new MenuRight()",
  4162. "{",
  4163. " CreateDate = DateTime.Now,",
  4164. " UpdateDate = DateTime.Now,",
  4165. " Name = $1, //名称",
  4166. " MenuId = $2, //权限名",
  4167. "});"
  4168. ]
  4169. },"删除某个菜单权限": {
  4170. "prefix": "ym-db-MenuRight-Delete",
  4171. "body": [
  4172. "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);",
  4173. "if ($1 != null)",
  4174. "{",
  4175. " db.MenuRight.Remove($1);",
  4176. "}"
  4177. ]
  4178. },
  4179. "查询商户进件资料列表": {
  4180. "prefix": "ym-db-MerchantAddInfo-Find",
  4181. "body": [
  4182. "List<MerchantAddInfo> $1 = db.MerchantAddInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4183. "foreach (MerchantAddInfo $3 in $1)",
  4184. "{",
  4185. "}"
  4186. ]
  4187. },
  4188. "查询商户进件资料列表,并取值": {
  4189. "prefix": "ym-db-MerchantAddInfo-FindWithData",
  4190. "body": [
  4191. "List<MerchantAddInfo> $1 = db.MerchantAddInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4192. "foreach (MerchantAddInfo $3 in $1)",
  4193. "{",
  4194. " string BusinessCode = $3.BusinessCode; //申请编号",
  4195. " string ContactName = $3.ContactName; //管理员姓名",
  4196. " string ContactIdNumber = $3.ContactIdNumber; //管理员身份证件号码",
  4197. " string OpenId = $3.OpenId; //管理员微信openid",
  4198. " string MobilePhone = $3.MobilePhone; //联系手机",
  4199. " string ContactEmail = $3.ContactEmail; //联系邮箱",
  4200. " string SubjectType = $3.SubjectType; //主体类型",
  4201. " string LicenseCopy = $3.LicenseCopy; //营业执照照片",
  4202. " string LicenseNumber = $3.LicenseNumber; //统一社会信用代码",
  4203. " string LegalPerson = $3.LegalPerson; //个体户经营者/法人姓名",
  4204. " string CertCopy = $3.CertCopy; //登记证书照片",
  4205. " string CertType = $3.CertType; //登记证书类型",
  4206. " string CertNumber = $3.CertNumber; //证书号",
  4207. " string CertMerchantName = $3.CertMerchantName; //商户名称",
  4208. " string CompanyAddress = $3.CompanyAddress; //注册地址",
  4209. " string CertLegalPerson = $3.CertLegalPerson; //法人姓名",
  4210. " DateTime PeriodBegin = $3.PeriodBegin; //有效期限开始日期",
  4211. " DateTime PeriodEnd = $3.PeriodEnd; //有效期限结束日期",
  4212. " string OrganizationCopy = $3.OrganizationCopy; //组织机构代码证照片",
  4213. " string OrganizationCode = $3.OrganizationCode; //组织机构代码",
  4214. " DateTime OrgPeriodBegin = $3.OrgPeriodBegin; //组织机构代码证有效期开始日期",
  4215. " DateTime OrgPeriodEnd = $3.OrgPeriodEnd; //组织机构代码证有效期结束日期",
  4216. " string CertificateLetterCopy = $3.CertificateLetterCopy; //单位证明函照片",
  4217. " string IdDocType = $3.IdDocType; //证件类型",
  4218. " ulong Owner = $3.Owner; //经营者/法人是否为受益人",
  4219. " string UboInfoIdType = $3.UboInfoIdType; //最终受益人证件类型",
  4220. " string UboInfoIdCardCopy = $3.UboInfoIdCardCopy; //最终受益人身份证人像面照片",
  4221. " string UboInfoIdCardNational = $3.UboInfoIdCardNational; //身份证国徽面照片",
  4222. " string UboInfoIdDocCopy = $3.UboInfoIdDocCopy; //最终受益人证件照片",
  4223. " string UboInfoName = $3.UboInfoName; //受益人姓名",
  4224. " string UboInfoIdNumber = $3.UboInfoIdNumber; //最终受益人证件号码",
  4225. " DateTime UboInfoIdPeriodBegin = $3.UboInfoIdPeriodBegin; //证件有效期开始时间",
  4226. " DateTime UboInfoIdPeriodEnd = $3.UboInfoIdPeriodEnd; //证件有效期结束时间",
  4227. " string MerchantShortname = $3.MerchantShortname; //商户简称",
  4228. " string ServicePhone = $3.ServicePhone; //客服电话",
  4229. " string SalesScenesType = $3.SalesScenesType; //经营场景类型",
  4230. " string BizStoreName = $3.BizStoreName; //门店名称",
  4231. " string BizAddressCode = $3.BizAddressCode; //门店省市编码",
  4232. " string BizStoreAddress = $3.BizStoreAddress; //门店地址",
  4233. " string StoreEntrancePic = $3.StoreEntrancePic; //门店门头照片",
  4234. " string IndoorPic = $3.IndoorPic; //店内环境照片",
  4235. " string BizSubAppid = $3.BizSubAppid; //线下场所对应的商家APPID",
  4236. " string MpAppid = $3.MpAppid; //服务商公众号APPID",
  4237. " string MpSubAppid = $3.MpSubAppid; //商家公众号APPID",
  4238. " string MpPics = $3.MpPics; //公众号页面截图",
  4239. " string MiniProgramAppid = $3.MiniProgramAppid; //服务商小程序APPID",
  4240. " string MiniProgramSubAppid = $3.MiniProgramSubAppid; //商家小程序APPID",
  4241. " string MiniProgramPics = $3.MiniProgramPics; //小程序截图",
  4242. " string AppAppid = $3.AppAppid; //服务商应用APPID",
  4243. " string AppSubAppid = $3.AppSubAppid; //商家应用APPID",
  4244. " string AppPics = $3.AppPics; //APP截图",
  4245. " string WebDomain = $3.WebDomain; //互联网网站域名",
  4246. " string WebAuthorisation = $3.WebAuthorisation; //网站授权函",
  4247. " string WebAppId = $3.WebAppId; //互联网网站对应的商家APPID",
  4248. " string SubCorpId = $3.SubCorpId; //商家企业微信CorpID",
  4249. " string WeworkPics = $3.WeworkPics; //企业微信页面截图",
  4250. " string SettlementId = $3.SettlementId; //入驻结算规则ID",
  4251. " string QualificationType = $3.QualificationType; //所属行业",
  4252. " string Qualifications = $3.Qualifications; //特殊资质图片",
  4253. " string ActivitiesId = $3.ActivitiesId; //优惠费率活动ID",
  4254. " string ActivitiesRate = $3.ActivitiesRate; //优惠费率活动值",
  4255. " string BankAccountType = $3.BankAccountType; //账户类型",
  4256. " string AccountName = $3.AccountName; //开户名称",
  4257. " string AccountBank = $3.AccountBank; //开户银行",
  4258. " string BankAddressCode = $3.BankAddressCode; //开户银行省市编码",
  4259. " string BankBranchId = $3.BankBranchId; //开户银行联行号",
  4260. " string BankName = $3.BankName; //开户银行全称",
  4261. " string AccountNumber = $3.AccountNumber; //银行账号",
  4262. " string ApplymentId = $3.ApplymentId; //微信支付申请单号",
  4263. " string SubMchid = $3.SubMchid; //特约商户号",
  4264. " string SignUrl = $3.SignUrl; //超级管理员签约链接",
  4265. " string ApplymentState = $3.ApplymentState; //申请单状态",
  4266. " string AuditDetail = $3.AuditDetail; //驳回原因详情",
  4267. " string IdCardCopy = $3.IdCardCopy; //身份证人像面照片",
  4268. " string IdCardNational = $3.IdCardNational; //身份证国徽面照片",
  4269. " string IdCardName = $3.IdCardName; //身份证姓名",
  4270. " string IdCardNumber = $3.IdCardNumber; //身份证号码",
  4271. " DateTime CardPeriodBegin = $3.CardPeriodBegin; //身份证有效期开始时间",
  4272. " DateTime CardPeriodEnd = $3.CardPeriodEnd; //身份证有效期结束时间",
  4273. "}"
  4274. ]
  4275. },
  4276. "查询商户进件资料": {
  4277. "prefix": "ym-db-MerchantAddInfo-Exist",
  4278. "body": [
  4279. "bool $1 = db.MerchantAddInfo.Any(m => m.Id == $2);",
  4280. ]
  4281. },
  4282. "查询某个商户进件资料,并取值": {
  4283. "prefix": "ym-db-MerchantAddInfo-FindByPrimaryKey",
  4284. "body": [
  4285. "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);",
  4286. "if ($1 != null)",
  4287. "{",
  4288. " string BusinessCode = $1.BusinessCode; //申请编号",
  4289. " string ContactName = $1.ContactName; //管理员姓名",
  4290. " string ContactIdNumber = $1.ContactIdNumber; //管理员身份证件号码",
  4291. " string OpenId = $1.OpenId; //管理员微信openid",
  4292. " string MobilePhone = $1.MobilePhone; //联系手机",
  4293. " string ContactEmail = $1.ContactEmail; //联系邮箱",
  4294. " string SubjectType = $1.SubjectType; //主体类型",
  4295. " string LicenseCopy = $1.LicenseCopy; //营业执照照片",
  4296. " string LicenseNumber = $1.LicenseNumber; //统一社会信用代码",
  4297. " string LegalPerson = $1.LegalPerson; //个体户经营者/法人姓名",
  4298. " string CertCopy = $1.CertCopy; //登记证书照片",
  4299. " string CertType = $1.CertType; //登记证书类型",
  4300. " string CertNumber = $1.CertNumber; //证书号",
  4301. " string CertMerchantName = $1.CertMerchantName; //商户名称",
  4302. " string CompanyAddress = $1.CompanyAddress; //注册地址",
  4303. " string CertLegalPerson = $1.CertLegalPerson; //法人姓名",
  4304. " DateTime PeriodBegin = $1.PeriodBegin; //有效期限开始日期",
  4305. " DateTime PeriodEnd = $1.PeriodEnd; //有效期限结束日期",
  4306. " string OrganizationCopy = $1.OrganizationCopy; //组织机构代码证照片",
  4307. " string OrganizationCode = $1.OrganizationCode; //组织机构代码",
  4308. " DateTime OrgPeriodBegin = $1.OrgPeriodBegin; //组织机构代码证有效期开始日期",
  4309. " DateTime OrgPeriodEnd = $1.OrgPeriodEnd; //组织机构代码证有效期结束日期",
  4310. " string CertificateLetterCopy = $1.CertificateLetterCopy; //单位证明函照片",
  4311. " string IdDocType = $1.IdDocType; //证件类型",
  4312. " ulong Owner = $1.Owner; //经营者/法人是否为受益人",
  4313. " string UboInfoIdType = $1.UboInfoIdType; //最终受益人证件类型",
  4314. " string UboInfoIdCardCopy = $1.UboInfoIdCardCopy; //最终受益人身份证人像面照片",
  4315. " string UboInfoIdCardNational = $1.UboInfoIdCardNational; //身份证国徽面照片",
  4316. " string UboInfoIdDocCopy = $1.UboInfoIdDocCopy; //最终受益人证件照片",
  4317. " string UboInfoName = $1.UboInfoName; //受益人姓名",
  4318. " string UboInfoIdNumber = $1.UboInfoIdNumber; //最终受益人证件号码",
  4319. " DateTime UboInfoIdPeriodBegin = $1.UboInfoIdPeriodBegin; //证件有效期开始时间",
  4320. " DateTime UboInfoIdPeriodEnd = $1.UboInfoIdPeriodEnd; //证件有效期结束时间",
  4321. " string MerchantShortname = $1.MerchantShortname; //商户简称",
  4322. " string ServicePhone = $1.ServicePhone; //客服电话",
  4323. " string SalesScenesType = $1.SalesScenesType; //经营场景类型",
  4324. " string BizStoreName = $1.BizStoreName; //门店名称",
  4325. " string BizAddressCode = $1.BizAddressCode; //门店省市编码",
  4326. " string BizStoreAddress = $1.BizStoreAddress; //门店地址",
  4327. " string StoreEntrancePic = $1.StoreEntrancePic; //门店门头照片",
  4328. " string IndoorPic = $1.IndoorPic; //店内环境照片",
  4329. " string BizSubAppid = $1.BizSubAppid; //线下场所对应的商家APPID",
  4330. " string MpAppid = $1.MpAppid; //服务商公众号APPID",
  4331. " string MpSubAppid = $1.MpSubAppid; //商家公众号APPID",
  4332. " string MpPics = $1.MpPics; //公众号页面截图",
  4333. " string MiniProgramAppid = $1.MiniProgramAppid; //服务商小程序APPID",
  4334. " string MiniProgramSubAppid = $1.MiniProgramSubAppid; //商家小程序APPID",
  4335. " string MiniProgramPics = $1.MiniProgramPics; //小程序截图",
  4336. " string AppAppid = $1.AppAppid; //服务商应用APPID",
  4337. " string AppSubAppid = $1.AppSubAppid; //商家应用APPID",
  4338. " string AppPics = $1.AppPics; //APP截图",
  4339. " string WebDomain = $1.WebDomain; //互联网网站域名",
  4340. " string WebAuthorisation = $1.WebAuthorisation; //网站授权函",
  4341. " string WebAppId = $1.WebAppId; //互联网网站对应的商家APPID",
  4342. " string SubCorpId = $1.SubCorpId; //商家企业微信CorpID",
  4343. " string WeworkPics = $1.WeworkPics; //企业微信页面截图",
  4344. " string SettlementId = $1.SettlementId; //入驻结算规则ID",
  4345. " string QualificationType = $1.QualificationType; //所属行业",
  4346. " string Qualifications = $1.Qualifications; //特殊资质图片",
  4347. " string ActivitiesId = $1.ActivitiesId; //优惠费率活动ID",
  4348. " string ActivitiesRate = $1.ActivitiesRate; //优惠费率活动值",
  4349. " string BankAccountType = $1.BankAccountType; //账户类型",
  4350. " string AccountName = $1.AccountName; //开户名称",
  4351. " string AccountBank = $1.AccountBank; //开户银行",
  4352. " string BankAddressCode = $1.BankAddressCode; //开户银行省市编码",
  4353. " string BankBranchId = $1.BankBranchId; //开户银行联行号",
  4354. " string BankName = $1.BankName; //开户银行全称",
  4355. " string AccountNumber = $1.AccountNumber; //银行账号",
  4356. " string ApplymentId = $1.ApplymentId; //微信支付申请单号",
  4357. " string SubMchid = $1.SubMchid; //特约商户号",
  4358. " string SignUrl = $1.SignUrl; //超级管理员签约链接",
  4359. " string ApplymentState = $1.ApplymentState; //申请单状态",
  4360. " string AuditDetail = $1.AuditDetail; //驳回原因详情",
  4361. " string IdCardCopy = $1.IdCardCopy; //身份证人像面照片",
  4362. " string IdCardNational = $1.IdCardNational; //身份证国徽面照片",
  4363. " string IdCardName = $1.IdCardName; //身份证姓名",
  4364. " string IdCardNumber = $1.IdCardNumber; //身份证号码",
  4365. " DateTime CardPeriodBegin = $1.CardPeriodBegin; //身份证有效期开始时间",
  4366. " DateTime CardPeriodEnd = $1.CardPeriodEnd; //身份证有效期结束时间",
  4367. "}"
  4368. ]
  4369. },
  4370. "查询某个商户进件资料,并赋值": {
  4371. "prefix": "ym-db-MerchantAddInfo-Update",
  4372. "body": [
  4373. "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);",
  4374. "if ($1 != null)",
  4375. "{",
  4376. " $1.BusinessCode = $2; //申请编号",
  4377. " $1.ContactName = $3; //管理员姓名",
  4378. " $1.ContactIdNumber = $4; //管理员身份证件号码",
  4379. " $1.OpenId = $5; //管理员微信openid",
  4380. " $1.MobilePhone = $6; //联系手机",
  4381. " $1.ContactEmail = $7; //联系邮箱",
  4382. " $1.SubjectType = $8; //主体类型",
  4383. " $1.LicenseCopy = $9; //营业执照照片",
  4384. " $1.LicenseNumber = $10; //统一社会信用代码",
  4385. " $1.LegalPerson = $11; //个体户经营者/法人姓名",
  4386. " $1.CertCopy = $12; //登记证书照片",
  4387. " $1.CertType = $13; //登记证书类型",
  4388. " $1.CertNumber = $14; //证书号",
  4389. " $1.CertMerchantName = $15; //商户名称",
  4390. " $1.CompanyAddress = $16; //注册地址",
  4391. " $1.CertLegalPerson = $17; //法人姓名",
  4392. " $1.PeriodBegin = $18; //有效期限开始日期",
  4393. " $1.PeriodEnd = $19; //有效期限结束日期",
  4394. " $1.OrganizationCopy = $20; //组织机构代码证照片",
  4395. " $1.OrganizationCode = $21; //组织机构代码",
  4396. " $1.OrgPeriodBegin = $22; //组织机构代码证有效期开始日期",
  4397. " $1.OrgPeriodEnd = $23; //组织机构代码证有效期结束日期",
  4398. " $1.CertificateLetterCopy = $24; //单位证明函照片",
  4399. " $1.IdDocType = $25; //证件类型",
  4400. " $1.Owner = $26; //经营者/法人是否为受益人",
  4401. " $1.UboInfoIdType = $27; //最终受益人证件类型",
  4402. " $1.UboInfoIdCardCopy = $28; //最终受益人身份证人像面照片",
  4403. " $1.UboInfoIdCardNational = $29; //身份证国徽面照片",
  4404. " $1.UboInfoIdDocCopy = $30; //最终受益人证件照片",
  4405. " $1.UboInfoName = $31; //受益人姓名",
  4406. " $1.UboInfoIdNumber = $32; //最终受益人证件号码",
  4407. " $1.UboInfoIdPeriodBegin = $33; //证件有效期开始时间",
  4408. " $1.UboInfoIdPeriodEnd = $34; //证件有效期结束时间",
  4409. " $1.MerchantShortname = $35; //商户简称",
  4410. " $1.ServicePhone = $36; //客服电话",
  4411. " $1.SalesScenesType = $37; //经营场景类型",
  4412. " $1.BizStoreName = $38; //门店名称",
  4413. " $1.BizAddressCode = $39; //门店省市编码",
  4414. " $1.BizStoreAddress = $40; //门店地址",
  4415. " $1.StoreEntrancePic = $41; //门店门头照片",
  4416. " $1.IndoorPic = $42; //店内环境照片",
  4417. " $1.BizSubAppid = $43; //线下场所对应的商家APPID",
  4418. " $1.MpAppid = $44; //服务商公众号APPID",
  4419. " $1.MpSubAppid = $45; //商家公众号APPID",
  4420. " $1.MpPics = $46; //公众号页面截图",
  4421. " $1.MiniProgramAppid = $47; //服务商小程序APPID",
  4422. " $1.MiniProgramSubAppid = $48; //商家小程序APPID",
  4423. " $1.MiniProgramPics = $49; //小程序截图",
  4424. " $1.AppAppid = $50; //服务商应用APPID",
  4425. " $1.AppSubAppid = $51; //商家应用APPID",
  4426. " $1.AppPics = $52; //APP截图",
  4427. " $1.WebDomain = $53; //互联网网站域名",
  4428. " $1.WebAuthorisation = $54; //网站授权函",
  4429. " $1.WebAppId = $55; //互联网网站对应的商家APPID",
  4430. " $1.SubCorpId = $56; //商家企业微信CorpID",
  4431. " $1.WeworkPics = $57; //企业微信页面截图",
  4432. " $1.SettlementId = $58; //入驻结算规则ID",
  4433. " $1.QualificationType = $59; //所属行业",
  4434. " $1.Qualifications = $60; //特殊资质图片",
  4435. " $1.ActivitiesId = $61; //优惠费率活动ID",
  4436. " $1.ActivitiesRate = $62; //优惠费率活动值",
  4437. " $1.BankAccountType = $63; //账户类型",
  4438. " $1.AccountName = $64; //开户名称",
  4439. " $1.AccountBank = $65; //开户银行",
  4440. " $1.BankAddressCode = $66; //开户银行省市编码",
  4441. " $1.BankBranchId = $67; //开户银行联行号",
  4442. " $1.BankName = $68; //开户银行全称",
  4443. " $1.AccountNumber = $69; //银行账号",
  4444. " $1.ApplymentId = $70; //微信支付申请单号",
  4445. " $1.SubMchid = $71; //特约商户号",
  4446. " $1.SignUrl = $72; //超级管理员签约链接",
  4447. " $1.ApplymentState = $73; //申请单状态",
  4448. " $1.AuditDetail = $74; //驳回原因详情",
  4449. " $1.IdCardCopy = $75; //身份证人像面照片",
  4450. " $1.IdCardNational = $76; //身份证国徽面照片",
  4451. " $1.IdCardName = $77; //身份证姓名",
  4452. " $1.IdCardNumber = $78; //身份证号码",
  4453. " $1.CardPeriodBegin = $79; //身份证有效期开始时间",
  4454. " $1.CardPeriodEnd = $80; //身份证有效期结束时间",
  4455. "}"
  4456. ]
  4457. },
  4458. "获取商户进件资料数量": {
  4459. "prefix": "ym-db-MerchantAddInfo-FindAndCount",
  4460. "body": [
  4461. "int $1 = db.MerchantAddInfo.Count(m => $2);",
  4462. ]
  4463. },
  4464. "添加商户进件资料": {
  4465. "prefix": "ym-db-MerchantAddInfo-Create",
  4466. "body": [
  4467. "db.MerchantAddInfo.Add(new MerchantAddInfo()",
  4468. "{",
  4469. " CreateDate = DateTime.Now,",
  4470. " UpdateDate = DateTime.Now,",
  4471. " BusinessCode = $1, //申请编号",
  4472. " ContactName = $2, //管理员姓名",
  4473. " ContactIdNumber = $3, //管理员身份证件号码",
  4474. " OpenId = $4, //管理员微信openid",
  4475. " MobilePhone = $5, //联系手机",
  4476. " ContactEmail = $6, //联系邮箱",
  4477. " SubjectType = $7, //主体类型",
  4478. " LicenseCopy = $8, //营业执照照片",
  4479. " LicenseNumber = $9, //统一社会信用代码",
  4480. " LegalPerson = $10, //个体户经营者/法人姓名",
  4481. " CertCopy = $11, //登记证书照片",
  4482. " CertType = $12, //登记证书类型",
  4483. " CertNumber = $13, //证书号",
  4484. " CertMerchantName = $14, //商户名称",
  4485. " CompanyAddress = $15, //注册地址",
  4486. " CertLegalPerson = $16, //法人姓名",
  4487. " PeriodBegin = $17, //有效期限开始日期",
  4488. " PeriodEnd = $18, //有效期限结束日期",
  4489. " OrganizationCopy = $19, //组织机构代码证照片",
  4490. " OrganizationCode = $20, //组织机构代码",
  4491. " OrgPeriodBegin = $21, //组织机构代码证有效期开始日期",
  4492. " OrgPeriodEnd = $22, //组织机构代码证有效期结束日期",
  4493. " CertificateLetterCopy = $23, //单位证明函照片",
  4494. " IdDocType = $24, //证件类型",
  4495. " Owner = $25, //经营者/法人是否为受益人",
  4496. " UboInfoIdType = $26, //最终受益人证件类型",
  4497. " UboInfoIdCardCopy = $27, //最终受益人身份证人像面照片",
  4498. " UboInfoIdCardNational = $28, //身份证国徽面照片",
  4499. " UboInfoIdDocCopy = $29, //最终受益人证件照片",
  4500. " UboInfoName = $30, //受益人姓名",
  4501. " UboInfoIdNumber = $31, //最终受益人证件号码",
  4502. " UboInfoIdPeriodBegin = $32, //证件有效期开始时间",
  4503. " UboInfoIdPeriodEnd = $33, //证件有效期结束时间",
  4504. " MerchantShortname = $34, //商户简称",
  4505. " ServicePhone = $35, //客服电话",
  4506. " SalesScenesType = $36, //经营场景类型",
  4507. " BizStoreName = $37, //门店名称",
  4508. " BizAddressCode = $38, //门店省市编码",
  4509. " BizStoreAddress = $39, //门店地址",
  4510. " StoreEntrancePic = $40, //门店门头照片",
  4511. " IndoorPic = $41, //店内环境照片",
  4512. " BizSubAppid = $42, //线下场所对应的商家APPID",
  4513. " MpAppid = $43, //服务商公众号APPID",
  4514. " MpSubAppid = $44, //商家公众号APPID",
  4515. " MpPics = $45, //公众号页面截图",
  4516. " MiniProgramAppid = $46, //服务商小程序APPID",
  4517. " MiniProgramSubAppid = $47, //商家小程序APPID",
  4518. " MiniProgramPics = $48, //小程序截图",
  4519. " AppAppid = $49, //服务商应用APPID",
  4520. " AppSubAppid = $50, //商家应用APPID",
  4521. " AppPics = $51, //APP截图",
  4522. " WebDomain = $52, //互联网网站域名",
  4523. " WebAuthorisation = $53, //网站授权函",
  4524. " WebAppId = $54, //互联网网站对应的商家APPID",
  4525. " SubCorpId = $55, //商家企业微信CorpID",
  4526. " WeworkPics = $56, //企业微信页面截图",
  4527. " SettlementId = $57, //入驻结算规则ID",
  4528. " QualificationType = $58, //所属行业",
  4529. " Qualifications = $59, //特殊资质图片",
  4530. " ActivitiesId = $60, //优惠费率活动ID",
  4531. " ActivitiesRate = $61, //优惠费率活动值",
  4532. " BankAccountType = $62, //账户类型",
  4533. " AccountName = $63, //开户名称",
  4534. " AccountBank = $64, //开户银行",
  4535. " BankAddressCode = $65, //开户银行省市编码",
  4536. " BankBranchId = $66, //开户银行联行号",
  4537. " BankName = $67, //开户银行全称",
  4538. " AccountNumber = $68, //银行账号",
  4539. " ApplymentId = $69, //微信支付申请单号",
  4540. " SubMchid = $70, //特约商户号",
  4541. " SignUrl = $71, //超级管理员签约链接",
  4542. " ApplymentState = $72, //申请单状态",
  4543. " AuditDetail = $73, //驳回原因详情",
  4544. " IdCardCopy = $74, //身份证人像面照片",
  4545. " IdCardNational = $75, //身份证国徽面照片",
  4546. " IdCardName = $76, //身份证姓名",
  4547. " IdCardNumber = $77, //身份证号码",
  4548. " CardPeriodBegin = $78, //身份证有效期开始时间",
  4549. " CardPeriodEnd = $79, //身份证有效期结束时间",
  4550. "});"
  4551. ]
  4552. },"删除某个商户进件资料": {
  4553. "prefix": "ym-db-MerchantAddInfo-Delete",
  4554. "body": [
  4555. "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);",
  4556. "if ($1 != null)",
  4557. "{",
  4558. " db.MerchantAddInfo.Remove($1);",
  4559. "}"
  4560. ]
  4561. },
  4562. "查询商家管理员列表": {
  4563. "prefix": "ym-db-MerchantAdmin-Find",
  4564. "body": [
  4565. "List<MerchantAdmin> $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4566. "foreach (MerchantAdmin $3 in $1)",
  4567. "{",
  4568. "}"
  4569. ]
  4570. },
  4571. "查询商家管理员列表,并取值": {
  4572. "prefix": "ym-db-MerchantAdmin-FindWithData",
  4573. "body": [
  4574. "List<MerchantAdmin> $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4575. "foreach (MerchantAdmin $3 in $1)",
  4576. "{",
  4577. " string AdminName = $3.AdminName; //用户名",
  4578. " string Password = $3.Password; //密码",
  4579. " string RealName = $3.RealName; //名称",
  4580. " string RightInfo = $3.RightInfo; //权限",
  4581. " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间",
  4582. " string Mobile = $3.Mobile; //手机号",
  4583. " string Email = $3.Email; //邮箱",
  4584. " string QQ = $3.QQ; //QQ号",
  4585. " string Note = $3.Note; //备注",
  4586. " int MerchantId = $3.MerchantId; //商家Id",
  4587. "}"
  4588. ]
  4589. },
  4590. "查询商家管理员": {
  4591. "prefix": "ym-db-MerchantAdmin-Exist",
  4592. "body": [
  4593. "bool $1 = db.MerchantAdmin.Any(m => m.Id == $2);",
  4594. ]
  4595. },
  4596. "查询某个商家管理员,并取值": {
  4597. "prefix": "ym-db-MerchantAdmin-FindByPrimaryKey",
  4598. "body": [
  4599. "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
  4600. "if ($1 != null)",
  4601. "{",
  4602. " string AdminName = $1.AdminName; //用户名",
  4603. " string Password = $1.Password; //密码",
  4604. " string RealName = $1.RealName; //名称",
  4605. " string RightInfo = $1.RightInfo; //权限",
  4606. " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间",
  4607. " string Mobile = $1.Mobile; //手机号",
  4608. " string Email = $1.Email; //邮箱",
  4609. " string QQ = $1.QQ; //QQ号",
  4610. " string Note = $1.Note; //备注",
  4611. " int MerchantId = $1.MerchantId; //商家Id",
  4612. "}"
  4613. ]
  4614. },
  4615. "查询某个商家管理员,并赋值": {
  4616. "prefix": "ym-db-MerchantAdmin-Update",
  4617. "body": [
  4618. "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
  4619. "if ($1 != null)",
  4620. "{",
  4621. " $1.AdminName = $2; //用户名",
  4622. " $1.Password = $3; //密码",
  4623. " $1.RealName = $4; //名称",
  4624. " $1.RightInfo = $5; //权限",
  4625. " $1.LastLoginDate = $6; //最后登录时间",
  4626. " $1.Mobile = $7; //手机号",
  4627. " $1.Email = $8; //邮箱",
  4628. " $1.QQ = $9; //QQ号",
  4629. " $1.Note = $10; //备注",
  4630. " $1.MerchantId = $11; //商家Id",
  4631. "}"
  4632. ]
  4633. },
  4634. "获取商家管理员数量": {
  4635. "prefix": "ym-db-MerchantAdmin-FindAndCount",
  4636. "body": [
  4637. "int $1 = db.MerchantAdmin.Count(m => $2);",
  4638. ]
  4639. },
  4640. "添加商家管理员": {
  4641. "prefix": "ym-db-MerchantAdmin-Create",
  4642. "body": [
  4643. "db.MerchantAdmin.Add(new MerchantAdmin()",
  4644. "{",
  4645. " CreateDate = DateTime.Now,",
  4646. " UpdateDate = DateTime.Now,",
  4647. " AdminName = $1, //用户名",
  4648. " Password = $2, //密码",
  4649. " RealName = $3, //名称",
  4650. " RightInfo = $4, //权限",
  4651. " LastLoginDate = $5, //最后登录时间",
  4652. " Mobile = $6, //手机号",
  4653. " Email = $7, //邮箱",
  4654. " QQ = $8, //QQ号",
  4655. " Note = $9, //备注",
  4656. " MerchantId = $10, //商家Id",
  4657. "});"
  4658. ]
  4659. },"删除某个商家管理员": {
  4660. "prefix": "ym-db-MerchantAdmin-Delete",
  4661. "body": [
  4662. "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
  4663. "if ($1 != null)",
  4664. "{",
  4665. " db.MerchantAdmin.Remove($1);",
  4666. "}"
  4667. ]
  4668. },
  4669. "查询商户实名信息列表": {
  4670. "prefix": "ym-db-MerchantAuth-Find",
  4671. "body": [
  4672. "List<MerchantAuth> $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4673. "foreach (MerchantAuth $3 in $1)",
  4674. "{",
  4675. "}"
  4676. ]
  4677. },
  4678. "查询商户实名信息列表,并取值": {
  4679. "prefix": "ym-db-MerchantAuth-FindWithData",
  4680. "body": [
  4681. "List<MerchantAuth> $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4682. "foreach (MerchantAuth $3 in $1)",
  4683. "{",
  4684. " string ChannelCode = $3.ChannelCode; //渠道编码",
  4685. " string ChannelName = $3.ChannelName; //渠道名称 ",
  4686. " string MerNo = $3.MerNo; //商户编号",
  4687. " string RealName = $3.RealName; //真实姓名",
  4688. " string IdCardNo = $3.IdCardNo; //身份证号",
  4689. " string BankCardAccount = $3.BankCardAccount; //银行卡账号",
  4690. " string BankName = $3.BankName; //银行名称",
  4691. " string BankMobile = $3.BankMobile; //银行预留手机号码",
  4692. " string ReqData = $3.ReqData; //渠道请求报文",
  4693. " string RespData = $3.RespData; //渠道响应报文",
  4694. " string ReturnCode = $3.ReturnCode; //渠道返回编码",
  4695. " string ReturnMsg = $3.ReturnMsg; //渠道返回信息",
  4696. " int AuthType = $3.AuthType; //实名类型",
  4697. " int MerchantId = $3.MerchantId; //商户",
  4698. "}"
  4699. ]
  4700. },
  4701. "查询商户实名信息": {
  4702. "prefix": "ym-db-MerchantAuth-Exist",
  4703. "body": [
  4704. "bool $1 = db.MerchantAuth.Any(m => m.Id == $2);",
  4705. ]
  4706. },
  4707. "查询某个商户实名信息,并取值": {
  4708. "prefix": "ym-db-MerchantAuth-FindByPrimaryKey",
  4709. "body": [
  4710. "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
  4711. "if ($1 != null)",
  4712. "{",
  4713. " string ChannelCode = $1.ChannelCode; //渠道编码",
  4714. " string ChannelName = $1.ChannelName; //渠道名称 ",
  4715. " string MerNo = $1.MerNo; //商户编号",
  4716. " string RealName = $1.RealName; //真实姓名",
  4717. " string IdCardNo = $1.IdCardNo; //身份证号",
  4718. " string BankCardAccount = $1.BankCardAccount; //银行卡账号",
  4719. " string BankName = $1.BankName; //银行名称",
  4720. " string BankMobile = $1.BankMobile; //银行预留手机号码",
  4721. " string ReqData = $1.ReqData; //渠道请求报文",
  4722. " string RespData = $1.RespData; //渠道响应报文",
  4723. " string ReturnCode = $1.ReturnCode; //渠道返回编码",
  4724. " string ReturnMsg = $1.ReturnMsg; //渠道返回信息",
  4725. " int AuthType = $1.AuthType; //实名类型",
  4726. " int MerchantId = $1.MerchantId; //商户",
  4727. "}"
  4728. ]
  4729. },
  4730. "查询某个商户实名信息,并赋值": {
  4731. "prefix": "ym-db-MerchantAuth-Update",
  4732. "body": [
  4733. "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
  4734. "if ($1 != null)",
  4735. "{",
  4736. " $1.ChannelCode = $2; //渠道编码",
  4737. " $1.ChannelName = $3; //渠道名称 ",
  4738. " $1.MerNo = $4; //商户编号",
  4739. " $1.RealName = $5; //真实姓名",
  4740. " $1.IdCardNo = $6; //身份证号",
  4741. " $1.BankCardAccount = $7; //银行卡账号",
  4742. " $1.BankName = $8; //银行名称",
  4743. " $1.BankMobile = $9; //银行预留手机号码",
  4744. " $1.ReqData = $10; //渠道请求报文",
  4745. " $1.RespData = $11; //渠道响应报文",
  4746. " $1.ReturnCode = $12; //渠道返回编码",
  4747. " $1.ReturnMsg = $13; //渠道返回信息",
  4748. " $1.AuthType = $14; //实名类型",
  4749. " $1.MerchantId = $15; //商户",
  4750. "}"
  4751. ]
  4752. },
  4753. "获取商户实名信息数量": {
  4754. "prefix": "ym-db-MerchantAuth-FindAndCount",
  4755. "body": [
  4756. "int $1 = db.MerchantAuth.Count(m => $2);",
  4757. ]
  4758. },
  4759. "添加商户实名信息": {
  4760. "prefix": "ym-db-MerchantAuth-Create",
  4761. "body": [
  4762. "db.MerchantAuth.Add(new MerchantAuth()",
  4763. "{",
  4764. " CreateDate = DateTime.Now,",
  4765. " UpdateDate = DateTime.Now,",
  4766. " ChannelCode = $1, //渠道编码",
  4767. " ChannelName = $2, //渠道名称 ",
  4768. " MerNo = $3, //商户编号",
  4769. " RealName = $4, //真实姓名",
  4770. " IdCardNo = $5, //身份证号",
  4771. " BankCardAccount = $6, //银行卡账号",
  4772. " BankName = $7, //银行名称",
  4773. " BankMobile = $8, //银行预留手机号码",
  4774. " ReqData = $9, //渠道请求报文",
  4775. " RespData = $10, //渠道响应报文",
  4776. " ReturnCode = $11, //渠道返回编码",
  4777. " ReturnMsg = $12, //渠道返回信息",
  4778. " AuthType = $13, //实名类型",
  4779. " MerchantId = $14, //商户",
  4780. "});"
  4781. ]
  4782. },"删除某个商户实名信息": {
  4783. "prefix": "ym-db-MerchantAuth-Delete",
  4784. "body": [
  4785. "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
  4786. "if ($1 != null)",
  4787. "{",
  4788. " db.MerchantAuth.Remove($1);",
  4789. "}"
  4790. ]
  4791. },
  4792. "查询商家分类列表": {
  4793. "prefix": "ym-db-MerchantClass-Find",
  4794. "body": [
  4795. "List<MerchantClass> $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4796. "foreach (MerchantClass $3 in $1)",
  4797. "{",
  4798. "}"
  4799. ]
  4800. },
  4801. "查询商家分类列表,并取值": {
  4802. "prefix": "ym-db-MerchantClass-FindWithData",
  4803. "body": [
  4804. "List<MerchantClass> $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4805. "foreach (MerchantClass $3 in $1)",
  4806. "{",
  4807. " string ColName = $3.ColName; //名称",
  4808. " int ParentId = $3.ParentId; //父级Id",
  4809. " int MerchantId = $3.MerchantId; //商家Id",
  4810. "}"
  4811. ]
  4812. },
  4813. "查询商家分类": {
  4814. "prefix": "ym-db-MerchantClass-Exist",
  4815. "body": [
  4816. "bool $1 = db.MerchantClass.Any(m => m.Id == $2);",
  4817. ]
  4818. },
  4819. "查询某个商家分类,并取值": {
  4820. "prefix": "ym-db-MerchantClass-FindByPrimaryKey",
  4821. "body": [
  4822. "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
  4823. "if ($1 != null)",
  4824. "{",
  4825. " string ColName = $1.ColName; //名称",
  4826. " int ParentId = $1.ParentId; //父级Id",
  4827. " int MerchantId = $1.MerchantId; //商家Id",
  4828. "}"
  4829. ]
  4830. },
  4831. "查询某个商家分类,并赋值": {
  4832. "prefix": "ym-db-MerchantClass-Update",
  4833. "body": [
  4834. "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
  4835. "if ($1 != null)",
  4836. "{",
  4837. " $1.ColName = $2; //名称",
  4838. " $1.ParentId = $3; //父级Id",
  4839. " $1.MerchantId = $4; //商家Id",
  4840. "}"
  4841. ]
  4842. },
  4843. "获取商家分类数量": {
  4844. "prefix": "ym-db-MerchantClass-FindAndCount",
  4845. "body": [
  4846. "int $1 = db.MerchantClass.Count(m => $2);",
  4847. ]
  4848. },
  4849. "添加商家分类": {
  4850. "prefix": "ym-db-MerchantClass-Create",
  4851. "body": [
  4852. "db.MerchantClass.Add(new MerchantClass()",
  4853. "{",
  4854. " CreateDate = DateTime.Now,",
  4855. " UpdateDate = DateTime.Now,",
  4856. " ColName = $1, //名称",
  4857. " ParentId = $2, //父级Id",
  4858. " MerchantId = $3, //商家Id",
  4859. "});"
  4860. ]
  4861. },"删除某个商家分类": {
  4862. "prefix": "ym-db-MerchantClass-Delete",
  4863. "body": [
  4864. "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
  4865. "if ($1 != null)",
  4866. "{",
  4867. " db.MerchantClass.Remove($1);",
  4868. "}"
  4869. ]
  4870. },
  4871. "查询商家商品分类列表": {
  4872. "prefix": "ym-db-MerchantCol-Find",
  4873. "body": [
  4874. "List<MerchantCol> $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4875. "foreach (MerchantCol $3 in $1)",
  4876. "{",
  4877. "}"
  4878. ]
  4879. },
  4880. "查询商家商品分类列表,并取值": {
  4881. "prefix": "ym-db-MerchantCol-FindWithData",
  4882. "body": [
  4883. "List<MerchantCol> $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4884. "foreach (MerchantCol $3 in $1)",
  4885. "{",
  4886. " string ColId = $3.ColId; //编号",
  4887. " string ColName = $3.ColName; //名称",
  4888. " string ColPicPath = $3.ColPicPath; //图标",
  4889. " string ColDetail = $3.ColDetail; //简介",
  4890. " ulong Recommend = $3.Recommend; //推荐",
  4891. " string ColEnName = $3.ColEnName; //英文名",
  4892. " int ParentId = $3.ParentId; //父级Id",
  4893. " int MerchantId = $3.MerchantId; //商家Id",
  4894. "}"
  4895. ]
  4896. },
  4897. "查询商家商品分类": {
  4898. "prefix": "ym-db-MerchantCol-Exist",
  4899. "body": [
  4900. "bool $1 = db.MerchantCol.Any(m => m.Id == $2);",
  4901. ]
  4902. },
  4903. "查询某个商家商品分类,并取值": {
  4904. "prefix": "ym-db-MerchantCol-FindByPrimaryKey",
  4905. "body": [
  4906. "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
  4907. "if ($1 != null)",
  4908. "{",
  4909. " string ColId = $1.ColId; //编号",
  4910. " string ColName = $1.ColName; //名称",
  4911. " string ColPicPath = $1.ColPicPath; //图标",
  4912. " string ColDetail = $1.ColDetail; //简介",
  4913. " ulong Recommend = $1.Recommend; //推荐",
  4914. " string ColEnName = $1.ColEnName; //英文名",
  4915. " int ParentId = $1.ParentId; //父级Id",
  4916. " int MerchantId = $1.MerchantId; //商家Id",
  4917. "}"
  4918. ]
  4919. },
  4920. "查询某个商家商品分类,并赋值": {
  4921. "prefix": "ym-db-MerchantCol-Update",
  4922. "body": [
  4923. "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
  4924. "if ($1 != null)",
  4925. "{",
  4926. " $1.ColId = $2; //编号",
  4927. " $1.ColName = $3; //名称",
  4928. " $1.ColPicPath = $4; //图标",
  4929. " $1.ColDetail = $5; //简介",
  4930. " $1.Recommend = $6; //推荐",
  4931. " $1.ColEnName = $7; //英文名",
  4932. " $1.ParentId = $8; //父级Id",
  4933. " $1.MerchantId = $9; //商家Id",
  4934. "}"
  4935. ]
  4936. },
  4937. "获取商家商品分类数量": {
  4938. "prefix": "ym-db-MerchantCol-FindAndCount",
  4939. "body": [
  4940. "int $1 = db.MerchantCol.Count(m => $2);",
  4941. ]
  4942. },
  4943. "添加商家商品分类": {
  4944. "prefix": "ym-db-MerchantCol-Create",
  4945. "body": [
  4946. "db.MerchantCol.Add(new MerchantCol()",
  4947. "{",
  4948. " CreateDate = DateTime.Now,",
  4949. " UpdateDate = DateTime.Now,",
  4950. " ColId = $1, //编号",
  4951. " ColName = $2, //名称",
  4952. " ColPicPath = $3, //图标",
  4953. " ColDetail = $4, //简介",
  4954. " Recommend = $5, //推荐",
  4955. " ColEnName = $6, //英文名",
  4956. " ParentId = $7, //父级Id",
  4957. " MerchantId = $8, //商家Id",
  4958. "});"
  4959. ]
  4960. },"删除某个商家商品分类": {
  4961. "prefix": "ym-db-MerchantCol-Delete",
  4962. "body": [
  4963. "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
  4964. "if ($1 != null)",
  4965. "{",
  4966. " db.MerchantCol.Remove($1);",
  4967. "}"
  4968. ]
  4969. },
  4970. "查询店铺评价列表": {
  4971. "prefix": "ym-db-MerchantComment-Find",
  4972. "body": [
  4973. "List<MerchantComment> $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4974. "foreach (MerchantComment $3 in $1)",
  4975. "{",
  4976. "}"
  4977. ]
  4978. },
  4979. "查询店铺评价列表,并取值": {
  4980. "prefix": "ym-db-MerchantComment-FindWithData",
  4981. "body": [
  4982. "List<MerchantComment> $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  4983. "foreach (MerchantComment $3 in $1)",
  4984. "{",
  4985. " int UserId = $3.UserId; //创客Id",
  4986. " int OrderId = $3.OrderId; //订单Id",
  4987. " int StarNum1 = $3.StarNum1; //快递包装评分",
  4988. " int StarNum2 = $3.StarNum2; //送货速度评分",
  4989. " int StarNum3 = $3.StarNum3; //服务态度评分",
  4990. " int MerchantId = $3.MerchantId; //商家Id",
  4991. "}"
  4992. ]
  4993. },
  4994. "查询店铺评价": {
  4995. "prefix": "ym-db-MerchantComment-Exist",
  4996. "body": [
  4997. "bool $1 = db.MerchantComment.Any(m => m.Id == $2);",
  4998. ]
  4999. },
  5000. "查询某个店铺评价,并取值": {
  5001. "prefix": "ym-db-MerchantComment-FindByPrimaryKey",
  5002. "body": [
  5003. "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
  5004. "if ($1 != null)",
  5005. "{",
  5006. " int UserId = $1.UserId; //创客Id",
  5007. " int OrderId = $1.OrderId; //订单Id",
  5008. " int StarNum1 = $1.StarNum1; //快递包装评分",
  5009. " int StarNum2 = $1.StarNum2; //送货速度评分",
  5010. " int StarNum3 = $1.StarNum3; //服务态度评分",
  5011. " int MerchantId = $1.MerchantId; //商家Id",
  5012. "}"
  5013. ]
  5014. },
  5015. "查询某个店铺评价,并赋值": {
  5016. "prefix": "ym-db-MerchantComment-Update",
  5017. "body": [
  5018. "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
  5019. "if ($1 != null)",
  5020. "{",
  5021. " $1.UserId = $2; //创客Id",
  5022. " $1.OrderId = $3; //订单Id",
  5023. " $1.StarNum1 = $4; //快递包装评分",
  5024. " $1.StarNum2 = $5; //送货速度评分",
  5025. " $1.StarNum3 = $6; //服务态度评分",
  5026. " $1.MerchantId = $7; //商家Id",
  5027. "}"
  5028. ]
  5029. },
  5030. "获取店铺评价数量": {
  5031. "prefix": "ym-db-MerchantComment-FindAndCount",
  5032. "body": [
  5033. "int $1 = db.MerchantComment.Count(m => $2);",
  5034. ]
  5035. },
  5036. "添加店铺评价": {
  5037. "prefix": "ym-db-MerchantComment-Create",
  5038. "body": [
  5039. "db.MerchantComment.Add(new MerchantComment()",
  5040. "{",
  5041. " CreateDate = DateTime.Now,",
  5042. " UpdateDate = DateTime.Now,",
  5043. " UserId = $1, //创客Id",
  5044. " OrderId = $2, //订单Id",
  5045. " StarNum1 = $3, //快递包装评分",
  5046. " StarNum2 = $4, //送货速度评分",
  5047. " StarNum3 = $5, //服务态度评分",
  5048. " MerchantId = $6, //商家Id",
  5049. "});"
  5050. ]
  5051. },"删除某个店铺评价": {
  5052. "prefix": "ym-db-MerchantComment-Delete",
  5053. "body": [
  5054. "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
  5055. "if ($1 != null)",
  5056. "{",
  5057. " db.MerchantComment.Remove($1);",
  5058. "}"
  5059. ]
  5060. },
  5061. "查询商户编号为主键的关联表列表": {
  5062. "prefix": "ym-db-MerchantForCode-Find",
  5063. "body": [
  5064. "List<MerchantForCode> $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5065. "foreach (MerchantForCode $3 in $1)",
  5066. "{",
  5067. "}"
  5068. ]
  5069. },
  5070. "查询商户编号为主键的关联表列表,并取值": {
  5071. "prefix": "ym-db-MerchantForCode-FindWithData",
  5072. "body": [
  5073. "List<MerchantForCode> $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5074. "foreach (MerchantForCode $3 in $1)",
  5075. "{",
  5076. " string Code = $3.Code; //编号",
  5077. " int MerchantId = $3.MerchantId; //商户",
  5078. "}"
  5079. ]
  5080. },
  5081. "查询商户编号为主键的关联表": {
  5082. "prefix": "ym-db-MerchantForCode-Exist",
  5083. "body": [
  5084. "bool $1 = db.MerchantForCode.Any(m => m.Code == $2);",
  5085. ]
  5086. },
  5087. "查询某个商户编号为主键的关联表,并取值": {
  5088. "prefix": "ym-db-MerchantForCode-FindByPrimaryKey",
  5089. "body": [
  5090. "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
  5091. "if ($1 != null)",
  5092. "{",
  5093. " string Code = $1.Code; //编号",
  5094. " int MerchantId = $1.MerchantId; //商户",
  5095. "}"
  5096. ]
  5097. },
  5098. "查询某个商户编号为主键的关联表,并赋值": {
  5099. "prefix": "ym-db-MerchantForCode-Update",
  5100. "body": [
  5101. "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
  5102. "if ($1 != null)",
  5103. "{",
  5104. " $1.Code = $2; //编号",
  5105. " $1.MerchantId = $3; //商户",
  5106. "}"
  5107. ]
  5108. },
  5109. "获取商户编号为主键的关联表数量": {
  5110. "prefix": "ym-db-MerchantForCode-FindAndCount",
  5111. "body": [
  5112. "int $1 = db.MerchantForCode.Count(m => $2);",
  5113. ]
  5114. },
  5115. "添加商户编号为主键的关联表": {
  5116. "prefix": "ym-db-MerchantForCode-Create",
  5117. "body": [
  5118. "db.MerchantForCode.Add(new MerchantForCode()",
  5119. "{",
  5120. " CreateDate = DateTime.Now,",
  5121. " UpdateDate = DateTime.Now,",
  5122. " Code = $1, //编号",
  5123. " MerchantId = $2, //商户",
  5124. "});"
  5125. ]
  5126. },"删除某个商户编号为主键的关联表": {
  5127. "prefix": "ym-db-MerchantForCode-Delete",
  5128. "body": [
  5129. "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
  5130. "if ($1 != null)",
  5131. "{",
  5132. " db.MerchantForCode.Remove($1);",
  5133. "}"
  5134. ]
  5135. },
  5136. "查询商户手机号为主键的关联表列表": {
  5137. "prefix": "ym-db-MerchantForMobile-Find",
  5138. "body": [
  5139. "List<MerchantForMobile> $1 = db.MerchantForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5140. "foreach (MerchantForMobile $3 in $1)",
  5141. "{",
  5142. "}"
  5143. ]
  5144. },
  5145. "查询商户手机号为主键的关联表列表,并取值": {
  5146. "prefix": "ym-db-MerchantForMobile-FindWithData",
  5147. "body": [
  5148. "List<MerchantForMobile> $1 = db.MerchantForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5149. "foreach (MerchantForMobile $3 in $1)",
  5150. "{",
  5151. " string Mobile = $3.Mobile; //手机号",
  5152. " int MerchantId = $3.MerchantId; //商户",
  5153. "}"
  5154. ]
  5155. },
  5156. "查询商户手机号为主键的关联表": {
  5157. "prefix": "ym-db-MerchantForMobile-Exist",
  5158. "body": [
  5159. "bool $1 = db.MerchantForMobile.Any(m => m.Mobile == $2);",
  5160. ]
  5161. },
  5162. "查询某个商户手机号为主键的关联表,并取值": {
  5163. "prefix": "ym-db-MerchantForMobile-FindByPrimaryKey",
  5164. "body": [
  5165. "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);",
  5166. "if ($1 != null)",
  5167. "{",
  5168. " string Mobile = $1.Mobile; //手机号",
  5169. " int MerchantId = $1.MerchantId; //商户",
  5170. "}"
  5171. ]
  5172. },
  5173. "查询某个商户手机号为主键的关联表,并赋值": {
  5174. "prefix": "ym-db-MerchantForMobile-Update",
  5175. "body": [
  5176. "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);",
  5177. "if ($1 != null)",
  5178. "{",
  5179. " $1.Mobile = $2; //手机号",
  5180. " $1.MerchantId = $3; //商户",
  5181. "}"
  5182. ]
  5183. },
  5184. "获取商户手机号为主键的关联表数量": {
  5185. "prefix": "ym-db-MerchantForMobile-FindAndCount",
  5186. "body": [
  5187. "int $1 = db.MerchantForMobile.Count(m => $2);",
  5188. ]
  5189. },
  5190. "添加商户手机号为主键的关联表": {
  5191. "prefix": "ym-db-MerchantForMobile-Create",
  5192. "body": [
  5193. "db.MerchantForMobile.Add(new MerchantForMobile()",
  5194. "{",
  5195. " CreateDate = DateTime.Now,",
  5196. " UpdateDate = DateTime.Now,",
  5197. " Mobile = $1, //手机号",
  5198. " MerchantId = $2, //商户",
  5199. "});"
  5200. ]
  5201. },"删除某个商户手机号为主键的关联表": {
  5202. "prefix": "ym-db-MerchantForMobile-Delete",
  5203. "body": [
  5204. "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);",
  5205. "if ($1 != null)",
  5206. "{",
  5207. " db.MerchantForMobile.Remove($1);",
  5208. "}"
  5209. ]
  5210. },
  5211. "查询商户姓名为主键的关联表列表": {
  5212. "prefix": "ym-db-MerchantForName-Find",
  5213. "body": [
  5214. "List<MerchantForName> $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5215. "foreach (MerchantForName $3 in $1)",
  5216. "{",
  5217. "}"
  5218. ]
  5219. },
  5220. "查询商户姓名为主键的关联表列表,并取值": {
  5221. "prefix": "ym-db-MerchantForName-FindWithData",
  5222. "body": [
  5223. "List<MerchantForName> $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5224. "foreach (MerchantForName $3 in $1)",
  5225. "{",
  5226. " string Name = $3.Name; //姓名",
  5227. " int MerchantId = $3.MerchantId; //商户",
  5228. "}"
  5229. ]
  5230. },
  5231. "查询商户姓名为主键的关联表": {
  5232. "prefix": "ym-db-MerchantForName-Exist",
  5233. "body": [
  5234. "bool $1 = db.MerchantForName.Any(m => m.Name == $2);",
  5235. ]
  5236. },
  5237. "查询某个商户姓名为主键的关联表,并取值": {
  5238. "prefix": "ym-db-MerchantForName-FindByPrimaryKey",
  5239. "body": [
  5240. "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
  5241. "if ($1 != null)",
  5242. "{",
  5243. " string Name = $1.Name; //姓名",
  5244. " int MerchantId = $1.MerchantId; //商户",
  5245. "}"
  5246. ]
  5247. },
  5248. "查询某个商户姓名为主键的关联表,并赋值": {
  5249. "prefix": "ym-db-MerchantForName-Update",
  5250. "body": [
  5251. "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
  5252. "if ($1 != null)",
  5253. "{",
  5254. " $1.Name = $2; //姓名",
  5255. " $1.MerchantId = $3; //商户",
  5256. "}"
  5257. ]
  5258. },
  5259. "获取商户姓名为主键的关联表数量": {
  5260. "prefix": "ym-db-MerchantForName-FindAndCount",
  5261. "body": [
  5262. "int $1 = db.MerchantForName.Count(m => $2);",
  5263. ]
  5264. },
  5265. "添加商户姓名为主键的关联表": {
  5266. "prefix": "ym-db-MerchantForName-Create",
  5267. "body": [
  5268. "db.MerchantForName.Add(new MerchantForName()",
  5269. "{",
  5270. " CreateDate = DateTime.Now,",
  5271. " UpdateDate = DateTime.Now,",
  5272. " Name = $1, //姓名",
  5273. " MerchantId = $2, //商户",
  5274. "});"
  5275. ]
  5276. },"删除某个商户姓名为主键的关联表": {
  5277. "prefix": "ym-db-MerchantForName-Delete",
  5278. "body": [
  5279. "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
  5280. "if ($1 != null)",
  5281. "{",
  5282. " db.MerchantForName.Remove($1);",
  5283. "}"
  5284. ]
  5285. },
  5286. "查询商户列表": {
  5287. "prefix": "ym-db-MerchantInfo-Find",
  5288. "body": [
  5289. "List<MerchantInfo> $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5290. "foreach (MerchantInfo $3 in $1)",
  5291. "{",
  5292. "}"
  5293. ]
  5294. },
  5295. "查询商户列表,并取值": {
  5296. "prefix": "ym-db-MerchantInfo-FindWithData",
  5297. "body": [
  5298. "List<MerchantInfo> $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5299. "foreach (MerchantInfo $3 in $1)",
  5300. "{",
  5301. " string Name = $3.Name; //名称",
  5302. " string Mobile = $3.Mobile; //手机号",
  5303. " string Areas = $3.Areas; //所在地区",
  5304. " string Address = $3.Address; //详细地址",
  5305. " ulong IsAuth = $3.IsAuth; //是否认证",
  5306. " decimal TotalAmount = $3.TotalAmount; //平台总收益",
  5307. " int TotalOrder = $3.TotalOrder; //累计订单",
  5308. " int TotalCustomer = $3.TotalCustomer; //累计客户",
  5309. " int TotalUser = $3.TotalUser; //会员数",
  5310. " string LoginPwd = $3.LoginPwd; //登录密码",
  5311. " string Logo = $3.Logo; //Logo图片",
  5312. " decimal TotalActual = $3.TotalActual; //营收总额",
  5313. " DateTime LastAddConsumerDate = $3.LastAddConsumerDate; //最后加入会员时间",
  5314. " int TotalConsumeCount = $3.TotalConsumeCount; //累计消费次数",
  5315. " DateTime LastConsumeDate = $3.LastConsumeDate; //最后消费时间",
  5316. " int UserId = $3.UserId; //所属创客",
  5317. " string ParentUserNav = $3.ParentUserNav; //所属创客上级集合",
  5318. "}"
  5319. ]
  5320. },
  5321. "查询商户": {
  5322. "prefix": "ym-db-MerchantInfo-Exist",
  5323. "body": [
  5324. "bool $1 = db.MerchantInfo.Any(m => m.Id == $2);",
  5325. ]
  5326. },
  5327. "查询某个商户,并取值": {
  5328. "prefix": "ym-db-MerchantInfo-FindByPrimaryKey",
  5329. "body": [
  5330. "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
  5331. "if ($1 != null)",
  5332. "{",
  5333. " string Name = $1.Name; //名称",
  5334. " string Mobile = $1.Mobile; //手机号",
  5335. " string Areas = $1.Areas; //所在地区",
  5336. " string Address = $1.Address; //详细地址",
  5337. " ulong IsAuth = $1.IsAuth; //是否认证",
  5338. " decimal TotalAmount = $1.TotalAmount; //平台总收益",
  5339. " int TotalOrder = $1.TotalOrder; //累计订单",
  5340. " int TotalCustomer = $1.TotalCustomer; //累计客户",
  5341. " int TotalUser = $1.TotalUser; //会员数",
  5342. " string LoginPwd = $1.LoginPwd; //登录密码",
  5343. " string Logo = $1.Logo; //Logo图片",
  5344. " decimal TotalActual = $1.TotalActual; //营收总额",
  5345. " DateTime LastAddConsumerDate = $1.LastAddConsumerDate; //最后加入会员时间",
  5346. " int TotalConsumeCount = $1.TotalConsumeCount; //累计消费次数",
  5347. " DateTime LastConsumeDate = $1.LastConsumeDate; //最后消费时间",
  5348. " int UserId = $1.UserId; //所属创客",
  5349. " string ParentUserNav = $1.ParentUserNav; //所属创客上级集合",
  5350. "}"
  5351. ]
  5352. },
  5353. "查询某个商户,并赋值": {
  5354. "prefix": "ym-db-MerchantInfo-Update",
  5355. "body": [
  5356. "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
  5357. "if ($1 != null)",
  5358. "{",
  5359. " $1.Name = $2; //名称",
  5360. " $1.Mobile = $3; //手机号",
  5361. " $1.Areas = $4; //所在地区",
  5362. " $1.Address = $5; //详细地址",
  5363. " $1.IsAuth = $6; //是否认证",
  5364. " $1.TotalAmount = $7; //平台总收益",
  5365. " $1.TotalOrder = $8; //累计订单",
  5366. " $1.TotalCustomer = $9; //累计客户",
  5367. " $1.TotalUser = $10; //会员数",
  5368. " $1.LoginPwd = $11; //登录密码",
  5369. " $1.Logo = $12; //Logo图片",
  5370. " $1.TotalActual = $13; //营收总额",
  5371. " $1.LastAddConsumerDate = $14; //最后加入会员时间",
  5372. " $1.TotalConsumeCount = $15; //累计消费次数",
  5373. " $1.LastConsumeDate = $16; //最后消费时间",
  5374. " $1.UserId = $17; //所属创客",
  5375. " $1.ParentUserNav = $18; //所属创客上级集合",
  5376. "}"
  5377. ]
  5378. },
  5379. "获取商户数量": {
  5380. "prefix": "ym-db-MerchantInfo-FindAndCount",
  5381. "body": [
  5382. "int $1 = db.MerchantInfo.Count(m => $2);",
  5383. ]
  5384. },
  5385. "添加商户": {
  5386. "prefix": "ym-db-MerchantInfo-Create",
  5387. "body": [
  5388. "db.MerchantInfo.Add(new MerchantInfo()",
  5389. "{",
  5390. " CreateDate = DateTime.Now,",
  5391. " UpdateDate = DateTime.Now,",
  5392. " Name = $1, //名称",
  5393. " Mobile = $2, //手机号",
  5394. " Areas = $3, //所在地区",
  5395. " Address = $4, //详细地址",
  5396. " IsAuth = $5, //是否认证",
  5397. " TotalAmount = $6, //平台总收益",
  5398. " TotalOrder = $7, //累计订单",
  5399. " TotalCustomer = $8, //累计客户",
  5400. " TotalUser = $9, //会员数",
  5401. " LoginPwd = $10, //登录密码",
  5402. " Logo = $11, //Logo图片",
  5403. " TotalActual = $12, //营收总额",
  5404. " LastAddConsumerDate = $13, //最后加入会员时间",
  5405. " TotalConsumeCount = $14, //累计消费次数",
  5406. " LastConsumeDate = $15, //最后消费时间",
  5407. " UserId = $16, //所属创客",
  5408. " ParentUserNav = $17, //所属创客上级集合",
  5409. "});"
  5410. ]
  5411. },"删除某个商户": {
  5412. "prefix": "ym-db-MerchantInfo-Delete",
  5413. "body": [
  5414. "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
  5415. "if ($1 != null)",
  5416. "{",
  5417. " db.MerchantInfo.Remove($1);",
  5418. "}"
  5419. ]
  5420. },
  5421. "查询商户活动配置列表": {
  5422. "prefix": "ym-db-MerchantParamSet-Find",
  5423. "body": [
  5424. "List<MerchantParamSet> $1 = db.MerchantParamSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5425. "foreach (MerchantParamSet $3 in $1)",
  5426. "{",
  5427. "}"
  5428. ]
  5429. },
  5430. "查询商户活动配置列表,并取值": {
  5431. "prefix": "ym-db-MerchantParamSet-FindWithData",
  5432. "body": [
  5433. "List<MerchantParamSet> $1 = db.MerchantParamSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5434. "foreach (MerchantParamSet $3 in $1)",
  5435. "{",
  5436. " int IsAll = $3.IsAll; //是否收全额",
  5437. " decimal MinPayMoney = $3.MinPayMoney; //订单参与门槛",
  5438. " decimal GetPercent = $3.GetPercent; //商家实收比例",
  5439. " int ProfitDays = $3.ProfitDays; //分红期限(天)",
  5440. " decimal DiviPercent = $3.DiviPercent; //最大分红比例",
  5441. " int DiviPersons = $3.DiviPersons; //单笔订单分红人数",
  5442. "}"
  5443. ]
  5444. },
  5445. "查询商户活动配置": {
  5446. "prefix": "ym-db-MerchantParamSet-Exist",
  5447. "body": [
  5448. "bool $1 = db.MerchantParamSet.Any(m => m.Id == $2);",
  5449. ]
  5450. },
  5451. "查询某个商户活动配置,并取值": {
  5452. "prefix": "ym-db-MerchantParamSet-FindByPrimaryKey",
  5453. "body": [
  5454. "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);",
  5455. "if ($1 != null)",
  5456. "{",
  5457. " int IsAll = $1.IsAll; //是否收全额",
  5458. " decimal MinPayMoney = $1.MinPayMoney; //订单参与门槛",
  5459. " decimal GetPercent = $1.GetPercent; //商家实收比例",
  5460. " int ProfitDays = $1.ProfitDays; //分红期限(天)",
  5461. " decimal DiviPercent = $1.DiviPercent; //最大分红比例",
  5462. " int DiviPersons = $1.DiviPersons; //单笔订单分红人数",
  5463. "}"
  5464. ]
  5465. },
  5466. "查询某个商户活动配置,并赋值": {
  5467. "prefix": "ym-db-MerchantParamSet-Update",
  5468. "body": [
  5469. "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);",
  5470. "if ($1 != null)",
  5471. "{",
  5472. " $1.IsAll = $2; //是否收全额",
  5473. " $1.MinPayMoney = $3; //订单参与门槛",
  5474. " $1.GetPercent = $4; //商家实收比例",
  5475. " $1.ProfitDays = $5; //分红期限(天)",
  5476. " $1.DiviPercent = $6; //最大分红比例",
  5477. " $1.DiviPersons = $7; //单笔订单分红人数",
  5478. "}"
  5479. ]
  5480. },
  5481. "获取商户活动配置数量": {
  5482. "prefix": "ym-db-MerchantParamSet-FindAndCount",
  5483. "body": [
  5484. "int $1 = db.MerchantParamSet.Count(m => $2);",
  5485. ]
  5486. },
  5487. "添加商户活动配置": {
  5488. "prefix": "ym-db-MerchantParamSet-Create",
  5489. "body": [
  5490. "db.MerchantParamSet.Add(new MerchantParamSet()",
  5491. "{",
  5492. " CreateDate = DateTime.Now,",
  5493. " UpdateDate = DateTime.Now,",
  5494. " IsAll = $1, //是否收全额",
  5495. " MinPayMoney = $2, //订单参与门槛",
  5496. " GetPercent = $3, //商家实收比例",
  5497. " ProfitDays = $4, //分红期限(天)",
  5498. " DiviPercent = $5, //最大分红比例",
  5499. " DiviPersons = $6, //单笔订单分红人数",
  5500. "});"
  5501. ]
  5502. },"删除某个商户活动配置": {
  5503. "prefix": "ym-db-MerchantParamSet-Delete",
  5504. "body": [
  5505. "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);",
  5506. "if ($1 != null)",
  5507. "{",
  5508. " db.MerchantParamSet.Remove($1);",
  5509. "}"
  5510. ]
  5511. },
  5512. "查询商家收款二维码列表": {
  5513. "prefix": "ym-db-MerchantQrCode-Find",
  5514. "body": [
  5515. "List<MerchantQrCode> $1 = db.MerchantQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5516. "foreach (MerchantQrCode $3 in $1)",
  5517. "{",
  5518. "}"
  5519. ]
  5520. },
  5521. "查询商家收款二维码列表,并取值": {
  5522. "prefix": "ym-db-MerchantQrCode-FindWithData",
  5523. "body": [
  5524. "List<MerchantQrCode> $1 = db.MerchantQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5525. "foreach (MerchantQrCode $3 in $1)",
  5526. "{",
  5527. " int MerchantId = $3.MerchantId; //商户",
  5528. " string QrCodeContent = $3.QrCodeContent; //二维码内容",
  5529. " int MachineId = $3.MachineId; //设备",
  5530. " string SnNo = $3.SnNo; //Sn编号",
  5531. "}"
  5532. ]
  5533. },
  5534. "查询商家收款二维码": {
  5535. "prefix": "ym-db-MerchantQrCode-Exist",
  5536. "body": [
  5537. "bool $1 = db.MerchantQrCode.Any(m => m.Id == $2);",
  5538. ]
  5539. },
  5540. "查询某个商家收款二维码,并取值": {
  5541. "prefix": "ym-db-MerchantQrCode-FindByPrimaryKey",
  5542. "body": [
  5543. "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);",
  5544. "if ($1 != null)",
  5545. "{",
  5546. " int MerchantId = $1.MerchantId; //商户",
  5547. " string QrCodeContent = $1.QrCodeContent; //二维码内容",
  5548. " int MachineId = $1.MachineId; //设备",
  5549. " string SnNo = $1.SnNo; //Sn编号",
  5550. "}"
  5551. ]
  5552. },
  5553. "查询某个商家收款二维码,并赋值": {
  5554. "prefix": "ym-db-MerchantQrCode-Update",
  5555. "body": [
  5556. "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);",
  5557. "if ($1 != null)",
  5558. "{",
  5559. " $1.MerchantId = $2; //商户",
  5560. " $1.QrCodeContent = $3; //二维码内容",
  5561. " $1.MachineId = $4; //设备",
  5562. " $1.SnNo = $5; //Sn编号",
  5563. "}"
  5564. ]
  5565. },
  5566. "获取商家收款二维码数量": {
  5567. "prefix": "ym-db-MerchantQrCode-FindAndCount",
  5568. "body": [
  5569. "int $1 = db.MerchantQrCode.Count(m => $2);",
  5570. ]
  5571. },
  5572. "添加商家收款二维码": {
  5573. "prefix": "ym-db-MerchantQrCode-Create",
  5574. "body": [
  5575. "db.MerchantQrCode.Add(new MerchantQrCode()",
  5576. "{",
  5577. " CreateDate = DateTime.Now,",
  5578. " UpdateDate = DateTime.Now,",
  5579. " MerchantId = $1, //商户",
  5580. " QrCodeContent = $2, //二维码内容",
  5581. " MachineId = $3, //设备",
  5582. " SnNo = $4, //Sn编号",
  5583. "});"
  5584. ]
  5585. },"删除某个商家收款二维码": {
  5586. "prefix": "ym-db-MerchantQrCode-Delete",
  5587. "body": [
  5588. "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);",
  5589. "if ($1 != null)",
  5590. "{",
  5591. " db.MerchantQrCode.Remove($1);",
  5592. "}"
  5593. ]
  5594. },
  5595. "查询商户返利明细列表": {
  5596. "prefix": "ym-db-MerchantRebateDetail-Find",
  5597. "body": [
  5598. "List<MerchantRebateDetail> $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5599. "foreach (MerchantRebateDetail $3 in $1)",
  5600. "{",
  5601. "}"
  5602. ]
  5603. },
  5604. "查询商户返利明细列表,并取值": {
  5605. "prefix": "ym-db-MerchantRebateDetail-FindWithData",
  5606. "body": [
  5607. "List<MerchantRebateDetail> $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5608. "foreach (MerchantRebateDetail $3 in $1)",
  5609. "{",
  5610. " int BrandId = $3.BrandId; //品牌",
  5611. " string ProductName = $3.ProductName; //产品名称",
  5612. " string TradeMonth = $3.TradeMonth; //交易月份",
  5613. " string TradeDate = $3.TradeDate; //达标日期",
  5614. " string MerNo = $3.MerNo; //渠道商户编号",
  5615. " string SnNo = $3.SnNo; //渠道SN号",
  5616. " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间",
  5617. " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
  5618. " int MerchantId = $3.MerchantId; //商户",
  5619. " string MmpUserNo = $3.MmpUserNo; //KYS刷APP创客编号",
  5620. " string MmpUserName = $3.MmpUserName; //KYS商户真实姓名",
  5621. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  5622. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  5623. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  5624. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额",
  5625. " int SyncStatus = $3.SyncStatus; //同步MMP",
  5626. " string RewardDesc = $3.RewardDesc; //奖励描述",
  5627. " string Remark = $3.Remark; //备注",
  5628. "}"
  5629. ]
  5630. },
  5631. "查询商户返利明细": {
  5632. "prefix": "ym-db-MerchantRebateDetail-Exist",
  5633. "body": [
  5634. "bool $1 = db.MerchantRebateDetail.Any(m => m.Id == $2);",
  5635. ]
  5636. },
  5637. "查询某个商户返利明细,并取值": {
  5638. "prefix": "ym-db-MerchantRebateDetail-FindByPrimaryKey",
  5639. "body": [
  5640. "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
  5641. "if ($1 != null)",
  5642. "{",
  5643. " int BrandId = $1.BrandId; //品牌",
  5644. " string ProductName = $1.ProductName; //产品名称",
  5645. " string TradeMonth = $1.TradeMonth; //交易月份",
  5646. " string TradeDate = $1.TradeDate; //达标日期",
  5647. " string MerNo = $1.MerNo; //渠道商户编号",
  5648. " string SnNo = $1.SnNo; //渠道SN号",
  5649. " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间",
  5650. " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
  5651. " int MerchantId = $1.MerchantId; //商户",
  5652. " string MmpUserNo = $1.MmpUserNo; //KYS刷APP创客编号",
  5653. " string MmpUserName = $1.MmpUserName; //KYS商户真实姓名",
  5654. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  5655. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  5656. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  5657. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额",
  5658. " int SyncStatus = $1.SyncStatus; //同步MMP",
  5659. " string RewardDesc = $1.RewardDesc; //奖励描述",
  5660. " string Remark = $1.Remark; //备注",
  5661. "}"
  5662. ]
  5663. },
  5664. "查询某个商户返利明细,并赋值": {
  5665. "prefix": "ym-db-MerchantRebateDetail-Update",
  5666. "body": [
  5667. "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
  5668. "if ($1 != null)",
  5669. "{",
  5670. " $1.BrandId = $2; //品牌",
  5671. " $1.ProductName = $3; //产品名称",
  5672. " $1.TradeMonth = $4; //交易月份",
  5673. " $1.TradeDate = $5; //达标日期",
  5674. " $1.MerNo = $6; //渠道商户编号",
  5675. " $1.SnNo = $7; //渠道SN号",
  5676. " $1.MerRegTime = $8; //渠道注册时间",
  5677. " $1.MerStandardDate = $9; //商户激活时间",
  5678. " $1.MerchantId = $10; //商户",
  5679. " $1.MmpUserNo = $11; //KYS刷APP创客编号",
  5680. " $1.MmpUserName = $12; //KYS商户真实姓名",
  5681. " $1.CreditTradeAmt = $13; //贷记卡交易总金额",
  5682. " $1.DebitTradeAmt = $14; //借记卡交易总金额",
  5683. " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额",
  5684. " $1.DebitRewardAmount = $16; //借记卡交易奖励金额",
  5685. " $1.SyncStatus = $17; //同步MMP",
  5686. " $1.RewardDesc = $18; //奖励描述",
  5687. " $1.Remark = $19; //备注",
  5688. "}"
  5689. ]
  5690. },
  5691. "获取商户返利明细数量": {
  5692. "prefix": "ym-db-MerchantRebateDetail-FindAndCount",
  5693. "body": [
  5694. "int $1 = db.MerchantRebateDetail.Count(m => $2);",
  5695. ]
  5696. },
  5697. "添加商户返利明细": {
  5698. "prefix": "ym-db-MerchantRebateDetail-Create",
  5699. "body": [
  5700. "db.MerchantRebateDetail.Add(new MerchantRebateDetail()",
  5701. "{",
  5702. " CreateDate = DateTime.Now,",
  5703. " UpdateDate = DateTime.Now,",
  5704. " BrandId = $1, //品牌",
  5705. " ProductName = $2, //产品名称",
  5706. " TradeMonth = $3, //交易月份",
  5707. " TradeDate = $4, //达标日期",
  5708. " MerNo = $5, //渠道商户编号",
  5709. " SnNo = $6, //渠道SN号",
  5710. " MerRegTime = $7, //渠道注册时间",
  5711. " MerStandardDate = $8, //商户激活时间",
  5712. " MerchantId = $9, //商户",
  5713. " MmpUserNo = $10, //KYS刷APP创客编号",
  5714. " MmpUserName = $11, //KYS商户真实姓名",
  5715. " CreditTradeAmt = $12, //贷记卡交易总金额",
  5716. " DebitTradeAmt = $13, //借记卡交易总金额",
  5717. " CreditRewardAmount = $14, //贷记卡交易奖励金额",
  5718. " DebitRewardAmount = $15, //借记卡交易奖励金额",
  5719. " SyncStatus = $16, //同步MMP",
  5720. " RewardDesc = $17, //奖励描述",
  5721. " Remark = $18, //备注",
  5722. "});"
  5723. ]
  5724. },"删除某个商户返利明细": {
  5725. "prefix": "ym-db-MerchantRebateDetail-Delete",
  5726. "body": [
  5727. "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
  5728. "if ($1 != null)",
  5729. "{",
  5730. " db.MerchantRebateDetail.Remove($1);",
  5731. "}"
  5732. ]
  5733. },
  5734. "查询商家列表": {
  5735. "prefix": "ym-db-Merchants-Find",
  5736. "body": [
  5737. "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5738. "foreach (Merchants $3 in $1)",
  5739. "{",
  5740. "}"
  5741. ]
  5742. },
  5743. "查询商家列表,并取值": {
  5744. "prefix": "ym-db-Merchants-FindWithData",
  5745. "body": [
  5746. "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5747. "foreach (Merchants $3 in $1)",
  5748. "{",
  5749. " string Name = $3.Name; //名称",
  5750. " string Logo = $3.Logo; //Logo图片",
  5751. " string Areas = $3.Areas; //所在地区",
  5752. " string Principal = $3.Principal; //负责人",
  5753. " string Phone = $3.Phone; //联系电话",
  5754. " string BusinessLicense = $3.BusinessLicense; //营业执照",
  5755. " decimal StarNum1 = $3.StarNum1; //快递包装评分",
  5756. " int FollowCount = $3.FollowCount; //关注数",
  5757. " ulong IsAuth = $3.IsAuth; //是否认证",
  5758. " int CommentCount = $3.CommentCount; //评论数",
  5759. " string Address = $3.Address; //详细地址",
  5760. " decimal StarNum2 = $3.StarNum2; //送货速度评分",
  5761. " decimal StarNum3 = $3.StarNum3; //服务态度评分",
  5762. " string UserName = $3.UserName; //账号",
  5763. " string LoginPwd = $3.LoginPwd; //登录密码",
  5764. " string PayPwd = $3.PayPwd; //支付密码",
  5765. " ulong IsRecommend = $3.IsRecommend; //推荐",
  5766. " string Title = $3.Title; //宣传标语",
  5767. " string Title2 = $3.Title2; //宣传标语2",
  5768. " string Province = $3.Province; //所在省",
  5769. "}"
  5770. ]
  5771. },
  5772. "查询商家": {
  5773. "prefix": "ym-db-Merchants-Exist",
  5774. "body": [
  5775. "bool $1 = db.Merchants.Any(m => m.Id == $2);",
  5776. ]
  5777. },
  5778. "查询某个商家,并取值": {
  5779. "prefix": "ym-db-Merchants-FindByPrimaryKey",
  5780. "body": [
  5781. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
  5782. "if ($1 != null)",
  5783. "{",
  5784. " string Name = $1.Name; //名称",
  5785. " string Logo = $1.Logo; //Logo图片",
  5786. " string Areas = $1.Areas; //所在地区",
  5787. " string Principal = $1.Principal; //负责人",
  5788. " string Phone = $1.Phone; //联系电话",
  5789. " string BusinessLicense = $1.BusinessLicense; //营业执照",
  5790. " decimal StarNum1 = $1.StarNum1; //快递包装评分",
  5791. " int FollowCount = $1.FollowCount; //关注数",
  5792. " ulong IsAuth = $1.IsAuth; //是否认证",
  5793. " int CommentCount = $1.CommentCount; //评论数",
  5794. " string Address = $1.Address; //详细地址",
  5795. " decimal StarNum2 = $1.StarNum2; //送货速度评分",
  5796. " decimal StarNum3 = $1.StarNum3; //服务态度评分",
  5797. " string UserName = $1.UserName; //账号",
  5798. " string LoginPwd = $1.LoginPwd; //登录密码",
  5799. " string PayPwd = $1.PayPwd; //支付密码",
  5800. " ulong IsRecommend = $1.IsRecommend; //推荐",
  5801. " string Title = $1.Title; //宣传标语",
  5802. " string Title2 = $1.Title2; //宣传标语2",
  5803. " string Province = $1.Province; //所在省",
  5804. "}"
  5805. ]
  5806. },
  5807. "查询某个商家,并赋值": {
  5808. "prefix": "ym-db-Merchants-Update",
  5809. "body": [
  5810. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
  5811. "if ($1 != null)",
  5812. "{",
  5813. " $1.Name = $2; //名称",
  5814. " $1.Logo = $3; //Logo图片",
  5815. " $1.Areas = $4; //所在地区",
  5816. " $1.Principal = $5; //负责人",
  5817. " $1.Phone = $6; //联系电话",
  5818. " $1.BusinessLicense = $7; //营业执照",
  5819. " $1.StarNum1 = $8; //快递包装评分",
  5820. " $1.FollowCount = $9; //关注数",
  5821. " $1.IsAuth = $10; //是否认证",
  5822. " $1.CommentCount = $11; //评论数",
  5823. " $1.Address = $12; //详细地址",
  5824. " $1.StarNum2 = $13; //送货速度评分",
  5825. " $1.StarNum3 = $14; //服务态度评分",
  5826. " $1.UserName = $15; //账号",
  5827. " $1.LoginPwd = $16; //登录密码",
  5828. " $1.PayPwd = $17; //支付密码",
  5829. " $1.IsRecommend = $18; //推荐",
  5830. " $1.Title = $19; //宣传标语",
  5831. " $1.Title2 = $20; //宣传标语2",
  5832. " $1.Province = $21; //所在省",
  5833. "}"
  5834. ]
  5835. },
  5836. "获取商家数量": {
  5837. "prefix": "ym-db-Merchants-FindAndCount",
  5838. "body": [
  5839. "int $1 = db.Merchants.Count(m => $2);",
  5840. ]
  5841. },
  5842. "添加商家": {
  5843. "prefix": "ym-db-Merchants-Create",
  5844. "body": [
  5845. "db.Merchants.Add(new Merchants()",
  5846. "{",
  5847. " CreateDate = DateTime.Now,",
  5848. " UpdateDate = DateTime.Now,",
  5849. " Name = $1, //名称",
  5850. " Logo = $2, //Logo图片",
  5851. " Areas = $3, //所在地区",
  5852. " Principal = $4, //负责人",
  5853. " Phone = $5, //联系电话",
  5854. " BusinessLicense = $6, //营业执照",
  5855. " StarNum1 = $7, //快递包装评分",
  5856. " FollowCount = $8, //关注数",
  5857. " IsAuth = $9, //是否认证",
  5858. " CommentCount = $10, //评论数",
  5859. " Address = $11, //详细地址",
  5860. " StarNum2 = $12, //送货速度评分",
  5861. " StarNum3 = $13, //服务态度评分",
  5862. " UserName = $14, //账号",
  5863. " LoginPwd = $15, //登录密码",
  5864. " PayPwd = $16, //支付密码",
  5865. " IsRecommend = $17, //推荐",
  5866. " Title = $18, //宣传标语",
  5867. " Title2 = $19, //宣传标语2",
  5868. " Province = $20, //所在省",
  5869. "});"
  5870. ]
  5871. },"删除某个商家": {
  5872. "prefix": "ym-db-Merchants-Delete",
  5873. "body": [
  5874. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
  5875. "if ($1 != null)",
  5876. "{",
  5877. " db.Merchants.Remove($1);",
  5878. "}"
  5879. ]
  5880. },
  5881. "查询手机验证码列表": {
  5882. "prefix": "ym-db-MobileCodeCheck-Find",
  5883. "body": [
  5884. "List<MobileCodeCheck> $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5885. "foreach (MobileCodeCheck $3 in $1)",
  5886. "{",
  5887. "}"
  5888. ]
  5889. },
  5890. "查询手机验证码列表,并取值": {
  5891. "prefix": "ym-db-MobileCodeCheck-FindWithData",
  5892. "body": [
  5893. "List<MobileCodeCheck> $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5894. "foreach (MobileCodeCheck $3 in $1)",
  5895. "{",
  5896. " string Mobile = $3.Mobile; //手机号",
  5897. " string CheckCode = $3.CheckCode; //验证码",
  5898. " string CheckNo = $3.CheckNo; //图形验证码",
  5899. " DateTime CheckCodeTime = $3.CheckCodeTime; //验证码时间",
  5900. "}"
  5901. ]
  5902. },
  5903. "查询手机验证码": {
  5904. "prefix": "ym-db-MobileCodeCheck-Exist",
  5905. "body": [
  5906. "bool $1 = db.MobileCodeCheck.Any(m => m.Mobile == $2);",
  5907. ]
  5908. },
  5909. "查询某个手机验证码,并取值": {
  5910. "prefix": "ym-db-MobileCodeCheck-FindByPrimaryKey",
  5911. "body": [
  5912. "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
  5913. "if ($1 != null)",
  5914. "{",
  5915. " string Mobile = $1.Mobile; //手机号",
  5916. " string CheckCode = $1.CheckCode; //验证码",
  5917. " string CheckNo = $1.CheckNo; //图形验证码",
  5918. " DateTime CheckCodeTime = $1.CheckCodeTime; //验证码时间",
  5919. "}"
  5920. ]
  5921. },
  5922. "查询某个手机验证码,并赋值": {
  5923. "prefix": "ym-db-MobileCodeCheck-Update",
  5924. "body": [
  5925. "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
  5926. "if ($1 != null)",
  5927. "{",
  5928. " $1.Mobile = $2; //手机号",
  5929. " $1.CheckCode = $3; //验证码",
  5930. " $1.CheckNo = $4; //图形验证码",
  5931. " $1.CheckCodeTime = $5; //验证码时间",
  5932. "}"
  5933. ]
  5934. },
  5935. "获取手机验证码数量": {
  5936. "prefix": "ym-db-MobileCodeCheck-FindAndCount",
  5937. "body": [
  5938. "int $1 = db.MobileCodeCheck.Count(m => $2);",
  5939. ]
  5940. },
  5941. "添加手机验证码": {
  5942. "prefix": "ym-db-MobileCodeCheck-Create",
  5943. "body": [
  5944. "db.MobileCodeCheck.Add(new MobileCodeCheck()",
  5945. "{",
  5946. " CreateDate = DateTime.Now,",
  5947. " UpdateDate = DateTime.Now,",
  5948. " Mobile = $1, //手机号",
  5949. " CheckCode = $2, //验证码",
  5950. " CheckNo = $3, //图形验证码",
  5951. " CheckCodeTime = $4, //验证码时间",
  5952. "});"
  5953. ]
  5954. },"删除某个手机验证码": {
  5955. "prefix": "ym-db-MobileCodeCheck-Delete",
  5956. "body": [
  5957. "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
  5958. "if ($1 != null)",
  5959. "{",
  5960. " db.MobileCodeCheck.Remove($1);",
  5961. "}"
  5962. ]
  5963. },
  5964. "查询消息黑名单列表": {
  5965. "prefix": "ym-db-MsgBlackList-Find",
  5966. "body": [
  5967. "List<MsgBlackList> $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5968. "foreach (MsgBlackList $3 in $1)",
  5969. "{",
  5970. "}"
  5971. ]
  5972. },
  5973. "查询消息黑名单列表,并取值": {
  5974. "prefix": "ym-db-MsgBlackList-FindWithData",
  5975. "body": [
  5976. "List<MsgBlackList> $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5977. "foreach (MsgBlackList $3 in $1)",
  5978. "{",
  5979. " string ColId = $3.ColId; //分类",
  5980. " int TemplateId = $3.TemplateId; //模板",
  5981. " string Mobile = $3.Mobile; //手机号",
  5982. " string Ip = $3.Ip; //IP地址",
  5983. " string Reason = $3.Reason; //加入黑名单原因",
  5984. " string Remark = $3.Remark; //注释",
  5985. " string Extend = $3.Extend; //扩展字段",
  5986. "}"
  5987. ]
  5988. },
  5989. "查询消息黑名单": {
  5990. "prefix": "ym-db-MsgBlackList-Exist",
  5991. "body": [
  5992. "bool $1 = db.MsgBlackList.Any(m => m.Id == $2);",
  5993. ]
  5994. },
  5995. "查询某个消息黑名单,并取值": {
  5996. "prefix": "ym-db-MsgBlackList-FindByPrimaryKey",
  5997. "body": [
  5998. "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
  5999. "if ($1 != null)",
  6000. "{",
  6001. " string ColId = $1.ColId; //分类",
  6002. " int TemplateId = $1.TemplateId; //模板",
  6003. " string Mobile = $1.Mobile; //手机号",
  6004. " string Ip = $1.Ip; //IP地址",
  6005. " string Reason = $1.Reason; //加入黑名单原因",
  6006. " string Remark = $1.Remark; //注释",
  6007. " string Extend = $1.Extend; //扩展字段",
  6008. "}"
  6009. ]
  6010. },
  6011. "查询某个消息黑名单,并赋值": {
  6012. "prefix": "ym-db-MsgBlackList-Update",
  6013. "body": [
  6014. "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
  6015. "if ($1 != null)",
  6016. "{",
  6017. " $1.ColId = $2; //分类",
  6018. " $1.TemplateId = $3; //模板",
  6019. " $1.Mobile = $4; //手机号",
  6020. " $1.Ip = $5; //IP地址",
  6021. " $1.Reason = $6; //加入黑名单原因",
  6022. " $1.Remark = $7; //注释",
  6023. " $1.Extend = $8; //扩展字段",
  6024. "}"
  6025. ]
  6026. },
  6027. "获取消息黑名单数量": {
  6028. "prefix": "ym-db-MsgBlackList-FindAndCount",
  6029. "body": [
  6030. "int $1 = db.MsgBlackList.Count(m => $2);",
  6031. ]
  6032. },
  6033. "添加消息黑名单": {
  6034. "prefix": "ym-db-MsgBlackList-Create",
  6035. "body": [
  6036. "db.MsgBlackList.Add(new MsgBlackList()",
  6037. "{",
  6038. " CreateDate = DateTime.Now,",
  6039. " UpdateDate = DateTime.Now,",
  6040. " ColId = $1, //分类",
  6041. " TemplateId = $2, //模板",
  6042. " Mobile = $3, //手机号",
  6043. " Ip = $4, //IP地址",
  6044. " Reason = $5, //加入黑名单原因",
  6045. " Remark = $6, //注释",
  6046. " Extend = $7, //扩展字段",
  6047. "});"
  6048. ]
  6049. },"删除某个消息黑名单": {
  6050. "prefix": "ym-db-MsgBlackList-Delete",
  6051. "body": [
  6052. "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
  6053. "if ($1 != null)",
  6054. "{",
  6055. " db.MsgBlackList.Remove($1);",
  6056. "}"
  6057. ]
  6058. },
  6059. "查询个人消息列表": {
  6060. "prefix": "ym-db-MsgPersonal-Find",
  6061. "body": [
  6062. "List<MsgPersonal> $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6063. "foreach (MsgPersonal $3 in $1)",
  6064. "{",
  6065. "}"
  6066. ]
  6067. },
  6068. "查询个人消息列表,并取值": {
  6069. "prefix": "ym-db-MsgPersonal-FindWithData",
  6070. "body": [
  6071. "List<MsgPersonal> $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6072. "foreach (MsgPersonal $3 in $1)",
  6073. "{",
  6074. " int TemplateId = $3.TemplateId; //模板",
  6075. " int UserId = $3.UserId; //创客",
  6076. " int MsgType = $3.MsgType; //消息类型",
  6077. " string BgPic = $3.BgPic; //背景图片",
  6078. " string Title = $3.Title; //标题",
  6079. " string Content = $3.Content; //内容",
  6080. " string Url = $3.Url; //跳转Url",
  6081. " string Summary = $3.Summary; //简介",
  6082. " int PushFlag = $3.PushFlag; //推送标记",
  6083. " ulong ReadFlag = $3.ReadFlag; //已读标记",
  6084. " string PushParam = $3.PushParam; //推送参数",
  6085. " string ExtendColumn = $3.ExtendColumn; //扩展字段",
  6086. " string Remark = $3.Remark; //备注",
  6087. "}"
  6088. ]
  6089. },
  6090. "查询个人消息": {
  6091. "prefix": "ym-db-MsgPersonal-Exist",
  6092. "body": [
  6093. "bool $1 = db.MsgPersonal.Any(m => m.Id == $2);",
  6094. ]
  6095. },
  6096. "查询某个个人消息,并取值": {
  6097. "prefix": "ym-db-MsgPersonal-FindByPrimaryKey",
  6098. "body": [
  6099. "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
  6100. "if ($1 != null)",
  6101. "{",
  6102. " int TemplateId = $1.TemplateId; //模板",
  6103. " int UserId = $1.UserId; //创客",
  6104. " int MsgType = $1.MsgType; //消息类型",
  6105. " string BgPic = $1.BgPic; //背景图片",
  6106. " string Title = $1.Title; //标题",
  6107. " string Content = $1.Content; //内容",
  6108. " string Url = $1.Url; //跳转Url",
  6109. " string Summary = $1.Summary; //简介",
  6110. " int PushFlag = $1.PushFlag; //推送标记",
  6111. " ulong ReadFlag = $1.ReadFlag; //已读标记",
  6112. " string PushParam = $1.PushParam; //推送参数",
  6113. " string ExtendColumn = $1.ExtendColumn; //扩展字段",
  6114. " string Remark = $1.Remark; //备注",
  6115. "}"
  6116. ]
  6117. },
  6118. "查询某个个人消息,并赋值": {
  6119. "prefix": "ym-db-MsgPersonal-Update",
  6120. "body": [
  6121. "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
  6122. "if ($1 != null)",
  6123. "{",
  6124. " $1.TemplateId = $2; //模板",
  6125. " $1.UserId = $3; //创客",
  6126. " $1.MsgType = $4; //消息类型",
  6127. " $1.BgPic = $5; //背景图片",
  6128. " $1.Title = $6; //标题",
  6129. " $1.Content = $7; //内容",
  6130. " $1.Url = $8; //跳转Url",
  6131. " $1.Summary = $9; //简介",
  6132. " $1.PushFlag = $10; //推送标记",
  6133. " $1.ReadFlag = $11; //已读标记",
  6134. " $1.PushParam = $12; //推送参数",
  6135. " $1.ExtendColumn = $13; //扩展字段",
  6136. " $1.Remark = $14; //备注",
  6137. "}"
  6138. ]
  6139. },
  6140. "获取个人消息数量": {
  6141. "prefix": "ym-db-MsgPersonal-FindAndCount",
  6142. "body": [
  6143. "int $1 = db.MsgPersonal.Count(m => $2);",
  6144. ]
  6145. },
  6146. "添加个人消息": {
  6147. "prefix": "ym-db-MsgPersonal-Create",
  6148. "body": [
  6149. "db.MsgPersonal.Add(new MsgPersonal()",
  6150. "{",
  6151. " CreateDate = DateTime.Now,",
  6152. " UpdateDate = DateTime.Now,",
  6153. " TemplateId = $1, //模板",
  6154. " UserId = $2, //创客",
  6155. " MsgType = $3, //消息类型",
  6156. " BgPic = $4, //背景图片",
  6157. " Title = $5, //标题",
  6158. " Content = $6, //内容",
  6159. " Url = $7, //跳转Url",
  6160. " Summary = $8, //简介",
  6161. " PushFlag = $9, //推送标记",
  6162. " ReadFlag = $10, //已读标记",
  6163. " PushParam = $11, //推送参数",
  6164. " ExtendColumn = $12, //扩展字段",
  6165. " Remark = $13, //备注",
  6166. "});"
  6167. ]
  6168. },"删除某个个人消息": {
  6169. "prefix": "ym-db-MsgPersonal-Delete",
  6170. "body": [
  6171. "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
  6172. "if ($1 != null)",
  6173. "{",
  6174. " db.MsgPersonal.Remove($1);",
  6175. "}"
  6176. ]
  6177. },
  6178. "查询公告消息列表": {
  6179. "prefix": "ym-db-MsgPlacard-Find",
  6180. "body": [
  6181. "List<MsgPlacard> $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6182. "foreach (MsgPlacard $3 in $1)",
  6183. "{",
  6184. "}"
  6185. ]
  6186. },
  6187. "查询公告消息列表,并取值": {
  6188. "prefix": "ym-db-MsgPlacard-FindWithData",
  6189. "body": [
  6190. "List<MsgPlacard> $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6191. "foreach (MsgPlacard $3 in $1)",
  6192. "{",
  6193. " int MsgType = $3.MsgType; //消息类型",
  6194. " string Title = $3.Title; //标题",
  6195. " string Summary = $3.Summary; //简介",
  6196. " string Content = $3.Content; //内容",
  6197. " ulong IsTop = $3.IsTop; //置顶",
  6198. " int ShowType = $3.ShowType; //展示类型",
  6199. " DateTime EffectStartDate = $3.EffectStartDate; //有效开始时间",
  6200. " DateTime EffectEndDate = $3.EffectEndDate; //有效结束时间",
  6201. " string BgPic = $3.BgPic; //背景图片",
  6202. " int PushType = $3.PushType; //推送类型",
  6203. " int PushFlag = $3.PushFlag; //推送标记",
  6204. " string PushParam = $3.PushParam; //推送参数",
  6205. " DateTime PushTime = $3.PushTime; //推送时间",
  6206. " string ExtendColumn = $3.ExtendColumn; //扩展字段",
  6207. " string Remark = $3.Remark; //备注",
  6208. " string Url = $3.Url; //跳转Url",
  6209. "}"
  6210. ]
  6211. },
  6212. "查询公告消息": {
  6213. "prefix": "ym-db-MsgPlacard-Exist",
  6214. "body": [
  6215. "bool $1 = db.MsgPlacard.Any(m => m.Id == $2);",
  6216. ]
  6217. },
  6218. "查询某个公告消息,并取值": {
  6219. "prefix": "ym-db-MsgPlacard-FindByPrimaryKey",
  6220. "body": [
  6221. "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
  6222. "if ($1 != null)",
  6223. "{",
  6224. " int MsgType = $1.MsgType; //消息类型",
  6225. " string Title = $1.Title; //标题",
  6226. " string Summary = $1.Summary; //简介",
  6227. " string Content = $1.Content; //内容",
  6228. " ulong IsTop = $1.IsTop; //置顶",
  6229. " int ShowType = $1.ShowType; //展示类型",
  6230. " DateTime EffectStartDate = $1.EffectStartDate; //有效开始时间",
  6231. " DateTime EffectEndDate = $1.EffectEndDate; //有效结束时间",
  6232. " string BgPic = $1.BgPic; //背景图片",
  6233. " int PushType = $1.PushType; //推送类型",
  6234. " int PushFlag = $1.PushFlag; //推送标记",
  6235. " string PushParam = $1.PushParam; //推送参数",
  6236. " DateTime PushTime = $1.PushTime; //推送时间",
  6237. " string ExtendColumn = $1.ExtendColumn; //扩展字段",
  6238. " string Remark = $1.Remark; //备注",
  6239. " string Url = $1.Url; //跳转Url",
  6240. "}"
  6241. ]
  6242. },
  6243. "查询某个公告消息,并赋值": {
  6244. "prefix": "ym-db-MsgPlacard-Update",
  6245. "body": [
  6246. "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
  6247. "if ($1 != null)",
  6248. "{",
  6249. " $1.MsgType = $2; //消息类型",
  6250. " $1.Title = $3; //标题",
  6251. " $1.Summary = $4; //简介",
  6252. " $1.Content = $5; //内容",
  6253. " $1.IsTop = $6; //置顶",
  6254. " $1.ShowType = $7; //展示类型",
  6255. " $1.EffectStartDate = $8; //有效开始时间",
  6256. " $1.EffectEndDate = $9; //有效结束时间",
  6257. " $1.BgPic = $10; //背景图片",
  6258. " $1.PushType = $11; //推送类型",
  6259. " $1.PushFlag = $12; //推送标记",
  6260. " $1.PushParam = $13; //推送参数",
  6261. " $1.PushTime = $14; //推送时间",
  6262. " $1.ExtendColumn = $15; //扩展字段",
  6263. " $1.Remark = $16; //备注",
  6264. " $1.Url = $17; //跳转Url",
  6265. "}"
  6266. ]
  6267. },
  6268. "获取公告消息数量": {
  6269. "prefix": "ym-db-MsgPlacard-FindAndCount",
  6270. "body": [
  6271. "int $1 = db.MsgPlacard.Count(m => $2);",
  6272. ]
  6273. },
  6274. "添加公告消息": {
  6275. "prefix": "ym-db-MsgPlacard-Create",
  6276. "body": [
  6277. "db.MsgPlacard.Add(new MsgPlacard()",
  6278. "{",
  6279. " CreateDate = DateTime.Now,",
  6280. " UpdateDate = DateTime.Now,",
  6281. " MsgType = $1, //消息类型",
  6282. " Title = $2, //标题",
  6283. " Summary = $3, //简介",
  6284. " Content = $4, //内容",
  6285. " IsTop = $5, //置顶",
  6286. " ShowType = $6, //展示类型",
  6287. " EffectStartDate = $7, //有效开始时间",
  6288. " EffectEndDate = $8, //有效结束时间",
  6289. " BgPic = $9, //背景图片",
  6290. " PushType = $10, //推送类型",
  6291. " PushFlag = $11, //推送标记",
  6292. " PushParam = $12, //推送参数",
  6293. " PushTime = $13, //推送时间",
  6294. " ExtendColumn = $14, //扩展字段",
  6295. " Remark = $15, //备注",
  6296. " Url = $16, //跳转Url",
  6297. "});"
  6298. ]
  6299. },"删除某个公告消息": {
  6300. "prefix": "ym-db-MsgPlacard-Delete",
  6301. "body": [
  6302. "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
  6303. "if ($1 != null)",
  6304. "{",
  6305. " db.MsgPlacard.Remove($1);",
  6306. "}"
  6307. ]
  6308. },
  6309. "查询公告消息已读记录列表": {
  6310. "prefix": "ym-db-MsgPlacardRead-Find",
  6311. "body": [
  6312. "List<MsgPlacardRead> $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6313. "foreach (MsgPlacardRead $3 in $1)",
  6314. "{",
  6315. "}"
  6316. ]
  6317. },
  6318. "查询公告消息已读记录列表,并取值": {
  6319. "prefix": "ym-db-MsgPlacardRead-FindWithData",
  6320. "body": [
  6321. "List<MsgPlacardRead> $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6322. "foreach (MsgPlacardRead $3 in $1)",
  6323. "{",
  6324. " int PlacardId = $3.PlacardId; //公告",
  6325. " string UserId = $3.UserId; //用户ID",
  6326. " ulong ReadFlag = $3.ReadFlag; //已读标记",
  6327. " string Remark = $3.Remark; //备注",
  6328. "}"
  6329. ]
  6330. },
  6331. "查询公告消息已读记录": {
  6332. "prefix": "ym-db-MsgPlacardRead-Exist",
  6333. "body": [
  6334. "bool $1 = db.MsgPlacardRead.Any(m => m.Id == $2);",
  6335. ]
  6336. },
  6337. "查询某个公告消息已读记录,并取值": {
  6338. "prefix": "ym-db-MsgPlacardRead-FindByPrimaryKey",
  6339. "body": [
  6340. "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
  6341. "if ($1 != null)",
  6342. "{",
  6343. " int PlacardId = $1.PlacardId; //公告",
  6344. " string UserId = $1.UserId; //用户ID",
  6345. " ulong ReadFlag = $1.ReadFlag; //已读标记",
  6346. " string Remark = $1.Remark; //备注",
  6347. "}"
  6348. ]
  6349. },
  6350. "查询某个公告消息已读记录,并赋值": {
  6351. "prefix": "ym-db-MsgPlacardRead-Update",
  6352. "body": [
  6353. "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
  6354. "if ($1 != null)",
  6355. "{",
  6356. " $1.PlacardId = $2; //公告",
  6357. " $1.UserId = $3; //用户ID",
  6358. " $1.ReadFlag = $4; //已读标记",
  6359. " $1.Remark = $5; //备注",
  6360. "}"
  6361. ]
  6362. },
  6363. "获取公告消息已读记录数量": {
  6364. "prefix": "ym-db-MsgPlacardRead-FindAndCount",
  6365. "body": [
  6366. "int $1 = db.MsgPlacardRead.Count(m => $2);",
  6367. ]
  6368. },
  6369. "添加公告消息已读记录": {
  6370. "prefix": "ym-db-MsgPlacardRead-Create",
  6371. "body": [
  6372. "db.MsgPlacardRead.Add(new MsgPlacardRead()",
  6373. "{",
  6374. " CreateDate = DateTime.Now,",
  6375. " UpdateDate = DateTime.Now,",
  6376. " PlacardId = $1, //公告",
  6377. " UserId = $2, //用户ID",
  6378. " ReadFlag = $3, //已读标记",
  6379. " Remark = $4, //备注",
  6380. "});"
  6381. ]
  6382. },"删除某个公告消息已读记录": {
  6383. "prefix": "ym-db-MsgPlacardRead-Delete",
  6384. "body": [
  6385. "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
  6386. "if ($1 != null)",
  6387. "{",
  6388. " db.MsgPlacardRead.Remove($1);",
  6389. "}"
  6390. ]
  6391. },
  6392. "查询推送消息记录列表": {
  6393. "prefix": "ym-db-MsgPush-Find",
  6394. "body": [
  6395. "List<MsgPush> $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6396. "foreach (MsgPush $3 in $1)",
  6397. "{",
  6398. "}"
  6399. ]
  6400. },
  6401. "查询推送消息记录列表,并取值": {
  6402. "prefix": "ym-db-MsgPush-FindWithData",
  6403. "body": [
  6404. "List<MsgPush> $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6405. "foreach (MsgPush $3 in $1)",
  6406. "{",
  6407. " string ClientType = $3.ClientType; //客户端类型",
  6408. " string Url = $3.Url; //链接地址",
  6409. " string Title = $3.Title; //推送标题",
  6410. " string Details = $3.Details; //推送内容",
  6411. " ulong IsSilent = $3.IsSilent; //静音推送",
  6412. " string Devices = $3.Devices; //设备号",
  6413. " int TemplateId = $3.TemplateId; //模板",
  6414. " DateTime AutoPushDate = $3.AutoPushDate; //定时推送时间",
  6415. " string MessageId = $3.MessageId; //推送返回码",
  6416. " string Mobiles = $3.Mobiles; //手机号",
  6417. "}"
  6418. ]
  6419. },
  6420. "查询推送消息记录": {
  6421. "prefix": "ym-db-MsgPush-Exist",
  6422. "body": [
  6423. "bool $1 = db.MsgPush.Any(m => m.Id == $2);",
  6424. ]
  6425. },
  6426. "查询某个推送消息记录,并取值": {
  6427. "prefix": "ym-db-MsgPush-FindByPrimaryKey",
  6428. "body": [
  6429. "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
  6430. "if ($1 != null)",
  6431. "{",
  6432. " string ClientType = $1.ClientType; //客户端类型",
  6433. " string Url = $1.Url; //链接地址",
  6434. " string Title = $1.Title; //推送标题",
  6435. " string Details = $1.Details; //推送内容",
  6436. " ulong IsSilent = $1.IsSilent; //静音推送",
  6437. " string Devices = $1.Devices; //设备号",
  6438. " int TemplateId = $1.TemplateId; //模板",
  6439. " DateTime AutoPushDate = $1.AutoPushDate; //定时推送时间",
  6440. " string MessageId = $1.MessageId; //推送返回码",
  6441. " string Mobiles = $1.Mobiles; //手机号",
  6442. "}"
  6443. ]
  6444. },
  6445. "查询某个推送消息记录,并赋值": {
  6446. "prefix": "ym-db-MsgPush-Update",
  6447. "body": [
  6448. "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
  6449. "if ($1 != null)",
  6450. "{",
  6451. " $1.ClientType = $2; //客户端类型",
  6452. " $1.Url = $3; //链接地址",
  6453. " $1.Title = $4; //推送标题",
  6454. " $1.Details = $5; //推送内容",
  6455. " $1.IsSilent = $6; //静音推送",
  6456. " $1.Devices = $7; //设备号",
  6457. " $1.TemplateId = $8; //模板",
  6458. " $1.AutoPushDate = $9; //定时推送时间",
  6459. " $1.MessageId = $10; //推送返回码",
  6460. " $1.Mobiles = $11; //手机号",
  6461. "}"
  6462. ]
  6463. },
  6464. "获取推送消息记录数量": {
  6465. "prefix": "ym-db-MsgPush-FindAndCount",
  6466. "body": [
  6467. "int $1 = db.MsgPush.Count(m => $2);",
  6468. ]
  6469. },
  6470. "添加推送消息记录": {
  6471. "prefix": "ym-db-MsgPush-Create",
  6472. "body": [
  6473. "db.MsgPush.Add(new MsgPush()",
  6474. "{",
  6475. " CreateDate = DateTime.Now,",
  6476. " UpdateDate = DateTime.Now,",
  6477. " ClientType = $1, //客户端类型",
  6478. " Url = $2, //链接地址",
  6479. " Title = $3, //推送标题",
  6480. " Details = $4, //推送内容",
  6481. " IsSilent = $5, //静音推送",
  6482. " Devices = $6, //设备号",
  6483. " TemplateId = $7, //模板",
  6484. " AutoPushDate = $8, //定时推送时间",
  6485. " MessageId = $9, //推送返回码",
  6486. " Mobiles = $10, //手机号",
  6487. "});"
  6488. ]
  6489. },"删除某个推送消息记录": {
  6490. "prefix": "ym-db-MsgPush-Delete",
  6491. "body": [
  6492. "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
  6493. "if ($1 != null)",
  6494. "{",
  6495. " db.MsgPush.Remove($1);",
  6496. "}"
  6497. ]
  6498. },
  6499. "查询发送短信记录列表": {
  6500. "prefix": "ym-db-MsgSms-Find",
  6501. "body": [
  6502. "List<MsgSms> $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6503. "foreach (MsgSms $3 in $1)",
  6504. "{",
  6505. "}"
  6506. ]
  6507. },
  6508. "查询发送短信记录列表,并取值": {
  6509. "prefix": "ym-db-MsgSms-FindWithData",
  6510. "body": [
  6511. "List<MsgSms> $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6512. "foreach (MsgSms $3 in $1)",
  6513. "{",
  6514. " string ColId = $3.ColId; //分类",
  6515. " int TemplateId = $3.TemplateId; //模板",
  6516. " string Mobile = $3.Mobile; //手机号",
  6517. " string Ip = $3.Ip; //IP地址",
  6518. " int SendType = $3.SendType; //发送类别",
  6519. " int SmsType = $3.SmsType; //短信内容类型",
  6520. " string Content = $3.Content; //内容",
  6521. " string SignName = $3.SignName; //签名",
  6522. " DateTime SendTime = $3.SendTime; //发送时间",
  6523. " string RespContent = $3.RespContent; //返回报文",
  6524. " string RespCode = $3.RespCode; //返回码",
  6525. " string VerifyCode = $3.VerifyCode; //验证码",
  6526. " int ErrorNum = $3.ErrorNum; //错误次数",
  6527. " int VerifyStatus = $3.VerifyStatus; //校验状态",
  6528. " int Code = $3.Code; //业务编号",
  6529. " string Kind = $3.Kind; //短信类型",
  6530. " int SendStatus = $3.SendStatus; //发送状态",
  6531. "}"
  6532. ]
  6533. },
  6534. "查询发送短信记录": {
  6535. "prefix": "ym-db-MsgSms-Exist",
  6536. "body": [
  6537. "bool $1 = db.MsgSms.Any(m => m.Id == $2);",
  6538. ]
  6539. },
  6540. "查询某个发送短信记录,并取值": {
  6541. "prefix": "ym-db-MsgSms-FindByPrimaryKey",
  6542. "body": [
  6543. "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
  6544. "if ($1 != null)",
  6545. "{",
  6546. " string ColId = $1.ColId; //分类",
  6547. " int TemplateId = $1.TemplateId; //模板",
  6548. " string Mobile = $1.Mobile; //手机号",
  6549. " string Ip = $1.Ip; //IP地址",
  6550. " int SendType = $1.SendType; //发送类别",
  6551. " int SmsType = $1.SmsType; //短信内容类型",
  6552. " string Content = $1.Content; //内容",
  6553. " string SignName = $1.SignName; //签名",
  6554. " DateTime SendTime = $1.SendTime; //发送时间",
  6555. " string RespContent = $1.RespContent; //返回报文",
  6556. " string RespCode = $1.RespCode; //返回码",
  6557. " string VerifyCode = $1.VerifyCode; //验证码",
  6558. " int ErrorNum = $1.ErrorNum; //错误次数",
  6559. " int VerifyStatus = $1.VerifyStatus; //校验状态",
  6560. " int Code = $1.Code; //业务编号",
  6561. " string Kind = $1.Kind; //短信类型",
  6562. " int SendStatus = $1.SendStatus; //发送状态",
  6563. "}"
  6564. ]
  6565. },
  6566. "查询某个发送短信记录,并赋值": {
  6567. "prefix": "ym-db-MsgSms-Update",
  6568. "body": [
  6569. "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
  6570. "if ($1 != null)",
  6571. "{",
  6572. " $1.ColId = $2; //分类",
  6573. " $1.TemplateId = $3; //模板",
  6574. " $1.Mobile = $4; //手机号",
  6575. " $1.Ip = $5; //IP地址",
  6576. " $1.SendType = $6; //发送类别",
  6577. " $1.SmsType = $7; //短信内容类型",
  6578. " $1.Content = $8; //内容",
  6579. " $1.SignName = $9; //签名",
  6580. " $1.SendTime = $10; //发送时间",
  6581. " $1.RespContent = $11; //返回报文",
  6582. " $1.RespCode = $12; //返回码",
  6583. " $1.VerifyCode = $13; //验证码",
  6584. " $1.ErrorNum = $14; //错误次数",
  6585. " $1.VerifyStatus = $15; //校验状态",
  6586. " $1.Code = $16; //业务编号",
  6587. " $1.Kind = $17; //短信类型",
  6588. " $1.SendStatus = $18; //发送状态",
  6589. "}"
  6590. ]
  6591. },
  6592. "获取发送短信记录数量": {
  6593. "prefix": "ym-db-MsgSms-FindAndCount",
  6594. "body": [
  6595. "int $1 = db.MsgSms.Count(m => $2);",
  6596. ]
  6597. },
  6598. "添加发送短信记录": {
  6599. "prefix": "ym-db-MsgSms-Create",
  6600. "body": [
  6601. "db.MsgSms.Add(new MsgSms()",
  6602. "{",
  6603. " CreateDate = DateTime.Now,",
  6604. " UpdateDate = DateTime.Now,",
  6605. " ColId = $1, //分类",
  6606. " TemplateId = $2, //模板",
  6607. " Mobile = $3, //手机号",
  6608. " Ip = $4, //IP地址",
  6609. " SendType = $5, //发送类别",
  6610. " SmsType = $6, //短信内容类型",
  6611. " Content = $7, //内容",
  6612. " SignName = $8, //签名",
  6613. " SendTime = $9, //发送时间",
  6614. " RespContent = $10, //返回报文",
  6615. " RespCode = $11, //返回码",
  6616. " VerifyCode = $12, //验证码",
  6617. " ErrorNum = $13, //错误次数",
  6618. " VerifyStatus = $14, //校验状态",
  6619. " Code = $15, //业务编号",
  6620. " Kind = $16, //短信类型",
  6621. " SendStatus = $17, //发送状态",
  6622. "});"
  6623. ]
  6624. },"删除某个发送短信记录": {
  6625. "prefix": "ym-db-MsgSms-Delete",
  6626. "body": [
  6627. "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
  6628. "if ($1 != null)",
  6629. "{",
  6630. " db.MsgSms.Remove($1);",
  6631. "}"
  6632. ]
  6633. },
  6634. "查询发送短信配置列表": {
  6635. "prefix": "ym-db-MsgSmsSet-Find",
  6636. "body": [
  6637. "List<MsgSmsSet> $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6638. "foreach (MsgSmsSet $3 in $1)",
  6639. "{",
  6640. "}"
  6641. ]
  6642. },
  6643. "查询发送短信配置列表,并取值": {
  6644. "prefix": "ym-db-MsgSmsSet-FindWithData",
  6645. "body": [
  6646. "List<MsgSmsSet> $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6647. "foreach (MsgSmsSet $3 in $1)",
  6648. "{",
  6649. " string Name = $3.Name; //渠道名称",
  6650. " string UserName = $3.UserName; //账号",
  6651. " string AuthPwd = $3.AuthPwd; //密码",
  6652. " int SmsType = $3.SmsType; //类别",
  6653. " string ReqUrl = $3.ReqUrl; //请求地址",
  6654. " string Params = $3.Params; //请求参数",
  6655. "}"
  6656. ]
  6657. },
  6658. "查询发送短信配置": {
  6659. "prefix": "ym-db-MsgSmsSet-Exist",
  6660. "body": [
  6661. "bool $1 = db.MsgSmsSet.Any(m => m.Id == $2);",
  6662. ]
  6663. },
  6664. "查询某个发送短信配置,并取值": {
  6665. "prefix": "ym-db-MsgSmsSet-FindByPrimaryKey",
  6666. "body": [
  6667. "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
  6668. "if ($1 != null)",
  6669. "{",
  6670. " string Name = $1.Name; //渠道名称",
  6671. " string UserName = $1.UserName; //账号",
  6672. " string AuthPwd = $1.AuthPwd; //密码",
  6673. " int SmsType = $1.SmsType; //类别",
  6674. " string ReqUrl = $1.ReqUrl; //请求地址",
  6675. " string Params = $1.Params; //请求参数",
  6676. "}"
  6677. ]
  6678. },
  6679. "查询某个发送短信配置,并赋值": {
  6680. "prefix": "ym-db-MsgSmsSet-Update",
  6681. "body": [
  6682. "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
  6683. "if ($1 != null)",
  6684. "{",
  6685. " $1.Name = $2; //渠道名称",
  6686. " $1.UserName = $3; //账号",
  6687. " $1.AuthPwd = $4; //密码",
  6688. " $1.SmsType = $5; //类别",
  6689. " $1.ReqUrl = $6; //请求地址",
  6690. " $1.Params = $7; //请求参数",
  6691. "}"
  6692. ]
  6693. },
  6694. "获取发送短信配置数量": {
  6695. "prefix": "ym-db-MsgSmsSet-FindAndCount",
  6696. "body": [
  6697. "int $1 = db.MsgSmsSet.Count(m => $2);",
  6698. ]
  6699. },
  6700. "添加发送短信配置": {
  6701. "prefix": "ym-db-MsgSmsSet-Create",
  6702. "body": [
  6703. "db.MsgSmsSet.Add(new MsgSmsSet()",
  6704. "{",
  6705. " CreateDate = DateTime.Now,",
  6706. " UpdateDate = DateTime.Now,",
  6707. " Name = $1, //渠道名称",
  6708. " UserName = $2, //账号",
  6709. " AuthPwd = $3, //密码",
  6710. " SmsType = $4, //类别",
  6711. " ReqUrl = $5, //请求地址",
  6712. " Params = $6, //请求参数",
  6713. "});"
  6714. ]
  6715. },"删除某个发送短信配置": {
  6716. "prefix": "ym-db-MsgSmsSet-Delete",
  6717. "body": [
  6718. "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
  6719. "if ($1 != null)",
  6720. "{",
  6721. " db.MsgSmsSet.Remove($1);",
  6722. "}"
  6723. ]
  6724. },
  6725. "查询消息模板列表": {
  6726. "prefix": "ym-db-MsgTemplate-Find",
  6727. "body": [
  6728. "List<MsgTemplate> $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6729. "foreach (MsgTemplate $3 in $1)",
  6730. "{",
  6731. "}"
  6732. ]
  6733. },
  6734. "查询消息模板列表,并取值": {
  6735. "prefix": "ym-db-MsgTemplate-FindWithData",
  6736. "body": [
  6737. "List<MsgTemplate> $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6738. "foreach (MsgTemplate $3 in $1)",
  6739. "{",
  6740. " string Title = $3.Title; //标题",
  6741. " string Content = $3.Content; //内容",
  6742. " string ColId = $3.ColId; //分类",
  6743. " int TemplateType = $3.TemplateType; //类型",
  6744. " int MsgType = $3.MsgType; //消息类型",
  6745. " string Remark = $3.Remark; //注释",
  6746. " string Extend = $3.Extend; //扩展字段",
  6747. " string SignName = $3.SignName; //签名",
  6748. "}"
  6749. ]
  6750. },
  6751. "查询消息模板": {
  6752. "prefix": "ym-db-MsgTemplate-Exist",
  6753. "body": [
  6754. "bool $1 = db.MsgTemplate.Any(m => m.Id == $2);",
  6755. ]
  6756. },
  6757. "查询某个消息模板,并取值": {
  6758. "prefix": "ym-db-MsgTemplate-FindByPrimaryKey",
  6759. "body": [
  6760. "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
  6761. "if ($1 != null)",
  6762. "{",
  6763. " string Title = $1.Title; //标题",
  6764. " string Content = $1.Content; //内容",
  6765. " string ColId = $1.ColId; //分类",
  6766. " int TemplateType = $1.TemplateType; //类型",
  6767. " int MsgType = $1.MsgType; //消息类型",
  6768. " string Remark = $1.Remark; //注释",
  6769. " string Extend = $1.Extend; //扩展字段",
  6770. " string SignName = $1.SignName; //签名",
  6771. "}"
  6772. ]
  6773. },
  6774. "查询某个消息模板,并赋值": {
  6775. "prefix": "ym-db-MsgTemplate-Update",
  6776. "body": [
  6777. "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
  6778. "if ($1 != null)",
  6779. "{",
  6780. " $1.Title = $2; //标题",
  6781. " $1.Content = $3; //内容",
  6782. " $1.ColId = $4; //分类",
  6783. " $1.TemplateType = $5; //类型",
  6784. " $1.MsgType = $6; //消息类型",
  6785. " $1.Remark = $7; //注释",
  6786. " $1.Extend = $8; //扩展字段",
  6787. " $1.SignName = $9; //签名",
  6788. "}"
  6789. ]
  6790. },
  6791. "获取消息模板数量": {
  6792. "prefix": "ym-db-MsgTemplate-FindAndCount",
  6793. "body": [
  6794. "int $1 = db.MsgTemplate.Count(m => $2);",
  6795. ]
  6796. },
  6797. "添加消息模板": {
  6798. "prefix": "ym-db-MsgTemplate-Create",
  6799. "body": [
  6800. "db.MsgTemplate.Add(new MsgTemplate()",
  6801. "{",
  6802. " CreateDate = DateTime.Now,",
  6803. " UpdateDate = DateTime.Now,",
  6804. " Title = $1, //标题",
  6805. " Content = $2, //内容",
  6806. " ColId = $3, //分类",
  6807. " TemplateType = $4, //类型",
  6808. " MsgType = $5, //消息类型",
  6809. " Remark = $6, //注释",
  6810. " Extend = $7, //扩展字段",
  6811. " SignName = $8, //签名",
  6812. "});"
  6813. ]
  6814. },"删除某个消息模板": {
  6815. "prefix": "ym-db-MsgTemplate-Delete",
  6816. "body": [
  6817. "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
  6818. "if ($1 != null)",
  6819. "{",
  6820. " db.MsgTemplate.Remove($1);",
  6821. "}"
  6822. ]
  6823. },
  6824. "查询开户银行省市编码列表": {
  6825. "prefix": "ym-db-OpenBankCityTable-Find",
  6826. "body": [
  6827. "List<OpenBankCityTable> $1 = db.OpenBankCityTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6828. "foreach (OpenBankCityTable $3 in $1)",
  6829. "{",
  6830. "}"
  6831. ]
  6832. },
  6833. "查询开户银行省市编码列表,并取值": {
  6834. "prefix": "ym-db-OpenBankCityTable-FindWithData",
  6835. "body": [
  6836. "List<OpenBankCityTable> $1 = db.OpenBankCityTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6837. "foreach (OpenBankCityTable $3 in $1)",
  6838. "{",
  6839. " string CityName = $3.CityName; //省市",
  6840. " string Code = $3.Code; //编码",
  6841. "}"
  6842. ]
  6843. },
  6844. "查询开户银行省市编码": {
  6845. "prefix": "ym-db-OpenBankCityTable-Exist",
  6846. "body": [
  6847. "bool $1 = db.OpenBankCityTable.Any(m => m.CityName == $2);",
  6848. ]
  6849. },
  6850. "查询某个开户银行省市编码,并取值": {
  6851. "prefix": "ym-db-OpenBankCityTable-FindByPrimaryKey",
  6852. "body": [
  6853. "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);",
  6854. "if ($1 != null)",
  6855. "{",
  6856. " string CityName = $1.CityName; //省市",
  6857. " string Code = $1.Code; //编码",
  6858. "}"
  6859. ]
  6860. },
  6861. "查询某个开户银行省市编码,并赋值": {
  6862. "prefix": "ym-db-OpenBankCityTable-Update",
  6863. "body": [
  6864. "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);",
  6865. "if ($1 != null)",
  6866. "{",
  6867. " $1.CityName = $2; //省市",
  6868. " $1.Code = $3; //编码",
  6869. "}"
  6870. ]
  6871. },
  6872. "获取开户银行省市编码数量": {
  6873. "prefix": "ym-db-OpenBankCityTable-FindAndCount",
  6874. "body": [
  6875. "int $1 = db.OpenBankCityTable.Count(m => $2);",
  6876. ]
  6877. },
  6878. "添加开户银行省市编码": {
  6879. "prefix": "ym-db-OpenBankCityTable-Create",
  6880. "body": [
  6881. "db.OpenBankCityTable.Add(new OpenBankCityTable()",
  6882. "{",
  6883. " CreateDate = DateTime.Now,",
  6884. " UpdateDate = DateTime.Now,",
  6885. " CityName = $1, //省市",
  6886. " Code = $2, //编码",
  6887. "});"
  6888. ]
  6889. },"删除某个开户银行省市编码": {
  6890. "prefix": "ym-db-OpenBankCityTable-Delete",
  6891. "body": [
  6892. "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);",
  6893. "if ($1 != null)",
  6894. "{",
  6895. " db.OpenBankCityTable.Remove($1);",
  6896. "}"
  6897. ]
  6898. },
  6899. "查询开户行对照表列表": {
  6900. "prefix": "ym-db-OpenBankTable-Find",
  6901. "body": [
  6902. "List<OpenBankTable> $1 = db.OpenBankTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6903. "foreach (OpenBankTable $3 in $1)",
  6904. "{",
  6905. "}"
  6906. ]
  6907. },
  6908. "查询开户行对照表列表,并取值": {
  6909. "prefix": "ym-db-OpenBankTable-FindWithData",
  6910. "body": [
  6911. "List<OpenBankTable> $1 = db.OpenBankTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6912. "foreach (OpenBankTable $3 in $1)",
  6913. "{",
  6914. " string BankName = $3.BankName; //开户行名称",
  6915. " string BankCode = $3.BankCode; //联行号",
  6916. "}"
  6917. ]
  6918. },
  6919. "查询开户行对照表": {
  6920. "prefix": "ym-db-OpenBankTable-Exist",
  6921. "body": [
  6922. "bool $1 = db.OpenBankTable.Any(m => m.BankName == $2);",
  6923. ]
  6924. },
  6925. "查询某个开户行对照表,并取值": {
  6926. "prefix": "ym-db-OpenBankTable-FindByPrimaryKey",
  6927. "body": [
  6928. "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);",
  6929. "if ($1 != null)",
  6930. "{",
  6931. " string BankName = $1.BankName; //开户行名称",
  6932. " string BankCode = $1.BankCode; //联行号",
  6933. "}"
  6934. ]
  6935. },
  6936. "查询某个开户行对照表,并赋值": {
  6937. "prefix": "ym-db-OpenBankTable-Update",
  6938. "body": [
  6939. "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);",
  6940. "if ($1 != null)",
  6941. "{",
  6942. " $1.BankName = $2; //开户行名称",
  6943. " $1.BankCode = $3; //联行号",
  6944. "}"
  6945. ]
  6946. },
  6947. "获取开户行对照表数量": {
  6948. "prefix": "ym-db-OpenBankTable-FindAndCount",
  6949. "body": [
  6950. "int $1 = db.OpenBankTable.Count(m => $2);",
  6951. ]
  6952. },
  6953. "添加开户行对照表": {
  6954. "prefix": "ym-db-OpenBankTable-Create",
  6955. "body": [
  6956. "db.OpenBankTable.Add(new OpenBankTable()",
  6957. "{",
  6958. " CreateDate = DateTime.Now,",
  6959. " UpdateDate = DateTime.Now,",
  6960. " BankName = $1, //开户行名称",
  6961. " BankCode = $2, //联行号",
  6962. "});"
  6963. ]
  6964. },"删除某个开户行对照表": {
  6965. "prefix": "ym-db-OpenBankTable-Delete",
  6966. "body": [
  6967. "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);",
  6968. "if ($1 != null)",
  6969. "{",
  6970. " db.OpenBankTable.Remove($1);",
  6971. "}"
  6972. ]
  6973. },
  6974. "查询开机奖励列表": {
  6975. "prefix": "ym-db-OpenReward-Find",
  6976. "body": [
  6977. "List<OpenReward> $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6978. "foreach (OpenReward $3 in $1)",
  6979. "{",
  6980. "}"
  6981. ]
  6982. },
  6983. "查询开机奖励列表,并取值": {
  6984. "prefix": "ym-db-OpenReward-FindWithData",
  6985. "body": [
  6986. "List<OpenReward> $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  6987. "foreach (OpenReward $3 in $1)",
  6988. "{",
  6989. " string TradeMonth = $3.TradeMonth; //交易月",
  6990. " DateTime TradeDate = $3.TradeDate; //达标日期",
  6991. " int UserId = $3.UserId; //创客",
  6992. " int BrandId = $3.BrandId; //品牌",
  6993. " int RewardType = $3.RewardType; //奖励类型",
  6994. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  6995. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  6996. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  6997. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
  6998. " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
  6999. " string RewardDesc = $3.RewardDesc; //奖励描述",
  7000. " string Remark = $3.Remark; //备注",
  7001. " int RewardMerCount = $3.RewardMerCount; //达标商户数",
  7002. " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
  7003. " int TopUserId = $3.TopUserId; //顶级创客",
  7004. "}"
  7005. ]
  7006. },
  7007. "查询开机奖励": {
  7008. "prefix": "ym-db-OpenReward-Exist",
  7009. "body": [
  7010. "bool $1 = db.OpenReward.Any(m => m.Id == $2);",
  7011. ]
  7012. },
  7013. "查询某个开机奖励,并取值": {
  7014. "prefix": "ym-db-OpenReward-FindByPrimaryKey",
  7015. "body": [
  7016. "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
  7017. "if ($1 != null)",
  7018. "{",
  7019. " string TradeMonth = $1.TradeMonth; //交易月",
  7020. " DateTime TradeDate = $1.TradeDate; //达标日期",
  7021. " int UserId = $1.UserId; //创客",
  7022. " int BrandId = $1.BrandId; //品牌",
  7023. " int RewardType = $1.RewardType; //奖励类型",
  7024. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  7025. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  7026. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  7027. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
  7028. " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
  7029. " string RewardDesc = $1.RewardDesc; //奖励描述",
  7030. " string Remark = $1.Remark; //备注",
  7031. " int RewardMerCount = $1.RewardMerCount; //达标商户数",
  7032. " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
  7033. " int TopUserId = $1.TopUserId; //顶级创客",
  7034. "}"
  7035. ]
  7036. },
  7037. "查询某个开机奖励,并赋值": {
  7038. "prefix": "ym-db-OpenReward-Update",
  7039. "body": [
  7040. "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
  7041. "if ($1 != null)",
  7042. "{",
  7043. " $1.TradeMonth = $2; //交易月",
  7044. " $1.TradeDate = $3; //达标日期",
  7045. " $1.UserId = $4; //创客",
  7046. " $1.BrandId = $5; //品牌",
  7047. " $1.RewardType = $6; //奖励类型",
  7048. " $1.CreditTradeAmt = $7; //贷记卡交易总金额",
  7049. " $1.DebitTradeAmt = $8; //借记卡交易总金额",
  7050. " $1.CreditRewardAmount = $9; //贷记卡交易奖励金额",
  7051. " $1.DebitRewardAmount = $10; //借记记卡交易奖励金额",
  7052. " $1.OpenRewardNo = $11; //开机奖励单号",
  7053. " $1.RewardDesc = $12; //奖励描述",
  7054. " $1.Remark = $13; //备注",
  7055. " $1.RewardMerCount = $14; //达标商户数",
  7056. " $1.CheckStatus = $15; //验证和同步账户状态",
  7057. " $1.TopUserId = $16; //顶级创客",
  7058. "}"
  7059. ]
  7060. },
  7061. "获取开机奖励数量": {
  7062. "prefix": "ym-db-OpenReward-FindAndCount",
  7063. "body": [
  7064. "int $1 = db.OpenReward.Count(m => $2);",
  7065. ]
  7066. },
  7067. "添加开机奖励": {
  7068. "prefix": "ym-db-OpenReward-Create",
  7069. "body": [
  7070. "db.OpenReward.Add(new OpenReward()",
  7071. "{",
  7072. " CreateDate = DateTime.Now,",
  7073. " UpdateDate = DateTime.Now,",
  7074. " TradeMonth = $1, //交易月",
  7075. " TradeDate = $2, //达标日期",
  7076. " UserId = $3, //创客",
  7077. " BrandId = $4, //品牌",
  7078. " RewardType = $5, //奖励类型",
  7079. " CreditTradeAmt = $6, //贷记卡交易总金额",
  7080. " DebitTradeAmt = $7, //借记卡交易总金额",
  7081. " CreditRewardAmount = $8, //贷记卡交易奖励金额",
  7082. " DebitRewardAmount = $9, //借记记卡交易奖励金额",
  7083. " OpenRewardNo = $10, //开机奖励单号",
  7084. " RewardDesc = $11, //奖励描述",
  7085. " Remark = $12, //备注",
  7086. " RewardMerCount = $13, //达标商户数",
  7087. " CheckStatus = $14, //验证和同步账户状态",
  7088. " TopUserId = $15, //顶级创客",
  7089. "});"
  7090. ]
  7091. },"删除某个开机奖励": {
  7092. "prefix": "ym-db-OpenReward-Delete",
  7093. "body": [
  7094. "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
  7095. "if ($1 != null)",
  7096. "{",
  7097. " db.OpenReward.Remove($1);",
  7098. "}"
  7099. ]
  7100. },
  7101. "查询开机奖励明细列表": {
  7102. "prefix": "ym-db-OpenRewardDetail-Find",
  7103. "body": [
  7104. "List<OpenRewardDetail> $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7105. "foreach (OpenRewardDetail $3 in $1)",
  7106. "{",
  7107. "}"
  7108. ]
  7109. },
  7110. "查询开机奖励明细列表,并取值": {
  7111. "prefix": "ym-db-OpenRewardDetail-FindWithData",
  7112. "body": [
  7113. "List<OpenRewardDetail> $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7114. "foreach (OpenRewardDetail $3 in $1)",
  7115. "{",
  7116. " string TradeMonth = $3.TradeMonth; //交易月",
  7117. " DateTime TradeDate = $3.TradeDate; //达标日期",
  7118. " int UserId = $3.UserId; //创客",
  7119. " int BrandId = $3.BrandId; //品牌",
  7120. " string ProductName = $3.ProductName; //产品名称",
  7121. " int MerchantId = $3.MerchantId; //商户",
  7122. " int DirectUserId = $3.DirectUserId; //商户直属人",
  7123. " string SnNo = $3.SnNo; //SN号",
  7124. " string MerNo = $3.MerNo; //渠道商户号",
  7125. " int SnType = $3.SnType; //机具类型",
  7126. " int SnApplyUserId = $3.SnApplyUserId; //机具申请人",
  7127. " DateTime StandardDate = $3.StandardDate; //商户的激活日期",
  7128. " int SnStoreId = $3.SnStoreId; //SN仓库",
  7129. " int MerBuddyType = $3.MerBuddyType; //商户创客类型",
  7130. " int RewardType = $3.RewardType; //奖励类型",
  7131. " string RewardTips = $3.RewardTips; //奖励描述",
  7132. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  7133. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  7134. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  7135. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
  7136. " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
  7137. " string RewardDesc = $3.RewardDesc; //奖励描述",
  7138. " string Remark = $3.Remark; //备注",
  7139. " string OpenDetailRec = $3.OpenDetailRec; //明细单号",
  7140. " int CheckStatus = $3.CheckStatus; //同步状态",
  7141. " int TopUserId = $3.TopUserId; //顶级创客",
  7142. "}"
  7143. ]
  7144. },
  7145. "查询开机奖励明细": {
  7146. "prefix": "ym-db-OpenRewardDetail-Exist",
  7147. "body": [
  7148. "bool $1 = db.OpenRewardDetail.Any(m => m.Id == $2);",
  7149. ]
  7150. },
  7151. "查询某个开机奖励明细,并取值": {
  7152. "prefix": "ym-db-OpenRewardDetail-FindByPrimaryKey",
  7153. "body": [
  7154. "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
  7155. "if ($1 != null)",
  7156. "{",
  7157. " string TradeMonth = $1.TradeMonth; //交易月",
  7158. " DateTime TradeDate = $1.TradeDate; //达标日期",
  7159. " int UserId = $1.UserId; //创客",
  7160. " int BrandId = $1.BrandId; //品牌",
  7161. " string ProductName = $1.ProductName; //产品名称",
  7162. " int MerchantId = $1.MerchantId; //商户",
  7163. " int DirectUserId = $1.DirectUserId; //商户直属人",
  7164. " string SnNo = $1.SnNo; //SN号",
  7165. " string MerNo = $1.MerNo; //渠道商户号",
  7166. " int SnType = $1.SnType; //机具类型",
  7167. " int SnApplyUserId = $1.SnApplyUserId; //机具申请人",
  7168. " DateTime StandardDate = $1.StandardDate; //商户的激活日期",
  7169. " int SnStoreId = $1.SnStoreId; //SN仓库",
  7170. " int MerBuddyType = $1.MerBuddyType; //商户创客类型",
  7171. " int RewardType = $1.RewardType; //奖励类型",
  7172. " string RewardTips = $1.RewardTips; //奖励描述",
  7173. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  7174. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  7175. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  7176. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
  7177. " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
  7178. " string RewardDesc = $1.RewardDesc; //奖励描述",
  7179. " string Remark = $1.Remark; //备注",
  7180. " string OpenDetailRec = $1.OpenDetailRec; //明细单号",
  7181. " int CheckStatus = $1.CheckStatus; //同步状态",
  7182. " int TopUserId = $1.TopUserId; //顶级创客",
  7183. "}"
  7184. ]
  7185. },
  7186. "查询某个开机奖励明细,并赋值": {
  7187. "prefix": "ym-db-OpenRewardDetail-Update",
  7188. "body": [
  7189. "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
  7190. "if ($1 != null)",
  7191. "{",
  7192. " $1.TradeMonth = $2; //交易月",
  7193. " $1.TradeDate = $3; //达标日期",
  7194. " $1.UserId = $4; //创客",
  7195. " $1.BrandId = $5; //品牌",
  7196. " $1.ProductName = $6; //产品名称",
  7197. " $1.MerchantId = $7; //商户",
  7198. " $1.DirectUserId = $8; //商户直属人",
  7199. " $1.SnNo = $9; //SN号",
  7200. " $1.MerNo = $10; //渠道商户号",
  7201. " $1.SnType = $11; //机具类型",
  7202. " $1.SnApplyUserId = $12; //机具申请人",
  7203. " $1.StandardDate = $13; //商户的激活日期",
  7204. " $1.SnStoreId = $14; //SN仓库",
  7205. " $1.MerBuddyType = $15; //商户创客类型",
  7206. " $1.RewardType = $16; //奖励类型",
  7207. " $1.RewardTips = $17; //奖励描述",
  7208. " $1.CreditTradeAmt = $18; //贷记卡交易总金额",
  7209. " $1.DebitTradeAmt = $19; //借记卡交易总金额",
  7210. " $1.CreditRewardAmount = $20; //贷记卡交易奖励金额",
  7211. " $1.DebitRewardAmount = $21; //借记记卡交易奖励金额",
  7212. " $1.OpenRewardNo = $22; //开机奖励单号",
  7213. " $1.RewardDesc = $23; //奖励描述",
  7214. " $1.Remark = $24; //备注",
  7215. " $1.OpenDetailRec = $25; //明细单号",
  7216. " $1.CheckStatus = $26; //同步状态",
  7217. " $1.TopUserId = $27; //顶级创客",
  7218. "}"
  7219. ]
  7220. },
  7221. "获取开机奖励明细数量": {
  7222. "prefix": "ym-db-OpenRewardDetail-FindAndCount",
  7223. "body": [
  7224. "int $1 = db.OpenRewardDetail.Count(m => $2);",
  7225. ]
  7226. },
  7227. "添加开机奖励明细": {
  7228. "prefix": "ym-db-OpenRewardDetail-Create",
  7229. "body": [
  7230. "db.OpenRewardDetail.Add(new OpenRewardDetail()",
  7231. "{",
  7232. " CreateDate = DateTime.Now,",
  7233. " UpdateDate = DateTime.Now,",
  7234. " TradeMonth = $1, //交易月",
  7235. " TradeDate = $2, //达标日期",
  7236. " UserId = $3, //创客",
  7237. " BrandId = $4, //品牌",
  7238. " ProductName = $5, //产品名称",
  7239. " MerchantId = $6, //商户",
  7240. " DirectUserId = $7, //商户直属人",
  7241. " SnNo = $8, //SN号",
  7242. " MerNo = $9, //渠道商户号",
  7243. " SnType = $10, //机具类型",
  7244. " SnApplyUserId = $11, //机具申请人",
  7245. " StandardDate = $12, //商户的激活日期",
  7246. " SnStoreId = $13, //SN仓库",
  7247. " MerBuddyType = $14, //商户创客类型",
  7248. " RewardType = $15, //奖励类型",
  7249. " RewardTips = $16, //奖励描述",
  7250. " CreditTradeAmt = $17, //贷记卡交易总金额",
  7251. " DebitTradeAmt = $18, //借记卡交易总金额",
  7252. " CreditRewardAmount = $19, //贷记卡交易奖励金额",
  7253. " DebitRewardAmount = $20, //借记记卡交易奖励金额",
  7254. " OpenRewardNo = $21, //开机奖励单号",
  7255. " RewardDesc = $22, //奖励描述",
  7256. " Remark = $23, //备注",
  7257. " OpenDetailRec = $24, //明细单号",
  7258. " CheckStatus = $25, //同步状态",
  7259. " TopUserId = $26, //顶级创客",
  7260. "});"
  7261. ]
  7262. },"删除某个开机奖励明细": {
  7263. "prefix": "ym-db-OpenRewardDetail-Delete",
  7264. "body": [
  7265. "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
  7266. "if ($1 != null)",
  7267. "{",
  7268. " db.OpenRewardDetail.Remove($1);",
  7269. "}"
  7270. ]
  7271. },
  7272. "查询开机机具快照列表": {
  7273. "prefix": "ym-db-OpenSnSnapshot-Find",
  7274. "body": [
  7275. "List<OpenSnSnapshot> $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7276. "foreach (OpenSnSnapshot $3 in $1)",
  7277. "{",
  7278. "}"
  7279. ]
  7280. },
  7281. "查询开机机具快照列表,并取值": {
  7282. "prefix": "ym-db-OpenSnSnapshot-FindWithData",
  7283. "body": [
  7284. "List<OpenSnSnapshot> $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7285. "foreach (OpenSnSnapshot $3 in $1)",
  7286. "{",
  7287. " string TradeMonth = $3.TradeMonth; //交易月",
  7288. " DateTime TradeDate = $3.TradeDate; //达标日期",
  7289. " int UserId = $3.UserId; //创客",
  7290. " int BrandId = $3.BrandId; //品牌",
  7291. " int MerchantId = $3.MerchantId; //商户",
  7292. " int DirectUserId = $3.DirectUserId; //商户直属人",
  7293. " string SnNo = $3.SnNo; //SN号",
  7294. " string MerNo = $3.MerNo; //渠道商户号",
  7295. " int SnType = $3.SnType; //机具类型",
  7296. " int SnApplyUserId = $3.SnApplyUserId; //机具申请人",
  7297. " DateTime StandardDate = $3.StandardDate; //商户的激活日期",
  7298. " int SnStoreId = $3.SnStoreId; //SN仓库",
  7299. " int MerUserType = $3.MerUserType; //商户创客类型",
  7300. " int RewardType = $3.RewardType; //奖励类型",
  7301. " string RewardTips = $3.RewardTips; //奖励描述",
  7302. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  7303. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  7304. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  7305. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
  7306. " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
  7307. " string RewardDesc = $3.RewardDesc; //奖励描述",
  7308. " string Remark = $3.Remark; //备注",
  7309. " string OpenDetailRec = $3.OpenDetailRec; //明细单号",
  7310. " int BuySnNum = $3.BuySnNum; //购买机数量",
  7311. " int StdBuySnNum = $3.StdBuySnNum; //标准购买机数量",
  7312. " decimal RewardAmount = $3.RewardAmount; //奖励金额",
  7313. " string FailReason = $3.FailReason; //失败原因",
  7314. " string UserNav = $3.UserNav; //创客路径",
  7315. " int TopUserId = $3.TopUserId; //顶级创客",
  7316. "}"
  7317. ]
  7318. },
  7319. "查询开机机具快照": {
  7320. "prefix": "ym-db-OpenSnSnapshot-Exist",
  7321. "body": [
  7322. "bool $1 = db.OpenSnSnapshot.Any(m => m.Id == $2);",
  7323. ]
  7324. },
  7325. "查询某个开机机具快照,并取值": {
  7326. "prefix": "ym-db-OpenSnSnapshot-FindByPrimaryKey",
  7327. "body": [
  7328. "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
  7329. "if ($1 != null)",
  7330. "{",
  7331. " string TradeMonth = $1.TradeMonth; //交易月",
  7332. " DateTime TradeDate = $1.TradeDate; //达标日期",
  7333. " int UserId = $1.UserId; //创客",
  7334. " int BrandId = $1.BrandId; //品牌",
  7335. " int MerchantId = $1.MerchantId; //商户",
  7336. " int DirectUserId = $1.DirectUserId; //商户直属人",
  7337. " string SnNo = $1.SnNo; //SN号",
  7338. " string MerNo = $1.MerNo; //渠道商户号",
  7339. " int SnType = $1.SnType; //机具类型",
  7340. " int SnApplyUserId = $1.SnApplyUserId; //机具申请人",
  7341. " DateTime StandardDate = $1.StandardDate; //商户的激活日期",
  7342. " int SnStoreId = $1.SnStoreId; //SN仓库",
  7343. " int MerUserType = $1.MerUserType; //商户创客类型",
  7344. " int RewardType = $1.RewardType; //奖励类型",
  7345. " string RewardTips = $1.RewardTips; //奖励描述",
  7346. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  7347. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  7348. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  7349. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
  7350. " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
  7351. " string RewardDesc = $1.RewardDesc; //奖励描述",
  7352. " string Remark = $1.Remark; //备注",
  7353. " string OpenDetailRec = $1.OpenDetailRec; //明细单号",
  7354. " int BuySnNum = $1.BuySnNum; //购买机数量",
  7355. " int StdBuySnNum = $1.StdBuySnNum; //标准购买机数量",
  7356. " decimal RewardAmount = $1.RewardAmount; //奖励金额",
  7357. " string FailReason = $1.FailReason; //失败原因",
  7358. " string UserNav = $1.UserNav; //创客路径",
  7359. " int TopUserId = $1.TopUserId; //顶级创客",
  7360. "}"
  7361. ]
  7362. },
  7363. "查询某个开机机具快照,并赋值": {
  7364. "prefix": "ym-db-OpenSnSnapshot-Update",
  7365. "body": [
  7366. "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
  7367. "if ($1 != null)",
  7368. "{",
  7369. " $1.TradeMonth = $2; //交易月",
  7370. " $1.TradeDate = $3; //达标日期",
  7371. " $1.UserId = $4; //创客",
  7372. " $1.BrandId = $5; //品牌",
  7373. " $1.MerchantId = $6; //商户",
  7374. " $1.DirectUserId = $7; //商户直属人",
  7375. " $1.SnNo = $8; //SN号",
  7376. " $1.MerNo = $9; //渠道商户号",
  7377. " $1.SnType = $10; //机具类型",
  7378. " $1.SnApplyUserId = $11; //机具申请人",
  7379. " $1.StandardDate = $12; //商户的激活日期",
  7380. " $1.SnStoreId = $13; //SN仓库",
  7381. " $1.MerUserType = $14; //商户创客类型",
  7382. " $1.RewardType = $15; //奖励类型",
  7383. " $1.RewardTips = $16; //奖励描述",
  7384. " $1.CreditTradeAmt = $17; //贷记卡交易总金额",
  7385. " $1.DebitTradeAmt = $18; //借记卡交易总金额",
  7386. " $1.CreditRewardAmount = $19; //贷记卡交易奖励金额",
  7387. " $1.DebitRewardAmount = $20; //借记记卡交易奖励金额",
  7388. " $1.OpenRewardNo = $21; //开机奖励单号",
  7389. " $1.RewardDesc = $22; //奖励描述",
  7390. " $1.Remark = $23; //备注",
  7391. " $1.OpenDetailRec = $24; //明细单号",
  7392. " $1.BuySnNum = $25; //购买机数量",
  7393. " $1.StdBuySnNum = $26; //标准购买机数量",
  7394. " $1.RewardAmount = $27; //奖励金额",
  7395. " $1.FailReason = $28; //失败原因",
  7396. " $1.UserNav = $29; //创客路径",
  7397. " $1.TopUserId = $30; //顶级创客",
  7398. "}"
  7399. ]
  7400. },
  7401. "获取开机机具快照数量": {
  7402. "prefix": "ym-db-OpenSnSnapshot-FindAndCount",
  7403. "body": [
  7404. "int $1 = db.OpenSnSnapshot.Count(m => $2);",
  7405. ]
  7406. },
  7407. "添加开机机具快照": {
  7408. "prefix": "ym-db-OpenSnSnapshot-Create",
  7409. "body": [
  7410. "db.OpenSnSnapshot.Add(new OpenSnSnapshot()",
  7411. "{",
  7412. " CreateDate = DateTime.Now,",
  7413. " UpdateDate = DateTime.Now,",
  7414. " TradeMonth = $1, //交易月",
  7415. " TradeDate = $2, //达标日期",
  7416. " UserId = $3, //创客",
  7417. " BrandId = $4, //品牌",
  7418. " MerchantId = $5, //商户",
  7419. " DirectUserId = $6, //商户直属人",
  7420. " SnNo = $7, //SN号",
  7421. " MerNo = $8, //渠道商户号",
  7422. " SnType = $9, //机具类型",
  7423. " SnApplyUserId = $10, //机具申请人",
  7424. " StandardDate = $11, //商户的激活日期",
  7425. " SnStoreId = $12, //SN仓库",
  7426. " MerUserType = $13, //商户创客类型",
  7427. " RewardType = $14, //奖励类型",
  7428. " RewardTips = $15, //奖励描述",
  7429. " CreditTradeAmt = $16, //贷记卡交易总金额",
  7430. " DebitTradeAmt = $17, //借记卡交易总金额",
  7431. " CreditRewardAmount = $18, //贷记卡交易奖励金额",
  7432. " DebitRewardAmount = $19, //借记记卡交易奖励金额",
  7433. " OpenRewardNo = $20, //开机奖励单号",
  7434. " RewardDesc = $21, //奖励描述",
  7435. " Remark = $22, //备注",
  7436. " OpenDetailRec = $23, //明细单号",
  7437. " BuySnNum = $24, //购买机数量",
  7438. " StdBuySnNum = $25, //标准购买机数量",
  7439. " RewardAmount = $26, //奖励金额",
  7440. " FailReason = $27, //失败原因",
  7441. " UserNav = $28, //创客路径",
  7442. " TopUserId = $29, //顶级创客",
  7443. "});"
  7444. ]
  7445. },"删除某个开机机具快照": {
  7446. "prefix": "ym-db-OpenSnSnapshot-Delete",
  7447. "body": [
  7448. "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
  7449. "if ($1 != null)",
  7450. "{",
  7451. " db.OpenSnSnapshot.Remove($1);",
  7452. "}"
  7453. ]
  7454. },
  7455. "查询操作日志列表": {
  7456. "prefix": "ym-db-OperateLog-Find",
  7457. "body": [
  7458. "List<OperateLog> $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7459. "foreach (OperateLog $3 in $1)",
  7460. "{",
  7461. "}"
  7462. ]
  7463. },
  7464. "查询操作日志列表,并取值": {
  7465. "prefix": "ym-db-OperateLog-FindWithData",
  7466. "body": [
  7467. "List<OperateLog> $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7468. "foreach (OperateLog $3 in $1)",
  7469. "{",
  7470. " string TableEnName = $3.TableEnName; //表",
  7471. " string OperateMan = $3.OperateMan; //操作员",
  7472. " string BeforeOperate = $3.BeforeOperate; //操作前的数据",
  7473. " string AfterOperate = $3.AfterOperate; //操作后的数据",
  7474. " string OpMode = $3.OpMode; //操作方式",
  7475. "}"
  7476. ]
  7477. },
  7478. "查询操作日志": {
  7479. "prefix": "ym-db-OperateLog-Exist",
  7480. "body": [
  7481. "bool $1 = db.OperateLog.Any(m => m.Id == $2);",
  7482. ]
  7483. },
  7484. "查询某个操作日志,并取值": {
  7485. "prefix": "ym-db-OperateLog-FindByPrimaryKey",
  7486. "body": [
  7487. "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
  7488. "if ($1 != null)",
  7489. "{",
  7490. " string TableEnName = $1.TableEnName; //表",
  7491. " string OperateMan = $1.OperateMan; //操作员",
  7492. " string BeforeOperate = $1.BeforeOperate; //操作前的数据",
  7493. " string AfterOperate = $1.AfterOperate; //操作后的数据",
  7494. " string OpMode = $1.OpMode; //操作方式",
  7495. "}"
  7496. ]
  7497. },
  7498. "查询某个操作日志,并赋值": {
  7499. "prefix": "ym-db-OperateLog-Update",
  7500. "body": [
  7501. "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
  7502. "if ($1 != null)",
  7503. "{",
  7504. " $1.TableEnName = $2; //表",
  7505. " $1.OperateMan = $3; //操作员",
  7506. " $1.BeforeOperate = $4; //操作前的数据",
  7507. " $1.AfterOperate = $5; //操作后的数据",
  7508. " $1.OpMode = $6; //操作方式",
  7509. "}"
  7510. ]
  7511. },
  7512. "获取操作日志数量": {
  7513. "prefix": "ym-db-OperateLog-FindAndCount",
  7514. "body": [
  7515. "int $1 = db.OperateLog.Count(m => $2);",
  7516. ]
  7517. },
  7518. "添加操作日志": {
  7519. "prefix": "ym-db-OperateLog-Create",
  7520. "body": [
  7521. "db.OperateLog.Add(new OperateLog()",
  7522. "{",
  7523. " CreateDate = DateTime.Now,",
  7524. " UpdateDate = DateTime.Now,",
  7525. " TableEnName = $1, //表",
  7526. " OperateMan = $2, //操作员",
  7527. " BeforeOperate = $3, //操作前的数据",
  7528. " AfterOperate = $4, //操作后的数据",
  7529. " OpMode = $5, //操作方式",
  7530. "});"
  7531. ]
  7532. },"删除某个操作日志": {
  7533. "prefix": "ym-db-OperateLog-Delete",
  7534. "body": [
  7535. "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
  7536. "if ($1 != null)",
  7537. "{",
  7538. " db.OperateLog.Remove($1);",
  7539. "}"
  7540. ]
  7541. },
  7542. "查询操作权限列表": {
  7543. "prefix": "ym-db-OperateRightList-Find",
  7544. "body": [
  7545. "List<OperateRightList> $1 = db.OperateRightList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7546. "foreach (OperateRightList $3 in $1)",
  7547. "{",
  7548. "}"
  7549. ]
  7550. },
  7551. "查询操作权限列表,并取值": {
  7552. "prefix": "ym-db-OperateRightList-FindWithData",
  7553. "body": [
  7554. "List<OperateRightList> $1 = db.OperateRightList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7555. "foreach (OperateRightList $3 in $1)",
  7556. "{",
  7557. " string Name = $3.Name; //名称",
  7558. " string EnName = $3.EnName; //英文名",
  7559. "}"
  7560. ]
  7561. },
  7562. "查询操作权限": {
  7563. "prefix": "ym-db-OperateRightList-Exist",
  7564. "body": [
  7565. "bool $1 = db.OperateRightList.Any(m => m.Id == $2);",
  7566. ]
  7567. },
  7568. "查询某个操作权限,并取值": {
  7569. "prefix": "ym-db-OperateRightList-FindByPrimaryKey",
  7570. "body": [
  7571. "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);",
  7572. "if ($1 != null)",
  7573. "{",
  7574. " string Name = $1.Name; //名称",
  7575. " string EnName = $1.EnName; //英文名",
  7576. "}"
  7577. ]
  7578. },
  7579. "查询某个操作权限,并赋值": {
  7580. "prefix": "ym-db-OperateRightList-Update",
  7581. "body": [
  7582. "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);",
  7583. "if ($1 != null)",
  7584. "{",
  7585. " $1.Name = $2; //名称",
  7586. " $1.EnName = $3; //英文名",
  7587. "}"
  7588. ]
  7589. },
  7590. "获取操作权限数量": {
  7591. "prefix": "ym-db-OperateRightList-FindAndCount",
  7592. "body": [
  7593. "int $1 = db.OperateRightList.Count(m => $2);",
  7594. ]
  7595. },
  7596. "添加操作权限": {
  7597. "prefix": "ym-db-OperateRightList-Create",
  7598. "body": [
  7599. "db.OperateRightList.Add(new OperateRightList()",
  7600. "{",
  7601. " CreateDate = DateTime.Now,",
  7602. " UpdateDate = DateTime.Now,",
  7603. " Name = $1, //名称",
  7604. " EnName = $2, //英文名",
  7605. "});"
  7606. ]
  7607. },"删除某个操作权限": {
  7608. "prefix": "ym-db-OperateRightList-Delete",
  7609. "body": [
  7610. "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);",
  7611. "if ($1 != null)",
  7612. "{",
  7613. " db.OperateRightList.Remove($1);",
  7614. "}"
  7615. ]
  7616. },
  7617. "查询订单号关联表列表": {
  7618. "prefix": "ym-db-OrderForNo-Find",
  7619. "body": [
  7620. "List<OrderForNo> $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7621. "foreach (OrderForNo $3 in $1)",
  7622. "{",
  7623. "}"
  7624. ]
  7625. },
  7626. "查询订单号关联表列表,并取值": {
  7627. "prefix": "ym-db-OrderForNo-FindWithData",
  7628. "body": [
  7629. "List<OrderForNo> $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7630. "foreach (OrderForNo $3 in $1)",
  7631. "{",
  7632. " string OrderNo = $3.OrderNo; //订单号",
  7633. " string OrderIds = $3.OrderIds; //订单Id",
  7634. " int RspCode = $3.RspCode; //返回码",
  7635. " string RspMsg = $3.RspMsg; //返回信息",
  7636. "}"
  7637. ]
  7638. },
  7639. "查询订单号关联表": {
  7640. "prefix": "ym-db-OrderForNo-Exist",
  7641. "body": [
  7642. "bool $1 = db.OrderForNo.Any(m => m.OrderNo == $2);",
  7643. ]
  7644. },
  7645. "查询某个订单号关联表,并取值": {
  7646. "prefix": "ym-db-OrderForNo-FindByPrimaryKey",
  7647. "body": [
  7648. "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
  7649. "if ($1 != null)",
  7650. "{",
  7651. " string OrderNo = $1.OrderNo; //订单号",
  7652. " string OrderIds = $1.OrderIds; //订单Id",
  7653. " int RspCode = $1.RspCode; //返回码",
  7654. " string RspMsg = $1.RspMsg; //返回信息",
  7655. "}"
  7656. ]
  7657. },
  7658. "查询某个订单号关联表,并赋值": {
  7659. "prefix": "ym-db-OrderForNo-Update",
  7660. "body": [
  7661. "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
  7662. "if ($1 != null)",
  7663. "{",
  7664. " $1.OrderNo = $2; //订单号",
  7665. " $1.OrderIds = $3; //订单Id",
  7666. " $1.RspCode = $4; //返回码",
  7667. " $1.RspMsg = $5; //返回信息",
  7668. "}"
  7669. ]
  7670. },
  7671. "获取订单号关联表数量": {
  7672. "prefix": "ym-db-OrderForNo-FindAndCount",
  7673. "body": [
  7674. "int $1 = db.OrderForNo.Count(m => $2);",
  7675. ]
  7676. },
  7677. "添加订单号关联表": {
  7678. "prefix": "ym-db-OrderForNo-Create",
  7679. "body": [
  7680. "db.OrderForNo.Add(new OrderForNo()",
  7681. "{",
  7682. " CreateDate = DateTime.Now,",
  7683. " UpdateDate = DateTime.Now,",
  7684. " OrderNo = $1, //订单号",
  7685. " OrderIds = $2, //订单Id",
  7686. " RspCode = $3, //返回码",
  7687. " RspMsg = $4, //返回信息",
  7688. "});"
  7689. ]
  7690. },"删除某个订单号关联表": {
  7691. "prefix": "ym-db-OrderForNo-Delete",
  7692. "body": [
  7693. "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
  7694. "if ($1 != null)",
  7695. "{",
  7696. " db.OrderForNo.Remove($1);",
  7697. "}"
  7698. ]
  7699. },
  7700. "查询订单商品列表": {
  7701. "prefix": "ym-db-OrderProduct-Find",
  7702. "body": [
  7703. "List<OrderProduct> $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7704. "foreach (OrderProduct $3 in $1)",
  7705. "{",
  7706. "}"
  7707. ]
  7708. },
  7709. "查询订单商品列表,并取值": {
  7710. "prefix": "ym-db-OrderProduct-FindWithData",
  7711. "body": [
  7712. "List<OrderProduct> $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7713. "foreach (OrderProduct $3 in $1)",
  7714. "{",
  7715. " int OrderId = $3.OrderId; //订单Id",
  7716. " int UserId = $3.UserId; //创客Id",
  7717. " int ProductId = $3.ProductId; //商品Id",
  7718. " string ProductName = $3.ProductName; //商品名称",
  7719. " decimal ProductPrice = $3.ProductPrice; //商品单价",
  7720. " int ProductCount = $3.ProductCount; //商品数量",
  7721. " decimal TotalPrice = $3.TotalPrice; //小计",
  7722. " int MerchantId = $3.MerchantId; //商家Id",
  7723. " decimal TotalIntegral = $3.TotalIntegral; //积分",
  7724. " string ProductPhoto = $3.ProductPhoto; //商品缩略图",
  7725. " string NormId = $3.NormId; //规格Id",
  7726. " string NormDetail = $3.NormDetail; //规则描述",
  7727. " decimal ProductIntegral = $3.ProductIntegral; //商品抵扣积分",
  7728. " string ProductCode = $3.ProductCode; //商品编号",
  7729. " int StoreId = $3.StoreId; //发货仓库",
  7730. " string SnNos = $3.SnNos; //SN编号",
  7731. "}"
  7732. ]
  7733. },
  7734. "查询订单商品": {
  7735. "prefix": "ym-db-OrderProduct-Exist",
  7736. "body": [
  7737. "bool $1 = db.OrderProduct.Any(m => m.Id == $2);",
  7738. ]
  7739. },
  7740. "查询某个订单商品,并取值": {
  7741. "prefix": "ym-db-OrderProduct-FindByPrimaryKey",
  7742. "body": [
  7743. "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
  7744. "if ($1 != null)",
  7745. "{",
  7746. " int OrderId = $1.OrderId; //订单Id",
  7747. " int UserId = $1.UserId; //创客Id",
  7748. " int ProductId = $1.ProductId; //商品Id",
  7749. " string ProductName = $1.ProductName; //商品名称",
  7750. " decimal ProductPrice = $1.ProductPrice; //商品单价",
  7751. " int ProductCount = $1.ProductCount; //商品数量",
  7752. " decimal TotalPrice = $1.TotalPrice; //小计",
  7753. " int MerchantId = $1.MerchantId; //商家Id",
  7754. " decimal TotalIntegral = $1.TotalIntegral; //积分",
  7755. " string ProductPhoto = $1.ProductPhoto; //商品缩略图",
  7756. " string NormId = $1.NormId; //规格Id",
  7757. " string NormDetail = $1.NormDetail; //规则描述",
  7758. " decimal ProductIntegral = $1.ProductIntegral; //商品抵扣积分",
  7759. " string ProductCode = $1.ProductCode; //商品编号",
  7760. " int StoreId = $1.StoreId; //发货仓库",
  7761. " string SnNos = $1.SnNos; //SN编号",
  7762. "}"
  7763. ]
  7764. },
  7765. "查询某个订单商品,并赋值": {
  7766. "prefix": "ym-db-OrderProduct-Update",
  7767. "body": [
  7768. "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
  7769. "if ($1 != null)",
  7770. "{",
  7771. " $1.OrderId = $2; //订单Id",
  7772. " $1.UserId = $3; //创客Id",
  7773. " $1.ProductId = $4; //商品Id",
  7774. " $1.ProductName = $5; //商品名称",
  7775. " $1.ProductPrice = $6; //商品单价",
  7776. " $1.ProductCount = $7; //商品数量",
  7777. " $1.TotalPrice = $8; //小计",
  7778. " $1.MerchantId = $9; //商家Id",
  7779. " $1.TotalIntegral = $10; //积分",
  7780. " $1.ProductPhoto = $11; //商品缩略图",
  7781. " $1.NormId = $12; //规格Id",
  7782. " $1.NormDetail = $13; //规则描述",
  7783. " $1.ProductIntegral = $14; //商品抵扣积分",
  7784. " $1.ProductCode = $15; //商品编号",
  7785. " $1.StoreId = $16; //发货仓库",
  7786. " $1.SnNos = $17; //SN编号",
  7787. "}"
  7788. ]
  7789. },
  7790. "获取订单商品数量": {
  7791. "prefix": "ym-db-OrderProduct-FindAndCount",
  7792. "body": [
  7793. "int $1 = db.OrderProduct.Count(m => $2);",
  7794. ]
  7795. },
  7796. "添加订单商品": {
  7797. "prefix": "ym-db-OrderProduct-Create",
  7798. "body": [
  7799. "db.OrderProduct.Add(new OrderProduct()",
  7800. "{",
  7801. " CreateDate = DateTime.Now,",
  7802. " UpdateDate = DateTime.Now,",
  7803. " OrderId = $1, //订单Id",
  7804. " UserId = $2, //创客Id",
  7805. " ProductId = $3, //商品Id",
  7806. " ProductName = $4, //商品名称",
  7807. " ProductPrice = $5, //商品单价",
  7808. " ProductCount = $6, //商品数量",
  7809. " TotalPrice = $7, //小计",
  7810. " MerchantId = $8, //商家Id",
  7811. " TotalIntegral = $9, //积分",
  7812. " ProductPhoto = $10, //商品缩略图",
  7813. " NormId = $11, //规格Id",
  7814. " NormDetail = $12, //规则描述",
  7815. " ProductIntegral = $13, //商品抵扣积分",
  7816. " ProductCode = $14, //商品编号",
  7817. " StoreId = $15, //发货仓库",
  7818. " SnNos = $16, //SN编号",
  7819. "});"
  7820. ]
  7821. },"删除某个订单商品": {
  7822. "prefix": "ym-db-OrderProduct-Delete",
  7823. "body": [
  7824. "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
  7825. "if ($1 != null)",
  7826. "{",
  7827. " db.OrderProduct.Remove($1);",
  7828. "}"
  7829. ]
  7830. },
  7831. "查询退款申请列表": {
  7832. "prefix": "ym-db-OrderRefund-Find",
  7833. "body": [
  7834. "List<OrderRefund> $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7835. "foreach (OrderRefund $3 in $1)",
  7836. "{",
  7837. "}"
  7838. ]
  7839. },
  7840. "查询退款申请列表,并取值": {
  7841. "prefix": "ym-db-OrderRefund-FindWithData",
  7842. "body": [
  7843. "List<OrderRefund> $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7844. "foreach (OrderRefund $3 in $1)",
  7845. "{",
  7846. " int UserId = $3.UserId; //创客Id",
  7847. " int OrderId = $3.OrderId; //订单Id",
  7848. " string ProductId = $3.ProductId; //商品Id",
  7849. " int Reason = $3.Reason; //退款原因",
  7850. " decimal Amount = $3.Amount; //退款金额",
  7851. " string Contents = $3.Contents; //补充说明",
  7852. " string Mobile = $3.Mobile; //申请人手机号",
  7853. " int MerchantId = $3.MerchantId; //商家Id",
  7854. " int GoodStatus = $3.GoodStatus; //货物状态",
  7855. " string Photos = $3.Photos; //凭证",
  7856. " int ErpCompany = $3.ErpCompany; //快递公司",
  7857. " string ErpCode = $3.ErpCode; //快递运单号",
  7858. "}"
  7859. ]
  7860. },
  7861. "查询退款申请": {
  7862. "prefix": "ym-db-OrderRefund-Exist",
  7863. "body": [
  7864. "bool $1 = db.OrderRefund.Any(m => m.Id == $2);",
  7865. ]
  7866. },
  7867. "查询某个退款申请,并取值": {
  7868. "prefix": "ym-db-OrderRefund-FindByPrimaryKey",
  7869. "body": [
  7870. "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
  7871. "if ($1 != null)",
  7872. "{",
  7873. " int UserId = $1.UserId; //创客Id",
  7874. " int OrderId = $1.OrderId; //订单Id",
  7875. " string ProductId = $1.ProductId; //商品Id",
  7876. " int Reason = $1.Reason; //退款原因",
  7877. " decimal Amount = $1.Amount; //退款金额",
  7878. " string Contents = $1.Contents; //补充说明",
  7879. " string Mobile = $1.Mobile; //申请人手机号",
  7880. " int MerchantId = $1.MerchantId; //商家Id",
  7881. " int GoodStatus = $1.GoodStatus; //货物状态",
  7882. " string Photos = $1.Photos; //凭证",
  7883. " int ErpCompany = $1.ErpCompany; //快递公司",
  7884. " string ErpCode = $1.ErpCode; //快递运单号",
  7885. "}"
  7886. ]
  7887. },
  7888. "查询某个退款申请,并赋值": {
  7889. "prefix": "ym-db-OrderRefund-Update",
  7890. "body": [
  7891. "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
  7892. "if ($1 != null)",
  7893. "{",
  7894. " $1.UserId = $2; //创客Id",
  7895. " $1.OrderId = $3; //订单Id",
  7896. " $1.ProductId = $4; //商品Id",
  7897. " $1.Reason = $5; //退款原因",
  7898. " $1.Amount = $6; //退款金额",
  7899. " $1.Contents = $7; //补充说明",
  7900. " $1.Mobile = $8; //申请人手机号",
  7901. " $1.MerchantId = $9; //商家Id",
  7902. " $1.GoodStatus = $10; //货物状态",
  7903. " $1.Photos = $11; //凭证",
  7904. " $1.ErpCompany = $12; //快递公司",
  7905. " $1.ErpCode = $13; //快递运单号",
  7906. "}"
  7907. ]
  7908. },
  7909. "获取退款申请数量": {
  7910. "prefix": "ym-db-OrderRefund-FindAndCount",
  7911. "body": [
  7912. "int $1 = db.OrderRefund.Count(m => $2);",
  7913. ]
  7914. },
  7915. "添加退款申请": {
  7916. "prefix": "ym-db-OrderRefund-Create",
  7917. "body": [
  7918. "db.OrderRefund.Add(new OrderRefund()",
  7919. "{",
  7920. " CreateDate = DateTime.Now,",
  7921. " UpdateDate = DateTime.Now,",
  7922. " UserId = $1, //创客Id",
  7923. " OrderId = $2, //订单Id",
  7924. " ProductId = $3, //商品Id",
  7925. " Reason = $4, //退款原因",
  7926. " Amount = $5, //退款金额",
  7927. " Contents = $6, //补充说明",
  7928. " Mobile = $7, //申请人手机号",
  7929. " MerchantId = $8, //商家Id",
  7930. " GoodStatus = $9, //货物状态",
  7931. " Photos = $10, //凭证",
  7932. " ErpCompany = $11, //快递公司",
  7933. " ErpCode = $12, //快递运单号",
  7934. "});"
  7935. ]
  7936. },"删除某个退款申请": {
  7937. "prefix": "ym-db-OrderRefund-Delete",
  7938. "body": [
  7939. "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
  7940. "if ($1 != null)",
  7941. "{",
  7942. " db.OrderRefund.Remove($1);",
  7943. "}"
  7944. ]
  7945. },
  7946. "查询退款原因列表": {
  7947. "prefix": "ym-db-OrderRefundReason-Find",
  7948. "body": [
  7949. "List<OrderRefundReason> $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7950. "foreach (OrderRefundReason $3 in $1)",
  7951. "{",
  7952. "}"
  7953. ]
  7954. },
  7955. "查询退款原因列表,并取值": {
  7956. "prefix": "ym-db-OrderRefundReason-FindWithData",
  7957. "body": [
  7958. "List<OrderRefundReason> $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  7959. "foreach (OrderRefundReason $3 in $1)",
  7960. "{",
  7961. " string Name = $3.Name; //名称",
  7962. "}"
  7963. ]
  7964. },
  7965. "查询退款原因": {
  7966. "prefix": "ym-db-OrderRefundReason-Exist",
  7967. "body": [
  7968. "bool $1 = db.OrderRefundReason.Any(m => m.Id == $2);",
  7969. ]
  7970. },
  7971. "查询某个退款原因,并取值": {
  7972. "prefix": "ym-db-OrderRefundReason-FindByPrimaryKey",
  7973. "body": [
  7974. "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
  7975. "if ($1 != null)",
  7976. "{",
  7977. " string Name = $1.Name; //名称",
  7978. "}"
  7979. ]
  7980. },
  7981. "查询某个退款原因,并赋值": {
  7982. "prefix": "ym-db-OrderRefundReason-Update",
  7983. "body": [
  7984. "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
  7985. "if ($1 != null)",
  7986. "{",
  7987. " $1.Name = $2; //名称",
  7988. "}"
  7989. ]
  7990. },
  7991. "获取退款原因数量": {
  7992. "prefix": "ym-db-OrderRefundReason-FindAndCount",
  7993. "body": [
  7994. "int $1 = db.OrderRefundReason.Count(m => $2);",
  7995. ]
  7996. },
  7997. "添加退款原因": {
  7998. "prefix": "ym-db-OrderRefundReason-Create",
  7999. "body": [
  8000. "db.OrderRefundReason.Add(new OrderRefundReason()",
  8001. "{",
  8002. " CreateDate = DateTime.Now,",
  8003. " UpdateDate = DateTime.Now,",
  8004. " Name = $1, //名称",
  8005. "});"
  8006. ]
  8007. },"删除某个退款原因": {
  8008. "prefix": "ym-db-OrderRefundReason-Delete",
  8009. "body": [
  8010. "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
  8011. "if ($1 != null)",
  8012. "{",
  8013. " db.OrderRefundReason.Remove($1);",
  8014. "}"
  8015. ]
  8016. },
  8017. "查询创客订单列表": {
  8018. "prefix": "ym-db-Orders-Find",
  8019. "body": [
  8020. "List<Orders> $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8021. "foreach (Orders $3 in $1)",
  8022. "{",
  8023. "}"
  8024. ]
  8025. },
  8026. "查询创客订单列表,并取值": {
  8027. "prefix": "ym-db-Orders-FindWithData",
  8028. "body": [
  8029. "List<Orders> $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8030. "foreach (Orders $3 in $1)",
  8031. "{",
  8032. " int UserId = $3.UserId; //创客",
  8033. " string OrderNo = $3.OrderNo; //订单号",
  8034. " string RealName = $3.RealName; //姓名",
  8035. " string Mobile = $3.Mobile; //手机号",
  8036. " decimal TotalPrice = $3.TotalPrice; //总价",
  8037. " string Areas = $3.Areas; //所在地区",
  8038. " string Address = $3.Address; //详细地址",
  8039. " string PostalCode = $3.PostalCode; //邮政编码",
  8040. " int ErpMode = $3.ErpMode; //配送方式",
  8041. " string UserMessage = $3.UserMessage; //买家留言",
  8042. " int CouponId = $3.CouponId; //优惠券Id",
  8043. " string ErpName = $3.ErpName; //物流名称",
  8044. " string ErpCode = $3.ErpCode; //运单号",
  8045. " DateTime PayDate = $3.PayDate; //付款时间",
  8046. " DateTime SendDate = $3.SendDate; //发货时间",
  8047. " DateTime ConfirmDate = $3.ConfirmDate; //确认时间",
  8048. " int PayMode = $3.PayMode; //支付方式",
  8049. " int MerchantId = $3.MerchantId; //商家Id",
  8050. " decimal ErpPrice = $3.ErpPrice; //运费",
  8051. " decimal Integral = $3.Integral; //积分抵扣",
  8052. " string TradeNo = $3.TradeNo; //支付交易号",
  8053. " decimal CouponMoney = $3.CouponMoney; //优惠金额",
  8054. " DateTime AutoConfirmDate = $3.AutoConfirmDate; //自动确认时间",
  8055. " decimal ActualPay = $3.ActualPay; //实付款",
  8056. " int StoreId = $3.StoreId; //仓库",
  8057. " int RefundStatus = $3.RefundStatus; //退款状态",
  8058. " decimal RefundActAmount = $3.RefundActAmount; //实际退款金额",
  8059. " decimal RefundFeeAmount = $3.RefundFeeAmount; //退款手续费",
  8060. " int DeliveryType = $3.DeliveryType; //提货类型",
  8061. " string ReqData = $3.ReqData; //请求数据",
  8062. " string ResData = $3.ResData; //响应数据",
  8063. " string ReturnMsg = $3.ReturnMsg; //返回信息",
  8064. " string ReturnCode = $3.ReturnCode; //返回编码",
  8065. " int SendStatus = $3.SendStatus; //发货状态",
  8066. " int ProductId = $3.ProductId; //商品名称",
  8067. " string StoreContact = $3.StoreContact; //仓库联系人",
  8068. " int StoreType = $3.StoreType; //仓库类型",
  8069. " int StoreUserId = $3.StoreUserId; //仓库归属创客",
  8070. " int TopUserId = $3.TopUserId; //顶级创客",
  8071. " int PayStatus = $3.PayStatus; //支付状态",
  8072. " int BuyCount = $3.BuyCount; //下单数量",
  8073. " string Remark = $3.Remark; //订单备注",
  8074. " string SnNos = $3.SnNos; //SN编号",
  8075. " string StoreContactMobile = $3.StoreContactMobile; //仓库联系人电话",
  8076. " decimal ChannelAmount = $3.ChannelAmount; //渠道返回实际金额",
  8077. " string RefundReason = $3.RefundReason; //退货原因",
  8078. "}"
  8079. ]
  8080. },
  8081. "查询创客订单": {
  8082. "prefix": "ym-db-Orders-Exist",
  8083. "body": [
  8084. "bool $1 = db.Orders.Any(m => m.Id == $2);",
  8085. ]
  8086. },
  8087. "查询某个创客订单,并取值": {
  8088. "prefix": "ym-db-Orders-FindByPrimaryKey",
  8089. "body": [
  8090. "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
  8091. "if ($1 != null)",
  8092. "{",
  8093. " int UserId = $1.UserId; //创客",
  8094. " string OrderNo = $1.OrderNo; //订单号",
  8095. " string RealName = $1.RealName; //姓名",
  8096. " string Mobile = $1.Mobile; //手机号",
  8097. " decimal TotalPrice = $1.TotalPrice; //总价",
  8098. " string Areas = $1.Areas; //所在地区",
  8099. " string Address = $1.Address; //详细地址",
  8100. " string PostalCode = $1.PostalCode; //邮政编码",
  8101. " int ErpMode = $1.ErpMode; //配送方式",
  8102. " string UserMessage = $1.UserMessage; //买家留言",
  8103. " int CouponId = $1.CouponId; //优惠券Id",
  8104. " string ErpName = $1.ErpName; //物流名称",
  8105. " string ErpCode = $1.ErpCode; //运单号",
  8106. " DateTime PayDate = $1.PayDate; //付款时间",
  8107. " DateTime SendDate = $1.SendDate; //发货时间",
  8108. " DateTime ConfirmDate = $1.ConfirmDate; //确认时间",
  8109. " int PayMode = $1.PayMode; //支付方式",
  8110. " int MerchantId = $1.MerchantId; //商家Id",
  8111. " decimal ErpPrice = $1.ErpPrice; //运费",
  8112. " decimal Integral = $1.Integral; //积分抵扣",
  8113. " string TradeNo = $1.TradeNo; //支付交易号",
  8114. " decimal CouponMoney = $1.CouponMoney; //优惠金额",
  8115. " DateTime AutoConfirmDate = $1.AutoConfirmDate; //自动确认时间",
  8116. " decimal ActualPay = $1.ActualPay; //实付款",
  8117. " int StoreId = $1.StoreId; //仓库",
  8118. " int RefundStatus = $1.RefundStatus; //退款状态",
  8119. " decimal RefundActAmount = $1.RefundActAmount; //实际退款金额",
  8120. " decimal RefundFeeAmount = $1.RefundFeeAmount; //退款手续费",
  8121. " int DeliveryType = $1.DeliveryType; //提货类型",
  8122. " string ReqData = $1.ReqData; //请求数据",
  8123. " string ResData = $1.ResData; //响应数据",
  8124. " string ReturnMsg = $1.ReturnMsg; //返回信息",
  8125. " string ReturnCode = $1.ReturnCode; //返回编码",
  8126. " int SendStatus = $1.SendStatus; //发货状态",
  8127. " int ProductId = $1.ProductId; //商品名称",
  8128. " string StoreContact = $1.StoreContact; //仓库联系人",
  8129. " int StoreType = $1.StoreType; //仓库类型",
  8130. " int StoreUserId = $1.StoreUserId; //仓库归属创客",
  8131. " int TopUserId = $1.TopUserId; //顶级创客",
  8132. " int PayStatus = $1.PayStatus; //支付状态",
  8133. " int BuyCount = $1.BuyCount; //下单数量",
  8134. " string Remark = $1.Remark; //订单备注",
  8135. " string SnNos = $1.SnNos; //SN编号",
  8136. " string StoreContactMobile = $1.StoreContactMobile; //仓库联系人电话",
  8137. " decimal ChannelAmount = $1.ChannelAmount; //渠道返回实际金额",
  8138. " string RefundReason = $1.RefundReason; //退货原因",
  8139. "}"
  8140. ]
  8141. },
  8142. "查询某个创客订单,并赋值": {
  8143. "prefix": "ym-db-Orders-Update",
  8144. "body": [
  8145. "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
  8146. "if ($1 != null)",
  8147. "{",
  8148. " $1.UserId = $2; //创客",
  8149. " $1.OrderNo = $3; //订单号",
  8150. " $1.RealName = $4; //姓名",
  8151. " $1.Mobile = $5; //手机号",
  8152. " $1.TotalPrice = $6; //总价",
  8153. " $1.Areas = $7; //所在地区",
  8154. " $1.Address = $8; //详细地址",
  8155. " $1.PostalCode = $9; //邮政编码",
  8156. " $1.ErpMode = $10; //配送方式",
  8157. " $1.UserMessage = $11; //买家留言",
  8158. " $1.CouponId = $12; //优惠券Id",
  8159. " $1.ErpName = $13; //物流名称",
  8160. " $1.ErpCode = $14; //运单号",
  8161. " $1.PayDate = $15; //付款时间",
  8162. " $1.SendDate = $16; //发货时间",
  8163. " $1.ConfirmDate = $17; //确认时间",
  8164. " $1.PayMode = $18; //支付方式",
  8165. " $1.MerchantId = $19; //商家Id",
  8166. " $1.ErpPrice = $20; //运费",
  8167. " $1.Integral = $21; //积分抵扣",
  8168. " $1.TradeNo = $22; //支付交易号",
  8169. " $1.CouponMoney = $23; //优惠金额",
  8170. " $1.AutoConfirmDate = $24; //自动确认时间",
  8171. " $1.ActualPay = $25; //实付款",
  8172. " $1.StoreId = $26; //仓库",
  8173. " $1.RefundStatus = $27; //退款状态",
  8174. " $1.RefundActAmount = $28; //实际退款金额",
  8175. " $1.RefundFeeAmount = $29; //退款手续费",
  8176. " $1.DeliveryType = $30; //提货类型",
  8177. " $1.ReqData = $31; //请求数据",
  8178. " $1.ResData = $32; //响应数据",
  8179. " $1.ReturnMsg = $33; //返回信息",
  8180. " $1.ReturnCode = $34; //返回编码",
  8181. " $1.SendStatus = $35; //发货状态",
  8182. " $1.ProductId = $36; //商品名称",
  8183. " $1.StoreContact = $37; //仓库联系人",
  8184. " $1.StoreType = $38; //仓库类型",
  8185. " $1.StoreUserId = $39; //仓库归属创客",
  8186. " $1.TopUserId = $40; //顶级创客",
  8187. " $1.PayStatus = $41; //支付状态",
  8188. " $1.BuyCount = $42; //下单数量",
  8189. " $1.Remark = $43; //订单备注",
  8190. " $1.SnNos = $44; //SN编号",
  8191. " $1.StoreContactMobile = $45; //仓库联系人电话",
  8192. " $1.ChannelAmount = $46; //渠道返回实际金额",
  8193. " $1.RefundReason = $47; //退货原因",
  8194. "}"
  8195. ]
  8196. },
  8197. "获取创客订单数量": {
  8198. "prefix": "ym-db-Orders-FindAndCount",
  8199. "body": [
  8200. "int $1 = db.Orders.Count(m => $2);",
  8201. ]
  8202. },
  8203. "添加创客订单": {
  8204. "prefix": "ym-db-Orders-Create",
  8205. "body": [
  8206. "db.Orders.Add(new Orders()",
  8207. "{",
  8208. " CreateDate = DateTime.Now,",
  8209. " UpdateDate = DateTime.Now,",
  8210. " UserId = $1, //创客",
  8211. " OrderNo = $2, //订单号",
  8212. " RealName = $3, //姓名",
  8213. " Mobile = $4, //手机号",
  8214. " TotalPrice = $5, //总价",
  8215. " Areas = $6, //所在地区",
  8216. " Address = $7, //详细地址",
  8217. " PostalCode = $8, //邮政编码",
  8218. " ErpMode = $9, //配送方式",
  8219. " UserMessage = $10, //买家留言",
  8220. " CouponId = $11, //优惠券Id",
  8221. " ErpName = $12, //物流名称",
  8222. " ErpCode = $13, //运单号",
  8223. " PayDate = $14, //付款时间",
  8224. " SendDate = $15, //发货时间",
  8225. " ConfirmDate = $16, //确认时间",
  8226. " PayMode = $17, //支付方式",
  8227. " MerchantId = $18, //商家Id",
  8228. " ErpPrice = $19, //运费",
  8229. " Integral = $20, //积分抵扣",
  8230. " TradeNo = $21, //支付交易号",
  8231. " CouponMoney = $22, //优惠金额",
  8232. " AutoConfirmDate = $23, //自动确认时间",
  8233. " ActualPay = $24, //实付款",
  8234. " StoreId = $25, //仓库",
  8235. " RefundStatus = $26, //退款状态",
  8236. " RefundActAmount = $27, //实际退款金额",
  8237. " RefundFeeAmount = $28, //退款手续费",
  8238. " DeliveryType = $29, //提货类型",
  8239. " ReqData = $30, //请求数据",
  8240. " ResData = $31, //响应数据",
  8241. " ReturnMsg = $32, //返回信息",
  8242. " ReturnCode = $33, //返回编码",
  8243. " SendStatus = $34, //发货状态",
  8244. " ProductId = $35, //商品名称",
  8245. " StoreContact = $36, //仓库联系人",
  8246. " StoreType = $37, //仓库类型",
  8247. " StoreUserId = $38, //仓库归属创客",
  8248. " TopUserId = $39, //顶级创客",
  8249. " PayStatus = $40, //支付状态",
  8250. " BuyCount = $41, //下单数量",
  8251. " Remark = $42, //订单备注",
  8252. " SnNos = $43, //SN编号",
  8253. " StoreContactMobile = $44, //仓库联系人电话",
  8254. " ChannelAmount = $45, //渠道返回实际金额",
  8255. " RefundReason = $46, //退货原因",
  8256. "});"
  8257. ]
  8258. },"删除某个创客订单": {
  8259. "prefix": "ym-db-Orders-Delete",
  8260. "body": [
  8261. "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
  8262. "if ($1 != null)",
  8263. "{",
  8264. " db.Orders.Remove($1);",
  8265. "}"
  8266. ]
  8267. },
  8268. "查询单页内容列表": {
  8269. "prefix": "ym-db-PageInfo-Find",
  8270. "body": [
  8271. "List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8272. "foreach (PageInfo $3 in $1)",
  8273. "{",
  8274. "}"
  8275. ]
  8276. },
  8277. "查询单页内容列表,并取值": {
  8278. "prefix": "ym-db-PageInfo-FindWithData",
  8279. "body": [
  8280. "List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8281. "foreach (PageInfo $3 in $1)",
  8282. "{",
  8283. " string Title = $3.Title; //标题",
  8284. " string ColId = $3.ColId; //分类",
  8285. " string Contents = $3.Contents; //内容",
  8286. "}"
  8287. ]
  8288. },
  8289. "查询单页内容": {
  8290. "prefix": "ym-db-PageInfo-Exist",
  8291. "body": [
  8292. "bool $1 = db.PageInfo.Any(m => m.Id == $2);",
  8293. ]
  8294. },
  8295. "查询某个单页内容,并取值": {
  8296. "prefix": "ym-db-PageInfo-FindByPrimaryKey",
  8297. "body": [
  8298. "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
  8299. "if ($1 != null)",
  8300. "{",
  8301. " string Title = $1.Title; //标题",
  8302. " string ColId = $1.ColId; //分类",
  8303. " string Contents = $1.Contents; //内容",
  8304. "}"
  8305. ]
  8306. },
  8307. "查询某个单页内容,并赋值": {
  8308. "prefix": "ym-db-PageInfo-Update",
  8309. "body": [
  8310. "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
  8311. "if ($1 != null)",
  8312. "{",
  8313. " $1.Title = $2; //标题",
  8314. " $1.ColId = $3; //分类",
  8315. " $1.Contents = $4; //内容",
  8316. "}"
  8317. ]
  8318. },
  8319. "获取单页内容数量": {
  8320. "prefix": "ym-db-PageInfo-FindAndCount",
  8321. "body": [
  8322. "int $1 = db.PageInfo.Count(m => $2);",
  8323. ]
  8324. },
  8325. "添加单页内容": {
  8326. "prefix": "ym-db-PageInfo-Create",
  8327. "body": [
  8328. "db.PageInfo.Add(new PageInfo()",
  8329. "{",
  8330. " CreateDate = DateTime.Now,",
  8331. " UpdateDate = DateTime.Now,",
  8332. " Title = $1, //标题",
  8333. " ColId = $2, //分类",
  8334. " Contents = $3, //内容",
  8335. "});"
  8336. ]
  8337. },"删除某个单页内容": {
  8338. "prefix": "ym-db-PageInfo-Delete",
  8339. "body": [
  8340. "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
  8341. "if ($1 != null)",
  8342. "{",
  8343. " db.PageInfo.Remove($1);",
  8344. "}"
  8345. ]
  8346. },
  8347. "查询页面模板更新信息列表": {
  8348. "prefix": "ym-db-PageUpdateInfo-Find",
  8349. "body": [
  8350. "List<PageUpdateInfo> $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8351. "foreach (PageUpdateInfo $3 in $1)",
  8352. "{",
  8353. "}"
  8354. ]
  8355. },
  8356. "查询页面模板更新信息列表,并取值": {
  8357. "prefix": "ym-db-PageUpdateInfo-FindWithData",
  8358. "body": [
  8359. "List<PageUpdateInfo> $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8360. "foreach (PageUpdateInfo $3 in $1)",
  8361. "{",
  8362. " int ModuleVersion = $3.ModuleVersion; //模板更新版本",
  8363. " string ModulePath = $3.ModulePath; //模板路径",
  8364. " string BgColor = $3.BgColor; //背景色",
  8365. " string TextColor = $3.TextColor; //前景色",
  8366. " string StatusBarStyle = $3.StatusBarStyle; //苹果状态栏",
  8367. " ulong ShowTitle = $3.ShowTitle; //是否显示头部",
  8368. " string Title = $3.Title; //顶部标题",
  8369. " ulong IsScrollBar = $3.IsScrollBar; //是否显示滚动条",
  8370. " ulong IsSkid = $3.IsSkid; //是否侧滑返回",
  8371. " string LeftBtn1 = $3.LeftBtn1; //左侧按钮1",
  8372. " string LeftBtn2 = $3.LeftBtn2; //左侧按钮2",
  8373. " string RightBtn1 = $3.RightBtn1; //右侧按钮1",
  8374. " string RightBtn2 = $3.RightBtn2; //右侧按钮2",
  8375. " string LeftAction1 = $3.LeftAction1; //左侧按钮1点击事件",
  8376. " string LeftAction2 = $3.LeftAction2; //左侧按钮2点击事件",
  8377. " string RightAction1 = $3.RightAction1; //右侧按钮1点击事件",
  8378. " string RightAction2 = $3.RightAction2; //右侧按钮2点击事件",
  8379. " string GotoPages = $3.GotoPages; //下级页面",
  8380. " ulong MustUpdate = $3.MustUpdate; //是否强制更新",
  8381. "}"
  8382. ]
  8383. },
  8384. "查询页面模板更新信息": {
  8385. "prefix": "ym-db-PageUpdateInfo-Exist",
  8386. "body": [
  8387. "bool $1 = db.PageUpdateInfo.Any(m => m.Id == $2);",
  8388. ]
  8389. },
  8390. "查询某个页面模板更新信息,并取值": {
  8391. "prefix": "ym-db-PageUpdateInfo-FindByPrimaryKey",
  8392. "body": [
  8393. "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  8394. "if ($1 != null)",
  8395. "{",
  8396. " int ModuleVersion = $1.ModuleVersion; //模板更新版本",
  8397. " string ModulePath = $1.ModulePath; //模板路径",
  8398. " string BgColor = $1.BgColor; //背景色",
  8399. " string TextColor = $1.TextColor; //前景色",
  8400. " string StatusBarStyle = $1.StatusBarStyle; //苹果状态栏",
  8401. " ulong ShowTitle = $1.ShowTitle; //是否显示头部",
  8402. " string Title = $1.Title; //顶部标题",
  8403. " ulong IsScrollBar = $1.IsScrollBar; //是否显示滚动条",
  8404. " ulong IsSkid = $1.IsSkid; //是否侧滑返回",
  8405. " string LeftBtn1 = $1.LeftBtn1; //左侧按钮1",
  8406. " string LeftBtn2 = $1.LeftBtn2; //左侧按钮2",
  8407. " string RightBtn1 = $1.RightBtn1; //右侧按钮1",
  8408. " string RightBtn2 = $1.RightBtn2; //右侧按钮2",
  8409. " string LeftAction1 = $1.LeftAction1; //左侧按钮1点击事件",
  8410. " string LeftAction2 = $1.LeftAction2; //左侧按钮2点击事件",
  8411. " string RightAction1 = $1.RightAction1; //右侧按钮1点击事件",
  8412. " string RightAction2 = $1.RightAction2; //右侧按钮2点击事件",
  8413. " string GotoPages = $1.GotoPages; //下级页面",
  8414. " ulong MustUpdate = $1.MustUpdate; //是否强制更新",
  8415. "}"
  8416. ]
  8417. },
  8418. "查询某个页面模板更新信息,并赋值": {
  8419. "prefix": "ym-db-PageUpdateInfo-Update",
  8420. "body": [
  8421. "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  8422. "if ($1 != null)",
  8423. "{",
  8424. " $1.ModuleVersion = $2; //模板更新版本",
  8425. " $1.ModulePath = $3; //模板路径",
  8426. " $1.BgColor = $4; //背景色",
  8427. " $1.TextColor = $5; //前景色",
  8428. " $1.StatusBarStyle = $6; //苹果状态栏",
  8429. " $1.ShowTitle = $7; //是否显示头部",
  8430. " $1.Title = $8; //顶部标题",
  8431. " $1.IsScrollBar = $9; //是否显示滚动条",
  8432. " $1.IsSkid = $10; //是否侧滑返回",
  8433. " $1.LeftBtn1 = $11; //左侧按钮1",
  8434. " $1.LeftBtn2 = $12; //左侧按钮2",
  8435. " $1.RightBtn1 = $13; //右侧按钮1",
  8436. " $1.RightBtn2 = $14; //右侧按钮2",
  8437. " $1.LeftAction1 = $15; //左侧按钮1点击事件",
  8438. " $1.LeftAction2 = $16; //左侧按钮2点击事件",
  8439. " $1.RightAction1 = $17; //右侧按钮1点击事件",
  8440. " $1.RightAction2 = $18; //右侧按钮2点击事件",
  8441. " $1.GotoPages = $19; //下级页面",
  8442. " $1.MustUpdate = $20; //是否强制更新",
  8443. "}"
  8444. ]
  8445. },
  8446. "获取页面模板更新信息数量": {
  8447. "prefix": "ym-db-PageUpdateInfo-FindAndCount",
  8448. "body": [
  8449. "int $1 = db.PageUpdateInfo.Count(m => $2);",
  8450. ]
  8451. },
  8452. "添加页面模板更新信息": {
  8453. "prefix": "ym-db-PageUpdateInfo-Create",
  8454. "body": [
  8455. "db.PageUpdateInfo.Add(new PageUpdateInfo()",
  8456. "{",
  8457. " CreateDate = DateTime.Now,",
  8458. " UpdateDate = DateTime.Now,",
  8459. " ModuleVersion = $1, //模板更新版本",
  8460. " ModulePath = $2, //模板路径",
  8461. " BgColor = $3, //背景色",
  8462. " TextColor = $4, //前景色",
  8463. " StatusBarStyle = $5, //苹果状态栏",
  8464. " ShowTitle = $6, //是否显示头部",
  8465. " Title = $7, //顶部标题",
  8466. " IsScrollBar = $8, //是否显示滚动条",
  8467. " IsSkid = $9, //是否侧滑返回",
  8468. " LeftBtn1 = $10, //左侧按钮1",
  8469. " LeftBtn2 = $11, //左侧按钮2",
  8470. " RightBtn1 = $12, //右侧按钮1",
  8471. " RightBtn2 = $13, //右侧按钮2",
  8472. " LeftAction1 = $14, //左侧按钮1点击事件",
  8473. " LeftAction2 = $15, //左侧按钮2点击事件",
  8474. " RightAction1 = $16, //右侧按钮1点击事件",
  8475. " RightAction2 = $17, //右侧按钮2点击事件",
  8476. " GotoPages = $18, //下级页面",
  8477. " MustUpdate = $19, //是否强制更新",
  8478. "});"
  8479. ]
  8480. },"删除某个页面模板更新信息": {
  8481. "prefix": "ym-db-PageUpdateInfo-Delete",
  8482. "body": [
  8483. "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
  8484. "if ($1 != null)",
  8485. "{",
  8486. " db.PageUpdateInfo.Remove($1);",
  8487. "}"
  8488. ]
  8489. },
  8490. "查询机具库列表": {
  8491. "prefix": "ym-db-PosMachines-Find",
  8492. "body": [
  8493. "List<PosMachines> $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8494. "foreach (PosMachines $3 in $1)",
  8495. "{",
  8496. "}"
  8497. ]
  8498. },
  8499. "查询机具库列表,并取值": {
  8500. "prefix": "ym-db-PosMachines-FindWithData",
  8501. "body": [
  8502. "List<PosMachines> $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8503. "foreach (PosMachines $3 in $1)",
  8504. "{",
  8505. " int BindingState = $3.BindingState; //绑定状态",
  8506. " int ActivationState = $3.ActivationState; //激活状态",
  8507. " string Detail = $3.Detail; //机具详情",
  8508. " DateTime ActivationTime = $3.ActivationTime; //激活时间",
  8509. " DateTime BindingTime = $3.BindingTime; //绑定时间",
  8510. " int UserId = $3.UserId; //所属创客",
  8511. " ulong IsPurchase = $3.IsPurchase; //是否卖出",
  8512. " string PosSn = $3.PosSn; //SN编号",
  8513. " DateTime TransferTime = $3.TransferTime; //划拨时间",
  8514. " int BuyUserId = $3.BuyUserId; //购买人",
  8515. " string UserNav = $3.UserNav; //所属创客上级集合",
  8516. " int BrandId = $3.BrandId; //产品类型",
  8517. " decimal CreditTrade = $3.CreditTrade; //贷记卡交易额",
  8518. " ulong IsVip = $3.IsVip; //是否VIP",
  8519. " string PrizeParams = $3.PrizeParams; //附加参数",
  8520. " int RecycBackCount = $3.RecycBackCount; //循环返券张数",
  8521. " int StoreId = $3.StoreId; //所在仓库",
  8522. " decimal DebitCardTrade = $3.DebitCardTrade; //借记卡交易额",
  8523. " decimal ScanQrTrade = $3.ScanQrTrade; //扫码交易额",
  8524. " string ActivityList = $3.ActivityList; //参加活动",
  8525. " int BindMerchantId = $3.BindMerchantId; //绑定商户",
  8526. " int PosSnType = $3.PosSnType; //机具类型",
  8527. " string DeviceType = $3.DeviceType; //设备类型",
  8528. " string BatchNo = $3.BatchNo; //业务批次号",
  8529. " string DeviceName = $3.DeviceName; //设备厂商",
  8530. " string DeviceKind = $3.DeviceKind; //设备型号",
  8531. " DateTime RecycEndDate = $3.RecycEndDate; //循环截止时间",
  8532. " int OrderId = $3.OrderId; //订单Id",
  8533. " int SourceStoreId = $3.SourceStoreId; //源仓库",
  8534. "}"
  8535. ]
  8536. },
  8537. "查询机具库": {
  8538. "prefix": "ym-db-PosMachines-Exist",
  8539. "body": [
  8540. "bool $1 = db.PosMachines.Any(m => m.Id == $2);",
  8541. ]
  8542. },
  8543. "查询某个机具库,并取值": {
  8544. "prefix": "ym-db-PosMachines-FindByPrimaryKey",
  8545. "body": [
  8546. "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
  8547. "if ($1 != null)",
  8548. "{",
  8549. " int BindingState = $1.BindingState; //绑定状态",
  8550. " int ActivationState = $1.ActivationState; //激活状态",
  8551. " string Detail = $1.Detail; //机具详情",
  8552. " DateTime ActivationTime = $1.ActivationTime; //激活时间",
  8553. " DateTime BindingTime = $1.BindingTime; //绑定时间",
  8554. " int UserId = $1.UserId; //所属创客",
  8555. " ulong IsPurchase = $1.IsPurchase; //是否卖出",
  8556. " string PosSn = $1.PosSn; //SN编号",
  8557. " DateTime TransferTime = $1.TransferTime; //划拨时间",
  8558. " int BuyUserId = $1.BuyUserId; //购买人",
  8559. " string UserNav = $1.UserNav; //所属创客上级集合",
  8560. " int BrandId = $1.BrandId; //产品类型",
  8561. " decimal CreditTrade = $1.CreditTrade; //贷记卡交易额",
  8562. " ulong IsVip = $1.IsVip; //是否VIP",
  8563. " string PrizeParams = $1.PrizeParams; //附加参数",
  8564. " int RecycBackCount = $1.RecycBackCount; //循环返券张数",
  8565. " int StoreId = $1.StoreId; //所在仓库",
  8566. " decimal DebitCardTrade = $1.DebitCardTrade; //借记卡交易额",
  8567. " decimal ScanQrTrade = $1.ScanQrTrade; //扫码交易额",
  8568. " string ActivityList = $1.ActivityList; //参加活动",
  8569. " int BindMerchantId = $1.BindMerchantId; //绑定商户",
  8570. " int PosSnType = $1.PosSnType; //机具类型",
  8571. " string DeviceType = $1.DeviceType; //设备类型",
  8572. " string BatchNo = $1.BatchNo; //业务批次号",
  8573. " string DeviceName = $1.DeviceName; //设备厂商",
  8574. " string DeviceKind = $1.DeviceKind; //设备型号",
  8575. " DateTime RecycEndDate = $1.RecycEndDate; //循环截止时间",
  8576. " int OrderId = $1.OrderId; //订单Id",
  8577. " int SourceStoreId = $1.SourceStoreId; //源仓库",
  8578. "}"
  8579. ]
  8580. },
  8581. "查询某个机具库,并赋值": {
  8582. "prefix": "ym-db-PosMachines-Update",
  8583. "body": [
  8584. "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
  8585. "if ($1 != null)",
  8586. "{",
  8587. " $1.BindingState = $2; //绑定状态",
  8588. " $1.ActivationState = $3; //激活状态",
  8589. " $1.Detail = $4; //机具详情",
  8590. " $1.ActivationTime = $5; //激活时间",
  8591. " $1.BindingTime = $6; //绑定时间",
  8592. " $1.UserId = $7; //所属创客",
  8593. " $1.IsPurchase = $8; //是否卖出",
  8594. " $1.PosSn = $9; //SN编号",
  8595. " $1.TransferTime = $10; //划拨时间",
  8596. " $1.BuyUserId = $11; //购买人",
  8597. " $1.UserNav = $12; //所属创客上级集合",
  8598. " $1.BrandId = $13; //产品类型",
  8599. " $1.CreditTrade = $14; //贷记卡交易额",
  8600. " $1.IsVip = $15; //是否VIP",
  8601. " $1.PrizeParams = $16; //附加参数",
  8602. " $1.RecycBackCount = $17; //循环返券张数",
  8603. " $1.StoreId = $18; //所在仓库",
  8604. " $1.DebitCardTrade = $19; //借记卡交易额",
  8605. " $1.ScanQrTrade = $20; //扫码交易额",
  8606. " $1.ActivityList = $21; //参加活动",
  8607. " $1.BindMerchantId = $22; //绑定商户",
  8608. " $1.PosSnType = $23; //机具类型",
  8609. " $1.DeviceType = $24; //设备类型",
  8610. " $1.BatchNo = $25; //业务批次号",
  8611. " $1.DeviceName = $26; //设备厂商",
  8612. " $1.DeviceKind = $27; //设备型号",
  8613. " $1.RecycEndDate = $28; //循环截止时间",
  8614. " $1.OrderId = $29; //订单Id",
  8615. " $1.SourceStoreId = $30; //源仓库",
  8616. "}"
  8617. ]
  8618. },
  8619. "获取机具库数量": {
  8620. "prefix": "ym-db-PosMachines-FindAndCount",
  8621. "body": [
  8622. "int $1 = db.PosMachines.Count(m => $2);",
  8623. ]
  8624. },
  8625. "添加机具库": {
  8626. "prefix": "ym-db-PosMachines-Create",
  8627. "body": [
  8628. "db.PosMachines.Add(new PosMachines()",
  8629. "{",
  8630. " CreateDate = DateTime.Now,",
  8631. " UpdateDate = DateTime.Now,",
  8632. " BindingState = $1, //绑定状态",
  8633. " ActivationState = $2, //激活状态",
  8634. " Detail = $3, //机具详情",
  8635. " ActivationTime = $4, //激活时间",
  8636. " BindingTime = $5, //绑定时间",
  8637. " UserId = $6, //所属创客",
  8638. " IsPurchase = $7, //是否卖出",
  8639. " PosSn = $8, //SN编号",
  8640. " TransferTime = $9, //划拨时间",
  8641. " BuyUserId = $10, //购买人",
  8642. " UserNav = $11, //所属创客上级集合",
  8643. " BrandId = $12, //产品类型",
  8644. " CreditTrade = $13, //贷记卡交易额",
  8645. " IsVip = $14, //是否VIP",
  8646. " PrizeParams = $15, //附加参数",
  8647. " RecycBackCount = $16, //循环返券张数",
  8648. " StoreId = $17, //所在仓库",
  8649. " DebitCardTrade = $18, //借记卡交易额",
  8650. " ScanQrTrade = $19, //扫码交易额",
  8651. " ActivityList = $20, //参加活动",
  8652. " BindMerchantId = $21, //绑定商户",
  8653. " PosSnType = $22, //机具类型",
  8654. " DeviceType = $23, //设备类型",
  8655. " BatchNo = $24, //业务批次号",
  8656. " DeviceName = $25, //设备厂商",
  8657. " DeviceKind = $26, //设备型号",
  8658. " RecycEndDate = $27, //循环截止时间",
  8659. " OrderId = $28, //订单Id",
  8660. " SourceStoreId = $29, //源仓库",
  8661. "});"
  8662. ]
  8663. },"删除某个机具库": {
  8664. "prefix": "ym-db-PosMachines-Delete",
  8665. "body": [
  8666. "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
  8667. "if ($1 != null)",
  8668. "{",
  8669. " db.PosMachines.Remove($1);",
  8670. "}"
  8671. ]
  8672. },
  8673. "查询商品评价列表": {
  8674. "prefix": "ym-db-ProductComment-Find",
  8675. "body": [
  8676. "List<ProductComment> $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8677. "foreach (ProductComment $3 in $1)",
  8678. "{",
  8679. "}"
  8680. ]
  8681. },
  8682. "查询商品评价列表,并取值": {
  8683. "prefix": "ym-db-ProductComment-FindWithData",
  8684. "body": [
  8685. "List<ProductComment> $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8686. "foreach (ProductComment $3 in $1)",
  8687. "{",
  8688. " int UserId = $3.UserId; //创客Id",
  8689. " int ProductId = $3.ProductId; //商品Id",
  8690. " int OrderId = $3.OrderId; //订单Id",
  8691. " string Contents = $3.Contents; //评论内容",
  8692. " int StarNum = $3.StarNum; //商品评分",
  8693. " int AgreeCount = $3.AgreeCount; //点赞数",
  8694. " int BackCount = $3.BackCount; //回复数",
  8695. " int MerchantId = $3.MerchantId; //商家Id",
  8696. " ulong HasPhoto = $3.HasPhoto; //是否有图",
  8697. " string PhotoList = $3.PhotoList; //图集",
  8698. " int ProductNormId = $3.ProductNormId; //商品规格Id",
  8699. "}"
  8700. ]
  8701. },
  8702. "查询商品评价": {
  8703. "prefix": "ym-db-ProductComment-Exist",
  8704. "body": [
  8705. "bool $1 = db.ProductComment.Any(m => m.Id == $2);",
  8706. ]
  8707. },
  8708. "查询某个商品评价,并取值": {
  8709. "prefix": "ym-db-ProductComment-FindByPrimaryKey",
  8710. "body": [
  8711. "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
  8712. "if ($1 != null)",
  8713. "{",
  8714. " int UserId = $1.UserId; //创客Id",
  8715. " int ProductId = $1.ProductId; //商品Id",
  8716. " int OrderId = $1.OrderId; //订单Id",
  8717. " string Contents = $1.Contents; //评论内容",
  8718. " int StarNum = $1.StarNum; //商品评分",
  8719. " int AgreeCount = $1.AgreeCount; //点赞数",
  8720. " int BackCount = $1.BackCount; //回复数",
  8721. " int MerchantId = $1.MerchantId; //商家Id",
  8722. " ulong HasPhoto = $1.HasPhoto; //是否有图",
  8723. " string PhotoList = $1.PhotoList; //图集",
  8724. " int ProductNormId = $1.ProductNormId; //商品规格Id",
  8725. "}"
  8726. ]
  8727. },
  8728. "查询某个商品评价,并赋值": {
  8729. "prefix": "ym-db-ProductComment-Update",
  8730. "body": [
  8731. "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
  8732. "if ($1 != null)",
  8733. "{",
  8734. " $1.UserId = $2; //创客Id",
  8735. " $1.ProductId = $3; //商品Id",
  8736. " $1.OrderId = $4; //订单Id",
  8737. " $1.Contents = $5; //评论内容",
  8738. " $1.StarNum = $6; //商品评分",
  8739. " $1.AgreeCount = $7; //点赞数",
  8740. " $1.BackCount = $8; //回复数",
  8741. " $1.MerchantId = $9; //商家Id",
  8742. " $1.HasPhoto = $10; //是否有图",
  8743. " $1.PhotoList = $11; //图集",
  8744. " $1.ProductNormId = $12; //商品规格Id",
  8745. "}"
  8746. ]
  8747. },
  8748. "获取商品评价数量": {
  8749. "prefix": "ym-db-ProductComment-FindAndCount",
  8750. "body": [
  8751. "int $1 = db.ProductComment.Count(m => $2);",
  8752. ]
  8753. },
  8754. "添加商品评价": {
  8755. "prefix": "ym-db-ProductComment-Create",
  8756. "body": [
  8757. "db.ProductComment.Add(new ProductComment()",
  8758. "{",
  8759. " CreateDate = DateTime.Now,",
  8760. " UpdateDate = DateTime.Now,",
  8761. " UserId = $1, //创客Id",
  8762. " ProductId = $2, //商品Id",
  8763. " OrderId = $3, //订单Id",
  8764. " Contents = $4, //评论内容",
  8765. " StarNum = $5, //商品评分",
  8766. " AgreeCount = $6, //点赞数",
  8767. " BackCount = $7, //回复数",
  8768. " MerchantId = $8, //商家Id",
  8769. " HasPhoto = $9, //是否有图",
  8770. " PhotoList = $10, //图集",
  8771. " ProductNormId = $11, //商品规格Id",
  8772. "});"
  8773. ]
  8774. },"删除某个商品评价": {
  8775. "prefix": "ym-db-ProductComment-Delete",
  8776. "body": [
  8777. "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
  8778. "if ($1 != null)",
  8779. "{",
  8780. " db.ProductComment.Remove($1);",
  8781. "}"
  8782. ]
  8783. },
  8784. "查询商品评价点赞记录列表": {
  8785. "prefix": "ym-db-ProductCommentAgree-Find",
  8786. "body": [
  8787. "List<ProductCommentAgree> $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8788. "foreach (ProductCommentAgree $3 in $1)",
  8789. "{",
  8790. "}"
  8791. ]
  8792. },
  8793. "查询商品评价点赞记录列表,并取值": {
  8794. "prefix": "ym-db-ProductCommentAgree-FindWithData",
  8795. "body": [
  8796. "List<ProductCommentAgree> $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8797. "foreach (ProductCommentAgree $3 in $1)",
  8798. "{",
  8799. " int Id = $3.Id; //Id",
  8800. " int UserId = $3.UserId; //创客Id",
  8801. " int ProductCommentId = $3.ProductCommentId; //商品评价Id",
  8802. "}"
  8803. ]
  8804. },
  8805. "查询商品评价点赞记录": {
  8806. "prefix": "ym-db-ProductCommentAgree-Exist",
  8807. "body": [
  8808. "bool $1 = db.ProductCommentAgree.Any(m => m.Id == $2);",
  8809. ]
  8810. },
  8811. "查询某个商品评价点赞记录,并取值": {
  8812. "prefix": "ym-db-ProductCommentAgree-FindByPrimaryKey",
  8813. "body": [
  8814. "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
  8815. "if ($1 != null)",
  8816. "{",
  8817. " int Id = $1.Id; //Id",
  8818. " int UserId = $1.UserId; //创客Id",
  8819. " int ProductCommentId = $1.ProductCommentId; //商品评价Id",
  8820. "}"
  8821. ]
  8822. },
  8823. "查询某个商品评价点赞记录,并赋值": {
  8824. "prefix": "ym-db-ProductCommentAgree-Update",
  8825. "body": [
  8826. "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
  8827. "if ($1 != null)",
  8828. "{",
  8829. " $1.Id = $2; //Id",
  8830. " $1.UserId = $3; //创客Id",
  8831. " $1.ProductCommentId = $4; //商品评价Id",
  8832. "}"
  8833. ]
  8834. },
  8835. "获取商品评价点赞记录数量": {
  8836. "prefix": "ym-db-ProductCommentAgree-FindAndCount",
  8837. "body": [
  8838. "int $1 = db.ProductCommentAgree.Count(m => $2);",
  8839. ]
  8840. },
  8841. "添加商品评价点赞记录": {
  8842. "prefix": "ym-db-ProductCommentAgree-Create",
  8843. "body": [
  8844. "db.ProductCommentAgree.Add(new ProductCommentAgree()",
  8845. "{",
  8846. " CreateDate = DateTime.Now,",
  8847. " UpdateDate = DateTime.Now,",
  8848. " Id = $1, //Id",
  8849. " UserId = $2, //创客Id",
  8850. " ProductCommentId = $3, //商品评价Id",
  8851. "});"
  8852. ]
  8853. },"删除某个商品评价点赞记录": {
  8854. "prefix": "ym-db-ProductCommentAgree-Delete",
  8855. "body": [
  8856. "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
  8857. "if ($1 != null)",
  8858. "{",
  8859. " db.ProductCommentAgree.Remove($1);",
  8860. "}"
  8861. ]
  8862. },
  8863. "查询运费按区域列表": {
  8864. "prefix": "ym-db-ProductFareAreas-Find",
  8865. "body": [
  8866. "List<ProductFareAreas> $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8867. "foreach (ProductFareAreas $3 in $1)",
  8868. "{",
  8869. "}"
  8870. ]
  8871. },
  8872. "查询运费按区域列表,并取值": {
  8873. "prefix": "ym-db-ProductFareAreas-FindWithData",
  8874. "body": [
  8875. "List<ProductFareAreas> $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8876. "foreach (ProductFareAreas $3 in $1)",
  8877. "{",
  8878. " int MerchantId = $3.MerchantId; //商家Id",
  8879. " int TemplateId = $3.TemplateId; //模板Id",
  8880. " string Areas = $3.Areas; //地区",
  8881. " decimal FirstAmount = $3.FirstAmount; //首件数量",
  8882. " decimal FirstFee = $3.FirstFee; //首件费用",
  8883. " decimal MoreAmount = $3.MoreAmount; //续件数量",
  8884. " decimal MoreFee = $3.MoreFee; //续件费用",
  8885. "}"
  8886. ]
  8887. },
  8888. "查询运费按区域": {
  8889. "prefix": "ym-db-ProductFareAreas-Exist",
  8890. "body": [
  8891. "bool $1 = db.ProductFareAreas.Any(m => m.Id == $2);",
  8892. ]
  8893. },
  8894. "查询某个运费按区域,并取值": {
  8895. "prefix": "ym-db-ProductFareAreas-FindByPrimaryKey",
  8896. "body": [
  8897. "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
  8898. "if ($1 != null)",
  8899. "{",
  8900. " int MerchantId = $1.MerchantId; //商家Id",
  8901. " int TemplateId = $1.TemplateId; //模板Id",
  8902. " string Areas = $1.Areas; //地区",
  8903. " decimal FirstAmount = $1.FirstAmount; //首件数量",
  8904. " decimal FirstFee = $1.FirstFee; //首件费用",
  8905. " decimal MoreAmount = $1.MoreAmount; //续件数量",
  8906. " decimal MoreFee = $1.MoreFee; //续件费用",
  8907. "}"
  8908. ]
  8909. },
  8910. "查询某个运费按区域,并赋值": {
  8911. "prefix": "ym-db-ProductFareAreas-Update",
  8912. "body": [
  8913. "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
  8914. "if ($1 != null)",
  8915. "{",
  8916. " $1.MerchantId = $2; //商家Id",
  8917. " $1.TemplateId = $3; //模板Id",
  8918. " $1.Areas = $4; //地区",
  8919. " $1.FirstAmount = $5; //首件数量",
  8920. " $1.FirstFee = $6; //首件费用",
  8921. " $1.MoreAmount = $7; //续件数量",
  8922. " $1.MoreFee = $8; //续件费用",
  8923. "}"
  8924. ]
  8925. },
  8926. "获取运费按区域数量": {
  8927. "prefix": "ym-db-ProductFareAreas-FindAndCount",
  8928. "body": [
  8929. "int $1 = db.ProductFareAreas.Count(m => $2);",
  8930. ]
  8931. },
  8932. "添加运费按区域": {
  8933. "prefix": "ym-db-ProductFareAreas-Create",
  8934. "body": [
  8935. "db.ProductFareAreas.Add(new ProductFareAreas()",
  8936. "{",
  8937. " CreateDate = DateTime.Now,",
  8938. " UpdateDate = DateTime.Now,",
  8939. " MerchantId = $1, //商家Id",
  8940. " TemplateId = $2, //模板Id",
  8941. " Areas = $3, //地区",
  8942. " FirstAmount = $4, //首件数量",
  8943. " FirstFee = $5, //首件费用",
  8944. " MoreAmount = $6, //续件数量",
  8945. " MoreFee = $7, //续件费用",
  8946. "});"
  8947. ]
  8948. },"删除某个运费按区域": {
  8949. "prefix": "ym-db-ProductFareAreas-Delete",
  8950. "body": [
  8951. "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
  8952. "if ($1 != null)",
  8953. "{",
  8954. " db.ProductFareAreas.Remove($1);",
  8955. "}"
  8956. ]
  8957. },
  8958. "查询商品运费模板列表": {
  8959. "prefix": "ym-db-ProductFareTemp-Find",
  8960. "body": [
  8961. "List<ProductFareTemp> $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8962. "foreach (ProductFareTemp $3 in $1)",
  8963. "{",
  8964. "}"
  8965. ]
  8966. },
  8967. "查询商品运费模板列表,并取值": {
  8968. "prefix": "ym-db-ProductFareTemp-FindWithData",
  8969. "body": [
  8970. "List<ProductFareTemp> $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  8971. "foreach (ProductFareTemp $3 in $1)",
  8972. "{",
  8973. " string Name = $3.Name; //名称",
  8974. " string SendAreas = $3.SendAreas; //发货地区",
  8975. " string SendAddress = $3.SendAddress; //发货地址",
  8976. " int SendDate = $3.SendDate; //发货时间",
  8977. " ulong IsFree = $3.IsFree; //是否包邮",
  8978. " int MeterMode = $3.MeterMode; //计价方式",
  8979. " int TransportMode = $3.TransportMode; //运送方式",
  8980. " int MerchantId = $3.MerchantId; //商家Id",
  8981. " decimal FirstAmount = $3.FirstAmount; //首件数量",
  8982. " decimal FirstFee = $3.FirstFee; //首件费用",
  8983. " decimal MoreAmount = $3.MoreAmount; //续件数量",
  8984. " decimal MoreFee = $3.MoreFee; //续件费用",
  8985. "}"
  8986. ]
  8987. },
  8988. "查询商品运费模板": {
  8989. "prefix": "ym-db-ProductFareTemp-Exist",
  8990. "body": [
  8991. "bool $1 = db.ProductFareTemp.Any(m => m.Id == $2);",
  8992. ]
  8993. },
  8994. "查询某个商品运费模板,并取值": {
  8995. "prefix": "ym-db-ProductFareTemp-FindByPrimaryKey",
  8996. "body": [
  8997. "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
  8998. "if ($1 != null)",
  8999. "{",
  9000. " string Name = $1.Name; //名称",
  9001. " string SendAreas = $1.SendAreas; //发货地区",
  9002. " string SendAddress = $1.SendAddress; //发货地址",
  9003. " int SendDate = $1.SendDate; //发货时间",
  9004. " ulong IsFree = $1.IsFree; //是否包邮",
  9005. " int MeterMode = $1.MeterMode; //计价方式",
  9006. " int TransportMode = $1.TransportMode; //运送方式",
  9007. " int MerchantId = $1.MerchantId; //商家Id",
  9008. " decimal FirstAmount = $1.FirstAmount; //首件数量",
  9009. " decimal FirstFee = $1.FirstFee; //首件费用",
  9010. " decimal MoreAmount = $1.MoreAmount; //续件数量",
  9011. " decimal MoreFee = $1.MoreFee; //续件费用",
  9012. "}"
  9013. ]
  9014. },
  9015. "查询某个商品运费模板,并赋值": {
  9016. "prefix": "ym-db-ProductFareTemp-Update",
  9017. "body": [
  9018. "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
  9019. "if ($1 != null)",
  9020. "{",
  9021. " $1.Name = $2; //名称",
  9022. " $1.SendAreas = $3; //发货地区",
  9023. " $1.SendAddress = $4; //发货地址",
  9024. " $1.SendDate = $5; //发货时间",
  9025. " $1.IsFree = $6; //是否包邮",
  9026. " $1.MeterMode = $7; //计价方式",
  9027. " $1.TransportMode = $8; //运送方式",
  9028. " $1.MerchantId = $9; //商家Id",
  9029. " $1.FirstAmount = $10; //首件数量",
  9030. " $1.FirstFee = $11; //首件费用",
  9031. " $1.MoreAmount = $12; //续件数量",
  9032. " $1.MoreFee = $13; //续件费用",
  9033. "}"
  9034. ]
  9035. },
  9036. "获取商品运费模板数量": {
  9037. "prefix": "ym-db-ProductFareTemp-FindAndCount",
  9038. "body": [
  9039. "int $1 = db.ProductFareTemp.Count(m => $2);",
  9040. ]
  9041. },
  9042. "添加商品运费模板": {
  9043. "prefix": "ym-db-ProductFareTemp-Create",
  9044. "body": [
  9045. "db.ProductFareTemp.Add(new ProductFareTemp()",
  9046. "{",
  9047. " CreateDate = DateTime.Now,",
  9048. " UpdateDate = DateTime.Now,",
  9049. " Name = $1, //名称",
  9050. " SendAreas = $2, //发货地区",
  9051. " SendAddress = $3, //发货地址",
  9052. " SendDate = $4, //发货时间",
  9053. " IsFree = $5, //是否包邮",
  9054. " MeterMode = $6, //计价方式",
  9055. " TransportMode = $7, //运送方式",
  9056. " MerchantId = $8, //商家Id",
  9057. " FirstAmount = $9, //首件数量",
  9058. " FirstFee = $10, //首件费用",
  9059. " MoreAmount = $11, //续件数量",
  9060. " MoreFee = $12, //续件费用",
  9061. "});"
  9062. ]
  9063. },"删除某个商品运费模板": {
  9064. "prefix": "ym-db-ProductFareTemp-Delete",
  9065. "body": [
  9066. "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
  9067. "if ($1 != null)",
  9068. "{",
  9069. " db.ProductFareTemp.Remove($1);",
  9070. "}"
  9071. ]
  9072. },
  9073. "查询商品关键词库列表": {
  9074. "prefix": "ym-db-ProductKeys-Find",
  9075. "body": [
  9076. "List<ProductKeys> $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9077. "foreach (ProductKeys $3 in $1)",
  9078. "{",
  9079. "}"
  9080. ]
  9081. },
  9082. "查询商品关键词库列表,并取值": {
  9083. "prefix": "ym-db-ProductKeys-FindWithData",
  9084. "body": [
  9085. "List<ProductKeys> $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9086. "foreach (ProductKeys $3 in $1)",
  9087. "{",
  9088. " string Name = $3.Name; //关键词",
  9089. " string ProductIds = $3.ProductIds; //商品Id集合",
  9090. " string ColIds = $3.ColIds; //分类Id集合",
  9091. "}"
  9092. ]
  9093. },
  9094. "查询商品关键词库": {
  9095. "prefix": "ym-db-ProductKeys-Exist",
  9096. "body": [
  9097. "bool $1 = db.ProductKeys.Any(m => m.Name == $2);",
  9098. ]
  9099. },
  9100. "查询某个商品关键词库,并取值": {
  9101. "prefix": "ym-db-ProductKeys-FindByPrimaryKey",
  9102. "body": [
  9103. "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
  9104. "if ($1 != null)",
  9105. "{",
  9106. " string Name = $1.Name; //关键词",
  9107. " string ProductIds = $1.ProductIds; //商品Id集合",
  9108. " string ColIds = $1.ColIds; //分类Id集合",
  9109. "}"
  9110. ]
  9111. },
  9112. "查询某个商品关键词库,并赋值": {
  9113. "prefix": "ym-db-ProductKeys-Update",
  9114. "body": [
  9115. "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
  9116. "if ($1 != null)",
  9117. "{",
  9118. " $1.Name = $2; //关键词",
  9119. " $1.ProductIds = $3; //商品Id集合",
  9120. " $1.ColIds = $4; //分类Id集合",
  9121. "}"
  9122. ]
  9123. },
  9124. "获取商品关键词库数量": {
  9125. "prefix": "ym-db-ProductKeys-FindAndCount",
  9126. "body": [
  9127. "int $1 = db.ProductKeys.Count(m => $2);",
  9128. ]
  9129. },
  9130. "添加商品关键词库": {
  9131. "prefix": "ym-db-ProductKeys-Create",
  9132. "body": [
  9133. "db.ProductKeys.Add(new ProductKeys()",
  9134. "{",
  9135. " CreateDate = DateTime.Now,",
  9136. " UpdateDate = DateTime.Now,",
  9137. " Name = $1, //关键词",
  9138. " ProductIds = $2, //商品Id集合",
  9139. " ColIds = $3, //分类Id集合",
  9140. "});"
  9141. ]
  9142. },"删除某个商品关键词库": {
  9143. "prefix": "ym-db-ProductKeys-Delete",
  9144. "body": [
  9145. "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
  9146. "if ($1 != null)",
  9147. "{",
  9148. " db.ProductKeys.Remove($1);",
  9149. "}"
  9150. ]
  9151. },
  9152. "查询商品规格列表": {
  9153. "prefix": "ym-db-ProductNorm-Find",
  9154. "body": [
  9155. "List<ProductNorm> $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9156. "foreach (ProductNorm $3 in $1)",
  9157. "{",
  9158. "}"
  9159. ]
  9160. },
  9161. "查询商品规格列表,并取值": {
  9162. "prefix": "ym-db-ProductNorm-FindWithData",
  9163. "body": [
  9164. "List<ProductNorm> $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9165. "foreach (ProductNorm $3 in $1)",
  9166. "{",
  9167. " string ColName = $3.ColName; //名称",
  9168. " string IdList = $3.IdList; //Id集合",
  9169. " decimal Price = $3.Price; //价格",
  9170. " decimal Integral = $3.Integral; //抵扣积分",
  9171. " decimal UserPrice = $3.UserPrice; //创客价",
  9172. " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分",
  9173. " int ProductId = $3.ProductId; //商品Id",
  9174. " int Stock = $3.Stock; //库存",
  9175. " int BuyCount = $3.BuyCount; //已购买数",
  9176. " decimal CostPrice = $3.CostPrice; //成本价",
  9177. " string Code = $3.Code; //编码",
  9178. " int MerchantId = $3.MerchantId; //商家Id",
  9179. " int LimitCount = $3.LimitCount; //限购数量",
  9180. "}"
  9181. ]
  9182. },
  9183. "查询商品规格": {
  9184. "prefix": "ym-db-ProductNorm-Exist",
  9185. "body": [
  9186. "bool $1 = db.ProductNorm.Any(m => m.Id == $2);",
  9187. ]
  9188. },
  9189. "查询某个商品规格,并取值": {
  9190. "prefix": "ym-db-ProductNorm-FindByPrimaryKey",
  9191. "body": [
  9192. "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
  9193. "if ($1 != null)",
  9194. "{",
  9195. " string ColName = $1.ColName; //名称",
  9196. " string IdList = $1.IdList; //Id集合",
  9197. " decimal Price = $1.Price; //价格",
  9198. " decimal Integral = $1.Integral; //抵扣积分",
  9199. " decimal UserPrice = $1.UserPrice; //创客价",
  9200. " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分",
  9201. " int ProductId = $1.ProductId; //商品Id",
  9202. " int Stock = $1.Stock; //库存",
  9203. " int BuyCount = $1.BuyCount; //已购买数",
  9204. " decimal CostPrice = $1.CostPrice; //成本价",
  9205. " string Code = $1.Code; //编码",
  9206. " int MerchantId = $1.MerchantId; //商家Id",
  9207. " int LimitCount = $1.LimitCount; //限购数量",
  9208. "}"
  9209. ]
  9210. },
  9211. "查询某个商品规格,并赋值": {
  9212. "prefix": "ym-db-ProductNorm-Update",
  9213. "body": [
  9214. "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
  9215. "if ($1 != null)",
  9216. "{",
  9217. " $1.ColName = $2; //名称",
  9218. " $1.IdList = $3; //Id集合",
  9219. " $1.Price = $4; //价格",
  9220. " $1.Integral = $5; //抵扣积分",
  9221. " $1.UserPrice = $6; //创客价",
  9222. " $1.UserIntegral = $7; //创客抵扣积分",
  9223. " $1.ProductId = $8; //商品Id",
  9224. " $1.Stock = $9; //库存",
  9225. " $1.BuyCount = $10; //已购买数",
  9226. " $1.CostPrice = $11; //成本价",
  9227. " $1.Code = $12; //编码",
  9228. " $1.MerchantId = $13; //商家Id",
  9229. " $1.LimitCount = $14; //限购数量",
  9230. "}"
  9231. ]
  9232. },
  9233. "获取商品规格数量": {
  9234. "prefix": "ym-db-ProductNorm-FindAndCount",
  9235. "body": [
  9236. "int $1 = db.ProductNorm.Count(m => $2);",
  9237. ]
  9238. },
  9239. "添加商品规格": {
  9240. "prefix": "ym-db-ProductNorm-Create",
  9241. "body": [
  9242. "db.ProductNorm.Add(new ProductNorm()",
  9243. "{",
  9244. " CreateDate = DateTime.Now,",
  9245. " UpdateDate = DateTime.Now,",
  9246. " ColName = $1, //名称",
  9247. " IdList = $2, //Id集合",
  9248. " Price = $3, //价格",
  9249. " Integral = $4, //抵扣积分",
  9250. " UserPrice = $5, //创客价",
  9251. " UserIntegral = $6, //创客抵扣积分",
  9252. " ProductId = $7, //商品Id",
  9253. " Stock = $8, //库存",
  9254. " BuyCount = $9, //已购买数",
  9255. " CostPrice = $10, //成本价",
  9256. " Code = $11, //编码",
  9257. " MerchantId = $12, //商家Id",
  9258. " LimitCount = $13, //限购数量",
  9259. "});"
  9260. ]
  9261. },"删除某个商品规格": {
  9262. "prefix": "ym-db-ProductNorm-Delete",
  9263. "body": [
  9264. "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
  9265. "if ($1 != null)",
  9266. "{",
  9267. " db.ProductNorm.Remove($1);",
  9268. "}"
  9269. ]
  9270. },
  9271. "查询商品规格项目列表": {
  9272. "prefix": "ym-db-ProductNormItem-Find",
  9273. "body": [
  9274. "List<ProductNormItem> $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9275. "foreach (ProductNormItem $3 in $1)",
  9276. "{",
  9277. "}"
  9278. ]
  9279. },
  9280. "查询商品规格项目列表,并取值": {
  9281. "prefix": "ym-db-ProductNormItem-FindWithData",
  9282. "body": [
  9283. "List<ProductNormItem> $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9284. "foreach (ProductNormItem $3 in $1)",
  9285. "{",
  9286. " string ColName = $3.ColName; //名称",
  9287. " int ParentId = $3.ParentId; //父级Id",
  9288. " int MerchantId = $3.MerchantId; //商家Id",
  9289. " int ProductId = $3.ProductId; //商品Id",
  9290. "}"
  9291. ]
  9292. },
  9293. "查询商品规格项目": {
  9294. "prefix": "ym-db-ProductNormItem-Exist",
  9295. "body": [
  9296. "bool $1 = db.ProductNormItem.Any(m => m.Id == $2);",
  9297. ]
  9298. },
  9299. "查询某个商品规格项目,并取值": {
  9300. "prefix": "ym-db-ProductNormItem-FindByPrimaryKey",
  9301. "body": [
  9302. "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
  9303. "if ($1 != null)",
  9304. "{",
  9305. " string ColName = $1.ColName; //名称",
  9306. " int ParentId = $1.ParentId; //父级Id",
  9307. " int MerchantId = $1.MerchantId; //商家Id",
  9308. " int ProductId = $1.ProductId; //商品Id",
  9309. "}"
  9310. ]
  9311. },
  9312. "查询某个商品规格项目,并赋值": {
  9313. "prefix": "ym-db-ProductNormItem-Update",
  9314. "body": [
  9315. "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
  9316. "if ($1 != null)",
  9317. "{",
  9318. " $1.ColName = $2; //名称",
  9319. " $1.ParentId = $3; //父级Id",
  9320. " $1.MerchantId = $4; //商家Id",
  9321. " $1.ProductId = $5; //商品Id",
  9322. "}"
  9323. ]
  9324. },
  9325. "获取商品规格项目数量": {
  9326. "prefix": "ym-db-ProductNormItem-FindAndCount",
  9327. "body": [
  9328. "int $1 = db.ProductNormItem.Count(m => $2);",
  9329. ]
  9330. },
  9331. "添加商品规格项目": {
  9332. "prefix": "ym-db-ProductNormItem-Create",
  9333. "body": [
  9334. "db.ProductNormItem.Add(new ProductNormItem()",
  9335. "{",
  9336. " CreateDate = DateTime.Now,",
  9337. " UpdateDate = DateTime.Now,",
  9338. " ColName = $1, //名称",
  9339. " ParentId = $2, //父级Id",
  9340. " MerchantId = $3, //商家Id",
  9341. " ProductId = $4, //商品Id",
  9342. "});"
  9343. ]
  9344. },"删除某个商品规格项目": {
  9345. "prefix": "ym-db-ProductNormItem-Delete",
  9346. "body": [
  9347. "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
  9348. "if ($1 != null)",
  9349. "{",
  9350. " db.ProductNormItem.Remove($1);",
  9351. "}"
  9352. ]
  9353. },
  9354. "查询商品规格模板列表": {
  9355. "prefix": "ym-db-ProductNormTemp-Find",
  9356. "body": [
  9357. "List<ProductNormTemp> $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9358. "foreach (ProductNormTemp $3 in $1)",
  9359. "{",
  9360. "}"
  9361. ]
  9362. },
  9363. "查询商品规格模板列表,并取值": {
  9364. "prefix": "ym-db-ProductNormTemp-FindWithData",
  9365. "body": [
  9366. "List<ProductNormTemp> $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9367. "foreach (ProductNormTemp $3 in $1)",
  9368. "{",
  9369. " string Name = $3.Name; //名称",
  9370. " int MerchantId = $3.MerchantId; //商家Id",
  9371. " string TempJsonData = $3.TempJsonData; //模板内容",
  9372. "}"
  9373. ]
  9374. },
  9375. "查询商品规格模板": {
  9376. "prefix": "ym-db-ProductNormTemp-Exist",
  9377. "body": [
  9378. "bool $1 = db.ProductNormTemp.Any(m => m.Id == $2);",
  9379. ]
  9380. },
  9381. "查询某个商品规格模板,并取值": {
  9382. "prefix": "ym-db-ProductNormTemp-FindByPrimaryKey",
  9383. "body": [
  9384. "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
  9385. "if ($1 != null)",
  9386. "{",
  9387. " string Name = $1.Name; //名称",
  9388. " int MerchantId = $1.MerchantId; //商家Id",
  9389. " string TempJsonData = $1.TempJsonData; //模板内容",
  9390. "}"
  9391. ]
  9392. },
  9393. "查询某个商品规格模板,并赋值": {
  9394. "prefix": "ym-db-ProductNormTemp-Update",
  9395. "body": [
  9396. "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
  9397. "if ($1 != null)",
  9398. "{",
  9399. " $1.Name = $2; //名称",
  9400. " $1.MerchantId = $3; //商家Id",
  9401. " $1.TempJsonData = $4; //模板内容",
  9402. "}"
  9403. ]
  9404. },
  9405. "获取商品规格模板数量": {
  9406. "prefix": "ym-db-ProductNormTemp-FindAndCount",
  9407. "body": [
  9408. "int $1 = db.ProductNormTemp.Count(m => $2);",
  9409. ]
  9410. },
  9411. "添加商品规格模板": {
  9412. "prefix": "ym-db-ProductNormTemp-Create",
  9413. "body": [
  9414. "db.ProductNormTemp.Add(new ProductNormTemp()",
  9415. "{",
  9416. " CreateDate = DateTime.Now,",
  9417. " UpdateDate = DateTime.Now,",
  9418. " Name = $1, //名称",
  9419. " MerchantId = $2, //商家Id",
  9420. " TempJsonData = $3, //模板内容",
  9421. "});"
  9422. ]
  9423. },"删除某个商品规格模板": {
  9424. "prefix": "ym-db-ProductNormTemp-Delete",
  9425. "body": [
  9426. "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
  9427. "if ($1 != null)",
  9428. "{",
  9429. " db.ProductNormTemp.Remove($1);",
  9430. "}"
  9431. ]
  9432. },
  9433. "查询商品信息列表": {
  9434. "prefix": "ym-db-Products-Find",
  9435. "body": [
  9436. "List<Products> $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9437. "foreach (Products $3 in $1)",
  9438. "{",
  9439. "}"
  9440. ]
  9441. },
  9442. "查询商品信息列表,并取值": {
  9443. "prefix": "ym-db-Products-FindWithData",
  9444. "body": [
  9445. "List<Products> $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9446. "foreach (Products $3 in $1)",
  9447. "{",
  9448. " string ProductName = $3.ProductName; //商品名称",
  9449. " string Details = $3.Details; //简介",
  9450. " string Contents = $3.Contents; //内容",
  9451. " int Stock = $3.Stock; //库存",
  9452. " int BuyCount = $3.BuyCount; //已购买数",
  9453. " string ListPicPath = $3.ListPicPath; //列表图片",
  9454. " string DetailPicPath = $3.DetailPicPath; //图集",
  9455. " string ColId = $3.ColId; //分类",
  9456. " int CommentCount = $3.CommentCount; //评价数",
  9457. " decimal GoodPercent = $3.GoodPercent; //好评率",
  9458. " ulong IsRecommend = $3.IsRecommend; //推荐",
  9459. " int MerchantId = $3.MerchantId; //商家Id",
  9460. " DateTime StartDate = $3.StartDate; //开始时间",
  9461. " DateTime EndDate = $3.EndDate; //结束时间",
  9462. " ulong IsLimit = $3.IsLimit; //限时抢购",
  9463. " decimal SourcePrice = $3.SourcePrice; //原价",
  9464. " decimal Price = $3.Price; //价格",
  9465. " decimal Integral = $3.Integral; //抵扣积分",
  9466. " decimal MemberPrice = $3.MemberPrice; //创客价",
  9467. " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分",
  9468. " DateTime PublishDate = $3.PublishDate; //上架时间",
  9469. " decimal CostPrice = $3.CostPrice; //成本价",
  9470. " int FareTemplateId = $3.FareTemplateId; //运费模板Id",
  9471. " int LimitCount = $3.LimitCount; //限购数量",
  9472. " string KeyWord = $3.KeyWord; //关键词",
  9473. " int MerchantClassId = $3.MerchantClassId; //商家分类",
  9474. " string NormIds = $3.NormIds; //商品规格Id",
  9475. " string ShareDetail = $3.ShareDetail; //分享描述",
  9476. " string LinkUrl = $3.LinkUrl; //外部链接",
  9477. " string NormJson = $3.NormJson; //规格json",
  9478. " string MerchantColId = $3.MerchantColId; //商家商品分类",
  9479. " int MonthSale = $3.MonthSale; //月销量",
  9480. " ulong IsRecommend2 = $3.IsRecommend2; //推荐2",
  9481. " ulong IsRecommend3 = $3.IsRecommend3; //推荐3",
  9482. " string Title = $3.Title; //宣传标语",
  9483. " string Title2 = $3.Title2; //宣传标语2",
  9484. " string ProductCode = $3.ProductCode; //商品编号",
  9485. "}"
  9486. ]
  9487. },
  9488. "查询商品信息": {
  9489. "prefix": "ym-db-Products-Exist",
  9490. "body": [
  9491. "bool $1 = db.Products.Any(m => m.Id == $2);",
  9492. ]
  9493. },
  9494. "查询某个商品信息,并取值": {
  9495. "prefix": "ym-db-Products-FindByPrimaryKey",
  9496. "body": [
  9497. "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
  9498. "if ($1 != null)",
  9499. "{",
  9500. " string ProductName = $1.ProductName; //商品名称",
  9501. " string Details = $1.Details; //简介",
  9502. " string Contents = $1.Contents; //内容",
  9503. " int Stock = $1.Stock; //库存",
  9504. " int BuyCount = $1.BuyCount; //已购买数",
  9505. " string ListPicPath = $1.ListPicPath; //列表图片",
  9506. " string DetailPicPath = $1.DetailPicPath; //图集",
  9507. " string ColId = $1.ColId; //分类",
  9508. " int CommentCount = $1.CommentCount; //评价数",
  9509. " decimal GoodPercent = $1.GoodPercent; //好评率",
  9510. " ulong IsRecommend = $1.IsRecommend; //推荐",
  9511. " int MerchantId = $1.MerchantId; //商家Id",
  9512. " DateTime StartDate = $1.StartDate; //开始时间",
  9513. " DateTime EndDate = $1.EndDate; //结束时间",
  9514. " ulong IsLimit = $1.IsLimit; //限时抢购",
  9515. " decimal SourcePrice = $1.SourcePrice; //原价",
  9516. " decimal Price = $1.Price; //价格",
  9517. " decimal Integral = $1.Integral; //抵扣积分",
  9518. " decimal MemberPrice = $1.MemberPrice; //创客价",
  9519. " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分",
  9520. " DateTime PublishDate = $1.PublishDate; //上架时间",
  9521. " decimal CostPrice = $1.CostPrice; //成本价",
  9522. " int FareTemplateId = $1.FareTemplateId; //运费模板Id",
  9523. " int LimitCount = $1.LimitCount; //限购数量",
  9524. " string KeyWord = $1.KeyWord; //关键词",
  9525. " int MerchantClassId = $1.MerchantClassId; //商家分类",
  9526. " string NormIds = $1.NormIds; //商品规格Id",
  9527. " string ShareDetail = $1.ShareDetail; //分享描述",
  9528. " string LinkUrl = $1.LinkUrl; //外部链接",
  9529. " string NormJson = $1.NormJson; //规格json",
  9530. " string MerchantColId = $1.MerchantColId; //商家商品分类",
  9531. " int MonthSale = $1.MonthSale; //月销量",
  9532. " ulong IsRecommend2 = $1.IsRecommend2; //推荐2",
  9533. " ulong IsRecommend3 = $1.IsRecommend3; //推荐3",
  9534. " string Title = $1.Title; //宣传标语",
  9535. " string Title2 = $1.Title2; //宣传标语2",
  9536. " string ProductCode = $1.ProductCode; //商品编号",
  9537. "}"
  9538. ]
  9539. },
  9540. "查询某个商品信息,并赋值": {
  9541. "prefix": "ym-db-Products-Update",
  9542. "body": [
  9543. "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
  9544. "if ($1 != null)",
  9545. "{",
  9546. " $1.ProductName = $2; //商品名称",
  9547. " $1.Details = $3; //简介",
  9548. " $1.Contents = $4; //内容",
  9549. " $1.Stock = $5; //库存",
  9550. " $1.BuyCount = $6; //已购买数",
  9551. " $1.ListPicPath = $7; //列表图片",
  9552. " $1.DetailPicPath = $8; //图集",
  9553. " $1.ColId = $9; //分类",
  9554. " $1.CommentCount = $10; //评价数",
  9555. " $1.GoodPercent = $11; //好评率",
  9556. " $1.IsRecommend = $12; //推荐",
  9557. " $1.MerchantId = $13; //商家Id",
  9558. " $1.StartDate = $14; //开始时间",
  9559. " $1.EndDate = $15; //结束时间",
  9560. " $1.IsLimit = $16; //限时抢购",
  9561. " $1.SourcePrice = $17; //原价",
  9562. " $1.Price = $18; //价格",
  9563. " $1.Integral = $19; //抵扣积分",
  9564. " $1.MemberPrice = $20; //创客价",
  9565. " $1.UserIntegral = $21; //创客抵扣积分",
  9566. " $1.PublishDate = $22; //上架时间",
  9567. " $1.CostPrice = $23; //成本价",
  9568. " $1.FareTemplateId = $24; //运费模板Id",
  9569. " $1.LimitCount = $25; //限购数量",
  9570. " $1.KeyWord = $26; //关键词",
  9571. " $1.MerchantClassId = $27; //商家分类",
  9572. " $1.NormIds = $28; //商品规格Id",
  9573. " $1.ShareDetail = $29; //分享描述",
  9574. " $1.LinkUrl = $30; //外部链接",
  9575. " $1.NormJson = $31; //规格json",
  9576. " $1.MerchantColId = $32; //商家商品分类",
  9577. " $1.MonthSale = $33; //月销量",
  9578. " $1.IsRecommend2 = $34; //推荐2",
  9579. " $1.IsRecommend3 = $35; //推荐3",
  9580. " $1.Title = $36; //宣传标语",
  9581. " $1.Title2 = $37; //宣传标语2",
  9582. " $1.ProductCode = $38; //商品编号",
  9583. "}"
  9584. ]
  9585. },
  9586. "获取商品信息数量": {
  9587. "prefix": "ym-db-Products-FindAndCount",
  9588. "body": [
  9589. "int $1 = db.Products.Count(m => $2);",
  9590. ]
  9591. },
  9592. "添加商品信息": {
  9593. "prefix": "ym-db-Products-Create",
  9594. "body": [
  9595. "db.Products.Add(new Products()",
  9596. "{",
  9597. " CreateDate = DateTime.Now,",
  9598. " UpdateDate = DateTime.Now,",
  9599. " ProductName = $1, //商品名称",
  9600. " Details = $2, //简介",
  9601. " Contents = $3, //内容",
  9602. " Stock = $4, //库存",
  9603. " BuyCount = $5, //已购买数",
  9604. " ListPicPath = $6, //列表图片",
  9605. " DetailPicPath = $7, //图集",
  9606. " ColId = $8, //分类",
  9607. " CommentCount = $9, //评价数",
  9608. " GoodPercent = $10, //好评率",
  9609. " IsRecommend = $11, //推荐",
  9610. " MerchantId = $12, //商家Id",
  9611. " StartDate = $13, //开始时间",
  9612. " EndDate = $14, //结束时间",
  9613. " IsLimit = $15, //限时抢购",
  9614. " SourcePrice = $16, //原价",
  9615. " Price = $17, //价格",
  9616. " Integral = $18, //抵扣积分",
  9617. " MemberPrice = $19, //创客价",
  9618. " UserIntegral = $20, //创客抵扣积分",
  9619. " PublishDate = $21, //上架时间",
  9620. " CostPrice = $22, //成本价",
  9621. " FareTemplateId = $23, //运费模板Id",
  9622. " LimitCount = $24, //限购数量",
  9623. " KeyWord = $25, //关键词",
  9624. " MerchantClassId = $26, //商家分类",
  9625. " NormIds = $27, //商品规格Id",
  9626. " ShareDetail = $28, //分享描述",
  9627. " LinkUrl = $29, //外部链接",
  9628. " NormJson = $30, //规格json",
  9629. " MerchantColId = $31, //商家商品分类",
  9630. " MonthSale = $32, //月销量",
  9631. " IsRecommend2 = $33, //推荐2",
  9632. " IsRecommend3 = $34, //推荐3",
  9633. " Title = $35, //宣传标语",
  9634. " Title2 = $36, //宣传标语2",
  9635. " ProductCode = $37, //商品编号",
  9636. "});"
  9637. ]
  9638. },"删除某个商品信息": {
  9639. "prefix": "ym-db-Products-Delete",
  9640. "body": [
  9641. "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
  9642. "if ($1 != null)",
  9643. "{",
  9644. " db.Products.Remove($1);",
  9645. "}"
  9646. ]
  9647. },
  9648. "查询激活奖励设置列表": {
  9649. "prefix": "ym-db-ProfitObjectActivations-Find",
  9650. "body": [
  9651. "List<ProfitObjectActivations> $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9652. "foreach (ProfitObjectActivations $3 in $1)",
  9653. "{",
  9654. "}"
  9655. ]
  9656. },
  9657. "查询激活奖励设置列表,并取值": {
  9658. "prefix": "ym-db-ProfitObjectActivations-FindWithData",
  9659. "body": [
  9660. "List<ProfitObjectActivations> $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9661. "foreach (ProfitObjectActivations $3 in $1)",
  9662. "{",
  9663. " int LimitDateKind = $3.LimitDateKind; //限制时间类型",
  9664. " int LimitDateVal = $3.LimitDateVal; //限制时间值",
  9665. " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制",
  9666. " decimal ExpiredNumber = $3.ExpiredNumber; //过期收益值",
  9667. " int ObjectId = $3.ObjectId; //对象Id",
  9668. " decimal ProfitNumber = $3.ProfitNumber; //获得收益值",
  9669. " int MachineCount = $3.MachineCount; //赠机台数",
  9670. " DateTime StartDate = $3.StartDate; //开始时间",
  9671. " DateTime EndDate = $3.EndDate; //结束时间",
  9672. " string Code = $3.Code; //编码",
  9673. "}"
  9674. ]
  9675. },
  9676. "查询激活奖励设置": {
  9677. "prefix": "ym-db-ProfitObjectActivations-Exist",
  9678. "body": [
  9679. "bool $1 = db.ProfitObjectActivations.Any(m => m.Id == $2);",
  9680. ]
  9681. },
  9682. "查询某个激活奖励设置,并取值": {
  9683. "prefix": "ym-db-ProfitObjectActivations-FindByPrimaryKey",
  9684. "body": [
  9685. "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
  9686. "if ($1 != null)",
  9687. "{",
  9688. " int LimitDateKind = $1.LimitDateKind; //限制时间类型",
  9689. " int LimitDateVal = $1.LimitDateVal; //限制时间值",
  9690. " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制",
  9691. " decimal ExpiredNumber = $1.ExpiredNumber; //过期收益值",
  9692. " int ObjectId = $1.ObjectId; //对象Id",
  9693. " decimal ProfitNumber = $1.ProfitNumber; //获得收益值",
  9694. " int MachineCount = $1.MachineCount; //赠机台数",
  9695. " DateTime StartDate = $1.StartDate; //开始时间",
  9696. " DateTime EndDate = $1.EndDate; //结束时间",
  9697. " string Code = $1.Code; //编码",
  9698. "}"
  9699. ]
  9700. },
  9701. "查询某个激活奖励设置,并赋值": {
  9702. "prefix": "ym-db-ProfitObjectActivations-Update",
  9703. "body": [
  9704. "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
  9705. "if ($1 != null)",
  9706. "{",
  9707. " $1.LimitDateKind = $2; //限制时间类型",
  9708. " $1.LimitDateVal = $3; //限制时间值",
  9709. " $1.LimitCustomerDate = $4; //自定时间限制",
  9710. " $1.ExpiredNumber = $5; //过期收益值",
  9711. " $1.ObjectId = $6; //对象Id",
  9712. " $1.ProfitNumber = $7; //获得收益值",
  9713. " $1.MachineCount = $8; //赠机台数",
  9714. " $1.StartDate = $9; //开始时间",
  9715. " $1.EndDate = $10; //结束时间",
  9716. " $1.Code = $11; //编码",
  9717. "}"
  9718. ]
  9719. },
  9720. "获取激活奖励设置数量": {
  9721. "prefix": "ym-db-ProfitObjectActivations-FindAndCount",
  9722. "body": [
  9723. "int $1 = db.ProfitObjectActivations.Count(m => $2);",
  9724. ]
  9725. },
  9726. "添加激活奖励设置": {
  9727. "prefix": "ym-db-ProfitObjectActivations-Create",
  9728. "body": [
  9729. "db.ProfitObjectActivations.Add(new ProfitObjectActivations()",
  9730. "{",
  9731. " CreateDate = DateTime.Now,",
  9732. " UpdateDate = DateTime.Now,",
  9733. " LimitDateKind = $1, //限制时间类型",
  9734. " LimitDateVal = $2, //限制时间值",
  9735. " LimitCustomerDate = $3, //自定时间限制",
  9736. " ExpiredNumber = $4, //过期收益值",
  9737. " ObjectId = $5, //对象Id",
  9738. " ProfitNumber = $6, //获得收益值",
  9739. " MachineCount = $7, //赠机台数",
  9740. " StartDate = $8, //开始时间",
  9741. " EndDate = $9, //结束时间",
  9742. " Code = $10, //编码",
  9743. "});"
  9744. ]
  9745. },"删除某个激活奖励设置": {
  9746. "prefix": "ym-db-ProfitObjectActivations-Delete",
  9747. "body": [
  9748. "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
  9749. "if ($1 != null)",
  9750. "{",
  9751. " db.ProfitObjectActivations.Remove($1);",
  9752. "}"
  9753. ]
  9754. },
  9755. "查询继续分润层级列表": {
  9756. "prefix": "ym-db-ProfitObjectContinueFloors-Find",
  9757. "body": [
  9758. "List<ProfitObjectContinueFloors> $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9759. "foreach (ProfitObjectContinueFloors $3 in $1)",
  9760. "{",
  9761. "}"
  9762. ]
  9763. },
  9764. "查询继续分润层级列表,并取值": {
  9765. "prefix": "ym-db-ProfitObjectContinueFloors-FindWithData",
  9766. "body": [
  9767. "List<ProfitObjectContinueFloors> $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9768. "foreach (ProfitObjectContinueFloors $3 in $1)",
  9769. "{",
  9770. " int FloorNumber = $3.FloorNumber; //层级",
  9771. " decimal Percents = $3.Percents; //分润比例",
  9772. " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
  9773. " int ObjectId = $3.ObjectId; //对象Id",
  9774. "}"
  9775. ]
  9776. },
  9777. "查询继续分润层级": {
  9778. "prefix": "ym-db-ProfitObjectContinueFloors-Exist",
  9779. "body": [
  9780. "bool $1 = db.ProfitObjectContinueFloors.Any(m => m.Id == $2);",
  9781. ]
  9782. },
  9783. "查询某个继续分润层级,并取值": {
  9784. "prefix": "ym-db-ProfitObjectContinueFloors-FindByPrimaryKey",
  9785. "body": [
  9786. "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
  9787. "if ($1 != null)",
  9788. "{",
  9789. " int FloorNumber = $1.FloorNumber; //层级",
  9790. " decimal Percents = $1.Percents; //分润比例",
  9791. " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
  9792. " int ObjectId = $1.ObjectId; //对象Id",
  9793. "}"
  9794. ]
  9795. },
  9796. "查询某个继续分润层级,并赋值": {
  9797. "prefix": "ym-db-ProfitObjectContinueFloors-Update",
  9798. "body": [
  9799. "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
  9800. "if ($1 != null)",
  9801. "{",
  9802. " $1.FloorNumber = $2; //层级",
  9803. " $1.Percents = $3; //分润比例",
  9804. " $1.AddProfitVal = $4; //附加分润值",
  9805. " $1.ObjectId = $5; //对象Id",
  9806. "}"
  9807. ]
  9808. },
  9809. "获取继续分润层级数量": {
  9810. "prefix": "ym-db-ProfitObjectContinueFloors-FindAndCount",
  9811. "body": [
  9812. "int $1 = db.ProfitObjectContinueFloors.Count(m => $2);",
  9813. ]
  9814. },
  9815. "添加继续分润层级": {
  9816. "prefix": "ym-db-ProfitObjectContinueFloors-Create",
  9817. "body": [
  9818. "db.ProfitObjectContinueFloors.Add(new ProfitObjectContinueFloors()",
  9819. "{",
  9820. " CreateDate = DateTime.Now,",
  9821. " UpdateDate = DateTime.Now,",
  9822. " FloorNumber = $1, //层级",
  9823. " Percents = $2, //分润比例",
  9824. " AddProfitVal = $3, //附加分润值",
  9825. " ObjectId = $4, //对象Id",
  9826. "});"
  9827. ]
  9828. },"删除某个继续分润层级": {
  9829. "prefix": "ym-db-ProfitObjectContinueFloors-Delete",
  9830. "body": [
  9831. "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
  9832. "if ($1 != null)",
  9833. "{",
  9834. " db.ProfitObjectContinueFloors.Remove($1);",
  9835. "}"
  9836. ]
  9837. },
  9838. "查询分润对象层级列表": {
  9839. "prefix": "ym-db-ProfitObjectFloors-Find",
  9840. "body": [
  9841. "List<ProfitObjectFloors> $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9842. "foreach (ProfitObjectFloors $3 in $1)",
  9843. "{",
  9844. "}"
  9845. ]
  9846. },
  9847. "查询分润对象层级列表,并取值": {
  9848. "prefix": "ym-db-ProfitObjectFloors-FindWithData",
  9849. "body": [
  9850. "List<ProfitObjectFloors> $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9851. "foreach (ProfitObjectFloors $3 in $1)",
  9852. "{",
  9853. " int FloorNumber = $3.FloorNumber; //层级",
  9854. " decimal Percents = $3.Percents; //分润比例",
  9855. " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
  9856. " ulong FloorDiff = $3.FloorDiff; //级差",
  9857. " int ObjectId = $3.ObjectId; //对象Id",
  9858. "}"
  9859. ]
  9860. },
  9861. "查询分润对象层级": {
  9862. "prefix": "ym-db-ProfitObjectFloors-Exist",
  9863. "body": [
  9864. "bool $1 = db.ProfitObjectFloors.Any(m => m.Id == $2);",
  9865. ]
  9866. },
  9867. "查询某个分润对象层级,并取值": {
  9868. "prefix": "ym-db-ProfitObjectFloors-FindByPrimaryKey",
  9869. "body": [
  9870. "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
  9871. "if ($1 != null)",
  9872. "{",
  9873. " int FloorNumber = $1.FloorNumber; //层级",
  9874. " decimal Percents = $1.Percents; //分润比例",
  9875. " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
  9876. " ulong FloorDiff = $1.FloorDiff; //级差",
  9877. " int ObjectId = $1.ObjectId; //对象Id",
  9878. "}"
  9879. ]
  9880. },
  9881. "查询某个分润对象层级,并赋值": {
  9882. "prefix": "ym-db-ProfitObjectFloors-Update",
  9883. "body": [
  9884. "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
  9885. "if ($1 != null)",
  9886. "{",
  9887. " $1.FloorNumber = $2; //层级",
  9888. " $1.Percents = $3; //分润比例",
  9889. " $1.AddProfitVal = $4; //附加分润值",
  9890. " $1.FloorDiff = $5; //级差",
  9891. " $1.ObjectId = $6; //对象Id",
  9892. "}"
  9893. ]
  9894. },
  9895. "获取分润对象层级数量": {
  9896. "prefix": "ym-db-ProfitObjectFloors-FindAndCount",
  9897. "body": [
  9898. "int $1 = db.ProfitObjectFloors.Count(m => $2);",
  9899. ]
  9900. },
  9901. "添加分润对象层级": {
  9902. "prefix": "ym-db-ProfitObjectFloors-Create",
  9903. "body": [
  9904. "db.ProfitObjectFloors.Add(new ProfitObjectFloors()",
  9905. "{",
  9906. " CreateDate = DateTime.Now,",
  9907. " UpdateDate = DateTime.Now,",
  9908. " FloorNumber = $1, //层级",
  9909. " Percents = $2, //分润比例",
  9910. " AddProfitVal = $3, //附加分润值",
  9911. " FloorDiff = $4, //级差",
  9912. " ObjectId = $5, //对象Id",
  9913. "});"
  9914. ]
  9915. },"删除某个分润对象层级": {
  9916. "prefix": "ym-db-ProfitObjectFloors-Delete",
  9917. "body": [
  9918. "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
  9919. "if ($1 != null)",
  9920. "{",
  9921. " db.ProfitObjectFloors.Remove($1);",
  9922. "}"
  9923. ]
  9924. },
  9925. "查询分润对象等级分类列表": {
  9926. "prefix": "ym-db-ProfitObjectLevelKinds-Find",
  9927. "body": [
  9928. "List<ProfitObjectLevelKinds> $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9929. "foreach (ProfitObjectLevelKinds $3 in $1)",
  9930. "{",
  9931. "}"
  9932. ]
  9933. },
  9934. "查询分润对象等级分类列表,并取值": {
  9935. "prefix": "ym-db-ProfitObjectLevelKinds-FindWithData",
  9936. "body": [
  9937. "List<ProfitObjectLevelKinds> $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  9938. "foreach (ProfitObjectLevelKinds $3 in $1)",
  9939. "{",
  9940. " string Name = $3.Name; //名称",
  9941. " int ObjectId = $3.ObjectId; //对象id",
  9942. "}"
  9943. ]
  9944. },
  9945. "查询分润对象等级分类": {
  9946. "prefix": "ym-db-ProfitObjectLevelKinds-Exist",
  9947. "body": [
  9948. "bool $1 = db.ProfitObjectLevelKinds.Any(m => m.Id == $2);",
  9949. ]
  9950. },
  9951. "查询某个分润对象等级分类,并取值": {
  9952. "prefix": "ym-db-ProfitObjectLevelKinds-FindByPrimaryKey",
  9953. "body": [
  9954. "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
  9955. "if ($1 != null)",
  9956. "{",
  9957. " string Name = $1.Name; //名称",
  9958. " int ObjectId = $1.ObjectId; //对象id",
  9959. "}"
  9960. ]
  9961. },
  9962. "查询某个分润对象等级分类,并赋值": {
  9963. "prefix": "ym-db-ProfitObjectLevelKinds-Update",
  9964. "body": [
  9965. "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
  9966. "if ($1 != null)",
  9967. "{",
  9968. " $1.Name = $2; //名称",
  9969. " $1.ObjectId = $3; //对象id",
  9970. "}"
  9971. ]
  9972. },
  9973. "获取分润对象等级分类数量": {
  9974. "prefix": "ym-db-ProfitObjectLevelKinds-FindAndCount",
  9975. "body": [
  9976. "int $1 = db.ProfitObjectLevelKinds.Count(m => $2);",
  9977. ]
  9978. },
  9979. "添加分润对象等级分类": {
  9980. "prefix": "ym-db-ProfitObjectLevelKinds-Create",
  9981. "body": [
  9982. "db.ProfitObjectLevelKinds.Add(new ProfitObjectLevelKinds()",
  9983. "{",
  9984. " CreateDate = DateTime.Now,",
  9985. " UpdateDate = DateTime.Now,",
  9986. " Name = $1, //名称",
  9987. " ObjectId = $2, //对象id",
  9988. "});"
  9989. ]
  9990. },"删除某个分润对象等级分类": {
  9991. "prefix": "ym-db-ProfitObjectLevelKinds-Delete",
  9992. "body": [
  9993. "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
  9994. "if ($1 != null)",
  9995. "{",
  9996. " db.ProfitObjectLevelKinds.Remove($1);",
  9997. "}"
  9998. ]
  9999. },
  10000. "查询分润对象等级列表": {
  10001. "prefix": "ym-db-ProfitObjectLevels-Find",
  10002. "body": [
  10003. "List<ProfitObjectLevels> $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10004. "foreach (ProfitObjectLevels $3 in $1)",
  10005. "{",
  10006. "}"
  10007. ]
  10008. },
  10009. "查询分润对象等级列表,并取值": {
  10010. "prefix": "ym-db-ProfitObjectLevels-FindWithData",
  10011. "body": [
  10012. "List<ProfitObjectLevels> $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10013. "foreach (ProfitObjectLevels $3 in $1)",
  10014. "{",
  10015. " int LevelNumber = $3.LevelNumber; //级别",
  10016. " string Name = $3.Name; //名称",
  10017. " decimal Percents = $3.Percents; //分润比例",
  10018. " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
  10019. " ulong LevelDiff = $3.LevelDiff; //级差",
  10020. " int KindId = $3.KindId; //分类Id",
  10021. " decimal DebitPercents = $3.DebitPercents; //借记卡分润比例",
  10022. " decimal DebitAddProfitVal = $3.DebitAddProfitVal; //借记卡附加分润值",
  10023. "}"
  10024. ]
  10025. },
  10026. "查询分润对象等级": {
  10027. "prefix": "ym-db-ProfitObjectLevels-Exist",
  10028. "body": [
  10029. "bool $1 = db.ProfitObjectLevels.Any(m => m.Id == $2);",
  10030. ]
  10031. },
  10032. "查询某个分润对象等级,并取值": {
  10033. "prefix": "ym-db-ProfitObjectLevels-FindByPrimaryKey",
  10034. "body": [
  10035. "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
  10036. "if ($1 != null)",
  10037. "{",
  10038. " int LevelNumber = $1.LevelNumber; //级别",
  10039. " string Name = $1.Name; //名称",
  10040. " decimal Percents = $1.Percents; //分润比例",
  10041. " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
  10042. " ulong LevelDiff = $1.LevelDiff; //级差",
  10043. " int KindId = $1.KindId; //分类Id",
  10044. " decimal DebitPercents = $1.DebitPercents; //借记卡分润比例",
  10045. " decimal DebitAddProfitVal = $1.DebitAddProfitVal; //借记卡附加分润值",
  10046. "}"
  10047. ]
  10048. },
  10049. "查询某个分润对象等级,并赋值": {
  10050. "prefix": "ym-db-ProfitObjectLevels-Update",
  10051. "body": [
  10052. "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
  10053. "if ($1 != null)",
  10054. "{",
  10055. " $1.LevelNumber = $2; //级别",
  10056. " $1.Name = $3; //名称",
  10057. " $1.Percents = $4; //分润比例",
  10058. " $1.AddProfitVal = $5; //附加分润值",
  10059. " $1.LevelDiff = $6; //级差",
  10060. " $1.KindId = $7; //分类Id",
  10061. " $1.DebitPercents = $8; //借记卡分润比例",
  10062. " $1.DebitAddProfitVal = $9; //借记卡附加分润值",
  10063. "}"
  10064. ]
  10065. },
  10066. "获取分润对象等级数量": {
  10067. "prefix": "ym-db-ProfitObjectLevels-FindAndCount",
  10068. "body": [
  10069. "int $1 = db.ProfitObjectLevels.Count(m => $2);",
  10070. ]
  10071. },
  10072. "添加分润对象等级": {
  10073. "prefix": "ym-db-ProfitObjectLevels-Create",
  10074. "body": [
  10075. "db.ProfitObjectLevels.Add(new ProfitObjectLevels()",
  10076. "{",
  10077. " CreateDate = DateTime.Now,",
  10078. " UpdateDate = DateTime.Now,",
  10079. " LevelNumber = $1, //级别",
  10080. " Name = $2, //名称",
  10081. " Percents = $3, //分润比例",
  10082. " AddProfitVal = $4, //附加分润值",
  10083. " LevelDiff = $5, //级差",
  10084. " KindId = $6, //分类Id",
  10085. " DebitPercents = $7, //借记卡分润比例",
  10086. " DebitAddProfitVal = $8, //借记卡附加分润值",
  10087. "});"
  10088. ]
  10089. },"删除某个分润对象等级": {
  10090. "prefix": "ym-db-ProfitObjectLevels-Delete",
  10091. "body": [
  10092. "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
  10093. "if ($1 != null)",
  10094. "{",
  10095. " db.ProfitObjectLevels.Remove($1);",
  10096. "}"
  10097. ]
  10098. },
  10099. "查询分润对象列表": {
  10100. "prefix": "ym-db-ProfitObjects-Find",
  10101. "body": [
  10102. "List<ProfitObjects> $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10103. "foreach (ProfitObjects $3 in $1)",
  10104. "{",
  10105. "}"
  10106. ]
  10107. },
  10108. "查询分润对象列表,并取值": {
  10109. "prefix": "ym-db-ProfitObjects-FindWithData",
  10110. "body": [
  10111. "List<ProfitObjects> $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10112. "foreach (ProfitObjects $3 in $1)",
  10113. "{",
  10114. " string Name = $3.Name; //名称",
  10115. " int MaxFloor = $3.MaxFloor; //最大层级",
  10116. " int MaxLevel = $3.MaxLevel; //最大等级",
  10117. " ulong MaxLevelContinue = $3.MaxLevelContinue; //到顶级是否继续",
  10118. " decimal MinProfitVal = $3.MinProfitVal; //最小分润值",
  10119. " DateTime StartDate = $3.StartDate; //开始时间",
  10120. " DateTime EndDate = $3.EndDate; //结束时间",
  10121. "}"
  10122. ]
  10123. },
  10124. "查询分润对象": {
  10125. "prefix": "ym-db-ProfitObjects-Exist",
  10126. "body": [
  10127. "bool $1 = db.ProfitObjects.Any(m => m.Id == $2);",
  10128. ]
  10129. },
  10130. "查询某个分润对象,并取值": {
  10131. "prefix": "ym-db-ProfitObjects-FindByPrimaryKey",
  10132. "body": [
  10133. "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
  10134. "if ($1 != null)",
  10135. "{",
  10136. " string Name = $1.Name; //名称",
  10137. " int MaxFloor = $1.MaxFloor; //最大层级",
  10138. " int MaxLevel = $1.MaxLevel; //最大等级",
  10139. " ulong MaxLevelContinue = $1.MaxLevelContinue; //到顶级是否继续",
  10140. " decimal MinProfitVal = $1.MinProfitVal; //最小分润值",
  10141. " DateTime StartDate = $1.StartDate; //开始时间",
  10142. " DateTime EndDate = $1.EndDate; //结束时间",
  10143. "}"
  10144. ]
  10145. },
  10146. "查询某个分润对象,并赋值": {
  10147. "prefix": "ym-db-ProfitObjects-Update",
  10148. "body": [
  10149. "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
  10150. "if ($1 != null)",
  10151. "{",
  10152. " $1.Name = $2; //名称",
  10153. " $1.MaxFloor = $3; //最大层级",
  10154. " $1.MaxLevel = $4; //最大等级",
  10155. " $1.MaxLevelContinue = $5; //到顶级是否继续",
  10156. " $1.MinProfitVal = $6; //最小分润值",
  10157. " $1.StartDate = $7; //开始时间",
  10158. " $1.EndDate = $8; //结束时间",
  10159. "}"
  10160. ]
  10161. },
  10162. "获取分润对象数量": {
  10163. "prefix": "ym-db-ProfitObjects-FindAndCount",
  10164. "body": [
  10165. "int $1 = db.ProfitObjects.Count(m => $2);",
  10166. ]
  10167. },
  10168. "添加分润对象": {
  10169. "prefix": "ym-db-ProfitObjects-Create",
  10170. "body": [
  10171. "db.ProfitObjects.Add(new ProfitObjects()",
  10172. "{",
  10173. " CreateDate = DateTime.Now,",
  10174. " UpdateDate = DateTime.Now,",
  10175. " Name = $1, //名称",
  10176. " MaxFloor = $2, //最大层级",
  10177. " MaxLevel = $3, //最大等级",
  10178. " MaxLevelContinue = $4, //到顶级是否继续",
  10179. " MinProfitVal = $5, //最小分润值",
  10180. " StartDate = $6, //开始时间",
  10181. " EndDate = $7, //结束时间",
  10182. "});"
  10183. ]
  10184. },"删除某个分润对象": {
  10185. "prefix": "ym-db-ProfitObjects-Delete",
  10186. "body": [
  10187. "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
  10188. "if ($1 != null)",
  10189. "{",
  10190. " db.ProfitObjects.Remove($1);",
  10191. "}"
  10192. ]
  10193. },
  10194. "查询激活奖励队列列表": {
  10195. "prefix": "ym-db-ProfitObjectsActiveCheck-Find",
  10196. "body": [
  10197. "List<ProfitObjectsActiveCheck> $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10198. "foreach (ProfitObjectsActiveCheck $3 in $1)",
  10199. "{",
  10200. "}"
  10201. ]
  10202. },
  10203. "查询激活奖励队列列表,并取值": {
  10204. "prefix": "ym-db-ProfitObjectsActiveCheck-FindWithData",
  10205. "body": [
  10206. "List<ProfitObjectsActiveCheck> $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10207. "foreach (ProfitObjectsActiveCheck $3 in $1)",
  10208. "{",
  10209. " string CheckData = $3.CheckData; //队列数据",
  10210. "}"
  10211. ]
  10212. },
  10213. "查询激活奖励队列": {
  10214. "prefix": "ym-db-ProfitObjectsActiveCheck-Exist",
  10215. "body": [
  10216. "bool $1 = db.ProfitObjectsActiveCheck.Any(m => m.CheckData == $2);",
  10217. ]
  10218. },
  10219. "查询某个激活奖励队列,并取值": {
  10220. "prefix": "ym-db-ProfitObjectsActiveCheck-FindByPrimaryKey",
  10221. "body": [
  10222. "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
  10223. "if ($1 != null)",
  10224. "{",
  10225. " string CheckData = $1.CheckData; //队列数据",
  10226. "}"
  10227. ]
  10228. },
  10229. "查询某个激活奖励队列,并赋值": {
  10230. "prefix": "ym-db-ProfitObjectsActiveCheck-Update",
  10231. "body": [
  10232. "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
  10233. "if ($1 != null)",
  10234. "{",
  10235. " $1.CheckData = $2; //队列数据",
  10236. "}"
  10237. ]
  10238. },
  10239. "获取激活奖励队列数量": {
  10240. "prefix": "ym-db-ProfitObjectsActiveCheck-FindAndCount",
  10241. "body": [
  10242. "int $1 = db.ProfitObjectsActiveCheck.Count(m => $2);",
  10243. ]
  10244. },
  10245. "添加激活奖励队列": {
  10246. "prefix": "ym-db-ProfitObjectsActiveCheck-Create",
  10247. "body": [
  10248. "db.ProfitObjectsActiveCheck.Add(new ProfitObjectsActiveCheck()",
  10249. "{",
  10250. " CreateDate = DateTime.Now,",
  10251. " UpdateDate = DateTime.Now,",
  10252. " CheckData = $1, //队列数据",
  10253. "});"
  10254. ]
  10255. },"删除某个激活奖励队列": {
  10256. "prefix": "ym-db-ProfitObjectsActiveCheck-Delete",
  10257. "body": [
  10258. "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
  10259. "if ($1 != null)",
  10260. "{",
  10261. " db.ProfitObjectsActiveCheck.Remove($1);",
  10262. "}"
  10263. ]
  10264. },
  10265. "查询分润对象活动参数列表": {
  10266. "prefix": "ym-db-ProfitObjectsActiveParams-Find",
  10267. "body": [
  10268. "List<ProfitObjectsActiveParams> $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10269. "foreach (ProfitObjectsActiveParams $3 in $1)",
  10270. "{",
  10271. "}"
  10272. ]
  10273. },
  10274. "查询分润对象活动参数列表,并取值": {
  10275. "prefix": "ym-db-ProfitObjectsActiveParams-FindWithData",
  10276. "body": [
  10277. "List<ProfitObjectsActiveParams> $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10278. "foreach (ProfitObjectsActiveParams $3 in $1)",
  10279. "{",
  10280. " int ProfitObjectsActiveId = $3.ProfitObjectsActiveId; //分润对象活动",
  10281. " string Name = $3.Name; //参数名称",
  10282. " string TextValue = $3.TextValue; //参数值",
  10283. " string Remark = $3.Remark; //参数说明",
  10284. "}"
  10285. ]
  10286. },
  10287. "查询分润对象活动参数": {
  10288. "prefix": "ym-db-ProfitObjectsActiveParams-Exist",
  10289. "body": [
  10290. "bool $1 = db.ProfitObjectsActiveParams.Any(m => m.Id == $2);",
  10291. ]
  10292. },
  10293. "查询某个分润对象活动参数,并取值": {
  10294. "prefix": "ym-db-ProfitObjectsActiveParams-FindByPrimaryKey",
  10295. "body": [
  10296. "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
  10297. "if ($1 != null)",
  10298. "{",
  10299. " int ProfitObjectsActiveId = $1.ProfitObjectsActiveId; //分润对象活动",
  10300. " string Name = $1.Name; //参数名称",
  10301. " string TextValue = $1.TextValue; //参数值",
  10302. " string Remark = $1.Remark; //参数说明",
  10303. "}"
  10304. ]
  10305. },
  10306. "查询某个分润对象活动参数,并赋值": {
  10307. "prefix": "ym-db-ProfitObjectsActiveParams-Update",
  10308. "body": [
  10309. "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
  10310. "if ($1 != null)",
  10311. "{",
  10312. " $1.ProfitObjectsActiveId = $2; //分润对象活动",
  10313. " $1.Name = $3; //参数名称",
  10314. " $1.TextValue = $4; //参数值",
  10315. " $1.Remark = $5; //参数说明",
  10316. "}"
  10317. ]
  10318. },
  10319. "获取分润对象活动参数数量": {
  10320. "prefix": "ym-db-ProfitObjectsActiveParams-FindAndCount",
  10321. "body": [
  10322. "int $1 = db.ProfitObjectsActiveParams.Count(m => $2);",
  10323. ]
  10324. },
  10325. "添加分润对象活动参数": {
  10326. "prefix": "ym-db-ProfitObjectsActiveParams-Create",
  10327. "body": [
  10328. "db.ProfitObjectsActiveParams.Add(new ProfitObjectsActiveParams()",
  10329. "{",
  10330. " CreateDate = DateTime.Now,",
  10331. " UpdateDate = DateTime.Now,",
  10332. " ProfitObjectsActiveId = $1, //分润对象活动",
  10333. " Name = $2, //参数名称",
  10334. " TextValue = $3, //参数值",
  10335. " Remark = $4, //参数说明",
  10336. "});"
  10337. ]
  10338. },"删除某个分润对象活动参数": {
  10339. "prefix": "ym-db-ProfitObjectsActiveParams-Delete",
  10340. "body": [
  10341. "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
  10342. "if ($1 != null)",
  10343. "{",
  10344. " db.ProfitObjectsActiveParams.Remove($1);",
  10345. "}"
  10346. ]
  10347. },
  10348. "查询分润对象活动奖列表": {
  10349. "prefix": "ym-db-ProfitObjectsActives-Find",
  10350. "body": [
  10351. "List<ProfitObjectsActives> $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10352. "foreach (ProfitObjectsActives $3 in $1)",
  10353. "{",
  10354. "}"
  10355. ]
  10356. },
  10357. "查询分润对象活动奖列表,并取值": {
  10358. "prefix": "ym-db-ProfitObjectsActives-FindWithData",
  10359. "body": [
  10360. "List<ProfitObjectsActives> $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10361. "foreach (ProfitObjectsActives $3 in $1)",
  10362. "{",
  10363. " string Name = $3.Name; //名称",
  10364. " int LimitDateKind = $3.LimitDateKind; //限制时间类型",
  10365. " int LimitDateVal = $3.LimitDateVal; //限制时间值",
  10366. " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制",
  10367. " decimal FinishNumber = $3.FinishNumber; //满足条件的数值",
  10368. " decimal ProfitNumber = $3.ProfitNumber; //获得收益值",
  10369. " int ObjectId = $3.ObjectId; //对象Id",
  10370. " DateTime StartDate = $3.StartDate; //活动开始时间",
  10371. " DateTime EndDate = $3.EndDate; //活动结束时间",
  10372. " int MachineCount = $3.MachineCount; //赠机台数",
  10373. " int CardType = $3.CardType; //卡类型",
  10374. " decimal ProfitNumber2 = $3.ProfitNumber2; //获得收益值2",
  10375. " string Code = $3.Code; //编号",
  10376. "}"
  10377. ]
  10378. },
  10379. "查询分润对象活动奖": {
  10380. "prefix": "ym-db-ProfitObjectsActives-Exist",
  10381. "body": [
  10382. "bool $1 = db.ProfitObjectsActives.Any(m => m.Id == $2);",
  10383. ]
  10384. },
  10385. "查询某个分润对象活动奖,并取值": {
  10386. "prefix": "ym-db-ProfitObjectsActives-FindByPrimaryKey",
  10387. "body": [
  10388. "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
  10389. "if ($1 != null)",
  10390. "{",
  10391. " string Name = $1.Name; //名称",
  10392. " int LimitDateKind = $1.LimitDateKind; //限制时间类型",
  10393. " int LimitDateVal = $1.LimitDateVal; //限制时间值",
  10394. " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制",
  10395. " decimal FinishNumber = $1.FinishNumber; //满足条件的数值",
  10396. " decimal ProfitNumber = $1.ProfitNumber; //获得收益值",
  10397. " int ObjectId = $1.ObjectId; //对象Id",
  10398. " DateTime StartDate = $1.StartDate; //活动开始时间",
  10399. " DateTime EndDate = $1.EndDate; //活动结束时间",
  10400. " int MachineCount = $1.MachineCount; //赠机台数",
  10401. " int CardType = $1.CardType; //卡类型",
  10402. " decimal ProfitNumber2 = $1.ProfitNumber2; //获得收益值2",
  10403. " string Code = $1.Code; //编号",
  10404. "}"
  10405. ]
  10406. },
  10407. "查询某个分润对象活动奖,并赋值": {
  10408. "prefix": "ym-db-ProfitObjectsActives-Update",
  10409. "body": [
  10410. "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
  10411. "if ($1 != null)",
  10412. "{",
  10413. " $1.Name = $2; //名称",
  10414. " $1.LimitDateKind = $3; //限制时间类型",
  10415. " $1.LimitDateVal = $4; //限制时间值",
  10416. " $1.LimitCustomerDate = $5; //自定时间限制",
  10417. " $1.FinishNumber = $6; //满足条件的数值",
  10418. " $1.ProfitNumber = $7; //获得收益值",
  10419. " $1.ObjectId = $8; //对象Id",
  10420. " $1.StartDate = $9; //活动开始时间",
  10421. " $1.EndDate = $10; //活动结束时间",
  10422. " $1.MachineCount = $11; //赠机台数",
  10423. " $1.CardType = $12; //卡类型",
  10424. " $1.ProfitNumber2 = $13; //获得收益值2",
  10425. " $1.Code = $14; //编号",
  10426. "}"
  10427. ]
  10428. },
  10429. "获取分润对象活动奖数量": {
  10430. "prefix": "ym-db-ProfitObjectsActives-FindAndCount",
  10431. "body": [
  10432. "int $1 = db.ProfitObjectsActives.Count(m => $2);",
  10433. ]
  10434. },
  10435. "添加分润对象活动奖": {
  10436. "prefix": "ym-db-ProfitObjectsActives-Create",
  10437. "body": [
  10438. "db.ProfitObjectsActives.Add(new ProfitObjectsActives()",
  10439. "{",
  10440. " CreateDate = DateTime.Now,",
  10441. " UpdateDate = DateTime.Now,",
  10442. " Name = $1, //名称",
  10443. " LimitDateKind = $2, //限制时间类型",
  10444. " LimitDateVal = $3, //限制时间值",
  10445. " LimitCustomerDate = $4, //自定时间限制",
  10446. " FinishNumber = $5, //满足条件的数值",
  10447. " ProfitNumber = $6, //获得收益值",
  10448. " ObjectId = $7, //对象Id",
  10449. " StartDate = $8, //活动开始时间",
  10450. " EndDate = $9, //活动结束时间",
  10451. " MachineCount = $10, //赠机台数",
  10452. " CardType = $11, //卡类型",
  10453. " ProfitNumber2 = $12, //获得收益值2",
  10454. " Code = $13, //编号",
  10455. "});"
  10456. ]
  10457. },"删除某个分润对象活动奖": {
  10458. "prefix": "ym-db-ProfitObjectsActives-Delete",
  10459. "body": [
  10460. "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
  10461. "if ($1 != null)",
  10462. "{",
  10463. " db.ProfitObjectsActives.Remove($1);",
  10464. "}"
  10465. ]
  10466. },
  10467. "查询活动名称为主键的关联表列表": {
  10468. "prefix": "ym-db-ProfitObjectsActivesForId-Find",
  10469. "body": [
  10470. "List<ProfitObjectsActivesForId> $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10471. "foreach (ProfitObjectsActivesForId $3 in $1)",
  10472. "{",
  10473. "}"
  10474. ]
  10475. },
  10476. "查询活动名称为主键的关联表列表,并取值": {
  10477. "prefix": "ym-db-ProfitObjectsActivesForId-FindWithData",
  10478. "body": [
  10479. "List<ProfitObjectsActivesForId> $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10480. "foreach (ProfitObjectsActivesForId $3 in $1)",
  10481. "{",
  10482. " string Name = $3.Name; //名称",
  10483. " int ActivityId = $3.ActivityId; //活动Id",
  10484. "}"
  10485. ]
  10486. },
  10487. "查询活动名称为主键的关联表": {
  10488. "prefix": "ym-db-ProfitObjectsActivesForId-Exist",
  10489. "body": [
  10490. "bool $1 = db.ProfitObjectsActivesForId.Any(m => m.Name == $2);",
  10491. ]
  10492. },
  10493. "查询某个活动名称为主键的关联表,并取值": {
  10494. "prefix": "ym-db-ProfitObjectsActivesForId-FindByPrimaryKey",
  10495. "body": [
  10496. "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
  10497. "if ($1 != null)",
  10498. "{",
  10499. " string Name = $1.Name; //名称",
  10500. " int ActivityId = $1.ActivityId; //活动Id",
  10501. "}"
  10502. ]
  10503. },
  10504. "查询某个活动名称为主键的关联表,并赋值": {
  10505. "prefix": "ym-db-ProfitObjectsActivesForId-Update",
  10506. "body": [
  10507. "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
  10508. "if ($1 != null)",
  10509. "{",
  10510. " $1.Name = $2; //名称",
  10511. " $1.ActivityId = $3; //活动Id",
  10512. "}"
  10513. ]
  10514. },
  10515. "获取活动名称为主键的关联表数量": {
  10516. "prefix": "ym-db-ProfitObjectsActivesForId-FindAndCount",
  10517. "body": [
  10518. "int $1 = db.ProfitObjectsActivesForId.Count(m => $2);",
  10519. ]
  10520. },
  10521. "添加活动名称为主键的关联表": {
  10522. "prefix": "ym-db-ProfitObjectsActivesForId-Create",
  10523. "body": [
  10524. "db.ProfitObjectsActivesForId.Add(new ProfitObjectsActivesForId()",
  10525. "{",
  10526. " CreateDate = DateTime.Now,",
  10527. " UpdateDate = DateTime.Now,",
  10528. " Name = $1, //名称",
  10529. " ActivityId = $2, //活动Id",
  10530. "});"
  10531. ]
  10532. },"删除某个活动名称为主键的关联表": {
  10533. "prefix": "ym-db-ProfitObjectsActivesForId-Delete",
  10534. "body": [
  10535. "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
  10536. "if ($1 != null)",
  10537. "{",
  10538. " db.ProfitObjectsActivesForId.Remove($1);",
  10539. "}"
  10540. ]
  10541. },
  10542. "查询分润对象规则列表": {
  10543. "prefix": "ym-db-ProfitObjectsRule-Find",
  10544. "body": [
  10545. "List<ProfitObjectsRule> $1 = db.ProfitObjectsRule.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10546. "foreach (ProfitObjectsRule $3 in $1)",
  10547. "{",
  10548. "}"
  10549. ]
  10550. },
  10551. "查询分润对象规则列表,并取值": {
  10552. "prefix": "ym-db-ProfitObjectsRule-FindWithData",
  10553. "body": [
  10554. "List<ProfitObjectsRule> $1 = db.ProfitObjectsRule.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10555. "foreach (ProfitObjectsRule $3 in $1)",
  10556. "{",
  10557. " string Name = $3.Name; //名称",
  10558. " int ObjectId = $3.ObjectId; //对象Id",
  10559. " DateTime StartDate = $3.StartDate; //活动开始时间",
  10560. " DateTime EndDate = $3.EndDate; //活动结束时间",
  10561. " string Code = $3.Code; //编号",
  10562. "}"
  10563. ]
  10564. },
  10565. "查询分润对象规则": {
  10566. "prefix": "ym-db-ProfitObjectsRule-Exist",
  10567. "body": [
  10568. "bool $1 = db.ProfitObjectsRule.Any(m => m.Id == $2);",
  10569. ]
  10570. },
  10571. "查询某个分润对象规则,并取值": {
  10572. "prefix": "ym-db-ProfitObjectsRule-FindByPrimaryKey",
  10573. "body": [
  10574. "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);",
  10575. "if ($1 != null)",
  10576. "{",
  10577. " string Name = $1.Name; //名称",
  10578. " int ObjectId = $1.ObjectId; //对象Id",
  10579. " DateTime StartDate = $1.StartDate; //活动开始时间",
  10580. " DateTime EndDate = $1.EndDate; //活动结束时间",
  10581. " string Code = $1.Code; //编号",
  10582. "}"
  10583. ]
  10584. },
  10585. "查询某个分润对象规则,并赋值": {
  10586. "prefix": "ym-db-ProfitObjectsRule-Update",
  10587. "body": [
  10588. "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);",
  10589. "if ($1 != null)",
  10590. "{",
  10591. " $1.Name = $2; //名称",
  10592. " $1.ObjectId = $3; //对象Id",
  10593. " $1.StartDate = $4; //活动开始时间",
  10594. " $1.EndDate = $5; //活动结束时间",
  10595. " $1.Code = $6; //编号",
  10596. "}"
  10597. ]
  10598. },
  10599. "获取分润对象规则数量": {
  10600. "prefix": "ym-db-ProfitObjectsRule-FindAndCount",
  10601. "body": [
  10602. "int $1 = db.ProfitObjectsRule.Count(m => $2);",
  10603. ]
  10604. },
  10605. "添加分润对象规则": {
  10606. "prefix": "ym-db-ProfitObjectsRule-Create",
  10607. "body": [
  10608. "db.ProfitObjectsRule.Add(new ProfitObjectsRule()",
  10609. "{",
  10610. " CreateDate = DateTime.Now,",
  10611. " UpdateDate = DateTime.Now,",
  10612. " Name = $1, //名称",
  10613. " ObjectId = $2, //对象Id",
  10614. " StartDate = $3, //活动开始时间",
  10615. " EndDate = $4, //活动结束时间",
  10616. " Code = $5, //编号",
  10617. "});"
  10618. ]
  10619. },"删除某个分润对象规则": {
  10620. "prefix": "ym-db-ProfitObjectsRule-Delete",
  10621. "body": [
  10622. "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);",
  10623. "if ($1 != null)",
  10624. "{",
  10625. " db.ProfitObjectsRule.Remove($1);",
  10626. "}"
  10627. ]
  10628. },
  10629. "查询分润对象规则配置明细列表": {
  10630. "prefix": "ym-db-ProfitObjectsRuleDetails-Find",
  10631. "body": [
  10632. "List<ProfitObjectsRuleDetails> $1 = db.ProfitObjectsRuleDetails.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10633. "foreach (ProfitObjectsRuleDetails $3 in $1)",
  10634. "{",
  10635. "}"
  10636. ]
  10637. },
  10638. "查询分润对象规则配置明细列表,并取值": {
  10639. "prefix": "ym-db-ProfitObjectsRuleDetails-FindWithData",
  10640. "body": [
  10641. "List<ProfitObjectsRuleDetails> $1 = db.ProfitObjectsRuleDetails.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10642. "foreach (ProfitObjectsRuleDetails $3 in $1)",
  10643. "{",
  10644. " int RuleId = $3.RuleId; //所属规则",
  10645. " string Name = $3.Name; //名称",
  10646. " string Code = $3.Code; //编号",
  10647. " string DataValue = $3.DataValue; //设置值",
  10648. "}"
  10649. ]
  10650. },
  10651. "查询分润对象规则配置明细": {
  10652. "prefix": "ym-db-ProfitObjectsRuleDetails-Exist",
  10653. "body": [
  10654. "bool $1 = db.ProfitObjectsRuleDetails.Any(m => m.Id == $2);",
  10655. ]
  10656. },
  10657. "查询某个分润对象规则配置明细,并取值": {
  10658. "prefix": "ym-db-ProfitObjectsRuleDetails-FindByPrimaryKey",
  10659. "body": [
  10660. "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);",
  10661. "if ($1 != null)",
  10662. "{",
  10663. " int RuleId = $1.RuleId; //所属规则",
  10664. " string Name = $1.Name; //名称",
  10665. " string Code = $1.Code; //编号",
  10666. " string DataValue = $1.DataValue; //设置值",
  10667. "}"
  10668. ]
  10669. },
  10670. "查询某个分润对象规则配置明细,并赋值": {
  10671. "prefix": "ym-db-ProfitObjectsRuleDetails-Update",
  10672. "body": [
  10673. "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);",
  10674. "if ($1 != null)",
  10675. "{",
  10676. " $1.RuleId = $2; //所属规则",
  10677. " $1.Name = $3; //名称",
  10678. " $1.Code = $4; //编号",
  10679. " $1.DataValue = $5; //设置值",
  10680. "}"
  10681. ]
  10682. },
  10683. "获取分润对象规则配置明细数量": {
  10684. "prefix": "ym-db-ProfitObjectsRuleDetails-FindAndCount",
  10685. "body": [
  10686. "int $1 = db.ProfitObjectsRuleDetails.Count(m => $2);",
  10687. ]
  10688. },
  10689. "添加分润对象规则配置明细": {
  10690. "prefix": "ym-db-ProfitObjectsRuleDetails-Create",
  10691. "body": [
  10692. "db.ProfitObjectsRuleDetails.Add(new ProfitObjectsRuleDetails()",
  10693. "{",
  10694. " CreateDate = DateTime.Now,",
  10695. " UpdateDate = DateTime.Now,",
  10696. " RuleId = $1, //所属规则",
  10697. " Name = $2, //名称",
  10698. " Code = $3, //编号",
  10699. " DataValue = $4, //设置值",
  10700. "});"
  10701. ]
  10702. },"删除某个分润对象规则配置明细": {
  10703. "prefix": "ym-db-ProfitObjectsRuleDetails-Delete",
  10704. "body": [
  10705. "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);",
  10706. "if ($1 != null)",
  10707. "{",
  10708. " db.ProfitObjectsRuleDetails.Remove($1);",
  10709. "}"
  10710. ]
  10711. },
  10712. "查询分账记录列表": {
  10713. "prefix": "ym-db-ProfitReceiveRecord-Find",
  10714. "body": [
  10715. "List<ProfitReceiveRecord> $1 = db.ProfitReceiveRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10716. "foreach (ProfitReceiveRecord $3 in $1)",
  10717. "{",
  10718. "}"
  10719. ]
  10720. },
  10721. "查询分账记录列表,并取值": {
  10722. "prefix": "ym-db-ProfitReceiveRecord-FindWithData",
  10723. "body": [
  10724. "List<ProfitReceiveRecord> $1 = db.ProfitReceiveRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10725. "foreach (ProfitReceiveRecord $3 in $1)",
  10726. "{",
  10727. " int MerchantId = $3.MerchantId; //商户",
  10728. " string SubMchid = $3.SubMchid; //子商户号",
  10729. " string AppId = $3.AppId; //应用ID",
  10730. " string SubAppId = $3.SubAppId; //子商户应用ID",
  10731. " string Type = $3.Type; //分账接收方类型",
  10732. " string Account = $3.Account; //分账接收方账号",
  10733. " string Name = $3.Name; //分账个人接收方姓名",
  10734. " string RelationType = $3.RelationType; //与分账方的关系类型",
  10735. " string CustomRelation = $3.CustomRelation; //自定义的分账关系",
  10736. " string TransactionId = $3.TransactionId; //微信订单号",
  10737. " string OutOrderNo = $3.OutOrderNo; //商户分账单号",
  10738. " decimal Amount = $3.Amount; //分账金额",
  10739. " string Description = $3.Description; //分账描述",
  10740. " ulong UnfreezeUnsplit = $3.UnfreezeUnsplit; //是否解冻剩余未分资金",
  10741. " string OrderId = $3.OrderId; //微信分账单号",
  10742. " string State = $3.State; //分账单状态",
  10743. "}"
  10744. ]
  10745. },
  10746. "查询分账记录": {
  10747. "prefix": "ym-db-ProfitReceiveRecord-Exist",
  10748. "body": [
  10749. "bool $1 = db.ProfitReceiveRecord.Any(m => m.Id == $2);",
  10750. ]
  10751. },
  10752. "查询某个分账记录,并取值": {
  10753. "prefix": "ym-db-ProfitReceiveRecord-FindByPrimaryKey",
  10754. "body": [
  10755. "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);",
  10756. "if ($1 != null)",
  10757. "{",
  10758. " int MerchantId = $1.MerchantId; //商户",
  10759. " string SubMchid = $1.SubMchid; //子商户号",
  10760. " string AppId = $1.AppId; //应用ID",
  10761. " string SubAppId = $1.SubAppId; //子商户应用ID",
  10762. " string Type = $1.Type; //分账接收方类型",
  10763. " string Account = $1.Account; //分账接收方账号",
  10764. " string Name = $1.Name; //分账个人接收方姓名",
  10765. " string RelationType = $1.RelationType; //与分账方的关系类型",
  10766. " string CustomRelation = $1.CustomRelation; //自定义的分账关系",
  10767. " string TransactionId = $1.TransactionId; //微信订单号",
  10768. " string OutOrderNo = $1.OutOrderNo; //商户分账单号",
  10769. " decimal Amount = $1.Amount; //分账金额",
  10770. " string Description = $1.Description; //分账描述",
  10771. " ulong UnfreezeUnsplit = $1.UnfreezeUnsplit; //是否解冻剩余未分资金",
  10772. " string OrderId = $1.OrderId; //微信分账单号",
  10773. " string State = $1.State; //分账单状态",
  10774. "}"
  10775. ]
  10776. },
  10777. "查询某个分账记录,并赋值": {
  10778. "prefix": "ym-db-ProfitReceiveRecord-Update",
  10779. "body": [
  10780. "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);",
  10781. "if ($1 != null)",
  10782. "{",
  10783. " $1.MerchantId = $2; //商户",
  10784. " $1.SubMchid = $3; //子商户号",
  10785. " $1.AppId = $4; //应用ID",
  10786. " $1.SubAppId = $5; //子商户应用ID",
  10787. " $1.Type = $6; //分账接收方类型",
  10788. " $1.Account = $7; //分账接收方账号",
  10789. " $1.Name = $8; //分账个人接收方姓名",
  10790. " $1.RelationType = $9; //与分账方的关系类型",
  10791. " $1.CustomRelation = $10; //自定义的分账关系",
  10792. " $1.TransactionId = $11; //微信订单号",
  10793. " $1.OutOrderNo = $12; //商户分账单号",
  10794. " $1.Amount = $13; //分账金额",
  10795. " $1.Description = $14; //分账描述",
  10796. " $1.UnfreezeUnsplit = $15; //是否解冻剩余未分资金",
  10797. " $1.OrderId = $16; //微信分账单号",
  10798. " $1.State = $17; //分账单状态",
  10799. "}"
  10800. ]
  10801. },
  10802. "获取分账记录数量": {
  10803. "prefix": "ym-db-ProfitReceiveRecord-FindAndCount",
  10804. "body": [
  10805. "int $1 = db.ProfitReceiveRecord.Count(m => $2);",
  10806. ]
  10807. },
  10808. "添加分账记录": {
  10809. "prefix": "ym-db-ProfitReceiveRecord-Create",
  10810. "body": [
  10811. "db.ProfitReceiveRecord.Add(new ProfitReceiveRecord()",
  10812. "{",
  10813. " CreateDate = DateTime.Now,",
  10814. " UpdateDate = DateTime.Now,",
  10815. " MerchantId = $1, //商户",
  10816. " SubMchid = $2, //子商户号",
  10817. " AppId = $3, //应用ID",
  10818. " SubAppId = $4, //子商户应用ID",
  10819. " Type = $5, //分账接收方类型",
  10820. " Account = $6, //分账接收方账号",
  10821. " Name = $7, //分账个人接收方姓名",
  10822. " RelationType = $8, //与分账方的关系类型",
  10823. " CustomRelation = $9, //自定义的分账关系",
  10824. " TransactionId = $10, //微信订单号",
  10825. " OutOrderNo = $11, //商户分账单号",
  10826. " Amount = $12, //分账金额",
  10827. " Description = $13, //分账描述",
  10828. " UnfreezeUnsplit = $14, //是否解冻剩余未分资金",
  10829. " OrderId = $15, //微信分账单号",
  10830. " State = $16, //分账单状态",
  10831. "});"
  10832. ]
  10833. },"删除某个分账记录": {
  10834. "prefix": "ym-db-ProfitReceiveRecord-Delete",
  10835. "body": [
  10836. "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);",
  10837. "if ($1 != null)",
  10838. "{",
  10839. " db.ProfitReceiveRecord.Remove($1);",
  10840. "}"
  10841. ]
  10842. },
  10843. "查询分账接收方列表": {
  10844. "prefix": "ym-db-ProfitReceives-Find",
  10845. "body": [
  10846. "List<ProfitReceives> $1 = db.ProfitReceives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10847. "foreach (ProfitReceives $3 in $1)",
  10848. "{",
  10849. "}"
  10850. ]
  10851. },
  10852. "查询分账接收方列表,并取值": {
  10853. "prefix": "ym-db-ProfitReceives-FindWithData",
  10854. "body": [
  10855. "List<ProfitReceives> $1 = db.ProfitReceives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10856. "foreach (ProfitReceives $3 in $1)",
  10857. "{",
  10858. " int MerchantId = $3.MerchantId; //商户",
  10859. " string SubMchid = $3.SubMchid; //子商户号",
  10860. " string AppId = $3.AppId; //应用ID",
  10861. " string SubAppId = $3.SubAppId; //子商户应用ID",
  10862. " string Type = $3.Type; //分账接收方类型",
  10863. " string Account = $3.Account; //分账接收方账号",
  10864. " string Name = $3.Name; //分账个人接收方姓名",
  10865. " string RelationType = $3.RelationType; //与分账方的关系类型",
  10866. " string CustomRelation = $3.CustomRelation; //自定义的分账关系",
  10867. "}"
  10868. ]
  10869. },
  10870. "查询分账接收方": {
  10871. "prefix": "ym-db-ProfitReceives-Exist",
  10872. "body": [
  10873. "bool $1 = db.ProfitReceives.Any(m => m.Id == $2);",
  10874. ]
  10875. },
  10876. "查询某个分账接收方,并取值": {
  10877. "prefix": "ym-db-ProfitReceives-FindByPrimaryKey",
  10878. "body": [
  10879. "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);",
  10880. "if ($1 != null)",
  10881. "{",
  10882. " int MerchantId = $1.MerchantId; //商户",
  10883. " string SubMchid = $1.SubMchid; //子商户号",
  10884. " string AppId = $1.AppId; //应用ID",
  10885. " string SubAppId = $1.SubAppId; //子商户应用ID",
  10886. " string Type = $1.Type; //分账接收方类型",
  10887. " string Account = $1.Account; //分账接收方账号",
  10888. " string Name = $1.Name; //分账个人接收方姓名",
  10889. " string RelationType = $1.RelationType; //与分账方的关系类型",
  10890. " string CustomRelation = $1.CustomRelation; //自定义的分账关系",
  10891. "}"
  10892. ]
  10893. },
  10894. "查询某个分账接收方,并赋值": {
  10895. "prefix": "ym-db-ProfitReceives-Update",
  10896. "body": [
  10897. "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);",
  10898. "if ($1 != null)",
  10899. "{",
  10900. " $1.MerchantId = $2; //商户",
  10901. " $1.SubMchid = $3; //子商户号",
  10902. " $1.AppId = $4; //应用ID",
  10903. " $1.SubAppId = $5; //子商户应用ID",
  10904. " $1.Type = $6; //分账接收方类型",
  10905. " $1.Account = $7; //分账接收方账号",
  10906. " $1.Name = $8; //分账个人接收方姓名",
  10907. " $1.RelationType = $9; //与分账方的关系类型",
  10908. " $1.CustomRelation = $10; //自定义的分账关系",
  10909. "}"
  10910. ]
  10911. },
  10912. "获取分账接收方数量": {
  10913. "prefix": "ym-db-ProfitReceives-FindAndCount",
  10914. "body": [
  10915. "int $1 = db.ProfitReceives.Count(m => $2);",
  10916. ]
  10917. },
  10918. "添加分账接收方": {
  10919. "prefix": "ym-db-ProfitReceives-Create",
  10920. "body": [
  10921. "db.ProfitReceives.Add(new ProfitReceives()",
  10922. "{",
  10923. " CreateDate = DateTime.Now,",
  10924. " UpdateDate = DateTime.Now,",
  10925. " MerchantId = $1, //商户",
  10926. " SubMchid = $2, //子商户号",
  10927. " AppId = $3, //应用ID",
  10928. " SubAppId = $4, //子商户应用ID",
  10929. " Type = $5, //分账接收方类型",
  10930. " Account = $6, //分账接收方账号",
  10931. " Name = $7, //分账个人接收方姓名",
  10932. " RelationType = $8, //与分账方的关系类型",
  10933. " CustomRelation = $9, //自定义的分账关系",
  10934. "});"
  10935. ]
  10936. },"删除某个分账接收方": {
  10937. "prefix": "ym-db-ProfitReceives-Delete",
  10938. "body": [
  10939. "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);",
  10940. "if ($1 != null)",
  10941. "{",
  10942. " db.ProfitReceives.Remove($1);",
  10943. "}"
  10944. ]
  10945. },
  10946. "查询分润记录列表": {
  10947. "prefix": "ym-db-ProfitRecord-Find",
  10948. "body": [
  10949. "List<ProfitRecord> $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10950. "foreach (ProfitRecord $3 in $1)",
  10951. "{",
  10952. "}"
  10953. ]
  10954. },
  10955. "查询分润记录列表,并取值": {
  10956. "prefix": "ym-db-ProfitRecord-FindWithData",
  10957. "body": [
  10958. "List<ProfitRecord> $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  10959. "foreach (ProfitRecord $3 in $1)",
  10960. "{",
  10961. " int UserId = $3.UserId; //创客",
  10962. " int MerchantId = $3.MerchantId; //商户",
  10963. " string MerNo = $3.MerNo; //渠道商户编号",
  10964. " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户",
  10965. " int HelpMonthCount = $3.HelpMonthCount; //扶持第几个月",
  10966. " int MerBuddyType = $3.MerBuddyType; //商户创客类型",
  10967. " string SnNo = $3.SnNo; //SN号",
  10968. " DateTime TradeDate = $3.TradeDate; //交易日期",
  10969. " DateTime ClearDate = $3.ClearDate; //清算日期",
  10970. " decimal ProfitAmount = $3.ProfitAmount; //分润金额",
  10971. " int QrPayFlag = $3.QrPayFlag; //云闪付标识",
  10972. " int CapFlag = $3.CapFlag; //借记卡封顶交易标志",
  10973. " ulong DirectFlag = $3.DirectFlag; //是否直营",
  10974. " int BrandId = $3.BrandId; //品牌",
  10975. " string Remark = $3.Remark; //备注",
  10976. " string ParentNav = $3.ParentNav; //上级创客集",
  10977. " int TradeId = $3.TradeId; //交易记录Id",
  10978. "}"
  10979. ]
  10980. },
  10981. "查询分润记录": {
  10982. "prefix": "ym-db-ProfitRecord-Exist",
  10983. "body": [
  10984. "bool $1 = db.ProfitRecord.Any(m => m.Id == $2);",
  10985. ]
  10986. },
  10987. "查询某个分润记录,并取值": {
  10988. "prefix": "ym-db-ProfitRecord-FindByPrimaryKey",
  10989. "body": [
  10990. "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
  10991. "if ($1 != null)",
  10992. "{",
  10993. " int UserId = $1.UserId; //创客",
  10994. " int MerchantId = $1.MerchantId; //商户",
  10995. " string MerNo = $1.MerNo; //渠道商户编号",
  10996. " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户",
  10997. " int HelpMonthCount = $1.HelpMonthCount; //扶持第几个月",
  10998. " int MerBuddyType = $1.MerBuddyType; //商户创客类型",
  10999. " string SnNo = $1.SnNo; //SN号",
  11000. " DateTime TradeDate = $1.TradeDate; //交易日期",
  11001. " DateTime ClearDate = $1.ClearDate; //清算日期",
  11002. " decimal ProfitAmount = $1.ProfitAmount; //分润金额",
  11003. " int QrPayFlag = $1.QrPayFlag; //云闪付标识",
  11004. " int CapFlag = $1.CapFlag; //借记卡封顶交易标志",
  11005. " ulong DirectFlag = $1.DirectFlag; //是否直营",
  11006. " int BrandId = $1.BrandId; //品牌",
  11007. " string Remark = $1.Remark; //备注",
  11008. " string ParentNav = $1.ParentNav; //上级创客集",
  11009. " int TradeId = $1.TradeId; //交易记录Id",
  11010. "}"
  11011. ]
  11012. },
  11013. "查询某个分润记录,并赋值": {
  11014. "prefix": "ym-db-ProfitRecord-Update",
  11015. "body": [
  11016. "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
  11017. "if ($1 != null)",
  11018. "{",
  11019. " $1.UserId = $2; //创客",
  11020. " $1.MerchantId = $3; //商户",
  11021. " $1.MerNo = $4; //渠道商户编号",
  11022. " $1.MerHelpFlag = $5; //是否属于扶持周期内商户",
  11023. " $1.HelpMonthCount = $6; //扶持第几个月",
  11024. " $1.MerBuddyType = $7; //商户创客类型",
  11025. " $1.SnNo = $8; //SN号",
  11026. " $1.TradeDate = $9; //交易日期",
  11027. " $1.ClearDate = $10; //清算日期",
  11028. " $1.ProfitAmount = $11; //分润金额",
  11029. " $1.QrPayFlag = $12; //云闪付标识",
  11030. " $1.CapFlag = $13; //借记卡封顶交易标志",
  11031. " $1.DirectFlag = $14; //是否直营",
  11032. " $1.BrandId = $15; //品牌",
  11033. " $1.Remark = $16; //备注",
  11034. " $1.ParentNav = $17; //上级创客集",
  11035. " $1.TradeId = $18; //交易记录Id",
  11036. "}"
  11037. ]
  11038. },
  11039. "获取分润记录数量": {
  11040. "prefix": "ym-db-ProfitRecord-FindAndCount",
  11041. "body": [
  11042. "int $1 = db.ProfitRecord.Count(m => $2);",
  11043. ]
  11044. },
  11045. "添加分润记录": {
  11046. "prefix": "ym-db-ProfitRecord-Create",
  11047. "body": [
  11048. "db.ProfitRecord.Add(new ProfitRecord()",
  11049. "{",
  11050. " CreateDate = DateTime.Now,",
  11051. " UpdateDate = DateTime.Now,",
  11052. " UserId = $1, //创客",
  11053. " MerchantId = $2, //商户",
  11054. " MerNo = $3, //渠道商户编号",
  11055. " MerHelpFlag = $4, //是否属于扶持周期内商户",
  11056. " HelpMonthCount = $5, //扶持第几个月",
  11057. " MerBuddyType = $6, //商户创客类型",
  11058. " SnNo = $7, //SN号",
  11059. " TradeDate = $8, //交易日期",
  11060. " ClearDate = $9, //清算日期",
  11061. " ProfitAmount = $10, //分润金额",
  11062. " QrPayFlag = $11, //云闪付标识",
  11063. " CapFlag = $12, //借记卡封顶交易标志",
  11064. " DirectFlag = $13, //是否直营",
  11065. " BrandId = $14, //品牌",
  11066. " Remark = $15, //备注",
  11067. " ParentNav = $16, //上级创客集",
  11068. " TradeId = $17, //交易记录Id",
  11069. "});"
  11070. ]
  11071. },"删除某个分润记录": {
  11072. "prefix": "ym-db-ProfitRecord-Delete",
  11073. "body": [
  11074. "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
  11075. "if ($1 != null)",
  11076. "{",
  11077. " db.ProfitRecord.Remove($1);",
  11078. "}"
  11079. ]
  11080. },
  11081. "查询分润奖励记录列表": {
  11082. "prefix": "ym-db-ProfitRewardRecord-Find",
  11083. "body": [
  11084. "List<ProfitRewardRecord> $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11085. "foreach (ProfitRewardRecord $3 in $1)",
  11086. "{",
  11087. "}"
  11088. ]
  11089. },
  11090. "查询分润奖励记录列表,并取值": {
  11091. "prefix": "ym-db-ProfitRewardRecord-FindWithData",
  11092. "body": [
  11093. "List<ProfitRewardRecord> $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11094. "foreach (ProfitRewardRecord $3 in $1)",
  11095. "{",
  11096. " int UserId = $3.UserId; //创客",
  11097. " int MerchantId = $3.MerchantId; //商户",
  11098. " int BrandId = $3.BrandId; //品牌",
  11099. " int ProfitType = $3.ProfitType; //创客分润类型",
  11100. " decimal OtherTradeAmt = $3.OtherTradeAmt; //其他产品交易总金额",
  11101. " decimal OtherCreditTradeAmt = $3.OtherCreditTradeAmt; //其他产品贷记卡交易总金额",
  11102. " decimal OtherDebitNotCapTradeAmt = $3.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额",
  11103. " decimal TradeAmt = $3.TradeAmt; //商户交易总额",
  11104. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  11105. " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额",
  11106. " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额",
  11107. " decimal NotHelpCreditTradeAmt = $3.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额",
  11108. " decimal HelpCreditTradeAmt = $3.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额",
  11109. " decimal DebitNonCapTradeAmt = $3.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额",
  11110. " decimal QrDebitNotCapTradeAmt = $3.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额",
  11111. " decimal NonQrDebitNotCapTradeAmt = $3.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额",
  11112. " decimal NotHelpDebitNonCapTradeAmt = $3.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  11113. " decimal HelpDebitNonCapTradeAmt = $3.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  11114. " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  11115. " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  11116. " decimal TradeProfit = $3.TradeProfit; //交易分润",
  11117. " decimal CreditTradeProfit = $3.CreditTradeProfit; //贷记卡分润总金额",
  11118. " decimal QrCreditTradeProfit = $3.QrCreditTradeProfit; //(云闪付)贷记卡交易分润",
  11119. " decimal NonQrCreditTradeProfit = $3.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润",
  11120. " decimal NotHelpCreditTradeProfit = $3.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额",
  11121. " decimal HelpCreditTradeProfit = $3.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额",
  11122. " decimal DebitNonTradeCapProfit = $3.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额",
  11123. " decimal QrDebitNonTradeCapProfit = $3.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额",
  11124. " decimal NonQrDebitNonTradeCapProfit = $3.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额",
  11125. " decimal NotHelpDebitNonTradeCapProfit = $3.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11126. " decimal HelpDebitNonTradeCapProfit = $3.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11127. " decimal DebitTradeCapProfit = $3.DebitTradeCapProfit; //借记卡封顶交易分润总金额",
  11128. " decimal NotHelpCreditProfitRate = $3.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11129. " decimal NotHelpCreditProfitStandardRate = $3.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例",
  11130. " decimal NotHelpCreditAddOrSubRate = $3.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  11131. " decimal HelpCreditProfitRate = $3.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11132. " decimal HelpCreditProfitStandardRate = $3.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例",
  11133. " decimal HelpCreditAddOrSubRate = $3.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  11134. " decimal NotHelpDebitProfitRate = $3.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11135. " decimal NotHelpDebitProfitStandardRate = $3.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例",
  11136. " decimal NotHelpDebitAddOrSubRate = $3.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  11137. " decimal HelpDebitProfitRate = $3.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11138. " decimal HelpDebitProfitStandardRate = $3.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例",
  11139. " decimal HelpDebitAddOrSubRate = $3.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例",
  11140. " decimal DebitCapSingleReward = $3.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额",
  11141. " decimal QrCreditProfitRate = $3.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例",
  11142. " decimal QrCreditProfitStandardRate = $3.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准",
  11143. " decimal QrCreditAddOrSubRate = $3.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减",
  11144. " decimal QrDebitProfitRate = $3.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例",
  11145. " decimal QrDebitProfitStandardRate = $3.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准",
  11146. " decimal QrDebitAddOrSubRate = $3.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减",
  11147. " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
  11148. " string Remark = $3.Remark; //备注",
  11149. " string TradeMonth = $3.TradeMonth; //交易月",
  11150. " string RecordNo = $3.RecordNo; //记录单号",
  11151. " int TopUserId = $3.TopUserId; //顶级创客",
  11152. "}"
  11153. ]
  11154. },
  11155. "查询分润奖励记录": {
  11156. "prefix": "ym-db-ProfitRewardRecord-Exist",
  11157. "body": [
  11158. "bool $1 = db.ProfitRewardRecord.Any(m => m.Id == $2);",
  11159. ]
  11160. },
  11161. "查询某个分润奖励记录,并取值": {
  11162. "prefix": "ym-db-ProfitRewardRecord-FindByPrimaryKey",
  11163. "body": [
  11164. "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
  11165. "if ($1 != null)",
  11166. "{",
  11167. " int UserId = $1.UserId; //创客",
  11168. " int MerchantId = $1.MerchantId; //商户",
  11169. " int BrandId = $1.BrandId; //品牌",
  11170. " int ProfitType = $1.ProfitType; //创客分润类型",
  11171. " decimal OtherTradeAmt = $1.OtherTradeAmt; //其他产品交易总金额",
  11172. " decimal OtherCreditTradeAmt = $1.OtherCreditTradeAmt; //其他产品贷记卡交易总金额",
  11173. " decimal OtherDebitNotCapTradeAmt = $1.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额",
  11174. " decimal TradeAmt = $1.TradeAmt; //商户交易总额",
  11175. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  11176. " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额",
  11177. " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额",
  11178. " decimal NotHelpCreditTradeAmt = $1.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额",
  11179. " decimal HelpCreditTradeAmt = $1.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额",
  11180. " decimal DebitNonCapTradeAmt = $1.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额",
  11181. " decimal QrDebitNotCapTradeAmt = $1.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额",
  11182. " decimal NonQrDebitNotCapTradeAmt = $1.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额",
  11183. " decimal NotHelpDebitNonCapTradeAmt = $1.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  11184. " decimal HelpDebitNonCapTradeAmt = $1.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  11185. " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  11186. " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  11187. " decimal TradeProfit = $1.TradeProfit; //交易分润",
  11188. " decimal CreditTradeProfit = $1.CreditTradeProfit; //贷记卡分润总金额",
  11189. " decimal QrCreditTradeProfit = $1.QrCreditTradeProfit; //(云闪付)贷记卡交易分润",
  11190. " decimal NonQrCreditTradeProfit = $1.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润",
  11191. " decimal NotHelpCreditTradeProfit = $1.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额",
  11192. " decimal HelpCreditTradeProfit = $1.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额",
  11193. " decimal DebitNonTradeCapProfit = $1.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额",
  11194. " decimal QrDebitNonTradeCapProfit = $1.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额",
  11195. " decimal NonQrDebitNonTradeCapProfit = $1.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额",
  11196. " decimal NotHelpDebitNonTradeCapProfit = $1.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11197. " decimal HelpDebitNonTradeCapProfit = $1.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11198. " decimal DebitTradeCapProfit = $1.DebitTradeCapProfit; //借记卡封顶交易分润总金额",
  11199. " decimal NotHelpCreditProfitRate = $1.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11200. " decimal NotHelpCreditProfitStandardRate = $1.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例",
  11201. " decimal NotHelpCreditAddOrSubRate = $1.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  11202. " decimal HelpCreditProfitRate = $1.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11203. " decimal HelpCreditProfitStandardRate = $1.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例",
  11204. " decimal HelpCreditAddOrSubRate = $1.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  11205. " decimal NotHelpDebitProfitRate = $1.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11206. " decimal NotHelpDebitProfitStandardRate = $1.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例",
  11207. " decimal NotHelpDebitAddOrSubRate = $1.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  11208. " decimal HelpDebitProfitRate = $1.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11209. " decimal HelpDebitProfitStandardRate = $1.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例",
  11210. " decimal HelpDebitAddOrSubRate = $1.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例",
  11211. " decimal DebitCapSingleReward = $1.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额",
  11212. " decimal QrCreditProfitRate = $1.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例",
  11213. " decimal QrCreditProfitStandardRate = $1.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准",
  11214. " decimal QrCreditAddOrSubRate = $1.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减",
  11215. " decimal QrDebitProfitRate = $1.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例",
  11216. " decimal QrDebitProfitStandardRate = $1.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准",
  11217. " decimal QrDebitAddOrSubRate = $1.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减",
  11218. " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
  11219. " string Remark = $1.Remark; //备注",
  11220. " string TradeMonth = $1.TradeMonth; //交易月",
  11221. " string RecordNo = $1.RecordNo; //记录单号",
  11222. " int TopUserId = $1.TopUserId; //顶级创客",
  11223. "}"
  11224. ]
  11225. },
  11226. "查询某个分润奖励记录,并赋值": {
  11227. "prefix": "ym-db-ProfitRewardRecord-Update",
  11228. "body": [
  11229. "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
  11230. "if ($1 != null)",
  11231. "{",
  11232. " $1.UserId = $2; //创客",
  11233. " $1.MerchantId = $3; //商户",
  11234. " $1.BrandId = $4; //品牌",
  11235. " $1.ProfitType = $5; //创客分润类型",
  11236. " $1.OtherTradeAmt = $6; //其他产品交易总金额",
  11237. " $1.OtherCreditTradeAmt = $7; //其他产品贷记卡交易总金额",
  11238. " $1.OtherDebitNotCapTradeAmt = $8; //其他产品借记卡非封顶交易总金额",
  11239. " $1.TradeAmt = $9; //商户交易总额",
  11240. " $1.CreditTradeAmt = $10; //贷记卡交易总金额",
  11241. " $1.QrCreditTradeAmt = $11; //(云闪付)贷记卡交易总金额",
  11242. " $1.NonQrCreditTradeAmt = $12; //(非云闪付)贷记卡交易总金额",
  11243. " $1.NotHelpCreditTradeAmt = $13; //(非扶持期)(非云闪付)贷记卡交易总金额",
  11244. " $1.HelpCreditTradeAmt = $14; //(扶持期)(非云闪付)贷记卡交易总金额",
  11245. " $1.DebitNonCapTradeAmt = $15; //商户非封顶借记卡交易总额",
  11246. " $1.QrDebitNotCapTradeAmt = $16; //(云闪付)商户非封顶借记卡交易总额",
  11247. " $1.NonQrDebitNotCapTradeAmt = $17; //(非云闪付)商户非封顶借记卡交易总额",
  11248. " $1.NotHelpDebitNonCapTradeAmt = $18; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  11249. " $1.HelpDebitNonCapTradeAmt = $19; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  11250. " $1.DebitCapTradeAmt = $20; //商户借记卡封顶交易总额",
  11251. " $1.DebitCapTradeNum = $21; //商户借记卡封顶交易总笔数",
  11252. " $1.TradeProfit = $22; //交易分润",
  11253. " $1.CreditTradeProfit = $23; //贷记卡分润总金额",
  11254. " $1.QrCreditTradeProfit = $24; //(云闪付)贷记卡交易分润",
  11255. " $1.NonQrCreditTradeProfit = $25; //(非云闪付)贷记卡交易分润",
  11256. " $1.NotHelpCreditTradeProfit = $26; //(非扶持期)(非云闪付)贷记卡分润总金额",
  11257. " $1.HelpCreditTradeProfit = $27; //(扶持期)(非云闪付)贷记卡分润总金额",
  11258. " $1.DebitNonTradeCapProfit = $28; //借记卡非封顶交易分润总金额",
  11259. " $1.QrDebitNonTradeCapProfit = $29; //(云闪付)借记卡非封顶交易分润总金额",
  11260. " $1.NonQrDebitNonTradeCapProfit = $30; //(非云闪付)借记卡非封顶交易分润总金额",
  11261. " $1.NotHelpDebitNonTradeCapProfit = $31; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11262. " $1.HelpDebitNonTradeCapProfit = $32; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11263. " $1.DebitTradeCapProfit = $33; //借记卡封顶交易分润总金额",
  11264. " $1.NotHelpCreditProfitRate = $34; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11265. " $1.NotHelpCreditProfitStandardRate = $35; //(非扶持期)(非云闪付)贷记卡标准分润比例",
  11266. " $1.NotHelpCreditAddOrSubRate = $36; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  11267. " $1.HelpCreditProfitRate = $37; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11268. " $1.HelpCreditProfitStandardRate = $38; //(扶持期)(非云闪付)贷记卡-标准分润比例",
  11269. " $1.HelpCreditAddOrSubRate = $39; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  11270. " $1.NotHelpDebitProfitRate = $40; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11271. " $1.NotHelpDebitProfitStandardRate = $41; //(非扶持期)(非云闪付)借记卡标准分润比例",
  11272. " $1.NotHelpDebitAddOrSubRate = $42; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  11273. " $1.HelpDebitProfitRate = $43; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11274. " $1.HelpDebitProfitStandardRate = $44; //(扶持期)(非云闪付)借记卡-标准分润比例",
  11275. " $1.HelpDebitAddOrSubRate = $45; //(扶持期)(非云闪付)借记卡成本或增或减比例",
  11276. " $1.DebitCapSingleReward = $46; //借记卡合伙人直营封顶交易奖励金额",
  11277. " $1.QrCreditProfitRate = $47; //(云闪付)贷记卡交易分润比例",
  11278. " $1.QrCreditProfitStandardRate = $48; //(云闪付)贷记卡分润基准",
  11279. " $1.QrCreditAddOrSubRate = $49; //(云闪付)贷记卡分润比例或增或减",
  11280. " $1.QrDebitProfitRate = $50; //(云闪付)借记卡非封顶交易分润比例",
  11281. " $1.QrDebitProfitStandardRate = $51; //(云闪付)借记卡非封顶交易分润基准",
  11282. " $1.QrDebitAddOrSubRate = $52; //(云闪付)借记卡非封顶交易分润比例或增或减",
  11283. " $1.CheckStatus = $53; //验证和同步账户状态",
  11284. " $1.Remark = $54; //备注",
  11285. " $1.TradeMonth = $55; //交易月",
  11286. " $1.RecordNo = $56; //记录单号",
  11287. " $1.TopUserId = $57; //顶级创客",
  11288. "}"
  11289. ]
  11290. },
  11291. "获取分润奖励记录数量": {
  11292. "prefix": "ym-db-ProfitRewardRecord-FindAndCount",
  11293. "body": [
  11294. "int $1 = db.ProfitRewardRecord.Count(m => $2);",
  11295. ]
  11296. },
  11297. "添加分润奖励记录": {
  11298. "prefix": "ym-db-ProfitRewardRecord-Create",
  11299. "body": [
  11300. "db.ProfitRewardRecord.Add(new ProfitRewardRecord()",
  11301. "{",
  11302. " CreateDate = DateTime.Now,",
  11303. " UpdateDate = DateTime.Now,",
  11304. " UserId = $1, //创客",
  11305. " MerchantId = $2, //商户",
  11306. " BrandId = $3, //品牌",
  11307. " ProfitType = $4, //创客分润类型",
  11308. " OtherTradeAmt = $5, //其他产品交易总金额",
  11309. " OtherCreditTradeAmt = $6, //其他产品贷记卡交易总金额",
  11310. " OtherDebitNotCapTradeAmt = $7, //其他产品借记卡非封顶交易总金额",
  11311. " TradeAmt = $8, //商户交易总额",
  11312. " CreditTradeAmt = $9, //贷记卡交易总金额",
  11313. " QrCreditTradeAmt = $10, //(云闪付)贷记卡交易总金额",
  11314. " NonQrCreditTradeAmt = $11, //(非云闪付)贷记卡交易总金额",
  11315. " NotHelpCreditTradeAmt = $12, //(非扶持期)(非云闪付)贷记卡交易总金额",
  11316. " HelpCreditTradeAmt = $13, //(扶持期)(非云闪付)贷记卡交易总金额",
  11317. " DebitNonCapTradeAmt = $14, //商户非封顶借记卡交易总额",
  11318. " QrDebitNotCapTradeAmt = $15, //(云闪付)商户非封顶借记卡交易总额",
  11319. " NonQrDebitNotCapTradeAmt = $16, //(非云闪付)商户非封顶借记卡交易总额",
  11320. " NotHelpDebitNonCapTradeAmt = $17, //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
  11321. " HelpDebitNonCapTradeAmt = $18, //(扶持期)(非云闪付)借记卡非封顶交易总金额",
  11322. " DebitCapTradeAmt = $19, //商户借记卡封顶交易总额",
  11323. " DebitCapTradeNum = $20, //商户借记卡封顶交易总笔数",
  11324. " TradeProfit = $21, //交易分润",
  11325. " CreditTradeProfit = $22, //贷记卡分润总金额",
  11326. " QrCreditTradeProfit = $23, //(云闪付)贷记卡交易分润",
  11327. " NonQrCreditTradeProfit = $24, //(非云闪付)贷记卡交易分润",
  11328. " NotHelpCreditTradeProfit = $25, //(非扶持期)(非云闪付)贷记卡分润总金额",
  11329. " HelpCreditTradeProfit = $26, //(扶持期)(非云闪付)贷记卡分润总金额",
  11330. " DebitNonTradeCapProfit = $27, //借记卡非封顶交易分润总金额",
  11331. " QrDebitNonTradeCapProfit = $28, //(云闪付)借记卡非封顶交易分润总金额",
  11332. " NonQrDebitNonTradeCapProfit = $29, //(非云闪付)借记卡非封顶交易分润总金额",
  11333. " NotHelpDebitNonTradeCapProfit = $30, //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11334. " HelpDebitNonTradeCapProfit = $31, //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
  11335. " DebitTradeCapProfit = $32, //借记卡封顶交易分润总金额",
  11336. " NotHelpCreditProfitRate = $33, //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11337. " NotHelpCreditProfitStandardRate = $34, //(非扶持期)(非云闪付)贷记卡标准分润比例",
  11338. " NotHelpCreditAddOrSubRate = $35, //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
  11339. " HelpCreditProfitRate = $36, //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
  11340. " HelpCreditProfitStandardRate = $37, //(扶持期)(非云闪付)贷记卡-标准分润比例",
  11341. " HelpCreditAddOrSubRate = $38, //(扶持期)(非云闪付)贷记卡成本或增或减比例",
  11342. " NotHelpDebitProfitRate = $39, //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11343. " NotHelpDebitProfitStandardRate = $40, //(非扶持期)(非云闪付)借记卡标准分润比例",
  11344. " NotHelpDebitAddOrSubRate = $41, //(非扶持期)(非云闪付)借记卡成本或增或减比例",
  11345. " HelpDebitProfitRate = $42, //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
  11346. " HelpDebitProfitStandardRate = $43, //(扶持期)(非云闪付)借记卡-标准分润比例",
  11347. " HelpDebitAddOrSubRate = $44, //(扶持期)(非云闪付)借记卡成本或增或减比例",
  11348. " DebitCapSingleReward = $45, //借记卡合伙人直营封顶交易奖励金额",
  11349. " QrCreditProfitRate = $46, //(云闪付)贷记卡交易分润比例",
  11350. " QrCreditProfitStandardRate = $47, //(云闪付)贷记卡分润基准",
  11351. " QrCreditAddOrSubRate = $48, //(云闪付)贷记卡分润比例或增或减",
  11352. " QrDebitProfitRate = $49, //(云闪付)借记卡非封顶交易分润比例",
  11353. " QrDebitProfitStandardRate = $50, //(云闪付)借记卡非封顶交易分润基准",
  11354. " QrDebitAddOrSubRate = $51, //(云闪付)借记卡非封顶交易分润比例或增或减",
  11355. " CheckStatus = $52, //验证和同步账户状态",
  11356. " Remark = $53, //备注",
  11357. " TradeMonth = $54, //交易月",
  11358. " RecordNo = $55, //记录单号",
  11359. " TopUserId = $56, //顶级创客",
  11360. "});"
  11361. ]
  11362. },"删除某个分润奖励记录": {
  11363. "prefix": "ym-db-ProfitRewardRecord-Delete",
  11364. "body": [
  11365. "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
  11366. "if ($1 != null)",
  11367. "{",
  11368. " db.ProfitRewardRecord.Remove($1);",
  11369. "}"
  11370. ]
  11371. },
  11372. "查询分润补贴明细列表": {
  11373. "prefix": "ym-db-ProfitSubsidyDetail-Find",
  11374. "body": [
  11375. "List<ProfitSubsidyDetail> $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11376. "foreach (ProfitSubsidyDetail $3 in $1)",
  11377. "{",
  11378. "}"
  11379. ]
  11380. },
  11381. "查询分润补贴明细列表,并取值": {
  11382. "prefix": "ym-db-ProfitSubsidyDetail-FindWithData",
  11383. "body": [
  11384. "List<ProfitSubsidyDetail> $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11385. "foreach (ProfitSubsidyDetail $3 in $1)",
  11386. "{",
  11387. " string RecordNo = $3.RecordNo; //流水号",
  11388. " int BrandId = $3.BrandId; //品牌",
  11389. " string ProductName = $3.ProductName; //产品名称",
  11390. " string TradeMonth = $3.TradeMonth; //交易月份",
  11391. " int MerchantId = $3.MerchantId; //商户",
  11392. " string MerNo = $3.MerNo; //渠道商户编号",
  11393. " string SnNo = $3.SnNo; //渠道SN号",
  11394. " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间",
  11395. " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
  11396. " int BelongUserId = $3.BelongUserId; //商户归属人",
  11397. " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户",
  11398. " int SubsidyUserId = $3.SubsidyUserId; //补贴人",
  11399. " int SubsidyType = $3.SubsidyType; //分润补贴类型",
  11400. " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额",
  11401. " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额",
  11402. " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额",
  11403. " decimal CreditProfitRate = $3.CreditProfitRate; //(非云闪付)贷记卡交易分润比例",
  11404. " decimal SubsidyProfitRate = $3.SubsidyProfitRate; //创客活动期内直营商户分润万分之十",
  11405. " decimal SubsidyProfit = $3.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额",
  11406. " string Remark = $3.Remark; //备注",
  11407. "}"
  11408. ]
  11409. },
  11410. "查询分润补贴明细": {
  11411. "prefix": "ym-db-ProfitSubsidyDetail-Exist",
  11412. "body": [
  11413. "bool $1 = db.ProfitSubsidyDetail.Any(m => m.Id == $2);",
  11414. ]
  11415. },
  11416. "查询某个分润补贴明细,并取值": {
  11417. "prefix": "ym-db-ProfitSubsidyDetail-FindByPrimaryKey",
  11418. "body": [
  11419. "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
  11420. "if ($1 != null)",
  11421. "{",
  11422. " string RecordNo = $1.RecordNo; //流水号",
  11423. " int BrandId = $1.BrandId; //品牌",
  11424. " string ProductName = $1.ProductName; //产品名称",
  11425. " string TradeMonth = $1.TradeMonth; //交易月份",
  11426. " int MerchantId = $1.MerchantId; //商户",
  11427. " string MerNo = $1.MerNo; //渠道商户编号",
  11428. " string SnNo = $1.SnNo; //渠道SN号",
  11429. " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间",
  11430. " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
  11431. " int BelongUserId = $1.BelongUserId; //商户归属人",
  11432. " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户",
  11433. " int SubsidyUserId = $1.SubsidyUserId; //补贴人",
  11434. " int SubsidyType = $1.SubsidyType; //分润补贴类型",
  11435. " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额",
  11436. " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额",
  11437. " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额",
  11438. " decimal CreditProfitRate = $1.CreditProfitRate; //(非云闪付)贷记卡交易分润比例",
  11439. " decimal SubsidyProfitRate = $1.SubsidyProfitRate; //创客活动期内直营商户分润万分之十",
  11440. " decimal SubsidyProfit = $1.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额",
  11441. " string Remark = $1.Remark; //备注",
  11442. "}"
  11443. ]
  11444. },
  11445. "查询某个分润补贴明细,并赋值": {
  11446. "prefix": "ym-db-ProfitSubsidyDetail-Update",
  11447. "body": [
  11448. "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
  11449. "if ($1 != null)",
  11450. "{",
  11451. " $1.RecordNo = $2; //流水号",
  11452. " $1.BrandId = $3; //品牌",
  11453. " $1.ProductName = $4; //产品名称",
  11454. " $1.TradeMonth = $5; //交易月份",
  11455. " $1.MerchantId = $6; //商户",
  11456. " $1.MerNo = $7; //渠道商户编号",
  11457. " $1.SnNo = $8; //渠道SN号",
  11458. " $1.MerRegTime = $9; //渠道注册时间",
  11459. " $1.MerStandardDate = $10; //商户激活时间",
  11460. " $1.BelongUserId = $11; //商户归属人",
  11461. " $1.MerHelpFlag = $12; //是否属于扶持周期内商户",
  11462. " $1.SubsidyUserId = $13; //补贴人",
  11463. " $1.SubsidyType = $14; //分润补贴类型",
  11464. " $1.CreditTradeAmt = $15; //商户贷记卡交易总金额",
  11465. " $1.QrCreditTradeAmt = $16; //商户(云闪付)贷记卡交易总金额",
  11466. " $1.NonQrCreditTradeAmt = $17; //商户(非云闪付)贷记卡交易总金额",
  11467. " $1.CreditProfitRate = $18; //(非云闪付)贷记卡交易分润比例",
  11468. " $1.SubsidyProfitRate = $19; //创客活动期内直营商户分润万分之十",
  11469. " $1.SubsidyProfit = $20; //商户(非云闪付)贷记卡交易分润补贴金额",
  11470. " $1.Remark = $21; //备注",
  11471. "}"
  11472. ]
  11473. },
  11474. "获取分润补贴明细数量": {
  11475. "prefix": "ym-db-ProfitSubsidyDetail-FindAndCount",
  11476. "body": [
  11477. "int $1 = db.ProfitSubsidyDetail.Count(m => $2);",
  11478. ]
  11479. },
  11480. "添加分润补贴明细": {
  11481. "prefix": "ym-db-ProfitSubsidyDetail-Create",
  11482. "body": [
  11483. "db.ProfitSubsidyDetail.Add(new ProfitSubsidyDetail()",
  11484. "{",
  11485. " CreateDate = DateTime.Now,",
  11486. " UpdateDate = DateTime.Now,",
  11487. " RecordNo = $1, //流水号",
  11488. " BrandId = $2, //品牌",
  11489. " ProductName = $3, //产品名称",
  11490. " TradeMonth = $4, //交易月份",
  11491. " MerchantId = $5, //商户",
  11492. " MerNo = $6, //渠道商户编号",
  11493. " SnNo = $7, //渠道SN号",
  11494. " MerRegTime = $8, //渠道注册时间",
  11495. " MerStandardDate = $9, //商户激活时间",
  11496. " BelongUserId = $10, //商户归属人",
  11497. " MerHelpFlag = $11, //是否属于扶持周期内商户",
  11498. " SubsidyUserId = $12, //补贴人",
  11499. " SubsidyType = $13, //分润补贴类型",
  11500. " CreditTradeAmt = $14, //商户贷记卡交易总金额",
  11501. " QrCreditTradeAmt = $15, //商户(云闪付)贷记卡交易总金额",
  11502. " NonQrCreditTradeAmt = $16, //商户(非云闪付)贷记卡交易总金额",
  11503. " CreditProfitRate = $17, //(非云闪付)贷记卡交易分润比例",
  11504. " SubsidyProfitRate = $18, //创客活动期内直营商户分润万分之十",
  11505. " SubsidyProfit = $19, //商户(非云闪付)贷记卡交易分润补贴金额",
  11506. " Remark = $20, //备注",
  11507. "});"
  11508. ]
  11509. },"删除某个分润补贴明细": {
  11510. "prefix": "ym-db-ProfitSubsidyDetail-Delete",
  11511. "body": [
  11512. "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
  11513. "if ($1 != null)",
  11514. "{",
  11515. " db.ProfitSubsidyDetail.Remove($1);",
  11516. "}"
  11517. ]
  11518. },
  11519. "查询第三方平台设置列表": {
  11520. "prefix": "ym-db-PublicAccountSet-Find",
  11521. "body": [
  11522. "List<PublicAccountSet> $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11523. "foreach (PublicAccountSet $3 in $1)",
  11524. "{",
  11525. "}"
  11526. ]
  11527. },
  11528. "查询第三方平台设置列表,并取值": {
  11529. "prefix": "ym-db-PublicAccountSet-FindWithData",
  11530. "body": [
  11531. "List<PublicAccountSet> $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11532. "foreach (PublicAccountSet $3 in $1)",
  11533. "{",
  11534. " int Id = $3.Id; //Id",
  11535. " string AlipayAppId = $3.AlipayAppId; //支付宝AppId",
  11536. " string AlipayPartnerId = $3.AlipayPartnerId; //支付宝合作者Id",
  11537. " string AlipayPrivateKey = $3.AlipayPrivateKey; //支付宝私钥",
  11538. " string AlipayPublicKey = $3.AlipayPublicKey; //支付宝公钥",
  11539. " string WeChatAppId = $3.WeChatAppId; //微信公众号AppId",
  11540. " string WeChatAppSecret = $3.WeChatAppSecret; //微信公众号AppSecret",
  11541. " string WeChatMchId = $3.WeChatMchId; //微信商户号",
  11542. " string WeChatPayKey = $3.WeChatPayKey; //微信支付密钥",
  11543. " string WeChatOpenAppId = $3.WeChatOpenAppId; //微信开放平台AppId",
  11544. " string WeChatOpenAppSecret = $3.WeChatOpenAppSecret; //微信开放平台AppSecret",
  11545. " string ServerIp = $3.ServerIp; //服务器IP",
  11546. " string WeChatMiniAppId = $3.WeChatMiniAppId; //微信小程序AppId",
  11547. " string WeChatMiniAppSecret = $3.WeChatMiniAppSecret; //微信小程序AppSecret",
  11548. " string QqAndroidAppId = $3.QqAndroidAppId; //QQ安卓AppId",
  11549. " string QqAndroidAppKey = $3.QqAndroidAppKey; //QQ安卓AppKey",
  11550. " string QqIosAppId = $3.QqIosAppId; //QQIOSAppId",
  11551. " string QqIosAppKey = $3.QqIosAppKey; //QQIOSAppKey",
  11552. " string AliyunAccessKeyId = $3.AliyunAccessKeyId; //阿里云AccessKeyID",
  11553. " string AliyunAccessKeySecret = $3.AliyunAccessKeySecret; //阿里云AccessKeySecret",
  11554. " string AliyunPushAndroidAppId = $3.AliyunPushAndroidAppId; //阿里云推送安卓AppId",
  11555. " string AliyunPushAndroidAppSecret = $3.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret",
  11556. " string AliyunPushIosAppId = $3.AliyunPushIosAppId; //阿里云推送IOSAppId",
  11557. " string AliyunPushIosAppSecret = $3.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret",
  11558. " string MobAppKey = $3.MobAppKey; //MobAppKey",
  11559. " string MobAppSecret = $3.MobAppSecret; //MobAppSecret",
  11560. " string MeiQiaAppKey = $3.MeiQiaAppKey; //美洽AppKey",
  11561. " string ErpApiUrl = $3.ErpApiUrl; //请求地址",
  11562. " string ErpAppCode = $3.ErpAppCode; //AppCode",
  11563. " string SmsApiPwd = $3.SmsApiPwd; //密码",
  11564. " string SmsApiSign = $3.SmsApiSign; //签名",
  11565. " string SmsApiUserId = $3.SmsApiUserId; //账号",
  11566. " string SmsApiDefaultTemplate = $3.SmsApiDefaultTemplate; //默认验证码模板",
  11567. " string AliyunRegionId = $3.AliyunRegionId; //阿里云服务器别名",
  11568. " string AliyunAndroidNotifyTitle = $3.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题",
  11569. " string AliyunAndroidActivity = $3.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity",
  11570. "}"
  11571. ]
  11572. },
  11573. "查询第三方平台设置": {
  11574. "prefix": "ym-db-PublicAccountSet-Exist",
  11575. "body": [
  11576. "bool $1 = db.PublicAccountSet.Any(m => m.Id == $2);",
  11577. ]
  11578. },
  11579. "查询某个第三方平台设置,并取值": {
  11580. "prefix": "ym-db-PublicAccountSet-FindByPrimaryKey",
  11581. "body": [
  11582. "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
  11583. "if ($1 != null)",
  11584. "{",
  11585. " int Id = $1.Id; //Id",
  11586. " string AlipayAppId = $1.AlipayAppId; //支付宝AppId",
  11587. " string AlipayPartnerId = $1.AlipayPartnerId; //支付宝合作者Id",
  11588. " string AlipayPrivateKey = $1.AlipayPrivateKey; //支付宝私钥",
  11589. " string AlipayPublicKey = $1.AlipayPublicKey; //支付宝公钥",
  11590. " string WeChatAppId = $1.WeChatAppId; //微信公众号AppId",
  11591. " string WeChatAppSecret = $1.WeChatAppSecret; //微信公众号AppSecret",
  11592. " string WeChatMchId = $1.WeChatMchId; //微信商户号",
  11593. " string WeChatPayKey = $1.WeChatPayKey; //微信支付密钥",
  11594. " string WeChatOpenAppId = $1.WeChatOpenAppId; //微信开放平台AppId",
  11595. " string WeChatOpenAppSecret = $1.WeChatOpenAppSecret; //微信开放平台AppSecret",
  11596. " string ServerIp = $1.ServerIp; //服务器IP",
  11597. " string WeChatMiniAppId = $1.WeChatMiniAppId; //微信小程序AppId",
  11598. " string WeChatMiniAppSecret = $1.WeChatMiniAppSecret; //微信小程序AppSecret",
  11599. " string QqAndroidAppId = $1.QqAndroidAppId; //QQ安卓AppId",
  11600. " string QqAndroidAppKey = $1.QqAndroidAppKey; //QQ安卓AppKey",
  11601. " string QqIosAppId = $1.QqIosAppId; //QQIOSAppId",
  11602. " string QqIosAppKey = $1.QqIosAppKey; //QQIOSAppKey",
  11603. " string AliyunAccessKeyId = $1.AliyunAccessKeyId; //阿里云AccessKeyID",
  11604. " string AliyunAccessKeySecret = $1.AliyunAccessKeySecret; //阿里云AccessKeySecret",
  11605. " string AliyunPushAndroidAppId = $1.AliyunPushAndroidAppId; //阿里云推送安卓AppId",
  11606. " string AliyunPushAndroidAppSecret = $1.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret",
  11607. " string AliyunPushIosAppId = $1.AliyunPushIosAppId; //阿里云推送IOSAppId",
  11608. " string AliyunPushIosAppSecret = $1.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret",
  11609. " string MobAppKey = $1.MobAppKey; //MobAppKey",
  11610. " string MobAppSecret = $1.MobAppSecret; //MobAppSecret",
  11611. " string MeiQiaAppKey = $1.MeiQiaAppKey; //美洽AppKey",
  11612. " string ErpApiUrl = $1.ErpApiUrl; //请求地址",
  11613. " string ErpAppCode = $1.ErpAppCode; //AppCode",
  11614. " string SmsApiPwd = $1.SmsApiPwd; //密码",
  11615. " string SmsApiSign = $1.SmsApiSign; //签名",
  11616. " string SmsApiUserId = $1.SmsApiUserId; //账号",
  11617. " string SmsApiDefaultTemplate = $1.SmsApiDefaultTemplate; //默认验证码模板",
  11618. " string AliyunRegionId = $1.AliyunRegionId; //阿里云服务器别名",
  11619. " string AliyunAndroidNotifyTitle = $1.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题",
  11620. " string AliyunAndroidActivity = $1.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity",
  11621. "}"
  11622. ]
  11623. },
  11624. "查询某个第三方平台设置,并赋值": {
  11625. "prefix": "ym-db-PublicAccountSet-Update",
  11626. "body": [
  11627. "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
  11628. "if ($1 != null)",
  11629. "{",
  11630. " $1.Id = $2; //Id",
  11631. " $1.AlipayAppId = $3; //支付宝AppId",
  11632. " $1.AlipayPartnerId = $4; //支付宝合作者Id",
  11633. " $1.AlipayPrivateKey = $5; //支付宝私钥",
  11634. " $1.AlipayPublicKey = $6; //支付宝公钥",
  11635. " $1.WeChatAppId = $7; //微信公众号AppId",
  11636. " $1.WeChatAppSecret = $8; //微信公众号AppSecret",
  11637. " $1.WeChatMchId = $9; //微信商户号",
  11638. " $1.WeChatPayKey = $10; //微信支付密钥",
  11639. " $1.WeChatOpenAppId = $11; //微信开放平台AppId",
  11640. " $1.WeChatOpenAppSecret = $12; //微信开放平台AppSecret",
  11641. " $1.ServerIp = $13; //服务器IP",
  11642. " $1.WeChatMiniAppId = $14; //微信小程序AppId",
  11643. " $1.WeChatMiniAppSecret = $15; //微信小程序AppSecret",
  11644. " $1.QqAndroidAppId = $16; //QQ安卓AppId",
  11645. " $1.QqAndroidAppKey = $17; //QQ安卓AppKey",
  11646. " $1.QqIosAppId = $18; //QQIOSAppId",
  11647. " $1.QqIosAppKey = $19; //QQIOSAppKey",
  11648. " $1.AliyunAccessKeyId = $20; //阿里云AccessKeyID",
  11649. " $1.AliyunAccessKeySecret = $21; //阿里云AccessKeySecret",
  11650. " $1.AliyunPushAndroidAppId = $22; //阿里云推送安卓AppId",
  11651. " $1.AliyunPushAndroidAppSecret = $23; //阿里云推送安卓AppSecret",
  11652. " $1.AliyunPushIosAppId = $24; //阿里云推送IOSAppId",
  11653. " $1.AliyunPushIosAppSecret = $25; //阿里云推送IOSAppSecret",
  11654. " $1.MobAppKey = $26; //MobAppKey",
  11655. " $1.MobAppSecret = $27; //MobAppSecret",
  11656. " $1.MeiQiaAppKey = $28; //美洽AppKey",
  11657. " $1.ErpApiUrl = $29; //请求地址",
  11658. " $1.ErpAppCode = $30; //AppCode",
  11659. " $1.SmsApiPwd = $31; //密码",
  11660. " $1.SmsApiSign = $32; //签名",
  11661. " $1.SmsApiUserId = $33; //账号",
  11662. " $1.SmsApiDefaultTemplate = $34; //默认验证码模板",
  11663. " $1.AliyunRegionId = $35; //阿里云服务器别名",
  11664. " $1.AliyunAndroidNotifyTitle = $36; //阿里云安卓弹窗标题",
  11665. " $1.AliyunAndroidActivity = $37; //阿里云点击通知后跳转的Activity",
  11666. "}"
  11667. ]
  11668. },
  11669. "获取第三方平台设置数量": {
  11670. "prefix": "ym-db-PublicAccountSet-FindAndCount",
  11671. "body": [
  11672. "int $1 = db.PublicAccountSet.Count(m => $2);",
  11673. ]
  11674. },
  11675. "添加第三方平台设置": {
  11676. "prefix": "ym-db-PublicAccountSet-Create",
  11677. "body": [
  11678. "db.PublicAccountSet.Add(new PublicAccountSet()",
  11679. "{",
  11680. " CreateDate = DateTime.Now,",
  11681. " UpdateDate = DateTime.Now,",
  11682. " Id = $1, //Id",
  11683. " AlipayAppId = $2, //支付宝AppId",
  11684. " AlipayPartnerId = $3, //支付宝合作者Id",
  11685. " AlipayPrivateKey = $4, //支付宝私钥",
  11686. " AlipayPublicKey = $5, //支付宝公钥",
  11687. " WeChatAppId = $6, //微信公众号AppId",
  11688. " WeChatAppSecret = $7, //微信公众号AppSecret",
  11689. " WeChatMchId = $8, //微信商户号",
  11690. " WeChatPayKey = $9, //微信支付密钥",
  11691. " WeChatOpenAppId = $10, //微信开放平台AppId",
  11692. " WeChatOpenAppSecret = $11, //微信开放平台AppSecret",
  11693. " ServerIp = $12, //服务器IP",
  11694. " WeChatMiniAppId = $13, //微信小程序AppId",
  11695. " WeChatMiniAppSecret = $14, //微信小程序AppSecret",
  11696. " QqAndroidAppId = $15, //QQ安卓AppId",
  11697. " QqAndroidAppKey = $16, //QQ安卓AppKey",
  11698. " QqIosAppId = $17, //QQIOSAppId",
  11699. " QqIosAppKey = $18, //QQIOSAppKey",
  11700. " AliyunAccessKeyId = $19, //阿里云AccessKeyID",
  11701. " AliyunAccessKeySecret = $20, //阿里云AccessKeySecret",
  11702. " AliyunPushAndroidAppId = $21, //阿里云推送安卓AppId",
  11703. " AliyunPushAndroidAppSecret = $22, //阿里云推送安卓AppSecret",
  11704. " AliyunPushIosAppId = $23, //阿里云推送IOSAppId",
  11705. " AliyunPushIosAppSecret = $24, //阿里云推送IOSAppSecret",
  11706. " MobAppKey = $25, //MobAppKey",
  11707. " MobAppSecret = $26, //MobAppSecret",
  11708. " MeiQiaAppKey = $27, //美洽AppKey",
  11709. " ErpApiUrl = $28, //请求地址",
  11710. " ErpAppCode = $29, //AppCode",
  11711. " SmsApiPwd = $30, //密码",
  11712. " SmsApiSign = $31, //签名",
  11713. " SmsApiUserId = $32, //账号",
  11714. " SmsApiDefaultTemplate = $33, //默认验证码模板",
  11715. " AliyunRegionId = $34, //阿里云服务器别名",
  11716. " AliyunAndroidNotifyTitle = $35, //阿里云安卓弹窗标题",
  11717. " AliyunAndroidActivity = $36, //阿里云点击通知后跳转的Activity",
  11718. "});"
  11719. ]
  11720. },"删除某个第三方平台设置": {
  11721. "prefix": "ym-db-PublicAccountSet-Delete",
  11722. "body": [
  11723. "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
  11724. "if ($1 != null)",
  11725. "{",
  11726. " db.PublicAccountSet.Remove($1);",
  11727. "}"
  11728. ]
  11729. },
  11730. "查询拉新活动信息列表": {
  11731. "prefix": "ym-db-PullNewAct-Find",
  11732. "body": [
  11733. "List<PullNewAct> $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11734. "foreach (PullNewAct $3 in $1)",
  11735. "{",
  11736. "}"
  11737. ]
  11738. },
  11739. "查询拉新活动信息列表,并取值": {
  11740. "prefix": "ym-db-PullNewAct-FindWithData",
  11741. "body": [
  11742. "List<PullNewAct> $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11743. "foreach (PullNewAct $3 in $1)",
  11744. "{",
  11745. " int SnDelayDay = $3.SnDelayDay; //机具延时时间",
  11746. " int ProductType = $3.ProductType; //产品类型",
  11747. " string ProductName = $3.ProductName; //产品名称",
  11748. " string ActStdCond = $3.ActStdCond; //拉新活动达标条件",
  11749. " DateTime ActEffectStartDate = $3.ActEffectStartDate; //有效开始时间",
  11750. " DateTime ActEffectEndDate = $3.ActEffectEndDate; //有效结束时间",
  11751. " string Remark = $3.Remark; //备注",
  11752. "}"
  11753. ]
  11754. },
  11755. "查询拉新活动信息": {
  11756. "prefix": "ym-db-PullNewAct-Exist",
  11757. "body": [
  11758. "bool $1 = db.PullNewAct.Any(m => m.Id == $2);",
  11759. ]
  11760. },
  11761. "查询某个拉新活动信息,并取值": {
  11762. "prefix": "ym-db-PullNewAct-FindByPrimaryKey",
  11763. "body": [
  11764. "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
  11765. "if ($1 != null)",
  11766. "{",
  11767. " int SnDelayDay = $1.SnDelayDay; //机具延时时间",
  11768. " int ProductType = $1.ProductType; //产品类型",
  11769. " string ProductName = $1.ProductName; //产品名称",
  11770. " string ActStdCond = $1.ActStdCond; //拉新活动达标条件",
  11771. " DateTime ActEffectStartDate = $1.ActEffectStartDate; //有效开始时间",
  11772. " DateTime ActEffectEndDate = $1.ActEffectEndDate; //有效结束时间",
  11773. " string Remark = $1.Remark; //备注",
  11774. "}"
  11775. ]
  11776. },
  11777. "查询某个拉新活动信息,并赋值": {
  11778. "prefix": "ym-db-PullNewAct-Update",
  11779. "body": [
  11780. "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
  11781. "if ($1 != null)",
  11782. "{",
  11783. " $1.SnDelayDay = $2; //机具延时时间",
  11784. " $1.ProductType = $3; //产品类型",
  11785. " $1.ProductName = $4; //产品名称",
  11786. " $1.ActStdCond = $5; //拉新活动达标条件",
  11787. " $1.ActEffectStartDate = $6; //有效开始时间",
  11788. " $1.ActEffectEndDate = $7; //有效结束时间",
  11789. " $1.Remark = $8; //备注",
  11790. "}"
  11791. ]
  11792. },
  11793. "获取拉新活动信息数量": {
  11794. "prefix": "ym-db-PullNewAct-FindAndCount",
  11795. "body": [
  11796. "int $1 = db.PullNewAct.Count(m => $2);",
  11797. ]
  11798. },
  11799. "添加拉新活动信息": {
  11800. "prefix": "ym-db-PullNewAct-Create",
  11801. "body": [
  11802. "db.PullNewAct.Add(new PullNewAct()",
  11803. "{",
  11804. " CreateDate = DateTime.Now,",
  11805. " UpdateDate = DateTime.Now,",
  11806. " SnDelayDay = $1, //机具延时时间",
  11807. " ProductType = $2, //产品类型",
  11808. " ProductName = $3, //产品名称",
  11809. " ActStdCond = $4, //拉新活动达标条件",
  11810. " ActEffectStartDate = $5, //有效开始时间",
  11811. " ActEffectEndDate = $6, //有效结束时间",
  11812. " Remark = $7, //备注",
  11813. "});"
  11814. ]
  11815. },"删除某个拉新活动信息": {
  11816. "prefix": "ym-db-PullNewAct-Delete",
  11817. "body": [
  11818. "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
  11819. "if ($1 != null)",
  11820. "{",
  11821. " db.PullNewAct.Remove($1);",
  11822. "}"
  11823. ]
  11824. },
  11825. "查询拉新明细列表": {
  11826. "prefix": "ym-db-PullNewDetail-Find",
  11827. "body": [
  11828. "List<PullNewDetail> $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11829. "foreach (PullNewDetail $3 in $1)",
  11830. "{",
  11831. "}"
  11832. ]
  11833. },
  11834. "查询拉新明细列表,并取值": {
  11835. "prefix": "ym-db-PullNewDetail-FindWithData",
  11836. "body": [
  11837. "List<PullNewDetail> $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11838. "foreach (PullNewDetail $3 in $1)",
  11839. "{",
  11840. " string StatDate = $3.StatDate; //统计日期",
  11841. " string StatMonth = $3.StatMonth; //统计所在月份",
  11842. " int UserId = $3.UserId; //创客",
  11843. " int StatType = $3.StatType; //统计类型",
  11844. " int RecUserId = $3.RecUserId; //招募人",
  11845. " string RecMallOrder = $3.RecMallOrder; //招募人商城订单号",
  11846. " DateTime RecMallOrderTime = $3.RecMallOrderTime; //招募创客商城下单时间",
  11847. " DateTime RecMallSendTime = $3.RecMallSendTime; //招募人商城发货时间",
  11848. " int RecMallBrandId = $3.RecMallBrandId; //招募人商城订单品牌",
  11849. " string RecMallProductName = $3.RecMallProductName; //招募人商城订单产品名称",
  11850. " int RecMallProductNum = $3.RecMallProductNum; //招募人商城订单产品数量",
  11851. " int BizStatus = $3.BizStatus; //业务状态",
  11852. " int RewardStatus = $3.RewardStatus; //奖励状态",
  11853. " string Remark = $3.Remark; //备注",
  11854. " int RecUserType = $3.RecUserType; //商户创客类型",
  11855. " DateTime RegDate = $3.RegDate; //注册时间",
  11856. "}"
  11857. ]
  11858. },
  11859. "查询拉新明细": {
  11860. "prefix": "ym-db-PullNewDetail-Exist",
  11861. "body": [
  11862. "bool $1 = db.PullNewDetail.Any(m => m.Id == $2);",
  11863. ]
  11864. },
  11865. "查询某个拉新明细,并取值": {
  11866. "prefix": "ym-db-PullNewDetail-FindByPrimaryKey",
  11867. "body": [
  11868. "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
  11869. "if ($1 != null)",
  11870. "{",
  11871. " string StatDate = $1.StatDate; //统计日期",
  11872. " string StatMonth = $1.StatMonth; //统计所在月份",
  11873. " int UserId = $1.UserId; //创客",
  11874. " int StatType = $1.StatType; //统计类型",
  11875. " int RecUserId = $1.RecUserId; //招募人",
  11876. " string RecMallOrder = $1.RecMallOrder; //招募人商城订单号",
  11877. " DateTime RecMallOrderTime = $1.RecMallOrderTime; //招募创客商城下单时间",
  11878. " DateTime RecMallSendTime = $1.RecMallSendTime; //招募人商城发货时间",
  11879. " int RecMallBrandId = $1.RecMallBrandId; //招募人商城订单品牌",
  11880. " string RecMallProductName = $1.RecMallProductName; //招募人商城订单产品名称",
  11881. " int RecMallProductNum = $1.RecMallProductNum; //招募人商城订单产品数量",
  11882. " int BizStatus = $1.BizStatus; //业务状态",
  11883. " int RewardStatus = $1.RewardStatus; //奖励状态",
  11884. " string Remark = $1.Remark; //备注",
  11885. " int RecUserType = $1.RecUserType; //商户创客类型",
  11886. " DateTime RegDate = $1.RegDate; //注册时间",
  11887. "}"
  11888. ]
  11889. },
  11890. "查询某个拉新明细,并赋值": {
  11891. "prefix": "ym-db-PullNewDetail-Update",
  11892. "body": [
  11893. "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
  11894. "if ($1 != null)",
  11895. "{",
  11896. " $1.StatDate = $2; //统计日期",
  11897. " $1.StatMonth = $3; //统计所在月份",
  11898. " $1.UserId = $4; //创客",
  11899. " $1.StatType = $5; //统计类型",
  11900. " $1.RecUserId = $6; //招募人",
  11901. " $1.RecMallOrder = $7; //招募人商城订单号",
  11902. " $1.RecMallOrderTime = $8; //招募创客商城下单时间",
  11903. " $1.RecMallSendTime = $9; //招募人商城发货时间",
  11904. " $1.RecMallBrandId = $10; //招募人商城订单品牌",
  11905. " $1.RecMallProductName = $11; //招募人商城订单产品名称",
  11906. " $1.RecMallProductNum = $12; //招募人商城订单产品数量",
  11907. " $1.BizStatus = $13; //业务状态",
  11908. " $1.RewardStatus = $14; //奖励状态",
  11909. " $1.Remark = $15; //备注",
  11910. " $1.RecUserType = $16; //商户创客类型",
  11911. " $1.RegDate = $17; //注册时间",
  11912. "}"
  11913. ]
  11914. },
  11915. "获取拉新明细数量": {
  11916. "prefix": "ym-db-PullNewDetail-FindAndCount",
  11917. "body": [
  11918. "int $1 = db.PullNewDetail.Count(m => $2);",
  11919. ]
  11920. },
  11921. "添加拉新明细": {
  11922. "prefix": "ym-db-PullNewDetail-Create",
  11923. "body": [
  11924. "db.PullNewDetail.Add(new PullNewDetail()",
  11925. "{",
  11926. " CreateDate = DateTime.Now,",
  11927. " UpdateDate = DateTime.Now,",
  11928. " StatDate = $1, //统计日期",
  11929. " StatMonth = $2, //统计所在月份",
  11930. " UserId = $3, //创客",
  11931. " StatType = $4, //统计类型",
  11932. " RecUserId = $5, //招募人",
  11933. " RecMallOrder = $6, //招募人商城订单号",
  11934. " RecMallOrderTime = $7, //招募创客商城下单时间",
  11935. " RecMallSendTime = $8, //招募人商城发货时间",
  11936. " RecMallBrandId = $9, //招募人商城订单品牌",
  11937. " RecMallProductName = $10, //招募人商城订单产品名称",
  11938. " RecMallProductNum = $11, //招募人商城订单产品数量",
  11939. " BizStatus = $12, //业务状态",
  11940. " RewardStatus = $13, //奖励状态",
  11941. " Remark = $14, //备注",
  11942. " RecUserType = $15, //商户创客类型",
  11943. " RegDate = $16, //注册时间",
  11944. "});"
  11945. ]
  11946. },"删除某个拉新明细": {
  11947. "prefix": "ym-db-PullNewDetail-Delete",
  11948. "body": [
  11949. "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
  11950. "if ($1 != null)",
  11951. "{",
  11952. " db.PullNewDetail.Remove($1);",
  11953. "}"
  11954. ]
  11955. },
  11956. "查询拉新日统计信息列表": {
  11957. "prefix": "ym-db-PullnewSummary-Find",
  11958. "body": [
  11959. "List<PullnewSummary> $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11960. "foreach (PullnewSummary $3 in $1)",
  11961. "{",
  11962. "}"
  11963. ]
  11964. },
  11965. "查询拉新日统计信息列表,并取值": {
  11966. "prefix": "ym-db-PullnewSummary-FindWithData",
  11967. "body": [
  11968. "List<PullnewSummary> $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  11969. "foreach (PullnewSummary $3 in $1)",
  11970. "{",
  11971. " string StatDate = $3.StatDate; //统计日",
  11972. " string StatMonth = $3.StatMonth; //统计月",
  11973. " int UserId = $3.UserId; //创客",
  11974. " int BrandId = $3.BrandId; //产品类型",
  11975. " int RecUserAuthNum = $3.RecUserAuthNum; //招募实名创客数",
  11976. " int RecUserDeliveryStdNum = $3.RecUserDeliveryStdNum; //招募创客提货达标人数",
  11977. " int RuleSnDelayDay = $3.RuleSnDelayDay; //规则机具延迟天数",
  11978. " int BizSnDelayDay = $3.BizSnDelayDay; //业务机具延迟天数",
  11979. " string Remark = $3.Remark; //备注",
  11980. "}"
  11981. ]
  11982. },
  11983. "查询拉新日统计信息": {
  11984. "prefix": "ym-db-PullnewSummary-Exist",
  11985. "body": [
  11986. "bool $1 = db.PullnewSummary.Any(m => m.Id == $2);",
  11987. ]
  11988. },
  11989. "查询某个拉新日统计信息,并取值": {
  11990. "prefix": "ym-db-PullnewSummary-FindByPrimaryKey",
  11991. "body": [
  11992. "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
  11993. "if ($1 != null)",
  11994. "{",
  11995. " string StatDate = $1.StatDate; //统计日",
  11996. " string StatMonth = $1.StatMonth; //统计月",
  11997. " int UserId = $1.UserId; //创客",
  11998. " int BrandId = $1.BrandId; //产品类型",
  11999. " int RecUserAuthNum = $1.RecUserAuthNum; //招募实名创客数",
  12000. " int RecUserDeliveryStdNum = $1.RecUserDeliveryStdNum; //招募创客提货达标人数",
  12001. " int RuleSnDelayDay = $1.RuleSnDelayDay; //规则机具延迟天数",
  12002. " int BizSnDelayDay = $1.BizSnDelayDay; //业务机具延迟天数",
  12003. " string Remark = $1.Remark; //备注",
  12004. "}"
  12005. ]
  12006. },
  12007. "查询某个拉新日统计信息,并赋值": {
  12008. "prefix": "ym-db-PullnewSummary-Update",
  12009. "body": [
  12010. "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
  12011. "if ($1 != null)",
  12012. "{",
  12013. " $1.StatDate = $2; //统计日",
  12014. " $1.StatMonth = $3; //统计月",
  12015. " $1.UserId = $4; //创客",
  12016. " $1.BrandId = $5; //产品类型",
  12017. " $1.RecUserAuthNum = $6; //招募实名创客数",
  12018. " $1.RecUserDeliveryStdNum = $7; //招募创客提货达标人数",
  12019. " $1.RuleSnDelayDay = $8; //规则机具延迟天数",
  12020. " $1.BizSnDelayDay = $9; //业务机具延迟天数",
  12021. " $1.Remark = $10; //备注",
  12022. "}"
  12023. ]
  12024. },
  12025. "获取拉新日统计信息数量": {
  12026. "prefix": "ym-db-PullnewSummary-FindAndCount",
  12027. "body": [
  12028. "int $1 = db.PullnewSummary.Count(m => $2);",
  12029. ]
  12030. },
  12031. "添加拉新日统计信息": {
  12032. "prefix": "ym-db-PullnewSummary-Create",
  12033. "body": [
  12034. "db.PullnewSummary.Add(new PullnewSummary()",
  12035. "{",
  12036. " CreateDate = DateTime.Now,",
  12037. " UpdateDate = DateTime.Now,",
  12038. " StatDate = $1, //统计日",
  12039. " StatMonth = $2, //统计月",
  12040. " UserId = $3, //创客",
  12041. " BrandId = $4, //产品类型",
  12042. " RecUserAuthNum = $5, //招募实名创客数",
  12043. " RecUserDeliveryStdNum = $6, //招募创客提货达标人数",
  12044. " RuleSnDelayDay = $7, //规则机具延迟天数",
  12045. " BizSnDelayDay = $8, //业务机具延迟天数",
  12046. " Remark = $9, //备注",
  12047. "});"
  12048. ]
  12049. },"删除某个拉新日统计信息": {
  12050. "prefix": "ym-db-PullnewSummary-Delete",
  12051. "body": [
  12052. "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
  12053. "if ($1 != null)",
  12054. "{",
  12055. " db.PullnewSummary.Remove($1);",
  12056. "}"
  12057. ]
  12058. },
  12059. "查询服务中心列表": {
  12060. "prefix": "ym-db-ServiceCenter-Find",
  12061. "body": [
  12062. "List<ServiceCenter> $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12063. "foreach (ServiceCenter $3 in $1)",
  12064. "{",
  12065. "}"
  12066. ]
  12067. },
  12068. "查询服务中心列表,并取值": {
  12069. "prefix": "ym-db-ServiceCenter-FindWithData",
  12070. "body": [
  12071. "List<ServiceCenter> $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12072. "foreach (ServiceCenter $3 in $1)",
  12073. "{",
  12074. " string Title = $3.Title; //标题",
  12075. " string SubTitle = $3.SubTitle; //副标题",
  12076. " string Content = $3.Content; //内容",
  12077. " int CategoryId = $3.CategoryId; //问答类型",
  12078. "}"
  12079. ]
  12080. },
  12081. "查询服务中心": {
  12082. "prefix": "ym-db-ServiceCenter-Exist",
  12083. "body": [
  12084. "bool $1 = db.ServiceCenter.Any(m => m.Id == $2);",
  12085. ]
  12086. },
  12087. "查询某个服务中心,并取值": {
  12088. "prefix": "ym-db-ServiceCenter-FindByPrimaryKey",
  12089. "body": [
  12090. "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
  12091. "if ($1 != null)",
  12092. "{",
  12093. " string Title = $1.Title; //标题",
  12094. " string SubTitle = $1.SubTitle; //副标题",
  12095. " string Content = $1.Content; //内容",
  12096. " int CategoryId = $1.CategoryId; //问答类型",
  12097. "}"
  12098. ]
  12099. },
  12100. "查询某个服务中心,并赋值": {
  12101. "prefix": "ym-db-ServiceCenter-Update",
  12102. "body": [
  12103. "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
  12104. "if ($1 != null)",
  12105. "{",
  12106. " $1.Title = $2; //标题",
  12107. " $1.SubTitle = $3; //副标题",
  12108. " $1.Content = $4; //内容",
  12109. " $1.CategoryId = $5; //问答类型",
  12110. "}"
  12111. ]
  12112. },
  12113. "获取服务中心数量": {
  12114. "prefix": "ym-db-ServiceCenter-FindAndCount",
  12115. "body": [
  12116. "int $1 = db.ServiceCenter.Count(m => $2);",
  12117. ]
  12118. },
  12119. "添加服务中心": {
  12120. "prefix": "ym-db-ServiceCenter-Create",
  12121. "body": [
  12122. "db.ServiceCenter.Add(new ServiceCenter()",
  12123. "{",
  12124. " CreateDate = DateTime.Now,",
  12125. " UpdateDate = DateTime.Now,",
  12126. " Title = $1, //标题",
  12127. " SubTitle = $2, //副标题",
  12128. " Content = $3, //内容",
  12129. " CategoryId = $4, //问答类型",
  12130. "});"
  12131. ]
  12132. },"删除某个服务中心": {
  12133. "prefix": "ym-db-ServiceCenter-Delete",
  12134. "body": [
  12135. "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
  12136. "if ($1 != null)",
  12137. "{",
  12138. " db.ServiceCenter.Remove($1);",
  12139. "}"
  12140. ]
  12141. },
  12142. "查询仓库库存变动信息列表": {
  12143. "prefix": "ym-db-StoreBalance-Find",
  12144. "body": [
  12145. "List<StoreBalance> $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12146. "foreach (StoreBalance $3 in $1)",
  12147. "{",
  12148. "}"
  12149. ]
  12150. },
  12151. "查询仓库库存变动信息列表,并取值": {
  12152. "prefix": "ym-db-StoreBalance-FindWithData",
  12153. "body": [
  12154. "List<StoreBalance> $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12155. "foreach (StoreBalance $3 in $1)",
  12156. "{",
  12157. " int StoreId = $3.StoreId; //仓库",
  12158. " string TransRecordNo = $3.TransRecordNo; //交易流水编号",
  12159. " int TransType = $3.TransType; //交易类型",
  12160. " int BrandId = $3.BrandId; //产品类型",
  12161. " int OpStoreNum = $3.OpStoreNum; //操作库存数",
  12162. " string OpSymbol = $3.OpSymbol; //操作符",
  12163. " int BeforeTotalNum = $3.BeforeTotalNum; //操作前总库存数",
  12164. " int AfterTotalNum = $3.AfterTotalNum; //操作后总库存数",
  12165. " int BeforeLaveNum = $3.BeforeLaveNum; //操作前剩余库存数",
  12166. " int AfterLaveNum = $3.AfterLaveNum; //操作后剩余库存数",
  12167. " int BeforeOutNum = $3.BeforeOutNum; //操作前出库数",
  12168. " int AfterOutNum = $3.AfterOutNum; //操作后出库数",
  12169. "}"
  12170. ]
  12171. },
  12172. "查询仓库库存变动信息": {
  12173. "prefix": "ym-db-StoreBalance-Exist",
  12174. "body": [
  12175. "bool $1 = db.StoreBalance.Any(m => m.Id == $2);",
  12176. ]
  12177. },
  12178. "查询某个仓库库存变动信息,并取值": {
  12179. "prefix": "ym-db-StoreBalance-FindByPrimaryKey",
  12180. "body": [
  12181. "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
  12182. "if ($1 != null)",
  12183. "{",
  12184. " int StoreId = $1.StoreId; //仓库",
  12185. " string TransRecordNo = $1.TransRecordNo; //交易流水编号",
  12186. " int TransType = $1.TransType; //交易类型",
  12187. " int BrandId = $1.BrandId; //产品类型",
  12188. " int OpStoreNum = $1.OpStoreNum; //操作库存数",
  12189. " string OpSymbol = $1.OpSymbol; //操作符",
  12190. " int BeforeTotalNum = $1.BeforeTotalNum; //操作前总库存数",
  12191. " int AfterTotalNum = $1.AfterTotalNum; //操作后总库存数",
  12192. " int BeforeLaveNum = $1.BeforeLaveNum; //操作前剩余库存数",
  12193. " int AfterLaveNum = $1.AfterLaveNum; //操作后剩余库存数",
  12194. " int BeforeOutNum = $1.BeforeOutNum; //操作前出库数",
  12195. " int AfterOutNum = $1.AfterOutNum; //操作后出库数",
  12196. "}"
  12197. ]
  12198. },
  12199. "查询某个仓库库存变动信息,并赋值": {
  12200. "prefix": "ym-db-StoreBalance-Update",
  12201. "body": [
  12202. "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
  12203. "if ($1 != null)",
  12204. "{",
  12205. " $1.StoreId = $2; //仓库",
  12206. " $1.TransRecordNo = $3; //交易流水编号",
  12207. " $1.TransType = $4; //交易类型",
  12208. " $1.BrandId = $5; //产品类型",
  12209. " $1.OpStoreNum = $6; //操作库存数",
  12210. " $1.OpSymbol = $7; //操作符",
  12211. " $1.BeforeTotalNum = $8; //操作前总库存数",
  12212. " $1.AfterTotalNum = $9; //操作后总库存数",
  12213. " $1.BeforeLaveNum = $10; //操作前剩余库存数",
  12214. " $1.AfterLaveNum = $11; //操作后剩余库存数",
  12215. " $1.BeforeOutNum = $12; //操作前出库数",
  12216. " $1.AfterOutNum = $13; //操作后出库数",
  12217. "}"
  12218. ]
  12219. },
  12220. "获取仓库库存变动信息数量": {
  12221. "prefix": "ym-db-StoreBalance-FindAndCount",
  12222. "body": [
  12223. "int $1 = db.StoreBalance.Count(m => $2);",
  12224. ]
  12225. },
  12226. "添加仓库库存变动信息": {
  12227. "prefix": "ym-db-StoreBalance-Create",
  12228. "body": [
  12229. "db.StoreBalance.Add(new StoreBalance()",
  12230. "{",
  12231. " CreateDate = DateTime.Now,",
  12232. " UpdateDate = DateTime.Now,",
  12233. " StoreId = $1, //仓库",
  12234. " TransRecordNo = $2, //交易流水编号",
  12235. " TransType = $3, //交易类型",
  12236. " BrandId = $4, //产品类型",
  12237. " OpStoreNum = $5, //操作库存数",
  12238. " OpSymbol = $6, //操作符",
  12239. " BeforeTotalNum = $7, //操作前总库存数",
  12240. " AfterTotalNum = $8, //操作后总库存数",
  12241. " BeforeLaveNum = $9, //操作前剩余库存数",
  12242. " AfterLaveNum = $10, //操作后剩余库存数",
  12243. " BeforeOutNum = $11, //操作前出库数",
  12244. " AfterOutNum = $12, //操作后出库数",
  12245. "});"
  12246. ]
  12247. },"删除某个仓库库存变动信息": {
  12248. "prefix": "ym-db-StoreBalance-Delete",
  12249. "body": [
  12250. "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
  12251. "if ($1 != null)",
  12252. "{",
  12253. " db.StoreBalance.Remove($1);",
  12254. "}"
  12255. ]
  12256. },
  12257. "查询机具变动历史列表": {
  12258. "prefix": "ym-db-StoreChangeHistory-Find",
  12259. "body": [
  12260. "List<StoreChangeHistory> $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12261. "foreach (StoreChangeHistory $3 in $1)",
  12262. "{",
  12263. "}"
  12264. ]
  12265. },
  12266. "查询机具变动历史列表,并取值": {
  12267. "prefix": "ym-db-StoreChangeHistory-FindWithData",
  12268. "body": [
  12269. "List<StoreChangeHistory> $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12270. "foreach (StoreChangeHistory $3 in $1)",
  12271. "{",
  12272. " int UserId = $3.UserId; //创客",
  12273. " int BrandId = $3.BrandId; //产品类型",
  12274. " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
  12275. " string BizBatchNo = $3.BizBatchNo; //业务批次号",
  12276. " int TransType = $3.TransType; //交易类型",
  12277. " string SnNo = $3.SnNo; //SN编号",
  12278. " int SnType = $3.SnType; //SN机具类型",
  12279. " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
  12280. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  12281. " string DeviceType = $3.DeviceType; //设备类型",
  12282. " string DeviceModel = $3.DeviceModel; //设备型号",
  12283. " int FromUserId = $3.FromUserId; //出货创客",
  12284. " DateTime FromDate = $3.FromDate; //出库时间",
  12285. " string FromRemark = $3.FromRemark; //出库备注",
  12286. " int ToUserId = $3.ToUserId; //收货创客",
  12287. " int ToStoreId = $3.ToStoreId; //创客退货收货仓库",
  12288. " DateTime ToDate = $3.ToDate; //入库时间",
  12289. " string ToRemark = $3.ToRemark; //入库备注",
  12290. " int SourceStoreId = $3.SourceStoreId; //源仓库",
  12291. " int StoreId = $3.StoreId; //仓库",
  12292. "}"
  12293. ]
  12294. },
  12295. "查询机具变动历史": {
  12296. "prefix": "ym-db-StoreChangeHistory-Exist",
  12297. "body": [
  12298. "bool $1 = db.StoreChangeHistory.Any(m => m.Id == $2);",
  12299. ]
  12300. },
  12301. "查询某个机具变动历史,并取值": {
  12302. "prefix": "ym-db-StoreChangeHistory-FindByPrimaryKey",
  12303. "body": [
  12304. "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
  12305. "if ($1 != null)",
  12306. "{",
  12307. " int UserId = $1.UserId; //创客",
  12308. " int BrandId = $1.BrandId; //产品类型",
  12309. " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
  12310. " string BizBatchNo = $1.BizBatchNo; //业务批次号",
  12311. " int TransType = $1.TransType; //交易类型",
  12312. " string SnNo = $1.SnNo; //SN编号",
  12313. " int SnType = $1.SnType; //SN机具类型",
  12314. " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
  12315. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  12316. " string DeviceType = $1.DeviceType; //设备类型",
  12317. " string DeviceModel = $1.DeviceModel; //设备型号",
  12318. " int FromUserId = $1.FromUserId; //出货创客",
  12319. " DateTime FromDate = $1.FromDate; //出库时间",
  12320. " string FromRemark = $1.FromRemark; //出库备注",
  12321. " int ToUserId = $1.ToUserId; //收货创客",
  12322. " int ToStoreId = $1.ToStoreId; //创客退货收货仓库",
  12323. " DateTime ToDate = $1.ToDate; //入库时间",
  12324. " string ToRemark = $1.ToRemark; //入库备注",
  12325. " int SourceStoreId = $1.SourceStoreId; //源仓库",
  12326. " int StoreId = $1.StoreId; //仓库",
  12327. "}"
  12328. ]
  12329. },
  12330. "查询某个机具变动历史,并赋值": {
  12331. "prefix": "ym-db-StoreChangeHistory-Update",
  12332. "body": [
  12333. "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
  12334. "if ($1 != null)",
  12335. "{",
  12336. " $1.UserId = $2; //创客",
  12337. " $1.BrandId = $3; //产品类型",
  12338. " $1.ChangeRecordNo = $4; //变更记录单号",
  12339. " $1.BizBatchNo = $5; //业务批次号",
  12340. " $1.TransType = $6; //交易类型",
  12341. " $1.SnNo = $7; //SN编号",
  12342. " $1.SnType = $8; //SN机具类型",
  12343. " $1.StockOpDirect = $9; //库存操作方向",
  12344. " $1.DeviceVendor = $10; //设备厂商",
  12345. " $1.DeviceType = $11; //设备类型",
  12346. " $1.DeviceModel = $12; //设备型号",
  12347. " $1.FromUserId = $13; //出货创客",
  12348. " $1.FromDate = $14; //出库时间",
  12349. " $1.FromRemark = $15; //出库备注",
  12350. " $1.ToUserId = $16; //收货创客",
  12351. " $1.ToStoreId = $17; //创客退货收货仓库",
  12352. " $1.ToDate = $18; //入库时间",
  12353. " $1.ToRemark = $19; //入库备注",
  12354. " $1.SourceStoreId = $20; //源仓库",
  12355. " $1.StoreId = $21; //仓库",
  12356. "}"
  12357. ]
  12358. },
  12359. "获取机具变动历史数量": {
  12360. "prefix": "ym-db-StoreChangeHistory-FindAndCount",
  12361. "body": [
  12362. "int $1 = db.StoreChangeHistory.Count(m => $2);",
  12363. ]
  12364. },
  12365. "添加机具变动历史": {
  12366. "prefix": "ym-db-StoreChangeHistory-Create",
  12367. "body": [
  12368. "db.StoreChangeHistory.Add(new StoreChangeHistory()",
  12369. "{",
  12370. " CreateDate = DateTime.Now,",
  12371. " UpdateDate = DateTime.Now,",
  12372. " UserId = $1, //创客",
  12373. " BrandId = $2, //产品类型",
  12374. " ChangeRecordNo = $3, //变更记录单号",
  12375. " BizBatchNo = $4, //业务批次号",
  12376. " TransType = $5, //交易类型",
  12377. " SnNo = $6, //SN编号",
  12378. " SnType = $7, //SN机具类型",
  12379. " StockOpDirect = $8, //库存操作方向",
  12380. " DeviceVendor = $9, //设备厂商",
  12381. " DeviceType = $10, //设备类型",
  12382. " DeviceModel = $11, //设备型号",
  12383. " FromUserId = $12, //出货创客",
  12384. " FromDate = $13, //出库时间",
  12385. " FromRemark = $14, //出库备注",
  12386. " ToUserId = $15, //收货创客",
  12387. " ToStoreId = $16, //创客退货收货仓库",
  12388. " ToDate = $17, //入库时间",
  12389. " ToRemark = $18, //入库备注",
  12390. " SourceStoreId = $19, //源仓库",
  12391. " StoreId = $20, //仓库",
  12392. "});"
  12393. ]
  12394. },"删除某个机具变动历史": {
  12395. "prefix": "ym-db-StoreChangeHistory-Delete",
  12396. "body": [
  12397. "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
  12398. "if ($1 != null)",
  12399. "{",
  12400. " db.StoreChangeHistory.Remove($1);",
  12401. "}"
  12402. ]
  12403. },
  12404. "查询仓库编号为主键的关联表列表": {
  12405. "prefix": "ym-db-StoreForCode-Find",
  12406. "body": [
  12407. "List<StoreForCode> $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12408. "foreach (StoreForCode $3 in $1)",
  12409. "{",
  12410. "}"
  12411. ]
  12412. },
  12413. "查询仓库编号为主键的关联表列表,并取值": {
  12414. "prefix": "ym-db-StoreForCode-FindWithData",
  12415. "body": [
  12416. "List<StoreForCode> $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12417. "foreach (StoreForCode $3 in $1)",
  12418. "{",
  12419. " string Code = $3.Code; //编号",
  12420. " int StoreId = $3.StoreId; //仓库",
  12421. "}"
  12422. ]
  12423. },
  12424. "查询仓库编号为主键的关联表": {
  12425. "prefix": "ym-db-StoreForCode-Exist",
  12426. "body": [
  12427. "bool $1 = db.StoreForCode.Any(m => m.Code == $2);",
  12428. ]
  12429. },
  12430. "查询某个仓库编号为主键的关联表,并取值": {
  12431. "prefix": "ym-db-StoreForCode-FindByPrimaryKey",
  12432. "body": [
  12433. "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
  12434. "if ($1 != null)",
  12435. "{",
  12436. " string Code = $1.Code; //编号",
  12437. " int StoreId = $1.StoreId; //仓库",
  12438. "}"
  12439. ]
  12440. },
  12441. "查询某个仓库编号为主键的关联表,并赋值": {
  12442. "prefix": "ym-db-StoreForCode-Update",
  12443. "body": [
  12444. "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
  12445. "if ($1 != null)",
  12446. "{",
  12447. " $1.Code = $2; //编号",
  12448. " $1.StoreId = $3; //仓库",
  12449. "}"
  12450. ]
  12451. },
  12452. "获取仓库编号为主键的关联表数量": {
  12453. "prefix": "ym-db-StoreForCode-FindAndCount",
  12454. "body": [
  12455. "int $1 = db.StoreForCode.Count(m => $2);",
  12456. ]
  12457. },
  12458. "添加仓库编号为主键的关联表": {
  12459. "prefix": "ym-db-StoreForCode-Create",
  12460. "body": [
  12461. "db.StoreForCode.Add(new StoreForCode()",
  12462. "{",
  12463. " CreateDate = DateTime.Now,",
  12464. " UpdateDate = DateTime.Now,",
  12465. " Code = $1, //编号",
  12466. " StoreId = $2, //仓库",
  12467. "});"
  12468. ]
  12469. },"删除某个仓库编号为主键的关联表": {
  12470. "prefix": "ym-db-StoreForCode-Delete",
  12471. "body": [
  12472. "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
  12473. "if ($1 != null)",
  12474. "{",
  12475. " db.StoreForCode.Remove($1);",
  12476. "}"
  12477. ]
  12478. },
  12479. "查询仓库名称为主键的关联表列表": {
  12480. "prefix": "ym-db-StoreForName-Find",
  12481. "body": [
  12482. "List<StoreForName> $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12483. "foreach (StoreForName $3 in $1)",
  12484. "{",
  12485. "}"
  12486. ]
  12487. },
  12488. "查询仓库名称为主键的关联表列表,并取值": {
  12489. "prefix": "ym-db-StoreForName-FindWithData",
  12490. "body": [
  12491. "List<StoreForName> $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12492. "foreach (StoreForName $3 in $1)",
  12493. "{",
  12494. " string Name = $3.Name; //名称",
  12495. " int StoreId = $3.StoreId; //仓库",
  12496. "}"
  12497. ]
  12498. },
  12499. "查询仓库名称为主键的关联表": {
  12500. "prefix": "ym-db-StoreForName-Exist",
  12501. "body": [
  12502. "bool $1 = db.StoreForName.Any(m => m.Name == $2);",
  12503. ]
  12504. },
  12505. "查询某个仓库名称为主键的关联表,并取值": {
  12506. "prefix": "ym-db-StoreForName-FindByPrimaryKey",
  12507. "body": [
  12508. "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
  12509. "if ($1 != null)",
  12510. "{",
  12511. " string Name = $1.Name; //名称",
  12512. " int StoreId = $1.StoreId; //仓库",
  12513. "}"
  12514. ]
  12515. },
  12516. "查询某个仓库名称为主键的关联表,并赋值": {
  12517. "prefix": "ym-db-StoreForName-Update",
  12518. "body": [
  12519. "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
  12520. "if ($1 != null)",
  12521. "{",
  12522. " $1.Name = $2; //名称",
  12523. " $1.StoreId = $3; //仓库",
  12524. "}"
  12525. ]
  12526. },
  12527. "获取仓库名称为主键的关联表数量": {
  12528. "prefix": "ym-db-StoreForName-FindAndCount",
  12529. "body": [
  12530. "int $1 = db.StoreForName.Count(m => $2);",
  12531. ]
  12532. },
  12533. "添加仓库名称为主键的关联表": {
  12534. "prefix": "ym-db-StoreForName-Create",
  12535. "body": [
  12536. "db.StoreForName.Add(new StoreForName()",
  12537. "{",
  12538. " CreateDate = DateTime.Now,",
  12539. " UpdateDate = DateTime.Now,",
  12540. " Name = $1, //名称",
  12541. " StoreId = $2, //仓库",
  12542. "});"
  12543. ]
  12544. },"删除某个仓库名称为主键的关联表": {
  12545. "prefix": "ym-db-StoreForName-Delete",
  12546. "body": [
  12547. "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
  12548. "if ($1 != null)",
  12549. "{",
  12550. " db.StoreForName.Remove($1);",
  12551. "}"
  12552. ]
  12553. },
  12554. "查询仓库列表": {
  12555. "prefix": "ym-db-StoreHouse-Find",
  12556. "body": [
  12557. "List<StoreHouse> $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12558. "foreach (StoreHouse $3 in $1)",
  12559. "{",
  12560. "}"
  12561. ]
  12562. },
  12563. "查询仓库列表,并取值": {
  12564. "prefix": "ym-db-StoreHouse-FindWithData",
  12565. "body": [
  12566. "List<StoreHouse> $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12567. "foreach (StoreHouse $3 in $1)",
  12568. "{",
  12569. " string StoreNo = $3.StoreNo; //仓库编号",
  12570. " string StoreName = $3.StoreName; //仓库名称",
  12571. " int UserId = $3.UserId; //仓库归属人",
  12572. " string BrandId = $3.BrandId; //产品类型",
  12573. " string ProductName = $3.ProductName; //产品名称",
  12574. " string Address = $3.Address; //仓库地址",
  12575. " int ManageUserId = $3.ManageUserId; //仓库管理员",
  12576. " string ManagerEmail = $3.ManagerEmail; //管理者邮箱",
  12577. " int ParentStoreId = $3.ParentStoreId; //父级Id",
  12578. " string ParentNav = $3.ParentNav; //父级集合",
  12579. " int StoreType = $3.StoreType; //仓库类型",
  12580. " int TotalNum = $3.TotalNum; //总库存数",
  12581. " int LaveNum = $3.LaveNum; //剩余库存数",
  12582. " int OutNum = $3.OutNum; //出库数",
  12583. " string Remark = $3.Remark; //备注",
  12584. " string Areas = $3.Areas; //所属地区",
  12585. " string LimitTopUserId = $3.LimitTopUserId; //限制创客特殊仓库",
  12586. " int StoreStatus = $3.StoreStatus; //仓库状态",
  12587. " int StoreKind = $3.StoreKind; //仓库归属类型",
  12588. " string ManageMobile = $3.ManageMobile; //管理者手机号",
  12589. "}"
  12590. ]
  12591. },
  12592. "查询仓库": {
  12593. "prefix": "ym-db-StoreHouse-Exist",
  12594. "body": [
  12595. "bool $1 = db.StoreHouse.Any(m => m.Id == $2);",
  12596. ]
  12597. },
  12598. "查询某个仓库,并取值": {
  12599. "prefix": "ym-db-StoreHouse-FindByPrimaryKey",
  12600. "body": [
  12601. "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
  12602. "if ($1 != null)",
  12603. "{",
  12604. " string StoreNo = $1.StoreNo; //仓库编号",
  12605. " string StoreName = $1.StoreName; //仓库名称",
  12606. " int UserId = $1.UserId; //仓库归属人",
  12607. " string BrandId = $1.BrandId; //产品类型",
  12608. " string ProductName = $1.ProductName; //产品名称",
  12609. " string Address = $1.Address; //仓库地址",
  12610. " int ManageUserId = $1.ManageUserId; //仓库管理员",
  12611. " string ManagerEmail = $1.ManagerEmail; //管理者邮箱",
  12612. " int ParentStoreId = $1.ParentStoreId; //父级Id",
  12613. " string ParentNav = $1.ParentNav; //父级集合",
  12614. " int StoreType = $1.StoreType; //仓库类型",
  12615. " int TotalNum = $1.TotalNum; //总库存数",
  12616. " int LaveNum = $1.LaveNum; //剩余库存数",
  12617. " int OutNum = $1.OutNum; //出库数",
  12618. " string Remark = $1.Remark; //备注",
  12619. " string Areas = $1.Areas; //所属地区",
  12620. " string LimitTopUserId = $1.LimitTopUserId; //限制创客特殊仓库",
  12621. " int StoreStatus = $1.StoreStatus; //仓库状态",
  12622. " int StoreKind = $1.StoreKind; //仓库归属类型",
  12623. " string ManageMobile = $1.ManageMobile; //管理者手机号",
  12624. "}"
  12625. ]
  12626. },
  12627. "查询某个仓库,并赋值": {
  12628. "prefix": "ym-db-StoreHouse-Update",
  12629. "body": [
  12630. "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
  12631. "if ($1 != null)",
  12632. "{",
  12633. " $1.StoreNo = $2; //仓库编号",
  12634. " $1.StoreName = $3; //仓库名称",
  12635. " $1.UserId = $4; //仓库归属人",
  12636. " $1.BrandId = $5; //产品类型",
  12637. " $1.ProductName = $6; //产品名称",
  12638. " $1.Address = $7; //仓库地址",
  12639. " $1.ManageUserId = $8; //仓库管理员",
  12640. " $1.ManagerEmail = $9; //管理者邮箱",
  12641. " $1.ParentStoreId = $10; //父级Id",
  12642. " $1.ParentNav = $11; //父级集合",
  12643. " $1.StoreType = $12; //仓库类型",
  12644. " $1.TotalNum = $13; //总库存数",
  12645. " $1.LaveNum = $14; //剩余库存数",
  12646. " $1.OutNum = $15; //出库数",
  12647. " $1.Remark = $16; //备注",
  12648. " $1.Areas = $17; //所属地区",
  12649. " $1.LimitTopUserId = $18; //限制创客特殊仓库",
  12650. " $1.StoreStatus = $19; //仓库状态",
  12651. " $1.StoreKind = $20; //仓库归属类型",
  12652. " $1.ManageMobile = $21; //管理者手机号",
  12653. "}"
  12654. ]
  12655. },
  12656. "获取仓库数量": {
  12657. "prefix": "ym-db-StoreHouse-FindAndCount",
  12658. "body": [
  12659. "int $1 = db.StoreHouse.Count(m => $2);",
  12660. ]
  12661. },
  12662. "添加仓库": {
  12663. "prefix": "ym-db-StoreHouse-Create",
  12664. "body": [
  12665. "db.StoreHouse.Add(new StoreHouse()",
  12666. "{",
  12667. " CreateDate = DateTime.Now,",
  12668. " UpdateDate = DateTime.Now,",
  12669. " StoreNo = $1, //仓库编号",
  12670. " StoreName = $2, //仓库名称",
  12671. " UserId = $3, //仓库归属人",
  12672. " BrandId = $4, //产品类型",
  12673. " ProductName = $5, //产品名称",
  12674. " Address = $6, //仓库地址",
  12675. " ManageUserId = $7, //仓库管理员",
  12676. " ManagerEmail = $8, //管理者邮箱",
  12677. " ParentStoreId = $9, //父级Id",
  12678. " ParentNav = $10, //父级集合",
  12679. " StoreType = $11, //仓库类型",
  12680. " TotalNum = $12, //总库存数",
  12681. " LaveNum = $13, //剩余库存数",
  12682. " OutNum = $14, //出库数",
  12683. " Remark = $15, //备注",
  12684. " Areas = $16, //所属地区",
  12685. " LimitTopUserId = $17, //限制创客特殊仓库",
  12686. " StoreStatus = $18, //仓库状态",
  12687. " StoreKind = $19, //仓库归属类型",
  12688. " ManageMobile = $20, //管理者手机号",
  12689. "});"
  12690. ]
  12691. },"删除某个仓库": {
  12692. "prefix": "ym-db-StoreHouse-Delete",
  12693. "body": [
  12694. "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
  12695. "if ($1 != null)",
  12696. "{",
  12697. " db.StoreHouse.Remove($1);",
  12698. "}"
  12699. ]
  12700. },
  12701. "查询仓库订单汇总列表": {
  12702. "prefix": "ym-db-StoreMallOrderSummary-Find",
  12703. "body": [
  12704. "List<StoreMallOrderSummary> $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12705. "foreach (StoreMallOrderSummary $3 in $1)",
  12706. "{",
  12707. "}"
  12708. ]
  12709. },
  12710. "查询仓库订单汇总列表,并取值": {
  12711. "prefix": "ym-db-StoreMallOrderSummary-FindWithData",
  12712. "body": [
  12713. "List<StoreMallOrderSummary> $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12714. "foreach (StoreMallOrderSummary $3 in $1)",
  12715. "{",
  12716. " string TradeMonth = $3.TradeMonth; //交易月",
  12717. " int StoreId = $3.StoreId; //仓库",
  12718. " int AgentStoreId = $3.AgentStoreId; //代理分仓",
  12719. " int BrandId = $3.BrandId; //品牌",
  12720. " decimal UnitPrice = $3.UnitPrice; //单价",
  12721. " int OrderNum = $3.OrderNum; //订单数量",
  12722. " int OrderAmt = $3.OrderAmt; //订单金额",
  12723. " int RefundOrderNum = $3.RefundOrderNum; //退款订单数量",
  12724. " decimal RefundAmt = $3.RefundAmt; //退款金额",
  12725. " decimal SettleAmt = $3.SettleAmt; //结算金额",
  12726. " int SettleStatus = $3.SettleStatus; //结算状态",
  12727. " string Remark = $3.Remark; //备注",
  12728. "}"
  12729. ]
  12730. },
  12731. "查询仓库订单汇总": {
  12732. "prefix": "ym-db-StoreMallOrderSummary-Exist",
  12733. "body": [
  12734. "bool $1 = db.StoreMallOrderSummary.Any(m => m.Id == $2);",
  12735. ]
  12736. },
  12737. "查询某个仓库订单汇总,并取值": {
  12738. "prefix": "ym-db-StoreMallOrderSummary-FindByPrimaryKey",
  12739. "body": [
  12740. "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
  12741. "if ($1 != null)",
  12742. "{",
  12743. " string TradeMonth = $1.TradeMonth; //交易月",
  12744. " int StoreId = $1.StoreId; //仓库",
  12745. " int AgentStoreId = $1.AgentStoreId; //代理分仓",
  12746. " int BrandId = $1.BrandId; //品牌",
  12747. " decimal UnitPrice = $1.UnitPrice; //单价",
  12748. " int OrderNum = $1.OrderNum; //订单数量",
  12749. " int OrderAmt = $1.OrderAmt; //订单金额",
  12750. " int RefundOrderNum = $1.RefundOrderNum; //退款订单数量",
  12751. " decimal RefundAmt = $1.RefundAmt; //退款金额",
  12752. " decimal SettleAmt = $1.SettleAmt; //结算金额",
  12753. " int SettleStatus = $1.SettleStatus; //结算状态",
  12754. " string Remark = $1.Remark; //备注",
  12755. "}"
  12756. ]
  12757. },
  12758. "查询某个仓库订单汇总,并赋值": {
  12759. "prefix": "ym-db-StoreMallOrderSummary-Update",
  12760. "body": [
  12761. "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
  12762. "if ($1 != null)",
  12763. "{",
  12764. " $1.TradeMonth = $2; //交易月",
  12765. " $1.StoreId = $3; //仓库",
  12766. " $1.AgentStoreId = $4; //代理分仓",
  12767. " $1.BrandId = $5; //品牌",
  12768. " $1.UnitPrice = $6; //单价",
  12769. " $1.OrderNum = $7; //订单数量",
  12770. " $1.OrderAmt = $8; //订单金额",
  12771. " $1.RefundOrderNum = $9; //退款订单数量",
  12772. " $1.RefundAmt = $10; //退款金额",
  12773. " $1.SettleAmt = $11; //结算金额",
  12774. " $1.SettleStatus = $12; //结算状态",
  12775. " $1.Remark = $13; //备注",
  12776. "}"
  12777. ]
  12778. },
  12779. "获取仓库订单汇总数量": {
  12780. "prefix": "ym-db-StoreMallOrderSummary-FindAndCount",
  12781. "body": [
  12782. "int $1 = db.StoreMallOrderSummary.Count(m => $2);",
  12783. ]
  12784. },
  12785. "添加仓库订单汇总": {
  12786. "prefix": "ym-db-StoreMallOrderSummary-Create",
  12787. "body": [
  12788. "db.StoreMallOrderSummary.Add(new StoreMallOrderSummary()",
  12789. "{",
  12790. " CreateDate = DateTime.Now,",
  12791. " UpdateDate = DateTime.Now,",
  12792. " TradeMonth = $1, //交易月",
  12793. " StoreId = $2, //仓库",
  12794. " AgentStoreId = $3, //代理分仓",
  12795. " BrandId = $4, //品牌",
  12796. " UnitPrice = $5, //单价",
  12797. " OrderNum = $6, //订单数量",
  12798. " OrderAmt = $7, //订单金额",
  12799. " RefundOrderNum = $8, //退款订单数量",
  12800. " RefundAmt = $9, //退款金额",
  12801. " SettleAmt = $10, //结算金额",
  12802. " SettleStatus = $11, //结算状态",
  12803. " Remark = $12, //备注",
  12804. "});"
  12805. ]
  12806. },"删除某个仓库订单汇总": {
  12807. "prefix": "ym-db-StoreMallOrderSummary-Delete",
  12808. "body": [
  12809. "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
  12810. "if ($1 != null)",
  12811. "{",
  12812. " db.StoreMallOrderSummary.Remove($1);",
  12813. "}"
  12814. ]
  12815. },
  12816. "查询仓库SN激活统计列表": {
  12817. "prefix": "ym-db-StoreSnActivateSummary-Find",
  12818. "body": [
  12819. "List<StoreSnActivateSummary> $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12820. "foreach (StoreSnActivateSummary $3 in $1)",
  12821. "{",
  12822. "}"
  12823. ]
  12824. },
  12825. "查询仓库SN激活统计列表,并取值": {
  12826. "prefix": "ym-db-StoreSnActivateSummary-FindWithData",
  12827. "body": [
  12828. "List<StoreSnActivateSummary> $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12829. "foreach (StoreSnActivateSummary $3 in $1)",
  12830. "{",
  12831. " string TradeDate = $3.TradeDate; //交易日",
  12832. " string TradeMonth = $3.TradeMonth; //交易月",
  12833. " int StoreId = $3.StoreId; //仓库",
  12834. " int AgentStoreId = $3.AgentStoreId; //代理分仓",
  12835. " int BrandId = $3.BrandId; //产品类型",
  12836. " int ActivateNum = $3.ActivateNum; //激活数量",
  12837. " int RejectActNum = $3.RejectActNum; //互斥激活数量",
  12838. " int TransferActNum = $3.TransferActNum; //划拨激活数量(循环机划拨激活数)",
  12839. " int EffectActNum = $3.EffectActNum; //有效激活数量",
  12840. " int UserApplyNum = $3.UserApplyNum; //创客申请数量",
  12841. " string Remark = $3.Remark; //备注",
  12842. "}"
  12843. ]
  12844. },
  12845. "查询仓库SN激活统计": {
  12846. "prefix": "ym-db-StoreSnActivateSummary-Exist",
  12847. "body": [
  12848. "bool $1 = db.StoreSnActivateSummary.Any(m => m.Id == $2);",
  12849. ]
  12850. },
  12851. "查询某个仓库SN激活统计,并取值": {
  12852. "prefix": "ym-db-StoreSnActivateSummary-FindByPrimaryKey",
  12853. "body": [
  12854. "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
  12855. "if ($1 != null)",
  12856. "{",
  12857. " string TradeDate = $1.TradeDate; //交易日",
  12858. " string TradeMonth = $1.TradeMonth; //交易月",
  12859. " int StoreId = $1.StoreId; //仓库",
  12860. " int AgentStoreId = $1.AgentStoreId; //代理分仓",
  12861. " int BrandId = $1.BrandId; //产品类型",
  12862. " int ActivateNum = $1.ActivateNum; //激活数量",
  12863. " int RejectActNum = $1.RejectActNum; //互斥激活数量",
  12864. " int TransferActNum = $1.TransferActNum; //划拨激活数量(循环机划拨激活数)",
  12865. " int EffectActNum = $1.EffectActNum; //有效激活数量",
  12866. " int UserApplyNum = $1.UserApplyNum; //创客申请数量",
  12867. " string Remark = $1.Remark; //备注",
  12868. "}"
  12869. ]
  12870. },
  12871. "查询某个仓库SN激活统计,并赋值": {
  12872. "prefix": "ym-db-StoreSnActivateSummary-Update",
  12873. "body": [
  12874. "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
  12875. "if ($1 != null)",
  12876. "{",
  12877. " $1.TradeDate = $2; //交易日",
  12878. " $1.TradeMonth = $3; //交易月",
  12879. " $1.StoreId = $4; //仓库",
  12880. " $1.AgentStoreId = $5; //代理分仓",
  12881. " $1.BrandId = $6; //产品类型",
  12882. " $1.ActivateNum = $7; //激活数量",
  12883. " $1.RejectActNum = $8; //互斥激活数量",
  12884. " $1.TransferActNum = $9; //划拨激活数量(循环机划拨激活数)",
  12885. " $1.EffectActNum = $10; //有效激活数量",
  12886. " $1.UserApplyNum = $11; //创客申请数量",
  12887. " $1.Remark = $12; //备注",
  12888. "}"
  12889. ]
  12890. },
  12891. "获取仓库SN激活统计数量": {
  12892. "prefix": "ym-db-StoreSnActivateSummary-FindAndCount",
  12893. "body": [
  12894. "int $1 = db.StoreSnActivateSummary.Count(m => $2);",
  12895. ]
  12896. },
  12897. "添加仓库SN激活统计": {
  12898. "prefix": "ym-db-StoreSnActivateSummary-Create",
  12899. "body": [
  12900. "db.StoreSnActivateSummary.Add(new StoreSnActivateSummary()",
  12901. "{",
  12902. " CreateDate = DateTime.Now,",
  12903. " UpdateDate = DateTime.Now,",
  12904. " TradeDate = $1, //交易日",
  12905. " TradeMonth = $2, //交易月",
  12906. " StoreId = $3, //仓库",
  12907. " AgentStoreId = $4, //代理分仓",
  12908. " BrandId = $5, //产品类型",
  12909. " ActivateNum = $6, //激活数量",
  12910. " RejectActNum = $7, //互斥激活数量",
  12911. " TransferActNum = $8, //划拨激活数量(循环机划拨激活数)",
  12912. " EffectActNum = $9, //有效激活数量",
  12913. " UserApplyNum = $10, //创客申请数量",
  12914. " Remark = $11, //备注",
  12915. "});"
  12916. ]
  12917. },"删除某个仓库SN激活统计": {
  12918. "prefix": "ym-db-StoreSnActivateSummary-Delete",
  12919. "body": [
  12920. "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
  12921. "if ($1 != null)",
  12922. "{",
  12923. " db.StoreSnActivateSummary.Remove($1);",
  12924. "}"
  12925. ]
  12926. },
  12927. "查询仓库库存变动记录列表": {
  12928. "prefix": "ym-db-StoreStockChange-Find",
  12929. "body": [
  12930. "List<StoreStockChange> $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12931. "foreach (StoreStockChange $3 in $1)",
  12932. "{",
  12933. "}"
  12934. ]
  12935. },
  12936. "查询仓库库存变动记录列表,并取值": {
  12937. "prefix": "ym-db-StoreStockChange-FindWithData",
  12938. "body": [
  12939. "List<StoreStockChange> $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  12940. "foreach (StoreStockChange $3 in $1)",
  12941. "{",
  12942. " int StoreId = $3.StoreId; //仓库",
  12943. " int BrandId = $3.BrandId; //产品类型",
  12944. " string ProductName = $3.ProductName; //产品名称",
  12945. " string ChangeNo = $3.ChangeNo ; //变更单号",
  12946. " string BizBatchNo = $3.BizBatchNo; //业务批次号",
  12947. " int TransType = $3.TransType; //交易类型",
  12948. " string SnNo = $3.SnNo; //SN编号",
  12949. " int SnType = $3.SnType; //SN机具类型",
  12950. " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
  12951. " int SnStatus = $3.SnStatus; //SN状态",
  12952. " int BindStatus = $3.BindStatus; //绑定状态",
  12953. " int BindMerchant = $3.BindMerchant; //绑定商户",
  12954. " int ActiveStatus = $3.ActiveStatus; //激活状态",
  12955. " int ActRewardUserId = $3.ActRewardUserId; //激活奖励人",
  12956. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  12957. " string DeviceModel = $3.DeviceModel; //设备型号",
  12958. " string DeviceType = $3.DeviceType; //设备类型",
  12959. " int FromUserId = $3.FromUserId; //出货人",
  12960. " DateTime FromDate = $3.FromDate; //出库时间",
  12961. " string FromRemark = $3.FromRemark; //出库备注",
  12962. " int ToUserId = $3.ToUserId; //收货人",
  12963. " int ToStoreId = $3.ToStoreId; //退货收货仓库",
  12964. " DateTime ToDate = $3.ToDate; //入库时间",
  12965. " string ToRemark = $3.ToRemark; //入库备注",
  12966. " int SourceStoreId = $3.SourceStoreId; //源仓库编号",
  12967. " string ExpressNo = $3.ExpressNo; //快递单号",
  12968. " string BrandType = $3.BrandType; //品牌类型",
  12969. "}"
  12970. ]
  12971. },
  12972. "查询仓库库存变动记录": {
  12973. "prefix": "ym-db-StoreStockChange-Exist",
  12974. "body": [
  12975. "bool $1 = db.StoreStockChange.Any(m => m.Id == $2);",
  12976. ]
  12977. },
  12978. "查询某个仓库库存变动记录,并取值": {
  12979. "prefix": "ym-db-StoreStockChange-FindByPrimaryKey",
  12980. "body": [
  12981. "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
  12982. "if ($1 != null)",
  12983. "{",
  12984. " int StoreId = $1.StoreId; //仓库",
  12985. " int BrandId = $1.BrandId; //产品类型",
  12986. " string ProductName = $1.ProductName; //产品名称",
  12987. " string ChangeNo = $1.ChangeNo ; //变更单号",
  12988. " string BizBatchNo = $1.BizBatchNo; //业务批次号",
  12989. " int TransType = $1.TransType; //交易类型",
  12990. " string SnNo = $1.SnNo; //SN编号",
  12991. " int SnType = $1.SnType; //SN机具类型",
  12992. " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
  12993. " int SnStatus = $1.SnStatus; //SN状态",
  12994. " int BindStatus = $1.BindStatus; //绑定状态",
  12995. " int BindMerchant = $1.BindMerchant; //绑定商户",
  12996. " int ActiveStatus = $1.ActiveStatus; //激活状态",
  12997. " int ActRewardUserId = $1.ActRewardUserId; //激活奖励人",
  12998. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  12999. " string DeviceModel = $1.DeviceModel; //设备型号",
  13000. " string DeviceType = $1.DeviceType; //设备类型",
  13001. " int FromUserId = $1.FromUserId; //出货人",
  13002. " DateTime FromDate = $1.FromDate; //出库时间",
  13003. " string FromRemark = $1.FromRemark; //出库备注",
  13004. " int ToUserId = $1.ToUserId; //收货人",
  13005. " int ToStoreId = $1.ToStoreId; //退货收货仓库",
  13006. " DateTime ToDate = $1.ToDate; //入库时间",
  13007. " string ToRemark = $1.ToRemark; //入库备注",
  13008. " int SourceStoreId = $1.SourceStoreId; //源仓库编号",
  13009. " string ExpressNo = $1.ExpressNo; //快递单号",
  13010. " string BrandType = $1.BrandType; //品牌类型",
  13011. "}"
  13012. ]
  13013. },
  13014. "查询某个仓库库存变动记录,并赋值": {
  13015. "prefix": "ym-db-StoreStockChange-Update",
  13016. "body": [
  13017. "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
  13018. "if ($1 != null)",
  13019. "{",
  13020. " $1.StoreId = $2; //仓库",
  13021. " $1.BrandId = $3; //产品类型",
  13022. " $1.ProductName = $4; //产品名称",
  13023. " $1.ChangeNo = $5; //变更单号",
  13024. " $1.BizBatchNo = $6; //业务批次号",
  13025. " $1.TransType = $7; //交易类型",
  13026. " $1.SnNo = $8; //SN编号",
  13027. " $1.SnType = $9; //SN机具类型",
  13028. " $1.StockOpDirect = $10; //库存操作方向",
  13029. " $1.SnStatus = $11; //SN状态",
  13030. " $1.BindStatus = $12; //绑定状态",
  13031. " $1.BindMerchant = $13; //绑定商户",
  13032. " $1.ActiveStatus = $14; //激活状态",
  13033. " $1.ActRewardUserId = $15; //激活奖励人",
  13034. " $1.DeviceVendor = $16; //设备厂商",
  13035. " $1.DeviceModel = $17; //设备型号",
  13036. " $1.DeviceType = $18; //设备类型",
  13037. " $1.FromUserId = $19; //出货人",
  13038. " $1.FromDate = $20; //出库时间",
  13039. " $1.FromRemark = $21; //出库备注",
  13040. " $1.ToUserId = $22; //收货人",
  13041. " $1.ToStoreId = $23; //退货收货仓库",
  13042. " $1.ToDate = $24; //入库时间",
  13043. " $1.ToRemark = $25; //入库备注",
  13044. " $1.SourceStoreId = $26; //源仓库编号",
  13045. " $1.ExpressNo = $27; //快递单号",
  13046. " $1.BrandType = $28; //品牌类型",
  13047. "}"
  13048. ]
  13049. },
  13050. "获取仓库库存变动记录数量": {
  13051. "prefix": "ym-db-StoreStockChange-FindAndCount",
  13052. "body": [
  13053. "int $1 = db.StoreStockChange.Count(m => $2);",
  13054. ]
  13055. },
  13056. "添加仓库库存变动记录": {
  13057. "prefix": "ym-db-StoreStockChange-Create",
  13058. "body": [
  13059. "db.StoreStockChange.Add(new StoreStockChange()",
  13060. "{",
  13061. " CreateDate = DateTime.Now,",
  13062. " UpdateDate = DateTime.Now,",
  13063. " StoreId = $1, //仓库",
  13064. " BrandId = $2, //产品类型",
  13065. " ProductName = $3, //产品名称",
  13066. " ChangeNo = $4, //变更单号",
  13067. " BizBatchNo = $5, //业务批次号",
  13068. " TransType = $6, //交易类型",
  13069. " SnNo = $7, //SN编号",
  13070. " SnType = $8, //SN机具类型",
  13071. " StockOpDirect = $9, //库存操作方向",
  13072. " SnStatus = $10, //SN状态",
  13073. " BindStatus = $11, //绑定状态",
  13074. " BindMerchant = $12, //绑定商户",
  13075. " ActiveStatus = $13, //激活状态",
  13076. " ActRewardUserId = $14, //激活奖励人",
  13077. " DeviceVendor = $15, //设备厂商",
  13078. " DeviceModel = $16, //设备型号",
  13079. " DeviceType = $17, //设备类型",
  13080. " FromUserId = $18, //出货人",
  13081. " FromDate = $19, //出库时间",
  13082. " FromRemark = $20, //出库备注",
  13083. " ToUserId = $21, //收货人",
  13084. " ToStoreId = $22, //退货收货仓库",
  13085. " ToDate = $23, //入库时间",
  13086. " ToRemark = $24, //入库备注",
  13087. " SourceStoreId = $25, //源仓库编号",
  13088. " ExpressNo = $26, //快递单号",
  13089. " BrandType = $27, //品牌类型",
  13090. "});"
  13091. ]
  13092. },"删除某个仓库库存变动记录": {
  13093. "prefix": "ym-db-StoreStockChange-Delete",
  13094. "body": [
  13095. "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
  13096. "if ($1 != null)",
  13097. "{",
  13098. " db.StoreStockChange.Remove($1);",
  13099. "}"
  13100. ]
  13101. },
  13102. "查询兑换机具记录列表": {
  13103. "prefix": "ym-db-StoreSwapSn-Find",
  13104. "body": [
  13105. "List<StoreSwapSn> $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13106. "foreach (StoreSwapSn $3 in $1)",
  13107. "{",
  13108. "}"
  13109. ]
  13110. },
  13111. "查询兑换机具记录列表,并取值": {
  13112. "prefix": "ym-db-StoreSwapSn-FindWithData",
  13113. "body": [
  13114. "List<StoreSwapSn> $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13115. "foreach (StoreSwapSn $3 in $1)",
  13116. "{",
  13117. " int UserId = $3.UserId; //创客",
  13118. " int BrandId = $3.BrandId; //品牌",
  13119. " string SnNo = $3.SnNo; //SN号",
  13120. " int SnType = $3.SnType; //SN类型",
  13121. " DateTime StandardDate = $3.StandardDate; //达标日期",
  13122. " int ActType = $3.ActType; //激活类型",
  13123. " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述",
  13124. " int SnStoreId = $3.SnStoreId; //SN仓库",
  13125. " string PosType = $3.PosType; //POS类型",
  13126. " int SwapStatus = $3.SwapStatus; //兑换状态",
  13127. " int BizStatus = $3.BizStatus; //业务状态",
  13128. " int RiskStatus = $3.RiskStatus; //风控状态",
  13129. " string SwapExtProductTypes = $3.SwapExtProductTypes; //可兑换产品类型",
  13130. " string SwapSnNo = $3.SwapSnNo; //兑换SN号",
  13131. " string SwapApplyOrderNo = $3.SwapApplyOrderNo; //兑换申请单号",
  13132. " DateTime SwapApplyDate = $3.SwapApplyDate; //兑换时间",
  13133. " string Remark = $3.Remark; //备注",
  13134. "}"
  13135. ]
  13136. },
  13137. "查询兑换机具记录": {
  13138. "prefix": "ym-db-StoreSwapSn-Exist",
  13139. "body": [
  13140. "bool $1 = db.StoreSwapSn.Any(m => m.Id == $2);",
  13141. ]
  13142. },
  13143. "查询某个兑换机具记录,并取值": {
  13144. "prefix": "ym-db-StoreSwapSn-FindByPrimaryKey",
  13145. "body": [
  13146. "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
  13147. "if ($1 != null)",
  13148. "{",
  13149. " int UserId = $1.UserId; //创客",
  13150. " int BrandId = $1.BrandId; //品牌",
  13151. " string SnNo = $1.SnNo; //SN号",
  13152. " int SnType = $1.SnType; //SN类型",
  13153. " DateTime StandardDate = $1.StandardDate; //达标日期",
  13154. " int ActType = $1.ActType; //激活类型",
  13155. " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述",
  13156. " int SnStoreId = $1.SnStoreId; //SN仓库",
  13157. " string PosType = $1.PosType; //POS类型",
  13158. " int SwapStatus = $1.SwapStatus; //兑换状态",
  13159. " int BizStatus = $1.BizStatus; //业务状态",
  13160. " int RiskStatus = $1.RiskStatus; //风控状态",
  13161. " string SwapExtProductTypes = $1.SwapExtProductTypes; //可兑换产品类型",
  13162. " string SwapSnNo = $1.SwapSnNo; //兑换SN号",
  13163. " string SwapApplyOrderNo = $1.SwapApplyOrderNo; //兑换申请单号",
  13164. " DateTime SwapApplyDate = $1.SwapApplyDate; //兑换时间",
  13165. " string Remark = $1.Remark; //备注",
  13166. "}"
  13167. ]
  13168. },
  13169. "查询某个兑换机具记录,并赋值": {
  13170. "prefix": "ym-db-StoreSwapSn-Update",
  13171. "body": [
  13172. "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
  13173. "if ($1 != null)",
  13174. "{",
  13175. " $1.UserId = $2; //创客",
  13176. " $1.BrandId = $3; //品牌",
  13177. " $1.SnNo = $4; //SN号",
  13178. " $1.SnType = $5; //SN类型",
  13179. " $1.StandardDate = $6; //达标日期",
  13180. " $1.ActType = $7; //激活类型",
  13181. " $1.ActTypeDesc = $8; //激活类型描述",
  13182. " $1.SnStoreId = $9; //SN仓库",
  13183. " $1.PosType = $10; //POS类型",
  13184. " $1.SwapStatus = $11; //兑换状态",
  13185. " $1.BizStatus = $12; //业务状态",
  13186. " $1.RiskStatus = $13; //风控状态",
  13187. " $1.SwapExtProductTypes = $14; //可兑换产品类型",
  13188. " $1.SwapSnNo = $15; //兑换SN号",
  13189. " $1.SwapApplyOrderNo = $16; //兑换申请单号",
  13190. " $1.SwapApplyDate = $17; //兑换时间",
  13191. " $1.Remark = $18; //备注",
  13192. "}"
  13193. ]
  13194. },
  13195. "获取兑换机具记录数量": {
  13196. "prefix": "ym-db-StoreSwapSn-FindAndCount",
  13197. "body": [
  13198. "int $1 = db.StoreSwapSn.Count(m => $2);",
  13199. ]
  13200. },
  13201. "添加兑换机具记录": {
  13202. "prefix": "ym-db-StoreSwapSn-Create",
  13203. "body": [
  13204. "db.StoreSwapSn.Add(new StoreSwapSn()",
  13205. "{",
  13206. " CreateDate = DateTime.Now,",
  13207. " UpdateDate = DateTime.Now,",
  13208. " UserId = $1, //创客",
  13209. " BrandId = $2, //品牌",
  13210. " SnNo = $3, //SN号",
  13211. " SnType = $4, //SN类型",
  13212. " StandardDate = $5, //达标日期",
  13213. " ActType = $6, //激活类型",
  13214. " ActTypeDesc = $7, //激活类型描述",
  13215. " SnStoreId = $8, //SN仓库",
  13216. " PosType = $9, //POS类型",
  13217. " SwapStatus = $10, //兑换状态",
  13218. " BizStatus = $11, //业务状态",
  13219. " RiskStatus = $12, //风控状态",
  13220. " SwapExtProductTypes = $13, //可兑换产品类型",
  13221. " SwapSnNo = $14, //兑换SN号",
  13222. " SwapApplyOrderNo = $15, //兑换申请单号",
  13223. " SwapApplyDate = $16, //兑换时间",
  13224. " Remark = $17, //备注",
  13225. "});"
  13226. ]
  13227. },"删除某个兑换机具记录": {
  13228. "prefix": "ym-db-StoreSwapSn-Delete",
  13229. "body": [
  13230. "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
  13231. "if ($1 != null)",
  13232. "{",
  13233. " db.StoreSwapSn.Remove($1);",
  13234. "}"
  13235. ]
  13236. },
  13237. "查询后台管理员列表": {
  13238. "prefix": "ym-db-SysAdmin-Find",
  13239. "body": [
  13240. "List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13241. "foreach (SysAdmin $3 in $1)",
  13242. "{",
  13243. "}"
  13244. ]
  13245. },
  13246. "查询后台管理员列表,并取值": {
  13247. "prefix": "ym-db-SysAdmin-FindWithData",
  13248. "body": [
  13249. "List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13250. "foreach (SysAdmin $3 in $1)",
  13251. "{",
  13252. " string AdminName = $3.AdminName; //用户名",
  13253. " string Password = $3.Password; //密码",
  13254. " string RealName = $3.RealName; //名称",
  13255. " string Role = $3.Role; //角色",
  13256. " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间",
  13257. "}"
  13258. ]
  13259. },
  13260. "查询后台管理员": {
  13261. "prefix": "ym-db-SysAdmin-Exist",
  13262. "body": [
  13263. "bool $1 = db.SysAdmin.Any(m => m.Id == $2);",
  13264. ]
  13265. },
  13266. "查询某个后台管理员,并取值": {
  13267. "prefix": "ym-db-SysAdmin-FindByPrimaryKey",
  13268. "body": [
  13269. "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
  13270. "if ($1 != null)",
  13271. "{",
  13272. " string AdminName = $1.AdminName; //用户名",
  13273. " string Password = $1.Password; //密码",
  13274. " string RealName = $1.RealName; //名称",
  13275. " string Role = $1.Role; //角色",
  13276. " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间",
  13277. "}"
  13278. ]
  13279. },
  13280. "查询某个后台管理员,并赋值": {
  13281. "prefix": "ym-db-SysAdmin-Update",
  13282. "body": [
  13283. "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
  13284. "if ($1 != null)",
  13285. "{",
  13286. " $1.AdminName = $2; //用户名",
  13287. " $1.Password = $3; //密码",
  13288. " $1.RealName = $4; //名称",
  13289. " $1.Role = $5; //角色",
  13290. " $1.LastLoginDate = $6; //最后登录时间",
  13291. "}"
  13292. ]
  13293. },
  13294. "获取后台管理员数量": {
  13295. "prefix": "ym-db-SysAdmin-FindAndCount",
  13296. "body": [
  13297. "int $1 = db.SysAdmin.Count(m => $2);",
  13298. ]
  13299. },
  13300. "添加后台管理员": {
  13301. "prefix": "ym-db-SysAdmin-Create",
  13302. "body": [
  13303. "db.SysAdmin.Add(new SysAdmin()",
  13304. "{",
  13305. " CreateDate = DateTime.Now,",
  13306. " UpdateDate = DateTime.Now,",
  13307. " AdminName = $1, //用户名",
  13308. " Password = $2, //密码",
  13309. " RealName = $3, //名称",
  13310. " Role = $4, //角色",
  13311. " LastLoginDate = $5, //最后登录时间",
  13312. "});"
  13313. ]
  13314. },"删除某个后台管理员": {
  13315. "prefix": "ym-db-SysAdmin-Delete",
  13316. "body": [
  13317. "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
  13318. "if ($1 != null)",
  13319. "{",
  13320. " db.SysAdmin.Remove($1);",
  13321. "}"
  13322. ]
  13323. },
  13324. "查询后台管理员角色列表": {
  13325. "prefix": "ym-db-SysAdminRole-Find",
  13326. "body": [
  13327. "List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13328. "foreach (SysAdminRole $3 in $1)",
  13329. "{",
  13330. "}"
  13331. ]
  13332. },
  13333. "查询后台管理员角色列表,并取值": {
  13334. "prefix": "ym-db-SysAdminRole-FindWithData",
  13335. "body": [
  13336. "List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13337. "foreach (SysAdminRole $3 in $1)",
  13338. "{",
  13339. " string Name = $3.Name; //名称",
  13340. " string Details = $3.Details; //描述",
  13341. " string RightInfo = $3.RightInfo; //权限设置",
  13342. "}"
  13343. ]
  13344. },
  13345. "查询后台管理员角色": {
  13346. "prefix": "ym-db-SysAdminRole-Exist",
  13347. "body": [
  13348. "bool $1 = db.SysAdminRole.Any(m => m.Id == $2);",
  13349. ]
  13350. },
  13351. "查询某个后台管理员角色,并取值": {
  13352. "prefix": "ym-db-SysAdminRole-FindByPrimaryKey",
  13353. "body": [
  13354. "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
  13355. "if ($1 != null)",
  13356. "{",
  13357. " string Name = $1.Name; //名称",
  13358. " string Details = $1.Details; //描述",
  13359. " string RightInfo = $1.RightInfo; //权限设置",
  13360. "}"
  13361. ]
  13362. },
  13363. "查询某个后台管理员角色,并赋值": {
  13364. "prefix": "ym-db-SysAdminRole-Update",
  13365. "body": [
  13366. "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
  13367. "if ($1 != null)",
  13368. "{",
  13369. " $1.Name = $2; //名称",
  13370. " $1.Details = $3; //描述",
  13371. " $1.RightInfo = $4; //权限设置",
  13372. "}"
  13373. ]
  13374. },
  13375. "获取后台管理员角色数量": {
  13376. "prefix": "ym-db-SysAdminRole-FindAndCount",
  13377. "body": [
  13378. "int $1 = db.SysAdminRole.Count(m => $2);",
  13379. ]
  13380. },
  13381. "添加后台管理员角色": {
  13382. "prefix": "ym-db-SysAdminRole-Create",
  13383. "body": [
  13384. "db.SysAdminRole.Add(new SysAdminRole()",
  13385. "{",
  13386. " CreateDate = DateTime.Now,",
  13387. " UpdateDate = DateTime.Now,",
  13388. " Name = $1, //名称",
  13389. " Details = $2, //描述",
  13390. " RightInfo = $3, //权限设置",
  13391. "});"
  13392. ]
  13393. },"删除某个后台管理员角色": {
  13394. "prefix": "ym-db-SysAdminRole-Delete",
  13395. "body": [
  13396. "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
  13397. "if ($1 != null)",
  13398. "{",
  13399. " db.SysAdminRole.Remove($1);",
  13400. "}"
  13401. ]
  13402. },
  13403. "查询创客奖励记录列表": {
  13404. "prefix": "ym-db-SysRechargeRecord-Find",
  13405. "body": [
  13406. "List<SysRechargeRecord> $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13407. "foreach (SysRechargeRecord $3 in $1)",
  13408. "{",
  13409. "}"
  13410. ]
  13411. },
  13412. "查询创客奖励记录列表,并取值": {
  13413. "prefix": "ym-db-SysRechargeRecord-FindWithData",
  13414. "body": [
  13415. "List<SysRechargeRecord> $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13416. "foreach (SysRechargeRecord $3 in $1)",
  13417. "{",
  13418. " string RechargeRecNo = $3.RechargeRecNo; //充值流水号",
  13419. " string PartnerTradeNo = $3.PartnerTradeNo; //业务单号",
  13420. " int ProductType = $3.ProductType; //产品类型",
  13421. " int UserId = $3.UserId; //创客",
  13422. " int BizType = $3.BizType; //业务类型",
  13423. " DateTime BizTime = $3.BizTime; //奖励时间",
  13424. " decimal Amount = $3.Amount; //奖励金额",
  13425. " int SyncStatus = $3.SyncStatus; //同步状态",
  13426. " string BatchCode = $3.BatchCode; //批次号",
  13427. " string ClientIp = $3.ClientIp; //客户IP",
  13428. "}"
  13429. ]
  13430. },
  13431. "查询创客奖励记录": {
  13432. "prefix": "ym-db-SysRechargeRecord-Exist",
  13433. "body": [
  13434. "bool $1 = db.SysRechargeRecord.Any(m => m.Id == $2);",
  13435. ]
  13436. },
  13437. "查询某个创客奖励记录,并取值": {
  13438. "prefix": "ym-db-SysRechargeRecord-FindByPrimaryKey",
  13439. "body": [
  13440. "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
  13441. "if ($1 != null)",
  13442. "{",
  13443. " string RechargeRecNo = $1.RechargeRecNo; //充值流水号",
  13444. " string PartnerTradeNo = $1.PartnerTradeNo; //业务单号",
  13445. " int ProductType = $1.ProductType; //产品类型",
  13446. " int UserId = $1.UserId; //创客",
  13447. " int BizType = $1.BizType; //业务类型",
  13448. " DateTime BizTime = $1.BizTime; //奖励时间",
  13449. " decimal Amount = $1.Amount; //奖励金额",
  13450. " int SyncStatus = $1.SyncStatus; //同步状态",
  13451. " string BatchCode = $1.BatchCode; //批次号",
  13452. " string ClientIp = $1.ClientIp; //客户IP",
  13453. "}"
  13454. ]
  13455. },
  13456. "查询某个创客奖励记录,并赋值": {
  13457. "prefix": "ym-db-SysRechargeRecord-Update",
  13458. "body": [
  13459. "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
  13460. "if ($1 != null)",
  13461. "{",
  13462. " $1.RechargeRecNo = $2; //充值流水号",
  13463. " $1.PartnerTradeNo = $3; //业务单号",
  13464. " $1.ProductType = $4; //产品类型",
  13465. " $1.UserId = $5; //创客",
  13466. " $1.BizType = $6; //业务类型",
  13467. " $1.BizTime = $7; //奖励时间",
  13468. " $1.Amount = $8; //奖励金额",
  13469. " $1.SyncStatus = $9; //同步状态",
  13470. " $1.BatchCode = $10; //批次号",
  13471. " $1.ClientIp = $11; //客户IP",
  13472. "}"
  13473. ]
  13474. },
  13475. "获取创客奖励记录数量": {
  13476. "prefix": "ym-db-SysRechargeRecord-FindAndCount",
  13477. "body": [
  13478. "int $1 = db.SysRechargeRecord.Count(m => $2);",
  13479. ]
  13480. },
  13481. "添加创客奖励记录": {
  13482. "prefix": "ym-db-SysRechargeRecord-Create",
  13483. "body": [
  13484. "db.SysRechargeRecord.Add(new SysRechargeRecord()",
  13485. "{",
  13486. " CreateDate = DateTime.Now,",
  13487. " UpdateDate = DateTime.Now,",
  13488. " RechargeRecNo = $1, //充值流水号",
  13489. " PartnerTradeNo = $2, //业务单号",
  13490. " ProductType = $3, //产品类型",
  13491. " UserId = $4, //创客",
  13492. " BizType = $5, //业务类型",
  13493. " BizTime = $6, //奖励时间",
  13494. " Amount = $7, //奖励金额",
  13495. " SyncStatus = $8, //同步状态",
  13496. " BatchCode = $9, //批次号",
  13497. " ClientIp = $10, //客户IP",
  13498. "});"
  13499. ]
  13500. },"删除某个创客奖励记录": {
  13501. "prefix": "ym-db-SysRechargeRecord-Delete",
  13502. "body": [
  13503. "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
  13504. "if ($1 != null)",
  13505. "{",
  13506. " db.SysRechargeRecord.Remove($1);",
  13507. "}"
  13508. ]
  13509. },
  13510. "查询系统设置列表": {
  13511. "prefix": "ym-db-SystemSet-Find",
  13512. "body": [
  13513. "List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13514. "foreach (SystemSet $3 in $1)",
  13515. "{",
  13516. "}"
  13517. ]
  13518. },
  13519. "查询系统设置列表,并取值": {
  13520. "prefix": "ym-db-SystemSet-FindWithData",
  13521. "body": [
  13522. "List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13523. "foreach (SystemSet $3 in $1)",
  13524. "{",
  13525. " string WebUrl = $3.WebUrl; //网站地址",
  13526. " string WebName = $3.WebName; //网站名称",
  13527. " string IndexKeyword = $3.IndexKeyword; //首页关键词",
  13528. " string IndexDescription = $3.IndexDescription; //首页简介",
  13529. " string UploadExt = $3.UploadExt; //允许上传类型",
  13530. " int UploadMaxSize = $3.UploadMaxSize; //允许最大上传",
  13531. " ulong UploadAutoZoom = $3.UploadAutoZoom; //自动缩略图",
  13532. " int UploadAutoZoomWidth = $3.UploadAutoZoomWidth; //自动缩略图宽",
  13533. " int UploadAutoZoomHeight = $3.UploadAutoZoomHeight; //自动缩略图高",
  13534. " ulong UploadAutoWater = $3.UploadAutoWater; //自动水印",
  13535. " string UploadWaterPosition = $3.UploadWaterPosition; //水印位置",
  13536. " string UploadWaterPath = $3.UploadWaterPath; //水印图片",
  13537. " string RightInfo = $3.RightInfo; //版权信息",
  13538. " string Address = $3.Address; //企业地址",
  13539. " string Phone = $3.Phone; //联系电话",
  13540. " string WebStatCode = $3.WebStatCode; //网站统计代码",
  13541. " string Logo = $3.Logo; //Logo图片",
  13542. " ulong UploadOss = $3.UploadOss; //是否上传到OSS",
  13543. " int UploadAutoZoomQuality = $3.UploadAutoZoomQuality; //自动缩略图质量",
  13544. " string StartAdPhoto = $3.StartAdPhoto; //启动图",
  13545. "}"
  13546. ]
  13547. },
  13548. "查询系统设置": {
  13549. "prefix": "ym-db-SystemSet-Exist",
  13550. "body": [
  13551. "bool $1 = db.SystemSet.Any(m => m.Id == $2);",
  13552. ]
  13553. },
  13554. "查询某个系统设置,并取值": {
  13555. "prefix": "ym-db-SystemSet-FindByPrimaryKey",
  13556. "body": [
  13557. "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
  13558. "if ($1 != null)",
  13559. "{",
  13560. " string WebUrl = $1.WebUrl; //网站地址",
  13561. " string WebName = $1.WebName; //网站名称",
  13562. " string IndexKeyword = $1.IndexKeyword; //首页关键词",
  13563. " string IndexDescription = $1.IndexDescription; //首页简介",
  13564. " string UploadExt = $1.UploadExt; //允许上传类型",
  13565. " int UploadMaxSize = $1.UploadMaxSize; //允许最大上传",
  13566. " ulong UploadAutoZoom = $1.UploadAutoZoom; //自动缩略图",
  13567. " int UploadAutoZoomWidth = $1.UploadAutoZoomWidth; //自动缩略图宽",
  13568. " int UploadAutoZoomHeight = $1.UploadAutoZoomHeight; //自动缩略图高",
  13569. " ulong UploadAutoWater = $1.UploadAutoWater; //自动水印",
  13570. " string UploadWaterPosition = $1.UploadWaterPosition; //水印位置",
  13571. " string UploadWaterPath = $1.UploadWaterPath; //水印图片",
  13572. " string RightInfo = $1.RightInfo; //版权信息",
  13573. " string Address = $1.Address; //企业地址",
  13574. " string Phone = $1.Phone; //联系电话",
  13575. " string WebStatCode = $1.WebStatCode; //网站统计代码",
  13576. " string Logo = $1.Logo; //Logo图片",
  13577. " ulong UploadOss = $1.UploadOss; //是否上传到OSS",
  13578. " int UploadAutoZoomQuality = $1.UploadAutoZoomQuality; //自动缩略图质量",
  13579. " string StartAdPhoto = $1.StartAdPhoto; //启动图",
  13580. "}"
  13581. ]
  13582. },
  13583. "查询某个系统设置,并赋值": {
  13584. "prefix": "ym-db-SystemSet-Update",
  13585. "body": [
  13586. "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
  13587. "if ($1 != null)",
  13588. "{",
  13589. " $1.WebUrl = $2; //网站地址",
  13590. " $1.WebName = $3; //网站名称",
  13591. " $1.IndexKeyword = $4; //首页关键词",
  13592. " $1.IndexDescription = $5; //首页简介",
  13593. " $1.UploadExt = $6; //允许上传类型",
  13594. " $1.UploadMaxSize = $7; //允许最大上传",
  13595. " $1.UploadAutoZoom = $8; //自动缩略图",
  13596. " $1.UploadAutoZoomWidth = $9; //自动缩略图宽",
  13597. " $1.UploadAutoZoomHeight = $10; //自动缩略图高",
  13598. " $1.UploadAutoWater = $11; //自动水印",
  13599. " $1.UploadWaterPosition = $12; //水印位置",
  13600. " $1.UploadWaterPath = $13; //水印图片",
  13601. " $1.RightInfo = $14; //版权信息",
  13602. " $1.Address = $15; //企业地址",
  13603. " $1.Phone = $16; //联系电话",
  13604. " $1.WebStatCode = $17; //网站统计代码",
  13605. " $1.Logo = $18; //Logo图片",
  13606. " $1.UploadOss = $19; //是否上传到OSS",
  13607. " $1.UploadAutoZoomQuality = $20; //自动缩略图质量",
  13608. " $1.StartAdPhoto = $21; //启动图",
  13609. "}"
  13610. ]
  13611. },
  13612. "获取系统设置数量": {
  13613. "prefix": "ym-db-SystemSet-FindAndCount",
  13614. "body": [
  13615. "int $1 = db.SystemSet.Count(m => $2);",
  13616. ]
  13617. },
  13618. "添加系统设置": {
  13619. "prefix": "ym-db-SystemSet-Create",
  13620. "body": [
  13621. "db.SystemSet.Add(new SystemSet()",
  13622. "{",
  13623. " CreateDate = DateTime.Now,",
  13624. " UpdateDate = DateTime.Now,",
  13625. " WebUrl = $1, //网站地址",
  13626. " WebName = $2, //网站名称",
  13627. " IndexKeyword = $3, //首页关键词",
  13628. " IndexDescription = $4, //首页简介",
  13629. " UploadExt = $5, //允许上传类型",
  13630. " UploadMaxSize = $6, //允许最大上传",
  13631. " UploadAutoZoom = $7, //自动缩略图",
  13632. " UploadAutoZoomWidth = $8, //自动缩略图宽",
  13633. " UploadAutoZoomHeight = $9, //自动缩略图高",
  13634. " UploadAutoWater = $10, //自动水印",
  13635. " UploadWaterPosition = $11, //水印位置",
  13636. " UploadWaterPath = $12, //水印图片",
  13637. " RightInfo = $13, //版权信息",
  13638. " Address = $14, //企业地址",
  13639. " Phone = $15, //联系电话",
  13640. " WebStatCode = $16, //网站统计代码",
  13641. " Logo = $17, //Logo图片",
  13642. " UploadOss = $18, //是否上传到OSS",
  13643. " UploadAutoZoomQuality = $19, //自动缩略图质量",
  13644. " StartAdPhoto = $20, //启动图",
  13645. "});"
  13646. ]
  13647. },"删除某个系统设置": {
  13648. "prefix": "ym-db-SystemSet-Delete",
  13649. "body": [
  13650. "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
  13651. "if ($1 != null)",
  13652. "{",
  13653. " db.SystemSet.Remove($1);",
  13654. "}"
  13655. ]
  13656. },
  13657. "查询开团申请列表": {
  13658. "prefix": "ym-db-TeamApply-Find",
  13659. "body": [
  13660. "List<TeamApply> $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13661. "foreach (TeamApply $3 in $1)",
  13662. "{",
  13663. "}"
  13664. ]
  13665. },
  13666. "查询开团申请列表,并取值": {
  13667. "prefix": "ym-db-TeamApply-FindWithData",
  13668. "body": [
  13669. "List<TeamApply> $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13670. "foreach (TeamApply $3 in $1)",
  13671. "{",
  13672. " string TeamNo = $3.TeamNo; //队伍编码",
  13673. " string TeamName = $3.TeamName; //队伍名称",
  13674. " int UserId = $3.UserId; //队长",
  13675. " string ManagerNo = $3.ManagerNo; //渠道经理编号",
  13676. " string ManagerName = $3.ManagerName; //渠道经理名称",
  13677. " string Areas = $3.Areas; //特训营所在地区",
  13678. " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
  13679. " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间",
  13680. " DateTime EnterStartDate = $3.EnterStartDate; //报名开始时间",
  13681. " DateTime EnterEndDate = $3.EnterEndDate; //报名结束时间",
  13682. " int MinUserNum = $3.MinUserNum; //最小队伍人数",
  13683. " int MaxUserNum = $3.MaxUserNum; //最大队伍人数",
  13684. " string WatchWord = $3.WatchWord; //口号",
  13685. " DateTime AuditTime = $3.AuditTime; //审核时间",
  13686. " int AuditResult = $3.AuditResult; //审核结果",
  13687. " string AuditRemark = $3.AuditRemark; //审核备注",
  13688. " int NotifyFlag = $3.NotifyFlag; //提醒标识",
  13689. " string Remark = $3.Remark; //备注",
  13690. " int TopUserId = $3.TopUserId; //顶级创客",
  13691. " int TeamStatus = $3.TeamStatus; //组队状态",
  13692. "}"
  13693. ]
  13694. },
  13695. "查询开团申请": {
  13696. "prefix": "ym-db-TeamApply-Exist",
  13697. "body": [
  13698. "bool $1 = db.TeamApply.Any(m => m.Id == $2);",
  13699. ]
  13700. },
  13701. "查询某个开团申请,并取值": {
  13702. "prefix": "ym-db-TeamApply-FindByPrimaryKey",
  13703. "body": [
  13704. "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
  13705. "if ($1 != null)",
  13706. "{",
  13707. " string TeamNo = $1.TeamNo; //队伍编码",
  13708. " string TeamName = $1.TeamName; //队伍名称",
  13709. " int UserId = $1.UserId; //队长",
  13710. " string ManagerNo = $1.ManagerNo; //渠道经理编号",
  13711. " string ManagerName = $1.ManagerName; //渠道经理名称",
  13712. " string Areas = $1.Areas; //特训营所在地区",
  13713. " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
  13714. " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间",
  13715. " DateTime EnterStartDate = $1.EnterStartDate; //报名开始时间",
  13716. " DateTime EnterEndDate = $1.EnterEndDate; //报名结束时间",
  13717. " int MinUserNum = $1.MinUserNum; //最小队伍人数",
  13718. " int MaxUserNum = $1.MaxUserNum; //最大队伍人数",
  13719. " string WatchWord = $1.WatchWord; //口号",
  13720. " DateTime AuditTime = $1.AuditTime; //审核时间",
  13721. " int AuditResult = $1.AuditResult; //审核结果",
  13722. " string AuditRemark = $1.AuditRemark; //审核备注",
  13723. " int NotifyFlag = $1.NotifyFlag; //提醒标识",
  13724. " string Remark = $1.Remark; //备注",
  13725. " int TopUserId = $1.TopUserId; //顶级创客",
  13726. " int TeamStatus = $1.TeamStatus; //组队状态",
  13727. "}"
  13728. ]
  13729. },
  13730. "查询某个开团申请,并赋值": {
  13731. "prefix": "ym-db-TeamApply-Update",
  13732. "body": [
  13733. "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
  13734. "if ($1 != null)",
  13735. "{",
  13736. " $1.TeamNo = $2; //队伍编码",
  13737. " $1.TeamName = $3; //队伍名称",
  13738. " $1.UserId = $4; //队长",
  13739. " $1.ManagerNo = $5; //渠道经理编号",
  13740. " $1.ManagerName = $6; //渠道经理名称",
  13741. " $1.Areas = $7; //特训营所在地区",
  13742. " $1.EffectStartDate = $8; //活动开始时间",
  13743. " $1.EffectEndDate = $9; //活动结束时间",
  13744. " $1.EnterStartDate = $10; //报名开始时间",
  13745. " $1.EnterEndDate = $11; //报名结束时间",
  13746. " $1.MinUserNum = $12; //最小队伍人数",
  13747. " $1.MaxUserNum = $13; //最大队伍人数",
  13748. " $1.WatchWord = $14; //口号",
  13749. " $1.AuditTime = $15; //审核时间",
  13750. " $1.AuditResult = $16; //审核结果",
  13751. " $1.AuditRemark = $17; //审核备注",
  13752. " $1.NotifyFlag = $18; //提醒标识",
  13753. " $1.Remark = $19; //备注",
  13754. " $1.TopUserId = $20; //顶级创客",
  13755. " $1.TeamStatus = $21; //组队状态",
  13756. "}"
  13757. ]
  13758. },
  13759. "获取开团申请数量": {
  13760. "prefix": "ym-db-TeamApply-FindAndCount",
  13761. "body": [
  13762. "int $1 = db.TeamApply.Count(m => $2);",
  13763. ]
  13764. },
  13765. "添加开团申请": {
  13766. "prefix": "ym-db-TeamApply-Create",
  13767. "body": [
  13768. "db.TeamApply.Add(new TeamApply()",
  13769. "{",
  13770. " CreateDate = DateTime.Now,",
  13771. " UpdateDate = DateTime.Now,",
  13772. " TeamNo = $1, //队伍编码",
  13773. " TeamName = $2, //队伍名称",
  13774. " UserId = $3, //队长",
  13775. " ManagerNo = $4, //渠道经理编号",
  13776. " ManagerName = $5, //渠道经理名称",
  13777. " Areas = $6, //特训营所在地区",
  13778. " EffectStartDate = $7, //活动开始时间",
  13779. " EffectEndDate = $8, //活动结束时间",
  13780. " EnterStartDate = $9, //报名开始时间",
  13781. " EnterEndDate = $10, //报名结束时间",
  13782. " MinUserNum = $11, //最小队伍人数",
  13783. " MaxUserNum = $12, //最大队伍人数",
  13784. " WatchWord = $13, //口号",
  13785. " AuditTime = $14, //审核时间",
  13786. " AuditResult = $15, //审核结果",
  13787. " AuditRemark = $16, //审核备注",
  13788. " NotifyFlag = $17, //提醒标识",
  13789. " Remark = $18, //备注",
  13790. " TopUserId = $19, //顶级创客",
  13791. " TeamStatus = $20, //组队状态",
  13792. "});"
  13793. ]
  13794. },"删除某个开团申请": {
  13795. "prefix": "ym-db-TeamApply-Delete",
  13796. "body": [
  13797. "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
  13798. "if ($1 != null)",
  13799. "{",
  13800. " db.TeamApply.Remove($1);",
  13801. "}"
  13802. ]
  13803. },
  13804. "查询团队名称为主键的关联表列表": {
  13805. "prefix": "ym-db-TeamApplyForTeamName-Find",
  13806. "body": [
  13807. "List<TeamApplyForTeamName> $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13808. "foreach (TeamApplyForTeamName $3 in $1)",
  13809. "{",
  13810. "}"
  13811. ]
  13812. },
  13813. "查询团队名称为主键的关联表列表,并取值": {
  13814. "prefix": "ym-db-TeamApplyForTeamName-FindWithData",
  13815. "body": [
  13816. "List<TeamApplyForTeamName> $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13817. "foreach (TeamApplyForTeamName $3 in $1)",
  13818. "{",
  13819. " string TeamName = $3.TeamName; //团队名称",
  13820. " int TeamId = $3.TeamId; //团队Id",
  13821. "}"
  13822. ]
  13823. },
  13824. "查询团队名称为主键的关联表": {
  13825. "prefix": "ym-db-TeamApplyForTeamName-Exist",
  13826. "body": [
  13827. "bool $1 = db.TeamApplyForTeamName.Any(m => m.TeamName == $2);",
  13828. ]
  13829. },
  13830. "查询某个团队名称为主键的关联表,并取值": {
  13831. "prefix": "ym-db-TeamApplyForTeamName-FindByPrimaryKey",
  13832. "body": [
  13833. "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
  13834. "if ($1 != null)",
  13835. "{",
  13836. " string TeamName = $1.TeamName; //团队名称",
  13837. " int TeamId = $1.TeamId; //团队Id",
  13838. "}"
  13839. ]
  13840. },
  13841. "查询某个团队名称为主键的关联表,并赋值": {
  13842. "prefix": "ym-db-TeamApplyForTeamName-Update",
  13843. "body": [
  13844. "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
  13845. "if ($1 != null)",
  13846. "{",
  13847. " $1.TeamName = $2; //团队名称",
  13848. " $1.TeamId = $3; //团队Id",
  13849. "}"
  13850. ]
  13851. },
  13852. "获取团队名称为主键的关联表数量": {
  13853. "prefix": "ym-db-TeamApplyForTeamName-FindAndCount",
  13854. "body": [
  13855. "int $1 = db.TeamApplyForTeamName.Count(m => $2);",
  13856. ]
  13857. },
  13858. "添加团队名称为主键的关联表": {
  13859. "prefix": "ym-db-TeamApplyForTeamName-Create",
  13860. "body": [
  13861. "db.TeamApplyForTeamName.Add(new TeamApplyForTeamName()",
  13862. "{",
  13863. " CreateDate = DateTime.Now,",
  13864. " UpdateDate = DateTime.Now,",
  13865. " TeamName = $1, //团队名称",
  13866. " TeamId = $2, //团队Id",
  13867. "});"
  13868. ]
  13869. },"删除某个团队名称为主键的关联表": {
  13870. "prefix": "ym-db-TeamApplyForTeamName-Delete",
  13871. "body": [
  13872. "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
  13873. "if ($1 != null)",
  13874. "{",
  13875. " db.TeamApplyForTeamName.Remove($1);",
  13876. "}"
  13877. ]
  13878. },
  13879. "查询团队编号为主键的关联表列表": {
  13880. "prefix": "ym-db-TeamApplyForTeamNo-Find",
  13881. "body": [
  13882. "List<TeamApplyForTeamNo> $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13883. "foreach (TeamApplyForTeamNo $3 in $1)",
  13884. "{",
  13885. "}"
  13886. ]
  13887. },
  13888. "查询团队编号为主键的关联表列表,并取值": {
  13889. "prefix": "ym-db-TeamApplyForTeamNo-FindWithData",
  13890. "body": [
  13891. "List<TeamApplyForTeamNo> $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13892. "foreach (TeamApplyForTeamNo $3 in $1)",
  13893. "{",
  13894. " string TeamNo = $3.TeamNo; //团队编号",
  13895. " int TeamId = $3.TeamId; //团队Id",
  13896. "}"
  13897. ]
  13898. },
  13899. "查询团队编号为主键的关联表": {
  13900. "prefix": "ym-db-TeamApplyForTeamNo-Exist",
  13901. "body": [
  13902. "bool $1 = db.TeamApplyForTeamNo.Any(m => m.TeamNo == $2);",
  13903. ]
  13904. },
  13905. "查询某个团队编号为主键的关联表,并取值": {
  13906. "prefix": "ym-db-TeamApplyForTeamNo-FindByPrimaryKey",
  13907. "body": [
  13908. "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
  13909. "if ($1 != null)",
  13910. "{",
  13911. " string TeamNo = $1.TeamNo; //团队编号",
  13912. " int TeamId = $1.TeamId; //团队Id",
  13913. "}"
  13914. ]
  13915. },
  13916. "查询某个团队编号为主键的关联表,并赋值": {
  13917. "prefix": "ym-db-TeamApplyForTeamNo-Update",
  13918. "body": [
  13919. "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
  13920. "if ($1 != null)",
  13921. "{",
  13922. " $1.TeamNo = $2; //团队编号",
  13923. " $1.TeamId = $3; //团队Id",
  13924. "}"
  13925. ]
  13926. },
  13927. "获取团队编号为主键的关联表数量": {
  13928. "prefix": "ym-db-TeamApplyForTeamNo-FindAndCount",
  13929. "body": [
  13930. "int $1 = db.TeamApplyForTeamNo.Count(m => $2);",
  13931. ]
  13932. },
  13933. "添加团队编号为主键的关联表": {
  13934. "prefix": "ym-db-TeamApplyForTeamNo-Create",
  13935. "body": [
  13936. "db.TeamApplyForTeamNo.Add(new TeamApplyForTeamNo()",
  13937. "{",
  13938. " CreateDate = DateTime.Now,",
  13939. " UpdateDate = DateTime.Now,",
  13940. " TeamNo = $1, //团队编号",
  13941. " TeamId = $2, //团队Id",
  13942. "});"
  13943. ]
  13944. },"删除某个团队编号为主键的关联表": {
  13945. "prefix": "ym-db-TeamApplyForTeamNo-Delete",
  13946. "body": [
  13947. "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
  13948. "if ($1 != null)",
  13949. "{",
  13950. " db.TeamApplyForTeamNo.Remove($1);",
  13951. "}"
  13952. ]
  13953. },
  13954. "查询开团黑名单列表": {
  13955. "prefix": "ym-db-TeamBlackList-Find",
  13956. "body": [
  13957. "List<TeamBlackList> $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13958. "foreach (TeamBlackList $3 in $1)",
  13959. "{",
  13960. "}"
  13961. ]
  13962. },
  13963. "查询开团黑名单列表,并取值": {
  13964. "prefix": "ym-db-TeamBlackList-FindWithData",
  13965. "body": [
  13966. "List<TeamBlackList> $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  13967. "foreach (TeamBlackList $3 in $1)",
  13968. "{",
  13969. " int UserId = $3.UserId; //创客",
  13970. " string ManagerNo = $3.ManagerNo; //渠道经理编号",
  13971. " string ManagerName = $3.ManagerName; //渠道经理名称",
  13972. " DateTime EffectStartDate = $3.EffectStartDate; //生效时间",
  13973. " DateTime EffectEndDate = $3.EffectEndDate; //失效时间",
  13974. " string Remark = $3.Remark; //备注",
  13975. " int TopUserId = $3.TopUserId; //顶级创客",
  13976. " int BlackStatus = $3.BlackStatus; //状态",
  13977. "}"
  13978. ]
  13979. },
  13980. "查询开团黑名单": {
  13981. "prefix": "ym-db-TeamBlackList-Exist",
  13982. "body": [
  13983. "bool $1 = db.TeamBlackList.Any(m => m.Id == $2);",
  13984. ]
  13985. },
  13986. "查询某个开团黑名单,并取值": {
  13987. "prefix": "ym-db-TeamBlackList-FindByPrimaryKey",
  13988. "body": [
  13989. "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
  13990. "if ($1 != null)",
  13991. "{",
  13992. " int UserId = $1.UserId; //创客",
  13993. " string ManagerNo = $1.ManagerNo; //渠道经理编号",
  13994. " string ManagerName = $1.ManagerName; //渠道经理名称",
  13995. " DateTime EffectStartDate = $1.EffectStartDate; //生效时间",
  13996. " DateTime EffectEndDate = $1.EffectEndDate; //失效时间",
  13997. " string Remark = $1.Remark; //备注",
  13998. " int TopUserId = $1.TopUserId; //顶级创客",
  13999. " int BlackStatus = $1.BlackStatus; //状态",
  14000. "}"
  14001. ]
  14002. },
  14003. "查询某个开团黑名单,并赋值": {
  14004. "prefix": "ym-db-TeamBlackList-Update",
  14005. "body": [
  14006. "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
  14007. "if ($1 != null)",
  14008. "{",
  14009. " $1.UserId = $2; //创客",
  14010. " $1.ManagerNo = $3; //渠道经理编号",
  14011. " $1.ManagerName = $4; //渠道经理名称",
  14012. " $1.EffectStartDate = $5; //生效时间",
  14013. " $1.EffectEndDate = $6; //失效时间",
  14014. " $1.Remark = $7; //备注",
  14015. " $1.TopUserId = $8; //顶级创客",
  14016. " $1.BlackStatus = $9; //状态",
  14017. "}"
  14018. ]
  14019. },
  14020. "获取开团黑名单数量": {
  14021. "prefix": "ym-db-TeamBlackList-FindAndCount",
  14022. "body": [
  14023. "int $1 = db.TeamBlackList.Count(m => $2);",
  14024. ]
  14025. },
  14026. "添加开团黑名单": {
  14027. "prefix": "ym-db-TeamBlackList-Create",
  14028. "body": [
  14029. "db.TeamBlackList.Add(new TeamBlackList()",
  14030. "{",
  14031. " CreateDate = DateTime.Now,",
  14032. " UpdateDate = DateTime.Now,",
  14033. " UserId = $1, //创客",
  14034. " ManagerNo = $2, //渠道经理编号",
  14035. " ManagerName = $3, //渠道经理名称",
  14036. " EffectStartDate = $4, //生效时间",
  14037. " EffectEndDate = $5, //失效时间",
  14038. " Remark = $6, //备注",
  14039. " TopUserId = $7, //顶级创客",
  14040. " BlackStatus = $8, //状态",
  14041. "});"
  14042. ]
  14043. },"删除某个开团黑名单": {
  14044. "prefix": "ym-db-TeamBlackList-Delete",
  14045. "body": [
  14046. "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
  14047. "if ($1 != null)",
  14048. "{",
  14049. " db.TeamBlackList.Remove($1);",
  14050. "}"
  14051. ]
  14052. },
  14053. "查询开团配置列表": {
  14054. "prefix": "ym-db-TeamConfig-Find",
  14055. "body": [
  14056. "List<TeamConfig> $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14057. "foreach (TeamConfig $3 in $1)",
  14058. "{",
  14059. "}"
  14060. ]
  14061. },
  14062. "查询开团配置列表,并取值": {
  14063. "prefix": "ym-db-TeamConfig-FindWithData",
  14064. "body": [
  14065. "List<TeamConfig> $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14066. "foreach (TeamConfig $3 in $1)",
  14067. "{",
  14068. " string LimitBuddyNo = $3.LimitBuddyNo; //限制人",
  14069. " int MinUserNum = $3.MinUserNum; //最小队伍人数",
  14070. " int MaxUserNum = $3.MaxUserNum; //最大队伍人数",
  14071. " int MinCycleNum = $3.MinCycleNum; //最小周期天数",
  14072. " int MaxCycleNum = $3.MaxCycleNum; //最大周期天数",
  14073. " int MinStartDayLimit = $3.MinStartDayLimit; //最小间隔天数",
  14074. " int MaxStartDayLimit = $3.MaxStartDayLimit; //最大间隔天数",
  14075. " ulong OverlineStatus = $3.OverlineStatus; //是否允许跨顶级线报名",
  14076. " int BlacklistCycle = $3.BlacklistCycle; //黑名单周期",
  14077. " int EnterEndMin = $3.EnterEndMin; //活动时间差",
  14078. " string Remark = $3.Remark; //备注",
  14079. "}"
  14080. ]
  14081. },
  14082. "查询开团配置": {
  14083. "prefix": "ym-db-TeamConfig-Exist",
  14084. "body": [
  14085. "bool $1 = db.TeamConfig.Any(m => m.Id == $2);",
  14086. ]
  14087. },
  14088. "查询某个开团配置,并取值": {
  14089. "prefix": "ym-db-TeamConfig-FindByPrimaryKey",
  14090. "body": [
  14091. "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
  14092. "if ($1 != null)",
  14093. "{",
  14094. " string LimitBuddyNo = $1.LimitBuddyNo; //限制人",
  14095. " int MinUserNum = $1.MinUserNum; //最小队伍人数",
  14096. " int MaxUserNum = $1.MaxUserNum; //最大队伍人数",
  14097. " int MinCycleNum = $1.MinCycleNum; //最小周期天数",
  14098. " int MaxCycleNum = $1.MaxCycleNum; //最大周期天数",
  14099. " int MinStartDayLimit = $1.MinStartDayLimit; //最小间隔天数",
  14100. " int MaxStartDayLimit = $1.MaxStartDayLimit; //最大间隔天数",
  14101. " ulong OverlineStatus = $1.OverlineStatus; //是否允许跨顶级线报名",
  14102. " int BlacklistCycle = $1.BlacklistCycle; //黑名单周期",
  14103. " int EnterEndMin = $1.EnterEndMin; //活动时间差",
  14104. " string Remark = $1.Remark; //备注",
  14105. "}"
  14106. ]
  14107. },
  14108. "查询某个开团配置,并赋值": {
  14109. "prefix": "ym-db-TeamConfig-Update",
  14110. "body": [
  14111. "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
  14112. "if ($1 != null)",
  14113. "{",
  14114. " $1.LimitBuddyNo = $2; //限制人",
  14115. " $1.MinUserNum = $3; //最小队伍人数",
  14116. " $1.MaxUserNum = $4; //最大队伍人数",
  14117. " $1.MinCycleNum = $5; //最小周期天数",
  14118. " $1.MaxCycleNum = $6; //最大周期天数",
  14119. " $1.MinStartDayLimit = $7; //最小间隔天数",
  14120. " $1.MaxStartDayLimit = $8; //最大间隔天数",
  14121. " $1.OverlineStatus = $9; //是否允许跨顶级线报名",
  14122. " $1.BlacklistCycle = $10; //黑名单周期",
  14123. " $1.EnterEndMin = $11; //活动时间差",
  14124. " $1.Remark = $12; //备注",
  14125. "}"
  14126. ]
  14127. },
  14128. "获取开团配置数量": {
  14129. "prefix": "ym-db-TeamConfig-FindAndCount",
  14130. "body": [
  14131. "int $1 = db.TeamConfig.Count(m => $2);",
  14132. ]
  14133. },
  14134. "添加开团配置": {
  14135. "prefix": "ym-db-TeamConfig-Create",
  14136. "body": [
  14137. "db.TeamConfig.Add(new TeamConfig()",
  14138. "{",
  14139. " CreateDate = DateTime.Now,",
  14140. " UpdateDate = DateTime.Now,",
  14141. " LimitBuddyNo = $1, //限制人",
  14142. " MinUserNum = $2, //最小队伍人数",
  14143. " MaxUserNum = $3, //最大队伍人数",
  14144. " MinCycleNum = $4, //最小周期天数",
  14145. " MaxCycleNum = $5, //最大周期天数",
  14146. " MinStartDayLimit = $6, //最小间隔天数",
  14147. " MaxStartDayLimit = $7, //最大间隔天数",
  14148. " OverlineStatus = $8, //是否允许跨顶级线报名",
  14149. " BlacklistCycle = $9, //黑名单周期",
  14150. " EnterEndMin = $10, //活动时间差",
  14151. " Remark = $11, //备注",
  14152. "});"
  14153. ]
  14154. },"删除某个开团配置": {
  14155. "prefix": "ym-db-TeamConfig-Delete",
  14156. "body": [
  14157. "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
  14158. "if ($1 != null)",
  14159. "{",
  14160. " db.TeamConfig.Remove($1);",
  14161. "}"
  14162. ]
  14163. },
  14164. "查询特训营团队排行榜列表": {
  14165. "prefix": "ym-db-TeamDayTop-Find",
  14166. "body": [
  14167. "List<TeamDayTop> $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14168. "foreach (TeamDayTop $3 in $1)",
  14169. "{",
  14170. "}"
  14171. ]
  14172. },
  14173. "查询特训营团队排行榜列表,并取值": {
  14174. "prefix": "ym-db-TeamDayTop-FindWithData",
  14175. "body": [
  14176. "List<TeamDayTop> $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14177. "foreach (TeamDayTop $3 in $1)",
  14178. "{",
  14179. " string StatDate = $3.StatDate; //统计日",
  14180. " string StatMonth = $3.StatMonth; //统计月",
  14181. " int UserId = $3.UserId; //创客",
  14182. " int TopUserId = $3.TopUserId; //顶级创客",
  14183. " int BrandId = $3.BrandId; //品牌",
  14184. " int TeamId = $3.TeamId; //队伍",
  14185. " int TeamUserId = $3.TeamUserId; //团队长创客",
  14186. " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间",
  14187. " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间",
  14188. " int ActMerNum = $3.ActMerNum; //团员直营激活商户数",
  14189. " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数",
  14190. " string Remark = $3.Remark; //备注",
  14191. "}"
  14192. ]
  14193. },
  14194. "查询特训营团队排行榜": {
  14195. "prefix": "ym-db-TeamDayTop-Exist",
  14196. "body": [
  14197. "bool $1 = db.TeamDayTop.Any(m => m.Id == $2);",
  14198. ]
  14199. },
  14200. "查询某个特训营团队排行榜,并取值": {
  14201. "prefix": "ym-db-TeamDayTop-FindByPrimaryKey",
  14202. "body": [
  14203. "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
  14204. "if ($1 != null)",
  14205. "{",
  14206. " string StatDate = $1.StatDate; //统计日",
  14207. " string StatMonth = $1.StatMonth; //统计月",
  14208. " int UserId = $1.UserId; //创客",
  14209. " int TopUserId = $1.TopUserId; //顶级创客",
  14210. " int BrandId = $1.BrandId; //品牌",
  14211. " int TeamId = $1.TeamId; //队伍",
  14212. " int TeamUserId = $1.TeamUserId; //团队长创客",
  14213. " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间",
  14214. " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间",
  14215. " int ActMerNum = $1.ActMerNum; //团员直营激活商户数",
  14216. " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数",
  14217. " string Remark = $1.Remark; //备注",
  14218. "}"
  14219. ]
  14220. },
  14221. "查询某个特训营团队排行榜,并赋值": {
  14222. "prefix": "ym-db-TeamDayTop-Update",
  14223. "body": [
  14224. "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
  14225. "if ($1 != null)",
  14226. "{",
  14227. " $1.StatDate = $2; //统计日",
  14228. " $1.StatMonth = $3; //统计月",
  14229. " $1.UserId = $4; //创客",
  14230. " $1.TopUserId = $5; //顶级创客",
  14231. " $1.BrandId = $6; //品牌",
  14232. " $1.TeamId = $7; //队伍",
  14233. " $1.TeamUserId = $8; //团队长创客",
  14234. " $1.TeamStartDate = $9; //队伍开始时间",
  14235. " $1.TeamEndDate = $10; //队伍结束时间",
  14236. " $1.ActMerNum = $11; //团员直营激活商户数",
  14237. " $1.TeamActMerNum = $12; //队伍直营激活商户数",
  14238. " $1.Remark = $13; //备注",
  14239. "}"
  14240. ]
  14241. },
  14242. "获取特训营团队排行榜数量": {
  14243. "prefix": "ym-db-TeamDayTop-FindAndCount",
  14244. "body": [
  14245. "int $1 = db.TeamDayTop.Count(m => $2);",
  14246. ]
  14247. },
  14248. "添加特训营团队排行榜": {
  14249. "prefix": "ym-db-TeamDayTop-Create",
  14250. "body": [
  14251. "db.TeamDayTop.Add(new TeamDayTop()",
  14252. "{",
  14253. " CreateDate = DateTime.Now,",
  14254. " UpdateDate = DateTime.Now,",
  14255. " StatDate = $1, //统计日",
  14256. " StatMonth = $2, //统计月",
  14257. " UserId = $3, //创客",
  14258. " TopUserId = $4, //顶级创客",
  14259. " BrandId = $5, //品牌",
  14260. " TeamId = $6, //队伍",
  14261. " TeamUserId = $7, //团队长创客",
  14262. " TeamStartDate = $8, //队伍开始时间",
  14263. " TeamEndDate = $9, //队伍结束时间",
  14264. " ActMerNum = $10, //团员直营激活商户数",
  14265. " TeamActMerNum = $11, //队伍直营激活商户数",
  14266. " Remark = $12, //备注",
  14267. "});"
  14268. ]
  14269. },"删除某个特训营团队排行榜": {
  14270. "prefix": "ym-db-TeamDayTop-Delete",
  14271. "body": [
  14272. "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
  14273. "if ($1 != null)",
  14274. "{",
  14275. " db.TeamDayTop.Remove($1);",
  14276. "}"
  14277. ]
  14278. },
  14279. "查询参团申请列表": {
  14280. "prefix": "ym-db-TeamOfferApply-Find",
  14281. "body": [
  14282. "List<TeamOfferApply> $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14283. "foreach (TeamOfferApply $3 in $1)",
  14284. "{",
  14285. "}"
  14286. ]
  14287. },
  14288. "查询参团申请列表,并取值": {
  14289. "prefix": "ym-db-TeamOfferApply-FindWithData",
  14290. "body": [
  14291. "List<TeamOfferApply> $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14292. "foreach (TeamOfferApply $3 in $1)",
  14293. "{",
  14294. " string ManagerNo = $3.ManagerNo; //渠道经理编号",
  14295. " string ManagerName = $3.ManagerName; //渠道经理名称",
  14296. " string Areas = $3.Areas; //特训营所在地区",
  14297. " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
  14298. " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间",
  14299. " DateTime EnterDate = $3.EnterDate; //报名时间",
  14300. " DateTime AuditTime = $3.AuditTime; //审核时间",
  14301. " int AuditResult = $3.AuditResult; //审核结果",
  14302. " string AuditRemark = $3.AuditRemark; //审核备注",
  14303. " int NotifyFlag = $3.NotifyFlag; //提醒标识",
  14304. " string Remark = $3.Remark; //备注",
  14305. " int UserId = $3.UserId; //创客",
  14306. " int TeamId = $3.TeamId; //团队",
  14307. " int TeamLeader = $3.TeamLeader; //队长",
  14308. " int TopUserId = $3.TopUserId; //顶级创客",
  14309. " int TeamApplyStatus = $3.TeamApplyStatus; //组队申请状态",
  14310. " int TeamStatus = $3.TeamStatus; //状态",
  14311. "}"
  14312. ]
  14313. },
  14314. "查询参团申请": {
  14315. "prefix": "ym-db-TeamOfferApply-Exist",
  14316. "body": [
  14317. "bool $1 = db.TeamOfferApply.Any(m => m.Id == $2);",
  14318. ]
  14319. },
  14320. "查询某个参团申请,并取值": {
  14321. "prefix": "ym-db-TeamOfferApply-FindByPrimaryKey",
  14322. "body": [
  14323. "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
  14324. "if ($1 != null)",
  14325. "{",
  14326. " string ManagerNo = $1.ManagerNo; //渠道经理编号",
  14327. " string ManagerName = $1.ManagerName; //渠道经理名称",
  14328. " string Areas = $1.Areas; //特训营所在地区",
  14329. " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
  14330. " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间",
  14331. " DateTime EnterDate = $1.EnterDate; //报名时间",
  14332. " DateTime AuditTime = $1.AuditTime; //审核时间",
  14333. " int AuditResult = $1.AuditResult; //审核结果",
  14334. " string AuditRemark = $1.AuditRemark; //审核备注",
  14335. " int NotifyFlag = $1.NotifyFlag; //提醒标识",
  14336. " string Remark = $1.Remark; //备注",
  14337. " int UserId = $1.UserId; //创客",
  14338. " int TeamId = $1.TeamId; //团队",
  14339. " int TeamLeader = $1.TeamLeader; //队长",
  14340. " int TopUserId = $1.TopUserId; //顶级创客",
  14341. " int TeamApplyStatus = $1.TeamApplyStatus; //组队申请状态",
  14342. " int TeamStatus = $1.TeamStatus; //状态",
  14343. "}"
  14344. ]
  14345. },
  14346. "查询某个参团申请,并赋值": {
  14347. "prefix": "ym-db-TeamOfferApply-Update",
  14348. "body": [
  14349. "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
  14350. "if ($1 != null)",
  14351. "{",
  14352. " $1.ManagerNo = $2; //渠道经理编号",
  14353. " $1.ManagerName = $3; //渠道经理名称",
  14354. " $1.Areas = $4; //特训营所在地区",
  14355. " $1.EffectStartDate = $5; //活动开始时间",
  14356. " $1.EffectEndDate = $6; //活动结束时间",
  14357. " $1.EnterDate = $7; //报名时间",
  14358. " $1.AuditTime = $8; //审核时间",
  14359. " $1.AuditResult = $9; //审核结果",
  14360. " $1.AuditRemark = $10; //审核备注",
  14361. " $1.NotifyFlag = $11; //提醒标识",
  14362. " $1.Remark = $12; //备注",
  14363. " $1.UserId = $13; //创客",
  14364. " $1.TeamId = $14; //团队",
  14365. " $1.TeamLeader = $15; //队长",
  14366. " $1.TopUserId = $16; //顶级创客",
  14367. " $1.TeamApplyStatus = $17; //组队申请状态",
  14368. " $1.TeamStatus = $18; //状态",
  14369. "}"
  14370. ]
  14371. },
  14372. "获取参团申请数量": {
  14373. "prefix": "ym-db-TeamOfferApply-FindAndCount",
  14374. "body": [
  14375. "int $1 = db.TeamOfferApply.Count(m => $2);",
  14376. ]
  14377. },
  14378. "添加参团申请": {
  14379. "prefix": "ym-db-TeamOfferApply-Create",
  14380. "body": [
  14381. "db.TeamOfferApply.Add(new TeamOfferApply()",
  14382. "{",
  14383. " CreateDate = DateTime.Now,",
  14384. " UpdateDate = DateTime.Now,",
  14385. " ManagerNo = $1, //渠道经理编号",
  14386. " ManagerName = $2, //渠道经理名称",
  14387. " Areas = $3, //特训营所在地区",
  14388. " EffectStartDate = $4, //活动开始时间",
  14389. " EffectEndDate = $5, //活动结束时间",
  14390. " EnterDate = $6, //报名时间",
  14391. " AuditTime = $7, //审核时间",
  14392. " AuditResult = $8, //审核结果",
  14393. " AuditRemark = $9, //审核备注",
  14394. " NotifyFlag = $10, //提醒标识",
  14395. " Remark = $11, //备注",
  14396. " UserId = $12, //创客",
  14397. " TeamId = $13, //团队",
  14398. " TeamLeader = $14, //队长",
  14399. " TopUserId = $15, //顶级创客",
  14400. " TeamApplyStatus = $16, //组队申请状态",
  14401. " TeamStatus = $17, //状态",
  14402. "});"
  14403. ]
  14404. },"删除某个参团申请": {
  14405. "prefix": "ym-db-TeamOfferApply-Delete",
  14406. "body": [
  14407. "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
  14408. "if ($1 != null)",
  14409. "{",
  14410. " db.TeamOfferApply.Remove($1);",
  14411. "}"
  14412. ]
  14413. },
  14414. "查询特训营个人排行榜列表": {
  14415. "prefix": "ym-db-TeamPersonDayTop-Find",
  14416. "body": [
  14417. "List<TeamPersonDayTop> $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14418. "foreach (TeamPersonDayTop $3 in $1)",
  14419. "{",
  14420. "}"
  14421. ]
  14422. },
  14423. "查询特训营个人排行榜列表,并取值": {
  14424. "prefix": "ym-db-TeamPersonDayTop-FindWithData",
  14425. "body": [
  14426. "List<TeamPersonDayTop> $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14427. "foreach (TeamPersonDayTop $3 in $1)",
  14428. "{",
  14429. " string StatDate = $3.StatDate; //统计日",
  14430. " string StatMonth = $3.StatMonth; //统计月",
  14431. " int UserId = $3.UserId; //创客",
  14432. " int TopUserId = $3.TopUserId; //顶级创客",
  14433. " int BrandId = $3.BrandId; //品牌",
  14434. " int TeamId = $3.TeamId; //队伍",
  14435. " int TeamUserId = $3.TeamUserId; //团队长创客",
  14436. " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间",
  14437. " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间",
  14438. " int ActMerNum = $3.ActMerNum; //团员直营激活商户数",
  14439. " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数",
  14440. " string Remark = $3.Remark; //备注",
  14441. "}"
  14442. ]
  14443. },
  14444. "查询特训营个人排行榜": {
  14445. "prefix": "ym-db-TeamPersonDayTop-Exist",
  14446. "body": [
  14447. "bool $1 = db.TeamPersonDayTop.Any(m => m.Id == $2);",
  14448. ]
  14449. },
  14450. "查询某个特训营个人排行榜,并取值": {
  14451. "prefix": "ym-db-TeamPersonDayTop-FindByPrimaryKey",
  14452. "body": [
  14453. "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
  14454. "if ($1 != null)",
  14455. "{",
  14456. " string StatDate = $1.StatDate; //统计日",
  14457. " string StatMonth = $1.StatMonth; //统计月",
  14458. " int UserId = $1.UserId; //创客",
  14459. " int TopUserId = $1.TopUserId; //顶级创客",
  14460. " int BrandId = $1.BrandId; //品牌",
  14461. " int TeamId = $1.TeamId; //队伍",
  14462. " int TeamUserId = $1.TeamUserId; //团队长创客",
  14463. " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间",
  14464. " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间",
  14465. " int ActMerNum = $1.ActMerNum; //团员直营激活商户数",
  14466. " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数",
  14467. " string Remark = $1.Remark; //备注",
  14468. "}"
  14469. ]
  14470. },
  14471. "查询某个特训营个人排行榜,并赋值": {
  14472. "prefix": "ym-db-TeamPersonDayTop-Update",
  14473. "body": [
  14474. "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
  14475. "if ($1 != null)",
  14476. "{",
  14477. " $1.StatDate = $2; //统计日",
  14478. " $1.StatMonth = $3; //统计月",
  14479. " $1.UserId = $4; //创客",
  14480. " $1.TopUserId = $5; //顶级创客",
  14481. " $1.BrandId = $6; //品牌",
  14482. " $1.TeamId = $7; //队伍",
  14483. " $1.TeamUserId = $8; //团队长创客",
  14484. " $1.TeamStartDate = $9; //队伍开始时间",
  14485. " $1.TeamEndDate = $10; //队伍结束时间",
  14486. " $1.ActMerNum = $11; //团员直营激活商户数",
  14487. " $1.TeamActMerNum = $12; //队伍直营激活商户数",
  14488. " $1.Remark = $13; //备注",
  14489. "}"
  14490. ]
  14491. },
  14492. "获取特训营个人排行榜数量": {
  14493. "prefix": "ym-db-TeamPersonDayTop-FindAndCount",
  14494. "body": [
  14495. "int $1 = db.TeamPersonDayTop.Count(m => $2);",
  14496. ]
  14497. },
  14498. "添加特训营个人排行榜": {
  14499. "prefix": "ym-db-TeamPersonDayTop-Create",
  14500. "body": [
  14501. "db.TeamPersonDayTop.Add(new TeamPersonDayTop()",
  14502. "{",
  14503. " CreateDate = DateTime.Now,",
  14504. " UpdateDate = DateTime.Now,",
  14505. " StatDate = $1, //统计日",
  14506. " StatMonth = $2, //统计月",
  14507. " UserId = $3, //创客",
  14508. " TopUserId = $4, //顶级创客",
  14509. " BrandId = $5, //品牌",
  14510. " TeamId = $6, //队伍",
  14511. " TeamUserId = $7, //团队长创客",
  14512. " TeamStartDate = $8, //队伍开始时间",
  14513. " TeamEndDate = $9, //队伍结束时间",
  14514. " ActMerNum = $10, //团员直营激活商户数",
  14515. " TeamActMerNum = $11, //队伍直营激活商户数",
  14516. " Remark = $12, //备注",
  14517. "});"
  14518. ]
  14519. },"删除某个特训营个人排行榜": {
  14520. "prefix": "ym-db-TeamPersonDayTop-Delete",
  14521. "body": [
  14522. "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
  14523. "if ($1 != null)",
  14524. "{",
  14525. " db.TeamPersonDayTop.Remove($1);",
  14526. "}"
  14527. ]
  14528. },
  14529. "查询交易日汇总列表": {
  14530. "prefix": "ym-db-TradeDaySummary-Find",
  14531. "body": [
  14532. "List<TradeDaySummary> $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14533. "foreach (TradeDaySummary $3 in $1)",
  14534. "{",
  14535. "}"
  14536. ]
  14537. },
  14538. "查询交易日汇总列表,并取值": {
  14539. "prefix": "ym-db-TradeDaySummary-FindWithData",
  14540. "body": [
  14541. "List<TradeDaySummary> $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14542. "foreach (TradeDaySummary $3 in $1)",
  14543. "{",
  14544. " int UserId = $3.UserId; //创客",
  14545. " string TradeDate = $3.TradeDate; //交易日",
  14546. " string TradeMonth = $3.TradeMonth; //交易月",
  14547. " int BrandId = $3.BrandId; //品牌",
  14548. " string MgrNo = $3.MgrNo; //渠道经理编号",
  14549. " string MgrName = $3.MgrName; //渠道经理姓名",
  14550. " decimal NotHelpDirectTradeAmt = $3.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)",
  14551. " decimal NotHelpNonDirectTradeAmt = $3.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)",
  14552. " decimal NotHelpDirectCreditTradeAmt = $3.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)",
  14553. " decimal NotHelpNonDirectCreditTradeAmt = $3.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)",
  14554. " decimal NotHelpDirectQrCreditTradeAmt = $3.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)",
  14555. " decimal NotHelpNonDirectQrCreditTradeAmt = $3.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)",
  14556. " decimal NotHelpDirectNonQrCreditTradeAmt = $3.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)",
  14557. " decimal NotHelpNonDirectNonQrCreditTradeAmt = $3.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)",
  14558. " decimal NotHelpDirectDebitTradeAmt = $3.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)",
  14559. " decimal NotHelpDirectDebitCapTradeAmt = $3.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)",
  14560. " int NotHelpDirectDebitCapNum = $3.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)",
  14561. " decimal NotHelpNonDirectDebitTradeAmt = $3.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)",
  14562. " decimal NotHelpNonDirectDebitCapTradeAmt = $3.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)",
  14563. " int NotHelpNonDirectDebitCapNum = $3.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)",
  14564. " decimal NotHelpDirectQrDebitTradeAmt = $3.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)",
  14565. " decimal NotHelpNonDirectQrDebitTradeAmt = $3.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)",
  14566. " decimal NotHelpDirectNonQrDebitTradeAmt = $3.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)",
  14567. " decimal NotHelpNonDirectNonQrDebitTradeAmt = $3.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)",
  14568. " decimal HelpDirectTradeAmt = $3.HelpDirectTradeAmt; //直营商户交易总额(扶持期)",
  14569. " decimal HelpNonDirectTradeAmt = $3.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)",
  14570. " decimal HelpDirectCreditTradeAmt = $3.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)",
  14571. " decimal HelpNonDirectCreditTradeAmt = $3.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)",
  14572. " decimal HelpDirectQrCreditTradeAmt = $3.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)",
  14573. " decimal HelpNonDirectQrCreditTradeAmt = $3.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)",
  14574. " decimal HelpDirectNonQrCreditTradeAmt = $3.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)",
  14575. " decimal HelpNonDirectNonQrCreditTradeAmt = $3.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)",
  14576. " decimal HelpDirectDebitTradeAmt = $3.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)",
  14577. " decimal HelpDirectDebitCapTradeAmt = $3.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)",
  14578. " decimal HelpDirectDebitCapNum = $3.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)",
  14579. " decimal HelpNonDirectDebitTradeAmt = $3.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)",
  14580. " decimal HelpNonDirectDebitCapTradeAmt = $3.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)",
  14581. " decimal HelpNonDirectDebitCapNum = $3.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)",
  14582. " decimal HelpDirectQrDebitTradeAmt = $3.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)",
  14583. " decimal HelpNonDirectQrDebitTradeAmt = $3.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)",
  14584. " decimal HelpDirectNonQrDebitTradeAmt = $3.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)",
  14585. " decimal HelpNonDirectNonQrDebitTradeAmt = $3.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)",
  14586. " int TopUserId = $3.TopUserId; //顶级创客",
  14587. "}"
  14588. ]
  14589. },
  14590. "查询交易日汇总": {
  14591. "prefix": "ym-db-TradeDaySummary-Exist",
  14592. "body": [
  14593. "bool $1 = db.TradeDaySummary.Any(m => m.Id == $2);",
  14594. ]
  14595. },
  14596. "查询某个交易日汇总,并取值": {
  14597. "prefix": "ym-db-TradeDaySummary-FindByPrimaryKey",
  14598. "body": [
  14599. "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  14600. "if ($1 != null)",
  14601. "{",
  14602. " int UserId = $1.UserId; //创客",
  14603. " string TradeDate = $1.TradeDate; //交易日",
  14604. " string TradeMonth = $1.TradeMonth; //交易月",
  14605. " int BrandId = $1.BrandId; //品牌",
  14606. " string MgrNo = $1.MgrNo; //渠道经理编号",
  14607. " string MgrName = $1.MgrName; //渠道经理姓名",
  14608. " decimal NotHelpDirectTradeAmt = $1.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)",
  14609. " decimal NotHelpNonDirectTradeAmt = $1.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)",
  14610. " decimal NotHelpDirectCreditTradeAmt = $1.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)",
  14611. " decimal NotHelpNonDirectCreditTradeAmt = $1.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)",
  14612. " decimal NotHelpDirectQrCreditTradeAmt = $1.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)",
  14613. " decimal NotHelpNonDirectQrCreditTradeAmt = $1.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)",
  14614. " decimal NotHelpDirectNonQrCreditTradeAmt = $1.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)",
  14615. " decimal NotHelpNonDirectNonQrCreditTradeAmt = $1.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)",
  14616. " decimal NotHelpDirectDebitTradeAmt = $1.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)",
  14617. " decimal NotHelpDirectDebitCapTradeAmt = $1.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)",
  14618. " int NotHelpDirectDebitCapNum = $1.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)",
  14619. " decimal NotHelpNonDirectDebitTradeAmt = $1.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)",
  14620. " decimal NotHelpNonDirectDebitCapTradeAmt = $1.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)",
  14621. " int NotHelpNonDirectDebitCapNum = $1.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)",
  14622. " decimal NotHelpDirectQrDebitTradeAmt = $1.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)",
  14623. " decimal NotHelpNonDirectQrDebitTradeAmt = $1.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)",
  14624. " decimal NotHelpDirectNonQrDebitTradeAmt = $1.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)",
  14625. " decimal NotHelpNonDirectNonQrDebitTradeAmt = $1.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)",
  14626. " decimal HelpDirectTradeAmt = $1.HelpDirectTradeAmt; //直营商户交易总额(扶持期)",
  14627. " decimal HelpNonDirectTradeAmt = $1.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)",
  14628. " decimal HelpDirectCreditTradeAmt = $1.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)",
  14629. " decimal HelpNonDirectCreditTradeAmt = $1.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)",
  14630. " decimal HelpDirectQrCreditTradeAmt = $1.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)",
  14631. " decimal HelpNonDirectQrCreditTradeAmt = $1.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)",
  14632. " decimal HelpDirectNonQrCreditTradeAmt = $1.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)",
  14633. " decimal HelpNonDirectNonQrCreditTradeAmt = $1.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)",
  14634. " decimal HelpDirectDebitTradeAmt = $1.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)",
  14635. " decimal HelpDirectDebitCapTradeAmt = $1.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)",
  14636. " decimal HelpDirectDebitCapNum = $1.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)",
  14637. " decimal HelpNonDirectDebitTradeAmt = $1.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)",
  14638. " decimal HelpNonDirectDebitCapTradeAmt = $1.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)",
  14639. " decimal HelpNonDirectDebitCapNum = $1.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)",
  14640. " decimal HelpDirectQrDebitTradeAmt = $1.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)",
  14641. " decimal HelpNonDirectQrDebitTradeAmt = $1.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)",
  14642. " decimal HelpDirectNonQrDebitTradeAmt = $1.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)",
  14643. " decimal HelpNonDirectNonQrDebitTradeAmt = $1.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)",
  14644. " int TopUserId = $1.TopUserId; //顶级创客",
  14645. "}"
  14646. ]
  14647. },
  14648. "查询某个交易日汇总,并赋值": {
  14649. "prefix": "ym-db-TradeDaySummary-Update",
  14650. "body": [
  14651. "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  14652. "if ($1 != null)",
  14653. "{",
  14654. " $1.UserId = $2; //创客",
  14655. " $1.TradeDate = $3; //交易日",
  14656. " $1.TradeMonth = $4; //交易月",
  14657. " $1.BrandId = $5; //品牌",
  14658. " $1.MgrNo = $6; //渠道经理编号",
  14659. " $1.MgrName = $7; //渠道经理姓名",
  14660. " $1.NotHelpDirectTradeAmt = $8; //直营商户交易总额(非扶持期)",
  14661. " $1.NotHelpNonDirectTradeAmt = $9; //非直营商户交易总额(非扶持期)",
  14662. " $1.NotHelpDirectCreditTradeAmt = $10; //直营贷记卡交易总额(非扶持期)",
  14663. " $1.NotHelpNonDirectCreditTradeAmt = $11; //非直营贷记卡交易总额(非扶持期)",
  14664. " $1.NotHelpDirectQrCreditTradeAmt = $12; //直营云闪付贷记卡交易额(非扶持期)",
  14665. " $1.NotHelpNonDirectQrCreditTradeAmt = $13; //非直营云闪付贷记卡交易额(非扶持期)",
  14666. " $1.NotHelpDirectNonQrCreditTradeAmt = $14; //直营非云闪付贷记卡交易额(非扶持期)",
  14667. " $1.NotHelpNonDirectNonQrCreditTradeAmt = $15; //非直营非云闪付贷记卡交易额(非扶持期)",
  14668. " $1.NotHelpDirectDebitTradeAmt = $16; //直营商户借记卡交易总额(非扶持期)",
  14669. " $1.NotHelpDirectDebitCapTradeAmt = $17; //直营商户借记卡封顶交易总金额(非扶持期)",
  14670. " $1.NotHelpDirectDebitCapNum = $18; //直营商户借记卡封顶交易总数(非扶持期)",
  14671. " $1.NotHelpNonDirectDebitTradeAmt = $19; //非直营商户借记卡交易总额(非扶持期)",
  14672. " $1.NotHelpNonDirectDebitCapTradeAmt = $20; //非直营商户借记卡封顶交易总金额(非扶持期)",
  14673. " $1.NotHelpNonDirectDebitCapNum = $21; //非直营商户借记卡封顶交易总数(非扶持期)",
  14674. " $1.NotHelpDirectQrDebitTradeAmt = $22; //直营云闪付非封顶借记卡(非扶持期)",
  14675. " $1.NotHelpNonDirectQrDebitTradeAmt = $23; //非直营云闪付非封顶借记卡(非扶持期)",
  14676. " $1.NotHelpDirectNonQrDebitTradeAmt = $24; //直营非云闪付非封顶借记卡(非扶持期)",
  14677. " $1.NotHelpNonDirectNonQrDebitTradeAmt = $25; //非直营非云闪付非封顶借记卡(非扶持期)",
  14678. " $1.HelpDirectTradeAmt = $26; //直营商户交易总额(扶持期)",
  14679. " $1.HelpNonDirectTradeAmt = $27; //非直营商户交易总额(扶持期)",
  14680. " $1.HelpDirectCreditTradeAmt = $28; //直营贷记卡交易总额(扶持期)",
  14681. " $1.HelpNonDirectCreditTradeAmt = $29; //非直营贷记卡交易总额(扶持期)",
  14682. " $1.HelpDirectQrCreditTradeAmt = $30; //直营云闪付贷记卡交易额(扶持期)",
  14683. " $1.HelpNonDirectQrCreditTradeAmt = $31; //非直营云闪付贷记卡交易额(扶持期)",
  14684. " $1.HelpDirectNonQrCreditTradeAmt = $32; //直营非云闪付贷记卡交易额(扶持期)",
  14685. " $1.HelpNonDirectNonQrCreditTradeAmt = $33; //非直营非云闪付贷记卡交易额(扶持期)",
  14686. " $1.HelpDirectDebitTradeAmt = $34; //直营商户借记卡交易总额(扶持期)",
  14687. " $1.HelpDirectDebitCapTradeAmt = $35; //直营商户借记卡封顶交易总金额(扶持期)",
  14688. " $1.HelpDirectDebitCapNum = $36; //直营商户借记卡封顶交易总数(扶持期)",
  14689. " $1.HelpNonDirectDebitTradeAmt = $37; //非直营商户借记卡交易总额(扶持期)",
  14690. " $1.HelpNonDirectDebitCapTradeAmt = $38; //非直营商户借记卡封顶交易总金额(扶持期)",
  14691. " $1.HelpNonDirectDebitCapNum = $39; //非直营商户借记卡封顶交易总数(扶持期)",
  14692. " $1.HelpDirectQrDebitTradeAmt = $40; //直营云闪付非封顶借记卡(扶持期)",
  14693. " $1.HelpNonDirectQrDebitTradeAmt = $41; //非直营云闪付非封顶借记卡(扶持期)",
  14694. " $1.HelpDirectNonQrDebitTradeAmt = $42; //直营非云闪付非封顶借记卡(扶持期)",
  14695. " $1.HelpNonDirectNonQrDebitTradeAmt = $43; //非直营非云闪付非封顶借记卡(扶持期)",
  14696. " $1.TopUserId = $44; //顶级创客",
  14697. "}"
  14698. ]
  14699. },
  14700. "获取交易日汇总数量": {
  14701. "prefix": "ym-db-TradeDaySummary-FindAndCount",
  14702. "body": [
  14703. "int $1 = db.TradeDaySummary.Count(m => $2);",
  14704. ]
  14705. },
  14706. "添加交易日汇总": {
  14707. "prefix": "ym-db-TradeDaySummary-Create",
  14708. "body": [
  14709. "db.TradeDaySummary.Add(new TradeDaySummary()",
  14710. "{",
  14711. " CreateDate = DateTime.Now,",
  14712. " UpdateDate = DateTime.Now,",
  14713. " UserId = $1, //创客",
  14714. " TradeDate = $2, //交易日",
  14715. " TradeMonth = $3, //交易月",
  14716. " BrandId = $4, //品牌",
  14717. " MgrNo = $5, //渠道经理编号",
  14718. " MgrName = $6, //渠道经理姓名",
  14719. " NotHelpDirectTradeAmt = $7, //直营商户交易总额(非扶持期)",
  14720. " NotHelpNonDirectTradeAmt = $8, //非直营商户交易总额(非扶持期)",
  14721. " NotHelpDirectCreditTradeAmt = $9, //直营贷记卡交易总额(非扶持期)",
  14722. " NotHelpNonDirectCreditTradeAmt = $10, //非直营贷记卡交易总额(非扶持期)",
  14723. " NotHelpDirectQrCreditTradeAmt = $11, //直营云闪付贷记卡交易额(非扶持期)",
  14724. " NotHelpNonDirectQrCreditTradeAmt = $12, //非直营云闪付贷记卡交易额(非扶持期)",
  14725. " NotHelpDirectNonQrCreditTradeAmt = $13, //直营非云闪付贷记卡交易额(非扶持期)",
  14726. " NotHelpNonDirectNonQrCreditTradeAmt = $14, //非直营非云闪付贷记卡交易额(非扶持期)",
  14727. " NotHelpDirectDebitTradeAmt = $15, //直营商户借记卡交易总额(非扶持期)",
  14728. " NotHelpDirectDebitCapTradeAmt = $16, //直营商户借记卡封顶交易总金额(非扶持期)",
  14729. " NotHelpDirectDebitCapNum = $17, //直营商户借记卡封顶交易总数(非扶持期)",
  14730. " NotHelpNonDirectDebitTradeAmt = $18, //非直营商户借记卡交易总额(非扶持期)",
  14731. " NotHelpNonDirectDebitCapTradeAmt = $19, //非直营商户借记卡封顶交易总金额(非扶持期)",
  14732. " NotHelpNonDirectDebitCapNum = $20, //非直营商户借记卡封顶交易总数(非扶持期)",
  14733. " NotHelpDirectQrDebitTradeAmt = $21, //直营云闪付非封顶借记卡(非扶持期)",
  14734. " NotHelpNonDirectQrDebitTradeAmt = $22, //非直营云闪付非封顶借记卡(非扶持期)",
  14735. " NotHelpDirectNonQrDebitTradeAmt = $23, //直营非云闪付非封顶借记卡(非扶持期)",
  14736. " NotHelpNonDirectNonQrDebitTradeAmt = $24, //非直营非云闪付非封顶借记卡(非扶持期)",
  14737. " HelpDirectTradeAmt = $25, //直营商户交易总额(扶持期)",
  14738. " HelpNonDirectTradeAmt = $26, //非直营商户交易总额(扶持期)",
  14739. " HelpDirectCreditTradeAmt = $27, //直营贷记卡交易总额(扶持期)",
  14740. " HelpNonDirectCreditTradeAmt = $28, //非直营贷记卡交易总额(扶持期)",
  14741. " HelpDirectQrCreditTradeAmt = $29, //直营云闪付贷记卡交易额(扶持期)",
  14742. " HelpNonDirectQrCreditTradeAmt = $30, //非直营云闪付贷记卡交易额(扶持期)",
  14743. " HelpDirectNonQrCreditTradeAmt = $31, //直营非云闪付贷记卡交易额(扶持期)",
  14744. " HelpNonDirectNonQrCreditTradeAmt = $32, //非直营非云闪付贷记卡交易额(扶持期)",
  14745. " HelpDirectDebitTradeAmt = $33, //直营商户借记卡交易总额(扶持期)",
  14746. " HelpDirectDebitCapTradeAmt = $34, //直营商户借记卡封顶交易总金额(扶持期)",
  14747. " HelpDirectDebitCapNum = $35, //直营商户借记卡封顶交易总数(扶持期)",
  14748. " HelpNonDirectDebitTradeAmt = $36, //非直营商户借记卡交易总额(扶持期)",
  14749. " HelpNonDirectDebitCapTradeAmt = $37, //非直营商户借记卡封顶交易总金额(扶持期)",
  14750. " HelpNonDirectDebitCapNum = $38, //非直营商户借记卡封顶交易总数(扶持期)",
  14751. " HelpDirectQrDebitTradeAmt = $39, //直营云闪付非封顶借记卡(扶持期)",
  14752. " HelpNonDirectQrDebitTradeAmt = $40, //非直营云闪付非封顶借记卡(扶持期)",
  14753. " HelpDirectNonQrDebitTradeAmt = $41, //直营非云闪付非封顶借记卡(扶持期)",
  14754. " HelpNonDirectNonQrDebitTradeAmt = $42, //非直营非云闪付非封顶借记卡(扶持期)",
  14755. " TopUserId = $43, //顶级创客",
  14756. "});"
  14757. ]
  14758. },"删除某个交易日汇总": {
  14759. "prefix": "ym-db-TradeDaySummary-Delete",
  14760. "body": [
  14761. "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  14762. "if ($1 != null)",
  14763. "{",
  14764. " db.TradeDaySummary.Remove($1);",
  14765. "}"
  14766. ]
  14767. },
  14768. "查询交易记录列表": {
  14769. "prefix": "ym-db-TradeRecord-Find",
  14770. "body": [
  14771. "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14772. "foreach (TradeRecord $3 in $1)",
  14773. "{",
  14774. "}"
  14775. ]
  14776. },
  14777. "查询交易记录列表,并取值": {
  14778. "prefix": "ym-db-TradeRecord-FindWithData",
  14779. "body": [
  14780. "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14781. "foreach (TradeRecord $3 in $1)",
  14782. "{",
  14783. " string RecordNo = $3.RecordNo; //单号",
  14784. " int UserId = $3.UserId; //创客",
  14785. " int MerchantId = $3.MerchantId; //商户",
  14786. " string MerNo = $3.MerNo; //渠道商户编号",
  14787. " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户",
  14788. " int HelpMonthCount = $3.HelpMonthCount; //扶持第几个月",
  14789. " int MerBuddyType = $3.MerBuddyType; //商户创客类型",
  14790. " string SnNo = $3.SnNo; //渠道SN号",
  14791. " DateTime TradeDate = $3.TradeDate; //交易日期",
  14792. " DateTime ClearDate = $3.ClearDate; //清算日期",
  14793. " string TradeSerialNo = $3.TradeSerialNo; //交易流水号",
  14794. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  14795. " int BankCardType = $3.BankCardType; //银行卡类型",
  14796. " int QrPayFlag = $3.QrPayFlag; //云闪付标识",
  14797. " int CapFlag = $3.CapFlag; //借记卡封顶交易标志",
  14798. " ulong DirectFlag = $3.DirectFlag; //是否直营",
  14799. " int BrandId = $3.BrandId; //品牌",
  14800. " string Remark = $3.Remark; //备注",
  14801. " int TopUserId = $3.TopUserId; //顶级创客",
  14802. " int MerUserId = $3.MerUserId; //商户直属创客",
  14803. "}"
  14804. ]
  14805. },
  14806. "查询交易记录": {
  14807. "prefix": "ym-db-TradeRecord-Exist",
  14808. "body": [
  14809. "bool $1 = db.TradeRecord.Any(m => m.Id == $2);",
  14810. ]
  14811. },
  14812. "查询某个交易记录,并取值": {
  14813. "prefix": "ym-db-TradeRecord-FindByPrimaryKey",
  14814. "body": [
  14815. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  14816. "if ($1 != null)",
  14817. "{",
  14818. " string RecordNo = $1.RecordNo; //单号",
  14819. " int UserId = $1.UserId; //创客",
  14820. " int MerchantId = $1.MerchantId; //商户",
  14821. " string MerNo = $1.MerNo; //渠道商户编号",
  14822. " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户",
  14823. " int HelpMonthCount = $1.HelpMonthCount; //扶持第几个月",
  14824. " int MerBuddyType = $1.MerBuddyType; //商户创客类型",
  14825. " string SnNo = $1.SnNo; //渠道SN号",
  14826. " DateTime TradeDate = $1.TradeDate; //交易日期",
  14827. " DateTime ClearDate = $1.ClearDate; //清算日期",
  14828. " string TradeSerialNo = $1.TradeSerialNo; //交易流水号",
  14829. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  14830. " int BankCardType = $1.BankCardType; //银行卡类型",
  14831. " int QrPayFlag = $1.QrPayFlag; //云闪付标识",
  14832. " int CapFlag = $1.CapFlag; //借记卡封顶交易标志",
  14833. " ulong DirectFlag = $1.DirectFlag; //是否直营",
  14834. " int BrandId = $1.BrandId; //品牌",
  14835. " string Remark = $1.Remark; //备注",
  14836. " int TopUserId = $1.TopUserId; //顶级创客",
  14837. " int MerUserId = $1.MerUserId; //商户直属创客",
  14838. "}"
  14839. ]
  14840. },
  14841. "查询某个交易记录,并赋值": {
  14842. "prefix": "ym-db-TradeRecord-Update",
  14843. "body": [
  14844. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  14845. "if ($1 != null)",
  14846. "{",
  14847. " $1.RecordNo = $2; //单号",
  14848. " $1.UserId = $3; //创客",
  14849. " $1.MerchantId = $4; //商户",
  14850. " $1.MerNo = $5; //渠道商户编号",
  14851. " $1.MerHelpFlag = $6; //是否属于扶持周期内商户",
  14852. " $1.HelpMonthCount = $7; //扶持第几个月",
  14853. " $1.MerBuddyType = $8; //商户创客类型",
  14854. " $1.SnNo = $9; //渠道SN号",
  14855. " $1.TradeDate = $10; //交易日期",
  14856. " $1.ClearDate = $11; //清算日期",
  14857. " $1.TradeSerialNo = $12; //交易流水号",
  14858. " $1.TradeAmount = $13; //交易金额",
  14859. " $1.BankCardType = $14; //银行卡类型",
  14860. " $1.QrPayFlag = $15; //云闪付标识",
  14861. " $1.CapFlag = $16; //借记卡封顶交易标志",
  14862. " $1.DirectFlag = $17; //是否直营",
  14863. " $1.BrandId = $18; //品牌",
  14864. " $1.Remark = $19; //备注",
  14865. " $1.TopUserId = $20; //顶级创客",
  14866. " $1.MerUserId = $21; //商户直属创客",
  14867. "}"
  14868. ]
  14869. },
  14870. "获取交易记录数量": {
  14871. "prefix": "ym-db-TradeRecord-FindAndCount",
  14872. "body": [
  14873. "int $1 = db.TradeRecord.Count(m => $2);",
  14874. ]
  14875. },
  14876. "添加交易记录": {
  14877. "prefix": "ym-db-TradeRecord-Create",
  14878. "body": [
  14879. "db.TradeRecord.Add(new TradeRecord()",
  14880. "{",
  14881. " CreateDate = DateTime.Now,",
  14882. " UpdateDate = DateTime.Now,",
  14883. " RecordNo = $1, //单号",
  14884. " UserId = $2, //创客",
  14885. " MerchantId = $3, //商户",
  14886. " MerNo = $4, //渠道商户编号",
  14887. " MerHelpFlag = $5, //是否属于扶持周期内商户",
  14888. " HelpMonthCount = $6, //扶持第几个月",
  14889. " MerBuddyType = $7, //商户创客类型",
  14890. " SnNo = $8, //渠道SN号",
  14891. " TradeDate = $9, //交易日期",
  14892. " ClearDate = $10, //清算日期",
  14893. " TradeSerialNo = $11, //交易流水号",
  14894. " TradeAmount = $12, //交易金额",
  14895. " BankCardType = $13, //银行卡类型",
  14896. " QrPayFlag = $14, //云闪付标识",
  14897. " CapFlag = $15, //借记卡封顶交易标志",
  14898. " DirectFlag = $16, //是否直营",
  14899. " BrandId = $17, //品牌",
  14900. " Remark = $18, //备注",
  14901. " TopUserId = $19, //顶级创客",
  14902. " MerUserId = $20, //商户直属创客",
  14903. "});"
  14904. ]
  14905. },"删除某个交易记录": {
  14906. "prefix": "ym-db-TradeRecord-Delete",
  14907. "body": [
  14908. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  14909. "if ($1 != null)",
  14910. "{",
  14911. " db.TradeRecord.Remove($1);",
  14912. "}"
  14913. ]
  14914. },
  14915. "查询上传配置项列表": {
  14916. "prefix": "ym-db-UploadParams-Find",
  14917. "body": [
  14918. "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14919. "foreach (UploadParams $3 in $1)",
  14920. "{",
  14921. "}"
  14922. ]
  14923. },
  14924. "查询上传配置项列表,并取值": {
  14925. "prefix": "ym-db-UploadParams-FindWithData",
  14926. "body": [
  14927. "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14928. "foreach (UploadParams $3 in $1)",
  14929. "{",
  14930. " string TableName = $3.TableName; //表名",
  14931. " string ColumnName = $3.ColumnName; //字段名",
  14932. " string ColumnEnName = $3.ColumnEnName; //字段英文明",
  14933. " string ParamString = $3.ParamString; //参数",
  14934. " string TableEnName = $3.TableEnName; //表英文名",
  14935. "}"
  14936. ]
  14937. },
  14938. "查询上传配置项": {
  14939. "prefix": "ym-db-UploadParams-Exist",
  14940. "body": [
  14941. "bool $1 = db.UploadParams.Any(m => m.Id == $2);",
  14942. ]
  14943. },
  14944. "查询某个上传配置项,并取值": {
  14945. "prefix": "ym-db-UploadParams-FindByPrimaryKey",
  14946. "body": [
  14947. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  14948. "if ($1 != null)",
  14949. "{",
  14950. " string TableName = $1.TableName; //表名",
  14951. " string ColumnName = $1.ColumnName; //字段名",
  14952. " string ColumnEnName = $1.ColumnEnName; //字段英文明",
  14953. " string ParamString = $1.ParamString; //参数",
  14954. " string TableEnName = $1.TableEnName; //表英文名",
  14955. "}"
  14956. ]
  14957. },
  14958. "查询某个上传配置项,并赋值": {
  14959. "prefix": "ym-db-UploadParams-Update",
  14960. "body": [
  14961. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  14962. "if ($1 != null)",
  14963. "{",
  14964. " $1.TableName = $2; //表名",
  14965. " $1.ColumnName = $3; //字段名",
  14966. " $1.ColumnEnName = $4; //字段英文明",
  14967. " $1.ParamString = $5; //参数",
  14968. " $1.TableEnName = $6; //表英文名",
  14969. "}"
  14970. ]
  14971. },
  14972. "获取上传配置项数量": {
  14973. "prefix": "ym-db-UploadParams-FindAndCount",
  14974. "body": [
  14975. "int $1 = db.UploadParams.Count(m => $2);",
  14976. ]
  14977. },
  14978. "添加上传配置项": {
  14979. "prefix": "ym-db-UploadParams-Create",
  14980. "body": [
  14981. "db.UploadParams.Add(new UploadParams()",
  14982. "{",
  14983. " CreateDate = DateTime.Now,",
  14984. " UpdateDate = DateTime.Now,",
  14985. " TableName = $1, //表名",
  14986. " ColumnName = $2, //字段名",
  14987. " ColumnEnName = $3, //字段英文明",
  14988. " ParamString = $4, //参数",
  14989. " TableEnName = $5, //表英文名",
  14990. "});"
  14991. ]
  14992. },"删除某个上传配置项": {
  14993. "prefix": "ym-db-UploadParams-Delete",
  14994. "body": [
  14995. "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
  14996. "if ($1 != null)",
  14997. "{",
  14998. " db.UploadParams.Remove($1);",
  14999. "}"
  15000. ]
  15001. },
  15002. "查询创客账户列表": {
  15003. "prefix": "ym-db-UserAccount-Find",
  15004. "body": [
  15005. "List<UserAccount> $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15006. "foreach (UserAccount $3 in $1)",
  15007. "{",
  15008. "}"
  15009. ]
  15010. },
  15011. "查询创客账户列表,并取值": {
  15012. "prefix": "ym-db-UserAccount-FindWithData",
  15013. "body": [
  15014. "List<UserAccount> $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15015. "foreach (UserAccount $3 in $1)",
  15016. "{",
  15017. " int UserId = $3.UserId; //创客",
  15018. " int UserType = $3.UserType; //创客类型",
  15019. " int UserProperty = $3.UserProperty; //创客属性",
  15020. " decimal TotalAmount = $3.TotalAmount; //总金额",
  15021. " decimal FreezeAmount = $3.FreezeAmount; //冻结金额",
  15022. " decimal BalanceAmount = $3.BalanceAmount; //余额",
  15023. " int AccountStatus = $3.AccountStatus; //账户状态",
  15024. " int LockStatus = $3.LockStatus; //锁定状态",
  15025. " decimal WithdrawAmount = $3.WithdrawAmount; //已提现金额",
  15026. " decimal TotalProfit = $3.TotalProfit; //总收益",
  15027. " decimal TotalServiceProfit = $3.TotalServiceProfit; //总服务分润",
  15028. " decimal TeamTotalOverProfit = $3.TeamTotalOverProfit; //团队总流水分润",
  15029. " decimal TeamTotalProfit = $3.TeamTotalProfit; //团队总收益",
  15030. " decimal TeamTotalServiceProfit = $3.TeamTotalServiceProfit; //团队总服务分润",
  15031. " decimal TotalOverProfit = $3.TotalOverProfit; //总流水分润",
  15032. "}"
  15033. ]
  15034. },
  15035. "查询创客账户": {
  15036. "prefix": "ym-db-UserAccount-Exist",
  15037. "body": [
  15038. "bool $1 = db.UserAccount.Any(m => m.Id == $2);",
  15039. ]
  15040. },
  15041. "查询某个创客账户,并取值": {
  15042. "prefix": "ym-db-UserAccount-FindByPrimaryKey",
  15043. "body": [
  15044. "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
  15045. "if ($1 != null)",
  15046. "{",
  15047. " int UserId = $1.UserId; //创客",
  15048. " int UserType = $1.UserType; //创客类型",
  15049. " int UserProperty = $1.UserProperty; //创客属性",
  15050. " decimal TotalAmount = $1.TotalAmount; //总金额",
  15051. " decimal FreezeAmount = $1.FreezeAmount; //冻结金额",
  15052. " decimal BalanceAmount = $1.BalanceAmount; //余额",
  15053. " int AccountStatus = $1.AccountStatus; //账户状态",
  15054. " int LockStatus = $1.LockStatus; //锁定状态",
  15055. " decimal WithdrawAmount = $1.WithdrawAmount; //已提现金额",
  15056. " decimal TotalProfit = $1.TotalProfit; //总收益",
  15057. " decimal TotalServiceProfit = $1.TotalServiceProfit; //总服务分润",
  15058. " decimal TeamTotalOverProfit = $1.TeamTotalOverProfit; //团队总流水分润",
  15059. " decimal TeamTotalProfit = $1.TeamTotalProfit; //团队总收益",
  15060. " decimal TeamTotalServiceProfit = $1.TeamTotalServiceProfit; //团队总服务分润",
  15061. " decimal TotalOverProfit = $1.TotalOverProfit; //总流水分润",
  15062. "}"
  15063. ]
  15064. },
  15065. "查询某个创客账户,并赋值": {
  15066. "prefix": "ym-db-UserAccount-Update",
  15067. "body": [
  15068. "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
  15069. "if ($1 != null)",
  15070. "{",
  15071. " $1.UserId = $2; //创客",
  15072. " $1.UserType = $3; //创客类型",
  15073. " $1.UserProperty = $4; //创客属性",
  15074. " $1.TotalAmount = $5; //总金额",
  15075. " $1.FreezeAmount = $6; //冻结金额",
  15076. " $1.BalanceAmount = $7; //余额",
  15077. " $1.AccountStatus = $8; //账户状态",
  15078. " $1.LockStatus = $9; //锁定状态",
  15079. " $1.WithdrawAmount = $10; //已提现金额",
  15080. " $1.TotalProfit = $11; //总收益",
  15081. " $1.TotalServiceProfit = $12; //总服务分润",
  15082. " $1.TeamTotalOverProfit = $13; //团队总流水分润",
  15083. " $1.TeamTotalProfit = $14; //团队总收益",
  15084. " $1.TeamTotalServiceProfit = $15; //团队总服务分润",
  15085. " $1.TotalOverProfit = $16; //总流水分润",
  15086. "}"
  15087. ]
  15088. },
  15089. "获取创客账户数量": {
  15090. "prefix": "ym-db-UserAccount-FindAndCount",
  15091. "body": [
  15092. "int $1 = db.UserAccount.Count(m => $2);",
  15093. ]
  15094. },
  15095. "添加创客账户": {
  15096. "prefix": "ym-db-UserAccount-Create",
  15097. "body": [
  15098. "db.UserAccount.Add(new UserAccount()",
  15099. "{",
  15100. " CreateDate = DateTime.Now,",
  15101. " UpdateDate = DateTime.Now,",
  15102. " UserId = $1, //创客",
  15103. " UserType = $2, //创客类型",
  15104. " UserProperty = $3, //创客属性",
  15105. " TotalAmount = $4, //总金额",
  15106. " FreezeAmount = $5, //冻结金额",
  15107. " BalanceAmount = $6, //余额",
  15108. " AccountStatus = $7, //账户状态",
  15109. " LockStatus = $8, //锁定状态",
  15110. " WithdrawAmount = $9, //已提现金额",
  15111. " TotalProfit = $10, //总收益",
  15112. " TotalServiceProfit = $11, //总服务分润",
  15113. " TeamTotalOverProfit = $12, //团队总流水分润",
  15114. " TeamTotalProfit = $13, //团队总收益",
  15115. " TeamTotalServiceProfit = $14, //团队总服务分润",
  15116. " TotalOverProfit = $15, //总流水分润",
  15117. "});"
  15118. ]
  15119. },"删除某个创客账户": {
  15120. "prefix": "ym-db-UserAccount-Delete",
  15121. "body": [
  15122. "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
  15123. "if ($1 != null)",
  15124. "{",
  15125. " db.UserAccount.Remove($1);",
  15126. "}"
  15127. ]
  15128. },
  15129. "查询创客账户变动记录列表": {
  15130. "prefix": "ym-db-UserAccountRecord-Find",
  15131. "body": [
  15132. "List<UserAccountRecord> $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15133. "foreach (UserAccountRecord $3 in $1)",
  15134. "{",
  15135. "}"
  15136. ]
  15137. },
  15138. "查询创客账户变动记录列表,并取值": {
  15139. "prefix": "ym-db-UserAccountRecord-FindWithData",
  15140. "body": [
  15141. "List<UserAccountRecord> $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15142. "foreach (UserAccountRecord $3 in $1)",
  15143. "{",
  15144. " int UserId = $3.UserId; //创客",
  15145. " int ChangeType = $3.ChangeType; //变动类型",
  15146. " int ProductType = $3.ProductType; //产品类型",
  15147. " decimal ChangeAmount = $3.ChangeAmount; //变更金额",
  15148. " decimal BeforeTotalAmount = $3.BeforeTotalAmount; //变更前总金额",
  15149. " decimal AfterTotalAmount = $3.AfterTotalAmount; //变更后总金额",
  15150. " decimal BeforeFreezeAmount = $3.BeforeFreezeAmount; //变更前冻结金额",
  15151. " decimal AfterFreezeAmount = $3.AfterFreezeAmount; //变更后冻结金额",
  15152. " decimal BeforeBalanceAmount = $3.BeforeBalanceAmount; //变更前余额",
  15153. " decimal AfterBalanceAmount = $3.AfterBalanceAmount; //变更后余额",
  15154. " string Remark = $3.Remark; //账户变动明细备注信息",
  15155. " string TransRecordNo = $3.TransRecordNo; //交易流水编号",
  15156. "}"
  15157. ]
  15158. },
  15159. "查询创客账户变动记录": {
  15160. "prefix": "ym-db-UserAccountRecord-Exist",
  15161. "body": [
  15162. "bool $1 = db.UserAccountRecord.Any(m => m.Id == $2);",
  15163. ]
  15164. },
  15165. "查询某个创客账户变动记录,并取值": {
  15166. "prefix": "ym-db-UserAccountRecord-FindByPrimaryKey",
  15167. "body": [
  15168. "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
  15169. "if ($1 != null)",
  15170. "{",
  15171. " int UserId = $1.UserId; //创客",
  15172. " int ChangeType = $1.ChangeType; //变动类型",
  15173. " int ProductType = $1.ProductType; //产品类型",
  15174. " decimal ChangeAmount = $1.ChangeAmount; //变更金额",
  15175. " decimal BeforeTotalAmount = $1.BeforeTotalAmount; //变更前总金额",
  15176. " decimal AfterTotalAmount = $1.AfterTotalAmount; //变更后总金额",
  15177. " decimal BeforeFreezeAmount = $1.BeforeFreezeAmount; //变更前冻结金额",
  15178. " decimal AfterFreezeAmount = $1.AfterFreezeAmount; //变更后冻结金额",
  15179. " decimal BeforeBalanceAmount = $1.BeforeBalanceAmount; //变更前余额",
  15180. " decimal AfterBalanceAmount = $1.AfterBalanceAmount; //变更后余额",
  15181. " string Remark = $1.Remark; //账户变动明细备注信息",
  15182. " string TransRecordNo = $1.TransRecordNo; //交易流水编号",
  15183. "}"
  15184. ]
  15185. },
  15186. "查询某个创客账户变动记录,并赋值": {
  15187. "prefix": "ym-db-UserAccountRecord-Update",
  15188. "body": [
  15189. "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
  15190. "if ($1 != null)",
  15191. "{",
  15192. " $1.UserId = $2; //创客",
  15193. " $1.ChangeType = $3; //变动类型",
  15194. " $1.ProductType = $4; //产品类型",
  15195. " $1.ChangeAmount = $5; //变更金额",
  15196. " $1.BeforeTotalAmount = $6; //变更前总金额",
  15197. " $1.AfterTotalAmount = $7; //变更后总金额",
  15198. " $1.BeforeFreezeAmount = $8; //变更前冻结金额",
  15199. " $1.AfterFreezeAmount = $9; //变更后冻结金额",
  15200. " $1.BeforeBalanceAmount = $10; //变更前余额",
  15201. " $1.AfterBalanceAmount = $11; //变更后余额",
  15202. " $1.Remark = $12; //账户变动明细备注信息",
  15203. " $1.TransRecordNo = $13; //交易流水编号",
  15204. "}"
  15205. ]
  15206. },
  15207. "获取创客账户变动记录数量": {
  15208. "prefix": "ym-db-UserAccountRecord-FindAndCount",
  15209. "body": [
  15210. "int $1 = db.UserAccountRecord.Count(m => $2);",
  15211. ]
  15212. },
  15213. "添加创客账户变动记录": {
  15214. "prefix": "ym-db-UserAccountRecord-Create",
  15215. "body": [
  15216. "db.UserAccountRecord.Add(new UserAccountRecord()",
  15217. "{",
  15218. " CreateDate = DateTime.Now,",
  15219. " UpdateDate = DateTime.Now,",
  15220. " UserId = $1, //创客",
  15221. " ChangeType = $2, //变动类型",
  15222. " ProductType = $3, //产品类型",
  15223. " ChangeAmount = $4, //变更金额",
  15224. " BeforeTotalAmount = $5, //变更前总金额",
  15225. " AfterTotalAmount = $6, //变更后总金额",
  15226. " BeforeFreezeAmount = $7, //变更前冻结金额",
  15227. " AfterFreezeAmount = $8, //变更后冻结金额",
  15228. " BeforeBalanceAmount = $9, //变更前余额",
  15229. " AfterBalanceAmount = $10, //变更后余额",
  15230. " Remark = $11, //账户变动明细备注信息",
  15231. " TransRecordNo = $12, //交易流水编号",
  15232. "});"
  15233. ]
  15234. },"删除某个创客账户变动记录": {
  15235. "prefix": "ym-db-UserAccountRecord-Delete",
  15236. "body": [
  15237. "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
  15238. "if ($1 != null)",
  15239. "{",
  15240. " db.UserAccountRecord.Remove($1);",
  15241. "}"
  15242. ]
  15243. },
  15244. "查询创客收货地址列表": {
  15245. "prefix": "ym-db-UserAddress-Find",
  15246. "body": [
  15247. "List<UserAddress> $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15248. "foreach (UserAddress $3 in $1)",
  15249. "{",
  15250. "}"
  15251. ]
  15252. },
  15253. "查询创客收货地址列表,并取值": {
  15254. "prefix": "ym-db-UserAddress-FindWithData",
  15255. "body": [
  15256. "List<UserAddress> $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15257. "foreach (UserAddress $3 in $1)",
  15258. "{",
  15259. " string Address = $3.Address; //详细地址",
  15260. " string PostalCode = $3.PostalCode; //邮政编码",
  15261. " string RealName = $3.RealName; //收货人姓名",
  15262. " string Mobile = $3.Mobile; //手机号码",
  15263. " int UserId = $3.UserId; //所属创客Id",
  15264. " string Areas = $3.Areas; //所在地区",
  15265. " ulong IsDefault = $3.IsDefault; //是否默认",
  15266. "}"
  15267. ]
  15268. },
  15269. "查询创客收货地址": {
  15270. "prefix": "ym-db-UserAddress-Exist",
  15271. "body": [
  15272. "bool $1 = db.UserAddress.Any(m => m.Id == $2);",
  15273. ]
  15274. },
  15275. "查询某个创客收货地址,并取值": {
  15276. "prefix": "ym-db-UserAddress-FindByPrimaryKey",
  15277. "body": [
  15278. "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
  15279. "if ($1 != null)",
  15280. "{",
  15281. " string Address = $1.Address; //详细地址",
  15282. " string PostalCode = $1.PostalCode; //邮政编码",
  15283. " string RealName = $1.RealName; //收货人姓名",
  15284. " string Mobile = $1.Mobile; //手机号码",
  15285. " int UserId = $1.UserId; //所属创客Id",
  15286. " string Areas = $1.Areas; //所在地区",
  15287. " ulong IsDefault = $1.IsDefault; //是否默认",
  15288. "}"
  15289. ]
  15290. },
  15291. "查询某个创客收货地址,并赋值": {
  15292. "prefix": "ym-db-UserAddress-Update",
  15293. "body": [
  15294. "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
  15295. "if ($1 != null)",
  15296. "{",
  15297. " $1.Address = $2; //详细地址",
  15298. " $1.PostalCode = $3; //邮政编码",
  15299. " $1.RealName = $4; //收货人姓名",
  15300. " $1.Mobile = $5; //手机号码",
  15301. " $1.UserId = $6; //所属创客Id",
  15302. " $1.Areas = $7; //所在地区",
  15303. " $1.IsDefault = $8; //是否默认",
  15304. "}"
  15305. ]
  15306. },
  15307. "获取创客收货地址数量": {
  15308. "prefix": "ym-db-UserAddress-FindAndCount",
  15309. "body": [
  15310. "int $1 = db.UserAddress.Count(m => $2);",
  15311. ]
  15312. },
  15313. "添加创客收货地址": {
  15314. "prefix": "ym-db-UserAddress-Create",
  15315. "body": [
  15316. "db.UserAddress.Add(new UserAddress()",
  15317. "{",
  15318. " CreateDate = DateTime.Now,",
  15319. " UpdateDate = DateTime.Now,",
  15320. " Address = $1, //详细地址",
  15321. " PostalCode = $2, //邮政编码",
  15322. " RealName = $3, //收货人姓名",
  15323. " Mobile = $4, //手机号码",
  15324. " UserId = $5, //所属创客Id",
  15325. " Areas = $6, //所在地区",
  15326. " IsDefault = $7, //是否默认",
  15327. "});"
  15328. ]
  15329. },"删除某个创客收货地址": {
  15330. "prefix": "ym-db-UserAddress-Delete",
  15331. "body": [
  15332. "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
  15333. "if ($1 != null)",
  15334. "{",
  15335. " db.UserAddress.Remove($1);",
  15336. "}"
  15337. ]
  15338. },
  15339. "查询创客绑卡记录列表": {
  15340. "prefix": "ym-db-UserAuthRecord-Find",
  15341. "body": [
  15342. "List<UserAuthRecord> $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15343. "foreach (UserAuthRecord $3 in $1)",
  15344. "{",
  15345. "}"
  15346. ]
  15347. },
  15348. "查询创客绑卡记录列表,并取值": {
  15349. "prefix": "ym-db-UserAuthRecord-FindWithData",
  15350. "body": [
  15351. "List<UserAuthRecord> $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15352. "foreach (UserAuthRecord $3 in $1)",
  15353. "{",
  15354. " string ChannelCode = $3.ChannelCode; //渠道编码",
  15355. " string ChannelName = $3.ChannelName; //渠道名称",
  15356. " int UserId = $3.UserId; //创客",
  15357. " string RealName = $3.RealName; //真实姓名",
  15358. " string IdcardNo = $3.IdcardNo; //身份证号码",
  15359. " string BankCardAccount = $3.BankCardAccount; //银行卡账号",
  15360. " string BankName = $3.BankName; //银行名称",
  15361. " string BankMobile = $3.BankMobile; //银行预留手机号码",
  15362. " string ReqData = $3.ReqData; //请求数据",
  15363. " string ResData = $3.ResData; //响应数据",
  15364. " string ReturnCode = $3.ReturnCode; //返回编码",
  15365. " string ReturnMsg = $3.ReturnMsg; //返回信息",
  15366. " int AuthType = $3.AuthType; //实名类型",
  15367. "}"
  15368. ]
  15369. },
  15370. "查询创客绑卡记录": {
  15371. "prefix": "ym-db-UserAuthRecord-Exist",
  15372. "body": [
  15373. "bool $1 = db.UserAuthRecord.Any(m => m.Id == $2);",
  15374. ]
  15375. },
  15376. "查询某个创客绑卡记录,并取值": {
  15377. "prefix": "ym-db-UserAuthRecord-FindByPrimaryKey",
  15378. "body": [
  15379. "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
  15380. "if ($1 != null)",
  15381. "{",
  15382. " string ChannelCode = $1.ChannelCode; //渠道编码",
  15383. " string ChannelName = $1.ChannelName; //渠道名称",
  15384. " int UserId = $1.UserId; //创客",
  15385. " string RealName = $1.RealName; //真实姓名",
  15386. " string IdcardNo = $1.IdcardNo; //身份证号码",
  15387. " string BankCardAccount = $1.BankCardAccount; //银行卡账号",
  15388. " string BankName = $1.BankName; //银行名称",
  15389. " string BankMobile = $1.BankMobile; //银行预留手机号码",
  15390. " string ReqData = $1.ReqData; //请求数据",
  15391. " string ResData = $1.ResData; //响应数据",
  15392. " string ReturnCode = $1.ReturnCode; //返回编码",
  15393. " string ReturnMsg = $1.ReturnMsg; //返回信息",
  15394. " int AuthType = $1.AuthType; //实名类型",
  15395. "}"
  15396. ]
  15397. },
  15398. "查询某个创客绑卡记录,并赋值": {
  15399. "prefix": "ym-db-UserAuthRecord-Update",
  15400. "body": [
  15401. "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
  15402. "if ($1 != null)",
  15403. "{",
  15404. " $1.ChannelCode = $2; //渠道编码",
  15405. " $1.ChannelName = $3; //渠道名称",
  15406. " $1.UserId = $4; //创客",
  15407. " $1.RealName = $5; //真实姓名",
  15408. " $1.IdcardNo = $6; //身份证号码",
  15409. " $1.BankCardAccount = $7; //银行卡账号",
  15410. " $1.BankName = $8; //银行名称",
  15411. " $1.BankMobile = $9; //银行预留手机号码",
  15412. " $1.ReqData = $10; //请求数据",
  15413. " $1.ResData = $11; //响应数据",
  15414. " $1.ReturnCode = $12; //返回编码",
  15415. " $1.ReturnMsg = $13; //返回信息",
  15416. " $1.AuthType = $14; //实名类型",
  15417. "}"
  15418. ]
  15419. },
  15420. "获取创客绑卡记录数量": {
  15421. "prefix": "ym-db-UserAuthRecord-FindAndCount",
  15422. "body": [
  15423. "int $1 = db.UserAuthRecord.Count(m => $2);",
  15424. ]
  15425. },
  15426. "添加创客绑卡记录": {
  15427. "prefix": "ym-db-UserAuthRecord-Create",
  15428. "body": [
  15429. "db.UserAuthRecord.Add(new UserAuthRecord()",
  15430. "{",
  15431. " CreateDate = DateTime.Now,",
  15432. " UpdateDate = DateTime.Now,",
  15433. " ChannelCode = $1, //渠道编码",
  15434. " ChannelName = $2, //渠道名称",
  15435. " UserId = $3, //创客",
  15436. " RealName = $4, //真实姓名",
  15437. " IdcardNo = $5, //身份证号码",
  15438. " BankCardAccount = $6, //银行卡账号",
  15439. " BankName = $7, //银行名称",
  15440. " BankMobile = $8, //银行预留手机号码",
  15441. " ReqData = $9, //请求数据",
  15442. " ResData = $10, //响应数据",
  15443. " ReturnCode = $11, //返回编码",
  15444. " ReturnMsg = $12, //返回信息",
  15445. " AuthType = $13, //实名类型",
  15446. "});"
  15447. ]
  15448. },"删除某个创客绑卡记录": {
  15449. "prefix": "ym-db-UserAuthRecord-Delete",
  15450. "body": [
  15451. "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
  15452. "if ($1 != null)",
  15453. "{",
  15454. " db.UserAuthRecord.Remove($1);",
  15455. "}"
  15456. ]
  15457. },
  15458. "查询反馈信息列表": {
  15459. "prefix": "ym-db-UserBack-Find",
  15460. "body": [
  15461. "List<UserBack> $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15462. "foreach (UserBack $3 in $1)",
  15463. "{",
  15464. "}"
  15465. ]
  15466. },
  15467. "查询反馈信息列表,并取值": {
  15468. "prefix": "ym-db-UserBack-FindWithData",
  15469. "body": [
  15470. "List<UserBack> $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15471. "foreach (UserBack $3 in $1)",
  15472. "{",
  15473. " int UserId = $3.UserId; //创客",
  15474. " string Content = $3.Content; //回复内容",
  15475. " ulong IsPhoneCallBack = $3.IsPhoneCallBack; //是否需要电话回复",
  15476. " int BackKind = $3.BackKind; //反馈类型",
  15477. " string ReplyContent = $3.ReplyContent; //后台回复内容",
  15478. " int BackStatus = $3.BackStatus; //回复状态",
  15479. "}"
  15480. ]
  15481. },
  15482. "查询反馈信息": {
  15483. "prefix": "ym-db-UserBack-Exist",
  15484. "body": [
  15485. "bool $1 = db.UserBack.Any(m => m.Id == $2);",
  15486. ]
  15487. },
  15488. "查询某个反馈信息,并取值": {
  15489. "prefix": "ym-db-UserBack-FindByPrimaryKey",
  15490. "body": [
  15491. "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
  15492. "if ($1 != null)",
  15493. "{",
  15494. " int UserId = $1.UserId; //创客",
  15495. " string Content = $1.Content; //回复内容",
  15496. " ulong IsPhoneCallBack = $1.IsPhoneCallBack; //是否需要电话回复",
  15497. " int BackKind = $1.BackKind; //反馈类型",
  15498. " string ReplyContent = $1.ReplyContent; //后台回复内容",
  15499. " int BackStatus = $1.BackStatus; //回复状态",
  15500. "}"
  15501. ]
  15502. },
  15503. "查询某个反馈信息,并赋值": {
  15504. "prefix": "ym-db-UserBack-Update",
  15505. "body": [
  15506. "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
  15507. "if ($1 != null)",
  15508. "{",
  15509. " $1.UserId = $2; //创客",
  15510. " $1.Content = $3; //回复内容",
  15511. " $1.IsPhoneCallBack = $4; //是否需要电话回复",
  15512. " $1.BackKind = $5; //反馈类型",
  15513. " $1.ReplyContent = $6; //后台回复内容",
  15514. " $1.BackStatus = $7; //回复状态",
  15515. "}"
  15516. ]
  15517. },
  15518. "获取反馈信息数量": {
  15519. "prefix": "ym-db-UserBack-FindAndCount",
  15520. "body": [
  15521. "int $1 = db.UserBack.Count(m => $2);",
  15522. ]
  15523. },
  15524. "添加反馈信息": {
  15525. "prefix": "ym-db-UserBack-Create",
  15526. "body": [
  15527. "db.UserBack.Add(new UserBack()",
  15528. "{",
  15529. " CreateDate = DateTime.Now,",
  15530. " UpdateDate = DateTime.Now,",
  15531. " UserId = $1, //创客",
  15532. " Content = $2, //回复内容",
  15533. " IsPhoneCallBack = $3, //是否需要电话回复",
  15534. " BackKind = $4, //反馈类型",
  15535. " ReplyContent = $5, //后台回复内容",
  15536. " BackStatus = $6, //回复状态",
  15537. "});"
  15538. ]
  15539. },"删除某个反馈信息": {
  15540. "prefix": "ym-db-UserBack-Delete",
  15541. "body": [
  15542. "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
  15543. "if ($1 != null)",
  15544. "{",
  15545. " db.UserBack.Remove($1);",
  15546. "}"
  15547. ]
  15548. },
  15549. "查询反馈类型列表": {
  15550. "prefix": "ym-db-UserBackKind-Find",
  15551. "body": [
  15552. "List<UserBackKind> $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15553. "foreach (UserBackKind $3 in $1)",
  15554. "{",
  15555. "}"
  15556. ]
  15557. },
  15558. "查询反馈类型列表,并取值": {
  15559. "prefix": "ym-db-UserBackKind-FindWithData",
  15560. "body": [
  15561. "List<UserBackKind> $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15562. "foreach (UserBackKind $3 in $1)",
  15563. "{",
  15564. " string Name = $3.Name; //名称",
  15565. "}"
  15566. ]
  15567. },
  15568. "查询反馈类型": {
  15569. "prefix": "ym-db-UserBackKind-Exist",
  15570. "body": [
  15571. "bool $1 = db.UserBackKind.Any(m => m.Id == $2);",
  15572. ]
  15573. },
  15574. "查询某个反馈类型,并取值": {
  15575. "prefix": "ym-db-UserBackKind-FindByPrimaryKey",
  15576. "body": [
  15577. "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
  15578. "if ($1 != null)",
  15579. "{",
  15580. " string Name = $1.Name; //名称",
  15581. "}"
  15582. ]
  15583. },
  15584. "查询某个反馈类型,并赋值": {
  15585. "prefix": "ym-db-UserBackKind-Update",
  15586. "body": [
  15587. "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
  15588. "if ($1 != null)",
  15589. "{",
  15590. " $1.Name = $2; //名称",
  15591. "}"
  15592. ]
  15593. },
  15594. "获取反馈类型数量": {
  15595. "prefix": "ym-db-UserBackKind-FindAndCount",
  15596. "body": [
  15597. "int $1 = db.UserBackKind.Count(m => $2);",
  15598. ]
  15599. },
  15600. "添加反馈类型": {
  15601. "prefix": "ym-db-UserBackKind-Create",
  15602. "body": [
  15603. "db.UserBackKind.Add(new UserBackKind()",
  15604. "{",
  15605. " CreateDate = DateTime.Now,",
  15606. " UpdateDate = DateTime.Now,",
  15607. " Name = $1, //名称",
  15608. "});"
  15609. ]
  15610. },"删除某个反馈类型": {
  15611. "prefix": "ym-db-UserBackKind-Delete",
  15612. "body": [
  15613. "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
  15614. "if ($1 != null)",
  15615. "{",
  15616. " db.UserBackKind.Remove($1);",
  15617. "}"
  15618. ]
  15619. },
  15620. "查询创客收益排行列表": {
  15621. "prefix": "ym-db-UserBalanceTop-Find",
  15622. "body": [
  15623. "List<UserBalanceTop> $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15624. "foreach (UserBalanceTop $3 in $1)",
  15625. "{",
  15626. "}"
  15627. ]
  15628. },
  15629. "查询创客收益排行列表,并取值": {
  15630. "prefix": "ym-db-UserBalanceTop-FindWithData",
  15631. "body": [
  15632. "List<UserBalanceTop> $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15633. "foreach (UserBalanceTop $3 in $1)",
  15634. "{",
  15635. " int UserId = $3.UserId; //创客",
  15636. " decimal Balance = $3.Balance; //收益金额",
  15637. " string StatDate = $3.StatDate; //统计日",
  15638. " string StatMonth = $3.StatMonth; //统计月",
  15639. "}"
  15640. ]
  15641. },
  15642. "查询创客收益排行": {
  15643. "prefix": "ym-db-UserBalanceTop-Exist",
  15644. "body": [
  15645. "bool $1 = db.UserBalanceTop.Any(m => m.Id == $2);",
  15646. ]
  15647. },
  15648. "查询某个创客收益排行,并取值": {
  15649. "prefix": "ym-db-UserBalanceTop-FindByPrimaryKey",
  15650. "body": [
  15651. "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
  15652. "if ($1 != null)",
  15653. "{",
  15654. " int UserId = $1.UserId; //创客",
  15655. " decimal Balance = $1.Balance; //收益金额",
  15656. " string StatDate = $1.StatDate; //统计日",
  15657. " string StatMonth = $1.StatMonth; //统计月",
  15658. "}"
  15659. ]
  15660. },
  15661. "查询某个创客收益排行,并赋值": {
  15662. "prefix": "ym-db-UserBalanceTop-Update",
  15663. "body": [
  15664. "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
  15665. "if ($1 != null)",
  15666. "{",
  15667. " $1.UserId = $2; //创客",
  15668. " $1.Balance = $3; //收益金额",
  15669. " $1.StatDate = $4; //统计日",
  15670. " $1.StatMonth = $5; //统计月",
  15671. "}"
  15672. ]
  15673. },
  15674. "获取创客收益排行数量": {
  15675. "prefix": "ym-db-UserBalanceTop-FindAndCount",
  15676. "body": [
  15677. "int $1 = db.UserBalanceTop.Count(m => $2);",
  15678. ]
  15679. },
  15680. "添加创客收益排行": {
  15681. "prefix": "ym-db-UserBalanceTop-Create",
  15682. "body": [
  15683. "db.UserBalanceTop.Add(new UserBalanceTop()",
  15684. "{",
  15685. " CreateDate = DateTime.Now,",
  15686. " UpdateDate = DateTime.Now,",
  15687. " UserId = $1, //创客",
  15688. " Balance = $2, //收益金额",
  15689. " StatDate = $3, //统计日",
  15690. " StatMonth = $4, //统计月",
  15691. "});"
  15692. ]
  15693. },"删除某个创客收益排行": {
  15694. "prefix": "ym-db-UserBalanceTop-Delete",
  15695. "body": [
  15696. "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
  15697. "if ($1 != null)",
  15698. "{",
  15699. " db.UserBalanceTop.Remove($1);",
  15700. "}"
  15701. ]
  15702. },
  15703. "查询创客购物车列表": {
  15704. "prefix": "ym-db-UserCar-Find",
  15705. "body": [
  15706. "List<UserCar> $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15707. "foreach (UserCar $3 in $1)",
  15708. "{",
  15709. "}"
  15710. ]
  15711. },
  15712. "查询创客购物车列表,并取值": {
  15713. "prefix": "ym-db-UserCar-FindWithData",
  15714. "body": [
  15715. "List<UserCar> $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15716. "foreach (UserCar $3 in $1)",
  15717. "{",
  15718. " int UserId = $3.UserId; //创客Id",
  15719. " int ProductId = $3.ProductId; //商品Id",
  15720. " int BuyCount = $3.BuyCount; //购买数量",
  15721. " int MerchantId = $3.MerchantId; //商家Id",
  15722. " int NormId = $3.NormId; //规格Id",
  15723. "}"
  15724. ]
  15725. },
  15726. "查询创客购物车": {
  15727. "prefix": "ym-db-UserCar-Exist",
  15728. "body": [
  15729. "bool $1 = db.UserCar.Any(m => m.Id == $2);",
  15730. ]
  15731. },
  15732. "查询某个创客购物车,并取值": {
  15733. "prefix": "ym-db-UserCar-FindByPrimaryKey",
  15734. "body": [
  15735. "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
  15736. "if ($1 != null)",
  15737. "{",
  15738. " int UserId = $1.UserId; //创客Id",
  15739. " int ProductId = $1.ProductId; //商品Id",
  15740. " int BuyCount = $1.BuyCount; //购买数量",
  15741. " int MerchantId = $1.MerchantId; //商家Id",
  15742. " int NormId = $1.NormId; //规格Id",
  15743. "}"
  15744. ]
  15745. },
  15746. "查询某个创客购物车,并赋值": {
  15747. "prefix": "ym-db-UserCar-Update",
  15748. "body": [
  15749. "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
  15750. "if ($1 != null)",
  15751. "{",
  15752. " $1.UserId = $2; //创客Id",
  15753. " $1.ProductId = $3; //商品Id",
  15754. " $1.BuyCount = $4; //购买数量",
  15755. " $1.MerchantId = $5; //商家Id",
  15756. " $1.NormId = $6; //规格Id",
  15757. "}"
  15758. ]
  15759. },
  15760. "获取创客购物车数量": {
  15761. "prefix": "ym-db-UserCar-FindAndCount",
  15762. "body": [
  15763. "int $1 = db.UserCar.Count(m => $2);",
  15764. ]
  15765. },
  15766. "添加创客购物车": {
  15767. "prefix": "ym-db-UserCar-Create",
  15768. "body": [
  15769. "db.UserCar.Add(new UserCar()",
  15770. "{",
  15771. " CreateDate = DateTime.Now,",
  15772. " UpdateDate = DateTime.Now,",
  15773. " UserId = $1, //创客Id",
  15774. " ProductId = $2, //商品Id",
  15775. " BuyCount = $3, //购买数量",
  15776. " MerchantId = $4, //商家Id",
  15777. " NormId = $5, //规格Id",
  15778. "});"
  15779. ]
  15780. },"删除某个创客购物车": {
  15781. "prefix": "ym-db-UserCar-Delete",
  15782. "body": [
  15783. "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
  15784. "if ($1 != null)",
  15785. "{",
  15786. " db.UserCar.Remove($1);",
  15787. "}"
  15788. ]
  15789. },
  15790. "查询会员卡列表": {
  15791. "prefix": "ym-db-UserCardForWeChat-Find",
  15792. "body": [
  15793. "List<UserCardForWeChat> $1 = db.UserCardForWeChat.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15794. "foreach (UserCardForWeChat $3 in $1)",
  15795. "{",
  15796. "}"
  15797. ]
  15798. },
  15799. "查询会员卡列表,并取值": {
  15800. "prefix": "ym-db-UserCardForWeChat-FindWithData",
  15801. "body": [
  15802. "List<UserCardForWeChat> $1 = db.UserCardForWeChat.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15803. "foreach (UserCardForWeChat $3 in $1)",
  15804. "{",
  15805. " string CardType = $3.CardType; //会员卡类型",
  15806. " string LogoUrl = $3.LogoUrl; //商户logo",
  15807. " string CodeType = $3.CodeType; //展示类型",
  15808. " string BrandName = $3.BrandName; //商户名字",
  15809. " string Title = $3.Title; //卡券名",
  15810. " string Color = $3.Color; //券颜色",
  15811. " string Notice = $3.Notice; //卡券使用提醒",
  15812. " string Description = $3.Description; //卡券使用说明",
  15813. " int Quantity = $3.Quantity; //卡券库存的数量",
  15814. " string DateType = $3.DateType; //使用时间类型",
  15815. " string Sku = $3.Sku; //商品信息",
  15816. " string Prerogative = $3.Prerogative; //会员卡特权说明",
  15817. " ulong SupplyBonus = $3.SupplyBonus; //显示积分",
  15818. " ulong SupplyBalance = $3.SupplyBalance; //是否支持储值",
  15819. " string EnterName = $3.EnterName; //入口名称",
  15820. " string EnterTips = $3.EnterTips; //入口右侧提示语",
  15821. " string EnterUrl = $3.EnterUrl; //入口跳转链接",
  15822. " string CardId = $3.CardId; //卡券ID",
  15823. " int MerchantId = $3.MerchantId; //商户",
  15824. "}"
  15825. ]
  15826. },
  15827. "查询会员卡": {
  15828. "prefix": "ym-db-UserCardForWeChat-Exist",
  15829. "body": [
  15830. "bool $1 = db.UserCardForWeChat.Any(m => m.Id == $2);",
  15831. ]
  15832. },
  15833. "查询某个会员卡,并取值": {
  15834. "prefix": "ym-db-UserCardForWeChat-FindByPrimaryKey",
  15835. "body": [
  15836. "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);",
  15837. "if ($1 != null)",
  15838. "{",
  15839. " string CardType = $1.CardType; //会员卡类型",
  15840. " string LogoUrl = $1.LogoUrl; //商户logo",
  15841. " string CodeType = $1.CodeType; //展示类型",
  15842. " string BrandName = $1.BrandName; //商户名字",
  15843. " string Title = $1.Title; //卡券名",
  15844. " string Color = $1.Color; //券颜色",
  15845. " string Notice = $1.Notice; //卡券使用提醒",
  15846. " string Description = $1.Description; //卡券使用说明",
  15847. " int Quantity = $1.Quantity; //卡券库存的数量",
  15848. " string DateType = $1.DateType; //使用时间类型",
  15849. " string Sku = $1.Sku; //商品信息",
  15850. " string Prerogative = $1.Prerogative; //会员卡特权说明",
  15851. " ulong SupplyBonus = $1.SupplyBonus; //显示积分",
  15852. " ulong SupplyBalance = $1.SupplyBalance; //是否支持储值",
  15853. " string EnterName = $1.EnterName; //入口名称",
  15854. " string EnterTips = $1.EnterTips; //入口右侧提示语",
  15855. " string EnterUrl = $1.EnterUrl; //入口跳转链接",
  15856. " string CardId = $1.CardId; //卡券ID",
  15857. " int MerchantId = $1.MerchantId; //商户",
  15858. "}"
  15859. ]
  15860. },
  15861. "查询某个会员卡,并赋值": {
  15862. "prefix": "ym-db-UserCardForWeChat-Update",
  15863. "body": [
  15864. "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);",
  15865. "if ($1 != null)",
  15866. "{",
  15867. " $1.CardType = $2; //会员卡类型",
  15868. " $1.LogoUrl = $3; //商户logo",
  15869. " $1.CodeType = $4; //展示类型",
  15870. " $1.BrandName = $5; //商户名字",
  15871. " $1.Title = $6; //卡券名",
  15872. " $1.Color = $7; //券颜色",
  15873. " $1.Notice = $8; //卡券使用提醒",
  15874. " $1.Description = $9; //卡券使用说明",
  15875. " $1.Quantity = $10; //卡券库存的数量",
  15876. " $1.DateType = $11; //使用时间类型",
  15877. " $1.Sku = $12; //商品信息",
  15878. " $1.Prerogative = $13; //会员卡特权说明",
  15879. " $1.SupplyBonus = $14; //显示积分",
  15880. " $1.SupplyBalance = $15; //是否支持储值",
  15881. " $1.EnterName = $16; //入口名称",
  15882. " $1.EnterTips = $17; //入口右侧提示语",
  15883. " $1.EnterUrl = $18; //入口跳转链接",
  15884. " $1.CardId = $19; //卡券ID",
  15885. " $1.MerchantId = $20; //商户",
  15886. "}"
  15887. ]
  15888. },
  15889. "获取会员卡数量": {
  15890. "prefix": "ym-db-UserCardForWeChat-FindAndCount",
  15891. "body": [
  15892. "int $1 = db.UserCardForWeChat.Count(m => $2);",
  15893. ]
  15894. },
  15895. "添加会员卡": {
  15896. "prefix": "ym-db-UserCardForWeChat-Create",
  15897. "body": [
  15898. "db.UserCardForWeChat.Add(new UserCardForWeChat()",
  15899. "{",
  15900. " CreateDate = DateTime.Now,",
  15901. " UpdateDate = DateTime.Now,",
  15902. " CardType = $1, //会员卡类型",
  15903. " LogoUrl = $2, //商户logo",
  15904. " CodeType = $3, //展示类型",
  15905. " BrandName = $4, //商户名字",
  15906. " Title = $5, //卡券名",
  15907. " Color = $6, //券颜色",
  15908. " Notice = $7, //卡券使用提醒",
  15909. " Description = $8, //卡券使用说明",
  15910. " Quantity = $9, //卡券库存的数量",
  15911. " DateType = $10, //使用时间类型",
  15912. " Sku = $11, //商品信息",
  15913. " Prerogative = $12, //会员卡特权说明",
  15914. " SupplyBonus = $13, //显示积分",
  15915. " SupplyBalance = $14, //是否支持储值",
  15916. " EnterName = $15, //入口名称",
  15917. " EnterTips = $16, //入口右侧提示语",
  15918. " EnterUrl = $17, //入口跳转链接",
  15919. " CardId = $18, //卡券ID",
  15920. " MerchantId = $19, //商户",
  15921. "});"
  15922. ]
  15923. },"删除某个会员卡": {
  15924. "prefix": "ym-db-UserCardForWeChat-Delete",
  15925. "body": [
  15926. "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);",
  15927. "if ($1 != null)",
  15928. "{",
  15929. " db.UserCardForWeChat.Remove($1);",
  15930. "}"
  15931. ]
  15932. },
  15933. "查询会员卡领取记录列表": {
  15934. "prefix": "ym-db-UserCardRecord-Find",
  15935. "body": [
  15936. "List<UserCardRecord> $1 = db.UserCardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15937. "foreach (UserCardRecord $3 in $1)",
  15938. "{",
  15939. "}"
  15940. ]
  15941. },
  15942. "查询会员卡领取记录列表,并取值": {
  15943. "prefix": "ym-db-UserCardRecord-FindWithData",
  15944. "body": [
  15945. "List<UserCardRecord> $1 = db.UserCardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  15946. "foreach (UserCardRecord $3 in $1)",
  15947. "{",
  15948. " int ConsumerId = $3.ConsumerId; //消费者",
  15949. " int CardId = $3.CardId; //会员卡",
  15950. " int MerchantId = $3.MerchantId; //商户",
  15951. "}"
  15952. ]
  15953. },
  15954. "查询会员卡领取记录": {
  15955. "prefix": "ym-db-UserCardRecord-Exist",
  15956. "body": [
  15957. "bool $1 = db.UserCardRecord.Any(m => m.Id == $2);",
  15958. ]
  15959. },
  15960. "查询某个会员卡领取记录,并取值": {
  15961. "prefix": "ym-db-UserCardRecord-FindByPrimaryKey",
  15962. "body": [
  15963. "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);",
  15964. "if ($1 != null)",
  15965. "{",
  15966. " int ConsumerId = $1.ConsumerId; //消费者",
  15967. " int CardId = $1.CardId; //会员卡",
  15968. " int MerchantId = $1.MerchantId; //商户",
  15969. "}"
  15970. ]
  15971. },
  15972. "查询某个会员卡领取记录,并赋值": {
  15973. "prefix": "ym-db-UserCardRecord-Update",
  15974. "body": [
  15975. "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);",
  15976. "if ($1 != null)",
  15977. "{",
  15978. " $1.ConsumerId = $2; //消费者",
  15979. " $1.CardId = $3; //会员卡",
  15980. " $1.MerchantId = $4; //商户",
  15981. "}"
  15982. ]
  15983. },
  15984. "获取会员卡领取记录数量": {
  15985. "prefix": "ym-db-UserCardRecord-FindAndCount",
  15986. "body": [
  15987. "int $1 = db.UserCardRecord.Count(m => $2);",
  15988. ]
  15989. },
  15990. "添加会员卡领取记录": {
  15991. "prefix": "ym-db-UserCardRecord-Create",
  15992. "body": [
  15993. "db.UserCardRecord.Add(new UserCardRecord()",
  15994. "{",
  15995. " CreateDate = DateTime.Now,",
  15996. " UpdateDate = DateTime.Now,",
  15997. " ConsumerId = $1, //消费者",
  15998. " CardId = $2, //会员卡",
  15999. " MerchantId = $3, //商户",
  16000. "});"
  16001. ]
  16002. },"删除某个会员卡领取记录": {
  16003. "prefix": "ym-db-UserCardRecord-Delete",
  16004. "body": [
  16005. "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);",
  16006. "if ($1 != null)",
  16007. "{",
  16008. " db.UserCardRecord.Remove($1);",
  16009. "}"
  16010. ]
  16011. },
  16012. "查询提现记录列表": {
  16013. "prefix": "ym-db-UserCashRecord-Find",
  16014. "body": [
  16015. "List<UserCashRecord> $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16016. "foreach (UserCashRecord $3 in $1)",
  16017. "{",
  16018. "}"
  16019. ]
  16020. },
  16021. "查询提现记录列表,并取值": {
  16022. "prefix": "ym-db-UserCashRecord-FindWithData",
  16023. "body": [
  16024. "List<UserCashRecord> $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16025. "foreach (UserCashRecord $3 in $1)",
  16026. "{",
  16027. " string CashOrderNo = $3.CashOrderNo; //申请提现单号",
  16028. " int UserId = $3.UserId; //创客",
  16029. " string IdCardNo = $3.IdCardNo; //身份证号",
  16030. " string SettleBankCardNo = $3.SettleBankCardNo; //提现卡号",
  16031. " string SettleBankName = $3.SettleBankName; //银行名称",
  16032. " int TradeType = $3.TradeType; //交易类型",
  16033. " string PayTradeNo = $3.PayTradeNo; //提现服务交易流水号",
  16034. " string ChannelCode = $3.ChannelCode; //支付渠道编号",
  16035. " string ChanelName = $3.ChanelName; //支付渠道名称",
  16036. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  16037. " decimal ActualTradeAmount = $3.ActualTradeAmount; //实际交易金额",
  16038. " decimal TradeFee = $3.TradeFee; //交易手续费",
  16039. " decimal ManageFee = $3.ManageFee; //扣税金额",
  16040. " string ReqData = $3.ReqData; //请求数据",
  16041. " string ResData = $3.ResData; //响应数据",
  16042. " string ReturnCode = $3.ReturnCode; //返回编码",
  16043. " string ReturnMsg = $3.ReturnMsg; //返回信息",
  16044. " DateTime PaymentDate = $3.PaymentDate; //支付时间",
  16045. " string Ip = $3.Ip; //IP地址",
  16046. " string MediaSource = $3.MediaSource; //媒体来源",
  16047. " string Remark = $3.Remark; //备注",
  16048. "}"
  16049. ]
  16050. },
  16051. "查询提现记录": {
  16052. "prefix": "ym-db-UserCashRecord-Exist",
  16053. "body": [
  16054. "bool $1 = db.UserCashRecord.Any(m => m.Id == $2);",
  16055. ]
  16056. },
  16057. "查询某个提现记录,并取值": {
  16058. "prefix": "ym-db-UserCashRecord-FindByPrimaryKey",
  16059. "body": [
  16060. "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
  16061. "if ($1 != null)",
  16062. "{",
  16063. " string CashOrderNo = $1.CashOrderNo; //申请提现单号",
  16064. " int UserId = $1.UserId; //创客",
  16065. " string IdCardNo = $1.IdCardNo; //身份证号",
  16066. " string SettleBankCardNo = $1.SettleBankCardNo; //提现卡号",
  16067. " string SettleBankName = $1.SettleBankName; //银行名称",
  16068. " int TradeType = $1.TradeType; //交易类型",
  16069. " string PayTradeNo = $1.PayTradeNo; //提现服务交易流水号",
  16070. " string ChannelCode = $1.ChannelCode; //支付渠道编号",
  16071. " string ChanelName = $1.ChanelName; //支付渠道名称",
  16072. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  16073. " decimal ActualTradeAmount = $1.ActualTradeAmount; //实际交易金额",
  16074. " decimal TradeFee = $1.TradeFee; //交易手续费",
  16075. " decimal ManageFee = $1.ManageFee; //扣税金额",
  16076. " string ReqData = $1.ReqData; //请求数据",
  16077. " string ResData = $1.ResData; //响应数据",
  16078. " string ReturnCode = $1.ReturnCode; //返回编码",
  16079. " string ReturnMsg = $1.ReturnMsg; //返回信息",
  16080. " DateTime PaymentDate = $1.PaymentDate; //支付时间",
  16081. " string Ip = $1.Ip; //IP地址",
  16082. " string MediaSource = $1.MediaSource; //媒体来源",
  16083. " string Remark = $1.Remark; //备注",
  16084. "}"
  16085. ]
  16086. },
  16087. "查询某个提现记录,并赋值": {
  16088. "prefix": "ym-db-UserCashRecord-Update",
  16089. "body": [
  16090. "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
  16091. "if ($1 != null)",
  16092. "{",
  16093. " $1.CashOrderNo = $2; //申请提现单号",
  16094. " $1.UserId = $3; //创客",
  16095. " $1.IdCardNo = $4; //身份证号",
  16096. " $1.SettleBankCardNo = $5; //提现卡号",
  16097. " $1.SettleBankName = $6; //银行名称",
  16098. " $1.TradeType = $7; //交易类型",
  16099. " $1.PayTradeNo = $8; //提现服务交易流水号",
  16100. " $1.ChannelCode = $9; //支付渠道编号",
  16101. " $1.ChanelName = $10; //支付渠道名称",
  16102. " $1.TradeAmount = $11; //交易金额",
  16103. " $1.ActualTradeAmount = $12; //实际交易金额",
  16104. " $1.TradeFee = $13; //交易手续费",
  16105. " $1.ManageFee = $14; //扣税金额",
  16106. " $1.ReqData = $15; //请求数据",
  16107. " $1.ResData = $16; //响应数据",
  16108. " $1.ReturnCode = $17; //返回编码",
  16109. " $1.ReturnMsg = $18; //返回信息",
  16110. " $1.PaymentDate = $19; //支付时间",
  16111. " $1.Ip = $20; //IP地址",
  16112. " $1.MediaSource = $21; //媒体来源",
  16113. " $1.Remark = $22; //备注",
  16114. "}"
  16115. ]
  16116. },
  16117. "获取提现记录数量": {
  16118. "prefix": "ym-db-UserCashRecord-FindAndCount",
  16119. "body": [
  16120. "int $1 = db.UserCashRecord.Count(m => $2);",
  16121. ]
  16122. },
  16123. "添加提现记录": {
  16124. "prefix": "ym-db-UserCashRecord-Create",
  16125. "body": [
  16126. "db.UserCashRecord.Add(new UserCashRecord()",
  16127. "{",
  16128. " CreateDate = DateTime.Now,",
  16129. " UpdateDate = DateTime.Now,",
  16130. " CashOrderNo = $1, //申请提现单号",
  16131. " UserId = $2, //创客",
  16132. " IdCardNo = $3, //身份证号",
  16133. " SettleBankCardNo = $4, //提现卡号",
  16134. " SettleBankName = $5, //银行名称",
  16135. " TradeType = $6, //交易类型",
  16136. " PayTradeNo = $7, //提现服务交易流水号",
  16137. " ChannelCode = $8, //支付渠道编号",
  16138. " ChanelName = $9, //支付渠道名称",
  16139. " TradeAmount = $10, //交易金额",
  16140. " ActualTradeAmount = $11, //实际交易金额",
  16141. " TradeFee = $12, //交易手续费",
  16142. " ManageFee = $13, //扣税金额",
  16143. " ReqData = $14, //请求数据",
  16144. " ResData = $15, //响应数据",
  16145. " ReturnCode = $16, //返回编码",
  16146. " ReturnMsg = $17, //返回信息",
  16147. " PaymentDate = $18, //支付时间",
  16148. " Ip = $19, //IP地址",
  16149. " MediaSource = $20, //媒体来源",
  16150. " Remark = $21, //备注",
  16151. "});"
  16152. ]
  16153. },"删除某个提现记录": {
  16154. "prefix": "ym-db-UserCashRecord-Delete",
  16155. "body": [
  16156. "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
  16157. "if ($1 != null)",
  16158. "{",
  16159. " db.UserCashRecord.Remove($1);",
  16160. "}"
  16161. ]
  16162. },
  16163. "查询个人中心常用工具列表": {
  16164. "prefix": "ym-db-UserCenterIconList-Find",
  16165. "body": [
  16166. "List<UserCenterIconList> $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16167. "foreach (UserCenterIconList $3 in $1)",
  16168. "{",
  16169. "}"
  16170. ]
  16171. },
  16172. "查询个人中心常用工具列表,并取值": {
  16173. "prefix": "ym-db-UserCenterIconList-FindWithData",
  16174. "body": [
  16175. "List<UserCenterIconList> $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16176. "foreach (UserCenterIconList $3 in $1)",
  16177. "{",
  16178. " string Icon = $3.Icon; //图标",
  16179. " string Title = $3.Title; //标题",
  16180. " string Url = $3.Url; //跳转地址",
  16181. "}"
  16182. ]
  16183. },
  16184. "查询个人中心常用工具": {
  16185. "prefix": "ym-db-UserCenterIconList-Exist",
  16186. "body": [
  16187. "bool $1 = db.UserCenterIconList.Any(m => m.Id == $2);",
  16188. ]
  16189. },
  16190. "查询某个个人中心常用工具,并取值": {
  16191. "prefix": "ym-db-UserCenterIconList-FindByPrimaryKey",
  16192. "body": [
  16193. "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
  16194. "if ($1 != null)",
  16195. "{",
  16196. " string Icon = $1.Icon; //图标",
  16197. " string Title = $1.Title; //标题",
  16198. " string Url = $1.Url; //跳转地址",
  16199. "}"
  16200. ]
  16201. },
  16202. "查询某个个人中心常用工具,并赋值": {
  16203. "prefix": "ym-db-UserCenterIconList-Update",
  16204. "body": [
  16205. "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
  16206. "if ($1 != null)",
  16207. "{",
  16208. " $1.Icon = $2; //图标",
  16209. " $1.Title = $3; //标题",
  16210. " $1.Url = $4; //跳转地址",
  16211. "}"
  16212. ]
  16213. },
  16214. "获取个人中心常用工具数量": {
  16215. "prefix": "ym-db-UserCenterIconList-FindAndCount",
  16216. "body": [
  16217. "int $1 = db.UserCenterIconList.Count(m => $2);",
  16218. ]
  16219. },
  16220. "添加个人中心常用工具": {
  16221. "prefix": "ym-db-UserCenterIconList-Create",
  16222. "body": [
  16223. "db.UserCenterIconList.Add(new UserCenterIconList()",
  16224. "{",
  16225. " CreateDate = DateTime.Now,",
  16226. " UpdateDate = DateTime.Now,",
  16227. " Icon = $1, //图标",
  16228. " Title = $2, //标题",
  16229. " Url = $3, //跳转地址",
  16230. "});"
  16231. ]
  16232. },"删除某个个人中心常用工具": {
  16233. "prefix": "ym-db-UserCenterIconList-Delete",
  16234. "body": [
  16235. "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
  16236. "if ($1 != null)",
  16237. "{",
  16238. " db.UserCenterIconList.Remove($1);",
  16239. "}"
  16240. ]
  16241. },
  16242. "查询收藏列表": {
  16243. "prefix": "ym-db-UserCollection-Find",
  16244. "body": [
  16245. "List<UserCollection> $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16246. "foreach (UserCollection $3 in $1)",
  16247. "{",
  16248. "}"
  16249. ]
  16250. },
  16251. "查询收藏列表,并取值": {
  16252. "prefix": "ym-db-UserCollection-FindWithData",
  16253. "body": [
  16254. "List<UserCollection> $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16255. "foreach (UserCollection $3 in $1)",
  16256. "{",
  16257. " int DataId = $3.DataId; //数据Id",
  16258. " int Kind = $3.Kind; //类别",
  16259. " int UserId = $3.UserId; //创客Id",
  16260. "}"
  16261. ]
  16262. },
  16263. "查询收藏": {
  16264. "prefix": "ym-db-UserCollection-Exist",
  16265. "body": [
  16266. "bool $1 = db.UserCollection.Any(m => m.Id == $2);",
  16267. ]
  16268. },
  16269. "查询某个收藏,并取值": {
  16270. "prefix": "ym-db-UserCollection-FindByPrimaryKey",
  16271. "body": [
  16272. "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
  16273. "if ($1 != null)",
  16274. "{",
  16275. " int DataId = $1.DataId; //数据Id",
  16276. " int Kind = $1.Kind; //类别",
  16277. " int UserId = $1.UserId; //创客Id",
  16278. "}"
  16279. ]
  16280. },
  16281. "查询某个收藏,并赋值": {
  16282. "prefix": "ym-db-UserCollection-Update",
  16283. "body": [
  16284. "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
  16285. "if ($1 != null)",
  16286. "{",
  16287. " $1.DataId = $2; //数据Id",
  16288. " $1.Kind = $3; //类别",
  16289. " $1.UserId = $4; //创客Id",
  16290. "}"
  16291. ]
  16292. },
  16293. "获取收藏数量": {
  16294. "prefix": "ym-db-UserCollection-FindAndCount",
  16295. "body": [
  16296. "int $1 = db.UserCollection.Count(m => $2);",
  16297. ]
  16298. },
  16299. "添加收藏": {
  16300. "prefix": "ym-db-UserCollection-Create",
  16301. "body": [
  16302. "db.UserCollection.Add(new UserCollection()",
  16303. "{",
  16304. " CreateDate = DateTime.Now,",
  16305. " UpdateDate = DateTime.Now,",
  16306. " DataId = $1, //数据Id",
  16307. " Kind = $2, //类别",
  16308. " UserId = $3, //创客Id",
  16309. "});"
  16310. ]
  16311. },"删除某个收藏": {
  16312. "prefix": "ym-db-UserCollection-Delete",
  16313. "body": [
  16314. "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
  16315. "if ($1 != null)",
  16316. "{",
  16317. " db.UserCollection.Remove($1);",
  16318. "}"
  16319. ]
  16320. },
  16321. "查询创客数据列表": {
  16322. "prefix": "ym-db-UserData-Find",
  16323. "body": [
  16324. "List<UserData> $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16325. "foreach (UserData $3 in $1)",
  16326. "{",
  16327. "}"
  16328. ]
  16329. },
  16330. "查询创客数据列表,并取值": {
  16331. "prefix": "ym-db-UserData-FindWithData",
  16332. "body": [
  16333. "List<UserData> $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16334. "foreach (UserData $3 in $1)",
  16335. "{",
  16336. " int UserId = $3.UserId; //创客Id",
  16337. " int GrowthValue = $3.GrowthValue; //成长值",
  16338. " decimal CurMoney = $3.CurMoney; //当前余额",
  16339. " decimal Integral = $3.Integral; //当前积分",
  16340. " decimal TotalOrderMoney = $3.TotalOrderMoney; //消费总额",
  16341. " decimal TotalUseIntegral = $3.TotalUseIntegral; //消耗积分总额",
  16342. " int FollowCount = $3.FollowCount; //关注数",
  16343. " int FansCount = $3.FansCount; //粉丝数",
  16344. " int CollectionCount = $3.CollectionCount; //收藏数",
  16345. " decimal Coupons = $3.Coupons; //卡券包",
  16346. " int ToPayOrderCount = $3.ToPayOrderCount; //待付款",
  16347. " int ToSendOrderCount = $3.ToSendOrderCount; //待发货",
  16348. " int ToReceiveOrderCount = $3.ToReceiveOrderCount; //待收货",
  16349. " int ToCommentOrderCount = $3.ToCommentOrderCount; //待评价",
  16350. " int ToRefundOrderCount = $3.ToRefundOrderCount; //退款售后",
  16351. " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额",
  16352. " decimal SettleAmount = $3.SettleAmount; //最低结算金额",
  16353. " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额",
  16354. " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励",
  16355. " int MachineCount = $3.MachineCount; //赠机数量",
  16356. "}"
  16357. ]
  16358. },
  16359. "查询创客数据": {
  16360. "prefix": "ym-db-UserData-Exist",
  16361. "body": [
  16362. "bool $1 = db.UserData.Any(m => m.UserId == $2);",
  16363. ]
  16364. },
  16365. "查询某个创客数据,并取值": {
  16366. "prefix": "ym-db-UserData-FindByPrimaryKey",
  16367. "body": [
  16368. "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
  16369. "if ($1 != null)",
  16370. "{",
  16371. " int UserId = $1.UserId; //创客Id",
  16372. " int GrowthValue = $1.GrowthValue; //成长值",
  16373. " decimal CurMoney = $1.CurMoney; //当前余额",
  16374. " decimal Integral = $1.Integral; //当前积分",
  16375. " decimal TotalOrderMoney = $1.TotalOrderMoney; //消费总额",
  16376. " decimal TotalUseIntegral = $1.TotalUseIntegral; //消耗积分总额",
  16377. " int FollowCount = $1.FollowCount; //关注数",
  16378. " int FansCount = $1.FansCount; //粉丝数",
  16379. " int CollectionCount = $1.CollectionCount; //收藏数",
  16380. " decimal Coupons = $1.Coupons; //卡券包",
  16381. " int ToPayOrderCount = $1.ToPayOrderCount; //待付款",
  16382. " int ToSendOrderCount = $1.ToSendOrderCount; //待发货",
  16383. " int ToReceiveOrderCount = $1.ToReceiveOrderCount; //待收货",
  16384. " int ToCommentOrderCount = $1.ToCommentOrderCount; //待评价",
  16385. " int ToRefundOrderCount = $1.ToRefundOrderCount; //退款售后",
  16386. " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额",
  16387. " decimal SettleAmount = $1.SettleAmount; //最低结算金额",
  16388. " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额",
  16389. " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励",
  16390. " int MachineCount = $1.MachineCount; //赠机数量",
  16391. "}"
  16392. ]
  16393. },
  16394. "查询某个创客数据,并赋值": {
  16395. "prefix": "ym-db-UserData-Update",
  16396. "body": [
  16397. "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
  16398. "if ($1 != null)",
  16399. "{",
  16400. " $1.UserId = $2; //创客Id",
  16401. " $1.GrowthValue = $3; //成长值",
  16402. " $1.CurMoney = $4; //当前余额",
  16403. " $1.Integral = $5; //当前积分",
  16404. " $1.TotalOrderMoney = $6; //消费总额",
  16405. " $1.TotalUseIntegral = $7; //消耗积分总额",
  16406. " $1.FollowCount = $8; //关注数",
  16407. " $1.FansCount = $9; //粉丝数",
  16408. " $1.CollectionCount = $10; //收藏数",
  16409. " $1.Coupons = $11; //卡券包",
  16410. " $1.ToPayOrderCount = $12; //待付款",
  16411. " $1.ToSendOrderCount = $13; //待发货",
  16412. " $1.ToReceiveOrderCount = $14; //待收货",
  16413. " $1.ToCommentOrderCount = $15; //待评价",
  16414. " $1.ToRefundOrderCount = $16; //退款售后",
  16415. " $1.ActiveRewardAmount = $17; //激活奖励金额",
  16416. " $1.SettleAmount = $18; //最低结算金额",
  16417. " $1.CashFreezeAmt = $19; //提现冻结金额",
  16418. " $1.ProfitRewardRate = $20; //分润奖励",
  16419. " $1.MachineCount = $21; //赠机数量",
  16420. "}"
  16421. ]
  16422. },
  16423. "获取创客数据数量": {
  16424. "prefix": "ym-db-UserData-FindAndCount",
  16425. "body": [
  16426. "int $1 = db.UserData.Count(m => $2);",
  16427. ]
  16428. },
  16429. "添加创客数据": {
  16430. "prefix": "ym-db-UserData-Create",
  16431. "body": [
  16432. "db.UserData.Add(new UserData()",
  16433. "{",
  16434. " CreateDate = DateTime.Now,",
  16435. " UpdateDate = DateTime.Now,",
  16436. " UserId = $1, //创客Id",
  16437. " GrowthValue = $2, //成长值",
  16438. " CurMoney = $3, //当前余额",
  16439. " Integral = $4, //当前积分",
  16440. " TotalOrderMoney = $5, //消费总额",
  16441. " TotalUseIntegral = $6, //消耗积分总额",
  16442. " FollowCount = $7, //关注数",
  16443. " FansCount = $8, //粉丝数",
  16444. " CollectionCount = $9, //收藏数",
  16445. " Coupons = $10, //卡券包",
  16446. " ToPayOrderCount = $11, //待付款",
  16447. " ToSendOrderCount = $12, //待发货",
  16448. " ToReceiveOrderCount = $13, //待收货",
  16449. " ToCommentOrderCount = $14, //待评价",
  16450. " ToRefundOrderCount = $15, //退款售后",
  16451. " ActiveRewardAmount = $16, //激活奖励金额",
  16452. " SettleAmount = $17, //最低结算金额",
  16453. " CashFreezeAmt = $18, //提现冻结金额",
  16454. " ProfitRewardRate = $19, //分润奖励",
  16455. " MachineCount = $20, //赠机数量",
  16456. "});"
  16457. ]
  16458. },"删除某个创客数据": {
  16459. "prefix": "ym-db-UserData-Delete",
  16460. "body": [
  16461. "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
  16462. "if ($1 != null)",
  16463. "{",
  16464. " db.UserData.Remove($1);",
  16465. "}"
  16466. ]
  16467. },
  16468. "查询创客详细信息列表": {
  16469. "prefix": "ym-db-UserDetail-Find",
  16470. "body": [
  16471. "List<UserDetail> $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16472. "foreach (UserDetail $3 in $1)",
  16473. "{",
  16474. "}"
  16475. ]
  16476. },
  16477. "查询创客详细信息列表,并取值": {
  16478. "prefix": "ym-db-UserDetail-FindWithData",
  16479. "body": [
  16480. "List<UserDetail> $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16481. "foreach (UserDetail $3 in $1)",
  16482. "{",
  16483. " int Id = $3.Id; //创客Id",
  16484. " DateTime Birthday = $3.Birthday; //出生日期",
  16485. " string PostalCode = $3.PostalCode; //邮编",
  16486. " string Email = $3.Email; //邮箱",
  16487. " int UserJob = $3.UserJob; //职业",
  16488. " string OfficePhone = $3.OfficePhone; //办公电话",
  16489. " string PrivatePhone = $3.PrivatePhone; //私人电话",
  16490. " DateTime ToShopDate = $3.ToShopDate; //到达时间",
  16491. " int EduLevel = $3.EduLevel; //教育程度",
  16492. " int FamilyIncome = $3.FamilyIncome; //家庭收入",
  16493. " int TrafficTool = $3.TrafficTool; //交通工具",
  16494. " DateTime CardExpireDate = $3.CardExpireDate; //卡有效期",
  16495. " int CardAddAddress = $3.CardAddAddress; //办卡地点",
  16496. " string Note = $3.Note; //备注",
  16497. " int AddMan = $3.AddMan; //登记创客",
  16498. " int UpdateMan = $3.UpdateMan; //更新人",
  16499. " string Interests = $3.Interests; //兴趣爱好",
  16500. "}"
  16501. ]
  16502. },
  16503. "查询创客详细信息": {
  16504. "prefix": "ym-db-UserDetail-Exist",
  16505. "body": [
  16506. "bool $1 = db.UserDetail.Any(m => m.Id == $2);",
  16507. ]
  16508. },
  16509. "查询某个创客详细信息,并取值": {
  16510. "prefix": "ym-db-UserDetail-FindByPrimaryKey",
  16511. "body": [
  16512. "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
  16513. "if ($1 != null)",
  16514. "{",
  16515. " int Id = $1.Id; //创客Id",
  16516. " DateTime Birthday = $1.Birthday; //出生日期",
  16517. " string PostalCode = $1.PostalCode; //邮编",
  16518. " string Email = $1.Email; //邮箱",
  16519. " int UserJob = $1.UserJob; //职业",
  16520. " string OfficePhone = $1.OfficePhone; //办公电话",
  16521. " string PrivatePhone = $1.PrivatePhone; //私人电话",
  16522. " DateTime ToShopDate = $1.ToShopDate; //到达时间",
  16523. " int EduLevel = $1.EduLevel; //教育程度",
  16524. " int FamilyIncome = $1.FamilyIncome; //家庭收入",
  16525. " int TrafficTool = $1.TrafficTool; //交通工具",
  16526. " DateTime CardExpireDate = $1.CardExpireDate; //卡有效期",
  16527. " int CardAddAddress = $1.CardAddAddress; //办卡地点",
  16528. " string Note = $1.Note; //备注",
  16529. " int AddMan = $1.AddMan; //登记创客",
  16530. " int UpdateMan = $1.UpdateMan; //更新人",
  16531. " string Interests = $1.Interests; //兴趣爱好",
  16532. "}"
  16533. ]
  16534. },
  16535. "查询某个创客详细信息,并赋值": {
  16536. "prefix": "ym-db-UserDetail-Update",
  16537. "body": [
  16538. "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
  16539. "if ($1 != null)",
  16540. "{",
  16541. " $1.Id = $2; //创客Id",
  16542. " $1.Birthday = $3; //出生日期",
  16543. " $1.PostalCode = $4; //邮编",
  16544. " $1.Email = $5; //邮箱",
  16545. " $1.UserJob = $6; //职业",
  16546. " $1.OfficePhone = $7; //办公电话",
  16547. " $1.PrivatePhone = $8; //私人电话",
  16548. " $1.ToShopDate = $9; //到达时间",
  16549. " $1.EduLevel = $10; //教育程度",
  16550. " $1.FamilyIncome = $11; //家庭收入",
  16551. " $1.TrafficTool = $12; //交通工具",
  16552. " $1.CardExpireDate = $13; //卡有效期",
  16553. " $1.CardAddAddress = $14; //办卡地点",
  16554. " $1.Note = $15; //备注",
  16555. " $1.AddMan = $16; //登记创客",
  16556. " $1.UpdateMan = $17; //更新人",
  16557. " $1.Interests = $18; //兴趣爱好",
  16558. "}"
  16559. ]
  16560. },
  16561. "获取创客详细信息数量": {
  16562. "prefix": "ym-db-UserDetail-FindAndCount",
  16563. "body": [
  16564. "int $1 = db.UserDetail.Count(m => $2);",
  16565. ]
  16566. },
  16567. "添加创客详细信息": {
  16568. "prefix": "ym-db-UserDetail-Create",
  16569. "body": [
  16570. "db.UserDetail.Add(new UserDetail()",
  16571. "{",
  16572. " CreateDate = DateTime.Now,",
  16573. " UpdateDate = DateTime.Now,",
  16574. " Id = $1, //创客Id",
  16575. " Birthday = $2, //出生日期",
  16576. " PostalCode = $3, //邮编",
  16577. " Email = $4, //邮箱",
  16578. " UserJob = $5, //职业",
  16579. " OfficePhone = $6, //办公电话",
  16580. " PrivatePhone = $7, //私人电话",
  16581. " ToShopDate = $8, //到达时间",
  16582. " EduLevel = $9, //教育程度",
  16583. " FamilyIncome = $10, //家庭收入",
  16584. " TrafficTool = $11, //交通工具",
  16585. " CardExpireDate = $12, //卡有效期",
  16586. " CardAddAddress = $13, //办卡地点",
  16587. " Note = $14, //备注",
  16588. " AddMan = $15, //登记创客",
  16589. " UpdateMan = $16, //更新人",
  16590. " Interests = $17, //兴趣爱好",
  16591. "});"
  16592. ]
  16593. },"删除某个创客详细信息": {
  16594. "prefix": "ym-db-UserDetail-Delete",
  16595. "body": [
  16596. "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
  16597. "if ($1 != null)",
  16598. "{",
  16599. " db.UserDetail.Remove($1);",
  16600. "}"
  16601. ]
  16602. },
  16603. "查询创客家庭成员列表": {
  16604. "prefix": "ym-db-UserFamilyMember-Find",
  16605. "body": [
  16606. "List<UserFamilyMember> $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16607. "foreach (UserFamilyMember $3 in $1)",
  16608. "{",
  16609. "}"
  16610. ]
  16611. },
  16612. "查询创客家庭成员列表,并取值": {
  16613. "prefix": "ym-db-UserFamilyMember-FindWithData",
  16614. "body": [
  16615. "List<UserFamilyMember> $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16616. "foreach (UserFamilyMember $3 in $1)",
  16617. "{",
  16618. " int UserId = $3.UserId; //创客Id",
  16619. " string Name = $3.Name; //姓名",
  16620. " string Mobile = $3.Mobile; //手机号",
  16621. " int MemberKind = $3.MemberKind; //关系",
  16622. " string IdCardNo = $3.IdCardNo; //身份证号",
  16623. " int Job = $3.Job; //职业",
  16624. "}"
  16625. ]
  16626. },
  16627. "查询创客家庭成员": {
  16628. "prefix": "ym-db-UserFamilyMember-Exist",
  16629. "body": [
  16630. "bool $1 = db.UserFamilyMember.Any(m => m.Id == $2);",
  16631. ]
  16632. },
  16633. "查询某个创客家庭成员,并取值": {
  16634. "prefix": "ym-db-UserFamilyMember-FindByPrimaryKey",
  16635. "body": [
  16636. "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
  16637. "if ($1 != null)",
  16638. "{",
  16639. " int UserId = $1.UserId; //创客Id",
  16640. " string Name = $1.Name; //姓名",
  16641. " string Mobile = $1.Mobile; //手机号",
  16642. " int MemberKind = $1.MemberKind; //关系",
  16643. " string IdCardNo = $1.IdCardNo; //身份证号",
  16644. " int Job = $1.Job; //职业",
  16645. "}"
  16646. ]
  16647. },
  16648. "查询某个创客家庭成员,并赋值": {
  16649. "prefix": "ym-db-UserFamilyMember-Update",
  16650. "body": [
  16651. "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
  16652. "if ($1 != null)",
  16653. "{",
  16654. " $1.UserId = $2; //创客Id",
  16655. " $1.Name = $3; //姓名",
  16656. " $1.Mobile = $4; //手机号",
  16657. " $1.MemberKind = $5; //关系",
  16658. " $1.IdCardNo = $6; //身份证号",
  16659. " $1.Job = $7; //职业",
  16660. "}"
  16661. ]
  16662. },
  16663. "获取创客家庭成员数量": {
  16664. "prefix": "ym-db-UserFamilyMember-FindAndCount",
  16665. "body": [
  16666. "int $1 = db.UserFamilyMember.Count(m => $2);",
  16667. ]
  16668. },
  16669. "添加创客家庭成员": {
  16670. "prefix": "ym-db-UserFamilyMember-Create",
  16671. "body": [
  16672. "db.UserFamilyMember.Add(new UserFamilyMember()",
  16673. "{",
  16674. " CreateDate = DateTime.Now,",
  16675. " UpdateDate = DateTime.Now,",
  16676. " UserId = $1, //创客Id",
  16677. " Name = $2, //姓名",
  16678. " Mobile = $3, //手机号",
  16679. " MemberKind = $4, //关系",
  16680. " IdCardNo = $5, //身份证号",
  16681. " Job = $6, //职业",
  16682. "});"
  16683. ]
  16684. },"删除某个创客家庭成员": {
  16685. "prefix": "ym-db-UserFamilyMember-Delete",
  16686. "body": [
  16687. "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
  16688. "if ($1 != null)",
  16689. "{",
  16690. " db.UserFamilyMember.Remove($1);",
  16691. "}"
  16692. ]
  16693. },
  16694. "查询创客编号为主键的关联表列表": {
  16695. "prefix": "ym-db-UserForMakerCode-Find",
  16696. "body": [
  16697. "List<UserForMakerCode> $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16698. "foreach (UserForMakerCode $3 in $1)",
  16699. "{",
  16700. "}"
  16701. ]
  16702. },
  16703. "查询创客编号为主键的关联表列表,并取值": {
  16704. "prefix": "ym-db-UserForMakerCode-FindWithData",
  16705. "body": [
  16706. "List<UserForMakerCode> $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16707. "foreach (UserForMakerCode $3 in $1)",
  16708. "{",
  16709. " string MakerCode = $3.MakerCode; //编号",
  16710. " int UserId = $3.UserId; //创客",
  16711. "}"
  16712. ]
  16713. },
  16714. "查询创客编号为主键的关联表": {
  16715. "prefix": "ym-db-UserForMakerCode-Exist",
  16716. "body": [
  16717. "bool $1 = db.UserForMakerCode.Any(m => m.MakerCode == $2);",
  16718. ]
  16719. },
  16720. "查询某个创客编号为主键的关联表,并取值": {
  16721. "prefix": "ym-db-UserForMakerCode-FindByPrimaryKey",
  16722. "body": [
  16723. "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
  16724. "if ($1 != null)",
  16725. "{",
  16726. " string MakerCode = $1.MakerCode; //编号",
  16727. " int UserId = $1.UserId; //创客",
  16728. "}"
  16729. ]
  16730. },
  16731. "查询某个创客编号为主键的关联表,并赋值": {
  16732. "prefix": "ym-db-UserForMakerCode-Update",
  16733. "body": [
  16734. "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
  16735. "if ($1 != null)",
  16736. "{",
  16737. " $1.MakerCode = $2; //编号",
  16738. " $1.UserId = $3; //创客",
  16739. "}"
  16740. ]
  16741. },
  16742. "获取创客编号为主键的关联表数量": {
  16743. "prefix": "ym-db-UserForMakerCode-FindAndCount",
  16744. "body": [
  16745. "int $1 = db.UserForMakerCode.Count(m => $2);",
  16746. ]
  16747. },
  16748. "添加创客编号为主键的关联表": {
  16749. "prefix": "ym-db-UserForMakerCode-Create",
  16750. "body": [
  16751. "db.UserForMakerCode.Add(new UserForMakerCode()",
  16752. "{",
  16753. " CreateDate = DateTime.Now,",
  16754. " UpdateDate = DateTime.Now,",
  16755. " MakerCode = $1, //编号",
  16756. " UserId = $2, //创客",
  16757. "});"
  16758. ]
  16759. },"删除某个创客编号为主键的关联表": {
  16760. "prefix": "ym-db-UserForMakerCode-Delete",
  16761. "body": [
  16762. "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
  16763. "if ($1 != null)",
  16764. "{",
  16765. " db.UserForMakerCode.Remove($1);",
  16766. "}"
  16767. ]
  16768. },
  16769. "查询创客手机号为主键的关联表列表": {
  16770. "prefix": "ym-db-UserForMobile-Find",
  16771. "body": [
  16772. "List<UserForMobile> $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16773. "foreach (UserForMobile $3 in $1)",
  16774. "{",
  16775. "}"
  16776. ]
  16777. },
  16778. "查询创客手机号为主键的关联表列表,并取值": {
  16779. "prefix": "ym-db-UserForMobile-FindWithData",
  16780. "body": [
  16781. "List<UserForMobile> $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16782. "foreach (UserForMobile $3 in $1)",
  16783. "{",
  16784. " string Mobile = $3.Mobile; //手机号",
  16785. " int UserId = $3.UserId; //创客Id",
  16786. "}"
  16787. ]
  16788. },
  16789. "查询创客手机号为主键的关联表": {
  16790. "prefix": "ym-db-UserForMobile-Exist",
  16791. "body": [
  16792. "bool $1 = db.UserForMobile.Any(m => m.Mobile == $2);",
  16793. ]
  16794. },
  16795. "查询某个创客手机号为主键的关联表,并取值": {
  16796. "prefix": "ym-db-UserForMobile-FindByPrimaryKey",
  16797. "body": [
  16798. "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
  16799. "if ($1 != null)",
  16800. "{",
  16801. " string Mobile = $1.Mobile; //手机号",
  16802. " int UserId = $1.UserId; //创客Id",
  16803. "}"
  16804. ]
  16805. },
  16806. "查询某个创客手机号为主键的关联表,并赋值": {
  16807. "prefix": "ym-db-UserForMobile-Update",
  16808. "body": [
  16809. "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
  16810. "if ($1 != null)",
  16811. "{",
  16812. " $1.Mobile = $2; //手机号",
  16813. " $1.UserId = $3; //创客Id",
  16814. "}"
  16815. ]
  16816. },
  16817. "获取创客手机号为主键的关联表数量": {
  16818. "prefix": "ym-db-UserForMobile-FindAndCount",
  16819. "body": [
  16820. "int $1 = db.UserForMobile.Count(m => $2);",
  16821. ]
  16822. },
  16823. "添加创客手机号为主键的关联表": {
  16824. "prefix": "ym-db-UserForMobile-Create",
  16825. "body": [
  16826. "db.UserForMobile.Add(new UserForMobile()",
  16827. "{",
  16828. " CreateDate = DateTime.Now,",
  16829. " UpdateDate = DateTime.Now,",
  16830. " Mobile = $1, //手机号",
  16831. " UserId = $2, //创客Id",
  16832. "});"
  16833. ]
  16834. },"删除某个创客手机号为主键的关联表": {
  16835. "prefix": "ym-db-UserForMobile-Delete",
  16836. "body": [
  16837. "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
  16838. "if ($1 != null)",
  16839. "{",
  16840. " db.UserForMobile.Remove($1);",
  16841. "}"
  16842. ]
  16843. },
  16844. "查询创客姓名为主键的关联表列表": {
  16845. "prefix": "ym-db-UserForRealName-Find",
  16846. "body": [
  16847. "List<UserForRealName> $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16848. "foreach (UserForRealName $3 in $1)",
  16849. "{",
  16850. "}"
  16851. ]
  16852. },
  16853. "查询创客姓名为主键的关联表列表,并取值": {
  16854. "prefix": "ym-db-UserForRealName-FindWithData",
  16855. "body": [
  16856. "List<UserForRealName> $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16857. "foreach (UserForRealName $3 in $1)",
  16858. "{",
  16859. " string RealName = $3.RealName; //姓名",
  16860. " string UserId = $3.UserId; //创客",
  16861. "}"
  16862. ]
  16863. },
  16864. "查询创客姓名为主键的关联表": {
  16865. "prefix": "ym-db-UserForRealName-Exist",
  16866. "body": [
  16867. "bool $1 = db.UserForRealName.Any(m => m.RealName == $2);",
  16868. ]
  16869. },
  16870. "查询某个创客姓名为主键的关联表,并取值": {
  16871. "prefix": "ym-db-UserForRealName-FindByPrimaryKey",
  16872. "body": [
  16873. "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
  16874. "if ($1 != null)",
  16875. "{",
  16876. " string RealName = $1.RealName; //姓名",
  16877. " string UserId = $1.UserId; //创客",
  16878. "}"
  16879. ]
  16880. },
  16881. "查询某个创客姓名为主键的关联表,并赋值": {
  16882. "prefix": "ym-db-UserForRealName-Update",
  16883. "body": [
  16884. "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
  16885. "if ($1 != null)",
  16886. "{",
  16887. " $1.RealName = $2; //姓名",
  16888. " $1.UserId = $3; //创客",
  16889. "}"
  16890. ]
  16891. },
  16892. "获取创客姓名为主键的关联表数量": {
  16893. "prefix": "ym-db-UserForRealName-FindAndCount",
  16894. "body": [
  16895. "int $1 = db.UserForRealName.Count(m => $2);",
  16896. ]
  16897. },
  16898. "添加创客姓名为主键的关联表": {
  16899. "prefix": "ym-db-UserForRealName-Create",
  16900. "body": [
  16901. "db.UserForRealName.Add(new UserForRealName()",
  16902. "{",
  16903. " CreateDate = DateTime.Now,",
  16904. " UpdateDate = DateTime.Now,",
  16905. " RealName = $1, //姓名",
  16906. " UserId = $2, //创客",
  16907. "});"
  16908. ]
  16909. },"删除某个创客姓名为主键的关联表": {
  16910. "prefix": "ym-db-UserForRealName-Delete",
  16911. "body": [
  16912. "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
  16913. "if ($1 != null)",
  16914. "{",
  16915. " db.UserForRealName.Remove($1);",
  16916. "}"
  16917. ]
  16918. },
  16919. "查询创客好友关联表列表": {
  16920. "prefix": "ym-db-UserFriend-Find",
  16921. "body": [
  16922. "List<UserFriend> $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16923. "foreach (UserFriend $3 in $1)",
  16924. "{",
  16925. "}"
  16926. ]
  16927. },
  16928. "查询创客好友关联表列表,并取值": {
  16929. "prefix": "ym-db-UserFriend-FindWithData",
  16930. "body": [
  16931. "List<UserFriend> $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  16932. "foreach (UserFriend $3 in $1)",
  16933. "{",
  16934. " int Id = $3.Id; //Id",
  16935. " int UserId = $3.UserId; //创客Id",
  16936. " int FriendId = $3.FriendId; //好友Id",
  16937. "}"
  16938. ]
  16939. },
  16940. "查询创客好友关联表": {
  16941. "prefix": "ym-db-UserFriend-Exist",
  16942. "body": [
  16943. "bool $1 = db.UserFriend.Any(m => m.Id == $2);",
  16944. ]
  16945. },
  16946. "查询某个创客好友关联表,并取值": {
  16947. "prefix": "ym-db-UserFriend-FindByPrimaryKey",
  16948. "body": [
  16949. "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
  16950. "if ($1 != null)",
  16951. "{",
  16952. " int Id = $1.Id; //Id",
  16953. " int UserId = $1.UserId; //创客Id",
  16954. " int FriendId = $1.FriendId; //好友Id",
  16955. "}"
  16956. ]
  16957. },
  16958. "查询某个创客好友关联表,并赋值": {
  16959. "prefix": "ym-db-UserFriend-Update",
  16960. "body": [
  16961. "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
  16962. "if ($1 != null)",
  16963. "{",
  16964. " $1.Id = $2; //Id",
  16965. " $1.UserId = $3; //创客Id",
  16966. " $1.FriendId = $4; //好友Id",
  16967. "}"
  16968. ]
  16969. },
  16970. "获取创客好友关联表数量": {
  16971. "prefix": "ym-db-UserFriend-FindAndCount",
  16972. "body": [
  16973. "int $1 = db.UserFriend.Count(m => $2);",
  16974. ]
  16975. },
  16976. "添加创客好友关联表": {
  16977. "prefix": "ym-db-UserFriend-Create",
  16978. "body": [
  16979. "db.UserFriend.Add(new UserFriend()",
  16980. "{",
  16981. " CreateDate = DateTime.Now,",
  16982. " UpdateDate = DateTime.Now,",
  16983. " Id = $1, //Id",
  16984. " UserId = $2, //创客Id",
  16985. " FriendId = $3, //好友Id",
  16986. "});"
  16987. ]
  16988. },"删除某个创客好友关联表": {
  16989. "prefix": "ym-db-UserFriend-Delete",
  16990. "body": [
  16991. "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
  16992. "if ($1 != null)",
  16993. "{",
  16994. " db.UserFriend.Remove($1);",
  16995. "}"
  16996. ]
  16997. },
  16998. "查询创客分组列表": {
  16999. "prefix": "ym-db-UserGroup-Find",
  17000. "body": [
  17001. "List<UserGroup> $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17002. "foreach (UserGroup $3 in $1)",
  17003. "{",
  17004. "}"
  17005. ]
  17006. },
  17007. "查询创客分组列表,并取值": {
  17008. "prefix": "ym-db-UserGroup-FindWithData",
  17009. "body": [
  17010. "List<UserGroup> $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17011. "foreach (UserGroup $3 in $1)",
  17012. "{",
  17013. " string Name = $3.Name; //名称",
  17014. " string Details = $3.Details; //描述",
  17015. "}"
  17016. ]
  17017. },
  17018. "查询创客分组": {
  17019. "prefix": "ym-db-UserGroup-Exist",
  17020. "body": [
  17021. "bool $1 = db.UserGroup.Any(m => m.Id == $2);",
  17022. ]
  17023. },
  17024. "查询某个创客分组,并取值": {
  17025. "prefix": "ym-db-UserGroup-FindByPrimaryKey",
  17026. "body": [
  17027. "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
  17028. "if ($1 != null)",
  17029. "{",
  17030. " string Name = $1.Name; //名称",
  17031. " string Details = $1.Details; //描述",
  17032. "}"
  17033. ]
  17034. },
  17035. "查询某个创客分组,并赋值": {
  17036. "prefix": "ym-db-UserGroup-Update",
  17037. "body": [
  17038. "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
  17039. "if ($1 != null)",
  17040. "{",
  17041. " $1.Name = $2; //名称",
  17042. " $1.Details = $3; //描述",
  17043. "}"
  17044. ]
  17045. },
  17046. "获取创客分组数量": {
  17047. "prefix": "ym-db-UserGroup-FindAndCount",
  17048. "body": [
  17049. "int $1 = db.UserGroup.Count(m => $2);",
  17050. ]
  17051. },
  17052. "添加创客分组": {
  17053. "prefix": "ym-db-UserGroup-Create",
  17054. "body": [
  17055. "db.UserGroup.Add(new UserGroup()",
  17056. "{",
  17057. " CreateDate = DateTime.Now,",
  17058. " UpdateDate = DateTime.Now,",
  17059. " Name = $1, //名称",
  17060. " Details = $2, //描述",
  17061. "});"
  17062. ]
  17063. },"删除某个创客分组": {
  17064. "prefix": "ym-db-UserGroup-Delete",
  17065. "body": [
  17066. "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
  17067. "if ($1 != null)",
  17068. "{",
  17069. " db.UserGroup.Remove($1);",
  17070. "}"
  17071. ]
  17072. },
  17073. "查询创客等级设定列表": {
  17074. "prefix": "ym-db-UserLevelSet-Find",
  17075. "body": [
  17076. "List<UserLevelSet> $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17077. "foreach (UserLevelSet $3 in $1)",
  17078. "{",
  17079. "}"
  17080. ]
  17081. },
  17082. "查询创客等级设定列表,并取值": {
  17083. "prefix": "ym-db-UserLevelSet-FindWithData",
  17084. "body": [
  17085. "List<UserLevelSet> $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17086. "foreach (UserLevelSet $3 in $1)",
  17087. "{",
  17088. " string Name = $3.Name; //等级名称",
  17089. " string Details = $3.Details; //等级描述",
  17090. " int UpLevelDays = $3.UpLevelDays; //升级天数",
  17091. " decimal UpLevelIntegral = $3.UpLevelIntegral; //升级需要积分值",
  17092. " int UpLevelGrowth = $3.UpLevelGrowth; //升级需要成长值",
  17093. "}"
  17094. ]
  17095. },
  17096. "查询创客等级设定": {
  17097. "prefix": "ym-db-UserLevelSet-Exist",
  17098. "body": [
  17099. "bool $1 = db.UserLevelSet.Any(m => m.Id == $2);",
  17100. ]
  17101. },
  17102. "查询某个创客等级设定,并取值": {
  17103. "prefix": "ym-db-UserLevelSet-FindByPrimaryKey",
  17104. "body": [
  17105. "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
  17106. "if ($1 != null)",
  17107. "{",
  17108. " string Name = $1.Name; //等级名称",
  17109. " string Details = $1.Details; //等级描述",
  17110. " int UpLevelDays = $1.UpLevelDays; //升级天数",
  17111. " decimal UpLevelIntegral = $1.UpLevelIntegral; //升级需要积分值",
  17112. " int UpLevelGrowth = $1.UpLevelGrowth; //升级需要成长值",
  17113. "}"
  17114. ]
  17115. },
  17116. "查询某个创客等级设定,并赋值": {
  17117. "prefix": "ym-db-UserLevelSet-Update",
  17118. "body": [
  17119. "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
  17120. "if ($1 != null)",
  17121. "{",
  17122. " $1.Name = $2; //等级名称",
  17123. " $1.Details = $3; //等级描述",
  17124. " $1.UpLevelDays = $4; //升级天数",
  17125. " $1.UpLevelIntegral = $5; //升级需要积分值",
  17126. " $1.UpLevelGrowth = $6; //升级需要成长值",
  17127. "}"
  17128. ]
  17129. },
  17130. "获取创客等级设定数量": {
  17131. "prefix": "ym-db-UserLevelSet-FindAndCount",
  17132. "body": [
  17133. "int $1 = db.UserLevelSet.Count(m => $2);",
  17134. ]
  17135. },
  17136. "添加创客等级设定": {
  17137. "prefix": "ym-db-UserLevelSet-Create",
  17138. "body": [
  17139. "db.UserLevelSet.Add(new UserLevelSet()",
  17140. "{",
  17141. " CreateDate = DateTime.Now,",
  17142. " UpdateDate = DateTime.Now,",
  17143. " Name = $1, //等级名称",
  17144. " Details = $2, //等级描述",
  17145. " UpLevelDays = $3, //升级天数",
  17146. " UpLevelIntegral = $4, //升级需要积分值",
  17147. " UpLevelGrowth = $5, //升级需要成长值",
  17148. "});"
  17149. ]
  17150. },"删除某个创客等级设定": {
  17151. "prefix": "ym-db-UserLevelSet-Delete",
  17152. "body": [
  17153. "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
  17154. "if ($1 != null)",
  17155. "{",
  17156. " db.UserLevelSet.Remove($1);",
  17157. "}"
  17158. ]
  17159. },
  17160. "查询创客登录记录列表": {
  17161. "prefix": "ym-db-UserLoginRecord-Find",
  17162. "body": [
  17163. "List<UserLoginRecord> $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17164. "foreach (UserLoginRecord $3 in $1)",
  17165. "{",
  17166. "}"
  17167. ]
  17168. },
  17169. "查询创客登录记录列表,并取值": {
  17170. "prefix": "ym-db-UserLoginRecord-FindWithData",
  17171. "body": [
  17172. "List<UserLoginRecord> $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17173. "foreach (UserLoginRecord $3 in $1)",
  17174. "{",
  17175. " int UserId = $3.UserId; //创客",
  17176. " int Kind = $3.Kind; //类别",
  17177. "}"
  17178. ]
  17179. },
  17180. "查询创客登录记录": {
  17181. "prefix": "ym-db-UserLoginRecord-Exist",
  17182. "body": [
  17183. "bool $1 = db.UserLoginRecord.Any(m => m.Id == $2);",
  17184. ]
  17185. },
  17186. "查询某个创客登录记录,并取值": {
  17187. "prefix": "ym-db-UserLoginRecord-FindByPrimaryKey",
  17188. "body": [
  17189. "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
  17190. "if ($1 != null)",
  17191. "{",
  17192. " int UserId = $1.UserId; //创客",
  17193. " int Kind = $1.Kind; //类别",
  17194. "}"
  17195. ]
  17196. },
  17197. "查询某个创客登录记录,并赋值": {
  17198. "prefix": "ym-db-UserLoginRecord-Update",
  17199. "body": [
  17200. "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
  17201. "if ($1 != null)",
  17202. "{",
  17203. " $1.UserId = $2; //创客",
  17204. " $1.Kind = $3; //类别",
  17205. "}"
  17206. ]
  17207. },
  17208. "获取创客登录记录数量": {
  17209. "prefix": "ym-db-UserLoginRecord-FindAndCount",
  17210. "body": [
  17211. "int $1 = db.UserLoginRecord.Count(m => $2);",
  17212. ]
  17213. },
  17214. "添加创客登录记录": {
  17215. "prefix": "ym-db-UserLoginRecord-Create",
  17216. "body": [
  17217. "db.UserLoginRecord.Add(new UserLoginRecord()",
  17218. "{",
  17219. " CreateDate = DateTime.Now,",
  17220. " UpdateDate = DateTime.Now,",
  17221. " UserId = $1, //创客",
  17222. " Kind = $2, //类别",
  17223. "});"
  17224. ]
  17225. },"删除某个创客登录记录": {
  17226. "prefix": "ym-db-UserLoginRecord-Delete",
  17227. "body": [
  17228. "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
  17229. "if ($1 != null)",
  17230. "{",
  17231. " db.UserLoginRecord.Remove($1);",
  17232. "}"
  17233. ]
  17234. },
  17235. "查询创客机具数据列表": {
  17236. "prefix": "ym-db-UserMachineData-Find",
  17237. "body": [
  17238. "List<UserMachineData> $1 = db.UserMachineData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17239. "foreach (UserMachineData $3 in $1)",
  17240. "{",
  17241. "}"
  17242. ]
  17243. },
  17244. "查询创客机具数据列表,并取值": {
  17245. "prefix": "ym-db-UserMachineData-FindWithData",
  17246. "body": [
  17247. "List<UserMachineData> $1 = db.UserMachineData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17248. "foreach (UserMachineData $3 in $1)",
  17249. "{",
  17250. " string IdBrand = $3.IdBrand; //创客品牌",
  17251. " int TotalMachineCount = $3.TotalMachineCount; //总机具数",
  17252. " int UnBindCount = $3.UnBindCount; //未绑定数",
  17253. " int BindCount = $3.BindCount; //已绑定数",
  17254. " decimal TradeProfit = $3.TradeProfit; //交易分润",
  17255. " decimal ActProfit = $3.ActProfit; //激活奖励",
  17256. " decimal OpenProfit = $3.OpenProfit; //开机奖励",
  17257. " decimal DividendsProfit = $3.DividendsProfit; //分红奖励",
  17258. " decimal OtherProfit = $3.OtherProfit; //分润补贴",
  17259. " decimal FluxProfit = $3.FluxProfit; //流量卡分佣",
  17260. "}"
  17261. ]
  17262. },
  17263. "查询创客机具数据": {
  17264. "prefix": "ym-db-UserMachineData-Exist",
  17265. "body": [
  17266. "bool $1 = db.UserMachineData.Any(m => m.IdBrand == $2);",
  17267. ]
  17268. },
  17269. "查询某个创客机具数据,并取值": {
  17270. "prefix": "ym-db-UserMachineData-FindByPrimaryKey",
  17271. "body": [
  17272. "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);",
  17273. "if ($1 != null)",
  17274. "{",
  17275. " string IdBrand = $1.IdBrand; //创客品牌",
  17276. " int TotalMachineCount = $1.TotalMachineCount; //总机具数",
  17277. " int UnBindCount = $1.UnBindCount; //未绑定数",
  17278. " int BindCount = $1.BindCount; //已绑定数",
  17279. " decimal TradeProfit = $1.TradeProfit; //交易分润",
  17280. " decimal ActProfit = $1.ActProfit; //激活奖励",
  17281. " decimal OpenProfit = $1.OpenProfit; //开机奖励",
  17282. " decimal DividendsProfit = $1.DividendsProfit; //分红奖励",
  17283. " decimal OtherProfit = $1.OtherProfit; //分润补贴",
  17284. " decimal FluxProfit = $1.FluxProfit; //流量卡分佣",
  17285. "}"
  17286. ]
  17287. },
  17288. "查询某个创客机具数据,并赋值": {
  17289. "prefix": "ym-db-UserMachineData-Update",
  17290. "body": [
  17291. "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);",
  17292. "if ($1 != null)",
  17293. "{",
  17294. " $1.IdBrand = $2; //创客品牌",
  17295. " $1.TotalMachineCount = $3; //总机具数",
  17296. " $1.UnBindCount = $4; //未绑定数",
  17297. " $1.BindCount = $5; //已绑定数",
  17298. " $1.TradeProfit = $6; //交易分润",
  17299. " $1.ActProfit = $7; //激活奖励",
  17300. " $1.OpenProfit = $8; //开机奖励",
  17301. " $1.DividendsProfit = $9; //分红奖励",
  17302. " $1.OtherProfit = $10; //分润补贴",
  17303. " $1.FluxProfit = $11; //流量卡分佣",
  17304. "}"
  17305. ]
  17306. },
  17307. "获取创客机具数据数量": {
  17308. "prefix": "ym-db-UserMachineData-FindAndCount",
  17309. "body": [
  17310. "int $1 = db.UserMachineData.Count(m => $2);",
  17311. ]
  17312. },
  17313. "添加创客机具数据": {
  17314. "prefix": "ym-db-UserMachineData-Create",
  17315. "body": [
  17316. "db.UserMachineData.Add(new UserMachineData()",
  17317. "{",
  17318. " CreateDate = DateTime.Now,",
  17319. " UpdateDate = DateTime.Now,",
  17320. " IdBrand = $1, //创客品牌",
  17321. " TotalMachineCount = $2, //总机具数",
  17322. " UnBindCount = $3, //未绑定数",
  17323. " BindCount = $4, //已绑定数",
  17324. " TradeProfit = $5, //交易分润",
  17325. " ActProfit = $6, //激活奖励",
  17326. " OpenProfit = $7, //开机奖励",
  17327. " DividendsProfit = $8, //分红奖励",
  17328. " OtherProfit = $9, //分润补贴",
  17329. " FluxProfit = $10, //流量卡分佣",
  17330. "});"
  17331. ]
  17332. },"删除某个创客机具数据": {
  17333. "prefix": "ym-db-UserMachineData-Delete",
  17334. "body": [
  17335. "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);",
  17336. "if ($1 != null)",
  17337. "{",
  17338. " db.UserMachineData.Remove($1);",
  17339. "}"
  17340. ]
  17341. },
  17342. "查询创客商城提大货SN列表": {
  17343. "prefix": "ym-db-UserMallLargeSn-Find",
  17344. "body": [
  17345. "List<UserMallLargeSn> $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17346. "foreach (UserMallLargeSn $3 in $1)",
  17347. "{",
  17348. "}"
  17349. ]
  17350. },
  17351. "查询创客商城提大货SN列表,并取值": {
  17352. "prefix": "ym-db-UserMallLargeSn-FindWithData",
  17353. "body": [
  17354. "List<UserMallLargeSn> $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17355. "foreach (UserMallLargeSn $3 in $1)",
  17356. "{",
  17357. " int UserId = $3.UserId; //创客",
  17358. " int BrandId = $3.BrandId; //品牌",
  17359. " string ProductName = $3.ProductName; //产品名称",
  17360. " string OrderNo = $3.OrderNo; //订单号",
  17361. " decimal OrderAmount = $3.OrderAmount; //订单金额",
  17362. " int OrderNum = $3.OrderNum; //订单数量",
  17363. " decimal RuleOrderAmt = $3.RuleOrderAmt; //规则订单金额",
  17364. " int SnStatus = $3.SnStatus; //SN状态",
  17365. " string SnNo = $3.SnNo; //SN编号",
  17366. " int SnType = $3.SnType; //SN类型",
  17367. " DateTime SnShipDate = $3.SnShipDate; //SN发货时间",
  17368. " int StoreId = $3.StoreId; //SN发货仓库",
  17369. " string Remark = $3.Remark; //备注",
  17370. "}"
  17371. ]
  17372. },
  17373. "查询创客商城提大货SN": {
  17374. "prefix": "ym-db-UserMallLargeSn-Exist",
  17375. "body": [
  17376. "bool $1 = db.UserMallLargeSn.Any(m => m.Id == $2);",
  17377. ]
  17378. },
  17379. "查询某个创客商城提大货SN,并取值": {
  17380. "prefix": "ym-db-UserMallLargeSn-FindByPrimaryKey",
  17381. "body": [
  17382. "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
  17383. "if ($1 != null)",
  17384. "{",
  17385. " int UserId = $1.UserId; //创客",
  17386. " int BrandId = $1.BrandId; //品牌",
  17387. " string ProductName = $1.ProductName; //产品名称",
  17388. " string OrderNo = $1.OrderNo; //订单号",
  17389. " decimal OrderAmount = $1.OrderAmount; //订单金额",
  17390. " int OrderNum = $1.OrderNum; //订单数量",
  17391. " decimal RuleOrderAmt = $1.RuleOrderAmt; //规则订单金额",
  17392. " int SnStatus = $1.SnStatus; //SN状态",
  17393. " string SnNo = $1.SnNo; //SN编号",
  17394. " int SnType = $1.SnType; //SN类型",
  17395. " DateTime SnShipDate = $1.SnShipDate; //SN发货时间",
  17396. " int StoreId = $1.StoreId; //SN发货仓库",
  17397. " string Remark = $1.Remark; //备注",
  17398. "}"
  17399. ]
  17400. },
  17401. "查询某个创客商城提大货SN,并赋值": {
  17402. "prefix": "ym-db-UserMallLargeSn-Update",
  17403. "body": [
  17404. "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
  17405. "if ($1 != null)",
  17406. "{",
  17407. " $1.UserId = $2; //创客",
  17408. " $1.BrandId = $3; //品牌",
  17409. " $1.ProductName = $4; //产品名称",
  17410. " $1.OrderNo = $5; //订单号",
  17411. " $1.OrderAmount = $6; //订单金额",
  17412. " $1.OrderNum = $7; //订单数量",
  17413. " $1.RuleOrderAmt = $8; //规则订单金额",
  17414. " $1.SnStatus = $9; //SN状态",
  17415. " $1.SnNo = $10; //SN编号",
  17416. " $1.SnType = $11; //SN类型",
  17417. " $1.SnShipDate = $12; //SN发货时间",
  17418. " $1.StoreId = $13; //SN发货仓库",
  17419. " $1.Remark = $14; //备注",
  17420. "}"
  17421. ]
  17422. },
  17423. "获取创客商城提大货SN数量": {
  17424. "prefix": "ym-db-UserMallLargeSn-FindAndCount",
  17425. "body": [
  17426. "int $1 = db.UserMallLargeSn.Count(m => $2);",
  17427. ]
  17428. },
  17429. "添加创客商城提大货SN": {
  17430. "prefix": "ym-db-UserMallLargeSn-Create",
  17431. "body": [
  17432. "db.UserMallLargeSn.Add(new UserMallLargeSn()",
  17433. "{",
  17434. " CreateDate = DateTime.Now,",
  17435. " UpdateDate = DateTime.Now,",
  17436. " UserId = $1, //创客",
  17437. " BrandId = $2, //品牌",
  17438. " ProductName = $3, //产品名称",
  17439. " OrderNo = $4, //订单号",
  17440. " OrderAmount = $5, //订单金额",
  17441. " OrderNum = $6, //订单数量",
  17442. " RuleOrderAmt = $7, //规则订单金额",
  17443. " SnStatus = $8, //SN状态",
  17444. " SnNo = $9, //SN编号",
  17445. " SnType = $10, //SN类型",
  17446. " SnShipDate = $11, //SN发货时间",
  17447. " StoreId = $12, //SN发货仓库",
  17448. " Remark = $13, //备注",
  17449. "});"
  17450. ]
  17451. },"删除某个创客商城提大货SN": {
  17452. "prefix": "ym-db-UserMallLargeSn-Delete",
  17453. "body": [
  17454. "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
  17455. "if ($1 != null)",
  17456. "{",
  17457. " db.UserMallLargeSn.Remove($1);",
  17458. "}"
  17459. ]
  17460. },
  17461. "查询创客线下签到记录列表": {
  17462. "prefix": "ym-db-UserOfflineSignInRecords-Find",
  17463. "body": [
  17464. "List<UserOfflineSignInRecords> $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17465. "foreach (UserOfflineSignInRecords $3 in $1)",
  17466. "{",
  17467. "}"
  17468. ]
  17469. },
  17470. "查询创客线下签到记录列表,并取值": {
  17471. "prefix": "ym-db-UserOfflineSignInRecords-FindWithData",
  17472. "body": [
  17473. "List<UserOfflineSignInRecords> $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17474. "foreach (UserOfflineSignInRecords $3 in $1)",
  17475. "{",
  17476. " int UserId = $3.UserId; //创客Id",
  17477. " int MerchantId = $3.MerchantId; //商家Id",
  17478. "}"
  17479. ]
  17480. },
  17481. "查询创客线下签到记录": {
  17482. "prefix": "ym-db-UserOfflineSignInRecords-Exist",
  17483. "body": [
  17484. "bool $1 = db.UserOfflineSignInRecords.Any(m => m.Id == $2);",
  17485. ]
  17486. },
  17487. "查询某个创客线下签到记录,并取值": {
  17488. "prefix": "ym-db-UserOfflineSignInRecords-FindByPrimaryKey",
  17489. "body": [
  17490. "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
  17491. "if ($1 != null)",
  17492. "{",
  17493. " int UserId = $1.UserId; //创客Id",
  17494. " int MerchantId = $1.MerchantId; //商家Id",
  17495. "}"
  17496. ]
  17497. },
  17498. "查询某个创客线下签到记录,并赋值": {
  17499. "prefix": "ym-db-UserOfflineSignInRecords-Update",
  17500. "body": [
  17501. "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
  17502. "if ($1 != null)",
  17503. "{",
  17504. " $1.UserId = $2; //创客Id",
  17505. " $1.MerchantId = $3; //商家Id",
  17506. "}"
  17507. ]
  17508. },
  17509. "获取创客线下签到记录数量": {
  17510. "prefix": "ym-db-UserOfflineSignInRecords-FindAndCount",
  17511. "body": [
  17512. "int $1 = db.UserOfflineSignInRecords.Count(m => $2);",
  17513. ]
  17514. },
  17515. "添加创客线下签到记录": {
  17516. "prefix": "ym-db-UserOfflineSignInRecords-Create",
  17517. "body": [
  17518. "db.UserOfflineSignInRecords.Add(new UserOfflineSignInRecords()",
  17519. "{",
  17520. " CreateDate = DateTime.Now,",
  17521. " UpdateDate = DateTime.Now,",
  17522. " UserId = $1, //创客Id",
  17523. " MerchantId = $2, //商家Id",
  17524. "});"
  17525. ]
  17526. },"删除某个创客线下签到记录": {
  17527. "prefix": "ym-db-UserOfflineSignInRecords-Delete",
  17528. "body": [
  17529. "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
  17530. "if ($1 != null)",
  17531. "{",
  17532. " db.UserOfflineSignInRecords.Remove($1);",
  17533. "}"
  17534. ]
  17535. },
  17536. "查询创客分润规则列表": {
  17537. "prefix": "ym-db-UserProfit-Find",
  17538. "body": [
  17539. "List<UserProfit> $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17540. "foreach (UserProfit $3 in $1)",
  17541. "{",
  17542. "}"
  17543. ]
  17544. },
  17545. "查询创客分润规则列表,并取值": {
  17546. "prefix": "ym-db-UserProfit-FindWithData",
  17547. "body": [
  17548. "List<UserProfit> $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17549. "foreach (UserProfit $3 in $1)",
  17550. "{",
  17551. " int UserId = $3.UserId; //创客",
  17552. " int BrandId = $3.BrandId; //品牌",
  17553. " string CardType = $3.CardType; //交易卡类型",
  17554. " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例",
  17555. " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比",
  17556. " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间",
  17557. " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数",
  17558. " string Remark = $3.Remark; //备注",
  17559. " int TopUserId = $3.TopUserId; //顶级创客",
  17560. " decimal HelpAddOrSubRate = $3.HelpAddOrSubRate; //扶持期浮动空间",
  17561. " decimal HelpProfitPercent = $3.HelpProfitPercent; //扶持期创客预设分润百分比",
  17562. " decimal HelpProfitRate = $3.HelpProfitRate; //扶持期创客预设分润比例",
  17563. " decimal HelpProfitRateBase = $3.HelpProfitRateBase; //扶持期分润比例基数",
  17564. "}"
  17565. ]
  17566. },
  17567. "查询创客分润规则": {
  17568. "prefix": "ym-db-UserProfit-Exist",
  17569. "body": [
  17570. "bool $1 = db.UserProfit.Any(m => m.Id == $2);",
  17571. ]
  17572. },
  17573. "查询某个创客分润规则,并取值": {
  17574. "prefix": "ym-db-UserProfit-FindByPrimaryKey",
  17575. "body": [
  17576. "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
  17577. "if ($1 != null)",
  17578. "{",
  17579. " int UserId = $1.UserId; //创客",
  17580. " int BrandId = $1.BrandId; //品牌",
  17581. " string CardType = $1.CardType; //交易卡类型",
  17582. " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例",
  17583. " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比",
  17584. " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间",
  17585. " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数",
  17586. " string Remark = $1.Remark; //备注",
  17587. " int TopUserId = $1.TopUserId; //顶级创客",
  17588. " decimal HelpAddOrSubRate = $1.HelpAddOrSubRate; //扶持期浮动空间",
  17589. " decimal HelpProfitPercent = $1.HelpProfitPercent; //扶持期创客预设分润百分比",
  17590. " decimal HelpProfitRate = $1.HelpProfitRate; //扶持期创客预设分润比例",
  17591. " decimal HelpProfitRateBase = $1.HelpProfitRateBase; //扶持期分润比例基数",
  17592. "}"
  17593. ]
  17594. },
  17595. "查询某个创客分润规则,并赋值": {
  17596. "prefix": "ym-db-UserProfit-Update",
  17597. "body": [
  17598. "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
  17599. "if ($1 != null)",
  17600. "{",
  17601. " $1.UserId = $2; //创客",
  17602. " $1.BrandId = $3; //品牌",
  17603. " $1.CardType = $4; //交易卡类型",
  17604. " $1.ProfitRate = $5; //创客预设分润比例",
  17605. " $1.ProfitPercent = $6; //创客预设分润百分比",
  17606. " $1.AddOrSubRate = $7; //浮动空间",
  17607. " $1.ProfitRateBase = $8; //分润比例基数",
  17608. " $1.Remark = $9; //备注",
  17609. " $1.TopUserId = $10; //顶级创客",
  17610. " $1.HelpAddOrSubRate = $11; //扶持期浮动空间",
  17611. " $1.HelpProfitPercent = $12; //扶持期创客预设分润百分比",
  17612. " $1.HelpProfitRate = $13; //扶持期创客预设分润比例",
  17613. " $1.HelpProfitRateBase = $14; //扶持期分润比例基数",
  17614. "}"
  17615. ]
  17616. },
  17617. "获取创客分润规则数量": {
  17618. "prefix": "ym-db-UserProfit-FindAndCount",
  17619. "body": [
  17620. "int $1 = db.UserProfit.Count(m => $2);",
  17621. ]
  17622. },
  17623. "添加创客分润规则": {
  17624. "prefix": "ym-db-UserProfit-Create",
  17625. "body": [
  17626. "db.UserProfit.Add(new UserProfit()",
  17627. "{",
  17628. " CreateDate = DateTime.Now,",
  17629. " UpdateDate = DateTime.Now,",
  17630. " UserId = $1, //创客",
  17631. " BrandId = $2, //品牌",
  17632. " CardType = $3, //交易卡类型",
  17633. " ProfitRate = $4, //创客预设分润比例",
  17634. " ProfitPercent = $5, //创客预设分润百分比",
  17635. " AddOrSubRate = $6, //浮动空间",
  17636. " ProfitRateBase = $7, //分润比例基数",
  17637. " Remark = $8, //备注",
  17638. " TopUserId = $9, //顶级创客",
  17639. " HelpAddOrSubRate = $10, //扶持期浮动空间",
  17640. " HelpProfitPercent = $11, //扶持期创客预设分润百分比",
  17641. " HelpProfitRate = $12, //扶持期创客预设分润比例",
  17642. " HelpProfitRateBase = $13, //扶持期分润比例基数",
  17643. "});"
  17644. ]
  17645. },"删除某个创客分润规则": {
  17646. "prefix": "ym-db-UserProfit-Delete",
  17647. "body": [
  17648. "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
  17649. "if ($1 != null)",
  17650. "{",
  17651. " db.UserProfit.Remove($1);",
  17652. "}"
  17653. ]
  17654. },
  17655. "查询创客预设分润列表": {
  17656. "prefix": "ym-db-UserProfitSet-Find",
  17657. "body": [
  17658. "List<UserProfitSet> $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17659. "foreach (UserProfitSet $3 in $1)",
  17660. "{",
  17661. "}"
  17662. ]
  17663. },
  17664. "查询创客预设分润列表,并取值": {
  17665. "prefix": "ym-db-UserProfitSet-FindWithData",
  17666. "body": [
  17667. "List<UserProfitSet> $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17668. "foreach (UserProfitSet $3 in $1)",
  17669. "{",
  17670. " int UserId = $3.UserId; //创客",
  17671. " int BrandId = $3.BrandId; //品牌",
  17672. " int CardType = $3.CardType; //交易卡类型",
  17673. " int HelpFlag = $3.HelpFlag; //扶持期标识",
  17674. " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例",
  17675. " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比",
  17676. " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间",
  17677. " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数",
  17678. " string Remark = $3.Remark; //备注",
  17679. " int TopUserId = $3.TopUserId; //顶级创客",
  17680. "}"
  17681. ]
  17682. },
  17683. "查询创客预设分润": {
  17684. "prefix": "ym-db-UserProfitSet-Exist",
  17685. "body": [
  17686. "bool $1 = db.UserProfitSet.Any(m => m.Id == $2);",
  17687. ]
  17688. },
  17689. "查询某个创客预设分润,并取值": {
  17690. "prefix": "ym-db-UserProfitSet-FindByPrimaryKey",
  17691. "body": [
  17692. "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
  17693. "if ($1 != null)",
  17694. "{",
  17695. " int UserId = $1.UserId; //创客",
  17696. " int BrandId = $1.BrandId; //品牌",
  17697. " int CardType = $1.CardType; //交易卡类型",
  17698. " int HelpFlag = $1.HelpFlag; //扶持期标识",
  17699. " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例",
  17700. " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比",
  17701. " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间",
  17702. " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数",
  17703. " string Remark = $1.Remark; //备注",
  17704. " int TopUserId = $1.TopUserId; //顶级创客",
  17705. "}"
  17706. ]
  17707. },
  17708. "查询某个创客预设分润,并赋值": {
  17709. "prefix": "ym-db-UserProfitSet-Update",
  17710. "body": [
  17711. "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
  17712. "if ($1 != null)",
  17713. "{",
  17714. " $1.UserId = $2; //创客",
  17715. " $1.BrandId = $3; //品牌",
  17716. " $1.CardType = $4; //交易卡类型",
  17717. " $1.HelpFlag = $5; //扶持期标识",
  17718. " $1.ProfitRate = $6; //创客预设分润比例",
  17719. " $1.ProfitPercent = $7; //创客预设分润百分比",
  17720. " $1.AddOrSubRate = $8; //浮动空间",
  17721. " $1.ProfitRateBase = $9; //分润比例基数",
  17722. " $1.Remark = $10; //备注",
  17723. " $1.TopUserId = $11; //顶级创客",
  17724. "}"
  17725. ]
  17726. },
  17727. "获取创客预设分润数量": {
  17728. "prefix": "ym-db-UserProfitSet-FindAndCount",
  17729. "body": [
  17730. "int $1 = db.UserProfitSet.Count(m => $2);",
  17731. ]
  17732. },
  17733. "添加创客预设分润": {
  17734. "prefix": "ym-db-UserProfitSet-Create",
  17735. "body": [
  17736. "db.UserProfitSet.Add(new UserProfitSet()",
  17737. "{",
  17738. " CreateDate = DateTime.Now,",
  17739. " UpdateDate = DateTime.Now,",
  17740. " UserId = $1, //创客",
  17741. " BrandId = $2, //品牌",
  17742. " CardType = $3, //交易卡类型",
  17743. " HelpFlag = $4, //扶持期标识",
  17744. " ProfitRate = $5, //创客预设分润比例",
  17745. " ProfitPercent = $6, //创客预设分润百分比",
  17746. " AddOrSubRate = $7, //浮动空间",
  17747. " ProfitRateBase = $8, //分润比例基数",
  17748. " Remark = $9, //备注",
  17749. " TopUserId = $10, //顶级创客",
  17750. "});"
  17751. ]
  17752. },"删除某个创客预设分润": {
  17753. "prefix": "ym-db-UserProfitSet-Delete",
  17754. "body": [
  17755. "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
  17756. "if ($1 != null)",
  17757. "{",
  17758. " db.UserProfitSet.Remove($1);",
  17759. "}"
  17760. ]
  17761. },
  17762. "查询创客分润补贴月汇总列表": {
  17763. "prefix": "ym-db-UserProfitSubsidySummary-Find",
  17764. "body": [
  17765. "List<UserProfitSubsidySummary> $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17766. "foreach (UserProfitSubsidySummary $3 in $1)",
  17767. "{",
  17768. "}"
  17769. ]
  17770. },
  17771. "查询创客分润补贴月汇总列表,并取值": {
  17772. "prefix": "ym-db-UserProfitSubsidySummary-FindWithData",
  17773. "body": [
  17774. "List<UserProfitSubsidySummary> $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17775. "foreach (UserProfitSubsidySummary $3 in $1)",
  17776. "{",
  17777. " int UserId = $3.UserId; //创客",
  17778. " int BrandId = $3.BrandId; //品牌",
  17779. " string TradeMonth = $3.TradeMonth; //交易月",
  17780. " string MgrNo = $3.MgrNo; //渠道经理编号",
  17781. " string MgrName = $3.MgrName; //渠道经理姓名",
  17782. " decimal SubsidyTotalProfit = $3.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额",
  17783. " decimal SubsidyJuniorProfit = $3.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  17784. " decimal SubsidyDirectProfit = $3.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  17785. " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
  17786. "}"
  17787. ]
  17788. },
  17789. "查询创客分润补贴月汇总": {
  17790. "prefix": "ym-db-UserProfitSubsidySummary-Exist",
  17791. "body": [
  17792. "bool $1 = db.UserProfitSubsidySummary.Any(m => m.Id == $2);",
  17793. ]
  17794. },
  17795. "查询某个创客分润补贴月汇总,并取值": {
  17796. "prefix": "ym-db-UserProfitSubsidySummary-FindByPrimaryKey",
  17797. "body": [
  17798. "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
  17799. "if ($1 != null)",
  17800. "{",
  17801. " int UserId = $1.UserId; //创客",
  17802. " int BrandId = $1.BrandId; //品牌",
  17803. " string TradeMonth = $1.TradeMonth; //交易月",
  17804. " string MgrNo = $1.MgrNo; //渠道经理编号",
  17805. " string MgrName = $1.MgrName; //渠道经理姓名",
  17806. " decimal SubsidyTotalProfit = $1.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额",
  17807. " decimal SubsidyJuniorProfit = $1.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  17808. " decimal SubsidyDirectProfit = $1.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  17809. " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
  17810. "}"
  17811. ]
  17812. },
  17813. "查询某个创客分润补贴月汇总,并赋值": {
  17814. "prefix": "ym-db-UserProfitSubsidySummary-Update",
  17815. "body": [
  17816. "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
  17817. "if ($1 != null)",
  17818. "{",
  17819. " $1.UserId = $2; //创客",
  17820. " $1.BrandId = $3; //品牌",
  17821. " $1.TradeMonth = $4; //交易月",
  17822. " $1.MgrNo = $5; //渠道经理编号",
  17823. " $1.MgrName = $6; //渠道经理姓名",
  17824. " $1.SubsidyTotalProfit = $7; //商户(非云闪付)贷记卡交易分润补贴总金额",
  17825. " $1.SubsidyJuniorProfit = $8; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  17826. " $1.SubsidyDirectProfit = $9; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  17827. " $1.CheckStatus = $10; //验证和同步账户状态",
  17828. "}"
  17829. ]
  17830. },
  17831. "获取创客分润补贴月汇总数量": {
  17832. "prefix": "ym-db-UserProfitSubsidySummary-FindAndCount",
  17833. "body": [
  17834. "int $1 = db.UserProfitSubsidySummary.Count(m => $2);",
  17835. ]
  17836. },
  17837. "添加创客分润补贴月汇总": {
  17838. "prefix": "ym-db-UserProfitSubsidySummary-Create",
  17839. "body": [
  17840. "db.UserProfitSubsidySummary.Add(new UserProfitSubsidySummary()",
  17841. "{",
  17842. " CreateDate = DateTime.Now,",
  17843. " UpdateDate = DateTime.Now,",
  17844. " UserId = $1, //创客",
  17845. " BrandId = $2, //品牌",
  17846. " TradeMonth = $3, //交易月",
  17847. " MgrNo = $4, //渠道经理编号",
  17848. " MgrName = $5, //渠道经理姓名",
  17849. " SubsidyTotalProfit = $6, //商户(非云闪付)贷记卡交易分润补贴总金额",
  17850. " SubsidyJuniorProfit = $7, //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
  17851. " SubsidyDirectProfit = $8, //直营商户(非云闪付)贷记卡交易分润补贴总金额",
  17852. " CheckStatus = $9, //验证和同步账户状态",
  17853. "});"
  17854. ]
  17855. },"删除某个创客分润补贴月汇总": {
  17856. "prefix": "ym-db-UserProfitSubsidySummary-Delete",
  17857. "body": [
  17858. "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
  17859. "if ($1 != null)",
  17860. "{",
  17861. " db.UserProfitSubsidySummary.Remove($1);",
  17862. "}"
  17863. ]
  17864. },
  17865. "查询创客职级信息列表": {
  17866. "prefix": "ym-db-UserRank-Find",
  17867. "body": [
  17868. "List<UserRank> $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17869. "foreach (UserRank $3 in $1)",
  17870. "{",
  17871. "}"
  17872. ]
  17873. },
  17874. "查询创客职级信息列表,并取值": {
  17875. "prefix": "ym-db-UserRank-FindWithData",
  17876. "body": [
  17877. "List<UserRank> $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17878. "foreach (UserRank $3 in $1)",
  17879. "{",
  17880. " int UserId = $3.UserId; //创客",
  17881. " int Rank = $3.Rank; //当前等级",
  17882. " int WhiteRank = $3.WhiteRank; //白名单等级",
  17883. " int NextRank = $3.NextRank; //下个等级",
  17884. " int StatYear = $3.StatYear; //统计年份",
  17885. " int StatMonth = $3.StatMonth; //统计月份",
  17886. " decimal TradeAmt = $3.TradeAmt; //团队交易总额",
  17887. " int ExceedVal = $3.ExceedVal; //超越值",
  17888. " ulong UpgradeFlag = $3.UpgradeFlag; //升级标识",
  17889. " DateTime OperateDate = $3.OperateDate; //操作时间",
  17890. "}"
  17891. ]
  17892. },
  17893. "查询创客职级信息": {
  17894. "prefix": "ym-db-UserRank-Exist",
  17895. "body": [
  17896. "bool $1 = db.UserRank.Any(m => m.Id == $2);",
  17897. ]
  17898. },
  17899. "查询某个创客职级信息,并取值": {
  17900. "prefix": "ym-db-UserRank-FindByPrimaryKey",
  17901. "body": [
  17902. "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
  17903. "if ($1 != null)",
  17904. "{",
  17905. " int UserId = $1.UserId; //创客",
  17906. " int Rank = $1.Rank; //当前等级",
  17907. " int WhiteRank = $1.WhiteRank; //白名单等级",
  17908. " int NextRank = $1.NextRank; //下个等级",
  17909. " int StatYear = $1.StatYear; //统计年份",
  17910. " int StatMonth = $1.StatMonth; //统计月份",
  17911. " decimal TradeAmt = $1.TradeAmt; //团队交易总额",
  17912. " int ExceedVal = $1.ExceedVal; //超越值",
  17913. " ulong UpgradeFlag = $1.UpgradeFlag; //升级标识",
  17914. " DateTime OperateDate = $1.OperateDate; //操作时间",
  17915. "}"
  17916. ]
  17917. },
  17918. "查询某个创客职级信息,并赋值": {
  17919. "prefix": "ym-db-UserRank-Update",
  17920. "body": [
  17921. "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
  17922. "if ($1 != null)",
  17923. "{",
  17924. " $1.UserId = $2; //创客",
  17925. " $1.Rank = $3; //当前等级",
  17926. " $1.WhiteRank = $4; //白名单等级",
  17927. " $1.NextRank = $5; //下个等级",
  17928. " $1.StatYear = $6; //统计年份",
  17929. " $1.StatMonth = $7; //统计月份",
  17930. " $1.TradeAmt = $8; //团队交易总额",
  17931. " $1.ExceedVal = $9; //超越值",
  17932. " $1.UpgradeFlag = $10; //升级标识",
  17933. " $1.OperateDate = $11; //操作时间",
  17934. "}"
  17935. ]
  17936. },
  17937. "获取创客职级信息数量": {
  17938. "prefix": "ym-db-UserRank-FindAndCount",
  17939. "body": [
  17940. "int $1 = db.UserRank.Count(m => $2);",
  17941. ]
  17942. },
  17943. "添加创客职级信息": {
  17944. "prefix": "ym-db-UserRank-Create",
  17945. "body": [
  17946. "db.UserRank.Add(new UserRank()",
  17947. "{",
  17948. " CreateDate = DateTime.Now,",
  17949. " UpdateDate = DateTime.Now,",
  17950. " UserId = $1, //创客",
  17951. " Rank = $2, //当前等级",
  17952. " WhiteRank = $3, //白名单等级",
  17953. " NextRank = $4, //下个等级",
  17954. " StatYear = $5, //统计年份",
  17955. " StatMonth = $6, //统计月份",
  17956. " TradeAmt = $7, //团队交易总额",
  17957. " ExceedVal = $8, //超越值",
  17958. " UpgradeFlag = $9, //升级标识",
  17959. " OperateDate = $10, //操作时间",
  17960. "});"
  17961. ]
  17962. },"删除某个创客职级信息": {
  17963. "prefix": "ym-db-UserRank-Delete",
  17964. "body": [
  17965. "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
  17966. "if ($1 != null)",
  17967. "{",
  17968. " db.UserRank.Remove($1);",
  17969. "}"
  17970. ]
  17971. },
  17972. "查询创客预设职级列表": {
  17973. "prefix": "ym-db-UserRankWhite-Find",
  17974. "body": [
  17975. "List<UserRankWhite> $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17976. "foreach (UserRankWhite $3 in $1)",
  17977. "{",
  17978. "}"
  17979. ]
  17980. },
  17981. "查询创客预设职级列表,并取值": {
  17982. "prefix": "ym-db-UserRankWhite-FindWithData",
  17983. "body": [
  17984. "List<UserRankWhite> $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  17985. "foreach (UserRankWhite $3 in $1)",
  17986. "{",
  17987. " int UserId = $3.UserId; //用户",
  17988. " int Rank = $3.Rank; //当前等级类型",
  17989. "}"
  17990. ]
  17991. },
  17992. "查询创客预设职级": {
  17993. "prefix": "ym-db-UserRankWhite-Exist",
  17994. "body": [
  17995. "bool $1 = db.UserRankWhite.Any(m => m.Id == $2);",
  17996. ]
  17997. },
  17998. "查询某个创客预设职级,并取值": {
  17999. "prefix": "ym-db-UserRankWhite-FindByPrimaryKey",
  18000. "body": [
  18001. "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
  18002. "if ($1 != null)",
  18003. "{",
  18004. " int UserId = $1.UserId; //用户",
  18005. " int Rank = $1.Rank; //当前等级类型",
  18006. "}"
  18007. ]
  18008. },
  18009. "查询某个创客预设职级,并赋值": {
  18010. "prefix": "ym-db-UserRankWhite-Update",
  18011. "body": [
  18012. "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
  18013. "if ($1 != null)",
  18014. "{",
  18015. " $1.UserId = $2; //用户",
  18016. " $1.Rank = $3; //当前等级类型",
  18017. "}"
  18018. ]
  18019. },
  18020. "获取创客预设职级数量": {
  18021. "prefix": "ym-db-UserRankWhite-FindAndCount",
  18022. "body": [
  18023. "int $1 = db.UserRankWhite.Count(m => $2);",
  18024. ]
  18025. },
  18026. "添加创客预设职级": {
  18027. "prefix": "ym-db-UserRankWhite-Create",
  18028. "body": [
  18029. "db.UserRankWhite.Add(new UserRankWhite()",
  18030. "{",
  18031. " CreateDate = DateTime.Now,",
  18032. " UpdateDate = DateTime.Now,",
  18033. " UserId = $1, //用户",
  18034. " Rank = $2, //当前等级类型",
  18035. "});"
  18036. ]
  18037. },"删除某个创客预设职级": {
  18038. "prefix": "ym-db-UserRankWhite-Delete",
  18039. "body": [
  18040. "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
  18041. "if ($1 != null)",
  18042. "{",
  18043. " db.UserRankWhite.Remove($1);",
  18044. "}"
  18045. ]
  18046. },
  18047. "查询返利明细表列表": {
  18048. "prefix": "ym-db-UserRebateDetail-Find",
  18049. "body": [
  18050. "List<UserRebateDetail> $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18051. "foreach (UserRebateDetail $3 in $1)",
  18052. "{",
  18053. "}"
  18054. ]
  18055. },
  18056. "查询返利明细表列表,并取值": {
  18057. "prefix": "ym-db-UserRebateDetail-FindWithData",
  18058. "body": [
  18059. "List<UserRebateDetail> $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18060. "foreach (UserRebateDetail $3 in $1)",
  18061. "{",
  18062. " string TradeMonth = $3.TradeMonth; //交易月份",
  18063. " string TradeDate = $3.TradeDate; //达标日期",
  18064. " int UserId = $3.UserId; //创客",
  18065. " string MgrNo = $3.MgrNo; //渠道经理编号",
  18066. " string MgrName = $3.MgrName; //渠道经理姓名",
  18067. " int ProductType = $3.ProductType; //产品类型",
  18068. " string ProductName = $3.ProductName; //产品名称",
  18069. " int MerchantId = $3.MerchantId; //商户",
  18070. " string ChannelMerNo = $3.ChannelMerNo; //渠道商户编号",
  18071. " int RebateType = $3.RebateType; //返利类型",
  18072. " int RebateMonthCount = $3.RebateMonthCount; //返利周期数",
  18073. " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
  18074. " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
  18075. " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
  18076. " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额",
  18077. " string RebateRewardNo = $3.RebateRewardNo; //达标返利单号",
  18078. " string Remark = $3.Remark; //备注",
  18079. "}"
  18080. ]
  18081. },
  18082. "查询返利明细表": {
  18083. "prefix": "ym-db-UserRebateDetail-Exist",
  18084. "body": [
  18085. "bool $1 = db.UserRebateDetail.Any(m => m.Id == $2);",
  18086. ]
  18087. },
  18088. "查询某个返利明细表,并取值": {
  18089. "prefix": "ym-db-UserRebateDetail-FindByPrimaryKey",
  18090. "body": [
  18091. "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
  18092. "if ($1 != null)",
  18093. "{",
  18094. " string TradeMonth = $1.TradeMonth; //交易月份",
  18095. " string TradeDate = $1.TradeDate; //达标日期",
  18096. " int UserId = $1.UserId; //创客",
  18097. " string MgrNo = $1.MgrNo; //渠道经理编号",
  18098. " string MgrName = $1.MgrName; //渠道经理姓名",
  18099. " int ProductType = $1.ProductType; //产品类型",
  18100. " string ProductName = $1.ProductName; //产品名称",
  18101. " int MerchantId = $1.MerchantId; //商户",
  18102. " string ChannelMerNo = $1.ChannelMerNo; //渠道商户编号",
  18103. " int RebateType = $1.RebateType; //返利类型",
  18104. " int RebateMonthCount = $1.RebateMonthCount; //返利周期数",
  18105. " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
  18106. " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
  18107. " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
  18108. " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额",
  18109. " string RebateRewardNo = $1.RebateRewardNo; //达标返利单号",
  18110. " string Remark = $1.Remark; //备注",
  18111. "}"
  18112. ]
  18113. },
  18114. "查询某个返利明细表,并赋值": {
  18115. "prefix": "ym-db-UserRebateDetail-Update",
  18116. "body": [
  18117. "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
  18118. "if ($1 != null)",
  18119. "{",
  18120. " $1.TradeMonth = $2; //交易月份",
  18121. " $1.TradeDate = $3; //达标日期",
  18122. " $1.UserId = $4; //创客",
  18123. " $1.MgrNo = $5; //渠道经理编号",
  18124. " $1.MgrName = $6; //渠道经理姓名",
  18125. " $1.ProductType = $7; //产品类型",
  18126. " $1.ProductName = $8; //产品名称",
  18127. " $1.MerchantId = $9; //商户",
  18128. " $1.ChannelMerNo = $10; //渠道商户编号",
  18129. " $1.RebateType = $11; //返利类型",
  18130. " $1.RebateMonthCount = $12; //返利周期数",
  18131. " $1.CreditTradeAmt = $13; //贷记卡交易总金额",
  18132. " $1.DebitTradeAmt = $14; //借记卡交易总金额",
  18133. " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额",
  18134. " $1.DebitRewardAmount = $16; //借记卡交易奖励金额",
  18135. " $1.RebateRewardNo = $17; //达标返利单号",
  18136. " $1.Remark = $18; //备注",
  18137. "}"
  18138. ]
  18139. },
  18140. "获取返利明细表数量": {
  18141. "prefix": "ym-db-UserRebateDetail-FindAndCount",
  18142. "body": [
  18143. "int $1 = db.UserRebateDetail.Count(m => $2);",
  18144. ]
  18145. },
  18146. "添加返利明细表": {
  18147. "prefix": "ym-db-UserRebateDetail-Create",
  18148. "body": [
  18149. "db.UserRebateDetail.Add(new UserRebateDetail()",
  18150. "{",
  18151. " CreateDate = DateTime.Now,",
  18152. " UpdateDate = DateTime.Now,",
  18153. " TradeMonth = $1, //交易月份",
  18154. " TradeDate = $2, //达标日期",
  18155. " UserId = $3, //创客",
  18156. " MgrNo = $4, //渠道经理编号",
  18157. " MgrName = $5, //渠道经理姓名",
  18158. " ProductType = $6, //产品类型",
  18159. " ProductName = $7, //产品名称",
  18160. " MerchantId = $8, //商户",
  18161. " ChannelMerNo = $9, //渠道商户编号",
  18162. " RebateType = $10, //返利类型",
  18163. " RebateMonthCount = $11, //返利周期数",
  18164. " CreditTradeAmt = $12, //贷记卡交易总金额",
  18165. " DebitTradeAmt = $13, //借记卡交易总金额",
  18166. " CreditRewardAmount = $14, //贷记卡交易奖励金额",
  18167. " DebitRewardAmount = $15, //借记卡交易奖励金额",
  18168. " RebateRewardNo = $16, //达标返利单号",
  18169. " Remark = $17, //备注",
  18170. "});"
  18171. ]
  18172. },"删除某个返利明细表": {
  18173. "prefix": "ym-db-UserRebateDetail-Delete",
  18174. "body": [
  18175. "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
  18176. "if ($1 != null)",
  18177. "{",
  18178. " db.UserRebateDetail.Remove($1);",
  18179. "}"
  18180. ]
  18181. },
  18182. "查询创客列表": {
  18183. "prefix": "ym-db-Users-Find",
  18184. "body": [
  18185. "List<Users> $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18186. "foreach (Users $3 in $1)",
  18187. "{",
  18188. "}"
  18189. ]
  18190. },
  18191. "查询创客列表,并取值": {
  18192. "prefix": "ym-db-Users-FindWithData",
  18193. "body": [
  18194. "List<Users> $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18195. "foreach (Users $3 in $1)",
  18196. "{",
  18197. " string NickName = $3.NickName; //昵称",
  18198. " string RealName = $3.RealName; //真实姓名",
  18199. " int Sex = $3.Sex; //性别",
  18200. " string CertId = $3.CertId; //身份证号",
  18201. " string Areas = $3.Areas; //所在地区",
  18202. " string Address = $3.Address; //详细地址",
  18203. " string HeadPhoto = $3.HeadPhoto; //头像",
  18204. " int ParentUserId = $3.ParentUserId; //父级Id",
  18205. " int UserLevel = $3.UserLevel; //创客等级",
  18206. " string CardNo = $3.CardNo; //卡号",
  18207. " string Mobile = $3.Mobile; //手机号",
  18208. " string GroupId = $3.GroupId; //分组",
  18209. " string Tags = $3.Tags; //标签",
  18210. " string ParentNav = $3.ParentNav; //父级集合",
  18211. " string LoginPwd = $3.LoginPwd; //登录密码",
  18212. " string PayPwd = $3.PayPwd; //支付密码",
  18213. " string CarIds = $3.CarIds; //购物车Id集合",
  18214. " string OpenId = $3.OpenId; //OpenId",
  18215. " string AlipayUserId = $3.AlipayUserId; //支付宝用户Id",
  18216. " ulong IsNewUser = $3.IsNewUser; //是否新创客",
  18217. " string IdCardEndNo = $3.IdCardEndNo; //身份证后四位",
  18218. " string SettleBankCardNo = $3.SettleBankCardNo; //结算银行卡号",
  18219. " string SettleBankName = $3.SettleBankName; //结算银行名称",
  18220. " string ReferenceCode = $3.ReferenceCode; //推荐码",
  18221. " int ReferralUserId = $3.ReferralUserId; //引荐人",
  18222. " string CardRecCode = $3.CardRecCode; //办卡分享图片地址",
  18223. " string ReferenceQrCode = $3.ReferenceQrCode; //推广二维码地址",
  18224. " string SignImgUrl = $3.SignImgUrl; //特定协议签名图片地址",
  18225. " int UserType = $3.UserType; //创客类型",
  18226. " int UserProperty = $3.UserProperty; //创客属性",
  18227. " int MerchantType = $3.MerchantType; //商户创客类型",
  18228. " DateTime MerchantDate = $3.MerchantDate; //成为商户型创客时间",
  18229. " int LoginStatus = $3.LoginStatus; //登录状态",
  18230. " int AuditStatus = $3.AuditStatus; //审核状态",
  18231. " ulong LockStatus = $3.LockStatus; //锁定状态",
  18232. " ulong AuthFlag = $3.AuthFlag; //实名标识",
  18233. " DateTime AuthDate = $3.AuthDate; //实名时间",
  18234. " ulong RiskFlag = $3.RiskFlag; //风控标识",
  18235. " string RiskRemark = $3.RiskRemark; //风控备注",
  18236. " string RreezeRemark = $3.RreezeRemark; //账户冻结备注信息",
  18237. " string SettleRemark = $3.SettleRemark; //结算金额调整备注",
  18238. " string AccessToken = $3.AccessToken; //创客登录授权令牌",
  18239. " DateTime ExpiredDate = $3.ExpiredDate; //过期时间",
  18240. " string DeviceId = $3.DeviceId; //设备ID",
  18241. " string DeviceToken = $3.DeviceToken; //设备令牌",
  18242. " string CertFrontImage = $3.CertFrontImage; //身份证正面照",
  18243. " string CertReverseImage = $3.CertReverseImage; //身份证反面照",
  18244. " string HandCertImage = $3.HandCertImage; //手持身份证",
  18245. " string BankCardPositiveImage = $3.BankCardPositiveImage; //银行卡正面照",
  18246. " string Remark = $3.Remark; //备注信息",
  18247. " string HandPwd = $3.HandPwd; //手势密码",
  18248. " string MakerCode = $3.MakerCode; //创客编号",
  18249. " decimal SettleAmount = $3.SettleAmount; //最低结算金额",
  18250. " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额",
  18251. " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额",
  18252. " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励",
  18253. " DateTime CitySetDate = $3.CitySetDate; //省市设置时间",
  18254. " DateTime CertValidStartDate = $3.CertValidStartDate; //身份证有效期开始时间",
  18255. " DateTime CertValidEndDate = $3.CertValidEndDate; //身份证有效期结束时间",
  18256. " string SettleBankCardName = $3.SettleBankCardName; //结算银行卡户名",
  18257. " int AgentLevel = $3.AgentLevel; //代理等级",
  18258. " string AgentAreas = $3.AgentAreas; //代理区域",
  18259. "}"
  18260. ]
  18261. },
  18262. "查询创客": {
  18263. "prefix": "ym-db-Users-Exist",
  18264. "body": [
  18265. "bool $1 = db.Users.Any(m => m.Id == $2);",
  18266. ]
  18267. },
  18268. "查询某个创客,并取值": {
  18269. "prefix": "ym-db-Users-FindByPrimaryKey",
  18270. "body": [
  18271. "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
  18272. "if ($1 != null)",
  18273. "{",
  18274. " string NickName = $1.NickName; //昵称",
  18275. " string RealName = $1.RealName; //真实姓名",
  18276. " int Sex = $1.Sex; //性别",
  18277. " string CertId = $1.CertId; //身份证号",
  18278. " string Areas = $1.Areas; //所在地区",
  18279. " string Address = $1.Address; //详细地址",
  18280. " string HeadPhoto = $1.HeadPhoto; //头像",
  18281. " int ParentUserId = $1.ParentUserId; //父级Id",
  18282. " int UserLevel = $1.UserLevel; //创客等级",
  18283. " string CardNo = $1.CardNo; //卡号",
  18284. " string Mobile = $1.Mobile; //手机号",
  18285. " string GroupId = $1.GroupId; //分组",
  18286. " string Tags = $1.Tags; //标签",
  18287. " string ParentNav = $1.ParentNav; //父级集合",
  18288. " string LoginPwd = $1.LoginPwd; //登录密码",
  18289. " string PayPwd = $1.PayPwd; //支付密码",
  18290. " string CarIds = $1.CarIds; //购物车Id集合",
  18291. " string OpenId = $1.OpenId; //OpenId",
  18292. " string AlipayUserId = $1.AlipayUserId; //支付宝用户Id",
  18293. " ulong IsNewUser = $1.IsNewUser; //是否新创客",
  18294. " string IdCardEndNo = $1.IdCardEndNo; //身份证后四位",
  18295. " string SettleBankCardNo = $1.SettleBankCardNo; //结算银行卡号",
  18296. " string SettleBankName = $1.SettleBankName; //结算银行名称",
  18297. " string ReferenceCode = $1.ReferenceCode; //推荐码",
  18298. " int ReferralUserId = $1.ReferralUserId; //引荐人",
  18299. " string CardRecCode = $1.CardRecCode; //办卡分享图片地址",
  18300. " string ReferenceQrCode = $1.ReferenceQrCode; //推广二维码地址",
  18301. " string SignImgUrl = $1.SignImgUrl; //特定协议签名图片地址",
  18302. " int UserType = $1.UserType; //创客类型",
  18303. " int UserProperty = $1.UserProperty; //创客属性",
  18304. " int MerchantType = $1.MerchantType; //商户创客类型",
  18305. " DateTime MerchantDate = $1.MerchantDate; //成为商户型创客时间",
  18306. " int LoginStatus = $1.LoginStatus; //登录状态",
  18307. " int AuditStatus = $1.AuditStatus; //审核状态",
  18308. " ulong LockStatus = $1.LockStatus; //锁定状态",
  18309. " ulong AuthFlag = $1.AuthFlag; //实名标识",
  18310. " DateTime AuthDate = $1.AuthDate; //实名时间",
  18311. " ulong RiskFlag = $1.RiskFlag; //风控标识",
  18312. " string RiskRemark = $1.RiskRemark; //风控备注",
  18313. " string RreezeRemark = $1.RreezeRemark; //账户冻结备注信息",
  18314. " string SettleRemark = $1.SettleRemark; //结算金额调整备注",
  18315. " string AccessToken = $1.AccessToken; //创客登录授权令牌",
  18316. " DateTime ExpiredDate = $1.ExpiredDate; //过期时间",
  18317. " string DeviceId = $1.DeviceId; //设备ID",
  18318. " string DeviceToken = $1.DeviceToken; //设备令牌",
  18319. " string CertFrontImage = $1.CertFrontImage; //身份证正面照",
  18320. " string CertReverseImage = $1.CertReverseImage; //身份证反面照",
  18321. " string HandCertImage = $1.HandCertImage; //手持身份证",
  18322. " string BankCardPositiveImage = $1.BankCardPositiveImage; //银行卡正面照",
  18323. " string Remark = $1.Remark; //备注信息",
  18324. " string HandPwd = $1.HandPwd; //手势密码",
  18325. " string MakerCode = $1.MakerCode; //创客编号",
  18326. " decimal SettleAmount = $1.SettleAmount; //最低结算金额",
  18327. " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额",
  18328. " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额",
  18329. " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励",
  18330. " DateTime CitySetDate = $1.CitySetDate; //省市设置时间",
  18331. " DateTime CertValidStartDate = $1.CertValidStartDate; //身份证有效期开始时间",
  18332. " DateTime CertValidEndDate = $1.CertValidEndDate; //身份证有效期结束时间",
  18333. " string SettleBankCardName = $1.SettleBankCardName; //结算银行卡户名",
  18334. " int AgentLevel = $1.AgentLevel; //代理等级",
  18335. " string AgentAreas = $1.AgentAreas; //代理区域",
  18336. "}"
  18337. ]
  18338. },
  18339. "查询某个创客,并赋值": {
  18340. "prefix": "ym-db-Users-Update",
  18341. "body": [
  18342. "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
  18343. "if ($1 != null)",
  18344. "{",
  18345. " $1.NickName = $2; //昵称",
  18346. " $1.RealName = $3; //真实姓名",
  18347. " $1.Sex = $4; //性别",
  18348. " $1.CertId = $5; //身份证号",
  18349. " $1.Areas = $6; //所在地区",
  18350. " $1.Address = $7; //详细地址",
  18351. " $1.HeadPhoto = $8; //头像",
  18352. " $1.ParentUserId = $9; //父级Id",
  18353. " $1.UserLevel = $10; //创客等级",
  18354. " $1.CardNo = $11; //卡号",
  18355. " $1.Mobile = $12; //手机号",
  18356. " $1.GroupId = $13; //分组",
  18357. " $1.Tags = $14; //标签",
  18358. " $1.ParentNav = $15; //父级集合",
  18359. " $1.LoginPwd = $16; //登录密码",
  18360. " $1.PayPwd = $17; //支付密码",
  18361. " $1.CarIds = $18; //购物车Id集合",
  18362. " $1.OpenId = $19; //OpenId",
  18363. " $1.AlipayUserId = $20; //支付宝用户Id",
  18364. " $1.IsNewUser = $21; //是否新创客",
  18365. " $1.IdCardEndNo = $22; //身份证后四位",
  18366. " $1.SettleBankCardNo = $23; //结算银行卡号",
  18367. " $1.SettleBankName = $24; //结算银行名称",
  18368. " $1.ReferenceCode = $25; //推荐码",
  18369. " $1.ReferralUserId = $26; //引荐人",
  18370. " $1.CardRecCode = $27; //办卡分享图片地址",
  18371. " $1.ReferenceQrCode = $28; //推广二维码地址",
  18372. " $1.SignImgUrl = $29; //特定协议签名图片地址",
  18373. " $1.UserType = $30; //创客类型",
  18374. " $1.UserProperty = $31; //创客属性",
  18375. " $1.MerchantType = $32; //商户创客类型",
  18376. " $1.MerchantDate = $33; //成为商户型创客时间",
  18377. " $1.LoginStatus = $34; //登录状态",
  18378. " $1.AuditStatus = $35; //审核状态",
  18379. " $1.LockStatus = $36; //锁定状态",
  18380. " $1.AuthFlag = $37; //实名标识",
  18381. " $1.AuthDate = $38; //实名时间",
  18382. " $1.RiskFlag = $39; //风控标识",
  18383. " $1.RiskRemark = $40; //风控备注",
  18384. " $1.RreezeRemark = $41; //账户冻结备注信息",
  18385. " $1.SettleRemark = $42; //结算金额调整备注",
  18386. " $1.AccessToken = $43; //创客登录授权令牌",
  18387. " $1.ExpiredDate = $44; //过期时间",
  18388. " $1.DeviceId = $45; //设备ID",
  18389. " $1.DeviceToken = $46; //设备令牌",
  18390. " $1.CertFrontImage = $47; //身份证正面照",
  18391. " $1.CertReverseImage = $48; //身份证反面照",
  18392. " $1.HandCertImage = $49; //手持身份证",
  18393. " $1.BankCardPositiveImage = $50; //银行卡正面照",
  18394. " $1.Remark = $51; //备注信息",
  18395. " $1.HandPwd = $52; //手势密码",
  18396. " $1.MakerCode = $53; //创客编号",
  18397. " $1.SettleAmount = $54; //最低结算金额",
  18398. " $1.CashFreezeAmt = $55; //提现冻结金额",
  18399. " $1.ActiveRewardAmount = $56; //激活奖励金额",
  18400. " $1.ProfitRewardRate = $57; //分润奖励",
  18401. " $1.CitySetDate = $58; //省市设置时间",
  18402. " $1.CertValidStartDate = $59; //身份证有效期开始时间",
  18403. " $1.CertValidEndDate = $60; //身份证有效期结束时间",
  18404. " $1.SettleBankCardName = $61; //结算银行卡户名",
  18405. " $1.AgentLevel = $62; //代理等级",
  18406. " $1.AgentAreas = $63; //代理区域",
  18407. "}"
  18408. ]
  18409. },
  18410. "获取创客数量": {
  18411. "prefix": "ym-db-Users-FindAndCount",
  18412. "body": [
  18413. "int $1 = db.Users.Count(m => $2);",
  18414. ]
  18415. },
  18416. "添加创客": {
  18417. "prefix": "ym-db-Users-Create",
  18418. "body": [
  18419. "db.Users.Add(new Users()",
  18420. "{",
  18421. " CreateDate = DateTime.Now,",
  18422. " UpdateDate = DateTime.Now,",
  18423. " NickName = $1, //昵称",
  18424. " RealName = $2, //真实姓名",
  18425. " Sex = $3, //性别",
  18426. " CertId = $4, //身份证号",
  18427. " Areas = $5, //所在地区",
  18428. " Address = $6, //详细地址",
  18429. " HeadPhoto = $7, //头像",
  18430. " ParentUserId = $8, //父级Id",
  18431. " UserLevel = $9, //创客等级",
  18432. " CardNo = $10, //卡号",
  18433. " Mobile = $11, //手机号",
  18434. " GroupId = $12, //分组",
  18435. " Tags = $13, //标签",
  18436. " ParentNav = $14, //父级集合",
  18437. " LoginPwd = $15, //登录密码",
  18438. " PayPwd = $16, //支付密码",
  18439. " CarIds = $17, //购物车Id集合",
  18440. " OpenId = $18, //OpenId",
  18441. " AlipayUserId = $19, //支付宝用户Id",
  18442. " IsNewUser = $20, //是否新创客",
  18443. " IdCardEndNo = $21, //身份证后四位",
  18444. " SettleBankCardNo = $22, //结算银行卡号",
  18445. " SettleBankName = $23, //结算银行名称",
  18446. " ReferenceCode = $24, //推荐码",
  18447. " ReferralUserId = $25, //引荐人",
  18448. " CardRecCode = $26, //办卡分享图片地址",
  18449. " ReferenceQrCode = $27, //推广二维码地址",
  18450. " SignImgUrl = $28, //特定协议签名图片地址",
  18451. " UserType = $29, //创客类型",
  18452. " UserProperty = $30, //创客属性",
  18453. " MerchantType = $31, //商户创客类型",
  18454. " MerchantDate = $32, //成为商户型创客时间",
  18455. " LoginStatus = $33, //登录状态",
  18456. " AuditStatus = $34, //审核状态",
  18457. " LockStatus = $35, //锁定状态",
  18458. " AuthFlag = $36, //实名标识",
  18459. " AuthDate = $37, //实名时间",
  18460. " RiskFlag = $38, //风控标识",
  18461. " RiskRemark = $39, //风控备注",
  18462. " RreezeRemark = $40, //账户冻结备注信息",
  18463. " SettleRemark = $41, //结算金额调整备注",
  18464. " AccessToken = $42, //创客登录授权令牌",
  18465. " ExpiredDate = $43, //过期时间",
  18466. " DeviceId = $44, //设备ID",
  18467. " DeviceToken = $45, //设备令牌",
  18468. " CertFrontImage = $46, //身份证正面照",
  18469. " CertReverseImage = $47, //身份证反面照",
  18470. " HandCertImage = $48, //手持身份证",
  18471. " BankCardPositiveImage = $49, //银行卡正面照",
  18472. " Remark = $50, //备注信息",
  18473. " HandPwd = $51, //手势密码",
  18474. " MakerCode = $52, //创客编号",
  18475. " SettleAmount = $53, //最低结算金额",
  18476. " CashFreezeAmt = $54, //提现冻结金额",
  18477. " ActiveRewardAmount = $55, //激活奖励金额",
  18478. " ProfitRewardRate = $56, //分润奖励",
  18479. " CitySetDate = $57, //省市设置时间",
  18480. " CertValidStartDate = $58, //身份证有效期开始时间",
  18481. " CertValidEndDate = $59, //身份证有效期结束时间",
  18482. " SettleBankCardName = $60, //结算银行卡户名",
  18483. " AgentLevel = $61, //代理等级",
  18484. " AgentAreas = $62, //代理区域",
  18485. "});"
  18486. ]
  18487. },"删除某个创客": {
  18488. "prefix": "ym-db-Users-Delete",
  18489. "body": [
  18490. "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
  18491. "if ($1 != null)",
  18492. "{",
  18493. " db.Users.Remove($1);",
  18494. "}"
  18495. ]
  18496. },
  18497. "查询机具激活限制信息列表": {
  18498. "prefix": "ym-db-UserSnActInfo-Find",
  18499. "body": [
  18500. "List<UserSnActInfo> $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18501. "foreach (UserSnActInfo $3 in $1)",
  18502. "{",
  18503. "}"
  18504. ]
  18505. },
  18506. "查询机具激活限制信息列表,并取值": {
  18507. "prefix": "ym-db-UserSnActInfo-FindWithData",
  18508. "body": [
  18509. "List<UserSnActInfo> $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18510. "foreach (UserSnActInfo $3 in $1)",
  18511. "{",
  18512. " int UserId = $3.UserId; //创客",
  18513. " int BrandId = $3.BrandId; //产品类型",
  18514. " string SnNo = $3.SnNo; //SN编号",
  18515. " int SnType = $3.SnType; //SN机具类型",
  18516. " DateTime SnShipDate = $3.SnShipDate; //发货时间",
  18517. " int SnStoreId = $3.SnStoreId; //SN仓库",
  18518. " string EffectStartActDate = $3.EffectStartActDate; //有效开始激活时间",
  18519. " string EffectEndActDate = $3.EffectEndActDate; //有效结束激活时间",
  18520. " string EffectStartCycleDate = $3.EffectStartCycleDate; //有效开始循环时间",
  18521. " string EffectEndCycleDate = $3.EffectEndCycleDate; //有效结束循环时间",
  18522. " int ActUserId = $3.ActUserId; //激活奖励创客",
  18523. " int ActiveStatus = $3.ActiveStatus; //商户激活状态",
  18524. " string StandardDate = $3.StandardDate; //激活日期",
  18525. " string SourceSnNo = $3.SourceSnNo; //源SN编号",
  18526. " int SourceSnType = $3.SourceSnType; //源SN机具类型",
  18527. " DateTime SourceShipDate = $3.SourceShipDate; //源SN发货时间",
  18528. " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库",
  18529. " string Remark = $3.Remark; //备注",
  18530. "}"
  18531. ]
  18532. },
  18533. "查询机具激活限制信息": {
  18534. "prefix": "ym-db-UserSnActInfo-Exist",
  18535. "body": [
  18536. "bool $1 = db.UserSnActInfo.Any(m => m.Id == $2);",
  18537. ]
  18538. },
  18539. "查询某个机具激活限制信息,并取值": {
  18540. "prefix": "ym-db-UserSnActInfo-FindByPrimaryKey",
  18541. "body": [
  18542. "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
  18543. "if ($1 != null)",
  18544. "{",
  18545. " int UserId = $1.UserId; //创客",
  18546. " int BrandId = $1.BrandId; //产品类型",
  18547. " string SnNo = $1.SnNo; //SN编号",
  18548. " int SnType = $1.SnType; //SN机具类型",
  18549. " DateTime SnShipDate = $1.SnShipDate; //发货时间",
  18550. " int SnStoreId = $1.SnStoreId; //SN仓库",
  18551. " string EffectStartActDate = $1.EffectStartActDate; //有效开始激活时间",
  18552. " string EffectEndActDate = $1.EffectEndActDate; //有效结束激活时间",
  18553. " string EffectStartCycleDate = $1.EffectStartCycleDate; //有效开始循环时间",
  18554. " string EffectEndCycleDate = $1.EffectEndCycleDate; //有效结束循环时间",
  18555. " int ActUserId = $1.ActUserId; //激活奖励创客",
  18556. " int ActiveStatus = $1.ActiveStatus; //商户激活状态",
  18557. " string StandardDate = $1.StandardDate; //激活日期",
  18558. " string SourceSnNo = $1.SourceSnNo; //源SN编号",
  18559. " int SourceSnType = $1.SourceSnType; //源SN机具类型",
  18560. " DateTime SourceShipDate = $1.SourceShipDate; //源SN发货时间",
  18561. " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库",
  18562. " string Remark = $1.Remark; //备注",
  18563. "}"
  18564. ]
  18565. },
  18566. "查询某个机具激活限制信息,并赋值": {
  18567. "prefix": "ym-db-UserSnActInfo-Update",
  18568. "body": [
  18569. "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
  18570. "if ($1 != null)",
  18571. "{",
  18572. " $1.UserId = $2; //创客",
  18573. " $1.BrandId = $3; //产品类型",
  18574. " $1.SnNo = $4; //SN编号",
  18575. " $1.SnType = $5; //SN机具类型",
  18576. " $1.SnShipDate = $6; //发货时间",
  18577. " $1.SnStoreId = $7; //SN仓库",
  18578. " $1.EffectStartActDate = $8; //有效开始激活时间",
  18579. " $1.EffectEndActDate = $9; //有效结束激活时间",
  18580. " $1.EffectStartCycleDate = $10; //有效开始循环时间",
  18581. " $1.EffectEndCycleDate = $11; //有效结束循环时间",
  18582. " $1.ActUserId = $12; //激活奖励创客",
  18583. " $1.ActiveStatus = $13; //商户激活状态",
  18584. " $1.StandardDate = $14; //激活日期",
  18585. " $1.SourceSnNo = $15; //源SN编号",
  18586. " $1.SourceSnType = $16; //源SN机具类型",
  18587. " $1.SourceShipDate = $17; //源SN发货时间",
  18588. " $1.SourceStoreId = $18; //源SN发货你仓库",
  18589. " $1.Remark = $19; //备注",
  18590. "}"
  18591. ]
  18592. },
  18593. "获取机具激活限制信息数量": {
  18594. "prefix": "ym-db-UserSnActInfo-FindAndCount",
  18595. "body": [
  18596. "int $1 = db.UserSnActInfo.Count(m => $2);",
  18597. ]
  18598. },
  18599. "添加机具激活限制信息": {
  18600. "prefix": "ym-db-UserSnActInfo-Create",
  18601. "body": [
  18602. "db.UserSnActInfo.Add(new UserSnActInfo()",
  18603. "{",
  18604. " CreateDate = DateTime.Now,",
  18605. " UpdateDate = DateTime.Now,",
  18606. " UserId = $1, //创客",
  18607. " BrandId = $2, //产品类型",
  18608. " SnNo = $3, //SN编号",
  18609. " SnType = $4, //SN机具类型",
  18610. " SnShipDate = $5, //发货时间",
  18611. " SnStoreId = $6, //SN仓库",
  18612. " EffectStartActDate = $7, //有效开始激活时间",
  18613. " EffectEndActDate = $8, //有效结束激活时间",
  18614. " EffectStartCycleDate = $9, //有效开始循环时间",
  18615. " EffectEndCycleDate = $10, //有效结束循环时间",
  18616. " ActUserId = $11, //激活奖励创客",
  18617. " ActiveStatus = $12, //商户激活状态",
  18618. " StandardDate = $13, //激活日期",
  18619. " SourceSnNo = $14, //源SN编号",
  18620. " SourceSnType = $15, //源SN机具类型",
  18621. " SourceShipDate = $16, //源SN发货时间",
  18622. " SourceStoreId = $17, //源SN发货你仓库",
  18623. " Remark = $18, //备注",
  18624. "});"
  18625. ]
  18626. },"删除某个机具激活限制信息": {
  18627. "prefix": "ym-db-UserSnActInfo-Delete",
  18628. "body": [
  18629. "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
  18630. "if ($1 != null)",
  18631. "{",
  18632. " db.UserSnActInfo.Remove($1);",
  18633. "}"
  18634. ]
  18635. },
  18636. "查询创客机具延迟变动明细表列表": {
  18637. "prefix": "ym-db-UserSnDelayChange-Find",
  18638. "body": [
  18639. "List<UserSnDelayChange> $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18640. "foreach (UserSnDelayChange $3 in $1)",
  18641. "{",
  18642. "}"
  18643. ]
  18644. },
  18645. "查询创客机具延迟变动明细表列表,并取值": {
  18646. "prefix": "ym-db-UserSnDelayChange-FindWithData",
  18647. "body": [
  18648. "List<UserSnDelayChange> $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18649. "foreach (UserSnDelayChange $3 in $1)",
  18650. "{",
  18651. " int UserId = $3.UserId; //创客",
  18652. " int BrandId = $3.BrandId; //品牌",
  18653. " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
  18654. " string SnNo = $3.SnNo; //SN编号",
  18655. " int SnType = $3.SnType; //SN机具类型",
  18656. " int SnStoreId = $3.SnStoreId; //发货仓库",
  18657. " string InitCycleDate = $3.InitCycleDate; //初始循环截止时间",
  18658. " string BeforeEndCycleDate = $3.BeforeEndCycleDate; //变动前循环截止时间",
  18659. " string AfterEndCycleDate = $3.AfterEndCycleDate; //变动后循环截止时间",
  18660. " int RecUserId = $3.RecUserId; //招募创客",
  18661. " int SnDelayDay = $3.SnDelayDay; //机具延时天数",
  18662. " int ActivityRuleId = $3.ActivityRuleId; //拉新活动",
  18663. " string SourceSnNo = $3.SourceSnNo; //源SN编号",
  18664. " int SourceSnType = $3.SourceSnType; //源SN类型",
  18665. " DateTime SourceSnShipDate = $3.SourceSnShipDate; //源SN发货时间",
  18666. " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库",
  18667. " string Remark = $3.Remark; //备注",
  18668. "}"
  18669. ]
  18670. },
  18671. "查询创客机具延迟变动明细表": {
  18672. "prefix": "ym-db-UserSnDelayChange-Exist",
  18673. "body": [
  18674. "bool $1 = db.UserSnDelayChange.Any(m => m.Id == $2);",
  18675. ]
  18676. },
  18677. "查询某个创客机具延迟变动明细表,并取值": {
  18678. "prefix": "ym-db-UserSnDelayChange-FindByPrimaryKey",
  18679. "body": [
  18680. "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
  18681. "if ($1 != null)",
  18682. "{",
  18683. " int UserId = $1.UserId; //创客",
  18684. " int BrandId = $1.BrandId; //品牌",
  18685. " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
  18686. " string SnNo = $1.SnNo; //SN编号",
  18687. " int SnType = $1.SnType; //SN机具类型",
  18688. " int SnStoreId = $1.SnStoreId; //发货仓库",
  18689. " string InitCycleDate = $1.InitCycleDate; //初始循环截止时间",
  18690. " string BeforeEndCycleDate = $1.BeforeEndCycleDate; //变动前循环截止时间",
  18691. " string AfterEndCycleDate = $1.AfterEndCycleDate; //变动后循环截止时间",
  18692. " int RecUserId = $1.RecUserId; //招募创客",
  18693. " int SnDelayDay = $1.SnDelayDay; //机具延时天数",
  18694. " int ActivityRuleId = $1.ActivityRuleId; //拉新活动",
  18695. " string SourceSnNo = $1.SourceSnNo; //源SN编号",
  18696. " int SourceSnType = $1.SourceSnType; //源SN类型",
  18697. " DateTime SourceSnShipDate = $1.SourceSnShipDate; //源SN发货时间",
  18698. " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库",
  18699. " string Remark = $1.Remark; //备注",
  18700. "}"
  18701. ]
  18702. },
  18703. "查询某个创客机具延迟变动明细表,并赋值": {
  18704. "prefix": "ym-db-UserSnDelayChange-Update",
  18705. "body": [
  18706. "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
  18707. "if ($1 != null)",
  18708. "{",
  18709. " $1.UserId = $2; //创客",
  18710. " $1.BrandId = $3; //品牌",
  18711. " $1.ChangeRecordNo = $4; //变更记录单号",
  18712. " $1.SnNo = $5; //SN编号",
  18713. " $1.SnType = $6; //SN机具类型",
  18714. " $1.SnStoreId = $7; //发货仓库",
  18715. " $1.InitCycleDate = $8; //初始循环截止时间",
  18716. " $1.BeforeEndCycleDate = $9; //变动前循环截止时间",
  18717. " $1.AfterEndCycleDate = $10; //变动后循环截止时间",
  18718. " $1.RecUserId = $11; //招募创客",
  18719. " $1.SnDelayDay = $12; //机具延时天数",
  18720. " $1.ActivityRuleId = $13; //拉新活动",
  18721. " $1.SourceSnNo = $14; //源SN编号",
  18722. " $1.SourceSnType = $15; //源SN类型",
  18723. " $1.SourceSnShipDate = $16; //源SN发货时间",
  18724. " $1.SourceStoreId = $17; //源SN发货你仓库",
  18725. " $1.Remark = $18; //备注",
  18726. "}"
  18727. ]
  18728. },
  18729. "获取创客机具延迟变动明细表数量": {
  18730. "prefix": "ym-db-UserSnDelayChange-FindAndCount",
  18731. "body": [
  18732. "int $1 = db.UserSnDelayChange.Count(m => $2);",
  18733. ]
  18734. },
  18735. "添加创客机具延迟变动明细表": {
  18736. "prefix": "ym-db-UserSnDelayChange-Create",
  18737. "body": [
  18738. "db.UserSnDelayChange.Add(new UserSnDelayChange()",
  18739. "{",
  18740. " CreateDate = DateTime.Now,",
  18741. " UpdateDate = DateTime.Now,",
  18742. " UserId = $1, //创客",
  18743. " BrandId = $2, //品牌",
  18744. " ChangeRecordNo = $3, //变更记录单号",
  18745. " SnNo = $4, //SN编号",
  18746. " SnType = $5, //SN机具类型",
  18747. " SnStoreId = $6, //发货仓库",
  18748. " InitCycleDate = $7, //初始循环截止时间",
  18749. " BeforeEndCycleDate = $8, //变动前循环截止时间",
  18750. " AfterEndCycleDate = $9, //变动后循环截止时间",
  18751. " RecUserId = $10, //招募创客",
  18752. " SnDelayDay = $11, //机具延时天数",
  18753. " ActivityRuleId = $12, //拉新活动",
  18754. " SourceSnNo = $13, //源SN编号",
  18755. " SourceSnType = $14, //源SN类型",
  18756. " SourceSnShipDate = $15, //源SN发货时间",
  18757. " SourceStoreId = $16, //源SN发货你仓库",
  18758. " Remark = $17, //备注",
  18759. "});"
  18760. ]
  18761. },"删除某个创客机具延迟变动明细表": {
  18762. "prefix": "ym-db-UserSnDelayChange-Delete",
  18763. "body": [
  18764. "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
  18765. "if ($1 != null)",
  18766. "{",
  18767. " db.UserSnDelayChange.Remove($1);",
  18768. "}"
  18769. ]
  18770. },
  18771. "查询创客库存变动记录列表": {
  18772. "prefix": "ym-db-UserStoreChange-Find",
  18773. "body": [
  18774. "List<UserStoreChange> $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18775. "foreach (UserStoreChange $3 in $1)",
  18776. "{",
  18777. "}"
  18778. ]
  18779. },
  18780. "查询创客库存变动记录列表,并取值": {
  18781. "prefix": "ym-db-UserStoreChange-FindWithData",
  18782. "body": [
  18783. "List<UserStoreChange> $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18784. "foreach (UserStoreChange $3 in $1)",
  18785. "{",
  18786. " int UserId = $3.UserId; //创客",
  18787. " int BrandId = $3.BrandId; //产品类型",
  18788. " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
  18789. " int TransType = $3.TransType; //交易类型",
  18790. " string SnNo = $3.SnNo; //SN编号",
  18791. " int SnType = $3.SnType; //SN机具类型",
  18792. " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
  18793. " string DeviceVendor = $3.DeviceVendor; //设备厂商",
  18794. " string DeviceType = $3.DeviceType; //设备类型",
  18795. " string DeviceModel = $3.DeviceModel; //设备型号",
  18796. " int ToUserId = $3.ToUserId; //收货创客",
  18797. " int ToStoreId = $3.ToStoreId; //创客退货收货仓库",
  18798. " DateTime ToDate = $3.ToDate; //入库时间",
  18799. " string ToRemark = $3.ToRemark; //入库备注",
  18800. " int SourceStoreId = $3.SourceStoreId; //源仓库",
  18801. " int SnStatus = $3.SnStatus; //SN状态",
  18802. " string BizBatchNo = $3.BizBatchNo; //业务批次号",
  18803. " int BindStatus = $3.BindStatus; //绑定状态",
  18804. " int BindMerchantId = $3.BindMerchantId; //绑定商户",
  18805. " int ActiveStatus = $3.ActiveStatus; //激活状态",
  18806. " int ActRewardUserId = $3.ActRewardUserId; //激活奖励创客",
  18807. " int FromUserId = $3.FromUserId; //出货创客",
  18808. " DateTime FromDate = $3.FromDate; //出库时间",
  18809. " string FromRemark = $3.FromRemark; //出库备注",
  18810. " string BrandType = $3.BrandType; //品牌类型",
  18811. "}"
  18812. ]
  18813. },
  18814. "查询创客库存变动记录": {
  18815. "prefix": "ym-db-UserStoreChange-Exist",
  18816. "body": [
  18817. "bool $1 = db.UserStoreChange.Any(m => m.Id == $2);",
  18818. ]
  18819. },
  18820. "查询某个创客库存变动记录,并取值": {
  18821. "prefix": "ym-db-UserStoreChange-FindByPrimaryKey",
  18822. "body": [
  18823. "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
  18824. "if ($1 != null)",
  18825. "{",
  18826. " int UserId = $1.UserId; //创客",
  18827. " int BrandId = $1.BrandId; //产品类型",
  18828. " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
  18829. " int TransType = $1.TransType; //交易类型",
  18830. " string SnNo = $1.SnNo; //SN编号",
  18831. " int SnType = $1.SnType; //SN机具类型",
  18832. " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
  18833. " string DeviceVendor = $1.DeviceVendor; //设备厂商",
  18834. " string DeviceType = $1.DeviceType; //设备类型",
  18835. " string DeviceModel = $1.DeviceModel; //设备型号",
  18836. " int ToUserId = $1.ToUserId; //收货创客",
  18837. " int ToStoreId = $1.ToStoreId; //创客退货收货仓库",
  18838. " DateTime ToDate = $1.ToDate; //入库时间",
  18839. " string ToRemark = $1.ToRemark; //入库备注",
  18840. " int SourceStoreId = $1.SourceStoreId; //源仓库",
  18841. " int SnStatus = $1.SnStatus; //SN状态",
  18842. " string BizBatchNo = $1.BizBatchNo; //业务批次号",
  18843. " int BindStatus = $1.BindStatus; //绑定状态",
  18844. " int BindMerchantId = $1.BindMerchantId; //绑定商户",
  18845. " int ActiveStatus = $1.ActiveStatus; //激活状态",
  18846. " int ActRewardUserId = $1.ActRewardUserId; //激活奖励创客",
  18847. " int FromUserId = $1.FromUserId; //出货创客",
  18848. " DateTime FromDate = $1.FromDate; //出库时间",
  18849. " string FromRemark = $1.FromRemark; //出库备注",
  18850. " string BrandType = $1.BrandType; //品牌类型",
  18851. "}"
  18852. ]
  18853. },
  18854. "查询某个创客库存变动记录,并赋值": {
  18855. "prefix": "ym-db-UserStoreChange-Update",
  18856. "body": [
  18857. "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
  18858. "if ($1 != null)",
  18859. "{",
  18860. " $1.UserId = $2; //创客",
  18861. " $1.BrandId = $3; //产品类型",
  18862. " $1.ChangeRecordNo = $4; //变更记录单号",
  18863. " $1.TransType = $5; //交易类型",
  18864. " $1.SnNo = $6; //SN编号",
  18865. " $1.SnType = $7; //SN机具类型",
  18866. " $1.StockOpDirect = $8; //库存操作方向",
  18867. " $1.DeviceVendor = $9; //设备厂商",
  18868. " $1.DeviceType = $10; //设备类型",
  18869. " $1.DeviceModel = $11; //设备型号",
  18870. " $1.ToUserId = $12; //收货创客",
  18871. " $1.ToStoreId = $13; //创客退货收货仓库",
  18872. " $1.ToDate = $14; //入库时间",
  18873. " $1.ToRemark = $15; //入库备注",
  18874. " $1.SourceStoreId = $16; //源仓库",
  18875. " $1.SnStatus = $17; //SN状态",
  18876. " $1.BizBatchNo = $18; //业务批次号",
  18877. " $1.BindStatus = $19; //绑定状态",
  18878. " $1.BindMerchantId = $20; //绑定商户",
  18879. " $1.ActiveStatus = $21; //激活状态",
  18880. " $1.ActRewardUserId = $22; //激活奖励创客",
  18881. " $1.FromUserId = $23; //出货创客",
  18882. " $1.FromDate = $24; //出库时间",
  18883. " $1.FromRemark = $25; //出库备注",
  18884. " $1.BrandType = $26; //品牌类型",
  18885. "}"
  18886. ]
  18887. },
  18888. "获取创客库存变动记录数量": {
  18889. "prefix": "ym-db-UserStoreChange-FindAndCount",
  18890. "body": [
  18891. "int $1 = db.UserStoreChange.Count(m => $2);",
  18892. ]
  18893. },
  18894. "添加创客库存变动记录": {
  18895. "prefix": "ym-db-UserStoreChange-Create",
  18896. "body": [
  18897. "db.UserStoreChange.Add(new UserStoreChange()",
  18898. "{",
  18899. " CreateDate = DateTime.Now,",
  18900. " UpdateDate = DateTime.Now,",
  18901. " UserId = $1, //创客",
  18902. " BrandId = $2, //产品类型",
  18903. " ChangeRecordNo = $3, //变更记录单号",
  18904. " TransType = $4, //交易类型",
  18905. " SnNo = $5, //SN编号",
  18906. " SnType = $6, //SN机具类型",
  18907. " StockOpDirect = $7, //库存操作方向",
  18908. " DeviceVendor = $8, //设备厂商",
  18909. " DeviceType = $9, //设备类型",
  18910. " DeviceModel = $10, //设备型号",
  18911. " ToUserId = $11, //收货创客",
  18912. " ToStoreId = $12, //创客退货收货仓库",
  18913. " ToDate = $13, //入库时间",
  18914. " ToRemark = $14, //入库备注",
  18915. " SourceStoreId = $15, //源仓库",
  18916. " SnStatus = $16, //SN状态",
  18917. " BizBatchNo = $17, //业务批次号",
  18918. " BindStatus = $18, //绑定状态",
  18919. " BindMerchantId = $19, //绑定商户",
  18920. " ActiveStatus = $20, //激活状态",
  18921. " ActRewardUserId = $21, //激活奖励创客",
  18922. " FromUserId = $22, //出货创客",
  18923. " FromDate = $23, //出库时间",
  18924. " FromRemark = $24, //出库备注",
  18925. " BrandType = $25, //品牌类型",
  18926. "});"
  18927. ]
  18928. },"删除某个创客库存变动记录": {
  18929. "prefix": "ym-db-UserStoreChange-Delete",
  18930. "body": [
  18931. "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
  18932. "if ($1 != null)",
  18933. "{",
  18934. " db.UserStoreChange.Remove($1);",
  18935. "}"
  18936. ]
  18937. },
  18938. "查询循环返风控明细信息列表": {
  18939. "prefix": "ym-db-UserSwapDetail-Find",
  18940. "body": [
  18941. "List<UserSwapDetail> $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18942. "foreach (UserSwapDetail $3 in $1)",
  18943. "{",
  18944. "}"
  18945. ]
  18946. },
  18947. "查询循环返风控明细信息列表,并取值": {
  18948. "prefix": "ym-db-UserSwapDetail-FindWithData",
  18949. "body": [
  18950. "List<UserSwapDetail> $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  18951. "foreach (UserSwapDetail $3 in $1)",
  18952. "{",
  18953. " string RecordNo = $3.RecordNo; //单号",
  18954. " int UserId = $3.UserId; //创客",
  18955. " string TradeMonth = $3.TradeMonth; //交易月",
  18956. " string TradeDate = $3.TradeDate; //交易日",
  18957. " int BrandId = $3.BrandId; //品牌",
  18958. " string SnNo = $3.SnNo; //风控SN编号",
  18959. " int SnType = $3.SnType; //风控SN机具类型",
  18960. " int RiskResult = $3.RiskResult; //循环风控降档状态",
  18961. " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型",
  18962. " decimal DirectSnTradeAmt = $3.DirectSnTradeAmt; //直营商户激活sn交易总额",
  18963. " string UpSourceSnNo = $3.UpSourceSnNo; //上一个兑换来源SN编码",
  18964. " int UpSourceSnType = $3.UpSourceSnType; //上一个兑换来源SN机具类型",
  18965. " string SourceSnNo = $3.SourceSnNo; //源SN编号",
  18966. " int SourceSnType = $3.SourceSnType; //源SN机具类型",
  18967. " string Remark = $3.Remark; //备注",
  18968. " int TopUserId = $3.TopUserId; //顶级创客",
  18969. "}"
  18970. ]
  18971. },
  18972. "查询循环返风控明细信息": {
  18973. "prefix": "ym-db-UserSwapDetail-Exist",
  18974. "body": [
  18975. "bool $1 = db.UserSwapDetail.Any(m => m.Id == $2);",
  18976. ]
  18977. },
  18978. "查询某个循环返风控明细信息,并取值": {
  18979. "prefix": "ym-db-UserSwapDetail-FindByPrimaryKey",
  18980. "body": [
  18981. "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
  18982. "if ($1 != null)",
  18983. "{",
  18984. " string RecordNo = $1.RecordNo; //单号",
  18985. " int UserId = $1.UserId; //创客",
  18986. " string TradeMonth = $1.TradeMonth; //交易月",
  18987. " string TradeDate = $1.TradeDate; //交易日",
  18988. " int BrandId = $1.BrandId; //品牌",
  18989. " string SnNo = $1.SnNo; //风控SN编号",
  18990. " int SnType = $1.SnType; //风控SN机具类型",
  18991. " int RiskResult = $1.RiskResult; //循环风控降档状态",
  18992. " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型",
  18993. " decimal DirectSnTradeAmt = $1.DirectSnTradeAmt; //直营商户激活sn交易总额",
  18994. " string UpSourceSnNo = $1.UpSourceSnNo; //上一个兑换来源SN编码",
  18995. " int UpSourceSnType = $1.UpSourceSnType; //上一个兑换来源SN机具类型",
  18996. " string SourceSnNo = $1.SourceSnNo; //源SN编号",
  18997. " int SourceSnType = $1.SourceSnType; //源SN机具类型",
  18998. " string Remark = $1.Remark; //备注",
  18999. " int TopUserId = $1.TopUserId; //顶级创客",
  19000. "}"
  19001. ]
  19002. },
  19003. "查询某个循环返风控明细信息,并赋值": {
  19004. "prefix": "ym-db-UserSwapDetail-Update",
  19005. "body": [
  19006. "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
  19007. "if ($1 != null)",
  19008. "{",
  19009. " $1.RecordNo = $2; //单号",
  19010. " $1.UserId = $3; //创客",
  19011. " $1.TradeMonth = $4; //交易月",
  19012. " $1.TradeDate = $5; //交易日",
  19013. " $1.BrandId = $6; //品牌",
  19014. " $1.SnNo = $7; //风控SN编号",
  19015. " $1.SnType = $8; //风控SN机具类型",
  19016. " $1.RiskResult = $9; //循环风控降档状态",
  19017. " $1.SwapExtProductTypes = $10; //可申请循环产品类型",
  19018. " $1.DirectSnTradeAmt = $11; //直营商户激活sn交易总额",
  19019. " $1.UpSourceSnNo = $12; //上一个兑换来源SN编码",
  19020. " $1.UpSourceSnType = $13; //上一个兑换来源SN机具类型",
  19021. " $1.SourceSnNo = $14; //源SN编号",
  19022. " $1.SourceSnType = $15; //源SN机具类型",
  19023. " $1.Remark = $16; //备注",
  19024. " $1.TopUserId = $17; //顶级创客",
  19025. "}"
  19026. ]
  19027. },
  19028. "获取循环返风控明细信息数量": {
  19029. "prefix": "ym-db-UserSwapDetail-FindAndCount",
  19030. "body": [
  19031. "int $1 = db.UserSwapDetail.Count(m => $2);",
  19032. ]
  19033. },
  19034. "添加循环返风控明细信息": {
  19035. "prefix": "ym-db-UserSwapDetail-Create",
  19036. "body": [
  19037. "db.UserSwapDetail.Add(new UserSwapDetail()",
  19038. "{",
  19039. " CreateDate = DateTime.Now,",
  19040. " UpdateDate = DateTime.Now,",
  19041. " RecordNo = $1, //单号",
  19042. " UserId = $2, //创客",
  19043. " TradeMonth = $3, //交易月",
  19044. " TradeDate = $4, //交易日",
  19045. " BrandId = $5, //品牌",
  19046. " SnNo = $6, //风控SN编号",
  19047. " SnType = $7, //风控SN机具类型",
  19048. " RiskResult = $8, //循环风控降档状态",
  19049. " SwapExtProductTypes = $9, //可申请循环产品类型",
  19050. " DirectSnTradeAmt = $10, //直营商户激活sn交易总额",
  19051. " UpSourceSnNo = $11, //上一个兑换来源SN编码",
  19052. " UpSourceSnType = $12, //上一个兑换来源SN机具类型",
  19053. " SourceSnNo = $13, //源SN编号",
  19054. " SourceSnType = $14, //源SN机具类型",
  19055. " Remark = $15, //备注",
  19056. " TopUserId = $16, //顶级创客",
  19057. "});"
  19058. ]
  19059. },"删除某个循环返风控明细信息": {
  19060. "prefix": "ym-db-UserSwapDetail-Delete",
  19061. "body": [
  19062. "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
  19063. "if ($1 != null)",
  19064. "{",
  19065. " db.UserSwapDetail.Remove($1);",
  19066. "}"
  19067. ]
  19068. },
  19069. "查询创客循环返风控月汇总列表": {
  19070. "prefix": "ym-db-UserSwapSummary-Find",
  19071. "body": [
  19072. "List<UserSwapSummary> $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19073. "foreach (UserSwapSummary $3 in $1)",
  19074. "{",
  19075. "}"
  19076. ]
  19077. },
  19078. "查询创客循环返风控月汇总列表,并取值": {
  19079. "prefix": "ym-db-UserSwapSummary-FindWithData",
  19080. "body": [
  19081. "List<UserSwapSummary> $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19082. "foreach (UserSwapSummary $3 in $1)",
  19083. "{",
  19084. " int UserId = $3.UserId; //创客",
  19085. " int TopUserId = $3.TopUserId; //顶级创客",
  19086. " string TradeMonth = $3.TradeMonth; //交易月",
  19087. " int BrandId = $3.BrandId; //品牌",
  19088. " int DirectActMerCount = $3.DirectActMerCount; //上月直营激活商户数",
  19089. " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户新增激活交易户均总额",
  19090. " decimal DirAvgTradeAmt = $3.DirAvgTradeAmt; //户均",
  19091. " int RiskStatus = $3.RiskStatus; //循环风控降档状态",
  19092. " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型",
  19093. " int RuleId = $3.RuleId; //规则",
  19094. "}"
  19095. ]
  19096. },
  19097. "查询创客循环返风控月汇总": {
  19098. "prefix": "ym-db-UserSwapSummary-Exist",
  19099. "body": [
  19100. "bool $1 = db.UserSwapSummary.Any(m => m.Id == $2);",
  19101. ]
  19102. },
  19103. "查询某个创客循环返风控月汇总,并取值": {
  19104. "prefix": "ym-db-UserSwapSummary-FindByPrimaryKey",
  19105. "body": [
  19106. "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
  19107. "if ($1 != null)",
  19108. "{",
  19109. " int UserId = $1.UserId; //创客",
  19110. " int TopUserId = $1.TopUserId; //顶级创客",
  19111. " string TradeMonth = $1.TradeMonth; //交易月",
  19112. " int BrandId = $1.BrandId; //品牌",
  19113. " int DirectActMerCount = $1.DirectActMerCount; //上月直营激活商户数",
  19114. " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户新增激活交易户均总额",
  19115. " decimal DirAvgTradeAmt = $1.DirAvgTradeAmt; //户均",
  19116. " int RiskStatus = $1.RiskStatus; //循环风控降档状态",
  19117. " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型",
  19118. " int RuleId = $1.RuleId; //规则",
  19119. "}"
  19120. ]
  19121. },
  19122. "查询某个创客循环返风控月汇总,并赋值": {
  19123. "prefix": "ym-db-UserSwapSummary-Update",
  19124. "body": [
  19125. "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
  19126. "if ($1 != null)",
  19127. "{",
  19128. " $1.UserId = $2; //创客",
  19129. " $1.TopUserId = $3; //顶级创客",
  19130. " $1.TradeMonth = $4; //交易月",
  19131. " $1.BrandId = $5; //品牌",
  19132. " $1.DirectActMerCount = $6; //上月直营激活商户数",
  19133. " $1.DirectTradeAmt = $7; //直营商户新增激活交易户均总额",
  19134. " $1.DirAvgTradeAmt = $8; //户均",
  19135. " $1.RiskStatus = $9; //循环风控降档状态",
  19136. " $1.SwapExtProductTypes = $10; //可申请循环产品类型",
  19137. " $1.RuleId = $11; //规则",
  19138. "}"
  19139. ]
  19140. },
  19141. "获取创客循环返风控月汇总数量": {
  19142. "prefix": "ym-db-UserSwapSummary-FindAndCount",
  19143. "body": [
  19144. "int $1 = db.UserSwapSummary.Count(m => $2);",
  19145. ]
  19146. },
  19147. "添加创客循环返风控月汇总": {
  19148. "prefix": "ym-db-UserSwapSummary-Create",
  19149. "body": [
  19150. "db.UserSwapSummary.Add(new UserSwapSummary()",
  19151. "{",
  19152. " CreateDate = DateTime.Now,",
  19153. " UpdateDate = DateTime.Now,",
  19154. " UserId = $1, //创客",
  19155. " TopUserId = $2, //顶级创客",
  19156. " TradeMonth = $3, //交易月",
  19157. " BrandId = $4, //品牌",
  19158. " DirectActMerCount = $5, //上月直营激活商户数",
  19159. " DirectTradeAmt = $6, //直营商户新增激活交易户均总额",
  19160. " DirAvgTradeAmt = $7, //户均",
  19161. " RiskStatus = $8, //循环风控降档状态",
  19162. " SwapExtProductTypes = $9, //可申请循环产品类型",
  19163. " RuleId = $10, //规则",
  19164. "});"
  19165. ]
  19166. },"删除某个创客循环返风控月汇总": {
  19167. "prefix": "ym-db-UserSwapSummary-Delete",
  19168. "body": [
  19169. "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
  19170. "if ($1 != null)",
  19171. "{",
  19172. " db.UserSwapSummary.Remove($1);",
  19173. "}"
  19174. ]
  19175. },
  19176. "查询循环返风控白名单列表": {
  19177. "prefix": "ym-db-UserSwapWhite-Find",
  19178. "body": [
  19179. "List<UserSwapWhite> $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19180. "foreach (UserSwapWhite $3 in $1)",
  19181. "{",
  19182. "}"
  19183. ]
  19184. },
  19185. "查询循环返风控白名单列表,并取值": {
  19186. "prefix": "ym-db-UserSwapWhite-FindWithData",
  19187. "body": [
  19188. "List<UserSwapWhite> $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19189. "foreach (UserSwapWhite $3 in $1)",
  19190. "{",
  19191. " int UserId = $3.UserId; //创客",
  19192. " int RiskType = $3.RiskType; //风控类型",
  19193. " int BrandId = $3.BrandId; //品牌",
  19194. " DateTime StartEffectTime = $3.StartEffectTime; //生效开始时间",
  19195. " DateTime EndEffectTime = $3.EndEffectTime; //生效截止时间",
  19196. " string Remark = $3.Remark; //备注",
  19197. "}"
  19198. ]
  19199. },
  19200. "查询循环返风控白名单": {
  19201. "prefix": "ym-db-UserSwapWhite-Exist",
  19202. "body": [
  19203. "bool $1 = db.UserSwapWhite.Any(m => m.Id == $2);",
  19204. ]
  19205. },
  19206. "查询某个循环返风控白名单,并取值": {
  19207. "prefix": "ym-db-UserSwapWhite-FindByPrimaryKey",
  19208. "body": [
  19209. "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
  19210. "if ($1 != null)",
  19211. "{",
  19212. " int UserId = $1.UserId; //创客",
  19213. " int RiskType = $1.RiskType; //风控类型",
  19214. " int BrandId = $1.BrandId; //品牌",
  19215. " DateTime StartEffectTime = $1.StartEffectTime; //生效开始时间",
  19216. " DateTime EndEffectTime = $1.EndEffectTime; //生效截止时间",
  19217. " string Remark = $1.Remark; //备注",
  19218. "}"
  19219. ]
  19220. },
  19221. "查询某个循环返风控白名单,并赋值": {
  19222. "prefix": "ym-db-UserSwapWhite-Update",
  19223. "body": [
  19224. "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
  19225. "if ($1 != null)",
  19226. "{",
  19227. " $1.UserId = $2; //创客",
  19228. " $1.RiskType = $3; //风控类型",
  19229. " $1.BrandId = $4; //品牌",
  19230. " $1.StartEffectTime = $5; //生效开始时间",
  19231. " $1.EndEffectTime = $6; //生效截止时间",
  19232. " $1.Remark = $7; //备注",
  19233. "}"
  19234. ]
  19235. },
  19236. "获取循环返风控白名单数量": {
  19237. "prefix": "ym-db-UserSwapWhite-FindAndCount",
  19238. "body": [
  19239. "int $1 = db.UserSwapWhite.Count(m => $2);",
  19240. ]
  19241. },
  19242. "添加循环返风控白名单": {
  19243. "prefix": "ym-db-UserSwapWhite-Create",
  19244. "body": [
  19245. "db.UserSwapWhite.Add(new UserSwapWhite()",
  19246. "{",
  19247. " CreateDate = DateTime.Now,",
  19248. " UpdateDate = DateTime.Now,",
  19249. " UserId = $1, //创客",
  19250. " RiskType = $2, //风控类型",
  19251. " BrandId = $3, //品牌",
  19252. " StartEffectTime = $4, //生效开始时间",
  19253. " EndEffectTime = $5, //生效截止时间",
  19254. " Remark = $6, //备注",
  19255. "});"
  19256. ]
  19257. },"删除某个循环返风控白名单": {
  19258. "prefix": "ym-db-UserSwapWhite-Delete",
  19259. "body": [
  19260. "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
  19261. "if ($1 != null)",
  19262. "{",
  19263. " db.UserSwapWhite.Remove($1);",
  19264. "}"
  19265. ]
  19266. },
  19267. "查询创客交易日汇总列表": {
  19268. "prefix": "ym-db-UserTradeDaySummary-Find",
  19269. "body": [
  19270. "List<UserTradeDaySummary> $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19271. "foreach (UserTradeDaySummary $3 in $1)",
  19272. "{",
  19273. "}"
  19274. ]
  19275. },
  19276. "查询创客交易日汇总列表,并取值": {
  19277. "prefix": "ym-db-UserTradeDaySummary-FindWithData",
  19278. "body": [
  19279. "List<UserTradeDaySummary> $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19280. "foreach (UserTradeDaySummary $3 in $1)",
  19281. "{",
  19282. " int UserId = $3.UserId; //创客",
  19283. " string TradeDate = $3.TradeDate; //交易日",
  19284. " string TradeMonth = $3.TradeMonth; //交易月",
  19285. " int BrandId = $3.BrandId; //品牌",
  19286. " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户交易总额",
  19287. " decimal NonDirectTradeAmt = $3.NonDirectTradeAmt; //非直营商户交易总额",
  19288. " decimal DirectDebitTradeAmt = $3.DirectDebitTradeAmt; //直营商户借记卡交易总额",
  19289. " int DirectDebitCapNum = $3.DirectDebitCapNum; //直营激活商户数",
  19290. " decimal NonDirectDebitTradeAmt = $3.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额",
  19291. " int NonDirectDebitCapNum = $3.NonDirectDebitCapNum; //非直营激活商户数",
  19292. " string Remark = $3.Remark; //备注",
  19293. "}"
  19294. ]
  19295. },
  19296. "查询创客交易日汇总": {
  19297. "prefix": "ym-db-UserTradeDaySummary-Exist",
  19298. "body": [
  19299. "bool $1 = db.UserTradeDaySummary.Any(m => m.Id == $2);",
  19300. ]
  19301. },
  19302. "查询某个创客交易日汇总,并取值": {
  19303. "prefix": "ym-db-UserTradeDaySummary-FindByPrimaryKey",
  19304. "body": [
  19305. "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  19306. "if ($1 != null)",
  19307. "{",
  19308. " int UserId = $1.UserId; //创客",
  19309. " string TradeDate = $1.TradeDate; //交易日",
  19310. " string TradeMonth = $1.TradeMonth; //交易月",
  19311. " int BrandId = $1.BrandId; //品牌",
  19312. " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户交易总额",
  19313. " decimal NonDirectTradeAmt = $1.NonDirectTradeAmt; //非直营商户交易总额",
  19314. " decimal DirectDebitTradeAmt = $1.DirectDebitTradeAmt; //直营商户借记卡交易总额",
  19315. " int DirectDebitCapNum = $1.DirectDebitCapNum; //直营激活商户数",
  19316. " decimal NonDirectDebitTradeAmt = $1.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额",
  19317. " int NonDirectDebitCapNum = $1.NonDirectDebitCapNum; //非直营激活商户数",
  19318. " string Remark = $1.Remark; //备注",
  19319. "}"
  19320. ]
  19321. },
  19322. "查询某个创客交易日汇总,并赋值": {
  19323. "prefix": "ym-db-UserTradeDaySummary-Update",
  19324. "body": [
  19325. "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  19326. "if ($1 != null)",
  19327. "{",
  19328. " $1.UserId = $2; //创客",
  19329. " $1.TradeDate = $3; //交易日",
  19330. " $1.TradeMonth = $4; //交易月",
  19331. " $1.BrandId = $5; //品牌",
  19332. " $1.DirectTradeAmt = $6; //直营商户交易总额",
  19333. " $1.NonDirectTradeAmt = $7; //非直营商户交易总额",
  19334. " $1.DirectDebitTradeAmt = $8; //直营商户借记卡交易总额",
  19335. " $1.DirectDebitCapNum = $9; //直营激活商户数",
  19336. " $1.NonDirectDebitTradeAmt = $10; //非直营商户借记卡交易总额",
  19337. " $1.NonDirectDebitCapNum = $11; //非直营激活商户数",
  19338. " $1.Remark = $12; //备注",
  19339. "}"
  19340. ]
  19341. },
  19342. "获取创客交易日汇总数量": {
  19343. "prefix": "ym-db-UserTradeDaySummary-FindAndCount",
  19344. "body": [
  19345. "int $1 = db.UserTradeDaySummary.Count(m => $2);",
  19346. ]
  19347. },
  19348. "添加创客交易日汇总": {
  19349. "prefix": "ym-db-UserTradeDaySummary-Create",
  19350. "body": [
  19351. "db.UserTradeDaySummary.Add(new UserTradeDaySummary()",
  19352. "{",
  19353. " CreateDate = DateTime.Now,",
  19354. " UpdateDate = DateTime.Now,",
  19355. " UserId = $1, //创客",
  19356. " TradeDate = $2, //交易日",
  19357. " TradeMonth = $3, //交易月",
  19358. " BrandId = $4, //品牌",
  19359. " DirectTradeAmt = $5, //直营商户交易总额",
  19360. " NonDirectTradeAmt = $6, //非直营商户交易总额",
  19361. " DirectDebitTradeAmt = $7, //直营商户借记卡交易总额",
  19362. " DirectDebitCapNum = $8, //直营激活商户数",
  19363. " NonDirectDebitTradeAmt = $9, //非直营商户借记卡交易总额",
  19364. " NonDirectDebitCapNum = $10, //非直营激活商户数",
  19365. " Remark = $11, //备注",
  19366. "});"
  19367. ]
  19368. },"删除某个创客交易日汇总": {
  19369. "prefix": "ym-db-UserTradeDaySummary-Delete",
  19370. "body": [
  19371. "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
  19372. "if ($1 != null)",
  19373. "{",
  19374. " db.UserTradeDaySummary.Remove($1);",
  19375. "}"
  19376. ]
  19377. },
  19378. "查询交易按产品汇总列表": {
  19379. "prefix": "ym-db-UserTradeMonthSummary-Find",
  19380. "body": [
  19381. "List<UserTradeMonthSummary> $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19382. "foreach (UserTradeMonthSummary $3 in $1)",
  19383. "{",
  19384. "}"
  19385. ]
  19386. },
  19387. "查询交易按产品汇总列表,并取值": {
  19388. "prefix": "ym-db-UserTradeMonthSummary-FindWithData",
  19389. "body": [
  19390. "List<UserTradeMonthSummary> $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  19391. "foreach (UserTradeMonthSummary $3 in $1)",
  19392. "{",
  19393. " int UserId = $3.UserId; //创客",
  19394. " string TradeMonth = $3.TradeMonth; //交易月",
  19395. " int BrandId = $3.BrandId; //品牌",
  19396. " int StatType = $3.StatType; //交易统计类型",
  19397. " decimal TradeAmt = $3.TradeAmt; //商户交易总额",
  19398. " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额",
  19399. " decimal DebitNotCapTradeAmt = $3.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额",
  19400. " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  19401. " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  19402. " int MallPosOrderStatus = $3.MallPosOrderStatus; //商城购买机具状态",
  19403. " int ActiveBuddyMerStatus = $3.ActiveBuddyMerStatus; //激活创客同名商户",
  19404. " string Remark = $3.Remark; //备注",
  19405. "}"
  19406. ]
  19407. },
  19408. "查询交易按产品汇总": {
  19409. "prefix": "ym-db-UserTradeMonthSummary-Exist",
  19410. "body": [
  19411. "bool $1 = db.UserTradeMonthSummary.Any(m => m.Id == $2);",
  19412. ]
  19413. },
  19414. "查询某个交易按产品汇总,并取值": {
  19415. "prefix": "ym-db-UserTradeMonthSummary-FindByPrimaryKey",
  19416. "body": [
  19417. "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
  19418. "if ($1 != null)",
  19419. "{",
  19420. " int UserId = $1.UserId; //创客",
  19421. " string TradeMonth = $1.TradeMonth; //交易月",
  19422. " int BrandId = $1.BrandId; //品牌",
  19423. " int StatType = $1.StatType; //交易统计类型",
  19424. " decimal TradeAmt = $1.TradeAmt; //商户交易总额",
  19425. " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额",
  19426. " decimal DebitNotCapTradeAmt = $1.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额",
  19427. " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额",
  19428. " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
  19429. " int MallPosOrderStatus = $1.MallPosOrderStatus; //商城购买机具状态",
  19430. " int ActiveBuddyMerStatus = $1.ActiveBuddyMerStatus; //激活创客同名商户",
  19431. " string Remark = $1.Remark; //备注",
  19432. "}"
  19433. ]
  19434. },
  19435. "查询某个交易按产品汇总,并赋值": {
  19436. "prefix": "ym-db-UserTradeMonthSummary-Update",
  19437. "body": [
  19438. "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
  19439. "if ($1 != null)",
  19440. "{",
  19441. " $1.UserId = $2; //创客",
  19442. " $1.TradeMonth = $3; //交易月",
  19443. " $1.BrandId = $4; //品牌",
  19444. " $1.StatType = $5; //交易统计类型",
  19445. " $1.TradeAmt = $6; //商户交易总额",
  19446. " $1.CreditTradeAmt = $7; //商户贷记卡交易总金额",
  19447. " $1.DebitNotCapTradeAmt = $8; //商户非封顶借记卡交易总金额",
  19448. " $1.DebitCapTradeAmt = $9; //商户借记卡封顶交易总额",
  19449. " $1.DebitCapTradeNum = $10; //商户借记卡封顶交易总笔数",
  19450. " $1.MallPosOrderStatus = $11; //商城购买机具状态",
  19451. " $1.ActiveBuddyMerStatus = $12; //激活创客同名商户",
  19452. " $1.Remark = $13; //备注",
  19453. "}"
  19454. ]
  19455. },
  19456. "获取交易按产品汇总数量": {
  19457. "prefix": "ym-db-UserTradeMonthSummary-FindAndCount",
  19458. "body": [
  19459. "int $1 = db.UserTradeMonthSummary.Count(m => $2);",
  19460. ]
  19461. },
  19462. "添加交易按产品汇总": {
  19463. "prefix": "ym-db-UserTradeMonthSummary-Create",
  19464. "body": [
  19465. "db.UserTradeMonthSummary.Add(new UserTradeMonthSummary()",
  19466. "{",
  19467. " CreateDate = DateTime.Now,",
  19468. " UpdateDate = DateTime.Now,",
  19469. " UserId = $1, //创客",
  19470. " TradeMonth = $2, //交易月",
  19471. " BrandId = $3, //品牌",
  19472. " StatType = $4, //交易统计类型",
  19473. " TradeAmt = $5, //商户交易总额",
  19474. " CreditTradeAmt = $6, //商户贷记卡交易总金额",
  19475. " DebitNotCapTradeAmt = $7, //商户非封顶借记卡交易总金额",
  19476. " DebitCapTradeAmt = $8, //商户借记卡封顶交易总额",
  19477. " DebitCapTradeNum = $9, //商户借记卡封顶交易总笔数",
  19478. " MallPosOrderStatus = $10, //商城购买机具状态",
  19479. " ActiveBuddyMerStatus = $11, //激活创客同名商户",
  19480. " Remark = $12, //备注",
  19481. "});"
  19482. ]
  19483. },"删除某个交易按产品汇总": {
  19484. "prefix": "ym-db-UserTradeMonthSummary-Delete",
  19485. "body": [
  19486. "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
  19487. "if ($1 != null)",
  19488. "{",
  19489. " db.UserTradeMonthSummary.Remove($1);",
  19490. "}"
  19491. ]
  19492. },
  19493. }