123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363 |
- {"查询激活奖励记录列表": {
- "prefix": "ym-db-ActiveReward-Find",
- "body": [
- "List<ActiveReward> $1 = db.ActiveReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActiveReward $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询激活奖励记录列表,并取值": {
- "prefix": "ym-db-ActiveReward-FindWithData",
- "body": [
- "List<ActiveReward> $1 = db.ActiveReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActiveReward $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int MerchantId = $3.MerchantId; //商户",
- " DateTime StandardDate = $3.StandardDate; //达标日期",
- " int RewardSourceUserId = $3.RewardSourceUserId; //奖励来源创客",
- " decimal RewardAmount = $3.RewardAmount; //奖励金额",
- " decimal DivideAmount = $3.DivideAmount; //平分金额",
- " decimal RuleRewardAmount = $3.RuleRewardAmount; //规则奖励金额",
- " int BrandId = $3.BrandId; //品牌",
- " string UserNav = $3.UserNav; //创客父级",
- " int DirectBuddyNo = $3.DirectBuddyNo; //商户直属创客",
- " string MerUserNav = $3.MerUserNav; //商户直属创客父级",
- " string KqMerNo = $3.KqMerNo; //渠道商户编号",
- " string KqSnNo = $3.KqSnNo; //渠道SN号",
- " int SnType = $3.SnType; //机具类型",
- " int SnApplyUserId = $3.SnApplyUserId; //机具申请创客",
- " int ActType = $3.ActType; //激活类型",
- " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述",
- " int SnStoreId = $3.SnStoreId; //SN仓库",
- " int RewardRef = $3.RewardRef; //奖励来源创客",
- " string RewardTips = $3.RewardTips; //奖励描述",
- " string Province = $3.Province; //省份",
- " string City = $3.City; //城市",
- " string Remark = $3.Remark; //备注",
- " DateTime ActDate = $3.ActDate; //激活时间",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int MerUserId = $3.MerUserId; //直属创客",
- " int ParentUserId = $3.ParentUserId; //上级创客",
- " int ParentParentUserId = $3.ParentParentUserId; //上上级创客",
- "}"
- ]
- },
- "查询激活奖励记录": {
- "prefix": "ym-db-ActiveReward-Exist",
- "body": [
- "bool $1 = db.ActiveReward.Any(m => m.Id == $2);",
- ]
- },
- "查询某个激活奖励记录,并取值": {
- "prefix": "ym-db-ActiveReward-FindByPrimaryKey",
- "body": [
- "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int MerchantId = $1.MerchantId; //商户",
- " DateTime StandardDate = $1.StandardDate; //达标日期",
- " int RewardSourceUserId = $1.RewardSourceUserId; //奖励来源创客",
- " decimal RewardAmount = $1.RewardAmount; //奖励金额",
- " decimal DivideAmount = $1.DivideAmount; //平分金额",
- " decimal RuleRewardAmount = $1.RuleRewardAmount; //规则奖励金额",
- " int BrandId = $1.BrandId; //品牌",
- " string UserNav = $1.UserNav; //创客父级",
- " int DirectBuddyNo = $1.DirectBuddyNo; //商户直属创客",
- " string MerUserNav = $1.MerUserNav; //商户直属创客父级",
- " string KqMerNo = $1.KqMerNo; //渠道商户编号",
- " string KqSnNo = $1.KqSnNo; //渠道SN号",
- " int SnType = $1.SnType; //机具类型",
- " int SnApplyUserId = $1.SnApplyUserId; //机具申请创客",
- " int ActType = $1.ActType; //激活类型",
- " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述",
- " int SnStoreId = $1.SnStoreId; //SN仓库",
- " int RewardRef = $1.RewardRef; //奖励来源创客",
- " string RewardTips = $1.RewardTips; //奖励描述",
- " string Province = $1.Province; //省份",
- " string City = $1.City; //城市",
- " string Remark = $1.Remark; //备注",
- " DateTime ActDate = $1.ActDate; //激活时间",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int MerUserId = $1.MerUserId; //直属创客",
- " int ParentUserId = $1.ParentUserId; //上级创客",
- " int ParentParentUserId = $1.ParentParentUserId; //上上级创客",
- "}"
- ]
- },
- "查询某个激活奖励记录,并赋值": {
- "prefix": "ym-db-ActiveReward-Update",
- "body": [
- "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.MerchantId = $3; //商户",
- " $1.StandardDate = $4; //达标日期",
- " $1.RewardSourceUserId = $5; //奖励来源创客",
- " $1.RewardAmount = $6; //奖励金额",
- " $1.DivideAmount = $7; //平分金额",
- " $1.RuleRewardAmount = $8; //规则奖励金额",
- " $1.BrandId = $9; //品牌",
- " $1.UserNav = $10; //创客父级",
- " $1.DirectBuddyNo = $11; //商户直属创客",
- " $1.MerUserNav = $12; //商户直属创客父级",
- " $1.KqMerNo = $13; //渠道商户编号",
- " $1.KqSnNo = $14; //渠道SN号",
- " $1.SnType = $15; //机具类型",
- " $1.SnApplyUserId = $16; //机具申请创客",
- " $1.ActType = $17; //激活类型",
- " $1.ActTypeDesc = $18; //激活类型描述",
- " $1.SnStoreId = $19; //SN仓库",
- " $1.RewardRef = $20; //奖励来源创客",
- " $1.RewardTips = $21; //奖励描述",
- " $1.Province = $22; //省份",
- " $1.City = $23; //城市",
- " $1.Remark = $24; //备注",
- " $1.ActDate = $25; //激活时间",
- " $1.TopUserId = $26; //顶级创客",
- " $1.MerUserId = $27; //直属创客",
- " $1.ParentUserId = $28; //上级创客",
- " $1.ParentParentUserId = $29; //上上级创客",
- "}"
- ]
- },
- "获取激活奖励记录数量": {
- "prefix": "ym-db-ActiveReward-FindAndCount",
- "body": [
- "int $1 = db.ActiveReward.Count(m => $2);",
- ]
- },
- "添加激活奖励记录": {
- "prefix": "ym-db-ActiveReward-Create",
- "body": [
- "db.ActiveReward.Add(new ActiveReward()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " MerchantId = $2, //商户",
- " StandardDate = $3, //达标日期",
- " RewardSourceUserId = $4, //奖励来源创客",
- " RewardAmount = $5, //奖励金额",
- " DivideAmount = $6, //平分金额",
- " RuleRewardAmount = $7, //规则奖励金额",
- " BrandId = $8, //品牌",
- " UserNav = $9, //创客父级",
- " DirectBuddyNo = $10, //商户直属创客",
- " MerUserNav = $11, //商户直属创客父级",
- " KqMerNo = $12, //渠道商户编号",
- " KqSnNo = $13, //渠道SN号",
- " SnType = $14, //机具类型",
- " SnApplyUserId = $15, //机具申请创客",
- " ActType = $16, //激活类型",
- " ActTypeDesc = $17, //激活类型描述",
- " SnStoreId = $18, //SN仓库",
- " RewardRef = $19, //奖励来源创客",
- " RewardTips = $20, //奖励描述",
- " Province = $21, //省份",
- " City = $22, //城市",
- " Remark = $23, //备注",
- " ActDate = $24, //激活时间",
- " TopUserId = $25, //顶级创客",
- " MerUserId = $26, //直属创客",
- " ParentUserId = $27, //上级创客",
- " ParentParentUserId = $28, //上上级创客",
- "});"
- ]
- },"删除某个激活奖励记录": {
- "prefix": "ym-db-ActiveReward-Delete",
- "body": [
- "ActiveReward $1 = db.ActiveReward.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ActiveReward.Remove($1);",
- "}"
- ]
- },
- "查询活动报名记录列表": {
- "prefix": "ym-db-ActivityEnrolRecord-Find",
- "body": [
- "List<ActivityEnrolRecord> $1 = db.ActivityEnrolRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActivityEnrolRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询活动报名记录列表,并取值": {
- "prefix": "ym-db-ActivityEnrolRecord-FindWithData",
- "body": [
- "List<ActivityEnrolRecord> $1 = db.ActivityEnrolRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActivityEnrolRecord $3 in $1)",
- "{",
- " int ActId = $3.ActId; //活动",
- " int UserId = $3.UserId; //创客",
- " string EnrolMonth = $3.EnrolMonth; //报名有效月份",
- " string EffectStartTime = $3.EffectStartTime; //报名有效开始时间",
- " string EffectEndTime = $3.EffectEndTime; //报名有效结束时间",
- "}"
- ]
- },
- "查询活动报名记录": {
- "prefix": "ym-db-ActivityEnrolRecord-Exist",
- "body": [
- "bool $1 = db.ActivityEnrolRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个活动报名记录,并取值": {
- "prefix": "ym-db-ActivityEnrolRecord-FindByPrimaryKey",
- "body": [
- "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int ActId = $1.ActId; //活动",
- " int UserId = $1.UserId; //创客",
- " string EnrolMonth = $1.EnrolMonth; //报名有效月份",
- " string EffectStartTime = $1.EffectStartTime; //报名有效开始时间",
- " string EffectEndTime = $1.EffectEndTime; //报名有效结束时间",
- "}"
- ]
- },
- "查询某个活动报名记录,并赋值": {
- "prefix": "ym-db-ActivityEnrolRecord-Update",
- "body": [
- "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ActId = $2; //活动",
- " $1.UserId = $3; //创客",
- " $1.EnrolMonth = $4; //报名有效月份",
- " $1.EffectStartTime = $5; //报名有效开始时间",
- " $1.EffectEndTime = $6; //报名有效结束时间",
- "}"
- ]
- },
- "获取活动报名记录数量": {
- "prefix": "ym-db-ActivityEnrolRecord-FindAndCount",
- "body": [
- "int $1 = db.ActivityEnrolRecord.Count(m => $2);",
- ]
- },
- "添加活动报名记录": {
- "prefix": "ym-db-ActivityEnrolRecord-Create",
- "body": [
- "db.ActivityEnrolRecord.Add(new ActivityEnrolRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ActId = $1, //活动",
- " UserId = $2, //创客",
- " EnrolMonth = $3, //报名有效月份",
- " EffectStartTime = $4, //报名有效开始时间",
- " EffectEndTime = $5, //报名有效结束时间",
- "});"
- ]
- },"删除某个活动报名记录": {
- "prefix": "ym-db-ActivityEnrolRecord-Delete",
- "body": [
- "ActivityEnrolRecord $1 = db.ActivityEnrolRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ActivityEnrolRecord.Remove($1);",
- "}"
- ]
- },
- "查询活动信息列表": {
- "prefix": "ym-db-ActivityInfo-Find",
- "body": [
- "List<ActivityInfo> $1 = db.ActivityInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActivityInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询活动信息列表,并取值": {
- "prefix": "ym-db-ActivityInfo-FindWithData",
- "body": [
- "List<ActivityInfo> $1 = db.ActivityInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActivityInfo $3 in $1)",
- "{",
- " string ActCode = $3.ActCode; //活动编号",
- " int ActType = $3.ActType; //活动类型",
- " string ActName = $3.ActName; //活动名称",
- " string BrandId = $3.BrandId; //产品类型",
- " string LimitTopBuddy = $3.LimitTopBuddy; //顶级创客设置",
- " int IsTop = $3.IsTop; //是否置顶",
- " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
- " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间",
- " DateTime EnrolStartDate = $3.EnrolStartDate; //报名开始日期",
- " DateTime EnrolEndDate = $3.EnrolEndDate; //报名截止日期",
- " string EnrolStartTime = $3.EnrolStartTime; //报名当天开始时间",
- " string EnrolEndTime = $3.EnrolEndTime; //报名当天截止时间",
- " string ActReferUrl = $3.ActReferUrl; //链接地址",
- " string ActBanner = $3.ActBanner; //活动Banner图片",
- " string ActContent = $3.ActContent; //活动详情",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询活动信息": {
- "prefix": "ym-db-ActivityInfo-Exist",
- "body": [
- "bool $1 = db.ActivityInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个活动信息,并取值": {
- "prefix": "ym-db-ActivityInfo-FindByPrimaryKey",
- "body": [
- "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ActCode = $1.ActCode; //活动编号",
- " int ActType = $1.ActType; //活动类型",
- " string ActName = $1.ActName; //活动名称",
- " string BrandId = $1.BrandId; //产品类型",
- " string LimitTopBuddy = $1.LimitTopBuddy; //顶级创客设置",
- " int IsTop = $1.IsTop; //是否置顶",
- " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
- " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间",
- " DateTime EnrolStartDate = $1.EnrolStartDate; //报名开始日期",
- " DateTime EnrolEndDate = $1.EnrolEndDate; //报名截止日期",
- " string EnrolStartTime = $1.EnrolStartTime; //报名当天开始时间",
- " string EnrolEndTime = $1.EnrolEndTime; //报名当天截止时间",
- " string ActReferUrl = $1.ActReferUrl; //链接地址",
- " string ActBanner = $1.ActBanner; //活动Banner图片",
- " string ActContent = $1.ActContent; //活动详情",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个活动信息,并赋值": {
- "prefix": "ym-db-ActivityInfo-Update",
- "body": [
- "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ActCode = $2; //活动编号",
- " $1.ActType = $3; //活动类型",
- " $1.ActName = $4; //活动名称",
- " $1.BrandId = $5; //产品类型",
- " $1.LimitTopBuddy = $6; //顶级创客设置",
- " $1.IsTop = $7; //是否置顶",
- " $1.EffectStartDate = $8; //活动开始时间",
- " $1.EffectEndDate = $9; //活动结束时间",
- " $1.EnrolStartDate = $10; //报名开始日期",
- " $1.EnrolEndDate = $11; //报名截止日期",
- " $1.EnrolStartTime = $12; //报名当天开始时间",
- " $1.EnrolEndTime = $13; //报名当天截止时间",
- " $1.ActReferUrl = $14; //链接地址",
- " $1.ActBanner = $15; //活动Banner图片",
- " $1.ActContent = $16; //活动详情",
- " $1.Remark = $17; //备注",
- "}"
- ]
- },
- "获取活动信息数量": {
- "prefix": "ym-db-ActivityInfo-FindAndCount",
- "body": [
- "int $1 = db.ActivityInfo.Count(m => $2);",
- ]
- },
- "添加活动信息": {
- "prefix": "ym-db-ActivityInfo-Create",
- "body": [
- "db.ActivityInfo.Add(new ActivityInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ActCode = $1, //活动编号",
- " ActType = $2, //活动类型",
- " ActName = $3, //活动名称",
- " BrandId = $4, //产品类型",
- " LimitTopBuddy = $5, //顶级创客设置",
- " IsTop = $6, //是否置顶",
- " EffectStartDate = $7, //活动开始时间",
- " EffectEndDate = $8, //活动结束时间",
- " EnrolStartDate = $9, //报名开始日期",
- " EnrolEndDate = $10, //报名截止日期",
- " EnrolStartTime = $11, //报名当天开始时间",
- " EnrolEndTime = $12, //报名当天截止时间",
- " ActReferUrl = $13, //链接地址",
- " ActBanner = $14, //活动Banner图片",
- " ActContent = $15, //活动详情",
- " Remark = $16, //备注",
- "});"
- ]
- },"删除某个活动信息": {
- "prefix": "ym-db-ActivityInfo-Delete",
- "body": [
- "ActivityInfo $1 = db.ActivityInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ActivityInfo.Remove($1);",
- "}"
- ]
- },
- "查询活动奖励明细列表": {
- "prefix": "ym-db-ActivityPrizeDetail-Find",
- "body": [
- "List<ActivityPrizeDetail> $1 = db.ActivityPrizeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActivityPrizeDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询活动奖励明细列表,并取值": {
- "prefix": "ym-db-ActivityPrizeDetail-FindWithData",
- "body": [
- "List<ActivityPrizeDetail> $1 = db.ActivityPrizeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ActivityPrizeDetail $3 in $1)",
- "{",
- " int ActivityId = $3.ActivityId; //活动",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //机具品牌",
- " decimal TradeAmt = $3.TradeAmt; //合伙人团队交易总金额",
- " int CheckStatus = $3.CheckStatus; //同步状态",
- " string TradeMonth = $3.TradeMonth; //交易月份",
- " decimal OtherProdCreditTradeAmt = $3.OtherProdCreditTradeAmt; //其他组合计算产品贷记卡交易总金额",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //合伙人团队贷记卡交易总金额",
- " decimal ActRewardAmt = $3.ActRewardAmt; //合伙人团队交易活动奖励金额",
- " decimal ProfitRate = $3.ProfitRate; //活动奖励对应分成比例",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询活动奖励明细": {
- "prefix": "ym-db-ActivityPrizeDetail-Exist",
- "body": [
- "bool $1 = db.ActivityPrizeDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个活动奖励明细,并取值": {
- "prefix": "ym-db-ActivityPrizeDetail-FindByPrimaryKey",
- "body": [
- "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int ActivityId = $1.ActivityId; //活动",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //机具品牌",
- " decimal TradeAmt = $1.TradeAmt; //合伙人团队交易总金额",
- " int CheckStatus = $1.CheckStatus; //同步状态",
- " string TradeMonth = $1.TradeMonth; //交易月份",
- " decimal OtherProdCreditTradeAmt = $1.OtherProdCreditTradeAmt; //其他组合计算产品贷记卡交易总金额",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //合伙人团队贷记卡交易总金额",
- " decimal ActRewardAmt = $1.ActRewardAmt; //合伙人团队交易活动奖励金额",
- " decimal ProfitRate = $1.ProfitRate; //活动奖励对应分成比例",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个活动奖励明细,并赋值": {
- "prefix": "ym-db-ActivityPrizeDetail-Update",
- "body": [
- "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ActivityId = $2; //活动",
- " $1.UserId = $3; //创客",
- " $1.BrandId = $4; //机具品牌",
- " $1.TradeAmt = $5; //合伙人团队交易总金额",
- " $1.CheckStatus = $6; //同步状态",
- " $1.TradeMonth = $7; //交易月份",
- " $1.OtherProdCreditTradeAmt = $8; //其他组合计算产品贷记卡交易总金额",
- " $1.CreditTradeAmt = $9; //合伙人团队贷记卡交易总金额",
- " $1.ActRewardAmt = $10; //合伙人团队交易活动奖励金额",
- " $1.ProfitRate = $11; //活动奖励对应分成比例",
- " $1.TopUserId = $12; //顶级创客",
- "}"
- ]
- },
- "获取活动奖励明细数量": {
- "prefix": "ym-db-ActivityPrizeDetail-FindAndCount",
- "body": [
- "int $1 = db.ActivityPrizeDetail.Count(m => $2);",
- ]
- },
- "添加活动奖励明细": {
- "prefix": "ym-db-ActivityPrizeDetail-Create",
- "body": [
- "db.ActivityPrizeDetail.Add(new ActivityPrizeDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ActivityId = $1, //活动",
- " UserId = $2, //创客",
- " BrandId = $3, //机具品牌",
- " TradeAmt = $4, //合伙人团队交易总金额",
- " CheckStatus = $5, //同步状态",
- " TradeMonth = $6, //交易月份",
- " OtherProdCreditTradeAmt = $7, //其他组合计算产品贷记卡交易总金额",
- " CreditTradeAmt = $8, //合伙人团队贷记卡交易总金额",
- " ActRewardAmt = $9, //合伙人团队交易活动奖励金额",
- " ProfitRate = $10, //活动奖励对应分成比例",
- " TopUserId = $11, //顶级创客",
- "});"
- ]
- },"删除某个活动奖励明细": {
- "prefix": "ym-db-ActivityPrizeDetail-Delete",
- "body": [
- "ActivityPrizeDetail $1 = db.ActivityPrizeDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ActivityPrizeDetail.Remove($1);",
- "}"
- ]
- },
- "查询App底部导航列表": {
- "prefix": "ym-db-AppBottomNavs-Find",
- "body": [
- "List<AppBottomNavs> $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppBottomNavs $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询App底部导航列表,并取值": {
- "prefix": "ym-db-AppBottomNavs-FindWithData",
- "body": [
- "List<AppBottomNavs> $1 = db.AppBottomNavs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppBottomNavs $3 in $1)",
- "{",
- " string Title = $3.Title; //标题",
- " string SelectIcon = $3.SelectIcon; //选中图标",
- " string NormalIcon = $3.NormalIcon; //未选中图标",
- " string SelectTextColor = $3.SelectTextColor; //选中文字颜色",
- " string NormalTextColor = $3.NormalTextColor; //未选中文字颜色",
- " string PageName = $3.PageName; //关联页面文件",
- " string NoPageHint = $3.NoPageHint; //空页面提示信息",
- " string BgColor = $3.BgColor; //背景色",
- "}"
- ]
- },
- "查询App底部导航": {
- "prefix": "ym-db-AppBottomNavs-Exist",
- "body": [
- "bool $1 = db.AppBottomNavs.Any(m => m.Id == $2);",
- ]
- },
- "查询某个App底部导航,并取值": {
- "prefix": "ym-db-AppBottomNavs-FindByPrimaryKey",
- "body": [
- "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Title = $1.Title; //标题",
- " string SelectIcon = $1.SelectIcon; //选中图标",
- " string NormalIcon = $1.NormalIcon; //未选中图标",
- " string SelectTextColor = $1.SelectTextColor; //选中文字颜色",
- " string NormalTextColor = $1.NormalTextColor; //未选中文字颜色",
- " string PageName = $1.PageName; //关联页面文件",
- " string NoPageHint = $1.NoPageHint; //空页面提示信息",
- " string BgColor = $1.BgColor; //背景色",
- "}"
- ]
- },
- "查询某个App底部导航,并赋值": {
- "prefix": "ym-db-AppBottomNavs-Update",
- "body": [
- "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Title = $2; //标题",
- " $1.SelectIcon = $3; //选中图标",
- " $1.NormalIcon = $4; //未选中图标",
- " $1.SelectTextColor = $5; //选中文字颜色",
- " $1.NormalTextColor = $6; //未选中文字颜色",
- " $1.PageName = $7; //关联页面文件",
- " $1.NoPageHint = $8; //空页面提示信息",
- " $1.BgColor = $9; //背景色",
- "}"
- ]
- },
- "获取App底部导航数量": {
- "prefix": "ym-db-AppBottomNavs-FindAndCount",
- "body": [
- "int $1 = db.AppBottomNavs.Count(m => $2);",
- ]
- },
- "添加App底部导航": {
- "prefix": "ym-db-AppBottomNavs-Create",
- "body": [
- "db.AppBottomNavs.Add(new AppBottomNavs()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Title = $1, //标题",
- " SelectIcon = $2, //选中图标",
- " NormalIcon = $3, //未选中图标",
- " SelectTextColor = $4, //选中文字颜色",
- " NormalTextColor = $5, //未选中文字颜色",
- " PageName = $6, //关联页面文件",
- " NoPageHint = $7, //空页面提示信息",
- " BgColor = $8, //背景色",
- "});"
- ]
- },"删除某个App底部导航": {
- "prefix": "ym-db-AppBottomNavs-Delete",
- "body": [
- "AppBottomNavs $1 = db.AppBottomNavs.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.AppBottomNavs.Remove($1);",
- "}"
- ]
- },
- "查询App版本管理列表": {
- "prefix": "ym-db-AppVersion-Find",
- "body": [
- "List<AppVersion> $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppVersion $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询App版本管理列表,并取值": {
- "prefix": "ym-db-AppVersion-FindWithData",
- "body": [
- "List<AppVersion> $1 = db.AppVersion.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppVersion $3 in $1)",
- "{",
- " string TerminalKind = $3.TerminalKind; //终端类型",
- " string VersionNum = $3.VersionNum; //版本号",
- " string Title = $3.Title; //标题",
- " string Info = $3.Info; //更新信息",
- " string ConfirmText = $3.ConfirmText; //确定按钮文字",
- " string CancelText = $3.CancelText; //取消按钮文字",
- " string DownloadUrl = $3.DownloadUrl; //更新地址",
- "}"
- ]
- },
- "查询App版本管理": {
- "prefix": "ym-db-AppVersion-Exist",
- "body": [
- "bool $1 = db.AppVersion.Any(m => m.Id == $2);",
- ]
- },
- "查询某个App版本管理,并取值": {
- "prefix": "ym-db-AppVersion-FindByPrimaryKey",
- "body": [
- "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TerminalKind = $1.TerminalKind; //终端类型",
- " string VersionNum = $1.VersionNum; //版本号",
- " string Title = $1.Title; //标题",
- " string Info = $1.Info; //更新信息",
- " string ConfirmText = $1.ConfirmText; //确定按钮文字",
- " string CancelText = $1.CancelText; //取消按钮文字",
- " string DownloadUrl = $1.DownloadUrl; //更新地址",
- "}"
- ]
- },
- "查询某个App版本管理,并赋值": {
- "prefix": "ym-db-AppVersion-Update",
- "body": [
- "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TerminalKind = $2; //终端类型",
- " $1.VersionNum = $3; //版本号",
- " $1.Title = $4; //标题",
- " $1.Info = $5; //更新信息",
- " $1.ConfirmText = $6; //确定按钮文字",
- " $1.CancelText = $7; //取消按钮文字",
- " $1.DownloadUrl = $8; //更新地址",
- "}"
- ]
- },
- "获取App版本管理数量": {
- "prefix": "ym-db-AppVersion-FindAndCount",
- "body": [
- "int $1 = db.AppVersion.Count(m => $2);",
- ]
- },
- "添加App版本管理": {
- "prefix": "ym-db-AppVersion-Create",
- "body": [
- "db.AppVersion.Add(new AppVersion()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TerminalKind = $1, //终端类型",
- " VersionNum = $2, //版本号",
- " Title = $3, //标题",
- " Info = $4, //更新信息",
- " ConfirmText = $5, //确定按钮文字",
- " CancelText = $6, //取消按钮文字",
- " DownloadUrl = $7, //更新地址",
- "});"
- ]
- },"删除某个App版本管理": {
- "prefix": "ym-db-AppVersion-Delete",
- "body": [
- "AppVersion $1 = db.AppVersion.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.AppVersion.Remove($1);",
- "}"
- ]
- },
- "查询创业帮操作视频分类列表": {
- "prefix": "ym-db-AppVideo-Find",
- "body": [
- "List<AppVideo> $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppVideo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创业帮操作视频分类列表,并取值": {
- "prefix": "ym-db-AppVideo-FindWithData",
- "body": [
- "List<AppVideo> $1 = db.AppVideo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppVideo $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string BannerPic = $3.BannerPic; //Banner图片",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询创业帮操作视频分类": {
- "prefix": "ym-db-AppVideo-Exist",
- "body": [
- "bool $1 = db.AppVideo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创业帮操作视频分类,并取值": {
- "prefix": "ym-db-AppVideo-FindByPrimaryKey",
- "body": [
- "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string BannerPic = $1.BannerPic; //Banner图片",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个创业帮操作视频分类,并赋值": {
- "prefix": "ym-db-AppVideo-Update",
- "body": [
- "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.BannerPic = $3; //Banner图片",
- " $1.Remark = $4; //备注",
- "}"
- ]
- },
- "获取创业帮操作视频分类数量": {
- "prefix": "ym-db-AppVideo-FindAndCount",
- "body": [
- "int $1 = db.AppVideo.Count(m => $2);",
- ]
- },
- "添加创业帮操作视频分类": {
- "prefix": "ym-db-AppVideo-Create",
- "body": [
- "db.AppVideo.Add(new AppVideo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " BannerPic = $2, //Banner图片",
- " Remark = $3, //备注",
- "});"
- ]
- },"删除某个创业帮操作视频分类": {
- "prefix": "ym-db-AppVideo-Delete",
- "body": [
- "AppVideo $1 = db.AppVideo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.AppVideo.Remove($1);",
- "}"
- ]
- },
- "查询创业帮操作视频列表列表": {
- "prefix": "ym-db-AppVideoList-Find",
- "body": [
- "List<AppVideoList> $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppVideoList $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创业帮操作视频列表列表,并取值": {
- "prefix": "ym-db-AppVideoList-FindWithData",
- "body": [
- "List<AppVideoList> $1 = db.AppVideoList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AppVideoList $3 in $1)",
- "{",
- " string Title = $3.Title; //标题",
- " string VideoUrl = $3.VideoUrl; //视频地址",
- " string Remark = $3.Remark; //备注",
- " int VideoId = $3.VideoId; //视频分类Id",
- " string BgPic = $3.BgPic; //背景图",
- "}"
- ]
- },
- "查询创业帮操作视频列表": {
- "prefix": "ym-db-AppVideoList-Exist",
- "body": [
- "bool $1 = db.AppVideoList.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创业帮操作视频列表,并取值": {
- "prefix": "ym-db-AppVideoList-FindByPrimaryKey",
- "body": [
- "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Title = $1.Title; //标题",
- " string VideoUrl = $1.VideoUrl; //视频地址",
- " string Remark = $1.Remark; //备注",
- " int VideoId = $1.VideoId; //视频分类Id",
- " string BgPic = $1.BgPic; //背景图",
- "}"
- ]
- },
- "查询某个创业帮操作视频列表,并赋值": {
- "prefix": "ym-db-AppVideoList-Update",
- "body": [
- "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Title = $2; //标题",
- " $1.VideoUrl = $3; //视频地址",
- " $1.Remark = $4; //备注",
- " $1.VideoId = $5; //视频分类Id",
- " $1.BgPic = $6; //背景图",
- "}"
- ]
- },
- "获取创业帮操作视频列表数量": {
- "prefix": "ym-db-AppVideoList-FindAndCount",
- "body": [
- "int $1 = db.AppVideoList.Count(m => $2);",
- ]
- },
- "添加创业帮操作视频列表": {
- "prefix": "ym-db-AppVideoList-Create",
- "body": [
- "db.AppVideoList.Add(new AppVideoList()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Title = $1, //标题",
- " VideoUrl = $2, //视频地址",
- " Remark = $3, //备注",
- " VideoId = $4, //视频分类Id",
- " BgPic = $5, //背景图",
- "});"
- ]
- },"删除某个创业帮操作视频列表": {
- "prefix": "ym-db-AppVideoList-Delete",
- "body": [
- "AppVideoList $1 = db.AppVideoList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.AppVideoList.Remove($1);",
- "}"
- ]
- },
- "查询银行信息列表": {
- "prefix": "ym-db-BankInfo-Find",
- "body": [
- "List<BankInfo> $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (BankInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询银行信息列表,并取值": {
- "prefix": "ym-db-BankInfo-FindWithData",
- "body": [
- "List<BankInfo> $1 = db.BankInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (BankInfo $3 in $1)",
- "{",
- " string BankName = $3.BankName; //银行全称",
- " string BankCode = $3.BankCode; //银行编码",
- " string UnitedBankNo = $3.UnitedBankNo; //银行总行联行号",
- " string UnitedBankName = $3.UnitedBankName; //总行名称",
- " string BankNameAbbr = $3.BankNameAbbr; //银行简称",
- "}"
- ]
- },
- "查询银行信息": {
- "prefix": "ym-db-BankInfo-Exist",
- "body": [
- "bool $1 = db.BankInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个银行信息,并取值": {
- "prefix": "ym-db-BankInfo-FindByPrimaryKey",
- "body": [
- "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string BankName = $1.BankName; //银行全称",
- " string BankCode = $1.BankCode; //银行编码",
- " string UnitedBankNo = $1.UnitedBankNo; //银行总行联行号",
- " string UnitedBankName = $1.UnitedBankName; //总行名称",
- " string BankNameAbbr = $1.BankNameAbbr; //银行简称",
- "}"
- ]
- },
- "查询某个银行信息,并赋值": {
- "prefix": "ym-db-BankInfo-Update",
- "body": [
- "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.BankName = $2; //银行全称",
- " $1.BankCode = $3; //银行编码",
- " $1.UnitedBankNo = $4; //银行总行联行号",
- " $1.UnitedBankName = $5; //总行名称",
- " $1.BankNameAbbr = $6; //银行简称",
- "}"
- ]
- },
- "获取银行信息数量": {
- "prefix": "ym-db-BankInfo-FindAndCount",
- "body": [
- "int $1 = db.BankInfo.Count(m => $2);",
- ]
- },
- "添加银行信息": {
- "prefix": "ym-db-BankInfo-Create",
- "body": [
- "db.BankInfo.Add(new BankInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " BankName = $1, //银行全称",
- " BankCode = $2, //银行编码",
- " UnitedBankNo = $3, //银行总行联行号",
- " UnitedBankName = $4, //总行名称",
- " BankNameAbbr = $5, //银行简称",
- "});"
- ]
- },"删除某个银行信息": {
- "prefix": "ym-db-BankInfo-Delete",
- "body": [
- "BankInfo $1 = db.BankInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.BankInfo.Remove($1);",
- "}"
- ]
- },
- "查询分类设置列表": {
- "prefix": "ym-db-Col-Find",
- "body": [
- "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Col $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分类设置列表,并取值": {
- "prefix": "ym-db-Col-FindWithData",
- "body": [
- "List<Col> $1 = db.Col.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Col $3 in $1)",
- "{",
- " string ColId = $3.ColId; //编号",
- " string ColName = $3.ColName; //名称",
- " string ColPicPath = $3.ColPicPath; //图标",
- " string ColDetail = $3.ColDetail; //简介",
- " ulong Recommend = $3.Recommend; //推荐",
- " string ColEnName = $3.ColEnName; //英文名",
- " string Contents = $3.Contents; //详细内容",
- " string Url = $3.Url; //第三方链接",
- " string ListTemp = $3.ListTemp; //列表模板PC",
- " string DetailTemp = $3.DetailTemp; //详情模板PC",
- " string ListTempM = $3.ListTempM; //列表模板移动",
- " string DetailTempM = $3.DetailTempM; //详情模板移动",
- " int ListPageCount = $3.ListPageCount; //每页数量",
- " int ParentId = $3.ParentId; //父级Id",
- " string ColEnNav = $3.ColEnNav; //英文路径",
- " string ClassName = $3.ClassName; //class样式名1",
- "}"
- ]
- },
- "查询分类设置": {
- "prefix": "ym-db-Col-Exist",
- "body": [
- "bool $1 = db.Col.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分类设置,并取值": {
- "prefix": "ym-db-Col-FindByPrimaryKey",
- "body": [
- "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ColId = $1.ColId; //编号",
- " string ColName = $1.ColName; //名称",
- " string ColPicPath = $1.ColPicPath; //图标",
- " string ColDetail = $1.ColDetail; //简介",
- " ulong Recommend = $1.Recommend; //推荐",
- " string ColEnName = $1.ColEnName; //英文名",
- " string Contents = $1.Contents; //详细内容",
- " string Url = $1.Url; //第三方链接",
- " string ListTemp = $1.ListTemp; //列表模板PC",
- " string DetailTemp = $1.DetailTemp; //详情模板PC",
- " string ListTempM = $1.ListTempM; //列表模板移动",
- " string DetailTempM = $1.DetailTempM; //详情模板移动",
- " int ListPageCount = $1.ListPageCount; //每页数量",
- " int ParentId = $1.ParentId; //父级Id",
- " string ColEnNav = $1.ColEnNav; //英文路径",
- " string ClassName = $1.ClassName; //class样式名1",
- "}"
- ]
- },
- "查询某个分类设置,并赋值": {
- "prefix": "ym-db-Col-Update",
- "body": [
- "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ColId = $2; //编号",
- " $1.ColName = $3; //名称",
- " $1.ColPicPath = $4; //图标",
- " $1.ColDetail = $5; //简介",
- " $1.Recommend = $6; //推荐",
- " $1.ColEnName = $7; //英文名",
- " $1.Contents = $8; //详细内容",
- " $1.Url = $9; //第三方链接",
- " $1.ListTemp = $10; //列表模板PC",
- " $1.DetailTemp = $11; //详情模板PC",
- " $1.ListTempM = $12; //列表模板移动",
- " $1.DetailTempM = $13; //详情模板移动",
- " $1.ListPageCount = $14; //每页数量",
- " $1.ParentId = $15; //父级Id",
- " $1.ColEnNav = $16; //英文路径",
- " $1.ClassName = $17; //class样式名1",
- "}"
- ]
- },
- "获取分类设置数量": {
- "prefix": "ym-db-Col-FindAndCount",
- "body": [
- "int $1 = db.Col.Count(m => $2);",
- ]
- },
- "添加分类设置": {
- "prefix": "ym-db-Col-Create",
- "body": [
- "db.Col.Add(new Col()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ColId = $1, //编号",
- " ColName = $2, //名称",
- " ColPicPath = $3, //图标",
- " ColDetail = $4, //简介",
- " Recommend = $5, //推荐",
- " ColEnName = $6, //英文名",
- " Contents = $7, //详细内容",
- " Url = $8, //第三方链接",
- " ListTemp = $9, //列表模板PC",
- " DetailTemp = $10, //详情模板PC",
- " ListTempM = $11, //列表模板移动",
- " DetailTempM = $12, //详情模板移动",
- " ListPageCount = $13, //每页数量",
- " ParentId = $14, //父级Id",
- " ColEnNav = $15, //英文路径",
- " ClassName = $16, //class样式名1",
- "});"
- ]
- },"删除某个分类设置": {
- "prefix": "ym-db-Col-Delete",
- "body": [
- "Col $1 = db.Col.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Col.Remove($1);",
- "}"
- ]
- },
- "查询优惠券发放记录列表": {
- "prefix": "ym-db-CouponAssignRecords-Find",
- "body": [
- "List<CouponAssignRecords> $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (CouponAssignRecords $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询优惠券发放记录列表,并取值": {
- "prefix": "ym-db-CouponAssignRecords-FindWithData",
- "body": [
- "List<CouponAssignRecords> $1 = db.CouponAssignRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (CouponAssignRecords $3 in $1)",
- "{",
- " int UserMinLevel = $3.UserMinLevel; //创客最低等级",
- " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级",
- " decimal TotalOrderMoneyMin = $3.TotalOrderMoneyMin; //最小消费总额",
- " decimal TotalOrderMoneyMax = $3.TotalOrderMoneyMax; //最大消费总额",
- " decimal TotalUseIntegralMin = $3.TotalUseIntegralMin; //最小消耗积分总额",
- " decimal TotalUseIntegralMax = $3.TotalUseIntegralMax; //最大消耗积分总额",
- " decimal CurMoneyMin = $3.CurMoneyMin; //当前最低余额",
- " decimal CurMoneyMax = $3.CurMoneyMax; //当前最高余额",
- " string UserGroupId = $3.UserGroupId; //创客分组",
- " string Areas = $3.Areas; //创客所在地区",
- " string Mobile = $3.Mobile; //手机号",
- " string CouponIds = $3.CouponIds; //优惠券",
- "}"
- ]
- },
- "查询优惠券发放记录": {
- "prefix": "ym-db-CouponAssignRecords-Exist",
- "body": [
- "bool $1 = db.CouponAssignRecords.Any(m => m.Id == $2);",
- ]
- },
- "查询某个优惠券发放记录,并取值": {
- "prefix": "ym-db-CouponAssignRecords-FindByPrimaryKey",
- "body": [
- "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserMinLevel = $1.UserMinLevel; //创客最低等级",
- " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级",
- " decimal TotalOrderMoneyMin = $1.TotalOrderMoneyMin; //最小消费总额",
- " decimal TotalOrderMoneyMax = $1.TotalOrderMoneyMax; //最大消费总额",
- " decimal TotalUseIntegralMin = $1.TotalUseIntegralMin; //最小消耗积分总额",
- " decimal TotalUseIntegralMax = $1.TotalUseIntegralMax; //最大消耗积分总额",
- " decimal CurMoneyMin = $1.CurMoneyMin; //当前最低余额",
- " decimal CurMoneyMax = $1.CurMoneyMax; //当前最高余额",
- " string UserGroupId = $1.UserGroupId; //创客分组",
- " string Areas = $1.Areas; //创客所在地区",
- " string Mobile = $1.Mobile; //手机号",
- " string CouponIds = $1.CouponIds; //优惠券",
- "}"
- ]
- },
- "查询某个优惠券发放记录,并赋值": {
- "prefix": "ym-db-CouponAssignRecords-Update",
- "body": [
- "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserMinLevel = $2; //创客最低等级",
- " $1.UserMaxLevel = $3; //创客最高等级",
- " $1.TotalOrderMoneyMin = $4; //最小消费总额",
- " $1.TotalOrderMoneyMax = $5; //最大消费总额",
- " $1.TotalUseIntegralMin = $6; //最小消耗积分总额",
- " $1.TotalUseIntegralMax = $7; //最大消耗积分总额",
- " $1.CurMoneyMin = $8; //当前最低余额",
- " $1.CurMoneyMax = $9; //当前最高余额",
- " $1.UserGroupId = $10; //创客分组",
- " $1.Areas = $11; //创客所在地区",
- " $1.Mobile = $12; //手机号",
- " $1.CouponIds = $13; //优惠券",
- "}"
- ]
- },
- "获取优惠券发放记录数量": {
- "prefix": "ym-db-CouponAssignRecords-FindAndCount",
- "body": [
- "int $1 = db.CouponAssignRecords.Count(m => $2);",
- ]
- },
- "添加优惠券发放记录": {
- "prefix": "ym-db-CouponAssignRecords-Create",
- "body": [
- "db.CouponAssignRecords.Add(new CouponAssignRecords()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserMinLevel = $1, //创客最低等级",
- " UserMaxLevel = $2, //创客最高等级",
- " TotalOrderMoneyMin = $3, //最小消费总额",
- " TotalOrderMoneyMax = $4, //最大消费总额",
- " TotalUseIntegralMin = $5, //最小消耗积分总额",
- " TotalUseIntegralMax = $6, //最大消耗积分总额",
- " CurMoneyMin = $7, //当前最低余额",
- " CurMoneyMax = $8, //当前最高余额",
- " UserGroupId = $9, //创客分组",
- " Areas = $10, //创客所在地区",
- " Mobile = $11, //手机号",
- " CouponIds = $12, //优惠券",
- "});"
- ]
- },"删除某个优惠券发放记录": {
- "prefix": "ym-db-CouponAssignRecords-Delete",
- "body": [
- "CouponAssignRecords $1 = db.CouponAssignRecords.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.CouponAssignRecords.Remove($1);",
- "}"
- ]
- },
- "查询优惠券列表": {
- "prefix": "ym-db-Coupons-Find",
- "body": [
- "List<Coupons> $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Coupons $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询优惠券列表,并取值": {
- "prefix": "ym-db-Coupons-FindWithData",
- "body": [
- "List<Coupons> $1 = db.Coupons.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Coupons $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string Explanation = $3.Explanation; //说明",
- " ulong IsNewUser = $3.IsNewUser; //新创客使用",
- " ulong IsPublic = $3.IsPublic; //是否公开领取",
- " decimal Stock = $3.Stock; //库存",
- " int Kind = $3.Kind; //优惠券类型",
- " string MerchantId = $3.MerchantId; //商家",
- " string ProductColId = $3.ProductColId; //商品分类",
- " string ProductId = $3.ProductId; //商品",
- " int UserMaxLevel = $3.UserMaxLevel; //创客最高等级",
- " int UserMinLevel = $3.UserMinLevel; //创客最低等级",
- " DateTime UseStartDate = $3.UseStartDate; //开始使用时间",
- " DateTime UseEndDate = $3.UseEndDate; //结束使用时间",
- " ulong IsRepeat = $3.IsRepeat; //是否重复",
- " int RepeatType = $3.RepeatType; //重复类型",
- " string RepeatCondition = $3.RepeatCondition; //重复条件值",
- " ulong IsReUse = $3.IsReUse; //是否一次性使用",
- " DateTime PublicStartDate = $3.PublicStartDate; //公开领取开始时间",
- " DateTime PublicEndDate = $3.PublicEndDate; //公开领取结束时间",
- " int PublicMax = $3.PublicMax; //公开每人领取数量",
- " int PublicMaxByDay = $3.PublicMaxByDay; //公开每人每天领取数量",
- " ulong IsSuperpose = $3.IsSuperpose; //是否叠加使用",
- " ulong AndPromotion = $3.AndPromotion; //是否与促销活动同时使用",
- " decimal FullReduceMoney = $3.FullReduceMoney; //满多少可用",
- " decimal FullReduceData = $3.FullReduceData; //满减数据",
- " DateTime ExpireStartDate = $3.ExpireStartDate; //过期开始时间",
- " DateTime ExpireEndDate = $3.ExpireEndDate; //过期结束时间",
- "}"
- ]
- },
- "查询优惠券": {
- "prefix": "ym-db-Coupons-Exist",
- "body": [
- "bool $1 = db.Coupons.Any(m => m.Id == $2);",
- ]
- },
- "查询某个优惠券,并取值": {
- "prefix": "ym-db-Coupons-FindByPrimaryKey",
- "body": [
- "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string Explanation = $1.Explanation; //说明",
- " ulong IsNewUser = $1.IsNewUser; //新创客使用",
- " ulong IsPublic = $1.IsPublic; //是否公开领取",
- " decimal Stock = $1.Stock; //库存",
- " int Kind = $1.Kind; //优惠券类型",
- " string MerchantId = $1.MerchantId; //商家",
- " string ProductColId = $1.ProductColId; //商品分类",
- " string ProductId = $1.ProductId; //商品",
- " int UserMaxLevel = $1.UserMaxLevel; //创客最高等级",
- " int UserMinLevel = $1.UserMinLevel; //创客最低等级",
- " DateTime UseStartDate = $1.UseStartDate; //开始使用时间",
- " DateTime UseEndDate = $1.UseEndDate; //结束使用时间",
- " ulong IsRepeat = $1.IsRepeat; //是否重复",
- " int RepeatType = $1.RepeatType; //重复类型",
- " string RepeatCondition = $1.RepeatCondition; //重复条件值",
- " ulong IsReUse = $1.IsReUse; //是否一次性使用",
- " DateTime PublicStartDate = $1.PublicStartDate; //公开领取开始时间",
- " DateTime PublicEndDate = $1.PublicEndDate; //公开领取结束时间",
- " int PublicMax = $1.PublicMax; //公开每人领取数量",
- " int PublicMaxByDay = $1.PublicMaxByDay; //公开每人每天领取数量",
- " ulong IsSuperpose = $1.IsSuperpose; //是否叠加使用",
- " ulong AndPromotion = $1.AndPromotion; //是否与促销活动同时使用",
- " decimal FullReduceMoney = $1.FullReduceMoney; //满多少可用",
- " decimal FullReduceData = $1.FullReduceData; //满减数据",
- " DateTime ExpireStartDate = $1.ExpireStartDate; //过期开始时间",
- " DateTime ExpireEndDate = $1.ExpireEndDate; //过期结束时间",
- "}"
- ]
- },
- "查询某个优惠券,并赋值": {
- "prefix": "ym-db-Coupons-Update",
- "body": [
- "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.Explanation = $3; //说明",
- " $1.IsNewUser = $4; //新创客使用",
- " $1.IsPublic = $5; //是否公开领取",
- " $1.Stock = $6; //库存",
- " $1.Kind = $7; //优惠券类型",
- " $1.MerchantId = $8; //商家",
- " $1.ProductColId = $9; //商品分类",
- " $1.ProductId = $10; //商品",
- " $1.UserMaxLevel = $11; //创客最高等级",
- " $1.UserMinLevel = $12; //创客最低等级",
- " $1.UseStartDate = $13; //开始使用时间",
- " $1.UseEndDate = $14; //结束使用时间",
- " $1.IsRepeat = $15; //是否重复",
- " $1.RepeatType = $16; //重复类型",
- " $1.RepeatCondition = $17; //重复条件值",
- " $1.IsReUse = $18; //是否一次性使用",
- " $1.PublicStartDate = $19; //公开领取开始时间",
- " $1.PublicEndDate = $20; //公开领取结束时间",
- " $1.PublicMax = $21; //公开每人领取数量",
- " $1.PublicMaxByDay = $22; //公开每人每天领取数量",
- " $1.IsSuperpose = $23; //是否叠加使用",
- " $1.AndPromotion = $24; //是否与促销活动同时使用",
- " $1.FullReduceMoney = $25; //满多少可用",
- " $1.FullReduceData = $26; //满减数据",
- " $1.ExpireStartDate = $27; //过期开始时间",
- " $1.ExpireEndDate = $28; //过期结束时间",
- "}"
- ]
- },
- "获取优惠券数量": {
- "prefix": "ym-db-Coupons-FindAndCount",
- "body": [
- "int $1 = db.Coupons.Count(m => $2);",
- ]
- },
- "添加优惠券": {
- "prefix": "ym-db-Coupons-Create",
- "body": [
- "db.Coupons.Add(new Coupons()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " Explanation = $2, //说明",
- " IsNewUser = $3, //新创客使用",
- " IsPublic = $4, //是否公开领取",
- " Stock = $5, //库存",
- " Kind = $6, //优惠券类型",
- " MerchantId = $7, //商家",
- " ProductColId = $8, //商品分类",
- " ProductId = $9, //商品",
- " UserMaxLevel = $10, //创客最高等级",
- " UserMinLevel = $11, //创客最低等级",
- " UseStartDate = $12, //开始使用时间",
- " UseEndDate = $13, //结束使用时间",
- " IsRepeat = $14, //是否重复",
- " RepeatType = $15, //重复类型",
- " RepeatCondition = $16, //重复条件值",
- " IsReUse = $17, //是否一次性使用",
- " PublicStartDate = $18, //公开领取开始时间",
- " PublicEndDate = $19, //公开领取结束时间",
- " PublicMax = $20, //公开每人领取数量",
- " PublicMaxByDay = $21, //公开每人每天领取数量",
- " IsSuperpose = $22, //是否叠加使用",
- " AndPromotion = $23, //是否与促销活动同时使用",
- " FullReduceMoney = $24, //满多少可用",
- " FullReduceData = $25, //满减数据",
- " ExpireStartDate = $26, //过期开始时间",
- " ExpireEndDate = $27, //过期结束时间",
- "});"
- ]
- },"删除某个优惠券": {
- "prefix": "ym-db-Coupons-Delete",
- "body": [
- "Coupons $1 = db.Coupons.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Coupons.Remove($1);",
- "}"
- ]
- },
- "查询优惠券领取记录列表": {
- "prefix": "ym-db-CouponsForUser-Find",
- "body": [
- "List<CouponsForUser> $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (CouponsForUser $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询优惠券领取记录列表,并取值": {
- "prefix": "ym-db-CouponsForUser-FindWithData",
- "body": [
- "List<CouponsForUser> $1 = db.CouponsForUser.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (CouponsForUser $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " int CouponId = $3.CouponId; //券Id",
- " ulong IsUse = $3.IsUse; //是否使用",
- " ulong IsLock = $3.IsLock; //是否锁定",
- " DateTime UseDate = $3.UseDate; //使用时间",
- "}"
- ]
- },
- "查询优惠券领取记录": {
- "prefix": "ym-db-CouponsForUser-Exist",
- "body": [
- "bool $1 = db.CouponsForUser.Any(m => m.Id == $2);",
- ]
- },
- "查询某个优惠券领取记录,并取值": {
- "prefix": "ym-db-CouponsForUser-FindByPrimaryKey",
- "body": [
- "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " int CouponId = $1.CouponId; //券Id",
- " ulong IsUse = $1.IsUse; //是否使用",
- " ulong IsLock = $1.IsLock; //是否锁定",
- " DateTime UseDate = $1.UseDate; //使用时间",
- "}"
- ]
- },
- "查询某个优惠券领取记录,并赋值": {
- "prefix": "ym-db-CouponsForUser-Update",
- "body": [
- "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.CouponId = $3; //券Id",
- " $1.IsUse = $4; //是否使用",
- " $1.IsLock = $5; //是否锁定",
- " $1.UseDate = $6; //使用时间",
- "}"
- ]
- },
- "获取优惠券领取记录数量": {
- "prefix": "ym-db-CouponsForUser-FindAndCount",
- "body": [
- "int $1 = db.CouponsForUser.Count(m => $2);",
- ]
- },
- "添加优惠券领取记录": {
- "prefix": "ym-db-CouponsForUser-Create",
- "body": [
- "db.CouponsForUser.Add(new CouponsForUser()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " CouponId = $2, //券Id",
- " IsUse = $3, //是否使用",
- " IsLock = $4, //是否锁定",
- " UseDate = $5, //使用时间",
- "});"
- ]
- },"删除某个优惠券领取记录": {
- "prefix": "ym-db-CouponsForUser-Delete",
- "body": [
- "CouponsForUser $1 = db.CouponsForUser.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.CouponsForUser.Remove($1);",
- "}"
- ]
- },
- "查询自定义全局标签列表": {
- "prefix": "ym-db-CustomTagSet-Find",
- "body": [
- "List<CustomTagSet> $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (CustomTagSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询自定义全局标签列表,并取值": {
- "prefix": "ym-db-CustomTagSet-FindWithData",
- "body": [
- "List<CustomTagSet> $1 = db.CustomTagSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (CustomTagSet $3 in $1)",
- "{",
- " string Tags = $3.Tags; //标签",
- " string Title = $3.Title; //标题",
- " string Contents = $3.Contents; //内容",
- "}"
- ]
- },
- "查询自定义全局标签": {
- "prefix": "ym-db-CustomTagSet-Exist",
- "body": [
- "bool $1 = db.CustomTagSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个自定义全局标签,并取值": {
- "prefix": "ym-db-CustomTagSet-FindByPrimaryKey",
- "body": [
- "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Tags = $1.Tags; //标签",
- " string Title = $1.Title; //标题",
- " string Contents = $1.Contents; //内容",
- "}"
- ]
- },
- "查询某个自定义全局标签,并赋值": {
- "prefix": "ym-db-CustomTagSet-Update",
- "body": [
- "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Tags = $2; //标签",
- " $1.Title = $3; //标题",
- " $1.Contents = $4; //内容",
- "}"
- ]
- },
- "获取自定义全局标签数量": {
- "prefix": "ym-db-CustomTagSet-FindAndCount",
- "body": [
- "int $1 = db.CustomTagSet.Count(m => $2);",
- ]
- },
- "添加自定义全局标签": {
- "prefix": "ym-db-CustomTagSet-Create",
- "body": [
- "db.CustomTagSet.Add(new CustomTagSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Tags = $1, //标签",
- " Title = $2, //标题",
- " Contents = $3, //内容",
- "});"
- ]
- },"删除某个自定义全局标签": {
- "prefix": "ym-db-CustomTagSet-Delete",
- "body": [
- "CustomTagSet $1 = db.CustomTagSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.CustomTagSet.Remove($1);",
- "}"
- ]
- },
- "查询快递公司列表": {
- "prefix": "ym-db-ErpCompanys-Find",
- "body": [
- "List<ErpCompanys> $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ErpCompanys $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询快递公司列表,并取值": {
- "prefix": "ym-db-ErpCompanys-FindWithData",
- "body": [
- "List<ErpCompanys> $1 = db.ErpCompanys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ErpCompanys $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string Code = $3.Code; //编码",
- " string Phone = $3.Phone; //客服电话",
- "}"
- ]
- },
- "查询快递公司": {
- "prefix": "ym-db-ErpCompanys-Exist",
- "body": [
- "bool $1 = db.ErpCompanys.Any(m => m.Id == $2);",
- ]
- },
- "查询某个快递公司,并取值": {
- "prefix": "ym-db-ErpCompanys-FindByPrimaryKey",
- "body": [
- "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string Code = $1.Code; //编码",
- " string Phone = $1.Phone; //客服电话",
- "}"
- ]
- },
- "查询某个快递公司,并赋值": {
- "prefix": "ym-db-ErpCompanys-Update",
- "body": [
- "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.Code = $3; //编码",
- " $1.Phone = $4; //客服电话",
- "}"
- ]
- },
- "获取快递公司数量": {
- "prefix": "ym-db-ErpCompanys-FindAndCount",
- "body": [
- "int $1 = db.ErpCompanys.Count(m => $2);",
- ]
- },
- "添加快递公司": {
- "prefix": "ym-db-ErpCompanys-Create",
- "body": [
- "db.ErpCompanys.Add(new ErpCompanys()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " Code = $2, //编码",
- " Phone = $3, //客服电话",
- "});"
- ]
- },"删除某个快递公司": {
- "prefix": "ym-db-ErpCompanys-Delete",
- "body": [
- "ErpCompanys $1 = db.ErpCompanys.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ErpCompanys.Remove($1);",
- "}"
- ]
- },
- "查询资源文件更新信息列表": {
- "prefix": "ym-db-FileUpdateInfo-Find",
- "body": [
- "List<FileUpdateInfo> $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (FileUpdateInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询资源文件更新信息列表,并取值": {
- "prefix": "ym-db-FileUpdateInfo-FindWithData",
- "body": [
- "List<FileUpdateInfo> $1 = db.FileUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (FileUpdateInfo $3 in $1)",
- "{",
- " int VersionNum = $3.VersionNum; //更新版本",
- " string Path = $3.Path; //路径",
- " string FileName = $3.FileName; //文件名",
- "}"
- ]
- },
- "查询资源文件更新信息": {
- "prefix": "ym-db-FileUpdateInfo-Exist",
- "body": [
- "bool $1 = db.FileUpdateInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个资源文件更新信息,并取值": {
- "prefix": "ym-db-FileUpdateInfo-FindByPrimaryKey",
- "body": [
- "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int VersionNum = $1.VersionNum; //更新版本",
- " string Path = $1.Path; //路径",
- " string FileName = $1.FileName; //文件名",
- "}"
- ]
- },
- "查询某个资源文件更新信息,并赋值": {
- "prefix": "ym-db-FileUpdateInfo-Update",
- "body": [
- "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.VersionNum = $2; //更新版本",
- " $1.Path = $3; //路径",
- " $1.FileName = $4; //文件名",
- "}"
- ]
- },
- "获取资源文件更新信息数量": {
- "prefix": "ym-db-FileUpdateInfo-FindAndCount",
- "body": [
- "int $1 = db.FileUpdateInfo.Count(m => $2);",
- ]
- },
- "添加资源文件更新信息": {
- "prefix": "ym-db-FileUpdateInfo-Create",
- "body": [
- "db.FileUpdateInfo.Add(new FileUpdateInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " VersionNum = $1, //更新版本",
- " Path = $2, //路径",
- " FileName = $3, //文件名",
- "});"
- ]
- },"删除某个资源文件更新信息": {
- "prefix": "ym-db-FileUpdateInfo-Delete",
- "body": [
- "FileUpdateInfo $1 = db.FileUpdateInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.FileUpdateInfo.Remove($1);",
- "}"
- ]
- },
- "查询流量分佣明细列表": {
- "prefix": "ym-db-FluxProfitDetail-Find",
- "body": [
- "List<FluxProfitDetail> $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (FluxProfitDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询流量分佣明细列表,并取值": {
- "prefix": "ym-db-FluxProfitDetail-FindWithData",
- "body": [
- "List<FluxProfitDetail> $1 = db.FluxProfitDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (FluxProfitDetail $3 in $1)",
- "{",
- " string RecordNo = $3.RecordNo; //单号",
- " string TradeDate = $3.TradeDate; //交易日期",
- " string TradeTime = $3.TradeTime; //交易时间",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int UserId = $3.UserId; //创客",
- " int MerchantId = $3.MerchantId; //商户",
- " int MerchantUserId = $3.MerchantUserId; //商户直属人",
- " string MerNo = $3.MerNo; //渠道商户编号",
- " string SnNo = $3.SnNo; //渠道SN号",
- " int ProfitType = $3.ProfitType; //分润类型",
- " string FluxOrderNo = $3.FluxOrderNo; //流量扣费单号",
- " string TradeOrderNo = $3.TradeOrderNo; //交易流水号",
- " decimal TradeAmt = $3.TradeAmt; //商户交易额",
- " decimal FluxFeeAmt = $3.FluxFeeAmt; //流量费",
- " string FluxStartDate = $3.FluxStartDate; //流量扣费开始日期",
- " string FluxEndDate = $3.FluxEndDate; //流量扣费结束日期",
- " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额",
- " string PosType = $3.PosType; //POS类型",
- " string Remark = $3.Remark; //备注",
- " int BrandId = $3.BrandId; //品牌",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int MerUserType = $3.MerUserType; //商户创客类型",
- "}"
- ]
- },
- "查询流量分佣明细": {
- "prefix": "ym-db-FluxProfitDetail-Exist",
- "body": [
- "bool $1 = db.FluxProfitDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个流量分佣明细,并取值": {
- "prefix": "ym-db-FluxProfitDetail-FindByPrimaryKey",
- "body": [
- "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string RecordNo = $1.RecordNo; //单号",
- " string TradeDate = $1.TradeDate; //交易日期",
- " string TradeTime = $1.TradeTime; //交易时间",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int UserId = $1.UserId; //创客",
- " int MerchantId = $1.MerchantId; //商户",
- " int MerchantUserId = $1.MerchantUserId; //商户直属人",
- " string MerNo = $1.MerNo; //渠道商户编号",
- " string SnNo = $1.SnNo; //渠道SN号",
- " int ProfitType = $1.ProfitType; //分润类型",
- " string FluxOrderNo = $1.FluxOrderNo; //流量扣费单号",
- " string TradeOrderNo = $1.TradeOrderNo; //交易流水号",
- " decimal TradeAmt = $1.TradeAmt; //商户交易额",
- " decimal FluxFeeAmt = $1.FluxFeeAmt; //流量费",
- " string FluxStartDate = $1.FluxStartDate; //流量扣费开始日期",
- " string FluxEndDate = $1.FluxEndDate; //流量扣费结束日期",
- " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额",
- " string PosType = $1.PosType; //POS类型",
- " string Remark = $1.Remark; //备注",
- " int BrandId = $1.BrandId; //品牌",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int MerUserType = $1.MerUserType; //商户创客类型",
- "}"
- ]
- },
- "查询某个流量分佣明细,并赋值": {
- "prefix": "ym-db-FluxProfitDetail-Update",
- "body": [
- "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.RecordNo = $2; //单号",
- " $1.TradeDate = $3; //交易日期",
- " $1.TradeTime = $4; //交易时间",
- " $1.TradeMonth = $5; //交易月",
- " $1.UserId = $6; //创客",
- " $1.MerchantId = $7; //商户",
- " $1.MerchantUserId = $8; //商户直属人",
- " $1.MerNo = $9; //渠道商户编号",
- " $1.SnNo = $10; //渠道SN号",
- " $1.ProfitType = $11; //分润类型",
- " $1.FluxOrderNo = $12; //流量扣费单号",
- " $1.TradeOrderNo = $13; //交易流水号",
- " $1.TradeAmt = $14; //商户交易额",
- " $1.FluxFeeAmt = $15; //流量费",
- " $1.FluxStartDate = $16; //流量扣费开始日期",
- " $1.FluxEndDate = $17; //流量扣费结束日期",
- " $1.FluxProfitAmt = $18; //流量分润总金额",
- " $1.PosType = $19; //POS类型",
- " $1.Remark = $20; //备注",
- " $1.BrandId = $21; //品牌",
- " $1.TopUserId = $22; //顶级创客",
- " $1.MerUserType = $23; //商户创客类型",
- "}"
- ]
- },
- "获取流量分佣明细数量": {
- "prefix": "ym-db-FluxProfitDetail-FindAndCount",
- "body": [
- "int $1 = db.FluxProfitDetail.Count(m => $2);",
- ]
- },
- "添加流量分佣明细": {
- "prefix": "ym-db-FluxProfitDetail-Create",
- "body": [
- "db.FluxProfitDetail.Add(new FluxProfitDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " RecordNo = $1, //单号",
- " TradeDate = $2, //交易日期",
- " TradeTime = $3, //交易时间",
- " TradeMonth = $4, //交易月",
- " UserId = $5, //创客",
- " MerchantId = $6, //商户",
- " MerchantUserId = $7, //商户直属人",
- " MerNo = $8, //渠道商户编号",
- " SnNo = $9, //渠道SN号",
- " ProfitType = $10, //分润类型",
- " FluxOrderNo = $11, //流量扣费单号",
- " TradeOrderNo = $12, //交易流水号",
- " TradeAmt = $13, //商户交易额",
- " FluxFeeAmt = $14, //流量费",
- " FluxStartDate = $15, //流量扣费开始日期",
- " FluxEndDate = $16, //流量扣费结束日期",
- " FluxProfitAmt = $17, //流量分润总金额",
- " PosType = $18, //POS类型",
- " Remark = $19, //备注",
- " BrandId = $20, //品牌",
- " TopUserId = $21, //顶级创客",
- " MerUserType = $22, //商户创客类型",
- "});"
- ]
- },"删除某个流量分佣明细": {
- "prefix": "ym-db-FluxProfitDetail-Delete",
- "body": [
- "FluxProfitDetail $1 = db.FluxProfitDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.FluxProfitDetail.Remove($1);",
- "}"
- ]
- },
- "查询流量分佣汇总列表": {
- "prefix": "ym-db-FluxProfitSummary-Find",
- "body": [
- "List<FluxProfitSummary> $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (FluxProfitSummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询流量分佣汇总列表,并取值": {
- "prefix": "ym-db-FluxProfitSummary-FindWithData",
- "body": [
- "List<FluxProfitSummary> $1 = db.FluxProfitSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (FluxProfitSummary $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int MerUserType = $3.MerUserType; //商户创客类型",
- " decimal FluxProfitAmt = $3.FluxProfitAmt; //流量分润总金额",
- " int FluxTradeNum = $3.FluxTradeNum; //商户借记卡封顶交易总笔数",
- " int CheckStatus = $3.CheckStatus; //同步账户状态",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询流量分佣汇总": {
- "prefix": "ym-db-FluxProfitSummary-Exist",
- "body": [
- "bool $1 = db.FluxProfitSummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个流量分佣汇总,并取值": {
- "prefix": "ym-db-FluxProfitSummary-FindByPrimaryKey",
- "body": [
- "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int MerUserType = $1.MerUserType; //商户创客类型",
- " decimal FluxProfitAmt = $1.FluxProfitAmt; //流量分润总金额",
- " int FluxTradeNum = $1.FluxTradeNum; //商户借记卡封顶交易总笔数",
- " int CheckStatus = $1.CheckStatus; //同步账户状态",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个流量分佣汇总,并赋值": {
- "prefix": "ym-db-FluxProfitSummary-Update",
- "body": [
- "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.TopUserId = $3; //顶级创客",
- " $1.TradeMonth = $4; //交易月",
- " $1.MerUserType = $5; //商户创客类型",
- " $1.FluxProfitAmt = $6; //流量分润总金额",
- " $1.FluxTradeNum = $7; //商户借记卡封顶交易总笔数",
- " $1.CheckStatus = $8; //同步账户状态",
- " $1.Remark = $9; //备注",
- "}"
- ]
- },
- "获取流量分佣汇总数量": {
- "prefix": "ym-db-FluxProfitSummary-FindAndCount",
- "body": [
- "int $1 = db.FluxProfitSummary.Count(m => $2);",
- ]
- },
- "添加流量分佣汇总": {
- "prefix": "ym-db-FluxProfitSummary-Create",
- "body": [
- "db.FluxProfitSummary.Add(new FluxProfitSummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " TopUserId = $2, //顶级创客",
- " TradeMonth = $3, //交易月",
- " MerUserType = $4, //商户创客类型",
- " FluxProfitAmt = $5, //流量分润总金额",
- " FluxTradeNum = $6, //商户借记卡封顶交易总笔数",
- " CheckStatus = $7, //同步账户状态",
- " Remark = $8, //备注",
- "});"
- ]
- },"删除某个流量分佣汇总": {
- "prefix": "ym-db-FluxProfitSummary-Delete",
- "body": [
- "FluxProfitSummary $1 = db.FluxProfitSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.FluxProfitSummary.Remove($1);",
- "}"
- ]
- },
- "查询首页快捷入口列表": {
- "prefix": "ym-db-IndexIconList-Find",
- "body": [
- "List<IndexIconList> $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (IndexIconList $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询首页快捷入口列表,并取值": {
- "prefix": "ym-db-IndexIconList-FindWithData",
- "body": [
- "List<IndexIconList> $1 = db.IndexIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (IndexIconList $3 in $1)",
- "{",
- " string Icon = $3.Icon; //图标",
- " string Title = $3.Title; //标题",
- " string Url = $3.Url; //跳转地址",
- "}"
- ]
- },
- "查询首页快捷入口": {
- "prefix": "ym-db-IndexIconList-Exist",
- "body": [
- "bool $1 = db.IndexIconList.Any(m => m.Id == $2);",
- ]
- },
- "查询某个首页快捷入口,并取值": {
- "prefix": "ym-db-IndexIconList-FindByPrimaryKey",
- "body": [
- "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Icon = $1.Icon; //图标",
- " string Title = $1.Title; //标题",
- " string Url = $1.Url; //跳转地址",
- "}"
- ]
- },
- "查询某个首页快捷入口,并赋值": {
- "prefix": "ym-db-IndexIconList-Update",
- "body": [
- "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Icon = $2; //图标",
- " $1.Title = $3; //标题",
- " $1.Url = $4; //跳转地址",
- "}"
- ]
- },
- "获取首页快捷入口数量": {
- "prefix": "ym-db-IndexIconList-FindAndCount",
- "body": [
- "int $1 = db.IndexIconList.Count(m => $2);",
- ]
- },
- "添加首页快捷入口": {
- "prefix": "ym-db-IndexIconList-Create",
- "body": [
- "db.IndexIconList.Add(new IndexIconList()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Icon = $1, //图标",
- " Title = $2, //标题",
- " Url = $3, //跳转地址",
- "});"
- ]
- },"删除某个首页快捷入口": {
- "prefix": "ym-db-IndexIconList-Delete",
- "body": [
- "IndexIconList $1 = db.IndexIconList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.IndexIconList.Remove($1);",
- "}"
- ]
- },
- "查询产品品牌列表": {
- "prefix": "ym-db-KqProductBrand-Find",
- "body": [
- "List<KqProductBrand> $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProductBrand $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询产品品牌列表,并取值": {
- "prefix": "ym-db-KqProductBrand-FindWithData",
- "body": [
- "List<KqProductBrand> $1 = db.KqProductBrand.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProductBrand $3 in $1)",
- "{",
- " int ProductId = $3.ProductId; //产品",
- " string Name = $3.Name; //品牌名称",
- "}"
- ]
- },
- "查询产品品牌": {
- "prefix": "ym-db-KqProductBrand-Exist",
- "body": [
- "bool $1 = db.KqProductBrand.Any(m => m.Id == $2);",
- ]
- },
- "查询某个产品品牌,并取值": {
- "prefix": "ym-db-KqProductBrand-FindByPrimaryKey",
- "body": [
- "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int ProductId = $1.ProductId; //产品",
- " string Name = $1.Name; //品牌名称",
- "}"
- ]
- },
- "查询某个产品品牌,并赋值": {
- "prefix": "ym-db-KqProductBrand-Update",
- "body": [
- "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ProductId = $2; //产品",
- " $1.Name = $3; //品牌名称",
- "}"
- ]
- },
- "获取产品品牌数量": {
- "prefix": "ym-db-KqProductBrand-FindAndCount",
- "body": [
- "int $1 = db.KqProductBrand.Count(m => $2);",
- ]
- },
- "添加产品品牌": {
- "prefix": "ym-db-KqProductBrand-Create",
- "body": [
- "db.KqProductBrand.Add(new KqProductBrand()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ProductId = $1, //产品",
- " Name = $2, //品牌名称",
- "});"
- ]
- },"删除某个产品品牌": {
- "prefix": "ym-db-KqProductBrand-Delete",
- "body": [
- "KqProductBrand $1 = db.KqProductBrand.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.KqProductBrand.Remove($1);",
- "}"
- ]
- },
- "查询产品机构列表": {
- "prefix": "ym-db-KqProductOrgs-Find",
- "body": [
- "List<KqProductOrgs> $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProductOrgs $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询产品机构列表,并取值": {
- "prefix": "ym-db-KqProductOrgs-FindWithData",
- "body": [
- "List<KqProductOrgs> $1 = db.KqProductOrgs.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProductOrgs $3 in $1)",
- "{",
- " int BrandId = $3.BrandId; //品牌",
- " string Name = $3.Name; //机构名称",
- "}"
- ]
- },
- "查询产品机构": {
- "prefix": "ym-db-KqProductOrgs-Exist",
- "body": [
- "bool $1 = db.KqProductOrgs.Any(m => m.Id == $2);",
- ]
- },
- "查询某个产品机构,并取值": {
- "prefix": "ym-db-KqProductOrgs-FindByPrimaryKey",
- "body": [
- "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int BrandId = $1.BrandId; //品牌",
- " string Name = $1.Name; //机构名称",
- "}"
- ]
- },
- "查询某个产品机构,并赋值": {
- "prefix": "ym-db-KqProductOrgs-Update",
- "body": [
- "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.BrandId = $2; //品牌",
- " $1.Name = $3; //机构名称",
- "}"
- ]
- },
- "获取产品机构数量": {
- "prefix": "ym-db-KqProductOrgs-FindAndCount",
- "body": [
- "int $1 = db.KqProductOrgs.Count(m => $2);",
- ]
- },
- "添加产品机构": {
- "prefix": "ym-db-KqProductOrgs-Create",
- "body": [
- "db.KqProductOrgs.Add(new KqProductOrgs()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " BrandId = $1, //品牌",
- " Name = $2, //机构名称",
- "});"
- ]
- },"删除某个产品机构": {
- "prefix": "ym-db-KqProductOrgs-Delete",
- "body": [
- "KqProductOrgs $1 = db.KqProductOrgs.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.KqProductOrgs.Remove($1);",
- "}"
- ]
- },
- "查询产品规则配置列表": {
- "prefix": "ym-db-KqProductRuleSet-Find",
- "body": [
- "List<KqProductRuleSet> $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProductRuleSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询产品规则配置列表,并取值": {
- "prefix": "ym-db-KqProductRuleSet-FindWithData",
- "body": [
- "List<KqProductRuleSet> $1 = db.KqProductRuleSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProductRuleSet $3 in $1)",
- "{",
- " int OrgId = $3.OrgId; //机构",
- " decimal Deposit = $3.Deposit; //押金",
- " int ActiveCount = $3.ActiveCount; //活动政策台数",
- " decimal ActivePrice = $3.ActivePrice; //活动政策价格",
- " DateTime MerStaStartDate = $3.MerStaStartDate; //活动开始时间",
- " DateTime MerStaEndDate = $3.MerStaEndDate; //活动结束时间",
- " decimal MerStaProfit = $3.MerStaProfit; //达标奖励",
- " int MerStaMonths = $3.MerStaMonths; //激活后达标月",
- " decimal MerStaTradeForMonth = $3.MerStaTradeForMonth; //激活后每月达标交易",
- " DateTime ActStartDate = $3.ActStartDate; //活动开始时间",
- " DateTime ActEndDate = $3.ActEndDate; //活动结束时间",
- " decimal ActDeposit = $3.ActDeposit; //激活押金",
- " decimal ActFirst = $3.ActFirst; //激活首刷",
- " decimal ActFirstDeposit = $3.ActFirstDeposit; //激活首刷押金",
- " decimal ActPrize = $3.ActPrize; //激活奖励金额",
- " int ActPosCount = $3.ActPosCount; //激活赠机台数",
- " DateTime OpenStartDate = $3.OpenStartDate; //活动开始时间",
- " DateTime OpenEndDate = $3.OpenEndDate; //活动结束时间",
- " int OpenStaDays = $3.OpenStaDays; //达标天数",
- " decimal OpenStaTrade = $3.OpenStaTrade; //达标交易",
- " decimal OpenStaPrize = $3.OpenStaPrize; //达标奖励1",
- " decimal OpenStaPrize2 = $3.OpenStaPrize2; //达标奖励2",
- " DateTime CycleStartDate = $3.CycleStartDate; //活动开始时间",
- " DateTime CycleEndDate = $3.CycleEndDate; //活动结束时间",
- " ulong CycleIsOther = $3.CycleIsOther; //是否允许划拨给他人",
- " int CyclePosDays = $3.CyclePosDays; //领机天数",
- " DateTime PullNewStartDate = $3.PullNewStartDate; //活动开始时间",
- " DateTime PullNewEndDate = $3.PullNewEndDate; //活动结束时间",
- " int PullNewExtendDays = $3.PullNewExtendDays; //延长领机天数",
- " decimal BigTotalAmount = $3.BigTotalAmount; //购买机起始价",
- " int BigExtendCycleDays = $3.BigExtendCycleDays; //延长循环周期天数",
- " DateTime SubsidyStartDate = $3.SubsidyStartDate; //活动开始时间",
- " DateTime SubsidyEndDate = $3.SubsidyEndDate; //活动结束时间",
- " DateTime FlowCardStartDate = $3.FlowCardStartDate; //活动开始时间",
- " DateTime FlowCardEndDate = $3.FlowCardEndDate; //活动结束时间",
- " int FlowCardFreeDays = $3.FlowCardFreeDays; //免收天数",
- " decimal FlowCardFee = $3.FlowCardFee; //费用",
- " DateTime FeeOfDays = $3.FeeOfDays; //扣费频率(天)",
- " decimal FlowCardDirectProfit = $3.FlowCardDirectProfit; //直属上级返佣",
- " DateTime HelpStartDate = $3.HelpStartDate; //活动开始时间",
- " DateTime HelpEndDate = $3.HelpEndDate; //活动结束时间",
- " int HelpMonths = $3.HelpMonths; //计算自然月",
- " decimal HelpFee = $3.HelpFee; //扶植期费率",
- " decimal HelpSteadyFee = $3.HelpSteadyFee; //稳定期费率",
- " int FeeBindDays = $3.FeeBindDays; //绑定起天数",
- " decimal FeeFixed = $3.FeeFixed; //固定手续费",
- " decimal FeeRate = $3.FeeRate; //费率",
- "}"
- ]
- },
- "查询产品规则配置": {
- "prefix": "ym-db-KqProductRuleSet-Exist",
- "body": [
- "bool $1 = db.KqProductRuleSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个产品规则配置,并取值": {
- "prefix": "ym-db-KqProductRuleSet-FindByPrimaryKey",
- "body": [
- "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int OrgId = $1.OrgId; //机构",
- " decimal Deposit = $1.Deposit; //押金",
- " int ActiveCount = $1.ActiveCount; //活动政策台数",
- " decimal ActivePrice = $1.ActivePrice; //活动政策价格",
- " DateTime MerStaStartDate = $1.MerStaStartDate; //活动开始时间",
- " DateTime MerStaEndDate = $1.MerStaEndDate; //活动结束时间",
- " decimal MerStaProfit = $1.MerStaProfit; //达标奖励",
- " int MerStaMonths = $1.MerStaMonths; //激活后达标月",
- " decimal MerStaTradeForMonth = $1.MerStaTradeForMonth; //激活后每月达标交易",
- " DateTime ActStartDate = $1.ActStartDate; //活动开始时间",
- " DateTime ActEndDate = $1.ActEndDate; //活动结束时间",
- " decimal ActDeposit = $1.ActDeposit; //激活押金",
- " decimal ActFirst = $1.ActFirst; //激活首刷",
- " decimal ActFirstDeposit = $1.ActFirstDeposit; //激活首刷押金",
- " decimal ActPrize = $1.ActPrize; //激活奖励金额",
- " int ActPosCount = $1.ActPosCount; //激活赠机台数",
- " DateTime OpenStartDate = $1.OpenStartDate; //活动开始时间",
- " DateTime OpenEndDate = $1.OpenEndDate; //活动结束时间",
- " int OpenStaDays = $1.OpenStaDays; //达标天数",
- " decimal OpenStaTrade = $1.OpenStaTrade; //达标交易",
- " decimal OpenStaPrize = $1.OpenStaPrize; //达标奖励1",
- " decimal OpenStaPrize2 = $1.OpenStaPrize2; //达标奖励2",
- " DateTime CycleStartDate = $1.CycleStartDate; //活动开始时间",
- " DateTime CycleEndDate = $1.CycleEndDate; //活动结束时间",
- " ulong CycleIsOther = $1.CycleIsOther; //是否允许划拨给他人",
- " int CyclePosDays = $1.CyclePosDays; //领机天数",
- " DateTime PullNewStartDate = $1.PullNewStartDate; //活动开始时间",
- " DateTime PullNewEndDate = $1.PullNewEndDate; //活动结束时间",
- " int PullNewExtendDays = $1.PullNewExtendDays; //延长领机天数",
- " decimal BigTotalAmount = $1.BigTotalAmount; //购买机起始价",
- " int BigExtendCycleDays = $1.BigExtendCycleDays; //延长循环周期天数",
- " DateTime SubsidyStartDate = $1.SubsidyStartDate; //活动开始时间",
- " DateTime SubsidyEndDate = $1.SubsidyEndDate; //活动结束时间",
- " DateTime FlowCardStartDate = $1.FlowCardStartDate; //活动开始时间",
- " DateTime FlowCardEndDate = $1.FlowCardEndDate; //活动结束时间",
- " int FlowCardFreeDays = $1.FlowCardFreeDays; //免收天数",
- " decimal FlowCardFee = $1.FlowCardFee; //费用",
- " DateTime FeeOfDays = $1.FeeOfDays; //扣费频率(天)",
- " decimal FlowCardDirectProfit = $1.FlowCardDirectProfit; //直属上级返佣",
- " DateTime HelpStartDate = $1.HelpStartDate; //活动开始时间",
- " DateTime HelpEndDate = $1.HelpEndDate; //活动结束时间",
- " int HelpMonths = $1.HelpMonths; //计算自然月",
- " decimal HelpFee = $1.HelpFee; //扶植期费率",
- " decimal HelpSteadyFee = $1.HelpSteadyFee; //稳定期费率",
- " int FeeBindDays = $1.FeeBindDays; //绑定起天数",
- " decimal FeeFixed = $1.FeeFixed; //固定手续费",
- " decimal FeeRate = $1.FeeRate; //费率",
- "}"
- ]
- },
- "查询某个产品规则配置,并赋值": {
- "prefix": "ym-db-KqProductRuleSet-Update",
- "body": [
- "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.OrgId = $2; //机构",
- " $1.Deposit = $3; //押金",
- " $1.ActiveCount = $4; //活动政策台数",
- " $1.ActivePrice = $5; //活动政策价格",
- " $1.MerStaStartDate = $6; //活动开始时间",
- " $1.MerStaEndDate = $7; //活动结束时间",
- " $1.MerStaProfit = $8; //达标奖励",
- " $1.MerStaMonths = $9; //激活后达标月",
- " $1.MerStaTradeForMonth = $10; //激活后每月达标交易",
- " $1.ActStartDate = $11; //活动开始时间",
- " $1.ActEndDate = $12; //活动结束时间",
- " $1.ActDeposit = $13; //激活押金",
- " $1.ActFirst = $14; //激活首刷",
- " $1.ActFirstDeposit = $15; //激活首刷押金",
- " $1.ActPrize = $16; //激活奖励金额",
- " $1.ActPosCount = $17; //激活赠机台数",
- " $1.OpenStartDate = $18; //活动开始时间",
- " $1.OpenEndDate = $19; //活动结束时间",
- " $1.OpenStaDays = $20; //达标天数",
- " $1.OpenStaTrade = $21; //达标交易",
- " $1.OpenStaPrize = $22; //达标奖励1",
- " $1.OpenStaPrize2 = $23; //达标奖励2",
- " $1.CycleStartDate = $24; //活动开始时间",
- " $1.CycleEndDate = $25; //活动结束时间",
- " $1.CycleIsOther = $26; //是否允许划拨给他人",
- " $1.CyclePosDays = $27; //领机天数",
- " $1.PullNewStartDate = $28; //活动开始时间",
- " $1.PullNewEndDate = $29; //活动结束时间",
- " $1.PullNewExtendDays = $30; //延长领机天数",
- " $1.BigTotalAmount = $31; //购买机起始价",
- " $1.BigExtendCycleDays = $32; //延长循环周期天数",
- " $1.SubsidyStartDate = $33; //活动开始时间",
- " $1.SubsidyEndDate = $34; //活动结束时间",
- " $1.FlowCardStartDate = $35; //活动开始时间",
- " $1.FlowCardEndDate = $36; //活动结束时间",
- " $1.FlowCardFreeDays = $37; //免收天数",
- " $1.FlowCardFee = $38; //费用",
- " $1.FeeOfDays = $39; //扣费频率(天)",
- " $1.FlowCardDirectProfit = $40; //直属上级返佣",
- " $1.HelpStartDate = $41; //活动开始时间",
- " $1.HelpEndDate = $42; //活动结束时间",
- " $1.HelpMonths = $43; //计算自然月",
- " $1.HelpFee = $44; //扶植期费率",
- " $1.HelpSteadyFee = $45; //稳定期费率",
- " $1.FeeBindDays = $46; //绑定起天数",
- " $1.FeeFixed = $47; //固定手续费",
- " $1.FeeRate = $48; //费率",
- "}"
- ]
- },
- "获取产品规则配置数量": {
- "prefix": "ym-db-KqProductRuleSet-FindAndCount",
- "body": [
- "int $1 = db.KqProductRuleSet.Count(m => $2);",
- ]
- },
- "添加产品规则配置": {
- "prefix": "ym-db-KqProductRuleSet-Create",
- "body": [
- "db.KqProductRuleSet.Add(new KqProductRuleSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " OrgId = $1, //机构",
- " Deposit = $2, //押金",
- " ActiveCount = $3, //活动政策台数",
- " ActivePrice = $4, //活动政策价格",
- " MerStaStartDate = $5, //活动开始时间",
- " MerStaEndDate = $6, //活动结束时间",
- " MerStaProfit = $7, //达标奖励",
- " MerStaMonths = $8, //激活后达标月",
- " MerStaTradeForMonth = $9, //激活后每月达标交易",
- " ActStartDate = $10, //活动开始时间",
- " ActEndDate = $11, //活动结束时间",
- " ActDeposit = $12, //激活押金",
- " ActFirst = $13, //激活首刷",
- " ActFirstDeposit = $14, //激活首刷押金",
- " ActPrize = $15, //激活奖励金额",
- " ActPosCount = $16, //激活赠机台数",
- " OpenStartDate = $17, //活动开始时间",
- " OpenEndDate = $18, //活动结束时间",
- " OpenStaDays = $19, //达标天数",
- " OpenStaTrade = $20, //达标交易",
- " OpenStaPrize = $21, //达标奖励1",
- " OpenStaPrize2 = $22, //达标奖励2",
- " CycleStartDate = $23, //活动开始时间",
- " CycleEndDate = $24, //活动结束时间",
- " CycleIsOther = $25, //是否允许划拨给他人",
- " CyclePosDays = $26, //领机天数",
- " PullNewStartDate = $27, //活动开始时间",
- " PullNewEndDate = $28, //活动结束时间",
- " PullNewExtendDays = $29, //延长领机天数",
- " BigTotalAmount = $30, //购买机起始价",
- " BigExtendCycleDays = $31, //延长循环周期天数",
- " SubsidyStartDate = $32, //活动开始时间",
- " SubsidyEndDate = $33, //活动结束时间",
- " FlowCardStartDate = $34, //活动开始时间",
- " FlowCardEndDate = $35, //活动结束时间",
- " FlowCardFreeDays = $36, //免收天数",
- " FlowCardFee = $37, //费用",
- " FeeOfDays = $38, //扣费频率(天)",
- " FlowCardDirectProfit = $39, //直属上级返佣",
- " HelpStartDate = $40, //活动开始时间",
- " HelpEndDate = $41, //活动结束时间",
- " HelpMonths = $42, //计算自然月",
- " HelpFee = $43, //扶植期费率",
- " HelpSteadyFee = $44, //稳定期费率",
- " FeeBindDays = $45, //绑定起天数",
- " FeeFixed = $46, //固定手续费",
- " FeeRate = $47, //费率",
- "});"
- ]
- },"删除某个产品规则配置": {
- "prefix": "ym-db-KqProductRuleSet-Delete",
- "body": [
- "KqProductRuleSet $1 = db.KqProductRuleSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.KqProductRuleSet.Remove($1);",
- "}"
- ]
- },
- "查询产品库列表": {
- "prefix": "ym-db-KqProducts-Find",
- "body": [
- "List<KqProducts> $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProducts $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询产品库列表,并取值": {
- "prefix": "ym-db-KqProducts-FindWithData",
- "body": [
- "List<KqProducts> $1 = db.KqProducts.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (KqProducts $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- "}"
- ]
- },
- "查询产品库": {
- "prefix": "ym-db-KqProducts-Exist",
- "body": [
- "bool $1 = db.KqProducts.Any(m => m.Id == $2);",
- ]
- },
- "查询某个产品库,并取值": {
- "prefix": "ym-db-KqProducts-FindByPrimaryKey",
- "body": [
- "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- "}"
- ]
- },
- "查询某个产品库,并赋值": {
- "prefix": "ym-db-KqProducts-Update",
- "body": [
- "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- "}"
- ]
- },
- "获取产品库数量": {
- "prefix": "ym-db-KqProducts-FindAndCount",
- "body": [
- "int $1 = db.KqProducts.Count(m => $2);",
- ]
- },
- "添加产品库": {
- "prefix": "ym-db-KqProducts-Create",
- "body": [
- "db.KqProducts.Add(new KqProducts()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- "});"
- ]
- },"删除某个产品库": {
- "prefix": "ym-db-KqProducts-Delete",
- "body": [
- "KqProducts $1 = db.KqProducts.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.KqProducts.Remove($1);",
- "}"
- ]
- },
- "查询机具申请订单列表": {
- "prefix": "ym-db-MachineApply-Find",
- "body": [
- "List<MachineApply> $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineApply $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具申请订单列表,并取值": {
- "prefix": "ym-db-MachineApply-FindWithData",
- "body": [
- "List<MachineApply> $1 = db.MachineApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineApply $3 in $1)",
- "{",
- " string ApplyNo = $3.ApplyNo; //申请单号",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " string ProductName = $3.ProductName; //产品名称",
- " string Areas = $3.Areas; //收货所在地区",
- " string Address = $3.Address; //收货详细地址",
- " string RealName = $3.RealName; //收件人姓名",
- " string Mobile = $3.Mobile; //收件人手机号",
- " string ApplyDeviceName = $3.ApplyDeviceName; //申请机具名称",
- " int ApplyDeviceNum = $3.ApplyDeviceNum; //申请机具数量",
- " DateTime ApplyTime = $3.ApplyTime; //申请时间",
- " string AuditBy = $3.AuditBy; //审核人",
- " DateTime AuditTime = $3.AuditTime; //审核时间",
- " int AuditResult = $3.AuditResult; //审核结果",
- " string AuditRemark = $3.AuditRemark; //审核备注",
- " DateTime CompleteTime = $3.CompleteTime; //完成时间",
- " int SendStatus = $3.SendStatus; //发货状态",
- " string ReturnOrderNo = $3.ReturnOrderNo; //退货单号",
- " int ReturnStatus = $3.ReturnStatus; //退货状态",
- " string ExpressNo = $3.ExpressNo; //快递单号",
- " string ExpressName = $3.ExpressName; //快递名称",
- " int DeliveryType = $3.DeliveryType; //提货类型",
- " int SwapActProType = $3.SwapActProType; //兑换实际产品类型",
- " string SwapActProName = $3.SwapActProName; //兑换实际产品名称",
- " string OrderExpand = $3.OrderExpand; //订单扩展信息",
- " string SwapSnExpand = $3.SwapSnExpand; //兑换机器SN来源",
- " int StoreId = $3.StoreId; //发货仓库",
- " string StoreName = $3.StoreName; //发货仓库名称",
- " string StoreAreas = $3.StoreAreas; //仓库所在地区",
- " string StoreAddress = $3.StoreAddress; //仓库地址",
- " string StoreManager = $3.StoreManager; //仓库联系人",
- " string StoreManagerMobile = $3.StoreManagerMobile; //仓库联系人手机号",
- " string Remark = $3.Remark; //订单备注",
- " int StoreUserId = $3.StoreUserId; //仓库归属创客",
- " int StoreType = $3.StoreType; //仓库类型",
- " DateTime SendDate = $3.SendDate; //发货时间",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " string SendSn = $3.SendSn; //发货SN",
- "}"
- ]
- },
- "查询机具申请订单": {
- "prefix": "ym-db-MachineApply-Exist",
- "body": [
- "bool $1 = db.MachineApply.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具申请订单,并取值": {
- "prefix": "ym-db-MachineApply-FindByPrimaryKey",
- "body": [
- "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ApplyNo = $1.ApplyNo; //申请单号",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " string ProductName = $1.ProductName; //产品名称",
- " string Areas = $1.Areas; //收货所在地区",
- " string Address = $1.Address; //收货详细地址",
- " string RealName = $1.RealName; //收件人姓名",
- " string Mobile = $1.Mobile; //收件人手机号",
- " string ApplyDeviceName = $1.ApplyDeviceName; //申请机具名称",
- " int ApplyDeviceNum = $1.ApplyDeviceNum; //申请机具数量",
- " DateTime ApplyTime = $1.ApplyTime; //申请时间",
- " string AuditBy = $1.AuditBy; //审核人",
- " DateTime AuditTime = $1.AuditTime; //审核时间",
- " int AuditResult = $1.AuditResult; //审核结果",
- " string AuditRemark = $1.AuditRemark; //审核备注",
- " DateTime CompleteTime = $1.CompleteTime; //完成时间",
- " int SendStatus = $1.SendStatus; //发货状态",
- " string ReturnOrderNo = $1.ReturnOrderNo; //退货单号",
- " int ReturnStatus = $1.ReturnStatus; //退货状态",
- " string ExpressNo = $1.ExpressNo; //快递单号",
- " string ExpressName = $1.ExpressName; //快递名称",
- " int DeliveryType = $1.DeliveryType; //提货类型",
- " int SwapActProType = $1.SwapActProType; //兑换实际产品类型",
- " string SwapActProName = $1.SwapActProName; //兑换实际产品名称",
- " string OrderExpand = $1.OrderExpand; //订单扩展信息",
- " string SwapSnExpand = $1.SwapSnExpand; //兑换机器SN来源",
- " int StoreId = $1.StoreId; //发货仓库",
- " string StoreName = $1.StoreName; //发货仓库名称",
- " string StoreAreas = $1.StoreAreas; //仓库所在地区",
- " string StoreAddress = $1.StoreAddress; //仓库地址",
- " string StoreManager = $1.StoreManager; //仓库联系人",
- " string StoreManagerMobile = $1.StoreManagerMobile; //仓库联系人手机号",
- " string Remark = $1.Remark; //订单备注",
- " int StoreUserId = $1.StoreUserId; //仓库归属创客",
- " int StoreType = $1.StoreType; //仓库类型",
- " DateTime SendDate = $1.SendDate; //发货时间",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " string SendSn = $1.SendSn; //发货SN",
- "}"
- ]
- },
- "查询某个机具申请订单,并赋值": {
- "prefix": "ym-db-MachineApply-Update",
- "body": [
- "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ApplyNo = $2; //申请单号",
- " $1.UserId = $3; //创客",
- " $1.BrandId = $4; //品牌",
- " $1.ProductName = $5; //产品名称",
- " $1.Areas = $6; //收货所在地区",
- " $1.Address = $7; //收货详细地址",
- " $1.RealName = $8; //收件人姓名",
- " $1.Mobile = $9; //收件人手机号",
- " $1.ApplyDeviceName = $10; //申请机具名称",
- " $1.ApplyDeviceNum = $11; //申请机具数量",
- " $1.ApplyTime = $12; //申请时间",
- " $1.AuditBy = $13; //审核人",
- " $1.AuditTime = $14; //审核时间",
- " $1.AuditResult = $15; //审核结果",
- " $1.AuditRemark = $16; //审核备注",
- " $1.CompleteTime = $17; //完成时间",
- " $1.SendStatus = $18; //发货状态",
- " $1.ReturnOrderNo = $19; //退货单号",
- " $1.ReturnStatus = $20; //退货状态",
- " $1.ExpressNo = $21; //快递单号",
- " $1.ExpressName = $22; //快递名称",
- " $1.DeliveryType = $23; //提货类型",
- " $1.SwapActProType = $24; //兑换实际产品类型",
- " $1.SwapActProName = $25; //兑换实际产品名称",
- " $1.OrderExpand = $26; //订单扩展信息",
- " $1.SwapSnExpand = $27; //兑换机器SN来源",
- " $1.StoreId = $28; //发货仓库",
- " $1.StoreName = $29; //发货仓库名称",
- " $1.StoreAreas = $30; //仓库所在地区",
- " $1.StoreAddress = $31; //仓库地址",
- " $1.StoreManager = $32; //仓库联系人",
- " $1.StoreManagerMobile = $33; //仓库联系人手机号",
- " $1.Remark = $34; //订单备注",
- " $1.StoreUserId = $35; //仓库归属创客",
- " $1.StoreType = $36; //仓库类型",
- " $1.SendDate = $37; //发货时间",
- " $1.TopUserId = $38; //顶级创客",
- " $1.SendSn = $39; //发货SN",
- "}"
- ]
- },
- "获取机具申请订单数量": {
- "prefix": "ym-db-MachineApply-FindAndCount",
- "body": [
- "int $1 = db.MachineApply.Count(m => $2);",
- ]
- },
- "添加机具申请订单": {
- "prefix": "ym-db-MachineApply-Create",
- "body": [
- "db.MachineApply.Add(new MachineApply()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ApplyNo = $1, //申请单号",
- " UserId = $2, //创客",
- " BrandId = $3, //品牌",
- " ProductName = $4, //产品名称",
- " Areas = $5, //收货所在地区",
- " Address = $6, //收货详细地址",
- " RealName = $7, //收件人姓名",
- " Mobile = $8, //收件人手机号",
- " ApplyDeviceName = $9, //申请机具名称",
- " ApplyDeviceNum = $10, //申请机具数量",
- " ApplyTime = $11, //申请时间",
- " AuditBy = $12, //审核人",
- " AuditTime = $13, //审核时间",
- " AuditResult = $14, //审核结果",
- " AuditRemark = $15, //审核备注",
- " CompleteTime = $16, //完成时间",
- " SendStatus = $17, //发货状态",
- " ReturnOrderNo = $18, //退货单号",
- " ReturnStatus = $19, //退货状态",
- " ExpressNo = $20, //快递单号",
- " ExpressName = $21, //快递名称",
- " DeliveryType = $22, //提货类型",
- " SwapActProType = $23, //兑换实际产品类型",
- " SwapActProName = $24, //兑换实际产品名称",
- " OrderExpand = $25, //订单扩展信息",
- " SwapSnExpand = $26, //兑换机器SN来源",
- " StoreId = $27, //发货仓库",
- " StoreName = $28, //发货仓库名称",
- " StoreAreas = $29, //仓库所在地区",
- " StoreAddress = $30, //仓库地址",
- " StoreManager = $31, //仓库联系人",
- " StoreManagerMobile = $32, //仓库联系人手机号",
- " Remark = $33, //订单备注",
- " StoreUserId = $34, //仓库归属创客",
- " StoreType = $35, //仓库类型",
- " SendDate = $36, //发货时间",
- " TopUserId = $37, //顶级创客",
- " SendSn = $38, //发货SN",
- "});"
- ]
- },"删除某个机具申请订单": {
- "prefix": "ym-db-MachineApply-Delete",
- "body": [
- "MachineApply $1 = db.MachineApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineApply.Remove($1);",
- "}"
- ]
- },
- "查询机具申请明细列表": {
- "prefix": "ym-db-MachineApplyDetail-Find",
- "body": [
- "List<MachineApplyDetail> $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineApplyDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具申请明细列表,并取值": {
- "prefix": "ym-db-MachineApplyDetail-FindWithData",
- "body": [
- "List<MachineApplyDetail> $1 = db.MachineApplyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineApplyDetail $3 in $1)",
- "{",
- " string ApplyNo = $3.ApplyNo; //订单号",
- " int ApplyId = $3.ApplyId; //订单Id",
- " int ProductType = $3.ProductType; //实际发货产品类型",
- " string ProductName = $3.ProductName; //实际发货产品名称",
- " int UserId = $3.UserId; //创客",
- " string DeviceSnNo = $3.DeviceSnNo; //设备SN编号",
- " int DeviceStatus = $3.DeviceStatus; //设备状态",
- " string DeviceVendor = $3.DeviceVendor; //设备厂商",
- " string DeviceModel = $3.DeviceModel; //设备型号",
- " string DeviceDesc = $3.DeviceDesc; //设备描述",
- " int UpSrcProType = $3.UpSrcProType; //上级源机具产品类型",
- " string UpSrcProName = $3.UpSrcProName; //上级源机具产品名称",
- " string SourceSnNo = $3.SourceSnNo; //兑换来源SN编码",
- " int SourceSnType = $3.SourceSnType; //兑换来源SN机具类型",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询机具申请明细": {
- "prefix": "ym-db-MachineApplyDetail-Exist",
- "body": [
- "bool $1 = db.MachineApplyDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具申请明细,并取值": {
- "prefix": "ym-db-MachineApplyDetail-FindByPrimaryKey",
- "body": [
- "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ApplyNo = $1.ApplyNo; //订单号",
- " int ApplyId = $1.ApplyId; //订单Id",
- " int ProductType = $1.ProductType; //实际发货产品类型",
- " string ProductName = $1.ProductName; //实际发货产品名称",
- " int UserId = $1.UserId; //创客",
- " string DeviceSnNo = $1.DeviceSnNo; //设备SN编号",
- " int DeviceStatus = $1.DeviceStatus; //设备状态",
- " string DeviceVendor = $1.DeviceVendor; //设备厂商",
- " string DeviceModel = $1.DeviceModel; //设备型号",
- " string DeviceDesc = $1.DeviceDesc; //设备描述",
- " int UpSrcProType = $1.UpSrcProType; //上级源机具产品类型",
- " string UpSrcProName = $1.UpSrcProName; //上级源机具产品名称",
- " string SourceSnNo = $1.SourceSnNo; //兑换来源SN编码",
- " int SourceSnType = $1.SourceSnType; //兑换来源SN机具类型",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个机具申请明细,并赋值": {
- "prefix": "ym-db-MachineApplyDetail-Update",
- "body": [
- "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ApplyNo = $2; //订单号",
- " $1.ApplyId = $3; //订单Id",
- " $1.ProductType = $4; //实际发货产品类型",
- " $1.ProductName = $5; //实际发货产品名称",
- " $1.UserId = $6; //创客",
- " $1.DeviceSnNo = $7; //设备SN编号",
- " $1.DeviceStatus = $8; //设备状态",
- " $1.DeviceVendor = $9; //设备厂商",
- " $1.DeviceModel = $10; //设备型号",
- " $1.DeviceDesc = $11; //设备描述",
- " $1.UpSrcProType = $12; //上级源机具产品类型",
- " $1.UpSrcProName = $13; //上级源机具产品名称",
- " $1.SourceSnNo = $14; //兑换来源SN编码",
- " $1.SourceSnType = $15; //兑换来源SN机具类型",
- " $1.Remark = $16; //备注",
- "}"
- ]
- },
- "获取机具申请明细数量": {
- "prefix": "ym-db-MachineApplyDetail-FindAndCount",
- "body": [
- "int $1 = db.MachineApplyDetail.Count(m => $2);",
- ]
- },
- "添加机具申请明细": {
- "prefix": "ym-db-MachineApplyDetail-Create",
- "body": [
- "db.MachineApplyDetail.Add(new MachineApplyDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ApplyNo = $1, //订单号",
- " ApplyId = $2, //订单Id",
- " ProductType = $3, //实际发货产品类型",
- " ProductName = $4, //实际发货产品名称",
- " UserId = $5, //创客",
- " DeviceSnNo = $6, //设备SN编号",
- " DeviceStatus = $7, //设备状态",
- " DeviceVendor = $8, //设备厂商",
- " DeviceModel = $9, //设备型号",
- " DeviceDesc = $10, //设备描述",
- " UpSrcProType = $11, //上级源机具产品类型",
- " UpSrcProName = $12, //上级源机具产品名称",
- " SourceSnNo = $13, //兑换来源SN编码",
- " SourceSnType = $14, //兑换来源SN机具类型",
- " Remark = $15, //备注",
- "});"
- ]
- },"删除某个机具申请明细": {
- "prefix": "ym-db-MachineApplyDetail-Delete",
- "body": [
- "MachineApplyDetail $1 = db.MachineApplyDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineApplyDetail.Remove($1);",
- "}"
- ]
- },
- "查询机具转换订单列表": {
- "prefix": "ym-db-MachineChange-Find",
- "body": [
- "List<MachineChange> $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineChange $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具转换订单列表,并取值": {
- "prefix": "ym-db-MachineChange-FindWithData",
- "body": [
- "List<MachineChange> $1 = db.MachineChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineChange $3 in $1)",
- "{",
- " string ChangeNo = $3.ChangeNo; //转换单号",
- " int UserId = $3.UserId; //创客",
- " int BackProductType = $3.BackProductType; //退回产品类型",
- " string BackProductName = $3.BackProductName; //退回产品名称",
- " string ChangeDeviceName = $3.ChangeDeviceName; //转换机具名称",
- " int ChangeDeviceNum = $3.ChangeDeviceNum; //转换机具数量",
- " DateTime ChangeTime = $3.ChangeTime; //转换时间",
- " string AuditBy = $3.AuditBy; //审核人",
- " DateTime AuditTime = $3.AuditTime; //审核时间",
- " int AuditResult = $3.AuditResult; //审核结果",
- " string AuditRemark = $3.AuditRemark; //审核备注",
- " DateTime CompleteTime = $3.CompleteTime; //完成时间",
- " string OrderExpand = $3.OrderExpand; //订单扩展信息",
- " string ChangeSnExpand = $3.ChangeSnExpand; //转换机器SN来源",
- " int BackStoreId = $3.BackStoreId; //退回仓库",
- " string BackStoreName = $3.BackStoreName; //退回仓库名称",
- " string Remark = $3.Remark; //订单备注",
- " int BackStoreUserId = $3.BackStoreUserId; //退回仓库归属人",
- " int OutProductType = $3.OutProductType; //出库产品类型",
- " string OutProductName = $3.OutProductName; //出库产品名称",
- " int OutStoreId = $3.OutStoreId; //出库仓库",
- " string OutStoreName = $3.OutStoreName; //出库仓库名称",
- " string OutStoreAreas = $3.OutStoreAreas; //出库仓库所在地区",
- " string OutStoreAddress = $3.OutStoreAddress ; //出库仓库地址",
- " string OutStoreManager = $3.OutStoreManager; //出库仓库联系人",
- " string OutStoreManagerMobile = $3.OutStoreManagerMobile; //出库仓库联系人手机号",
- "}"
- ]
- },
- "查询机具转换订单": {
- "prefix": "ym-db-MachineChange-Exist",
- "body": [
- "bool $1 = db.MachineChange.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具转换订单,并取值": {
- "prefix": "ym-db-MachineChange-FindByPrimaryKey",
- "body": [
- "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ChangeNo = $1.ChangeNo; //转换单号",
- " int UserId = $1.UserId; //创客",
- " int BackProductType = $1.BackProductType; //退回产品类型",
- " string BackProductName = $1.BackProductName; //退回产品名称",
- " string ChangeDeviceName = $1.ChangeDeviceName; //转换机具名称",
- " int ChangeDeviceNum = $1.ChangeDeviceNum; //转换机具数量",
- " DateTime ChangeTime = $1.ChangeTime; //转换时间",
- " string AuditBy = $1.AuditBy; //审核人",
- " DateTime AuditTime = $1.AuditTime; //审核时间",
- " int AuditResult = $1.AuditResult; //审核结果",
- " string AuditRemark = $1.AuditRemark; //审核备注",
- " DateTime CompleteTime = $1.CompleteTime; //完成时间",
- " string OrderExpand = $1.OrderExpand; //订单扩展信息",
- " string ChangeSnExpand = $1.ChangeSnExpand; //转换机器SN来源",
- " int BackStoreId = $1.BackStoreId; //退回仓库",
- " string BackStoreName = $1.BackStoreName; //退回仓库名称",
- " string Remark = $1.Remark; //订单备注",
- " int BackStoreUserId = $1.BackStoreUserId; //退回仓库归属人",
- " int OutProductType = $1.OutProductType; //出库产品类型",
- " string OutProductName = $1.OutProductName; //出库产品名称",
- " int OutStoreId = $1.OutStoreId; //出库仓库",
- " string OutStoreName = $1.OutStoreName; //出库仓库名称",
- " string OutStoreAreas = $1.OutStoreAreas; //出库仓库所在地区",
- " string OutStoreAddress = $1.OutStoreAddress ; //出库仓库地址",
- " string OutStoreManager = $1.OutStoreManager; //出库仓库联系人",
- " string OutStoreManagerMobile = $1.OutStoreManagerMobile; //出库仓库联系人手机号",
- "}"
- ]
- },
- "查询某个机具转换订单,并赋值": {
- "prefix": "ym-db-MachineChange-Update",
- "body": [
- "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ChangeNo = $2; //转换单号",
- " $1.UserId = $3; //创客",
- " $1.BackProductType = $4; //退回产品类型",
- " $1.BackProductName = $5; //退回产品名称",
- " $1.ChangeDeviceName = $6; //转换机具名称",
- " $1.ChangeDeviceNum = $7; //转换机具数量",
- " $1.ChangeTime = $8; //转换时间",
- " $1.AuditBy = $9; //审核人",
- " $1.AuditTime = $10; //审核时间",
- " $1.AuditResult = $11; //审核结果",
- " $1.AuditRemark = $12; //审核备注",
- " $1.CompleteTime = $13; //完成时间",
- " $1.OrderExpand = $14; //订单扩展信息",
- " $1.ChangeSnExpand = $15; //转换机器SN来源",
- " $1.BackStoreId = $16; //退回仓库",
- " $1.BackStoreName = $17; //退回仓库名称",
- " $1.Remark = $18; //订单备注",
- " $1.BackStoreUserId = $19; //退回仓库归属人",
- " $1.OutProductType = $20; //出库产品类型",
- " $1.OutProductName = $21; //出库产品名称",
- " $1.OutStoreId = $22; //出库仓库",
- " $1.OutStoreName = $23; //出库仓库名称",
- " $1.OutStoreAreas = $24; //出库仓库所在地区",
- " $1.OutStoreAddress = $25; //出库仓库地址",
- " $1.OutStoreManager = $26; //出库仓库联系人",
- " $1.OutStoreManagerMobile = $27; //出库仓库联系人手机号",
- "}"
- ]
- },
- "获取机具转换订单数量": {
- "prefix": "ym-db-MachineChange-FindAndCount",
- "body": [
- "int $1 = db.MachineChange.Count(m => $2);",
- ]
- },
- "添加机具转换订单": {
- "prefix": "ym-db-MachineChange-Create",
- "body": [
- "db.MachineChange.Add(new MachineChange()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ChangeNo = $1, //转换单号",
- " UserId = $2, //创客",
- " BackProductType = $3, //退回产品类型",
- " BackProductName = $4, //退回产品名称",
- " ChangeDeviceName = $5, //转换机具名称",
- " ChangeDeviceNum = $6, //转换机具数量",
- " ChangeTime = $7, //转换时间",
- " AuditBy = $8, //审核人",
- " AuditTime = $9, //审核时间",
- " AuditResult = $10, //审核结果",
- " AuditRemark = $11, //审核备注",
- " CompleteTime = $12, //完成时间",
- " OrderExpand = $13, //订单扩展信息",
- " ChangeSnExpand = $14, //转换机器SN来源",
- " BackStoreId = $15, //退回仓库",
- " BackStoreName = $16, //退回仓库名称",
- " Remark = $17, //订单备注",
- " BackStoreUserId = $18, //退回仓库归属人",
- " OutProductType = $19, //出库产品类型",
- " OutProductName = $20, //出库产品名称",
- " OutStoreId = $21, //出库仓库",
- " OutStoreName = $22, //出库仓库名称",
- " OutStoreAreas = $23, //出库仓库所在地区",
- " OutStoreAddress = $24, //出库仓库地址",
- " OutStoreManager = $25, //出库仓库联系人",
- " OutStoreManagerMobile = $26, //出库仓库联系人手机号",
- "});"
- ]
- },"删除某个机具转换订单": {
- "prefix": "ym-db-MachineChange-Delete",
- "body": [
- "MachineChange $1 = db.MachineChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineChange.Remove($1);",
- "}"
- ]
- },
- "查询机具转换明细列表": {
- "prefix": "ym-db-MachineChangeDetail-Find",
- "body": [
- "List<MachineChangeDetail> $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineChangeDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具转换明细列表,并取值": {
- "prefix": "ym-db-MachineChangeDetail-FindWithData",
- "body": [
- "List<MachineChangeDetail> $1 = db.MachineChangeDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineChangeDetail $3 in $1)",
- "{",
- " string ChangeNo = $3.ChangeNo; //订单号",
- " int ChangeId = $3.ChangeId; //订单Id",
- " int BackProductType = $3.BackProductType; //退回产品类型",
- " string BackProductName = $3.BackProductName; //退回产品名称",
- " int UserId = $3.UserId; //创客",
- " string BackSnNo = $3.BackSnNo; //设备SN编号",
- " int BackDeviceStatus = $3.BackDeviceStatus; //设备状态",
- " int OutProductType = $3.OutProductType ; //出库产品类型",
- " string OutProductName = $3.OutProductName; //出库产品名称",
- " string OutSnNo = $3.OutSnNo; //出库设备SN编号",
- " int OutSnType = $3.OutSnType; //出库SN机具类型",
- " string Remark = $3.Remark; //备注",
- " int BackSnType = $3.BackSnType; //退回SN机具类型",
- "}"
- ]
- },
- "查询机具转换明细": {
- "prefix": "ym-db-MachineChangeDetail-Exist",
- "body": [
- "bool $1 = db.MachineChangeDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具转换明细,并取值": {
- "prefix": "ym-db-MachineChangeDetail-FindByPrimaryKey",
- "body": [
- "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ChangeNo = $1.ChangeNo; //订单号",
- " int ChangeId = $1.ChangeId; //订单Id",
- " int BackProductType = $1.BackProductType; //退回产品类型",
- " string BackProductName = $1.BackProductName; //退回产品名称",
- " int UserId = $1.UserId; //创客",
- " string BackSnNo = $1.BackSnNo; //设备SN编号",
- " int BackDeviceStatus = $1.BackDeviceStatus; //设备状态",
- " int OutProductType = $1.OutProductType ; //出库产品类型",
- " string OutProductName = $1.OutProductName; //出库产品名称",
- " string OutSnNo = $1.OutSnNo; //出库设备SN编号",
- " int OutSnType = $1.OutSnType; //出库SN机具类型",
- " string Remark = $1.Remark; //备注",
- " int BackSnType = $1.BackSnType; //退回SN机具类型",
- "}"
- ]
- },
- "查询某个机具转换明细,并赋值": {
- "prefix": "ym-db-MachineChangeDetail-Update",
- "body": [
- "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ChangeNo = $2; //订单号",
- " $1.ChangeId = $3; //订单Id",
- " $1.BackProductType = $4; //退回产品类型",
- " $1.BackProductName = $5; //退回产品名称",
- " $1.UserId = $6; //创客",
- " $1.BackSnNo = $7; //设备SN编号",
- " $1.BackDeviceStatus = $8; //设备状态",
- " $1.OutProductType = $9; //出库产品类型",
- " $1.OutProductName = $10; //出库产品名称",
- " $1.OutSnNo = $11; //出库设备SN编号",
- " $1.OutSnType = $12; //出库SN机具类型",
- " $1.Remark = $13; //备注",
- " $1.BackSnType = $14; //退回SN机具类型",
- "}"
- ]
- },
- "获取机具转换明细数量": {
- "prefix": "ym-db-MachineChangeDetail-FindAndCount",
- "body": [
- "int $1 = db.MachineChangeDetail.Count(m => $2);",
- ]
- },
- "添加机具转换明细": {
- "prefix": "ym-db-MachineChangeDetail-Create",
- "body": [
- "db.MachineChangeDetail.Add(new MachineChangeDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ChangeNo = $1, //订单号",
- " ChangeId = $2, //订单Id",
- " BackProductType = $3, //退回产品类型",
- " BackProductName = $4, //退回产品名称",
- " UserId = $5, //创客",
- " BackSnNo = $6, //设备SN编号",
- " BackDeviceStatus = $7, //设备状态",
- " OutProductType = $8, //出库产品类型",
- " OutProductName = $9, //出库产品名称",
- " OutSnNo = $10, //出库设备SN编号",
- " OutSnType = $11, //出库SN机具类型",
- " Remark = $12, //备注",
- " BackSnType = $13, //退回SN机具类型",
- "});"
- ]
- },"删除某个机具转换明细": {
- "prefix": "ym-db-MachineChangeDetail-Delete",
- "body": [
- "MachineChangeDetail $1 = db.MachineChangeDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineChangeDetail.Remove($1);",
- "}"
- ]
- },
- "查询机具损坏换新申请列表": {
- "prefix": "ym-db-MachineRenew-Find",
- "body": [
- "List<MachineRenew> $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineRenew $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具损坏换新申请列表,并取值": {
- "prefix": "ym-db-MachineRenew-FindWithData",
- "body": [
- "List<MachineRenew> $1 = db.MachineRenew.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineRenew $3 in $1)",
- "{",
- " string ApplyNo = $3.ApplyNo; //机具售后换新申请订单号",
- " string ApplyDate = $3.ApplyDate; //机具售后换新申请时间",
- " int UserId = $3.UserId; //创客",
- " int DamagedBrandId = $3.DamagedBrandId; //损坏的机具产品类型",
- " string DamagedSnNo = $3.DamagedSnNo; //创客损坏的机具SN",
- " int DamagedSnType = $3.DamagedSnType; //损坏的机具SN机具类型",
- " int ReplaceBrandId = $3.ReplaceBrandId; //替换的机具产品类型",
- " string ReplaceSnNo = $3.ReplaceSnNo; //创客机具替换SN",
- " int ReplaceSnType = $3.ReplaceSnType; //替换的机具SN机具类型",
- " int DeliverBrandId = $3.DeliverBrandId; //仓库换新发货的机具产品类型",
- " string DeliverSnNo = $3.DeliverSnNo; //仓库换新发货SN",
- " string DemandDesc = $3.DemandDesc; //售后换新机具处理需求描述",
- " int audit_status = $3.audit_status; //审核状态",
- " string AuditDesc = $3.AuditDesc; //创客机具售后换新审核描述",
- " DateTime AuditDate = $3.AuditDate; //审核时间",
- "}"
- ]
- },
- "查询机具损坏换新申请": {
- "prefix": "ym-db-MachineRenew-Exist",
- "body": [
- "bool $1 = db.MachineRenew.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具损坏换新申请,并取值": {
- "prefix": "ym-db-MachineRenew-FindByPrimaryKey",
- "body": [
- "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ApplyNo = $1.ApplyNo; //机具售后换新申请订单号",
- " string ApplyDate = $1.ApplyDate; //机具售后换新申请时间",
- " int UserId = $1.UserId; //创客",
- " int DamagedBrandId = $1.DamagedBrandId; //损坏的机具产品类型",
- " string DamagedSnNo = $1.DamagedSnNo; //创客损坏的机具SN",
- " int DamagedSnType = $1.DamagedSnType; //损坏的机具SN机具类型",
- " int ReplaceBrandId = $1.ReplaceBrandId; //替换的机具产品类型",
- " string ReplaceSnNo = $1.ReplaceSnNo; //创客机具替换SN",
- " int ReplaceSnType = $1.ReplaceSnType; //替换的机具SN机具类型",
- " int DeliverBrandId = $1.DeliverBrandId; //仓库换新发货的机具产品类型",
- " string DeliverSnNo = $1.DeliverSnNo; //仓库换新发货SN",
- " string DemandDesc = $1.DemandDesc; //售后换新机具处理需求描述",
- " int audit_status = $1.audit_status; //审核状态",
- " string AuditDesc = $1.AuditDesc; //创客机具售后换新审核描述",
- " DateTime AuditDate = $1.AuditDate; //审核时间",
- "}"
- ]
- },
- "查询某个机具损坏换新申请,并赋值": {
- "prefix": "ym-db-MachineRenew-Update",
- "body": [
- "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ApplyNo = $2; //机具售后换新申请订单号",
- " $1.ApplyDate = $3; //机具售后换新申请时间",
- " $1.UserId = $4; //创客",
- " $1.DamagedBrandId = $5; //损坏的机具产品类型",
- " $1.DamagedSnNo = $6; //创客损坏的机具SN",
- " $1.DamagedSnType = $7; //损坏的机具SN机具类型",
- " $1.ReplaceBrandId = $8; //替换的机具产品类型",
- " $1.ReplaceSnNo = $9; //创客机具替换SN",
- " $1.ReplaceSnType = $10; //替换的机具SN机具类型",
- " $1.DeliverBrandId = $11; //仓库换新发货的机具产品类型",
- " $1.DeliverSnNo = $12; //仓库换新发货SN",
- " $1.DemandDesc = $13; //售后换新机具处理需求描述",
- " $1.audit_status = $14; //审核状态",
- " $1.AuditDesc = $15; //创客机具售后换新审核描述",
- " $1.AuditDate = $16; //审核时间",
- "}"
- ]
- },
- "获取机具损坏换新申请数量": {
- "prefix": "ym-db-MachineRenew-FindAndCount",
- "body": [
- "int $1 = db.MachineRenew.Count(m => $2);",
- ]
- },
- "添加机具损坏换新申请": {
- "prefix": "ym-db-MachineRenew-Create",
- "body": [
- "db.MachineRenew.Add(new MachineRenew()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ApplyNo = $1, //机具售后换新申请订单号",
- " ApplyDate = $2, //机具售后换新申请时间",
- " UserId = $3, //创客",
- " DamagedBrandId = $4, //损坏的机具产品类型",
- " DamagedSnNo = $5, //创客损坏的机具SN",
- " DamagedSnType = $6, //损坏的机具SN机具类型",
- " ReplaceBrandId = $7, //替换的机具产品类型",
- " ReplaceSnNo = $8, //创客机具替换SN",
- " ReplaceSnType = $9, //替换的机具SN机具类型",
- " DeliverBrandId = $10, //仓库换新发货的机具产品类型",
- " DeliverSnNo = $11, //仓库换新发货SN",
- " DemandDesc = $12, //售后换新机具处理需求描述",
- " audit_status = $13, //审核状态",
- " AuditDesc = $14, //创客机具售后换新审核描述",
- " AuditDate = $15, //审核时间",
- "});"
- ]
- },"删除某个机具损坏换新申请": {
- "prefix": "ym-db-MachineRenew-Delete",
- "body": [
- "MachineRenew $1 = db.MachineRenew.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineRenew.Remove($1);",
- "}"
- ]
- },
- "查询机具退货申请订单列表": {
- "prefix": "ym-db-MachineReturn-Find",
- "body": [
- "List<MachineReturn> $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineReturn $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具退货申请订单列表,并取值": {
- "prefix": "ym-db-MachineReturn-FindWithData",
- "body": [
- "List<MachineReturn> $1 = db.MachineReturn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineReturn $3 in $1)",
- "{",
- " string ApplyNo = $3.ApplyNo; //申请单号",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " int DeviceNum = $3.DeviceNum; //申请退货数量",
- " string DeviceSnNos = $3.DeviceSnNos; //退货机具编号",
- " int ToStoreId = $3.ToStoreId; //退回仓库",
- " string DeviceDesc = $3.DeviceDesc; //设备描述",
- " int AuditStatus = $3.AuditStatus; //审核状态",
- " string Operator = $3.Operator; //操作人",
- " string Remark = $3.Remark; //退货备注",
- "}"
- ]
- },
- "查询机具退货申请订单": {
- "prefix": "ym-db-MachineReturn-Exist",
- "body": [
- "bool $1 = db.MachineReturn.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具退货申请订单,并取值": {
- "prefix": "ym-db-MachineReturn-FindByPrimaryKey",
- "body": [
- "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ApplyNo = $1.ApplyNo; //申请单号",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " int DeviceNum = $1.DeviceNum; //申请退货数量",
- " string DeviceSnNos = $1.DeviceSnNos; //退货机具编号",
- " int ToStoreId = $1.ToStoreId; //退回仓库",
- " string DeviceDesc = $1.DeviceDesc; //设备描述",
- " int AuditStatus = $1.AuditStatus; //审核状态",
- " string Operator = $1.Operator; //操作人",
- " string Remark = $1.Remark; //退货备注",
- "}"
- ]
- },
- "查询某个机具退货申请订单,并赋值": {
- "prefix": "ym-db-MachineReturn-Update",
- "body": [
- "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ApplyNo = $2; //申请单号",
- " $1.UserId = $3; //创客",
- " $1.BrandId = $4; //品牌",
- " $1.DeviceNum = $5; //申请退货数量",
- " $1.DeviceSnNos = $6; //退货机具编号",
- " $1.ToStoreId = $7; //退回仓库",
- " $1.DeviceDesc = $8; //设备描述",
- " $1.AuditStatus = $9; //审核状态",
- " $1.Operator = $10; //操作人",
- " $1.Remark = $11; //退货备注",
- "}"
- ]
- },
- "获取机具退货申请订单数量": {
- "prefix": "ym-db-MachineReturn-FindAndCount",
- "body": [
- "int $1 = db.MachineReturn.Count(m => $2);",
- ]
- },
- "添加机具退货申请订单": {
- "prefix": "ym-db-MachineReturn-Create",
- "body": [
- "db.MachineReturn.Add(new MachineReturn()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ApplyNo = $1, //申请单号",
- " UserId = $2, //创客",
- " BrandId = $3, //品牌",
- " DeviceNum = $4, //申请退货数量",
- " DeviceSnNos = $5, //退货机具编号",
- " ToStoreId = $6, //退回仓库",
- " DeviceDesc = $7, //设备描述",
- " AuditStatus = $8, //审核状态",
- " Operator = $9, //操作人",
- " Remark = $10, //退货备注",
- "});"
- ]
- },"删除某个机具退货申请订单": {
- "prefix": "ym-db-MachineReturn-Delete",
- "body": [
- "MachineReturn $1 = db.MachineReturn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineReturn.Remove($1);",
- "}"
- ]
- },
- "查询商家管理员列表": {
- "prefix": "ym-db-MerchantAdmin-Find",
- "body": [
- "List<MerchantAdmin> $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantAdmin $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商家管理员列表,并取值": {
- "prefix": "ym-db-MerchantAdmin-FindWithData",
- "body": [
- "List<MerchantAdmin> $1 = db.MerchantAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantAdmin $3 in $1)",
- "{",
- " string AdminName = $3.AdminName; //用户名",
- " string Password = $3.Password; //密码",
- " string RealName = $3.RealName; //名称",
- " string RightInfo = $3.RightInfo; //权限",
- " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间",
- " string Mobile = $3.Mobile; //手机号",
- " string Email = $3.Email; //邮箱",
- " string QQ = $3.QQ; //QQ号",
- " string Note = $3.Note; //备注",
- " int MerchantId = $3.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询商家管理员": {
- "prefix": "ym-db-MerchantAdmin-Exist",
- "body": [
- "bool $1 = db.MerchantAdmin.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商家管理员,并取值": {
- "prefix": "ym-db-MerchantAdmin-FindByPrimaryKey",
- "body": [
- "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string AdminName = $1.AdminName; //用户名",
- " string Password = $1.Password; //密码",
- " string RealName = $1.RealName; //名称",
- " string RightInfo = $1.RightInfo; //权限",
- " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间",
- " string Mobile = $1.Mobile; //手机号",
- " string Email = $1.Email; //邮箱",
- " string QQ = $1.QQ; //QQ号",
- " string Note = $1.Note; //备注",
- " int MerchantId = $1.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询某个商家管理员,并赋值": {
- "prefix": "ym-db-MerchantAdmin-Update",
- "body": [
- "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.AdminName = $2; //用户名",
- " $1.Password = $3; //密码",
- " $1.RealName = $4; //名称",
- " $1.RightInfo = $5; //权限",
- " $1.LastLoginDate = $6; //最后登录时间",
- " $1.Mobile = $7; //手机号",
- " $1.Email = $8; //邮箱",
- " $1.QQ = $9; //QQ号",
- " $1.Note = $10; //备注",
- " $1.MerchantId = $11; //商家Id",
- "}"
- ]
- },
- "获取商家管理员数量": {
- "prefix": "ym-db-MerchantAdmin-FindAndCount",
- "body": [
- "int $1 = db.MerchantAdmin.Count(m => $2);",
- ]
- },
- "添加商家管理员": {
- "prefix": "ym-db-MerchantAdmin-Create",
- "body": [
- "db.MerchantAdmin.Add(new MerchantAdmin()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " AdminName = $1, //用户名",
- " Password = $2, //密码",
- " RealName = $3, //名称",
- " RightInfo = $4, //权限",
- " LastLoginDate = $5, //最后登录时间",
- " Mobile = $6, //手机号",
- " Email = $7, //邮箱",
- " QQ = $8, //QQ号",
- " Note = $9, //备注",
- " MerchantId = $10, //商家Id",
- "});"
- ]
- },"删除某个商家管理员": {
- "prefix": "ym-db-MerchantAdmin-Delete",
- "body": [
- "MerchantAdmin $1 = db.MerchantAdmin.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantAdmin.Remove($1);",
- "}"
- ]
- },
- "查询商户实名信息列表": {
- "prefix": "ym-db-MerchantAuth-Find",
- "body": [
- "List<MerchantAuth> $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantAuth $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户实名信息列表,并取值": {
- "prefix": "ym-db-MerchantAuth-FindWithData",
- "body": [
- "List<MerchantAuth> $1 = db.MerchantAuth.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantAuth $3 in $1)",
- "{",
- " string ChannelCode = $3.ChannelCode; //渠道编码",
- " string ChannelName = $3.ChannelName; //渠道名称 ",
- " string MerNo = $3.MerNo; //商户编号",
- " string RealName = $3.RealName; //真实姓名",
- " string IdCardNo = $3.IdCardNo; //身份证号",
- " string BankCardAccount = $3.BankCardAccount; //银行卡账号",
- " string BankName = $3.BankName; //银行名称",
- " string BankMobile = $3.BankMobile; //银行预留手机号码",
- " string ReqData = $3.ReqData; //渠道请求报文",
- " string RespData = $3.RespData; //渠道响应报文",
- " string ReturnCode = $3.ReturnCode; //渠道返回编码",
- " string ReturnMsg = $3.ReturnMsg; //渠道返回信息",
- " int AuthType = $3.AuthType; //实名类型",
- " int MerchantId = $3.MerchantId; //商户",
- "}"
- ]
- },
- "查询商户实名信息": {
- "prefix": "ym-db-MerchantAuth-Exist",
- "body": [
- "bool $1 = db.MerchantAuth.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商户实名信息,并取值": {
- "prefix": "ym-db-MerchantAuth-FindByPrimaryKey",
- "body": [
- "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ChannelCode = $1.ChannelCode; //渠道编码",
- " string ChannelName = $1.ChannelName; //渠道名称 ",
- " string MerNo = $1.MerNo; //商户编号",
- " string RealName = $1.RealName; //真实姓名",
- " string IdCardNo = $1.IdCardNo; //身份证号",
- " string BankCardAccount = $1.BankCardAccount; //银行卡账号",
- " string BankName = $1.BankName; //银行名称",
- " string BankMobile = $1.BankMobile; //银行预留手机号码",
- " string ReqData = $1.ReqData; //渠道请求报文",
- " string RespData = $1.RespData; //渠道响应报文",
- " string ReturnCode = $1.ReturnCode; //渠道返回编码",
- " string ReturnMsg = $1.ReturnMsg; //渠道返回信息",
- " int AuthType = $1.AuthType; //实名类型",
- " int MerchantId = $1.MerchantId; //商户",
- "}"
- ]
- },
- "查询某个商户实名信息,并赋值": {
- "prefix": "ym-db-MerchantAuth-Update",
- "body": [
- "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ChannelCode = $2; //渠道编码",
- " $1.ChannelName = $3; //渠道名称 ",
- " $1.MerNo = $4; //商户编号",
- " $1.RealName = $5; //真实姓名",
- " $1.IdCardNo = $6; //身份证号",
- " $1.BankCardAccount = $7; //银行卡账号",
- " $1.BankName = $8; //银行名称",
- " $1.BankMobile = $9; //银行预留手机号码",
- " $1.ReqData = $10; //渠道请求报文",
- " $1.RespData = $11; //渠道响应报文",
- " $1.ReturnCode = $12; //渠道返回编码",
- " $1.ReturnMsg = $13; //渠道返回信息",
- " $1.AuthType = $14; //实名类型",
- " $1.MerchantId = $15; //商户",
- "}"
- ]
- },
- "获取商户实名信息数量": {
- "prefix": "ym-db-MerchantAuth-FindAndCount",
- "body": [
- "int $1 = db.MerchantAuth.Count(m => $2);",
- ]
- },
- "添加商户实名信息": {
- "prefix": "ym-db-MerchantAuth-Create",
- "body": [
- "db.MerchantAuth.Add(new MerchantAuth()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ChannelCode = $1, //渠道编码",
- " ChannelName = $2, //渠道名称 ",
- " MerNo = $3, //商户编号",
- " RealName = $4, //真实姓名",
- " IdCardNo = $5, //身份证号",
- " BankCardAccount = $6, //银行卡账号",
- " BankName = $7, //银行名称",
- " BankMobile = $8, //银行预留手机号码",
- " ReqData = $9, //渠道请求报文",
- " RespData = $10, //渠道响应报文",
- " ReturnCode = $11, //渠道返回编码",
- " ReturnMsg = $12, //渠道返回信息",
- " AuthType = $13, //实名类型",
- " MerchantId = $14, //商户",
- "});"
- ]
- },"删除某个商户实名信息": {
- "prefix": "ym-db-MerchantAuth-Delete",
- "body": [
- "MerchantAuth $1 = db.MerchantAuth.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantAuth.Remove($1);",
- "}"
- ]
- },
- "查询商家分类列表": {
- "prefix": "ym-db-MerchantClass-Find",
- "body": [
- "List<MerchantClass> $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantClass $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商家分类列表,并取值": {
- "prefix": "ym-db-MerchantClass-FindWithData",
- "body": [
- "List<MerchantClass> $1 = db.MerchantClass.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantClass $3 in $1)",
- "{",
- " string ColName = $3.ColName; //名称",
- " int ParentId = $3.ParentId; //父级Id",
- " int MerchantId = $3.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询商家分类": {
- "prefix": "ym-db-MerchantClass-Exist",
- "body": [
- "bool $1 = db.MerchantClass.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商家分类,并取值": {
- "prefix": "ym-db-MerchantClass-FindByPrimaryKey",
- "body": [
- "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ColName = $1.ColName; //名称",
- " int ParentId = $1.ParentId; //父级Id",
- " int MerchantId = $1.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询某个商家分类,并赋值": {
- "prefix": "ym-db-MerchantClass-Update",
- "body": [
- "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ColName = $2; //名称",
- " $1.ParentId = $3; //父级Id",
- " $1.MerchantId = $4; //商家Id",
- "}"
- ]
- },
- "获取商家分类数量": {
- "prefix": "ym-db-MerchantClass-FindAndCount",
- "body": [
- "int $1 = db.MerchantClass.Count(m => $2);",
- ]
- },
- "添加商家分类": {
- "prefix": "ym-db-MerchantClass-Create",
- "body": [
- "db.MerchantClass.Add(new MerchantClass()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ColName = $1, //名称",
- " ParentId = $2, //父级Id",
- " MerchantId = $3, //商家Id",
- "});"
- ]
- },"删除某个商家分类": {
- "prefix": "ym-db-MerchantClass-Delete",
- "body": [
- "MerchantClass $1 = db.MerchantClass.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantClass.Remove($1);",
- "}"
- ]
- },
- "查询商家商品分类列表": {
- "prefix": "ym-db-MerchantCol-Find",
- "body": [
- "List<MerchantCol> $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantCol $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商家商品分类列表,并取值": {
- "prefix": "ym-db-MerchantCol-FindWithData",
- "body": [
- "List<MerchantCol> $1 = db.MerchantCol.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantCol $3 in $1)",
- "{",
- " string ColId = $3.ColId; //编号",
- " string ColName = $3.ColName; //名称",
- " string ColPicPath = $3.ColPicPath; //图标",
- " string ColDetail = $3.ColDetail; //简介",
- " ulong Recommend = $3.Recommend; //推荐",
- " string ColEnName = $3.ColEnName; //英文名",
- " int ParentId = $3.ParentId; //父级Id",
- " int MerchantId = $3.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询商家商品分类": {
- "prefix": "ym-db-MerchantCol-Exist",
- "body": [
- "bool $1 = db.MerchantCol.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商家商品分类,并取值": {
- "prefix": "ym-db-MerchantCol-FindByPrimaryKey",
- "body": [
- "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ColId = $1.ColId; //编号",
- " string ColName = $1.ColName; //名称",
- " string ColPicPath = $1.ColPicPath; //图标",
- " string ColDetail = $1.ColDetail; //简介",
- " ulong Recommend = $1.Recommend; //推荐",
- " string ColEnName = $1.ColEnName; //英文名",
- " int ParentId = $1.ParentId; //父级Id",
- " int MerchantId = $1.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询某个商家商品分类,并赋值": {
- "prefix": "ym-db-MerchantCol-Update",
- "body": [
- "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ColId = $2; //编号",
- " $1.ColName = $3; //名称",
- " $1.ColPicPath = $4; //图标",
- " $1.ColDetail = $5; //简介",
- " $1.Recommend = $6; //推荐",
- " $1.ColEnName = $7; //英文名",
- " $1.ParentId = $8; //父级Id",
- " $1.MerchantId = $9; //商家Id",
- "}"
- ]
- },
- "获取商家商品分类数量": {
- "prefix": "ym-db-MerchantCol-FindAndCount",
- "body": [
- "int $1 = db.MerchantCol.Count(m => $2);",
- ]
- },
- "添加商家商品分类": {
- "prefix": "ym-db-MerchantCol-Create",
- "body": [
- "db.MerchantCol.Add(new MerchantCol()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ColId = $1, //编号",
- " ColName = $2, //名称",
- " ColPicPath = $3, //图标",
- " ColDetail = $4, //简介",
- " Recommend = $5, //推荐",
- " ColEnName = $6, //英文名",
- " ParentId = $7, //父级Id",
- " MerchantId = $8, //商家Id",
- "});"
- ]
- },"删除某个商家商品分类": {
- "prefix": "ym-db-MerchantCol-Delete",
- "body": [
- "MerchantCol $1 = db.MerchantCol.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantCol.Remove($1);",
- "}"
- ]
- },
- "查询店铺评价列表": {
- "prefix": "ym-db-MerchantComment-Find",
- "body": [
- "List<MerchantComment> $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantComment $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询店铺评价列表,并取值": {
- "prefix": "ym-db-MerchantComment-FindWithData",
- "body": [
- "List<MerchantComment> $1 = db.MerchantComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantComment $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " int OrderId = $3.OrderId; //订单Id",
- " int StarNum1 = $3.StarNum1; //快递包装评分",
- " int StarNum2 = $3.StarNum2; //送货速度评分",
- " int StarNum3 = $3.StarNum3; //服务态度评分",
- " int MerchantId = $3.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询店铺评价": {
- "prefix": "ym-db-MerchantComment-Exist",
- "body": [
- "bool $1 = db.MerchantComment.Any(m => m.Id == $2);",
- ]
- },
- "查询某个店铺评价,并取值": {
- "prefix": "ym-db-MerchantComment-FindByPrimaryKey",
- "body": [
- "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " int OrderId = $1.OrderId; //订单Id",
- " int StarNum1 = $1.StarNum1; //快递包装评分",
- " int StarNum2 = $1.StarNum2; //送货速度评分",
- " int StarNum3 = $1.StarNum3; //服务态度评分",
- " int MerchantId = $1.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询某个店铺评价,并赋值": {
- "prefix": "ym-db-MerchantComment-Update",
- "body": [
- "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.OrderId = $3; //订单Id",
- " $1.StarNum1 = $4; //快递包装评分",
- " $1.StarNum2 = $5; //送货速度评分",
- " $1.StarNum3 = $6; //服务态度评分",
- " $1.MerchantId = $7; //商家Id",
- "}"
- ]
- },
- "获取店铺评价数量": {
- "prefix": "ym-db-MerchantComment-FindAndCount",
- "body": [
- "int $1 = db.MerchantComment.Count(m => $2);",
- ]
- },
- "添加店铺评价": {
- "prefix": "ym-db-MerchantComment-Create",
- "body": [
- "db.MerchantComment.Add(new MerchantComment()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " OrderId = $2, //订单Id",
- " StarNum1 = $3, //快递包装评分",
- " StarNum2 = $4, //送货速度评分",
- " StarNum3 = $5, //服务态度评分",
- " MerchantId = $6, //商家Id",
- "});"
- ]
- },"删除某个店铺评价": {
- "prefix": "ym-db-MerchantComment-Delete",
- "body": [
- "MerchantComment $1 = db.MerchantComment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantComment.Remove($1);",
- "}"
- ]
- },
- "查询商户编号为主键的关联表列表": {
- "prefix": "ym-db-MerchantForCode-Find",
- "body": [
- "List<MerchantForCode> $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantForCode $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户编号为主键的关联表列表,并取值": {
- "prefix": "ym-db-MerchantForCode-FindWithData",
- "body": [
- "List<MerchantForCode> $1 = db.MerchantForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantForCode $3 in $1)",
- "{",
- " string Code = $3.Code; //编号",
- " int MerchantId = $3.MerchantId; //商户",
- "}"
- ]
- },
- "查询商户编号为主键的关联表": {
- "prefix": "ym-db-MerchantForCode-Exist",
- "body": [
- "bool $1 = db.MerchantForCode.Any(m => m.Code == $2);",
- ]
- },
- "查询某个商户编号为主键的关联表,并取值": {
- "prefix": "ym-db-MerchantForCode-FindByPrimaryKey",
- "body": [
- "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
- "if ($1 != null)",
- "{",
- " string Code = $1.Code; //编号",
- " int MerchantId = $1.MerchantId; //商户",
- "}"
- ]
- },
- "查询某个商户编号为主键的关联表,并赋值": {
- "prefix": "ym-db-MerchantForCode-Update",
- "body": [
- "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
- "if ($1 != null)",
- "{",
- " $1.Code = $2; //编号",
- " $1.MerchantId = $3; //商户",
- "}"
- ]
- },
- "获取商户编号为主键的关联表数量": {
- "prefix": "ym-db-MerchantForCode-FindAndCount",
- "body": [
- "int $1 = db.MerchantForCode.Count(m => $2);",
- ]
- },
- "添加商户编号为主键的关联表": {
- "prefix": "ym-db-MerchantForCode-Create",
- "body": [
- "db.MerchantForCode.Add(new MerchantForCode()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Code = $1, //编号",
- " MerchantId = $2, //商户",
- "});"
- ]
- },"删除某个商户编号为主键的关联表": {
- "prefix": "ym-db-MerchantForCode-Delete",
- "body": [
- "MerchantForCode $1 = db.MerchantForCode.FirstOrDefault(m => m.Code == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantForCode.Remove($1);",
- "}"
- ]
- },
- "查询商户姓名为主键的关联表列表": {
- "prefix": "ym-db-MerchantForName-Find",
- "body": [
- "List<MerchantForName> $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantForName $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户姓名为主键的关联表列表,并取值": {
- "prefix": "ym-db-MerchantForName-FindWithData",
- "body": [
- "List<MerchantForName> $1 = db.MerchantForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantForName $3 in $1)",
- "{",
- " string Name = $3.Name; //姓名",
- " int MerchantId = $3.MerchantId; //商户",
- "}"
- ]
- },
- "查询商户姓名为主键的关联表": {
- "prefix": "ym-db-MerchantForName-Exist",
- "body": [
- "bool $1 = db.MerchantForName.Any(m => m.Name == $2);",
- ]
- },
- "查询某个商户姓名为主键的关联表,并取值": {
- "prefix": "ym-db-MerchantForName-FindByPrimaryKey",
- "body": [
- "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //姓名",
- " int MerchantId = $1.MerchantId; //商户",
- "}"
- ]
- },
- "查询某个商户姓名为主键的关联表,并赋值": {
- "prefix": "ym-db-MerchantForName-Update",
- "body": [
- "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //姓名",
- " $1.MerchantId = $3; //商户",
- "}"
- ]
- },
- "获取商户姓名为主键的关联表数量": {
- "prefix": "ym-db-MerchantForName-FindAndCount",
- "body": [
- "int $1 = db.MerchantForName.Count(m => $2);",
- ]
- },
- "添加商户姓名为主键的关联表": {
- "prefix": "ym-db-MerchantForName-Create",
- "body": [
- "db.MerchantForName.Add(new MerchantForName()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //姓名",
- " MerchantId = $2, //商户",
- "});"
- ]
- },"删除某个商户姓名为主键的关联表": {
- "prefix": "ym-db-MerchantForName-Delete",
- "body": [
- "MerchantForName $1 = db.MerchantForName.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantForName.Remove($1);",
- "}"
- ]
- },
- "查询商户列表": {
- "prefix": "ym-db-MerchantInfo-Find",
- "body": [
- "List<MerchantInfo> $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户列表,并取值": {
- "prefix": "ym-db-MerchantInfo-FindWithData",
- "body": [
- "List<MerchantInfo> $1 = db.MerchantInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantInfo $3 in $1)",
- "{",
- " string MerchantNo = $3.MerchantNo; //商户编号",
- " string MerchantName = $3.MerchantName; //商户姓名",
- " string MerchantMobile = $3.MerchantMobile; //商户手机号",
- " string MerRealName = $3.MerRealName; //商户真实姓名",
- " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
- " string KqMerNo = $3.KqMerNo; //渠道商户编码",
- " string KqSnNo = $3.KqSnNo; //渠道SN号",
- " int MerStatus = $3.MerStatus; //商户状态",
- " int ActiveStatus = $3.ActiveStatus; //商户激活状态",
- " int DirectUserId = $3.DirectUserId; //直属创客编号",
- " string MgrNo = $3.MgrNo; //渠道经理编号",
- " string MgrName = $3.MgrName; //渠道经理姓名",
- " int UserId = $3.UserId; //创客",
- " int MerUserId = $3.MerUserId; //商户创客",
- " int SnType = $3.SnType; //机具类型",
- " int SnApplyUserId = $3.SnApplyUserId; //机具SN申请创客",
- " DateTime MatchTime = $3.MatchTime; //匹配时间",
- " DateTime KqRegTime = $3.KqRegTime; //渠道注册时间",
- " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
- " int RebateQual = $3.RebateQual; //返利资格",
- " int ActType = $3.ActType; //激活类型",
- " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述",
- " int SnStoreId = $3.SnStoreId; //SN仓库",
- " int BrandId = $3.BrandId; //品牌",
- " string Province = $3.Province; //省份",
- " string City = $3.City; //城市",
- " string Remark = $3.Remark; //备注",
- " int MerUserType = $3.MerUserType; //商户创客类型",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询商户": {
- "prefix": "ym-db-MerchantInfo-Exist",
- "body": [
- "bool $1 = db.MerchantInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商户,并取值": {
- "prefix": "ym-db-MerchantInfo-FindByPrimaryKey",
- "body": [
- "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string MerchantNo = $1.MerchantNo; //商户编号",
- " string MerchantName = $1.MerchantName; //商户姓名",
- " string MerchantMobile = $1.MerchantMobile; //商户手机号",
- " string MerRealName = $1.MerRealName; //商户真实姓名",
- " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
- " string KqMerNo = $1.KqMerNo; //渠道商户编码",
- " string KqSnNo = $1.KqSnNo; //渠道SN号",
- " int MerStatus = $1.MerStatus; //商户状态",
- " int ActiveStatus = $1.ActiveStatus; //商户激活状态",
- " int DirectUserId = $1.DirectUserId; //直属创客编号",
- " string MgrNo = $1.MgrNo; //渠道经理编号",
- " string MgrName = $1.MgrName; //渠道经理姓名",
- " int UserId = $1.UserId; //创客",
- " int MerUserId = $1.MerUserId; //商户创客",
- " int SnType = $1.SnType; //机具类型",
- " int SnApplyUserId = $1.SnApplyUserId; //机具SN申请创客",
- " DateTime MatchTime = $1.MatchTime; //匹配时间",
- " DateTime KqRegTime = $1.KqRegTime; //渠道注册时间",
- " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
- " int RebateQual = $1.RebateQual; //返利资格",
- " int ActType = $1.ActType; //激活类型",
- " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述",
- " int SnStoreId = $1.SnStoreId; //SN仓库",
- " int BrandId = $1.BrandId; //品牌",
- " string Province = $1.Province; //省份",
- " string City = $1.City; //城市",
- " string Remark = $1.Remark; //备注",
- " int MerUserType = $1.MerUserType; //商户创客类型",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个商户,并赋值": {
- "prefix": "ym-db-MerchantInfo-Update",
- "body": [
- "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.MerchantNo = $2; //商户编号",
- " $1.MerchantName = $3; //商户姓名",
- " $1.MerchantMobile = $4; //商户手机号",
- " $1.MerRealName = $5; //商户真实姓名",
- " $1.MerIdcardNo = $6; //商户身份证号",
- " $1.KqMerNo = $7; //渠道商户编码",
- " $1.KqSnNo = $8; //渠道SN号",
- " $1.MerStatus = $9; //商户状态",
- " $1.ActiveStatus = $10; //商户激活状态",
- " $1.DirectUserId = $11; //直属创客编号",
- " $1.MgrNo = $12; //渠道经理编号",
- " $1.MgrName = $13; //渠道经理姓名",
- " $1.UserId = $14; //创客",
- " $1.MerUserId = $15; //商户创客",
- " $1.SnType = $16; //机具类型",
- " $1.SnApplyUserId = $17; //机具SN申请创客",
- " $1.MatchTime = $18; //匹配时间",
- " $1.KqRegTime = $19; //渠道注册时间",
- " $1.MerStandardDate = $20; //商户激活时间",
- " $1.RebateQual = $21; //返利资格",
- " $1.ActType = $22; //激活类型",
- " $1.ActTypeDesc = $23; //激活类型描述",
- " $1.SnStoreId = $24; //SN仓库",
- " $1.BrandId = $25; //品牌",
- " $1.Province = $26; //省份",
- " $1.City = $27; //城市",
- " $1.Remark = $28; //备注",
- " $1.MerUserType = $29; //商户创客类型",
- " $1.TopUserId = $30; //顶级创客",
- "}"
- ]
- },
- "获取商户数量": {
- "prefix": "ym-db-MerchantInfo-FindAndCount",
- "body": [
- "int $1 = db.MerchantInfo.Count(m => $2);",
- ]
- },
- "添加商户": {
- "prefix": "ym-db-MerchantInfo-Create",
- "body": [
- "db.MerchantInfo.Add(new MerchantInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MerchantNo = $1, //商户编号",
- " MerchantName = $2, //商户姓名",
- " MerchantMobile = $3, //商户手机号",
- " MerRealName = $4, //商户真实姓名",
- " MerIdcardNo = $5, //商户身份证号",
- " KqMerNo = $6, //渠道商户编码",
- " KqSnNo = $7, //渠道SN号",
- " MerStatus = $8, //商户状态",
- " ActiveStatus = $9, //商户激活状态",
- " DirectUserId = $10, //直属创客编号",
- " MgrNo = $11, //渠道经理编号",
- " MgrName = $12, //渠道经理姓名",
- " UserId = $13, //创客",
- " MerUserId = $14, //商户创客",
- " SnType = $15, //机具类型",
- " SnApplyUserId = $16, //机具SN申请创客",
- " MatchTime = $17, //匹配时间",
- " KqRegTime = $18, //渠道注册时间",
- " MerStandardDate = $19, //商户激活时间",
- " RebateQual = $20, //返利资格",
- " ActType = $21, //激活类型",
- " ActTypeDesc = $22, //激活类型描述",
- " SnStoreId = $23, //SN仓库",
- " BrandId = $24, //品牌",
- " Province = $25, //省份",
- " City = $26, //城市",
- " Remark = $27, //备注",
- " MerUserType = $28, //商户创客类型",
- " TopUserId = $29, //顶级创客",
- "});"
- ]
- },"删除某个商户": {
- "prefix": "ym-db-MerchantInfo-Delete",
- "body": [
- "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantInfo.Remove($1);",
- "}"
- ]
- },
- "查询商户返利明细列表": {
- "prefix": "ym-db-MerchantRebateDetail-Find",
- "body": [
- "List<MerchantRebateDetail> $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantRebateDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户返利明细列表,并取值": {
- "prefix": "ym-db-MerchantRebateDetail-FindWithData",
- "body": [
- "List<MerchantRebateDetail> $1 = db.MerchantRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantRebateDetail $3 in $1)",
- "{",
- " int BrandId = $3.BrandId; //品牌",
- " string ProductName = $3.ProductName; //产品名称",
- " string TradeMonth = $3.TradeMonth; //交易月份",
- " string TradeDate = $3.TradeDate; //达标日期",
- " string MerNo = $3.MerNo; //渠道商户编号",
- " string SnNo = $3.SnNo; //渠道SN号",
- " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间",
- " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
- " int MerchantId = $3.MerchantId; //商户",
- " string MmpUserNo = $3.MmpUserNo; //KYS刷APP创客编号",
- " string MmpUserName = $3.MmpUserName; //KYS商户真实姓名",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额",
- " int SyncStatus = $3.SyncStatus; //同步MMP",
- " string RewardDesc = $3.RewardDesc; //奖励描述",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询商户返利明细": {
- "prefix": "ym-db-MerchantRebateDetail-Exist",
- "body": [
- "bool $1 = db.MerchantRebateDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商户返利明细,并取值": {
- "prefix": "ym-db-MerchantRebateDetail-FindByPrimaryKey",
- "body": [
- "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int BrandId = $1.BrandId; //品牌",
- " string ProductName = $1.ProductName; //产品名称",
- " string TradeMonth = $1.TradeMonth; //交易月份",
- " string TradeDate = $1.TradeDate; //达标日期",
- " string MerNo = $1.MerNo; //渠道商户编号",
- " string SnNo = $1.SnNo; //渠道SN号",
- " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间",
- " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
- " int MerchantId = $1.MerchantId; //商户",
- " string MmpUserNo = $1.MmpUserNo; //KYS刷APP创客编号",
- " string MmpUserName = $1.MmpUserName; //KYS商户真实姓名",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额",
- " int SyncStatus = $1.SyncStatus; //同步MMP",
- " string RewardDesc = $1.RewardDesc; //奖励描述",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个商户返利明细,并赋值": {
- "prefix": "ym-db-MerchantRebateDetail-Update",
- "body": [
- "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.BrandId = $2; //品牌",
- " $1.ProductName = $3; //产品名称",
- " $1.TradeMonth = $4; //交易月份",
- " $1.TradeDate = $5; //达标日期",
- " $1.MerNo = $6; //渠道商户编号",
- " $1.SnNo = $7; //渠道SN号",
- " $1.MerRegTime = $8; //渠道注册时间",
- " $1.MerStandardDate = $9; //商户激活时间",
- " $1.MerchantId = $10; //商户",
- " $1.MmpUserNo = $11; //KYS刷APP创客编号",
- " $1.MmpUserName = $12; //KYS商户真实姓名",
- " $1.CreditTradeAmt = $13; //贷记卡交易总金额",
- " $1.DebitTradeAmt = $14; //借记卡交易总金额",
- " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额",
- " $1.DebitRewardAmount = $16; //借记卡交易奖励金额",
- " $1.SyncStatus = $17; //同步MMP",
- " $1.RewardDesc = $18; //奖励描述",
- " $1.Remark = $19; //备注",
- "}"
- ]
- },
- "获取商户返利明细数量": {
- "prefix": "ym-db-MerchantRebateDetail-FindAndCount",
- "body": [
- "int $1 = db.MerchantRebateDetail.Count(m => $2);",
- ]
- },
- "添加商户返利明细": {
- "prefix": "ym-db-MerchantRebateDetail-Create",
- "body": [
- "db.MerchantRebateDetail.Add(new MerchantRebateDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " BrandId = $1, //品牌",
- " ProductName = $2, //产品名称",
- " TradeMonth = $3, //交易月份",
- " TradeDate = $4, //达标日期",
- " MerNo = $5, //渠道商户编号",
- " SnNo = $6, //渠道SN号",
- " MerRegTime = $7, //渠道注册时间",
- " MerStandardDate = $8, //商户激活时间",
- " MerchantId = $9, //商户",
- " MmpUserNo = $10, //KYS刷APP创客编号",
- " MmpUserName = $11, //KYS商户真实姓名",
- " CreditTradeAmt = $12, //贷记卡交易总金额",
- " DebitTradeAmt = $13, //借记卡交易总金额",
- " CreditRewardAmount = $14, //贷记卡交易奖励金额",
- " DebitRewardAmount = $15, //借记卡交易奖励金额",
- " SyncStatus = $16, //同步MMP",
- " RewardDesc = $17, //奖励描述",
- " Remark = $18, //备注",
- "});"
- ]
- },"删除某个商户返利明细": {
- "prefix": "ym-db-MerchantRebateDetail-Delete",
- "body": [
- "MerchantRebateDetail $1 = db.MerchantRebateDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantRebateDetail.Remove($1);",
- "}"
- ]
- },
- "查询商家列表": {
- "prefix": "ym-db-Merchants-Find",
- "body": [
- "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Merchants $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商家列表,并取值": {
- "prefix": "ym-db-Merchants-FindWithData",
- "body": [
- "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Merchants $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string Logo = $3.Logo; //Logo图片",
- " string Areas = $3.Areas; //所在地区",
- " string Principal = $3.Principal; //负责人",
- " string Phone = $3.Phone; //联系电话",
- " string BusinessLicense = $3.BusinessLicense; //营业执照",
- " decimal StarNum1 = $3.StarNum1; //快递包装评分",
- " int FollowCount = $3.FollowCount; //关注数",
- " ulong IsAuth = $3.IsAuth; //是否认证",
- " int CommentCount = $3.CommentCount; //评论数",
- " string Address = $3.Address; //详细地址",
- " decimal StarNum2 = $3.StarNum2; //送货速度评分",
- " decimal StarNum3 = $3.StarNum3; //服务态度评分",
- " string UserName = $3.UserName; //账号",
- " string LoginPwd = $3.LoginPwd; //登录密码",
- " string PayPwd = $3.PayPwd; //支付密码",
- " ulong IsRecommend = $3.IsRecommend; //推荐",
- " string Title = $3.Title; //宣传标语",
- " string Title2 = $3.Title2; //宣传标语2",
- " string Province = $3.Province; //所在省",
- "}"
- ]
- },
- "查询商家": {
- "prefix": "ym-db-Merchants-Exist",
- "body": [
- "bool $1 = db.Merchants.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商家,并取值": {
- "prefix": "ym-db-Merchants-FindByPrimaryKey",
- "body": [
- "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string Logo = $1.Logo; //Logo图片",
- " string Areas = $1.Areas; //所在地区",
- " string Principal = $1.Principal; //负责人",
- " string Phone = $1.Phone; //联系电话",
- " string BusinessLicense = $1.BusinessLicense; //营业执照",
- " decimal StarNum1 = $1.StarNum1; //快递包装评分",
- " int FollowCount = $1.FollowCount; //关注数",
- " ulong IsAuth = $1.IsAuth; //是否认证",
- " int CommentCount = $1.CommentCount; //评论数",
- " string Address = $1.Address; //详细地址",
- " decimal StarNum2 = $1.StarNum2; //送货速度评分",
- " decimal StarNum3 = $1.StarNum3; //服务态度评分",
- " string UserName = $1.UserName; //账号",
- " string LoginPwd = $1.LoginPwd; //登录密码",
- " string PayPwd = $1.PayPwd; //支付密码",
- " ulong IsRecommend = $1.IsRecommend; //推荐",
- " string Title = $1.Title; //宣传标语",
- " string Title2 = $1.Title2; //宣传标语2",
- " string Province = $1.Province; //所在省",
- "}"
- ]
- },
- "查询某个商家,并赋值": {
- "prefix": "ym-db-Merchants-Update",
- "body": [
- "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.Logo = $3; //Logo图片",
- " $1.Areas = $4; //所在地区",
- " $1.Principal = $5; //负责人",
- " $1.Phone = $6; //联系电话",
- " $1.BusinessLicense = $7; //营业执照",
- " $1.StarNum1 = $8; //快递包装评分",
- " $1.FollowCount = $9; //关注数",
- " $1.IsAuth = $10; //是否认证",
- " $1.CommentCount = $11; //评论数",
- " $1.Address = $12; //详细地址",
- " $1.StarNum2 = $13; //送货速度评分",
- " $1.StarNum3 = $14; //服务态度评分",
- " $1.UserName = $15; //账号",
- " $1.LoginPwd = $16; //登录密码",
- " $1.PayPwd = $17; //支付密码",
- " $1.IsRecommend = $18; //推荐",
- " $1.Title = $19; //宣传标语",
- " $1.Title2 = $20; //宣传标语2",
- " $1.Province = $21; //所在省",
- "}"
- ]
- },
- "获取商家数量": {
- "prefix": "ym-db-Merchants-FindAndCount",
- "body": [
- "int $1 = db.Merchants.Count(m => $2);",
- ]
- },
- "添加商家": {
- "prefix": "ym-db-Merchants-Create",
- "body": [
- "db.Merchants.Add(new Merchants()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " Logo = $2, //Logo图片",
- " Areas = $3, //所在地区",
- " Principal = $4, //负责人",
- " Phone = $5, //联系电话",
- " BusinessLicense = $6, //营业执照",
- " StarNum1 = $7, //快递包装评分",
- " FollowCount = $8, //关注数",
- " IsAuth = $9, //是否认证",
- " CommentCount = $10, //评论数",
- " Address = $11, //详细地址",
- " StarNum2 = $12, //送货速度评分",
- " StarNum3 = $13, //服务态度评分",
- " UserName = $14, //账号",
- " LoginPwd = $15, //登录密码",
- " PayPwd = $16, //支付密码",
- " IsRecommend = $17, //推荐",
- " Title = $18, //宣传标语",
- " Title2 = $19, //宣传标语2",
- " Province = $20, //所在省",
- "});"
- ]
- },"删除某个商家": {
- "prefix": "ym-db-Merchants-Delete",
- "body": [
- "Merchants $1 = db.Merchants.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Merchants.Remove($1);",
- "}"
- ]
- },
- "查询手机验证码列表": {
- "prefix": "ym-db-MobileCodeCheck-Find",
- "body": [
- "List<MobileCodeCheck> $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MobileCodeCheck $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询手机验证码列表,并取值": {
- "prefix": "ym-db-MobileCodeCheck-FindWithData",
- "body": [
- "List<MobileCodeCheck> $1 = db.MobileCodeCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MobileCodeCheck $3 in $1)",
- "{",
- " string Mobile = $3.Mobile; //手机号",
- " string CheckCode = $3.CheckCode; //验证码",
- " string CheckNo = $3.CheckNo; //图形验证码",
- " DateTime CheckCodeTime = $3.CheckCodeTime; //验证码时间",
- "}"
- ]
- },
- "查询手机验证码": {
- "prefix": "ym-db-MobileCodeCheck-Exist",
- "body": [
- "bool $1 = db.MobileCodeCheck.Any(m => m.Mobile == $2);",
- ]
- },
- "查询某个手机验证码,并取值": {
- "prefix": "ym-db-MobileCodeCheck-FindByPrimaryKey",
- "body": [
- "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " string Mobile = $1.Mobile; //手机号",
- " string CheckCode = $1.CheckCode; //验证码",
- " string CheckNo = $1.CheckNo; //图形验证码",
- " DateTime CheckCodeTime = $1.CheckCodeTime; //验证码时间",
- "}"
- ]
- },
- "查询某个手机验证码,并赋值": {
- "prefix": "ym-db-MobileCodeCheck-Update",
- "body": [
- "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " $1.Mobile = $2; //手机号",
- " $1.CheckCode = $3; //验证码",
- " $1.CheckNo = $4; //图形验证码",
- " $1.CheckCodeTime = $5; //验证码时间",
- "}"
- ]
- },
- "获取手机验证码数量": {
- "prefix": "ym-db-MobileCodeCheck-FindAndCount",
- "body": [
- "int $1 = db.MobileCodeCheck.Count(m => $2);",
- ]
- },
- "添加手机验证码": {
- "prefix": "ym-db-MobileCodeCheck-Create",
- "body": [
- "db.MobileCodeCheck.Add(new MobileCodeCheck()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Mobile = $1, //手机号",
- " CheckCode = $2, //验证码",
- " CheckNo = $3, //图形验证码",
- " CheckCodeTime = $4, //验证码时间",
- "});"
- ]
- },"删除某个手机验证码": {
- "prefix": "ym-db-MobileCodeCheck-Delete",
- "body": [
- "MobileCodeCheck $1 = db.MobileCodeCheck.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " db.MobileCodeCheck.Remove($1);",
- "}"
- ]
- },
- "查询开机奖励列表": {
- "prefix": "ym-db-OpenReward-Find",
- "body": [
- "List<OpenReward> $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenReward $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开机奖励列表,并取值": {
- "prefix": "ym-db-OpenReward-FindWithData",
- "body": [
- "List<OpenReward> $1 = db.OpenReward.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenReward $3 in $1)",
- "{",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " DateTime TradeDate = $3.TradeDate; //达标日期",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " int RewardType = $3.RewardType; //奖励类型",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
- " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
- " string RewardDesc = $3.RewardDesc; //奖励描述",
- " string Remark = $3.Remark; //备注",
- " int RewardMerCount = $3.RewardMerCount; //达标商户数",
- " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询开机奖励": {
- "prefix": "ym-db-OpenReward-Exist",
- "body": [
- "bool $1 = db.OpenReward.Any(m => m.Id == $2);",
- ]
- },
- "查询某个开机奖励,并取值": {
- "prefix": "ym-db-OpenReward-FindByPrimaryKey",
- "body": [
- "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " DateTime TradeDate = $1.TradeDate; //达标日期",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " int RewardType = $1.RewardType; //奖励类型",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
- " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
- " string RewardDesc = $1.RewardDesc; //奖励描述",
- " string Remark = $1.Remark; //备注",
- " int RewardMerCount = $1.RewardMerCount; //达标商户数",
- " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个开机奖励,并赋值": {
- "prefix": "ym-db-OpenReward-Update",
- "body": [
- "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TradeMonth = $2; //交易月",
- " $1.TradeDate = $3; //达标日期",
- " $1.UserId = $4; //创客",
- " $1.BrandId = $5; //品牌",
- " $1.RewardType = $6; //奖励类型",
- " $1.CreditTradeAmt = $7; //贷记卡交易总金额",
- " $1.DebitTradeAmt = $8; //借记卡交易总金额",
- " $1.CreditRewardAmount = $9; //贷记卡交易奖励金额",
- " $1.DebitRewardAmount = $10; //借记记卡交易奖励金额",
- " $1.OpenRewardNo = $11; //开机奖励单号",
- " $1.RewardDesc = $12; //奖励描述",
- " $1.Remark = $13; //备注",
- " $1.RewardMerCount = $14; //达标商户数",
- " $1.CheckStatus = $15; //验证和同步账户状态",
- " $1.TopUserId = $16; //顶级创客",
- "}"
- ]
- },
- "获取开机奖励数量": {
- "prefix": "ym-db-OpenReward-FindAndCount",
- "body": [
- "int $1 = db.OpenReward.Count(m => $2);",
- ]
- },
- "添加开机奖励": {
- "prefix": "ym-db-OpenReward-Create",
- "body": [
- "db.OpenReward.Add(new OpenReward()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TradeMonth = $1, //交易月",
- " TradeDate = $2, //达标日期",
- " UserId = $3, //创客",
- " BrandId = $4, //品牌",
- " RewardType = $5, //奖励类型",
- " CreditTradeAmt = $6, //贷记卡交易总金额",
- " DebitTradeAmt = $7, //借记卡交易总金额",
- " CreditRewardAmount = $8, //贷记卡交易奖励金额",
- " DebitRewardAmount = $9, //借记记卡交易奖励金额",
- " OpenRewardNo = $10, //开机奖励单号",
- " RewardDesc = $11, //奖励描述",
- " Remark = $12, //备注",
- " RewardMerCount = $13, //达标商户数",
- " CheckStatus = $14, //验证和同步账户状态",
- " TopUserId = $15, //顶级创客",
- "});"
- ]
- },"删除某个开机奖励": {
- "prefix": "ym-db-OpenReward-Delete",
- "body": [
- "OpenReward $1 = db.OpenReward.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OpenReward.Remove($1);",
- "}"
- ]
- },
- "查询开机奖励明细列表": {
- "prefix": "ym-db-OpenRewardDetail-Find",
- "body": [
- "List<OpenRewardDetail> $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenRewardDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开机奖励明细列表,并取值": {
- "prefix": "ym-db-OpenRewardDetail-FindWithData",
- "body": [
- "List<OpenRewardDetail> $1 = db.OpenRewardDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenRewardDetail $3 in $1)",
- "{",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " DateTime TradeDate = $3.TradeDate; //达标日期",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " string ProductName = $3.ProductName; //产品名称",
- " int MerchantId = $3.MerchantId; //商户",
- " int DirectUserId = $3.DirectUserId; //商户直属人",
- " string SnNo = $3.SnNo; //SN号",
- " string MerNo = $3.MerNo; //渠道商户号",
- " int SnType = $3.SnType; //机具类型",
- " int SnApplyUserId = $3.SnApplyUserId; //机具申请人",
- " DateTime StandardDate = $3.StandardDate; //商户的激活日期",
- " int SnStoreId = $3.SnStoreId; //SN仓库",
- " int MerBuddyType = $3.MerBuddyType; //商户创客类型",
- " int RewardType = $3.RewardType; //奖励类型",
- " string RewardTips = $3.RewardTips; //奖励描述",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
- " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
- " string RewardDesc = $3.RewardDesc; //奖励描述",
- " string Remark = $3.Remark; //备注",
- " string OpenDetailRec = $3.OpenDetailRec; //明细单号",
- " int CheckStatus = $3.CheckStatus; //同步状态",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询开机奖励明细": {
- "prefix": "ym-db-OpenRewardDetail-Exist",
- "body": [
- "bool $1 = db.OpenRewardDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个开机奖励明细,并取值": {
- "prefix": "ym-db-OpenRewardDetail-FindByPrimaryKey",
- "body": [
- "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " DateTime TradeDate = $1.TradeDate; //达标日期",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " string ProductName = $1.ProductName; //产品名称",
- " int MerchantId = $1.MerchantId; //商户",
- " int DirectUserId = $1.DirectUserId; //商户直属人",
- " string SnNo = $1.SnNo; //SN号",
- " string MerNo = $1.MerNo; //渠道商户号",
- " int SnType = $1.SnType; //机具类型",
- " int SnApplyUserId = $1.SnApplyUserId; //机具申请人",
- " DateTime StandardDate = $1.StandardDate; //商户的激活日期",
- " int SnStoreId = $1.SnStoreId; //SN仓库",
- " int MerBuddyType = $1.MerBuddyType; //商户创客类型",
- " int RewardType = $1.RewardType; //奖励类型",
- " string RewardTips = $1.RewardTips; //奖励描述",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
- " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
- " string RewardDesc = $1.RewardDesc; //奖励描述",
- " string Remark = $1.Remark; //备注",
- " string OpenDetailRec = $1.OpenDetailRec; //明细单号",
- " int CheckStatus = $1.CheckStatus; //同步状态",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个开机奖励明细,并赋值": {
- "prefix": "ym-db-OpenRewardDetail-Update",
- "body": [
- "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TradeMonth = $2; //交易月",
- " $1.TradeDate = $3; //达标日期",
- " $1.UserId = $4; //创客",
- " $1.BrandId = $5; //品牌",
- " $1.ProductName = $6; //产品名称",
- " $1.MerchantId = $7; //商户",
- " $1.DirectUserId = $8; //商户直属人",
- " $1.SnNo = $9; //SN号",
- " $1.MerNo = $10; //渠道商户号",
- " $1.SnType = $11; //机具类型",
- " $1.SnApplyUserId = $12; //机具申请人",
- " $1.StandardDate = $13; //商户的激活日期",
- " $1.SnStoreId = $14; //SN仓库",
- " $1.MerBuddyType = $15; //商户创客类型",
- " $1.RewardType = $16; //奖励类型",
- " $1.RewardTips = $17; //奖励描述",
- " $1.CreditTradeAmt = $18; //贷记卡交易总金额",
- " $1.DebitTradeAmt = $19; //借记卡交易总金额",
- " $1.CreditRewardAmount = $20; //贷记卡交易奖励金额",
- " $1.DebitRewardAmount = $21; //借记记卡交易奖励金额",
- " $1.OpenRewardNo = $22; //开机奖励单号",
- " $1.RewardDesc = $23; //奖励描述",
- " $1.Remark = $24; //备注",
- " $1.OpenDetailRec = $25; //明细单号",
- " $1.CheckStatus = $26; //同步状态",
- " $1.TopUserId = $27; //顶级创客",
- "}"
- ]
- },
- "获取开机奖励明细数量": {
- "prefix": "ym-db-OpenRewardDetail-FindAndCount",
- "body": [
- "int $1 = db.OpenRewardDetail.Count(m => $2);",
- ]
- },
- "添加开机奖励明细": {
- "prefix": "ym-db-OpenRewardDetail-Create",
- "body": [
- "db.OpenRewardDetail.Add(new OpenRewardDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TradeMonth = $1, //交易月",
- " TradeDate = $2, //达标日期",
- " UserId = $3, //创客",
- " BrandId = $4, //品牌",
- " ProductName = $5, //产品名称",
- " MerchantId = $6, //商户",
- " DirectUserId = $7, //商户直属人",
- " SnNo = $8, //SN号",
- " MerNo = $9, //渠道商户号",
- " SnType = $10, //机具类型",
- " SnApplyUserId = $11, //机具申请人",
- " StandardDate = $12, //商户的激活日期",
- " SnStoreId = $13, //SN仓库",
- " MerBuddyType = $14, //商户创客类型",
- " RewardType = $15, //奖励类型",
- " RewardTips = $16, //奖励描述",
- " CreditTradeAmt = $17, //贷记卡交易总金额",
- " DebitTradeAmt = $18, //借记卡交易总金额",
- " CreditRewardAmount = $19, //贷记卡交易奖励金额",
- " DebitRewardAmount = $20, //借记记卡交易奖励金额",
- " OpenRewardNo = $21, //开机奖励单号",
- " RewardDesc = $22, //奖励描述",
- " Remark = $23, //备注",
- " OpenDetailRec = $24, //明细单号",
- " CheckStatus = $25, //同步状态",
- " TopUserId = $26, //顶级创客",
- "});"
- ]
- },"删除某个开机奖励明细": {
- "prefix": "ym-db-OpenRewardDetail-Delete",
- "body": [
- "OpenRewardDetail $1 = db.OpenRewardDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OpenRewardDetail.Remove($1);",
- "}"
- ]
- },
- "查询开机机具快照列表": {
- "prefix": "ym-db-OpenSnSnapshot-Find",
- "body": [
- "List<OpenSnSnapshot> $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenSnSnapshot $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开机机具快照列表,并取值": {
- "prefix": "ym-db-OpenSnSnapshot-FindWithData",
- "body": [
- "List<OpenSnSnapshot> $1 = db.OpenSnSnapshot.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenSnSnapshot $3 in $1)",
- "{",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " DateTime TradeDate = $3.TradeDate; //达标日期",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " int MerchantId = $3.MerchantId; //商户",
- " int DirectUserId = $3.DirectUserId; //商户直属人",
- " string SnNo = $3.SnNo; //SN号",
- " string MerNo = $3.MerNo; //渠道商户号",
- " int SnType = $3.SnType; //机具类型",
- " int SnApplyUserId = $3.SnApplyUserId; //机具申请人",
- " DateTime StandardDate = $3.StandardDate; //商户的激活日期",
- " int SnStoreId = $3.SnStoreId; //SN仓库",
- " int MerUserType = $3.MerUserType; //商户创客类型",
- " int RewardType = $3.RewardType; //奖励类型",
- " string RewardTips = $3.RewardTips; //奖励描述",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记记卡交易奖励金额",
- " string OpenRewardNo = $3.OpenRewardNo; //开机奖励单号",
- " string RewardDesc = $3.RewardDesc; //奖励描述",
- " string Remark = $3.Remark; //备注",
- " string OpenDetailRec = $3.OpenDetailRec; //明细单号",
- " int BuySnNum = $3.BuySnNum; //购买机数量",
- " int StdBuySnNum = $3.StdBuySnNum; //标准购买机数量",
- " decimal RewardAmount = $3.RewardAmount; //奖励金额",
- " string FailReason = $3.FailReason; //失败原因",
- " string UserNav = $3.UserNav; //创客路径",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询开机机具快照": {
- "prefix": "ym-db-OpenSnSnapshot-Exist",
- "body": [
- "bool $1 = db.OpenSnSnapshot.Any(m => m.Id == $2);",
- ]
- },
- "查询某个开机机具快照,并取值": {
- "prefix": "ym-db-OpenSnSnapshot-FindByPrimaryKey",
- "body": [
- "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " DateTime TradeDate = $1.TradeDate; //达标日期",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " int MerchantId = $1.MerchantId; //商户",
- " int DirectUserId = $1.DirectUserId; //商户直属人",
- " string SnNo = $1.SnNo; //SN号",
- " string MerNo = $1.MerNo; //渠道商户号",
- " int SnType = $1.SnType; //机具类型",
- " int SnApplyUserId = $1.SnApplyUserId; //机具申请人",
- " DateTime StandardDate = $1.StandardDate; //商户的激活日期",
- " int SnStoreId = $1.SnStoreId; //SN仓库",
- " int MerUserType = $1.MerUserType; //商户创客类型",
- " int RewardType = $1.RewardType; //奖励类型",
- " string RewardTips = $1.RewardTips; //奖励描述",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记记卡交易奖励金额",
- " string OpenRewardNo = $1.OpenRewardNo; //开机奖励单号",
- " string RewardDesc = $1.RewardDesc; //奖励描述",
- " string Remark = $1.Remark; //备注",
- " string OpenDetailRec = $1.OpenDetailRec; //明细单号",
- " int BuySnNum = $1.BuySnNum; //购买机数量",
- " int StdBuySnNum = $1.StdBuySnNum; //标准购买机数量",
- " decimal RewardAmount = $1.RewardAmount; //奖励金额",
- " string FailReason = $1.FailReason; //失败原因",
- " string UserNav = $1.UserNav; //创客路径",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个开机机具快照,并赋值": {
- "prefix": "ym-db-OpenSnSnapshot-Update",
- "body": [
- "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TradeMonth = $2; //交易月",
- " $1.TradeDate = $3; //达标日期",
- " $1.UserId = $4; //创客",
- " $1.BrandId = $5; //品牌",
- " $1.MerchantId = $6; //商户",
- " $1.DirectUserId = $7; //商户直属人",
- " $1.SnNo = $8; //SN号",
- " $1.MerNo = $9; //渠道商户号",
- " $1.SnType = $10; //机具类型",
- " $1.SnApplyUserId = $11; //机具申请人",
- " $1.StandardDate = $12; //商户的激活日期",
- " $1.SnStoreId = $13; //SN仓库",
- " $1.MerUserType = $14; //商户创客类型",
- " $1.RewardType = $15; //奖励类型",
- " $1.RewardTips = $16; //奖励描述",
- " $1.CreditTradeAmt = $17; //贷记卡交易总金额",
- " $1.DebitTradeAmt = $18; //借记卡交易总金额",
- " $1.CreditRewardAmount = $19; //贷记卡交易奖励金额",
- " $1.DebitRewardAmount = $20; //借记记卡交易奖励金额",
- " $1.OpenRewardNo = $21; //开机奖励单号",
- " $1.RewardDesc = $22; //奖励描述",
- " $1.Remark = $23; //备注",
- " $1.OpenDetailRec = $24; //明细单号",
- " $1.BuySnNum = $25; //购买机数量",
- " $1.StdBuySnNum = $26; //标准购买机数量",
- " $1.RewardAmount = $27; //奖励金额",
- " $1.FailReason = $28; //失败原因",
- " $1.UserNav = $29; //创客路径",
- " $1.TopUserId = $30; //顶级创客",
- "}"
- ]
- },
- "获取开机机具快照数量": {
- "prefix": "ym-db-OpenSnSnapshot-FindAndCount",
- "body": [
- "int $1 = db.OpenSnSnapshot.Count(m => $2);",
- ]
- },
- "添加开机机具快照": {
- "prefix": "ym-db-OpenSnSnapshot-Create",
- "body": [
- "db.OpenSnSnapshot.Add(new OpenSnSnapshot()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TradeMonth = $1, //交易月",
- " TradeDate = $2, //达标日期",
- " UserId = $3, //创客",
- " BrandId = $4, //品牌",
- " MerchantId = $5, //商户",
- " DirectUserId = $6, //商户直属人",
- " SnNo = $7, //SN号",
- " MerNo = $8, //渠道商户号",
- " SnType = $9, //机具类型",
- " SnApplyUserId = $10, //机具申请人",
- " StandardDate = $11, //商户的激活日期",
- " SnStoreId = $12, //SN仓库",
- " MerUserType = $13, //商户创客类型",
- " RewardType = $14, //奖励类型",
- " RewardTips = $15, //奖励描述",
- " CreditTradeAmt = $16, //贷记卡交易总金额",
- " DebitTradeAmt = $17, //借记卡交易总金额",
- " CreditRewardAmount = $18, //贷记卡交易奖励金额",
- " DebitRewardAmount = $19, //借记记卡交易奖励金额",
- " OpenRewardNo = $20, //开机奖励单号",
- " RewardDesc = $21, //奖励描述",
- " Remark = $22, //备注",
- " OpenDetailRec = $23, //明细单号",
- " BuySnNum = $24, //购买机数量",
- " StdBuySnNum = $25, //标准购买机数量",
- " RewardAmount = $26, //奖励金额",
- " FailReason = $27, //失败原因",
- " UserNav = $28, //创客路径",
- " TopUserId = $29, //顶级创客",
- "});"
- ]
- },"删除某个开机机具快照": {
- "prefix": "ym-db-OpenSnSnapshot-Delete",
- "body": [
- "OpenSnSnapshot $1 = db.OpenSnSnapshot.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OpenSnSnapshot.Remove($1);",
- "}"
- ]
- },
- "查询订单号关联表列表": {
- "prefix": "ym-db-OrderForNo-Find",
- "body": [
- "List<OrderForNo> $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderForNo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询订单号关联表列表,并取值": {
- "prefix": "ym-db-OrderForNo-FindWithData",
- "body": [
- "List<OrderForNo> $1 = db.OrderForNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderForNo $3 in $1)",
- "{",
- " string OrderNo = $3.OrderNo; //订单号",
- " string OrderIds = $3.OrderIds; //订单Id",
- " int RspCode = $3.RspCode; //返回码",
- " string RspMsg = $3.RspMsg; //返回信息",
- "}"
- ]
- },
- "查询订单号关联表": {
- "prefix": "ym-db-OrderForNo-Exist",
- "body": [
- "bool $1 = db.OrderForNo.Any(m => m.OrderNo == $2);",
- ]
- },
- "查询某个订单号关联表,并取值": {
- "prefix": "ym-db-OrderForNo-FindByPrimaryKey",
- "body": [
- "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
- "if ($1 != null)",
- "{",
- " string OrderNo = $1.OrderNo; //订单号",
- " string OrderIds = $1.OrderIds; //订单Id",
- " int RspCode = $1.RspCode; //返回码",
- " string RspMsg = $1.RspMsg; //返回信息",
- "}"
- ]
- },
- "查询某个订单号关联表,并赋值": {
- "prefix": "ym-db-OrderForNo-Update",
- "body": [
- "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
- "if ($1 != null)",
- "{",
- " $1.OrderNo = $2; //订单号",
- " $1.OrderIds = $3; //订单Id",
- " $1.RspCode = $4; //返回码",
- " $1.RspMsg = $5; //返回信息",
- "}"
- ]
- },
- "获取订单号关联表数量": {
- "prefix": "ym-db-OrderForNo-FindAndCount",
- "body": [
- "int $1 = db.OrderForNo.Count(m => $2);",
- ]
- },
- "添加订单号关联表": {
- "prefix": "ym-db-OrderForNo-Create",
- "body": [
- "db.OrderForNo.Add(new OrderForNo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " OrderNo = $1, //订单号",
- " OrderIds = $2, //订单Id",
- " RspCode = $3, //返回码",
- " RspMsg = $4, //返回信息",
- "});"
- ]
- },"删除某个订单号关联表": {
- "prefix": "ym-db-OrderForNo-Delete",
- "body": [
- "OrderForNo $1 = db.OrderForNo.FirstOrDefault(m => m.OrderNo == $2);",
- "if ($1 != null)",
- "{",
- " db.OrderForNo.Remove($1);",
- "}"
- ]
- },
- "查询订单商品列表": {
- "prefix": "ym-db-OrderProduct-Find",
- "body": [
- "List<OrderProduct> $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderProduct $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询订单商品列表,并取值": {
- "prefix": "ym-db-OrderProduct-FindWithData",
- "body": [
- "List<OrderProduct> $1 = db.OrderProduct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderProduct $3 in $1)",
- "{",
- " int OrderId = $3.OrderId; //订单Id",
- " int UserId = $3.UserId; //创客Id",
- " int ProductId = $3.ProductId; //商品Id",
- " string ProductName = $3.ProductName; //商品名称",
- " decimal ProductPrice = $3.ProductPrice; //商品单价",
- " int ProductCount = $3.ProductCount; //商品数量",
- " decimal TotalPrice = $3.TotalPrice; //小计",
- " int MerchantId = $3.MerchantId; //商家Id",
- " decimal TotalIntegral = $3.TotalIntegral; //积分",
- " string ProductPhoto = $3.ProductPhoto; //商品缩略图",
- " string NormId = $3.NormId; //规格Id",
- " string NormDetail = $3.NormDetail; //规则描述",
- " decimal ProductIntegral = $3.ProductIntegral; //商品抵扣积分",
- " string ProductCode = $3.ProductCode; //商品编号",
- " int StoreId = $3.StoreId; //发货仓库",
- " string SnNos = $3.SnNos; //SN编号",
- "}"
- ]
- },
- "查询订单商品": {
- "prefix": "ym-db-OrderProduct-Exist",
- "body": [
- "bool $1 = db.OrderProduct.Any(m => m.Id == $2);",
- ]
- },
- "查询某个订单商品,并取值": {
- "prefix": "ym-db-OrderProduct-FindByPrimaryKey",
- "body": [
- "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int OrderId = $1.OrderId; //订单Id",
- " int UserId = $1.UserId; //创客Id",
- " int ProductId = $1.ProductId; //商品Id",
- " string ProductName = $1.ProductName; //商品名称",
- " decimal ProductPrice = $1.ProductPrice; //商品单价",
- " int ProductCount = $1.ProductCount; //商品数量",
- " decimal TotalPrice = $1.TotalPrice; //小计",
- " int MerchantId = $1.MerchantId; //商家Id",
- " decimal TotalIntegral = $1.TotalIntegral; //积分",
- " string ProductPhoto = $1.ProductPhoto; //商品缩略图",
- " string NormId = $1.NormId; //规格Id",
- " string NormDetail = $1.NormDetail; //规则描述",
- " decimal ProductIntegral = $1.ProductIntegral; //商品抵扣积分",
- " string ProductCode = $1.ProductCode; //商品编号",
- " int StoreId = $1.StoreId; //发货仓库",
- " string SnNos = $1.SnNos; //SN编号",
- "}"
- ]
- },
- "查询某个订单商品,并赋值": {
- "prefix": "ym-db-OrderProduct-Update",
- "body": [
- "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.OrderId = $2; //订单Id",
- " $1.UserId = $3; //创客Id",
- " $1.ProductId = $4; //商品Id",
- " $1.ProductName = $5; //商品名称",
- " $1.ProductPrice = $6; //商品单价",
- " $1.ProductCount = $7; //商品数量",
- " $1.TotalPrice = $8; //小计",
- " $1.MerchantId = $9; //商家Id",
- " $1.TotalIntegral = $10; //积分",
- " $1.ProductPhoto = $11; //商品缩略图",
- " $1.NormId = $12; //规格Id",
- " $1.NormDetail = $13; //规则描述",
- " $1.ProductIntegral = $14; //商品抵扣积分",
- " $1.ProductCode = $15; //商品编号",
- " $1.StoreId = $16; //发货仓库",
- " $1.SnNos = $17; //SN编号",
- "}"
- ]
- },
- "获取订单商品数量": {
- "prefix": "ym-db-OrderProduct-FindAndCount",
- "body": [
- "int $1 = db.OrderProduct.Count(m => $2);",
- ]
- },
- "添加订单商品": {
- "prefix": "ym-db-OrderProduct-Create",
- "body": [
- "db.OrderProduct.Add(new OrderProduct()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " OrderId = $1, //订单Id",
- " UserId = $2, //创客Id",
- " ProductId = $3, //商品Id",
- " ProductName = $4, //商品名称",
- " ProductPrice = $5, //商品单价",
- " ProductCount = $6, //商品数量",
- " TotalPrice = $7, //小计",
- " MerchantId = $8, //商家Id",
- " TotalIntegral = $9, //积分",
- " ProductPhoto = $10, //商品缩略图",
- " NormId = $11, //规格Id",
- " NormDetail = $12, //规则描述",
- " ProductIntegral = $13, //商品抵扣积分",
- " ProductCode = $14, //商品编号",
- " StoreId = $15, //发货仓库",
- " SnNos = $16, //SN编号",
- "});"
- ]
- },"删除某个订单商品": {
- "prefix": "ym-db-OrderProduct-Delete",
- "body": [
- "OrderProduct $1 = db.OrderProduct.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OrderProduct.Remove($1);",
- "}"
- ]
- },
- "查询退款申请列表": {
- "prefix": "ym-db-OrderRefund-Find",
- "body": [
- "List<OrderRefund> $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderRefund $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询退款申请列表,并取值": {
- "prefix": "ym-db-OrderRefund-FindWithData",
- "body": [
- "List<OrderRefund> $1 = db.OrderRefund.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderRefund $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " int OrderId = $3.OrderId; //订单Id",
- " string ProductId = $3.ProductId; //商品Id",
- " int Reason = $3.Reason; //退款原因",
- " decimal Amount = $3.Amount; //退款金额",
- " string Contents = $3.Contents; //补充说明",
- " string Mobile = $3.Mobile; //申请人手机号",
- " int MerchantId = $3.MerchantId; //商家Id",
- " int GoodStatus = $3.GoodStatus; //货物状态",
- " string Photos = $3.Photos; //凭证",
- " int ErpCompany = $3.ErpCompany; //快递公司",
- " string ErpCode = $3.ErpCode; //快递运单号",
- "}"
- ]
- },
- "查询退款申请": {
- "prefix": "ym-db-OrderRefund-Exist",
- "body": [
- "bool $1 = db.OrderRefund.Any(m => m.Id == $2);",
- ]
- },
- "查询某个退款申请,并取值": {
- "prefix": "ym-db-OrderRefund-FindByPrimaryKey",
- "body": [
- "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " int OrderId = $1.OrderId; //订单Id",
- " string ProductId = $1.ProductId; //商品Id",
- " int Reason = $1.Reason; //退款原因",
- " decimal Amount = $1.Amount; //退款金额",
- " string Contents = $1.Contents; //补充说明",
- " string Mobile = $1.Mobile; //申请人手机号",
- " int MerchantId = $1.MerchantId; //商家Id",
- " int GoodStatus = $1.GoodStatus; //货物状态",
- " string Photos = $1.Photos; //凭证",
- " int ErpCompany = $1.ErpCompany; //快递公司",
- " string ErpCode = $1.ErpCode; //快递运单号",
- "}"
- ]
- },
- "查询某个退款申请,并赋值": {
- "prefix": "ym-db-OrderRefund-Update",
- "body": [
- "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.OrderId = $3; //订单Id",
- " $1.ProductId = $4; //商品Id",
- " $1.Reason = $5; //退款原因",
- " $1.Amount = $6; //退款金额",
- " $1.Contents = $7; //补充说明",
- " $1.Mobile = $8; //申请人手机号",
- " $1.MerchantId = $9; //商家Id",
- " $1.GoodStatus = $10; //货物状态",
- " $1.Photos = $11; //凭证",
- " $1.ErpCompany = $12; //快递公司",
- " $1.ErpCode = $13; //快递运单号",
- "}"
- ]
- },
- "获取退款申请数量": {
- "prefix": "ym-db-OrderRefund-FindAndCount",
- "body": [
- "int $1 = db.OrderRefund.Count(m => $2);",
- ]
- },
- "添加退款申请": {
- "prefix": "ym-db-OrderRefund-Create",
- "body": [
- "db.OrderRefund.Add(new OrderRefund()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " OrderId = $2, //订单Id",
- " ProductId = $3, //商品Id",
- " Reason = $4, //退款原因",
- " Amount = $5, //退款金额",
- " Contents = $6, //补充说明",
- " Mobile = $7, //申请人手机号",
- " MerchantId = $8, //商家Id",
- " GoodStatus = $9, //货物状态",
- " Photos = $10, //凭证",
- " ErpCompany = $11, //快递公司",
- " ErpCode = $12, //快递运单号",
- "});"
- ]
- },"删除某个退款申请": {
- "prefix": "ym-db-OrderRefund-Delete",
- "body": [
- "OrderRefund $1 = db.OrderRefund.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OrderRefund.Remove($1);",
- "}"
- ]
- },
- "查询退款原因列表": {
- "prefix": "ym-db-OrderRefundReason-Find",
- "body": [
- "List<OrderRefundReason> $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderRefundReason $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询退款原因列表,并取值": {
- "prefix": "ym-db-OrderRefundReason-FindWithData",
- "body": [
- "List<OrderRefundReason> $1 = db.OrderRefundReason.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OrderRefundReason $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- "}"
- ]
- },
- "查询退款原因": {
- "prefix": "ym-db-OrderRefundReason-Exist",
- "body": [
- "bool $1 = db.OrderRefundReason.Any(m => m.Id == $2);",
- ]
- },
- "查询某个退款原因,并取值": {
- "prefix": "ym-db-OrderRefundReason-FindByPrimaryKey",
- "body": [
- "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- "}"
- ]
- },
- "查询某个退款原因,并赋值": {
- "prefix": "ym-db-OrderRefundReason-Update",
- "body": [
- "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- "}"
- ]
- },
- "获取退款原因数量": {
- "prefix": "ym-db-OrderRefundReason-FindAndCount",
- "body": [
- "int $1 = db.OrderRefundReason.Count(m => $2);",
- ]
- },
- "添加退款原因": {
- "prefix": "ym-db-OrderRefundReason-Create",
- "body": [
- "db.OrderRefundReason.Add(new OrderRefundReason()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- "});"
- ]
- },"删除某个退款原因": {
- "prefix": "ym-db-OrderRefundReason-Delete",
- "body": [
- "OrderRefundReason $1 = db.OrderRefundReason.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OrderRefundReason.Remove($1);",
- "}"
- ]
- },
- "查询创客订单列表": {
- "prefix": "ym-db-Orders-Find",
- "body": [
- "List<Orders> $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Orders $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客订单列表,并取值": {
- "prefix": "ym-db-Orders-FindWithData",
- "body": [
- "List<Orders> $1 = db.Orders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Orders $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " string OrderNo = $3.OrderNo; //订单号",
- " string RealName = $3.RealName; //姓名",
- " string Mobile = $3.Mobile; //手机号",
- " decimal TotalPrice = $3.TotalPrice; //总价",
- " string Areas = $3.Areas; //所在地区",
- " string Address = $3.Address; //详细地址",
- " string PostalCode = $3.PostalCode; //邮政编码",
- " int ErpMode = $3.ErpMode; //配送方式",
- " string UserMessage = $3.UserMessage; //买家留言",
- " int CouponId = $3.CouponId; //优惠券Id",
- " string ErpName = $3.ErpName; //物流名称",
- " string ErpCode = $3.ErpCode; //运单号",
- " DateTime PayDate = $3.PayDate; //付款时间",
- " DateTime SendDate = $3.SendDate; //发货时间",
- " DateTime ConfirmDate = $3.ConfirmDate; //确认时间",
- " int PayMode = $3.PayMode; //支付方式",
- " int MerchantId = $3.MerchantId; //商家Id",
- " decimal ErpPrice = $3.ErpPrice; //运费",
- " decimal Integral = $3.Integral; //积分抵扣",
- " string TradeNo = $3.TradeNo; //支付交易号",
- " decimal CouponMoney = $3.CouponMoney; //优惠金额",
- " DateTime AutoConfirmDate = $3.AutoConfirmDate; //自动确认时间",
- " decimal ActualPay = $3.ActualPay; //实付款",
- " int StoreId = $3.StoreId; //仓库",
- " int RefundStatus = $3.RefundStatus; //退款状态",
- " decimal RefundActAmount = $3.RefundActAmount; //实际退款金额",
- " decimal RefundFeeAmount = $3.RefundFeeAmount; //退款手续费",
- " int DeliveryType = $3.DeliveryType; //提货类型",
- " string ReqData = $3.ReqData; //请求数据",
- " string ResData = $3.ResData; //响应数据",
- " string ReturnMsg = $3.ReturnMsg; //返回信息",
- " string ReturnCode = $3.ReturnCode; //返回编码",
- " int SendStatus = $3.SendStatus; //发货状态",
- " int ProductId = $3.ProductId; //商品名称",
- " string StoreContact = $3.StoreContact; //仓库联系人",
- " int StoreType = $3.StoreType; //仓库类型",
- " int StoreUserId = $3.StoreUserId; //仓库归属创客",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int PayStatus = $3.PayStatus; //支付状态",
- " int BuyCount = $3.BuyCount; //下单数量",
- " string Remark = $3.Remark; //订单备注",
- " string SnNos = $3.SnNos; //SN编号",
- " string StoreContactMobile = $3.StoreContactMobile; //仓库联系人电话",
- " decimal ChannelAmount = $3.ChannelAmount; //渠道返回实际金额",
- " string RefundReason = $3.RefundReason; //退货原因",
- "}"
- ]
- },
- "查询创客订单": {
- "prefix": "ym-db-Orders-Exist",
- "body": [
- "bool $1 = db.Orders.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客订单,并取值": {
- "prefix": "ym-db-Orders-FindByPrimaryKey",
- "body": [
- "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " string OrderNo = $1.OrderNo; //订单号",
- " string RealName = $1.RealName; //姓名",
- " string Mobile = $1.Mobile; //手机号",
- " decimal TotalPrice = $1.TotalPrice; //总价",
- " string Areas = $1.Areas; //所在地区",
- " string Address = $1.Address; //详细地址",
- " string PostalCode = $1.PostalCode; //邮政编码",
- " int ErpMode = $1.ErpMode; //配送方式",
- " string UserMessage = $1.UserMessage; //买家留言",
- " int CouponId = $1.CouponId; //优惠券Id",
- " string ErpName = $1.ErpName; //物流名称",
- " string ErpCode = $1.ErpCode; //运单号",
- " DateTime PayDate = $1.PayDate; //付款时间",
- " DateTime SendDate = $1.SendDate; //发货时间",
- " DateTime ConfirmDate = $1.ConfirmDate; //确认时间",
- " int PayMode = $1.PayMode; //支付方式",
- " int MerchantId = $1.MerchantId; //商家Id",
- " decimal ErpPrice = $1.ErpPrice; //运费",
- " decimal Integral = $1.Integral; //积分抵扣",
- " string TradeNo = $1.TradeNo; //支付交易号",
- " decimal CouponMoney = $1.CouponMoney; //优惠金额",
- " DateTime AutoConfirmDate = $1.AutoConfirmDate; //自动确认时间",
- " decimal ActualPay = $1.ActualPay; //实付款",
- " int StoreId = $1.StoreId; //仓库",
- " int RefundStatus = $1.RefundStatus; //退款状态",
- " decimal RefundActAmount = $1.RefundActAmount; //实际退款金额",
- " decimal RefundFeeAmount = $1.RefundFeeAmount; //退款手续费",
- " int DeliveryType = $1.DeliveryType; //提货类型",
- " string ReqData = $1.ReqData; //请求数据",
- " string ResData = $1.ResData; //响应数据",
- " string ReturnMsg = $1.ReturnMsg; //返回信息",
- " string ReturnCode = $1.ReturnCode; //返回编码",
- " int SendStatus = $1.SendStatus; //发货状态",
- " int ProductId = $1.ProductId; //商品名称",
- " string StoreContact = $1.StoreContact; //仓库联系人",
- " int StoreType = $1.StoreType; //仓库类型",
- " int StoreUserId = $1.StoreUserId; //仓库归属创客",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int PayStatus = $1.PayStatus; //支付状态",
- " int BuyCount = $1.BuyCount; //下单数量",
- " string Remark = $1.Remark; //订单备注",
- " string SnNos = $1.SnNos; //SN编号",
- " string StoreContactMobile = $1.StoreContactMobile; //仓库联系人电话",
- " decimal ChannelAmount = $1.ChannelAmount; //渠道返回实际金额",
- " string RefundReason = $1.RefundReason; //退货原因",
- "}"
- ]
- },
- "查询某个创客订单,并赋值": {
- "prefix": "ym-db-Orders-Update",
- "body": [
- "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.OrderNo = $3; //订单号",
- " $1.RealName = $4; //姓名",
- " $1.Mobile = $5; //手机号",
- " $1.TotalPrice = $6; //总价",
- " $1.Areas = $7; //所在地区",
- " $1.Address = $8; //详细地址",
- " $1.PostalCode = $9; //邮政编码",
- " $1.ErpMode = $10; //配送方式",
- " $1.UserMessage = $11; //买家留言",
- " $1.CouponId = $12; //优惠券Id",
- " $1.ErpName = $13; //物流名称",
- " $1.ErpCode = $14; //运单号",
- " $1.PayDate = $15; //付款时间",
- " $1.SendDate = $16; //发货时间",
- " $1.ConfirmDate = $17; //确认时间",
- " $1.PayMode = $18; //支付方式",
- " $1.MerchantId = $19; //商家Id",
- " $1.ErpPrice = $20; //运费",
- " $1.Integral = $21; //积分抵扣",
- " $1.TradeNo = $22; //支付交易号",
- " $1.CouponMoney = $23; //优惠金额",
- " $1.AutoConfirmDate = $24; //自动确认时间",
- " $1.ActualPay = $25; //实付款",
- " $1.StoreId = $26; //仓库",
- " $1.RefundStatus = $27; //退款状态",
- " $1.RefundActAmount = $28; //实际退款金额",
- " $1.RefundFeeAmount = $29; //退款手续费",
- " $1.DeliveryType = $30; //提货类型",
- " $1.ReqData = $31; //请求数据",
- " $1.ResData = $32; //响应数据",
- " $1.ReturnMsg = $33; //返回信息",
- " $1.ReturnCode = $34; //返回编码",
- " $1.SendStatus = $35; //发货状态",
- " $1.ProductId = $36; //商品名称",
- " $1.StoreContact = $37; //仓库联系人",
- " $1.StoreType = $38; //仓库类型",
- " $1.StoreUserId = $39; //仓库归属创客",
- " $1.TopUserId = $40; //顶级创客",
- " $1.PayStatus = $41; //支付状态",
- " $1.BuyCount = $42; //下单数量",
- " $1.Remark = $43; //订单备注",
- " $1.SnNos = $44; //SN编号",
- " $1.StoreContactMobile = $45; //仓库联系人电话",
- " $1.ChannelAmount = $46; //渠道返回实际金额",
- " $1.RefundReason = $47; //退货原因",
- "}"
- ]
- },
- "获取创客订单数量": {
- "prefix": "ym-db-Orders-FindAndCount",
- "body": [
- "int $1 = db.Orders.Count(m => $2);",
- ]
- },
- "添加创客订单": {
- "prefix": "ym-db-Orders-Create",
- "body": [
- "db.Orders.Add(new Orders()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " OrderNo = $2, //订单号",
- " RealName = $3, //姓名",
- " Mobile = $4, //手机号",
- " TotalPrice = $5, //总价",
- " Areas = $6, //所在地区",
- " Address = $7, //详细地址",
- " PostalCode = $8, //邮政编码",
- " ErpMode = $9, //配送方式",
- " UserMessage = $10, //买家留言",
- " CouponId = $11, //优惠券Id",
- " ErpName = $12, //物流名称",
- " ErpCode = $13, //运单号",
- " PayDate = $14, //付款时间",
- " SendDate = $15, //发货时间",
- " ConfirmDate = $16, //确认时间",
- " PayMode = $17, //支付方式",
- " MerchantId = $18, //商家Id",
- " ErpPrice = $19, //运费",
- " Integral = $20, //积分抵扣",
- " TradeNo = $21, //支付交易号",
- " CouponMoney = $22, //优惠金额",
- " AutoConfirmDate = $23, //自动确认时间",
- " ActualPay = $24, //实付款",
- " StoreId = $25, //仓库",
- " RefundStatus = $26, //退款状态",
- " RefundActAmount = $27, //实际退款金额",
- " RefundFeeAmount = $28, //退款手续费",
- " DeliveryType = $29, //提货类型",
- " ReqData = $30, //请求数据",
- " ResData = $31, //响应数据",
- " ReturnMsg = $32, //返回信息",
- " ReturnCode = $33, //返回编码",
- " SendStatus = $34, //发货状态",
- " ProductId = $35, //商品名称",
- " StoreContact = $36, //仓库联系人",
- " StoreType = $37, //仓库类型",
- " StoreUserId = $38, //仓库归属创客",
- " TopUserId = $39, //顶级创客",
- " PayStatus = $40, //支付状态",
- " BuyCount = $41, //下单数量",
- " Remark = $42, //订单备注",
- " SnNos = $43, //SN编号",
- " StoreContactMobile = $44, //仓库联系人电话",
- " ChannelAmount = $45, //渠道返回实际金额",
- " RefundReason = $46, //退货原因",
- "});"
- ]
- },"删除某个创客订单": {
- "prefix": "ym-db-Orders-Delete",
- "body": [
- "Orders $1 = db.Orders.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Orders.Remove($1);",
- "}"
- ]
- },
- "查询页面模板更新信息列表": {
- "prefix": "ym-db-PageUpdateInfo-Find",
- "body": [
- "List<PageUpdateInfo> $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PageUpdateInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询页面模板更新信息列表,并取值": {
- "prefix": "ym-db-PageUpdateInfo-FindWithData",
- "body": [
- "List<PageUpdateInfo> $1 = db.PageUpdateInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PageUpdateInfo $3 in $1)",
- "{",
- " int ModuleVersion = $3.ModuleVersion; //模板更新版本",
- " string ModulePath = $3.ModulePath; //模板路径",
- " string BgColor = $3.BgColor; //背景色",
- " string TextColor = $3.TextColor; //前景色",
- " string StatusBarStyle = $3.StatusBarStyle; //苹果状态栏",
- " ulong ShowTitle = $3.ShowTitle; //是否显示头部",
- " string Title = $3.Title; //顶部标题",
- " ulong IsScrollBar = $3.IsScrollBar; //是否显示滚动条",
- " ulong IsSkid = $3.IsSkid; //是否侧滑返回",
- " string LeftBtn1 = $3.LeftBtn1; //左侧按钮1",
- " string LeftBtn2 = $3.LeftBtn2; //左侧按钮2",
- " string RightBtn1 = $3.RightBtn1; //右侧按钮1",
- " string RightBtn2 = $3.RightBtn2; //右侧按钮2",
- " string LeftAction1 = $3.LeftAction1; //左侧按钮1点击事件",
- " string LeftAction2 = $3.LeftAction2; //左侧按钮2点击事件",
- " string RightAction1 = $3.RightAction1; //右侧按钮1点击事件",
- " string RightAction2 = $3.RightAction2; //右侧按钮2点击事件",
- " string GotoPages = $3.GotoPages; //下级页面",
- " ulong MustUpdate = $3.MustUpdate; //是否强制更新",
- "}"
- ]
- },
- "查询页面模板更新信息": {
- "prefix": "ym-db-PageUpdateInfo-Exist",
- "body": [
- "bool $1 = db.PageUpdateInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个页面模板更新信息,并取值": {
- "prefix": "ym-db-PageUpdateInfo-FindByPrimaryKey",
- "body": [
- "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int ModuleVersion = $1.ModuleVersion; //模板更新版本",
- " string ModulePath = $1.ModulePath; //模板路径",
- " string BgColor = $1.BgColor; //背景色",
- " string TextColor = $1.TextColor; //前景色",
- " string StatusBarStyle = $1.StatusBarStyle; //苹果状态栏",
- " ulong ShowTitle = $1.ShowTitle; //是否显示头部",
- " string Title = $1.Title; //顶部标题",
- " ulong IsScrollBar = $1.IsScrollBar; //是否显示滚动条",
- " ulong IsSkid = $1.IsSkid; //是否侧滑返回",
- " string LeftBtn1 = $1.LeftBtn1; //左侧按钮1",
- " string LeftBtn2 = $1.LeftBtn2; //左侧按钮2",
- " string RightBtn1 = $1.RightBtn1; //右侧按钮1",
- " string RightBtn2 = $1.RightBtn2; //右侧按钮2",
- " string LeftAction1 = $1.LeftAction1; //左侧按钮1点击事件",
- " string LeftAction2 = $1.LeftAction2; //左侧按钮2点击事件",
- " string RightAction1 = $1.RightAction1; //右侧按钮1点击事件",
- " string RightAction2 = $1.RightAction2; //右侧按钮2点击事件",
- " string GotoPages = $1.GotoPages; //下级页面",
- " ulong MustUpdate = $1.MustUpdate; //是否强制更新",
- "}"
- ]
- },
- "查询某个页面模板更新信息,并赋值": {
- "prefix": "ym-db-PageUpdateInfo-Update",
- "body": [
- "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ModuleVersion = $2; //模板更新版本",
- " $1.ModulePath = $3; //模板路径",
- " $1.BgColor = $4; //背景色",
- " $1.TextColor = $5; //前景色",
- " $1.StatusBarStyle = $6; //苹果状态栏",
- " $1.ShowTitle = $7; //是否显示头部",
- " $1.Title = $8; //顶部标题",
- " $1.IsScrollBar = $9; //是否显示滚动条",
- " $1.IsSkid = $10; //是否侧滑返回",
- " $1.LeftBtn1 = $11; //左侧按钮1",
- " $1.LeftBtn2 = $12; //左侧按钮2",
- " $1.RightBtn1 = $13; //右侧按钮1",
- " $1.RightBtn2 = $14; //右侧按钮2",
- " $1.LeftAction1 = $15; //左侧按钮1点击事件",
- " $1.LeftAction2 = $16; //左侧按钮2点击事件",
- " $1.RightAction1 = $17; //右侧按钮1点击事件",
- " $1.RightAction2 = $18; //右侧按钮2点击事件",
- " $1.GotoPages = $19; //下级页面",
- " $1.MustUpdate = $20; //是否强制更新",
- "}"
- ]
- },
- "获取页面模板更新信息数量": {
- "prefix": "ym-db-PageUpdateInfo-FindAndCount",
- "body": [
- "int $1 = db.PageUpdateInfo.Count(m => $2);",
- ]
- },
- "添加页面模板更新信息": {
- "prefix": "ym-db-PageUpdateInfo-Create",
- "body": [
- "db.PageUpdateInfo.Add(new PageUpdateInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ModuleVersion = $1, //模板更新版本",
- " ModulePath = $2, //模板路径",
- " BgColor = $3, //背景色",
- " TextColor = $4, //前景色",
- " StatusBarStyle = $5, //苹果状态栏",
- " ShowTitle = $6, //是否显示头部",
- " Title = $7, //顶部标题",
- " IsScrollBar = $8, //是否显示滚动条",
- " IsSkid = $9, //是否侧滑返回",
- " LeftBtn1 = $10, //左侧按钮1",
- " LeftBtn2 = $11, //左侧按钮2",
- " RightBtn1 = $12, //右侧按钮1",
- " RightBtn2 = $13, //右侧按钮2",
- " LeftAction1 = $14, //左侧按钮1点击事件",
- " LeftAction2 = $15, //左侧按钮2点击事件",
- " RightAction1 = $16, //右侧按钮1点击事件",
- " RightAction2 = $17, //右侧按钮2点击事件",
- " GotoPages = $18, //下级页面",
- " MustUpdate = $19, //是否强制更新",
- "});"
- ]
- },"删除某个页面模板更新信息": {
- "prefix": "ym-db-PageUpdateInfo-Delete",
- "body": [
- "PageUpdateInfo $1 = db.PageUpdateInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.PageUpdateInfo.Remove($1);",
- "}"
- ]
- },
- "查询机具库列表": {
- "prefix": "ym-db-PosMachines-Find",
- "body": [
- "List<PosMachines> $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PosMachines $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具库列表,并取值": {
- "prefix": "ym-db-PosMachines-FindWithData",
- "body": [
- "List<PosMachines> $1 = db.PosMachines.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PosMachines $3 in $1)",
- "{",
- " int BindingState = $3.BindingState; //绑定状态",
- " int ActivationState = $3.ActivationState; //激活状态",
- " string Detail = $3.Detail; //机具详情",
- " DateTime ActivationTime = $3.ActivationTime; //激活时间",
- " DateTime BindingTime = $3.BindingTime; //绑定时间",
- " int UserId = $3.UserId; //所属创客",
- " ulong IsPurchase = $3.IsPurchase; //是否卖出",
- " string PosSn = $3.PosSn; //SN编号",
- " DateTime TransferTime = $3.TransferTime; //划拨时间",
- " int BuyUserId = $3.BuyUserId; //购买人",
- " string UserNav = $3.UserNav; //所属创客上级集合",
- " int BrandId = $3.BrandId; //产品类型",
- " decimal CreditTrade = $3.CreditTrade; //贷记卡交易额",
- " ulong IsVip = $3.IsVip; //是否VIP",
- " string PrizeParams = $3.PrizeParams; //附加参数",
- " int RecycBackCount = $3.RecycBackCount; //循环返券张数",
- " int StoreId = $3.StoreId; //所在仓库",
- " decimal DebitCardTrade = $3.DebitCardTrade; //借记卡交易额",
- " decimal ScanQrTrade = $3.ScanQrTrade; //扫码交易额",
- " string ActivityList = $3.ActivityList; //参加活动",
- " int BindMerchantId = $3.BindMerchantId; //绑定商户",
- " int PosSnType = $3.PosSnType; //机具类型",
- " string DeviceType = $3.DeviceType; //设备类型",
- "}"
- ]
- },
- "查询机具库": {
- "prefix": "ym-db-PosMachines-Exist",
- "body": [
- "bool $1 = db.PosMachines.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具库,并取值": {
- "prefix": "ym-db-PosMachines-FindByPrimaryKey",
- "body": [
- "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int BindingState = $1.BindingState; //绑定状态",
- " int ActivationState = $1.ActivationState; //激活状态",
- " string Detail = $1.Detail; //机具详情",
- " DateTime ActivationTime = $1.ActivationTime; //激活时间",
- " DateTime BindingTime = $1.BindingTime; //绑定时间",
- " int UserId = $1.UserId; //所属创客",
- " ulong IsPurchase = $1.IsPurchase; //是否卖出",
- " string PosSn = $1.PosSn; //SN编号",
- " DateTime TransferTime = $1.TransferTime; //划拨时间",
- " int BuyUserId = $1.BuyUserId; //购买人",
- " string UserNav = $1.UserNav; //所属创客上级集合",
- " int BrandId = $1.BrandId; //产品类型",
- " decimal CreditTrade = $1.CreditTrade; //贷记卡交易额",
- " ulong IsVip = $1.IsVip; //是否VIP",
- " string PrizeParams = $1.PrizeParams; //附加参数",
- " int RecycBackCount = $1.RecycBackCount; //循环返券张数",
- " int StoreId = $1.StoreId; //所在仓库",
- " decimal DebitCardTrade = $1.DebitCardTrade; //借记卡交易额",
- " decimal ScanQrTrade = $1.ScanQrTrade; //扫码交易额",
- " string ActivityList = $1.ActivityList; //参加活动",
- " int BindMerchantId = $1.BindMerchantId; //绑定商户",
- " int PosSnType = $1.PosSnType; //机具类型",
- " string DeviceType = $1.DeviceType; //设备类型",
- "}"
- ]
- },
- "查询某个机具库,并赋值": {
- "prefix": "ym-db-PosMachines-Update",
- "body": [
- "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.BindingState = $2; //绑定状态",
- " $1.ActivationState = $3; //激活状态",
- " $1.Detail = $4; //机具详情",
- " $1.ActivationTime = $5; //激活时间",
- " $1.BindingTime = $6; //绑定时间",
- " $1.UserId = $7; //所属创客",
- " $1.IsPurchase = $8; //是否卖出",
- " $1.PosSn = $9; //SN编号",
- " $1.TransferTime = $10; //划拨时间",
- " $1.BuyUserId = $11; //购买人",
- " $1.UserNav = $12; //所属创客上级集合",
- " $1.BrandId = $13; //产品类型",
- " $1.CreditTrade = $14; //贷记卡交易额",
- " $1.IsVip = $15; //是否VIP",
- " $1.PrizeParams = $16; //附加参数",
- " $1.RecycBackCount = $17; //循环返券张数",
- " $1.StoreId = $18; //所在仓库",
- " $1.DebitCardTrade = $19; //借记卡交易额",
- " $1.ScanQrTrade = $20; //扫码交易额",
- " $1.ActivityList = $21; //参加活动",
- " $1.BindMerchantId = $22; //绑定商户",
- " $1.PosSnType = $23; //机具类型",
- " $1.DeviceType = $24; //设备类型",
- "}"
- ]
- },
- "获取机具库数量": {
- "prefix": "ym-db-PosMachines-FindAndCount",
- "body": [
- "int $1 = db.PosMachines.Count(m => $2);",
- ]
- },
- "添加机具库": {
- "prefix": "ym-db-PosMachines-Create",
- "body": [
- "db.PosMachines.Add(new PosMachines()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " BindingState = $1, //绑定状态",
- " ActivationState = $2, //激活状态",
- " Detail = $3, //机具详情",
- " ActivationTime = $4, //激活时间",
- " BindingTime = $5, //绑定时间",
- " UserId = $6, //所属创客",
- " IsPurchase = $7, //是否卖出",
- " PosSn = $8, //SN编号",
- " TransferTime = $9, //划拨时间",
- " BuyUserId = $10, //购买人",
- " UserNav = $11, //所属创客上级集合",
- " BrandId = $12, //产品类型",
- " CreditTrade = $13, //贷记卡交易额",
- " IsVip = $14, //是否VIP",
- " PrizeParams = $15, //附加参数",
- " RecycBackCount = $16, //循环返券张数",
- " StoreId = $17, //所在仓库",
- " DebitCardTrade = $18, //借记卡交易额",
- " ScanQrTrade = $19, //扫码交易额",
- " ActivityList = $20, //参加活动",
- " BindMerchantId = $21, //绑定商户",
- " PosSnType = $22, //机具类型",
- " DeviceType = $23, //设备类型",
- "});"
- ]
- },"删除某个机具库": {
- "prefix": "ym-db-PosMachines-Delete",
- "body": [
- "PosMachines $1 = db.PosMachines.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.PosMachines.Remove($1);",
- "}"
- ]
- },
- "查询商品评价列表": {
- "prefix": "ym-db-ProductComment-Find",
- "body": [
- "List<ProductComment> $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductComment $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品评价列表,并取值": {
- "prefix": "ym-db-ProductComment-FindWithData",
- "body": [
- "List<ProductComment> $1 = db.ProductComment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductComment $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " int ProductId = $3.ProductId; //商品Id",
- " int OrderId = $3.OrderId; //订单Id",
- " string Contents = $3.Contents; //评论内容",
- " int StarNum = $3.StarNum; //商品评分",
- " int AgreeCount = $3.AgreeCount; //点赞数",
- " int BackCount = $3.BackCount; //回复数",
- " int MerchantId = $3.MerchantId; //商家Id",
- " ulong HasPhoto = $3.HasPhoto; //是否有图",
- " string PhotoList = $3.PhotoList; //图集",
- " int ProductNormId = $3.ProductNormId; //商品规格Id",
- "}"
- ]
- },
- "查询商品评价": {
- "prefix": "ym-db-ProductComment-Exist",
- "body": [
- "bool $1 = db.ProductComment.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商品评价,并取值": {
- "prefix": "ym-db-ProductComment-FindByPrimaryKey",
- "body": [
- "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " int ProductId = $1.ProductId; //商品Id",
- " int OrderId = $1.OrderId; //订单Id",
- " string Contents = $1.Contents; //评论内容",
- " int StarNum = $1.StarNum; //商品评分",
- " int AgreeCount = $1.AgreeCount; //点赞数",
- " int BackCount = $1.BackCount; //回复数",
- " int MerchantId = $1.MerchantId; //商家Id",
- " ulong HasPhoto = $1.HasPhoto; //是否有图",
- " string PhotoList = $1.PhotoList; //图集",
- " int ProductNormId = $1.ProductNormId; //商品规格Id",
- "}"
- ]
- },
- "查询某个商品评价,并赋值": {
- "prefix": "ym-db-ProductComment-Update",
- "body": [
- "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.ProductId = $3; //商品Id",
- " $1.OrderId = $4; //订单Id",
- " $1.Contents = $5; //评论内容",
- " $1.StarNum = $6; //商品评分",
- " $1.AgreeCount = $7; //点赞数",
- " $1.BackCount = $8; //回复数",
- " $1.MerchantId = $9; //商家Id",
- " $1.HasPhoto = $10; //是否有图",
- " $1.PhotoList = $11; //图集",
- " $1.ProductNormId = $12; //商品规格Id",
- "}"
- ]
- },
- "获取商品评价数量": {
- "prefix": "ym-db-ProductComment-FindAndCount",
- "body": [
- "int $1 = db.ProductComment.Count(m => $2);",
- ]
- },
- "添加商品评价": {
- "prefix": "ym-db-ProductComment-Create",
- "body": [
- "db.ProductComment.Add(new ProductComment()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " ProductId = $2, //商品Id",
- " OrderId = $3, //订单Id",
- " Contents = $4, //评论内容",
- " StarNum = $5, //商品评分",
- " AgreeCount = $6, //点赞数",
- " BackCount = $7, //回复数",
- " MerchantId = $8, //商家Id",
- " HasPhoto = $9, //是否有图",
- " PhotoList = $10, //图集",
- " ProductNormId = $11, //商品规格Id",
- "});"
- ]
- },"删除某个商品评价": {
- "prefix": "ym-db-ProductComment-Delete",
- "body": [
- "ProductComment $1 = db.ProductComment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductComment.Remove($1);",
- "}"
- ]
- },
- "查询商品评价点赞记录列表": {
- "prefix": "ym-db-ProductCommentAgree-Find",
- "body": [
- "List<ProductCommentAgree> $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductCommentAgree $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品评价点赞记录列表,并取值": {
- "prefix": "ym-db-ProductCommentAgree-FindWithData",
- "body": [
- "List<ProductCommentAgree> $1 = db.ProductCommentAgree.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductCommentAgree $3 in $1)",
- "{",
- " int Id = $3.Id; //Id",
- " int UserId = $3.UserId; //创客Id",
- " int ProductCommentId = $3.ProductCommentId; //商品评价Id",
- "}"
- ]
- },
- "查询商品评价点赞记录": {
- "prefix": "ym-db-ProductCommentAgree-Exist",
- "body": [
- "bool $1 = db.ProductCommentAgree.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商品评价点赞记录,并取值": {
- "prefix": "ym-db-ProductCommentAgree-FindByPrimaryKey",
- "body": [
- "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int Id = $1.Id; //Id",
- " int UserId = $1.UserId; //创客Id",
- " int ProductCommentId = $1.ProductCommentId; //商品评价Id",
- "}"
- ]
- },
- "查询某个商品评价点赞记录,并赋值": {
- "prefix": "ym-db-ProductCommentAgree-Update",
- "body": [
- "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Id = $2; //Id",
- " $1.UserId = $3; //创客Id",
- " $1.ProductCommentId = $4; //商品评价Id",
- "}"
- ]
- },
- "获取商品评价点赞记录数量": {
- "prefix": "ym-db-ProductCommentAgree-FindAndCount",
- "body": [
- "int $1 = db.ProductCommentAgree.Count(m => $2);",
- ]
- },
- "添加商品评价点赞记录": {
- "prefix": "ym-db-ProductCommentAgree-Create",
- "body": [
- "db.ProductCommentAgree.Add(new ProductCommentAgree()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Id = $1, //Id",
- " UserId = $2, //创客Id",
- " ProductCommentId = $3, //商品评价Id",
- "});"
- ]
- },"删除某个商品评价点赞记录": {
- "prefix": "ym-db-ProductCommentAgree-Delete",
- "body": [
- "ProductCommentAgree $1 = db.ProductCommentAgree.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductCommentAgree.Remove($1);",
- "}"
- ]
- },
- "查询运费按区域列表": {
- "prefix": "ym-db-ProductFareAreas-Find",
- "body": [
- "List<ProductFareAreas> $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductFareAreas $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询运费按区域列表,并取值": {
- "prefix": "ym-db-ProductFareAreas-FindWithData",
- "body": [
- "List<ProductFareAreas> $1 = db.ProductFareAreas.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductFareAreas $3 in $1)",
- "{",
- " int MerchantId = $3.MerchantId; //商家Id",
- " int TemplateId = $3.TemplateId; //模板Id",
- " string Areas = $3.Areas; //地区",
- " decimal FirstAmount = $3.FirstAmount; //首件数量",
- " decimal FirstFee = $3.FirstFee; //首件费用",
- " decimal MoreAmount = $3.MoreAmount; //续件数量",
- " decimal MoreFee = $3.MoreFee; //续件费用",
- "}"
- ]
- },
- "查询运费按区域": {
- "prefix": "ym-db-ProductFareAreas-Exist",
- "body": [
- "bool $1 = db.ProductFareAreas.Any(m => m.Id == $2);",
- ]
- },
- "查询某个运费按区域,并取值": {
- "prefix": "ym-db-ProductFareAreas-FindByPrimaryKey",
- "body": [
- "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int MerchantId = $1.MerchantId; //商家Id",
- " int TemplateId = $1.TemplateId; //模板Id",
- " string Areas = $1.Areas; //地区",
- " decimal FirstAmount = $1.FirstAmount; //首件数量",
- " decimal FirstFee = $1.FirstFee; //首件费用",
- " decimal MoreAmount = $1.MoreAmount; //续件数量",
- " decimal MoreFee = $1.MoreFee; //续件费用",
- "}"
- ]
- },
- "查询某个运费按区域,并赋值": {
- "prefix": "ym-db-ProductFareAreas-Update",
- "body": [
- "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.MerchantId = $2; //商家Id",
- " $1.TemplateId = $3; //模板Id",
- " $1.Areas = $4; //地区",
- " $1.FirstAmount = $5; //首件数量",
- " $1.FirstFee = $6; //首件费用",
- " $1.MoreAmount = $7; //续件数量",
- " $1.MoreFee = $8; //续件费用",
- "}"
- ]
- },
- "获取运费按区域数量": {
- "prefix": "ym-db-ProductFareAreas-FindAndCount",
- "body": [
- "int $1 = db.ProductFareAreas.Count(m => $2);",
- ]
- },
- "添加运费按区域": {
- "prefix": "ym-db-ProductFareAreas-Create",
- "body": [
- "db.ProductFareAreas.Add(new ProductFareAreas()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MerchantId = $1, //商家Id",
- " TemplateId = $2, //模板Id",
- " Areas = $3, //地区",
- " FirstAmount = $4, //首件数量",
- " FirstFee = $5, //首件费用",
- " MoreAmount = $6, //续件数量",
- " MoreFee = $7, //续件费用",
- "});"
- ]
- },"删除某个运费按区域": {
- "prefix": "ym-db-ProductFareAreas-Delete",
- "body": [
- "ProductFareAreas $1 = db.ProductFareAreas.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductFareAreas.Remove($1);",
- "}"
- ]
- },
- "查询商品运费模板列表": {
- "prefix": "ym-db-ProductFareTemp-Find",
- "body": [
- "List<ProductFareTemp> $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductFareTemp $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品运费模板列表,并取值": {
- "prefix": "ym-db-ProductFareTemp-FindWithData",
- "body": [
- "List<ProductFareTemp> $1 = db.ProductFareTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductFareTemp $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string SendAreas = $3.SendAreas; //发货地区",
- " string SendAddress = $3.SendAddress; //发货地址",
- " int SendDate = $3.SendDate; //发货时间",
- " ulong IsFree = $3.IsFree; //是否包邮",
- " int MeterMode = $3.MeterMode; //计价方式",
- " int TransportMode = $3.TransportMode; //运送方式",
- " int MerchantId = $3.MerchantId; //商家Id",
- " decimal FirstAmount = $3.FirstAmount; //首件数量",
- " decimal FirstFee = $3.FirstFee; //首件费用",
- " decimal MoreAmount = $3.MoreAmount; //续件数量",
- " decimal MoreFee = $3.MoreFee; //续件费用",
- "}"
- ]
- },
- "查询商品运费模板": {
- "prefix": "ym-db-ProductFareTemp-Exist",
- "body": [
- "bool $1 = db.ProductFareTemp.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商品运费模板,并取值": {
- "prefix": "ym-db-ProductFareTemp-FindByPrimaryKey",
- "body": [
- "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string SendAreas = $1.SendAreas; //发货地区",
- " string SendAddress = $1.SendAddress; //发货地址",
- " int SendDate = $1.SendDate; //发货时间",
- " ulong IsFree = $1.IsFree; //是否包邮",
- " int MeterMode = $1.MeterMode; //计价方式",
- " int TransportMode = $1.TransportMode; //运送方式",
- " int MerchantId = $1.MerchantId; //商家Id",
- " decimal FirstAmount = $1.FirstAmount; //首件数量",
- " decimal FirstFee = $1.FirstFee; //首件费用",
- " decimal MoreAmount = $1.MoreAmount; //续件数量",
- " decimal MoreFee = $1.MoreFee; //续件费用",
- "}"
- ]
- },
- "查询某个商品运费模板,并赋值": {
- "prefix": "ym-db-ProductFareTemp-Update",
- "body": [
- "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.SendAreas = $3; //发货地区",
- " $1.SendAddress = $4; //发货地址",
- " $1.SendDate = $5; //发货时间",
- " $1.IsFree = $6; //是否包邮",
- " $1.MeterMode = $7; //计价方式",
- " $1.TransportMode = $8; //运送方式",
- " $1.MerchantId = $9; //商家Id",
- " $1.FirstAmount = $10; //首件数量",
- " $1.FirstFee = $11; //首件费用",
- " $1.MoreAmount = $12; //续件数量",
- " $1.MoreFee = $13; //续件费用",
- "}"
- ]
- },
- "获取商品运费模板数量": {
- "prefix": "ym-db-ProductFareTemp-FindAndCount",
- "body": [
- "int $1 = db.ProductFareTemp.Count(m => $2);",
- ]
- },
- "添加商品运费模板": {
- "prefix": "ym-db-ProductFareTemp-Create",
- "body": [
- "db.ProductFareTemp.Add(new ProductFareTemp()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " SendAreas = $2, //发货地区",
- " SendAddress = $3, //发货地址",
- " SendDate = $4, //发货时间",
- " IsFree = $5, //是否包邮",
- " MeterMode = $6, //计价方式",
- " TransportMode = $7, //运送方式",
- " MerchantId = $8, //商家Id",
- " FirstAmount = $9, //首件数量",
- " FirstFee = $10, //首件费用",
- " MoreAmount = $11, //续件数量",
- " MoreFee = $12, //续件费用",
- "});"
- ]
- },"删除某个商品运费模板": {
- "prefix": "ym-db-ProductFareTemp-Delete",
- "body": [
- "ProductFareTemp $1 = db.ProductFareTemp.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductFareTemp.Remove($1);",
- "}"
- ]
- },
- "查询商品关键词库列表": {
- "prefix": "ym-db-ProductKeys-Find",
- "body": [
- "List<ProductKeys> $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductKeys $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品关键词库列表,并取值": {
- "prefix": "ym-db-ProductKeys-FindWithData",
- "body": [
- "List<ProductKeys> $1 = db.ProductKeys.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductKeys $3 in $1)",
- "{",
- " string Name = $3.Name; //关键词",
- " string ProductIds = $3.ProductIds; //商品Id集合",
- " string ColIds = $3.ColIds; //分类Id集合",
- "}"
- ]
- },
- "查询商品关键词库": {
- "prefix": "ym-db-ProductKeys-Exist",
- "body": [
- "bool $1 = db.ProductKeys.Any(m => m.Name == $2);",
- ]
- },
- "查询某个商品关键词库,并取值": {
- "prefix": "ym-db-ProductKeys-FindByPrimaryKey",
- "body": [
- "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //关键词",
- " string ProductIds = $1.ProductIds; //商品Id集合",
- " string ColIds = $1.ColIds; //分类Id集合",
- "}"
- ]
- },
- "查询某个商品关键词库,并赋值": {
- "prefix": "ym-db-ProductKeys-Update",
- "body": [
- "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //关键词",
- " $1.ProductIds = $3; //商品Id集合",
- " $1.ColIds = $4; //分类Id集合",
- "}"
- ]
- },
- "获取商品关键词库数量": {
- "prefix": "ym-db-ProductKeys-FindAndCount",
- "body": [
- "int $1 = db.ProductKeys.Count(m => $2);",
- ]
- },
- "添加商品关键词库": {
- "prefix": "ym-db-ProductKeys-Create",
- "body": [
- "db.ProductKeys.Add(new ProductKeys()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //关键词",
- " ProductIds = $2, //商品Id集合",
- " ColIds = $3, //分类Id集合",
- "});"
- ]
- },"删除某个商品关键词库": {
- "prefix": "ym-db-ProductKeys-Delete",
- "body": [
- "ProductKeys $1 = db.ProductKeys.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductKeys.Remove($1);",
- "}"
- ]
- },
- "查询商品规格列表": {
- "prefix": "ym-db-ProductNorm-Find",
- "body": [
- "List<ProductNorm> $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductNorm $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品规格列表,并取值": {
- "prefix": "ym-db-ProductNorm-FindWithData",
- "body": [
- "List<ProductNorm> $1 = db.ProductNorm.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductNorm $3 in $1)",
- "{",
- " string ColName = $3.ColName; //名称",
- " string IdList = $3.IdList; //Id集合",
- " decimal Price = $3.Price; //价格",
- " decimal Integral = $3.Integral; //抵扣积分",
- " decimal UserPrice = $3.UserPrice; //创客价",
- " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分",
- " int ProductId = $3.ProductId; //商品Id",
- " int Stock = $3.Stock; //库存",
- " int BuyCount = $3.BuyCount; //已购买数",
- " decimal CostPrice = $3.CostPrice; //成本价",
- " string Code = $3.Code; //编码",
- " int MerchantId = $3.MerchantId; //商家Id",
- " int LimitCount = $3.LimitCount; //限购数量",
- "}"
- ]
- },
- "查询商品规格": {
- "prefix": "ym-db-ProductNorm-Exist",
- "body": [
- "bool $1 = db.ProductNorm.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商品规格,并取值": {
- "prefix": "ym-db-ProductNorm-FindByPrimaryKey",
- "body": [
- "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ColName = $1.ColName; //名称",
- " string IdList = $1.IdList; //Id集合",
- " decimal Price = $1.Price; //价格",
- " decimal Integral = $1.Integral; //抵扣积分",
- " decimal UserPrice = $1.UserPrice; //创客价",
- " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分",
- " int ProductId = $1.ProductId; //商品Id",
- " int Stock = $1.Stock; //库存",
- " int BuyCount = $1.BuyCount; //已购买数",
- " decimal CostPrice = $1.CostPrice; //成本价",
- " string Code = $1.Code; //编码",
- " int MerchantId = $1.MerchantId; //商家Id",
- " int LimitCount = $1.LimitCount; //限购数量",
- "}"
- ]
- },
- "查询某个商品规格,并赋值": {
- "prefix": "ym-db-ProductNorm-Update",
- "body": [
- "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ColName = $2; //名称",
- " $1.IdList = $3; //Id集合",
- " $1.Price = $4; //价格",
- " $1.Integral = $5; //抵扣积分",
- " $1.UserPrice = $6; //创客价",
- " $1.UserIntegral = $7; //创客抵扣积分",
- " $1.ProductId = $8; //商品Id",
- " $1.Stock = $9; //库存",
- " $1.BuyCount = $10; //已购买数",
- " $1.CostPrice = $11; //成本价",
- " $1.Code = $12; //编码",
- " $1.MerchantId = $13; //商家Id",
- " $1.LimitCount = $14; //限购数量",
- "}"
- ]
- },
- "获取商品规格数量": {
- "prefix": "ym-db-ProductNorm-FindAndCount",
- "body": [
- "int $1 = db.ProductNorm.Count(m => $2);",
- ]
- },
- "添加商品规格": {
- "prefix": "ym-db-ProductNorm-Create",
- "body": [
- "db.ProductNorm.Add(new ProductNorm()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ColName = $1, //名称",
- " IdList = $2, //Id集合",
- " Price = $3, //价格",
- " Integral = $4, //抵扣积分",
- " UserPrice = $5, //创客价",
- " UserIntegral = $6, //创客抵扣积分",
- " ProductId = $7, //商品Id",
- " Stock = $8, //库存",
- " BuyCount = $9, //已购买数",
- " CostPrice = $10, //成本价",
- " Code = $11, //编码",
- " MerchantId = $12, //商家Id",
- " LimitCount = $13, //限购数量",
- "});"
- ]
- },"删除某个商品规格": {
- "prefix": "ym-db-ProductNorm-Delete",
- "body": [
- "ProductNorm $1 = db.ProductNorm.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductNorm.Remove($1);",
- "}"
- ]
- },
- "查询商品规格项目列表": {
- "prefix": "ym-db-ProductNormItem-Find",
- "body": [
- "List<ProductNormItem> $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductNormItem $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品规格项目列表,并取值": {
- "prefix": "ym-db-ProductNormItem-FindWithData",
- "body": [
- "List<ProductNormItem> $1 = db.ProductNormItem.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductNormItem $3 in $1)",
- "{",
- " string ColName = $3.ColName; //名称",
- " int ParentId = $3.ParentId; //父级Id",
- " int MerchantId = $3.MerchantId; //商家Id",
- " int ProductId = $3.ProductId; //商品Id",
- "}"
- ]
- },
- "查询商品规格项目": {
- "prefix": "ym-db-ProductNormItem-Exist",
- "body": [
- "bool $1 = db.ProductNormItem.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商品规格项目,并取值": {
- "prefix": "ym-db-ProductNormItem-FindByPrimaryKey",
- "body": [
- "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ColName = $1.ColName; //名称",
- " int ParentId = $1.ParentId; //父级Id",
- " int MerchantId = $1.MerchantId; //商家Id",
- " int ProductId = $1.ProductId; //商品Id",
- "}"
- ]
- },
- "查询某个商品规格项目,并赋值": {
- "prefix": "ym-db-ProductNormItem-Update",
- "body": [
- "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ColName = $2; //名称",
- " $1.ParentId = $3; //父级Id",
- " $1.MerchantId = $4; //商家Id",
- " $1.ProductId = $5; //商品Id",
- "}"
- ]
- },
- "获取商品规格项目数量": {
- "prefix": "ym-db-ProductNormItem-FindAndCount",
- "body": [
- "int $1 = db.ProductNormItem.Count(m => $2);",
- ]
- },
- "添加商品规格项目": {
- "prefix": "ym-db-ProductNormItem-Create",
- "body": [
- "db.ProductNormItem.Add(new ProductNormItem()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ColName = $1, //名称",
- " ParentId = $2, //父级Id",
- " MerchantId = $3, //商家Id",
- " ProductId = $4, //商品Id",
- "});"
- ]
- },"删除某个商品规格项目": {
- "prefix": "ym-db-ProductNormItem-Delete",
- "body": [
- "ProductNormItem $1 = db.ProductNormItem.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductNormItem.Remove($1);",
- "}"
- ]
- },
- "查询商品规格模板列表": {
- "prefix": "ym-db-ProductNormTemp-Find",
- "body": [
- "List<ProductNormTemp> $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductNormTemp $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品规格模板列表,并取值": {
- "prefix": "ym-db-ProductNormTemp-FindWithData",
- "body": [
- "List<ProductNormTemp> $1 = db.ProductNormTemp.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProductNormTemp $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " int MerchantId = $3.MerchantId; //商家Id",
- " string TempJsonData = $3.TempJsonData; //模板内容",
- "}"
- ]
- },
- "查询商品规格模板": {
- "prefix": "ym-db-ProductNormTemp-Exist",
- "body": [
- "bool $1 = db.ProductNormTemp.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商品规格模板,并取值": {
- "prefix": "ym-db-ProductNormTemp-FindByPrimaryKey",
- "body": [
- "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " int MerchantId = $1.MerchantId; //商家Id",
- " string TempJsonData = $1.TempJsonData; //模板内容",
- "}"
- ]
- },
- "查询某个商品规格模板,并赋值": {
- "prefix": "ym-db-ProductNormTemp-Update",
- "body": [
- "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.MerchantId = $3; //商家Id",
- " $1.TempJsonData = $4; //模板内容",
- "}"
- ]
- },
- "获取商品规格模板数量": {
- "prefix": "ym-db-ProductNormTemp-FindAndCount",
- "body": [
- "int $1 = db.ProductNormTemp.Count(m => $2);",
- ]
- },
- "添加商品规格模板": {
- "prefix": "ym-db-ProductNormTemp-Create",
- "body": [
- "db.ProductNormTemp.Add(new ProductNormTemp()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " MerchantId = $2, //商家Id",
- " TempJsonData = $3, //模板内容",
- "});"
- ]
- },"删除某个商品规格模板": {
- "prefix": "ym-db-ProductNormTemp-Delete",
- "body": [
- "ProductNormTemp $1 = db.ProductNormTemp.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProductNormTemp.Remove($1);",
- "}"
- ]
- },
- "查询商品信息列表": {
- "prefix": "ym-db-Products-Find",
- "body": [
- "List<Products> $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Products $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商品信息列表,并取值": {
- "prefix": "ym-db-Products-FindWithData",
- "body": [
- "List<Products> $1 = db.Products.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Products $3 in $1)",
- "{",
- " string ProductName = $3.ProductName; //商品名称",
- " string Details = $3.Details; //简介",
- " string Contents = $3.Contents; //内容",
- " int Stock = $3.Stock; //库存",
- " int BuyCount = $3.BuyCount; //已购买数",
- " string ListPicPath = $3.ListPicPath; //列表图片",
- " string DetailPicPath = $3.DetailPicPath; //图集",
- " string ColId = $3.ColId; //分类",
- " int CommentCount = $3.CommentCount; //评价数",
- " decimal GoodPercent = $3.GoodPercent; //好评率",
- " ulong IsRecommend = $3.IsRecommend; //推荐",
- " int MerchantId = $3.MerchantId; //商家Id",
- " DateTime StartDate = $3.StartDate; //开始时间",
- " DateTime EndDate = $3.EndDate; //结束时间",
- " ulong IsLimit = $3.IsLimit; //限时抢购",
- " decimal SourcePrice = $3.SourcePrice; //原价",
- " decimal Price = $3.Price; //价格",
- " decimal Integral = $3.Integral; //抵扣积分",
- " decimal MemberPrice = $3.MemberPrice; //创客价",
- " decimal UserIntegral = $3.UserIntegral; //创客抵扣积分",
- " DateTime PublishDate = $3.PublishDate; //上架时间",
- " decimal CostPrice = $3.CostPrice; //成本价",
- " int FareTemplateId = $3.FareTemplateId; //运费模板Id",
- " int LimitCount = $3.LimitCount; //限购数量",
- " string KeyWord = $3.KeyWord; //关键词",
- " int MerchantClassId = $3.MerchantClassId; //商家分类",
- " string NormIds = $3.NormIds; //商品规格Id",
- " string ShareDetail = $3.ShareDetail; //分享描述",
- " string LinkUrl = $3.LinkUrl; //外部链接",
- " string NormJson = $3.NormJson; //规格json",
- " string MerchantColId = $3.MerchantColId; //商家商品分类",
- " int MonthSale = $3.MonthSale; //月销量",
- " ulong IsRecommend2 = $3.IsRecommend2; //推荐2",
- " ulong IsRecommend3 = $3.IsRecommend3; //推荐3",
- " string Title = $3.Title; //宣传标语",
- " string Title2 = $3.Title2; //宣传标语2",
- " string ProductCode = $3.ProductCode; //商品编号",
- "}"
- ]
- },
- "查询商品信息": {
- "prefix": "ym-db-Products-Exist",
- "body": [
- "bool $1 = db.Products.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商品信息,并取值": {
- "prefix": "ym-db-Products-FindByPrimaryKey",
- "body": [
- "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ProductName = $1.ProductName; //商品名称",
- " string Details = $1.Details; //简介",
- " string Contents = $1.Contents; //内容",
- " int Stock = $1.Stock; //库存",
- " int BuyCount = $1.BuyCount; //已购买数",
- " string ListPicPath = $1.ListPicPath; //列表图片",
- " string DetailPicPath = $1.DetailPicPath; //图集",
- " string ColId = $1.ColId; //分类",
- " int CommentCount = $1.CommentCount; //评价数",
- " decimal GoodPercent = $1.GoodPercent; //好评率",
- " ulong IsRecommend = $1.IsRecommend; //推荐",
- " int MerchantId = $1.MerchantId; //商家Id",
- " DateTime StartDate = $1.StartDate; //开始时间",
- " DateTime EndDate = $1.EndDate; //结束时间",
- " ulong IsLimit = $1.IsLimit; //限时抢购",
- " decimal SourcePrice = $1.SourcePrice; //原价",
- " decimal Price = $1.Price; //价格",
- " decimal Integral = $1.Integral; //抵扣积分",
- " decimal MemberPrice = $1.MemberPrice; //创客价",
- " decimal UserIntegral = $1.UserIntegral; //创客抵扣积分",
- " DateTime PublishDate = $1.PublishDate; //上架时间",
- " decimal CostPrice = $1.CostPrice; //成本价",
- " int FareTemplateId = $1.FareTemplateId; //运费模板Id",
- " int LimitCount = $1.LimitCount; //限购数量",
- " string KeyWord = $1.KeyWord; //关键词",
- " int MerchantClassId = $1.MerchantClassId; //商家分类",
- " string NormIds = $1.NormIds; //商品规格Id",
- " string ShareDetail = $1.ShareDetail; //分享描述",
- " string LinkUrl = $1.LinkUrl; //外部链接",
- " string NormJson = $1.NormJson; //规格json",
- " string MerchantColId = $1.MerchantColId; //商家商品分类",
- " int MonthSale = $1.MonthSale; //月销量",
- " ulong IsRecommend2 = $1.IsRecommend2; //推荐2",
- " ulong IsRecommend3 = $1.IsRecommend3; //推荐3",
- " string Title = $1.Title; //宣传标语",
- " string Title2 = $1.Title2; //宣传标语2",
- " string ProductCode = $1.ProductCode; //商品编号",
- "}"
- ]
- },
- "查询某个商品信息,并赋值": {
- "prefix": "ym-db-Products-Update",
- "body": [
- "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ProductName = $2; //商品名称",
- " $1.Details = $3; //简介",
- " $1.Contents = $4; //内容",
- " $1.Stock = $5; //库存",
- " $1.BuyCount = $6; //已购买数",
- " $1.ListPicPath = $7; //列表图片",
- " $1.DetailPicPath = $8; //图集",
- " $1.ColId = $9; //分类",
- " $1.CommentCount = $10; //评价数",
- " $1.GoodPercent = $11; //好评率",
- " $1.IsRecommend = $12; //推荐",
- " $1.MerchantId = $13; //商家Id",
- " $1.StartDate = $14; //开始时间",
- " $1.EndDate = $15; //结束时间",
- " $1.IsLimit = $16; //限时抢购",
- " $1.SourcePrice = $17; //原价",
- " $1.Price = $18; //价格",
- " $1.Integral = $19; //抵扣积分",
- " $1.MemberPrice = $20; //创客价",
- " $1.UserIntegral = $21; //创客抵扣积分",
- " $1.PublishDate = $22; //上架时间",
- " $1.CostPrice = $23; //成本价",
- " $1.FareTemplateId = $24; //运费模板Id",
- " $1.LimitCount = $25; //限购数量",
- " $1.KeyWord = $26; //关键词",
- " $1.MerchantClassId = $27; //商家分类",
- " $1.NormIds = $28; //商品规格Id",
- " $1.ShareDetail = $29; //分享描述",
- " $1.LinkUrl = $30; //外部链接",
- " $1.NormJson = $31; //规格json",
- " $1.MerchantColId = $32; //商家商品分类",
- " $1.MonthSale = $33; //月销量",
- " $1.IsRecommend2 = $34; //推荐2",
- " $1.IsRecommend3 = $35; //推荐3",
- " $1.Title = $36; //宣传标语",
- " $1.Title2 = $37; //宣传标语2",
- " $1.ProductCode = $38; //商品编号",
- "}"
- ]
- },
- "获取商品信息数量": {
- "prefix": "ym-db-Products-FindAndCount",
- "body": [
- "int $1 = db.Products.Count(m => $2);",
- ]
- },
- "添加商品信息": {
- "prefix": "ym-db-Products-Create",
- "body": [
- "db.Products.Add(new Products()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ProductName = $1, //商品名称",
- " Details = $2, //简介",
- " Contents = $3, //内容",
- " Stock = $4, //库存",
- " BuyCount = $5, //已购买数",
- " ListPicPath = $6, //列表图片",
- " DetailPicPath = $7, //图集",
- " ColId = $8, //分类",
- " CommentCount = $9, //评价数",
- " GoodPercent = $10, //好评率",
- " IsRecommend = $11, //推荐",
- " MerchantId = $12, //商家Id",
- " StartDate = $13, //开始时间",
- " EndDate = $14, //结束时间",
- " IsLimit = $15, //限时抢购",
- " SourcePrice = $16, //原价",
- " Price = $17, //价格",
- " Integral = $18, //抵扣积分",
- " MemberPrice = $19, //创客价",
- " UserIntegral = $20, //创客抵扣积分",
- " PublishDate = $21, //上架时间",
- " CostPrice = $22, //成本价",
- " FareTemplateId = $23, //运费模板Id",
- " LimitCount = $24, //限购数量",
- " KeyWord = $25, //关键词",
- " MerchantClassId = $26, //商家分类",
- " NormIds = $27, //商品规格Id",
- " ShareDetail = $28, //分享描述",
- " LinkUrl = $29, //外部链接",
- " NormJson = $30, //规格json",
- " MerchantColId = $31, //商家商品分类",
- " MonthSale = $32, //月销量",
- " IsRecommend2 = $33, //推荐2",
- " IsRecommend3 = $34, //推荐3",
- " Title = $35, //宣传标语",
- " Title2 = $36, //宣传标语2",
- " ProductCode = $37, //商品编号",
- "});"
- ]
- },"删除某个商品信息": {
- "prefix": "ym-db-Products-Delete",
- "body": [
- "Products $1 = db.Products.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Products.Remove($1);",
- "}"
- ]
- },
- "查询激活奖励设置列表": {
- "prefix": "ym-db-ProfitObjectActivations-Find",
- "body": [
- "List<ProfitObjectActivations> $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectActivations $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询激活奖励设置列表,并取值": {
- "prefix": "ym-db-ProfitObjectActivations-FindWithData",
- "body": [
- "List<ProfitObjectActivations> $1 = db.ProfitObjectActivations.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectActivations $3 in $1)",
- "{",
- " int LimitDateKind = $3.LimitDateKind; //限制时间类型",
- " int LimitDateVal = $3.LimitDateVal; //限制时间值",
- " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制",
- " decimal ExpiredNumber = $3.ExpiredNumber; //过期收益值",
- " int ObjectId = $3.ObjectId; //对象Id",
- "}"
- ]
- },
- "查询激活奖励设置": {
- "prefix": "ym-db-ProfitObjectActivations-Exist",
- "body": [
- "bool $1 = db.ProfitObjectActivations.Any(m => m.Id == $2);",
- ]
- },
- "查询某个激活奖励设置,并取值": {
- "prefix": "ym-db-ProfitObjectActivations-FindByPrimaryKey",
- "body": [
- "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int LimitDateKind = $1.LimitDateKind; //限制时间类型",
- " int LimitDateVal = $1.LimitDateVal; //限制时间值",
- " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制",
- " decimal ExpiredNumber = $1.ExpiredNumber; //过期收益值",
- " int ObjectId = $1.ObjectId; //对象Id",
- "}"
- ]
- },
- "查询某个激活奖励设置,并赋值": {
- "prefix": "ym-db-ProfitObjectActivations-Update",
- "body": [
- "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.LimitDateKind = $2; //限制时间类型",
- " $1.LimitDateVal = $3; //限制时间值",
- " $1.LimitCustomerDate = $4; //自定时间限制",
- " $1.ExpiredNumber = $5; //过期收益值",
- " $1.ObjectId = $6; //对象Id",
- "}"
- ]
- },
- "获取激活奖励设置数量": {
- "prefix": "ym-db-ProfitObjectActivations-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectActivations.Count(m => $2);",
- ]
- },
- "添加激活奖励设置": {
- "prefix": "ym-db-ProfitObjectActivations-Create",
- "body": [
- "db.ProfitObjectActivations.Add(new ProfitObjectActivations()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " LimitDateKind = $1, //限制时间类型",
- " LimitDateVal = $2, //限制时间值",
- " LimitCustomerDate = $3, //自定时间限制",
- " ExpiredNumber = $4, //过期收益值",
- " ObjectId = $5, //对象Id",
- "});"
- ]
- },"删除某个激活奖励设置": {
- "prefix": "ym-db-ProfitObjectActivations-Delete",
- "body": [
- "ProfitObjectActivations $1 = db.ProfitObjectActivations.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectActivations.Remove($1);",
- "}"
- ]
- },
- "查询继续分润层级列表": {
- "prefix": "ym-db-ProfitObjectContinueFloors-Find",
- "body": [
- "List<ProfitObjectContinueFloors> $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectContinueFloors $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询继续分润层级列表,并取值": {
- "prefix": "ym-db-ProfitObjectContinueFloors-FindWithData",
- "body": [
- "List<ProfitObjectContinueFloors> $1 = db.ProfitObjectContinueFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectContinueFloors $3 in $1)",
- "{",
- " int FloorNumber = $3.FloorNumber; //层级",
- " decimal Percents = $3.Percents; //分润比例",
- " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
- " int ObjectId = $3.ObjectId; //对象Id",
- "}"
- ]
- },
- "查询继续分润层级": {
- "prefix": "ym-db-ProfitObjectContinueFloors-Exist",
- "body": [
- "bool $1 = db.ProfitObjectContinueFloors.Any(m => m.Id == $2);",
- ]
- },
- "查询某个继续分润层级,并取值": {
- "prefix": "ym-db-ProfitObjectContinueFloors-FindByPrimaryKey",
- "body": [
- "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int FloorNumber = $1.FloorNumber; //层级",
- " decimal Percents = $1.Percents; //分润比例",
- " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
- " int ObjectId = $1.ObjectId; //对象Id",
- "}"
- ]
- },
- "查询某个继续分润层级,并赋值": {
- "prefix": "ym-db-ProfitObjectContinueFloors-Update",
- "body": [
- "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.FloorNumber = $2; //层级",
- " $1.Percents = $3; //分润比例",
- " $1.AddProfitVal = $4; //附加分润值",
- " $1.ObjectId = $5; //对象Id",
- "}"
- ]
- },
- "获取继续分润层级数量": {
- "prefix": "ym-db-ProfitObjectContinueFloors-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectContinueFloors.Count(m => $2);",
- ]
- },
- "添加继续分润层级": {
- "prefix": "ym-db-ProfitObjectContinueFloors-Create",
- "body": [
- "db.ProfitObjectContinueFloors.Add(new ProfitObjectContinueFloors()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " FloorNumber = $1, //层级",
- " Percents = $2, //分润比例",
- " AddProfitVal = $3, //附加分润值",
- " ObjectId = $4, //对象Id",
- "});"
- ]
- },"删除某个继续分润层级": {
- "prefix": "ym-db-ProfitObjectContinueFloors-Delete",
- "body": [
- "ProfitObjectContinueFloors $1 = db.ProfitObjectContinueFloors.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectContinueFloors.Remove($1);",
- "}"
- ]
- },
- "查询分润对象层级列表": {
- "prefix": "ym-db-ProfitObjectFloors-Find",
- "body": [
- "List<ProfitObjectFloors> $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectFloors $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象层级列表,并取值": {
- "prefix": "ym-db-ProfitObjectFloors-FindWithData",
- "body": [
- "List<ProfitObjectFloors> $1 = db.ProfitObjectFloors.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectFloors $3 in $1)",
- "{",
- " int FloorNumber = $3.FloorNumber; //层级",
- " decimal Percents = $3.Percents; //分润比例",
- " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
- " ulong FloorDiff = $3.FloorDiff; //级差",
- " int ObjectId = $3.ObjectId; //对象Id",
- "}"
- ]
- },
- "查询分润对象层级": {
- "prefix": "ym-db-ProfitObjectFloors-Exist",
- "body": [
- "bool $1 = db.ProfitObjectFloors.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象层级,并取值": {
- "prefix": "ym-db-ProfitObjectFloors-FindByPrimaryKey",
- "body": [
- "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int FloorNumber = $1.FloorNumber; //层级",
- " decimal Percents = $1.Percents; //分润比例",
- " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
- " ulong FloorDiff = $1.FloorDiff; //级差",
- " int ObjectId = $1.ObjectId; //对象Id",
- "}"
- ]
- },
- "查询某个分润对象层级,并赋值": {
- "prefix": "ym-db-ProfitObjectFloors-Update",
- "body": [
- "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.FloorNumber = $2; //层级",
- " $1.Percents = $3; //分润比例",
- " $1.AddProfitVal = $4; //附加分润值",
- " $1.FloorDiff = $5; //级差",
- " $1.ObjectId = $6; //对象Id",
- "}"
- ]
- },
- "获取分润对象层级数量": {
- "prefix": "ym-db-ProfitObjectFloors-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectFloors.Count(m => $2);",
- ]
- },
- "添加分润对象层级": {
- "prefix": "ym-db-ProfitObjectFloors-Create",
- "body": [
- "db.ProfitObjectFloors.Add(new ProfitObjectFloors()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " FloorNumber = $1, //层级",
- " Percents = $2, //分润比例",
- " AddProfitVal = $3, //附加分润值",
- " FloorDiff = $4, //级差",
- " ObjectId = $5, //对象Id",
- "});"
- ]
- },"删除某个分润对象层级": {
- "prefix": "ym-db-ProfitObjectFloors-Delete",
- "body": [
- "ProfitObjectFloors $1 = db.ProfitObjectFloors.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectFloors.Remove($1);",
- "}"
- ]
- },
- "查询分润对象等级分类列表": {
- "prefix": "ym-db-ProfitObjectLevelKinds-Find",
- "body": [
- "List<ProfitObjectLevelKinds> $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectLevelKinds $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象等级分类列表,并取值": {
- "prefix": "ym-db-ProfitObjectLevelKinds-FindWithData",
- "body": [
- "List<ProfitObjectLevelKinds> $1 = db.ProfitObjectLevelKinds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectLevelKinds $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " int ObjectId = $3.ObjectId; //对象id",
- "}"
- ]
- },
- "查询分润对象等级分类": {
- "prefix": "ym-db-ProfitObjectLevelKinds-Exist",
- "body": [
- "bool $1 = db.ProfitObjectLevelKinds.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象等级分类,并取值": {
- "prefix": "ym-db-ProfitObjectLevelKinds-FindByPrimaryKey",
- "body": [
- "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " int ObjectId = $1.ObjectId; //对象id",
- "}"
- ]
- },
- "查询某个分润对象等级分类,并赋值": {
- "prefix": "ym-db-ProfitObjectLevelKinds-Update",
- "body": [
- "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.ObjectId = $3; //对象id",
- "}"
- ]
- },
- "获取分润对象等级分类数量": {
- "prefix": "ym-db-ProfitObjectLevelKinds-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectLevelKinds.Count(m => $2);",
- ]
- },
- "添加分润对象等级分类": {
- "prefix": "ym-db-ProfitObjectLevelKinds-Create",
- "body": [
- "db.ProfitObjectLevelKinds.Add(new ProfitObjectLevelKinds()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " ObjectId = $2, //对象id",
- "});"
- ]
- },"删除某个分润对象等级分类": {
- "prefix": "ym-db-ProfitObjectLevelKinds-Delete",
- "body": [
- "ProfitObjectLevelKinds $1 = db.ProfitObjectLevelKinds.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectLevelKinds.Remove($1);",
- "}"
- ]
- },
- "查询分润对象等级列表": {
- "prefix": "ym-db-ProfitObjectLevels-Find",
- "body": [
- "List<ProfitObjectLevels> $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectLevels $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象等级列表,并取值": {
- "prefix": "ym-db-ProfitObjectLevels-FindWithData",
- "body": [
- "List<ProfitObjectLevels> $1 = db.ProfitObjectLevels.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectLevels $3 in $1)",
- "{",
- " int LevelNumber = $3.LevelNumber; //级别",
- " string Name = $3.Name; //名称",
- " decimal Percents = $3.Percents; //分润比例",
- " decimal AddProfitVal = $3.AddProfitVal; //附加分润值",
- " ulong LevelDiff = $3.LevelDiff; //级差",
- " int KindId = $3.KindId; //分类Id",
- " decimal DebitPercents = $3.DebitPercents; //借记卡分润比例",
- " decimal DebitAddProfitVal = $3.DebitAddProfitVal; //借记卡附加分润值",
- "}"
- ]
- },
- "查询分润对象等级": {
- "prefix": "ym-db-ProfitObjectLevels-Exist",
- "body": [
- "bool $1 = db.ProfitObjectLevels.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象等级,并取值": {
- "prefix": "ym-db-ProfitObjectLevels-FindByPrimaryKey",
- "body": [
- "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int LevelNumber = $1.LevelNumber; //级别",
- " string Name = $1.Name; //名称",
- " decimal Percents = $1.Percents; //分润比例",
- " decimal AddProfitVal = $1.AddProfitVal; //附加分润值",
- " ulong LevelDiff = $1.LevelDiff; //级差",
- " int KindId = $1.KindId; //分类Id",
- " decimal DebitPercents = $1.DebitPercents; //借记卡分润比例",
- " decimal DebitAddProfitVal = $1.DebitAddProfitVal; //借记卡附加分润值",
- "}"
- ]
- },
- "查询某个分润对象等级,并赋值": {
- "prefix": "ym-db-ProfitObjectLevels-Update",
- "body": [
- "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.LevelNumber = $2; //级别",
- " $1.Name = $3; //名称",
- " $1.Percents = $4; //分润比例",
- " $1.AddProfitVal = $5; //附加分润值",
- " $1.LevelDiff = $6; //级差",
- " $1.KindId = $7; //分类Id",
- " $1.DebitPercents = $8; //借记卡分润比例",
- " $1.DebitAddProfitVal = $9; //借记卡附加分润值",
- "}"
- ]
- },
- "获取分润对象等级数量": {
- "prefix": "ym-db-ProfitObjectLevels-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectLevels.Count(m => $2);",
- ]
- },
- "添加分润对象等级": {
- "prefix": "ym-db-ProfitObjectLevels-Create",
- "body": [
- "db.ProfitObjectLevels.Add(new ProfitObjectLevels()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " LevelNumber = $1, //级别",
- " Name = $2, //名称",
- " Percents = $3, //分润比例",
- " AddProfitVal = $4, //附加分润值",
- " LevelDiff = $5, //级差",
- " KindId = $6, //分类Id",
- " DebitPercents = $7, //借记卡分润比例",
- " DebitAddProfitVal = $8, //借记卡附加分润值",
- "});"
- ]
- },"删除某个分润对象等级": {
- "prefix": "ym-db-ProfitObjectLevels-Delete",
- "body": [
- "ProfitObjectLevels $1 = db.ProfitObjectLevels.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectLevels.Remove($1);",
- "}"
- ]
- },
- "查询分润对象列表": {
- "prefix": "ym-db-ProfitObjects-Find",
- "body": [
- "List<ProfitObjects> $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjects $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象列表,并取值": {
- "prefix": "ym-db-ProfitObjects-FindWithData",
- "body": [
- "List<ProfitObjects> $1 = db.ProfitObjects.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjects $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " int MaxFloor = $3.MaxFloor; //最大层级",
- " int MaxLevel = $3.MaxLevel; //最大等级",
- " ulong MaxLevelContinue = $3.MaxLevelContinue; //到顶级是否继续",
- " decimal MinProfitVal = $3.MinProfitVal; //最小分润值",
- " DateTime StartDate = $3.StartDate; //开始时间",
- " DateTime EndDate = $3.EndDate; //结束时间",
- "}"
- ]
- },
- "查询分润对象": {
- "prefix": "ym-db-ProfitObjects-Exist",
- "body": [
- "bool $1 = db.ProfitObjects.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象,并取值": {
- "prefix": "ym-db-ProfitObjects-FindByPrimaryKey",
- "body": [
- "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " int MaxFloor = $1.MaxFloor; //最大层级",
- " int MaxLevel = $1.MaxLevel; //最大等级",
- " ulong MaxLevelContinue = $1.MaxLevelContinue; //到顶级是否继续",
- " decimal MinProfitVal = $1.MinProfitVal; //最小分润值",
- " DateTime StartDate = $1.StartDate; //开始时间",
- " DateTime EndDate = $1.EndDate; //结束时间",
- "}"
- ]
- },
- "查询某个分润对象,并赋值": {
- "prefix": "ym-db-ProfitObjects-Update",
- "body": [
- "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.MaxFloor = $3; //最大层级",
- " $1.MaxLevel = $4; //最大等级",
- " $1.MaxLevelContinue = $5; //到顶级是否继续",
- " $1.MinProfitVal = $6; //最小分润值",
- " $1.StartDate = $7; //开始时间",
- " $1.EndDate = $8; //结束时间",
- "}"
- ]
- },
- "获取分润对象数量": {
- "prefix": "ym-db-ProfitObjects-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjects.Count(m => $2);",
- ]
- },
- "添加分润对象": {
- "prefix": "ym-db-ProfitObjects-Create",
- "body": [
- "db.ProfitObjects.Add(new ProfitObjects()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " MaxFloor = $2, //最大层级",
- " MaxLevel = $3, //最大等级",
- " MaxLevelContinue = $4, //到顶级是否继续",
- " MinProfitVal = $5, //最小分润值",
- " StartDate = $6, //开始时间",
- " EndDate = $7, //结束时间",
- "});"
- ]
- },"删除某个分润对象": {
- "prefix": "ym-db-ProfitObjects-Delete",
- "body": [
- "ProfitObjects $1 = db.ProfitObjects.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjects.Remove($1);",
- "}"
- ]
- },
- "查询激活奖励队列列表": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-Find",
- "body": [
- "List<ProfitObjectsActiveCheck> $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActiveCheck $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询激活奖励队列列表,并取值": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-FindWithData",
- "body": [
- "List<ProfitObjectsActiveCheck> $1 = db.ProfitObjectsActiveCheck.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActiveCheck $3 in $1)",
- "{",
- " string CheckData = $3.CheckData; //队列数据",
- "}"
- ]
- },
- "查询激活奖励队列": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-Exist",
- "body": [
- "bool $1 = db.ProfitObjectsActiveCheck.Any(m => m.CheckData == $2);",
- ]
- },
- "查询某个激活奖励队列,并取值": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-FindByPrimaryKey",
- "body": [
- "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
- "if ($1 != null)",
- "{",
- " string CheckData = $1.CheckData; //队列数据",
- "}"
- ]
- },
- "查询某个激活奖励队列,并赋值": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-Update",
- "body": [
- "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
- "if ($1 != null)",
- "{",
- " $1.CheckData = $2; //队列数据",
- "}"
- ]
- },
- "获取激活奖励队列数量": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectsActiveCheck.Count(m => $2);",
- ]
- },
- "添加激活奖励队列": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-Create",
- "body": [
- "db.ProfitObjectsActiveCheck.Add(new ProfitObjectsActiveCheck()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " CheckData = $1, //队列数据",
- "});"
- ]
- },"删除某个激活奖励队列": {
- "prefix": "ym-db-ProfitObjectsActiveCheck-Delete",
- "body": [
- "ProfitObjectsActiveCheck $1 = db.ProfitObjectsActiveCheck.FirstOrDefault(m => m.CheckData == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectsActiveCheck.Remove($1);",
- "}"
- ]
- },
- "查询分润对象活动参数列表": {
- "prefix": "ym-db-ProfitObjectsActiveParams-Find",
- "body": [
- "List<ProfitObjectsActiveParams> $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActiveParams $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象活动参数列表,并取值": {
- "prefix": "ym-db-ProfitObjectsActiveParams-FindWithData",
- "body": [
- "List<ProfitObjectsActiveParams> $1 = db.ProfitObjectsActiveParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActiveParams $3 in $1)",
- "{",
- " int ProfitObjectsActiveId = $3.ProfitObjectsActiveId; //分润对象活动",
- " string Name = $3.Name; //参数名称",
- " string TextValue = $3.TextValue; //参数值",
- " string Remark = $3.Remark; //参数说明",
- "}"
- ]
- },
- "查询分润对象活动参数": {
- "prefix": "ym-db-ProfitObjectsActiveParams-Exist",
- "body": [
- "bool $1 = db.ProfitObjectsActiveParams.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象活动参数,并取值": {
- "prefix": "ym-db-ProfitObjectsActiveParams-FindByPrimaryKey",
- "body": [
- "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int ProfitObjectsActiveId = $1.ProfitObjectsActiveId; //分润对象活动",
- " string Name = $1.Name; //参数名称",
- " string TextValue = $1.TextValue; //参数值",
- " string Remark = $1.Remark; //参数说明",
- "}"
- ]
- },
- "查询某个分润对象活动参数,并赋值": {
- "prefix": "ym-db-ProfitObjectsActiveParams-Update",
- "body": [
- "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ProfitObjectsActiveId = $2; //分润对象活动",
- " $1.Name = $3; //参数名称",
- " $1.TextValue = $4; //参数值",
- " $1.Remark = $5; //参数说明",
- "}"
- ]
- },
- "获取分润对象活动参数数量": {
- "prefix": "ym-db-ProfitObjectsActiveParams-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectsActiveParams.Count(m => $2);",
- ]
- },
- "添加分润对象活动参数": {
- "prefix": "ym-db-ProfitObjectsActiveParams-Create",
- "body": [
- "db.ProfitObjectsActiveParams.Add(new ProfitObjectsActiveParams()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ProfitObjectsActiveId = $1, //分润对象活动",
- " Name = $2, //参数名称",
- " TextValue = $3, //参数值",
- " Remark = $4, //参数说明",
- "});"
- ]
- },"删除某个分润对象活动参数": {
- "prefix": "ym-db-ProfitObjectsActiveParams-Delete",
- "body": [
- "ProfitObjectsActiveParams $1 = db.ProfitObjectsActiveParams.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectsActiveParams.Remove($1);",
- "}"
- ]
- },
- "查询分润对象活动奖列表": {
- "prefix": "ym-db-ProfitObjectsActives-Find",
- "body": [
- "List<ProfitObjectsActives> $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActives $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象活动奖列表,并取值": {
- "prefix": "ym-db-ProfitObjectsActives-FindWithData",
- "body": [
- "List<ProfitObjectsActives> $1 = db.ProfitObjectsActives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActives $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " int LimitDateKind = $3.LimitDateKind; //限制时间类型",
- " int LimitDateVal = $3.LimitDateVal; //限制时间值",
- " DateTime LimitCustomerDate = $3.LimitCustomerDate; //自定时间限制",
- " decimal FinishNumber = $3.FinishNumber; //满足条件的数值",
- " decimal ProfitNumber = $3.ProfitNumber; //获得收益值",
- " int ObjectId = $3.ObjectId; //对象Id",
- " DateTime StartDate = $3.StartDate; //活动开始时间",
- " DateTime EndDate = $3.EndDate; //活动结束时间",
- " int MachineCount = $3.MachineCount; //赠机台数",
- "}"
- ]
- },
- "查询分润对象活动奖": {
- "prefix": "ym-db-ProfitObjectsActives-Exist",
- "body": [
- "bool $1 = db.ProfitObjectsActives.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象活动奖,并取值": {
- "prefix": "ym-db-ProfitObjectsActives-FindByPrimaryKey",
- "body": [
- "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " int LimitDateKind = $1.LimitDateKind; //限制时间类型",
- " int LimitDateVal = $1.LimitDateVal; //限制时间值",
- " DateTime LimitCustomerDate = $1.LimitCustomerDate; //自定时间限制",
- " decimal FinishNumber = $1.FinishNumber; //满足条件的数值",
- " decimal ProfitNumber = $1.ProfitNumber; //获得收益值",
- " int ObjectId = $1.ObjectId; //对象Id",
- " DateTime StartDate = $1.StartDate; //活动开始时间",
- " DateTime EndDate = $1.EndDate; //活动结束时间",
- " int MachineCount = $1.MachineCount; //赠机台数",
- "}"
- ]
- },
- "查询某个分润对象活动奖,并赋值": {
- "prefix": "ym-db-ProfitObjectsActives-Update",
- "body": [
- "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.LimitDateKind = $3; //限制时间类型",
- " $1.LimitDateVal = $4; //限制时间值",
- " $1.LimitCustomerDate = $5; //自定时间限制",
- " $1.FinishNumber = $6; //满足条件的数值",
- " $1.ProfitNumber = $7; //获得收益值",
- " $1.ObjectId = $8; //对象Id",
- " $1.StartDate = $9; //活动开始时间",
- " $1.EndDate = $10; //活动结束时间",
- " $1.MachineCount = $11; //赠机台数",
- "}"
- ]
- },
- "获取分润对象活动奖数量": {
- "prefix": "ym-db-ProfitObjectsActives-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectsActives.Count(m => $2);",
- ]
- },
- "添加分润对象活动奖": {
- "prefix": "ym-db-ProfitObjectsActives-Create",
- "body": [
- "db.ProfitObjectsActives.Add(new ProfitObjectsActives()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " LimitDateKind = $2, //限制时间类型",
- " LimitDateVal = $3, //限制时间值",
- " LimitCustomerDate = $4, //自定时间限制",
- " FinishNumber = $5, //满足条件的数值",
- " ProfitNumber = $6, //获得收益值",
- " ObjectId = $7, //对象Id",
- " StartDate = $8, //活动开始时间",
- " EndDate = $9, //活动结束时间",
- " MachineCount = $10, //赠机台数",
- "});"
- ]
- },"删除某个分润对象活动奖": {
- "prefix": "ym-db-ProfitObjectsActives-Delete",
- "body": [
- "ProfitObjectsActives $1 = db.ProfitObjectsActives.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectsActives.Remove($1);",
- "}"
- ]
- },
- "查询活动名称为主键的关联表列表": {
- "prefix": "ym-db-ProfitObjectsActivesForId-Find",
- "body": [
- "List<ProfitObjectsActivesForId> $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActivesForId $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询活动名称为主键的关联表列表,并取值": {
- "prefix": "ym-db-ProfitObjectsActivesForId-FindWithData",
- "body": [
- "List<ProfitObjectsActivesForId> $1 = db.ProfitObjectsActivesForId.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsActivesForId $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " int ActivityId = $3.ActivityId; //活动Id",
- "}"
- ]
- },
- "查询活动名称为主键的关联表": {
- "prefix": "ym-db-ProfitObjectsActivesForId-Exist",
- "body": [
- "bool $1 = db.ProfitObjectsActivesForId.Any(m => m.Name == $2);",
- ]
- },
- "查询某个活动名称为主键的关联表,并取值": {
- "prefix": "ym-db-ProfitObjectsActivesForId-FindByPrimaryKey",
- "body": [
- "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " int ActivityId = $1.ActivityId; //活动Id",
- "}"
- ]
- },
- "查询某个活动名称为主键的关联表,并赋值": {
- "prefix": "ym-db-ProfitObjectsActivesForId-Update",
- "body": [
- "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.ActivityId = $3; //活动Id",
- "}"
- ]
- },
- "获取活动名称为主键的关联表数量": {
- "prefix": "ym-db-ProfitObjectsActivesForId-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectsActivesForId.Count(m => $2);",
- ]
- },
- "添加活动名称为主键的关联表": {
- "prefix": "ym-db-ProfitObjectsActivesForId-Create",
- "body": [
- "db.ProfitObjectsActivesForId.Add(new ProfitObjectsActivesForId()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " ActivityId = $2, //活动Id",
- "});"
- ]
- },"删除某个活动名称为主键的关联表": {
- "prefix": "ym-db-ProfitObjectsActivesForId-Delete",
- "body": [
- "ProfitObjectsActivesForId $1 = db.ProfitObjectsActivesForId.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectsActivesForId.Remove($1);",
- "}"
- ]
- },
- "查询分润奖励记录列表": {
- "prefix": "ym-db-ProfitRewardRecord-Find",
- "body": [
- "List<ProfitRewardRecord> $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitRewardRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润奖励记录列表,并取值": {
- "prefix": "ym-db-ProfitRewardRecord-FindWithData",
- "body": [
- "List<ProfitRewardRecord> $1 = db.ProfitRewardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitRewardRecord $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int MerchantId = $3.MerchantId; //商户",
- " int BrandId = $3.BrandId; //品牌",
- " int ProfitType = $3.ProfitType; //创客分润类型",
- " decimal OtherTradeAmt = $3.OtherTradeAmt; //其他产品交易总金额",
- " decimal OtherCreditTradeAmt = $3.OtherCreditTradeAmt; //其他产品贷记卡交易总金额",
- " decimal OtherDebitNotCapTradeAmt = $3.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额",
- " decimal TradeAmt = $3.TradeAmt; //商户交易总额",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
- " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额",
- " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额",
- " decimal NotHelpCreditTradeAmt = $3.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额",
- " decimal HelpCreditTradeAmt = $3.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额",
- " decimal DebitNonCapTradeAmt = $3.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额",
- " decimal QrDebitNotCapTradeAmt = $3.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额",
- " decimal NonQrDebitNotCapTradeAmt = $3.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额",
- " decimal NotHelpDebitNonCapTradeAmt = $3.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
- " decimal HelpDebitNonCapTradeAmt = $3.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
- " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额",
- " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
- " decimal TradeProfit = $3.TradeProfit; //交易分润",
- " decimal CreditTradeProfit = $3.CreditTradeProfit; //贷记卡分润总金额",
- " decimal QrCreditTradeProfit = $3.QrCreditTradeProfit; //(云闪付)贷记卡交易分润",
- " decimal NonQrCreditTradeProfit = $3.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润",
- " decimal NotHelpCreditTradeProfit = $3.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额",
- " decimal HelpCreditTradeProfit = $3.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额",
- " decimal DebitNonTradeCapProfit = $3.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额",
- " decimal QrDebitNonTradeCapProfit = $3.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额",
- " decimal NonQrDebitNonTradeCapProfit = $3.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额",
- " decimal NotHelpDebitNonTradeCapProfit = $3.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " decimal HelpDebitNonTradeCapProfit = $3.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " decimal DebitTradeCapProfit = $3.DebitTradeCapProfit; //借记卡封顶交易分润总金额",
- " decimal NotHelpCreditProfitRate = $3.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " decimal NotHelpCreditProfitStandardRate = $3.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例",
- " decimal NotHelpCreditAddOrSubRate = $3.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
- " decimal HelpCreditProfitRate = $3.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " decimal HelpCreditProfitStandardRate = $3.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例",
- " decimal HelpCreditAddOrSubRate = $3.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
- " decimal NotHelpDebitProfitRate = $3.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " decimal NotHelpDebitProfitStandardRate = $3.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例",
- " decimal NotHelpDebitAddOrSubRate = $3.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
- " decimal HelpDebitProfitRate = $3.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " decimal HelpDebitProfitStandardRate = $3.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例",
- " decimal HelpDebitAddOrSubRate = $3.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例",
- " decimal DebitCapSingleReward = $3.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额",
- " decimal QrCreditProfitRate = $3.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例",
- " decimal QrCreditProfitStandardRate = $3.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准",
- " decimal QrCreditAddOrSubRate = $3.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减",
- " decimal QrDebitProfitRate = $3.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例",
- " decimal QrDebitProfitStandardRate = $3.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准",
- " decimal QrDebitAddOrSubRate = $3.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减",
- " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
- " string Remark = $3.Remark; //备注",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " string RecordNo = $3.RecordNo; //记录单号",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询分润奖励记录": {
- "prefix": "ym-db-ProfitRewardRecord-Exist",
- "body": [
- "bool $1 = db.ProfitRewardRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润奖励记录,并取值": {
- "prefix": "ym-db-ProfitRewardRecord-FindByPrimaryKey",
- "body": [
- "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int MerchantId = $1.MerchantId; //商户",
- " int BrandId = $1.BrandId; //品牌",
- " int ProfitType = $1.ProfitType; //创客分润类型",
- " decimal OtherTradeAmt = $1.OtherTradeAmt; //其他产品交易总金额",
- " decimal OtherCreditTradeAmt = $1.OtherCreditTradeAmt; //其他产品贷记卡交易总金额",
- " decimal OtherDebitNotCapTradeAmt = $1.OtherDebitNotCapTradeAmt; //其他产品借记卡非封顶交易总金额",
- " decimal TradeAmt = $1.TradeAmt; //商户交易总额",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
- " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //(云闪付)贷记卡交易总金额",
- " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //(非云闪付)贷记卡交易总金额",
- " decimal NotHelpCreditTradeAmt = $1.NotHelpCreditTradeAmt; //(非扶持期)(非云闪付)贷记卡交易总金额",
- " decimal HelpCreditTradeAmt = $1.HelpCreditTradeAmt; //(扶持期)(非云闪付)贷记卡交易总金额",
- " decimal DebitNonCapTradeAmt = $1.DebitNonCapTradeAmt; //商户非封顶借记卡交易总额",
- " decimal QrDebitNotCapTradeAmt = $1.QrDebitNotCapTradeAmt; //(云闪付)商户非封顶借记卡交易总额",
- " decimal NonQrDebitNotCapTradeAmt = $1.NonQrDebitNotCapTradeAmt; //(非云闪付)商户非封顶借记卡交易总额",
- " decimal NotHelpDebitNonCapTradeAmt = $1.NotHelpDebitNonCapTradeAmt; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
- " decimal HelpDebitNonCapTradeAmt = $1.HelpDebitNonCapTradeAmt; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
- " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额",
- " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
- " decimal TradeProfit = $1.TradeProfit; //交易分润",
- " decimal CreditTradeProfit = $1.CreditTradeProfit; //贷记卡分润总金额",
- " decimal QrCreditTradeProfit = $1.QrCreditTradeProfit; //(云闪付)贷记卡交易分润",
- " decimal NonQrCreditTradeProfit = $1.NonQrCreditTradeProfit; //(非云闪付)贷记卡交易分润",
- " decimal NotHelpCreditTradeProfit = $1.NotHelpCreditTradeProfit; //(非扶持期)(非云闪付)贷记卡分润总金额",
- " decimal HelpCreditTradeProfit = $1.HelpCreditTradeProfit; //(扶持期)(非云闪付)贷记卡分润总金额",
- " decimal DebitNonTradeCapProfit = $1.DebitNonTradeCapProfit; //借记卡非封顶交易分润总金额",
- " decimal QrDebitNonTradeCapProfit = $1.QrDebitNonTradeCapProfit; //(云闪付)借记卡非封顶交易分润总金额",
- " decimal NonQrDebitNonTradeCapProfit = $1.NonQrDebitNonTradeCapProfit; //(非云闪付)借记卡非封顶交易分润总金额",
- " decimal NotHelpDebitNonTradeCapProfit = $1.NotHelpDebitNonTradeCapProfit; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " decimal HelpDebitNonTradeCapProfit = $1.HelpDebitNonTradeCapProfit; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " decimal DebitTradeCapProfit = $1.DebitTradeCapProfit; //借记卡封顶交易分润总金额",
- " decimal NotHelpCreditProfitRate = $1.NotHelpCreditProfitRate; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " decimal NotHelpCreditProfitStandardRate = $1.NotHelpCreditProfitStandardRate; //(非扶持期)(非云闪付)贷记卡标准分润比例",
- " decimal NotHelpCreditAddOrSubRate = $1.NotHelpCreditAddOrSubRate; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
- " decimal HelpCreditProfitRate = $1.HelpCreditProfitRate; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " decimal HelpCreditProfitStandardRate = $1.HelpCreditProfitStandardRate; //(扶持期)(非云闪付)贷记卡-标准分润比例",
- " decimal HelpCreditAddOrSubRate = $1.HelpCreditAddOrSubRate; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
- " decimal NotHelpDebitProfitRate = $1.NotHelpDebitProfitRate; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " decimal NotHelpDebitProfitStandardRate = $1.NotHelpDebitProfitStandardRate; //(非扶持期)(非云闪付)借记卡标准分润比例",
- " decimal NotHelpDebitAddOrSubRate = $1.NotHelpDebitAddOrSubRate; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
- " decimal HelpDebitProfitRate = $1.HelpDebitProfitRate; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " decimal HelpDebitProfitStandardRate = $1.HelpDebitProfitStandardRate; //(扶持期)(非云闪付)借记卡-标准分润比例",
- " decimal HelpDebitAddOrSubRate = $1.HelpDebitAddOrSubRate; //(扶持期)(非云闪付)借记卡成本或增或减比例",
- " decimal DebitCapSingleReward = $1.DebitCapSingleReward; //借记卡合伙人直营封顶交易奖励金额",
- " decimal QrCreditProfitRate = $1.QrCreditProfitRate; //(云闪付)贷记卡交易分润比例",
- " decimal QrCreditProfitStandardRate = $1.QrCreditProfitStandardRate; //(云闪付)贷记卡分润基准",
- " decimal QrCreditAddOrSubRate = $1.QrCreditAddOrSubRate; //(云闪付)贷记卡分润比例或增或减",
- " decimal QrDebitProfitRate = $1.QrDebitProfitRate; //(云闪付)借记卡非封顶交易分润比例",
- " decimal QrDebitProfitStandardRate = $1.QrDebitProfitStandardRate; //(云闪付)借记卡非封顶交易分润基准",
- " decimal QrDebitAddOrSubRate = $1.QrDebitAddOrSubRate; //(云闪付)借记卡非封顶交易分润比例或增或减",
- " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
- " string Remark = $1.Remark; //备注",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " string RecordNo = $1.RecordNo; //记录单号",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个分润奖励记录,并赋值": {
- "prefix": "ym-db-ProfitRewardRecord-Update",
- "body": [
- "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.MerchantId = $3; //商户",
- " $1.BrandId = $4; //品牌",
- " $1.ProfitType = $5; //创客分润类型",
- " $1.OtherTradeAmt = $6; //其他产品交易总金额",
- " $1.OtherCreditTradeAmt = $7; //其他产品贷记卡交易总金额",
- " $1.OtherDebitNotCapTradeAmt = $8; //其他产品借记卡非封顶交易总金额",
- " $1.TradeAmt = $9; //商户交易总额",
- " $1.CreditTradeAmt = $10; //贷记卡交易总金额",
- " $1.QrCreditTradeAmt = $11; //(云闪付)贷记卡交易总金额",
- " $1.NonQrCreditTradeAmt = $12; //(非云闪付)贷记卡交易总金额",
- " $1.NotHelpCreditTradeAmt = $13; //(非扶持期)(非云闪付)贷记卡交易总金额",
- " $1.HelpCreditTradeAmt = $14; //(扶持期)(非云闪付)贷记卡交易总金额",
- " $1.DebitNonCapTradeAmt = $15; //商户非封顶借记卡交易总额",
- " $1.QrDebitNotCapTradeAmt = $16; //(云闪付)商户非封顶借记卡交易总额",
- " $1.NonQrDebitNotCapTradeAmt = $17; //(非云闪付)商户非封顶借记卡交易总额",
- " $1.NotHelpDebitNonCapTradeAmt = $18; //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
- " $1.HelpDebitNonCapTradeAmt = $19; //(扶持期)(非云闪付)借记卡非封顶交易总金额",
- " $1.DebitCapTradeAmt = $20; //商户借记卡封顶交易总额",
- " $1.DebitCapTradeNum = $21; //商户借记卡封顶交易总笔数",
- " $1.TradeProfit = $22; //交易分润",
- " $1.CreditTradeProfit = $23; //贷记卡分润总金额",
- " $1.QrCreditTradeProfit = $24; //(云闪付)贷记卡交易分润",
- " $1.NonQrCreditTradeProfit = $25; //(非云闪付)贷记卡交易分润",
- " $1.NotHelpCreditTradeProfit = $26; //(非扶持期)(非云闪付)贷记卡分润总金额",
- " $1.HelpCreditTradeProfit = $27; //(扶持期)(非云闪付)贷记卡分润总金额",
- " $1.DebitNonTradeCapProfit = $28; //借记卡非封顶交易分润总金额",
- " $1.QrDebitNonTradeCapProfit = $29; //(云闪付)借记卡非封顶交易分润总金额",
- " $1.NonQrDebitNonTradeCapProfit = $30; //(非云闪付)借记卡非封顶交易分润总金额",
- " $1.NotHelpDebitNonTradeCapProfit = $31; //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " $1.HelpDebitNonTradeCapProfit = $32; //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " $1.DebitTradeCapProfit = $33; //借记卡封顶交易分润总金额",
- " $1.NotHelpCreditProfitRate = $34; //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " $1.NotHelpCreditProfitStandardRate = $35; //(非扶持期)(非云闪付)贷记卡标准分润比例",
- " $1.NotHelpCreditAddOrSubRate = $36; //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
- " $1.HelpCreditProfitRate = $37; //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " $1.HelpCreditProfitStandardRate = $38; //(扶持期)(非云闪付)贷记卡-标准分润比例",
- " $1.HelpCreditAddOrSubRate = $39; //(扶持期)(非云闪付)贷记卡成本或增或减比例",
- " $1.NotHelpDebitProfitRate = $40; //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " $1.NotHelpDebitProfitStandardRate = $41; //(非扶持期)(非云闪付)借记卡标准分润比例",
- " $1.NotHelpDebitAddOrSubRate = $42; //(非扶持期)(非云闪付)借记卡成本或增或减比例",
- " $1.HelpDebitProfitRate = $43; //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " $1.HelpDebitProfitStandardRate = $44; //(扶持期)(非云闪付)借记卡-标准分润比例",
- " $1.HelpDebitAddOrSubRate = $45; //(扶持期)(非云闪付)借记卡成本或增或减比例",
- " $1.DebitCapSingleReward = $46; //借记卡合伙人直营封顶交易奖励金额",
- " $1.QrCreditProfitRate = $47; //(云闪付)贷记卡交易分润比例",
- " $1.QrCreditProfitStandardRate = $48; //(云闪付)贷记卡分润基准",
- " $1.QrCreditAddOrSubRate = $49; //(云闪付)贷记卡分润比例或增或减",
- " $1.QrDebitProfitRate = $50; //(云闪付)借记卡非封顶交易分润比例",
- " $1.QrDebitProfitStandardRate = $51; //(云闪付)借记卡非封顶交易分润基准",
- " $1.QrDebitAddOrSubRate = $52; //(云闪付)借记卡非封顶交易分润比例或增或减",
- " $1.CheckStatus = $53; //验证和同步账户状态",
- " $1.Remark = $54; //备注",
- " $1.TradeMonth = $55; //交易月",
- " $1.RecordNo = $56; //记录单号",
- " $1.TopUserId = $57; //顶级创客",
- "}"
- ]
- },
- "获取分润奖励记录数量": {
- "prefix": "ym-db-ProfitRewardRecord-FindAndCount",
- "body": [
- "int $1 = db.ProfitRewardRecord.Count(m => $2);",
- ]
- },
- "添加分润奖励记录": {
- "prefix": "ym-db-ProfitRewardRecord-Create",
- "body": [
- "db.ProfitRewardRecord.Add(new ProfitRewardRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " MerchantId = $2, //商户",
- " BrandId = $3, //品牌",
- " ProfitType = $4, //创客分润类型",
- " OtherTradeAmt = $5, //其他产品交易总金额",
- " OtherCreditTradeAmt = $6, //其他产品贷记卡交易总金额",
- " OtherDebitNotCapTradeAmt = $7, //其他产品借记卡非封顶交易总金额",
- " TradeAmt = $8, //商户交易总额",
- " CreditTradeAmt = $9, //贷记卡交易总金额",
- " QrCreditTradeAmt = $10, //(云闪付)贷记卡交易总金额",
- " NonQrCreditTradeAmt = $11, //(非云闪付)贷记卡交易总金额",
- " NotHelpCreditTradeAmt = $12, //(非扶持期)(非云闪付)贷记卡交易总金额",
- " HelpCreditTradeAmt = $13, //(扶持期)(非云闪付)贷记卡交易总金额",
- " DebitNonCapTradeAmt = $14, //商户非封顶借记卡交易总额",
- " QrDebitNotCapTradeAmt = $15, //(云闪付)商户非封顶借记卡交易总额",
- " NonQrDebitNotCapTradeAmt = $16, //(非云闪付)商户非封顶借记卡交易总额",
- " NotHelpDebitNonCapTradeAmt = $17, //(非扶持期)(非云闪付)借记卡非封顶交易总金额",
- " HelpDebitNonCapTradeAmt = $18, //(扶持期)(非云闪付)借记卡非封顶交易总金额",
- " DebitCapTradeAmt = $19, //商户借记卡封顶交易总额",
- " DebitCapTradeNum = $20, //商户借记卡封顶交易总笔数",
- " TradeProfit = $21, //交易分润",
- " CreditTradeProfit = $22, //贷记卡分润总金额",
- " QrCreditTradeProfit = $23, //(云闪付)贷记卡交易分润",
- " NonQrCreditTradeProfit = $24, //(非云闪付)贷记卡交易分润",
- " NotHelpCreditTradeProfit = $25, //(非扶持期)(非云闪付)贷记卡分润总金额",
- " HelpCreditTradeProfit = $26, //(扶持期)(非云闪付)贷记卡分润总金额",
- " DebitNonTradeCapProfit = $27, //借记卡非封顶交易分润总金额",
- " QrDebitNonTradeCapProfit = $28, //(云闪付)借记卡非封顶交易分润总金额",
- " NonQrDebitNonTradeCapProfit = $29, //(非云闪付)借记卡非封顶交易分润总金额",
- " NotHelpDebitNonTradeCapProfit = $30, //(非扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " HelpDebitNonTradeCapProfit = $31, //(扶持期)(非云闪付)借记卡非封顶交易分润总金额",
- " DebitTradeCapProfit = $32, //借记卡封顶交易分润总金额",
- " NotHelpCreditProfitRate = $33, //(非扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " NotHelpCreditProfitStandardRate = $34, //(非扶持期)(非云闪付)贷记卡标准分润比例",
- " NotHelpCreditAddOrSubRate = $35, //(非扶持期)(非云闪付)贷记卡成本或增或减比例",
- " HelpCreditProfitRate = $36, //(扶持期)(非云闪付)贷记卡商户交易对应分润比例",
- " HelpCreditProfitStandardRate = $37, //(扶持期)(非云闪付)贷记卡-标准分润比例",
- " HelpCreditAddOrSubRate = $38, //(扶持期)(非云闪付)贷记卡成本或增或减比例",
- " NotHelpDebitProfitRate = $39, //(非扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " NotHelpDebitProfitStandardRate = $40, //(非扶持期)(非云闪付)借记卡标准分润比例",
- " NotHelpDebitAddOrSubRate = $41, //(非扶持期)(非云闪付)借记卡成本或增或减比例",
- " HelpDebitProfitRate = $42, //(扶持期)(非云闪付)借记卡商户交易对应分润比例",
- " HelpDebitProfitStandardRate = $43, //(扶持期)(非云闪付)借记卡-标准分润比例",
- " HelpDebitAddOrSubRate = $44, //(扶持期)(非云闪付)借记卡成本或增或减比例",
- " DebitCapSingleReward = $45, //借记卡合伙人直营封顶交易奖励金额",
- " QrCreditProfitRate = $46, //(云闪付)贷记卡交易分润比例",
- " QrCreditProfitStandardRate = $47, //(云闪付)贷记卡分润基准",
- " QrCreditAddOrSubRate = $48, //(云闪付)贷记卡分润比例或增或减",
- " QrDebitProfitRate = $49, //(云闪付)借记卡非封顶交易分润比例",
- " QrDebitProfitStandardRate = $50, //(云闪付)借记卡非封顶交易分润基准",
- " QrDebitAddOrSubRate = $51, //(云闪付)借记卡非封顶交易分润比例或增或减",
- " CheckStatus = $52, //验证和同步账户状态",
- " Remark = $53, //备注",
- " TradeMonth = $54, //交易月",
- " RecordNo = $55, //记录单号",
- " TopUserId = $56, //顶级创客",
- "});"
- ]
- },"删除某个分润奖励记录": {
- "prefix": "ym-db-ProfitRewardRecord-Delete",
- "body": [
- "ProfitRewardRecord $1 = db.ProfitRewardRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitRewardRecord.Remove($1);",
- "}"
- ]
- },
- "查询分润补贴明细列表": {
- "prefix": "ym-db-ProfitSubsidyDetail-Find",
- "body": [
- "List<ProfitSubsidyDetail> $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitSubsidyDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润补贴明细列表,并取值": {
- "prefix": "ym-db-ProfitSubsidyDetail-FindWithData",
- "body": [
- "List<ProfitSubsidyDetail> $1 = db.ProfitSubsidyDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitSubsidyDetail $3 in $1)",
- "{",
- " string RecordNo = $3.RecordNo; //流水号",
- " int BrandId = $3.BrandId; //品牌",
- " string ProductName = $3.ProductName; //产品名称",
- " string TradeMonth = $3.TradeMonth; //交易月份",
- " int MerchantId = $3.MerchantId; //商户",
- " string MerNo = $3.MerNo; //渠道商户编号",
- " string SnNo = $3.SnNo; //渠道SN号",
- " DateTime MerRegTime = $3.MerRegTime; //渠道注册时间",
- " DateTime MerStandardDate = $3.MerStandardDate; //商户激活时间",
- " int BelongUserId = $3.BelongUserId; //商户归属人",
- " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户",
- " int SubsidyUserId = $3.SubsidyUserId; //补贴人",
- " int SubsidyType = $3.SubsidyType; //分润补贴类型",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额",
- " decimal QrCreditTradeAmt = $3.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额",
- " decimal NonQrCreditTradeAmt = $3.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额",
- " decimal CreditProfitRate = $3.CreditProfitRate; //(非云闪付)贷记卡交易分润比例",
- " decimal SubsidyProfitRate = $3.SubsidyProfitRate; //创客活动期内直营商户分润万分之十",
- " decimal SubsidyProfit = $3.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询分润补贴明细": {
- "prefix": "ym-db-ProfitSubsidyDetail-Exist",
- "body": [
- "bool $1 = db.ProfitSubsidyDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润补贴明细,并取值": {
- "prefix": "ym-db-ProfitSubsidyDetail-FindByPrimaryKey",
- "body": [
- "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string RecordNo = $1.RecordNo; //流水号",
- " int BrandId = $1.BrandId; //品牌",
- " string ProductName = $1.ProductName; //产品名称",
- " string TradeMonth = $1.TradeMonth; //交易月份",
- " int MerchantId = $1.MerchantId; //商户",
- " string MerNo = $1.MerNo; //渠道商户编号",
- " string SnNo = $1.SnNo; //渠道SN号",
- " DateTime MerRegTime = $1.MerRegTime; //渠道注册时间",
- " DateTime MerStandardDate = $1.MerStandardDate; //商户激活时间",
- " int BelongUserId = $1.BelongUserId; //商户归属人",
- " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户",
- " int SubsidyUserId = $1.SubsidyUserId; //补贴人",
- " int SubsidyType = $1.SubsidyType; //分润补贴类型",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额",
- " decimal QrCreditTradeAmt = $1.QrCreditTradeAmt; //商户(云闪付)贷记卡交易总金额",
- " decimal NonQrCreditTradeAmt = $1.NonQrCreditTradeAmt; //商户(非云闪付)贷记卡交易总金额",
- " decimal CreditProfitRate = $1.CreditProfitRate; //(非云闪付)贷记卡交易分润比例",
- " decimal SubsidyProfitRate = $1.SubsidyProfitRate; //创客活动期内直营商户分润万分之十",
- " decimal SubsidyProfit = $1.SubsidyProfit; //商户(非云闪付)贷记卡交易分润补贴金额",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个分润补贴明细,并赋值": {
- "prefix": "ym-db-ProfitSubsidyDetail-Update",
- "body": [
- "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.RecordNo = $2; //流水号",
- " $1.BrandId = $3; //品牌",
- " $1.ProductName = $4; //产品名称",
- " $1.TradeMonth = $5; //交易月份",
- " $1.MerchantId = $6; //商户",
- " $1.MerNo = $7; //渠道商户编号",
- " $1.SnNo = $8; //渠道SN号",
- " $1.MerRegTime = $9; //渠道注册时间",
- " $1.MerStandardDate = $10; //商户激活时间",
- " $1.BelongUserId = $11; //商户归属人",
- " $1.MerHelpFlag = $12; //是否属于扶持周期内商户",
- " $1.SubsidyUserId = $13; //补贴人",
- " $1.SubsidyType = $14; //分润补贴类型",
- " $1.CreditTradeAmt = $15; //商户贷记卡交易总金额",
- " $1.QrCreditTradeAmt = $16; //商户(云闪付)贷记卡交易总金额",
- " $1.NonQrCreditTradeAmt = $17; //商户(非云闪付)贷记卡交易总金额",
- " $1.CreditProfitRate = $18; //(非云闪付)贷记卡交易分润比例",
- " $1.SubsidyProfitRate = $19; //创客活动期内直营商户分润万分之十",
- " $1.SubsidyProfit = $20; //商户(非云闪付)贷记卡交易分润补贴金额",
- " $1.Remark = $21; //备注",
- "}"
- ]
- },
- "获取分润补贴明细数量": {
- "prefix": "ym-db-ProfitSubsidyDetail-FindAndCount",
- "body": [
- "int $1 = db.ProfitSubsidyDetail.Count(m => $2);",
- ]
- },
- "添加分润补贴明细": {
- "prefix": "ym-db-ProfitSubsidyDetail-Create",
- "body": [
- "db.ProfitSubsidyDetail.Add(new ProfitSubsidyDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " RecordNo = $1, //流水号",
- " BrandId = $2, //品牌",
- " ProductName = $3, //产品名称",
- " TradeMonth = $4, //交易月份",
- " MerchantId = $5, //商户",
- " MerNo = $6, //渠道商户编号",
- " SnNo = $7, //渠道SN号",
- " MerRegTime = $8, //渠道注册时间",
- " MerStandardDate = $9, //商户激活时间",
- " BelongUserId = $10, //商户归属人",
- " MerHelpFlag = $11, //是否属于扶持周期内商户",
- " SubsidyUserId = $12, //补贴人",
- " SubsidyType = $13, //分润补贴类型",
- " CreditTradeAmt = $14, //商户贷记卡交易总金额",
- " QrCreditTradeAmt = $15, //商户(云闪付)贷记卡交易总金额",
- " NonQrCreditTradeAmt = $16, //商户(非云闪付)贷记卡交易总金额",
- " CreditProfitRate = $17, //(非云闪付)贷记卡交易分润比例",
- " SubsidyProfitRate = $18, //创客活动期内直营商户分润万分之十",
- " SubsidyProfit = $19, //商户(非云闪付)贷记卡交易分润补贴金额",
- " Remark = $20, //备注",
- "});"
- ]
- },"删除某个分润补贴明细": {
- "prefix": "ym-db-ProfitSubsidyDetail-Delete",
- "body": [
- "ProfitSubsidyDetail $1 = db.ProfitSubsidyDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitSubsidyDetail.Remove($1);",
- "}"
- ]
- },
- "查询拉新活动信息列表": {
- "prefix": "ym-db-PullNewAct-Find",
- "body": [
- "List<PullNewAct> $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PullNewAct $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询拉新活动信息列表,并取值": {
- "prefix": "ym-db-PullNewAct-FindWithData",
- "body": [
- "List<PullNewAct> $1 = db.PullNewAct.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PullNewAct $3 in $1)",
- "{",
- " int SnDelayDay = $3.SnDelayDay; //机具延时时间",
- " int ProductType = $3.ProductType; //产品类型",
- " string ProductName = $3.ProductName; //产品名称",
- " string ActStdCond = $3.ActStdCond; //拉新活动达标条件",
- " DateTime ActEffectStartDate = $3.ActEffectStartDate; //有效开始时间",
- " DateTime ActEffectEndDate = $3.ActEffectEndDate; //有效结束时间",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询拉新活动信息": {
- "prefix": "ym-db-PullNewAct-Exist",
- "body": [
- "bool $1 = db.PullNewAct.Any(m => m.Id == $2);",
- ]
- },
- "查询某个拉新活动信息,并取值": {
- "prefix": "ym-db-PullNewAct-FindByPrimaryKey",
- "body": [
- "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int SnDelayDay = $1.SnDelayDay; //机具延时时间",
- " int ProductType = $1.ProductType; //产品类型",
- " string ProductName = $1.ProductName; //产品名称",
- " string ActStdCond = $1.ActStdCond; //拉新活动达标条件",
- " DateTime ActEffectStartDate = $1.ActEffectStartDate; //有效开始时间",
- " DateTime ActEffectEndDate = $1.ActEffectEndDate; //有效结束时间",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个拉新活动信息,并赋值": {
- "prefix": "ym-db-PullNewAct-Update",
- "body": [
- "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.SnDelayDay = $2; //机具延时时间",
- " $1.ProductType = $3; //产品类型",
- " $1.ProductName = $4; //产品名称",
- " $1.ActStdCond = $5; //拉新活动达标条件",
- " $1.ActEffectStartDate = $6; //有效开始时间",
- " $1.ActEffectEndDate = $7; //有效结束时间",
- " $1.Remark = $8; //备注",
- "}"
- ]
- },
- "获取拉新活动信息数量": {
- "prefix": "ym-db-PullNewAct-FindAndCount",
- "body": [
- "int $1 = db.PullNewAct.Count(m => $2);",
- ]
- },
- "添加拉新活动信息": {
- "prefix": "ym-db-PullNewAct-Create",
- "body": [
- "db.PullNewAct.Add(new PullNewAct()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " SnDelayDay = $1, //机具延时时间",
- " ProductType = $2, //产品类型",
- " ProductName = $3, //产品名称",
- " ActStdCond = $4, //拉新活动达标条件",
- " ActEffectStartDate = $5, //有效开始时间",
- " ActEffectEndDate = $6, //有效结束时间",
- " Remark = $7, //备注",
- "});"
- ]
- },"删除某个拉新活动信息": {
- "prefix": "ym-db-PullNewAct-Delete",
- "body": [
- "PullNewAct $1 = db.PullNewAct.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.PullNewAct.Remove($1);",
- "}"
- ]
- },
- "查询拉新明细列表": {
- "prefix": "ym-db-PullNewDetail-Find",
- "body": [
- "List<PullNewDetail> $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PullNewDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询拉新明细列表,并取值": {
- "prefix": "ym-db-PullNewDetail-FindWithData",
- "body": [
- "List<PullNewDetail> $1 = db.PullNewDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PullNewDetail $3 in $1)",
- "{",
- " string StatDate = $3.StatDate; //统计日期",
- " string StatMonth = $3.StatMonth; //统计所在月份",
- " int UserId = $3.UserId; //创客",
- " int StatType = $3.StatType; //统计类型",
- " int RecUserId = $3.RecUserId; //招募人",
- " string RecMallOrder = $3.RecMallOrder; //招募人商城订单号",
- " DateTime RecMallOrderTime = $3.RecMallOrderTime; //招募创客商城下单时间",
- " DateTime RecMallSendTime = $3.RecMallSendTime; //招募人商城发货时间",
- " int RecMallBrandId = $3.RecMallBrandId; //招募人商城订单品牌",
- " string RecMallProductName = $3.RecMallProductName; //招募人商城订单产品名称",
- " int RecMallProductNum = $3.RecMallProductNum; //招募人商城订单产品数量",
- " int BizStatus = $3.BizStatus; //业务状态",
- " int RewardStatus = $3.RewardStatus; //奖励状态",
- " string Remark = $3.Remark; //备注",
- " int RecUserType = $3.RecUserType; //商户创客类型",
- " DateTime RegDate = $3.RegDate; //注册时间",
- "}"
- ]
- },
- "查询拉新明细": {
- "prefix": "ym-db-PullNewDetail-Exist",
- "body": [
- "bool $1 = db.PullNewDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个拉新明细,并取值": {
- "prefix": "ym-db-PullNewDetail-FindByPrimaryKey",
- "body": [
- "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string StatDate = $1.StatDate; //统计日期",
- " string StatMonth = $1.StatMonth; //统计所在月份",
- " int UserId = $1.UserId; //创客",
- " int StatType = $1.StatType; //统计类型",
- " int RecUserId = $1.RecUserId; //招募人",
- " string RecMallOrder = $1.RecMallOrder; //招募人商城订单号",
- " DateTime RecMallOrderTime = $1.RecMallOrderTime; //招募创客商城下单时间",
- " DateTime RecMallSendTime = $1.RecMallSendTime; //招募人商城发货时间",
- " int RecMallBrandId = $1.RecMallBrandId; //招募人商城订单品牌",
- " string RecMallProductName = $1.RecMallProductName; //招募人商城订单产品名称",
- " int RecMallProductNum = $1.RecMallProductNum; //招募人商城订单产品数量",
- " int BizStatus = $1.BizStatus; //业务状态",
- " int RewardStatus = $1.RewardStatus; //奖励状态",
- " string Remark = $1.Remark; //备注",
- " int RecUserType = $1.RecUserType; //商户创客类型",
- " DateTime RegDate = $1.RegDate; //注册时间",
- "}"
- ]
- },
- "查询某个拉新明细,并赋值": {
- "prefix": "ym-db-PullNewDetail-Update",
- "body": [
- "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.StatDate = $2; //统计日期",
- " $1.StatMonth = $3; //统计所在月份",
- " $1.UserId = $4; //创客",
- " $1.StatType = $5; //统计类型",
- " $1.RecUserId = $6; //招募人",
- " $1.RecMallOrder = $7; //招募人商城订单号",
- " $1.RecMallOrderTime = $8; //招募创客商城下单时间",
- " $1.RecMallSendTime = $9; //招募人商城发货时间",
- " $1.RecMallBrandId = $10; //招募人商城订单品牌",
- " $1.RecMallProductName = $11; //招募人商城订单产品名称",
- " $1.RecMallProductNum = $12; //招募人商城订单产品数量",
- " $1.BizStatus = $13; //业务状态",
- " $1.RewardStatus = $14; //奖励状态",
- " $1.Remark = $15; //备注",
- " $1.RecUserType = $16; //商户创客类型",
- " $1.RegDate = $17; //注册时间",
- "}"
- ]
- },
- "获取拉新明细数量": {
- "prefix": "ym-db-PullNewDetail-FindAndCount",
- "body": [
- "int $1 = db.PullNewDetail.Count(m => $2);",
- ]
- },
- "添加拉新明细": {
- "prefix": "ym-db-PullNewDetail-Create",
- "body": [
- "db.PullNewDetail.Add(new PullNewDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " StatDate = $1, //统计日期",
- " StatMonth = $2, //统计所在月份",
- " UserId = $3, //创客",
- " StatType = $4, //统计类型",
- " RecUserId = $5, //招募人",
- " RecMallOrder = $6, //招募人商城订单号",
- " RecMallOrderTime = $7, //招募创客商城下单时间",
- " RecMallSendTime = $8, //招募人商城发货时间",
- " RecMallBrandId = $9, //招募人商城订单品牌",
- " RecMallProductName = $10, //招募人商城订单产品名称",
- " RecMallProductNum = $11, //招募人商城订单产品数量",
- " BizStatus = $12, //业务状态",
- " RewardStatus = $13, //奖励状态",
- " Remark = $14, //备注",
- " RecUserType = $15, //商户创客类型",
- " RegDate = $16, //注册时间",
- "});"
- ]
- },"删除某个拉新明细": {
- "prefix": "ym-db-PullNewDetail-Delete",
- "body": [
- "PullNewDetail $1 = db.PullNewDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.PullNewDetail.Remove($1);",
- "}"
- ]
- },
- "查询拉新日统计信息列表": {
- "prefix": "ym-db-PullnewSummary-Find",
- "body": [
- "List<PullnewSummary> $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PullnewSummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询拉新日统计信息列表,并取值": {
- "prefix": "ym-db-PullnewSummary-FindWithData",
- "body": [
- "List<PullnewSummary> $1 = db.PullnewSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PullnewSummary $3 in $1)",
- "{",
- " string StatDate = $3.StatDate; //统计日",
- " string StatMonth = $3.StatMonth; //统计月",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //产品类型",
- " int RecUserAuthNum = $3.RecUserAuthNum; //招募实名创客数",
- " int RecUserDeliveryStdNum = $3.RecUserDeliveryStdNum; //招募创客提货达标人数",
- " int RuleSnDelayDay = $3.RuleSnDelayDay; //规则机具延迟天数",
- " int BizSnDelayDay = $3.BizSnDelayDay; //业务机具延迟天数",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询拉新日统计信息": {
- "prefix": "ym-db-PullnewSummary-Exist",
- "body": [
- "bool $1 = db.PullnewSummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个拉新日统计信息,并取值": {
- "prefix": "ym-db-PullnewSummary-FindByPrimaryKey",
- "body": [
- "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string StatDate = $1.StatDate; //统计日",
- " string StatMonth = $1.StatMonth; //统计月",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //产品类型",
- " int RecUserAuthNum = $1.RecUserAuthNum; //招募实名创客数",
- " int RecUserDeliveryStdNum = $1.RecUserDeliveryStdNum; //招募创客提货达标人数",
- " int RuleSnDelayDay = $1.RuleSnDelayDay; //规则机具延迟天数",
- " int BizSnDelayDay = $1.BizSnDelayDay; //业务机具延迟天数",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个拉新日统计信息,并赋值": {
- "prefix": "ym-db-PullnewSummary-Update",
- "body": [
- "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.StatDate = $2; //统计日",
- " $1.StatMonth = $3; //统计月",
- " $1.UserId = $4; //创客",
- " $1.BrandId = $5; //产品类型",
- " $1.RecUserAuthNum = $6; //招募实名创客数",
- " $1.RecUserDeliveryStdNum = $7; //招募创客提货达标人数",
- " $1.RuleSnDelayDay = $8; //规则机具延迟天数",
- " $1.BizSnDelayDay = $9; //业务机具延迟天数",
- " $1.Remark = $10; //备注",
- "}"
- ]
- },
- "获取拉新日统计信息数量": {
- "prefix": "ym-db-PullnewSummary-FindAndCount",
- "body": [
- "int $1 = db.PullnewSummary.Count(m => $2);",
- ]
- },
- "添加拉新日统计信息": {
- "prefix": "ym-db-PullnewSummary-Create",
- "body": [
- "db.PullnewSummary.Add(new PullnewSummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " StatDate = $1, //统计日",
- " StatMonth = $2, //统计月",
- " UserId = $3, //创客",
- " BrandId = $4, //产品类型",
- " RecUserAuthNum = $5, //招募实名创客数",
- " RecUserDeliveryStdNum = $6, //招募创客提货达标人数",
- " RuleSnDelayDay = $7, //规则机具延迟天数",
- " BizSnDelayDay = $8, //业务机具延迟天数",
- " Remark = $9, //备注",
- "});"
- ]
- },"删除某个拉新日统计信息": {
- "prefix": "ym-db-PullnewSummary-Delete",
- "body": [
- "PullnewSummary $1 = db.PullnewSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.PullnewSummary.Remove($1);",
- "}"
- ]
- },
- "查询服务中心列表": {
- "prefix": "ym-db-ServiceCenter-Find",
- "body": [
- "List<ServiceCenter> $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ServiceCenter $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询服务中心列表,并取值": {
- "prefix": "ym-db-ServiceCenter-FindWithData",
- "body": [
- "List<ServiceCenter> $1 = db.ServiceCenter.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ServiceCenter $3 in $1)",
- "{",
- " string Title = $3.Title; //标题",
- " string SubTitle = $3.SubTitle; //副标题",
- " string Content = $3.Content; //内容",
- " int CategoryId = $3.CategoryId; //问答类型",
- "}"
- ]
- },
- "查询服务中心": {
- "prefix": "ym-db-ServiceCenter-Exist",
- "body": [
- "bool $1 = db.ServiceCenter.Any(m => m.Id == $2);",
- ]
- },
- "查询某个服务中心,并取值": {
- "prefix": "ym-db-ServiceCenter-FindByPrimaryKey",
- "body": [
- "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Title = $1.Title; //标题",
- " string SubTitle = $1.SubTitle; //副标题",
- " string Content = $1.Content; //内容",
- " int CategoryId = $1.CategoryId; //问答类型",
- "}"
- ]
- },
- "查询某个服务中心,并赋值": {
- "prefix": "ym-db-ServiceCenter-Update",
- "body": [
- "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Title = $2; //标题",
- " $1.SubTitle = $3; //副标题",
- " $1.Content = $4; //内容",
- " $1.CategoryId = $5; //问答类型",
- "}"
- ]
- },
- "获取服务中心数量": {
- "prefix": "ym-db-ServiceCenter-FindAndCount",
- "body": [
- "int $1 = db.ServiceCenter.Count(m => $2);",
- ]
- },
- "添加服务中心": {
- "prefix": "ym-db-ServiceCenter-Create",
- "body": [
- "db.ServiceCenter.Add(new ServiceCenter()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Title = $1, //标题",
- " SubTitle = $2, //副标题",
- " Content = $3, //内容",
- " CategoryId = $4, //问答类型",
- "});"
- ]
- },"删除某个服务中心": {
- "prefix": "ym-db-ServiceCenter-Delete",
- "body": [
- "ServiceCenter $1 = db.ServiceCenter.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ServiceCenter.Remove($1);",
- "}"
- ]
- },
- "查询仓库库存变动信息列表": {
- "prefix": "ym-db-StoreBalance-Find",
- "body": [
- "List<StoreBalance> $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreBalance $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询仓库库存变动信息列表,并取值": {
- "prefix": "ym-db-StoreBalance-FindWithData",
- "body": [
- "List<StoreBalance> $1 = db.StoreBalance.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreBalance $3 in $1)",
- "{",
- " int StoreId = $3.StoreId; //仓库",
- " string TransRecordNo = $3.TransRecordNo; //交易流水编号",
- " int TransType = $3.TransType; //交易类型",
- " int BrandId = $3.BrandId; //产品类型",
- " int OpStoreNum = $3.OpStoreNum; //操作库存数",
- " string OpSymbol = $3.OpSymbol; //操作符",
- " int BeforeTotalNum = $3.BeforeTotalNum; //操作前总库存数",
- " int AfterTotalNum = $3.AfterTotalNum; //操作后总库存数",
- " int BeforeLaveNum = $3.BeforeLaveNum; //操作前剩余库存数",
- " int AfterLaveNum = $3.AfterLaveNum; //操作后剩余库存数",
- " int BeforeOutNum = $3.BeforeOutNum; //操作前出库数",
- " int AfterOutNum = $3.AfterOutNum; //操作后出库数",
- "}"
- ]
- },
- "查询仓库库存变动信息": {
- "prefix": "ym-db-StoreBalance-Exist",
- "body": [
- "bool $1 = db.StoreBalance.Any(m => m.Id == $2);",
- ]
- },
- "查询某个仓库库存变动信息,并取值": {
- "prefix": "ym-db-StoreBalance-FindByPrimaryKey",
- "body": [
- "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int StoreId = $1.StoreId; //仓库",
- " string TransRecordNo = $1.TransRecordNo; //交易流水编号",
- " int TransType = $1.TransType; //交易类型",
- " int BrandId = $1.BrandId; //产品类型",
- " int OpStoreNum = $1.OpStoreNum; //操作库存数",
- " string OpSymbol = $1.OpSymbol; //操作符",
- " int BeforeTotalNum = $1.BeforeTotalNum; //操作前总库存数",
- " int AfterTotalNum = $1.AfterTotalNum; //操作后总库存数",
- " int BeforeLaveNum = $1.BeforeLaveNum; //操作前剩余库存数",
- " int AfterLaveNum = $1.AfterLaveNum; //操作后剩余库存数",
- " int BeforeOutNum = $1.BeforeOutNum; //操作前出库数",
- " int AfterOutNum = $1.AfterOutNum; //操作后出库数",
- "}"
- ]
- },
- "查询某个仓库库存变动信息,并赋值": {
- "prefix": "ym-db-StoreBalance-Update",
- "body": [
- "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.StoreId = $2; //仓库",
- " $1.TransRecordNo = $3; //交易流水编号",
- " $1.TransType = $4; //交易类型",
- " $1.BrandId = $5; //产品类型",
- " $1.OpStoreNum = $6; //操作库存数",
- " $1.OpSymbol = $7; //操作符",
- " $1.BeforeTotalNum = $8; //操作前总库存数",
- " $1.AfterTotalNum = $9; //操作后总库存数",
- " $1.BeforeLaveNum = $10; //操作前剩余库存数",
- " $1.AfterLaveNum = $11; //操作后剩余库存数",
- " $1.BeforeOutNum = $12; //操作前出库数",
- " $1.AfterOutNum = $13; //操作后出库数",
- "}"
- ]
- },
- "获取仓库库存变动信息数量": {
- "prefix": "ym-db-StoreBalance-FindAndCount",
- "body": [
- "int $1 = db.StoreBalance.Count(m => $2);",
- ]
- },
- "添加仓库库存变动信息": {
- "prefix": "ym-db-StoreBalance-Create",
- "body": [
- "db.StoreBalance.Add(new StoreBalance()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " StoreId = $1, //仓库",
- " TransRecordNo = $2, //交易流水编号",
- " TransType = $3, //交易类型",
- " BrandId = $4, //产品类型",
- " OpStoreNum = $5, //操作库存数",
- " OpSymbol = $6, //操作符",
- " BeforeTotalNum = $7, //操作前总库存数",
- " AfterTotalNum = $8, //操作后总库存数",
- " BeforeLaveNum = $9, //操作前剩余库存数",
- " AfterLaveNum = $10, //操作后剩余库存数",
- " BeforeOutNum = $11, //操作前出库数",
- " AfterOutNum = $12, //操作后出库数",
- "});"
- ]
- },"删除某个仓库库存变动信息": {
- "prefix": "ym-db-StoreBalance-Delete",
- "body": [
- "StoreBalance $1 = db.StoreBalance.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreBalance.Remove($1);",
- "}"
- ]
- },
- "查询机具变动历史列表": {
- "prefix": "ym-db-StoreChangeHistory-Find",
- "body": [
- "List<StoreChangeHistory> $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreChangeHistory $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具变动历史列表,并取值": {
- "prefix": "ym-db-StoreChangeHistory-FindWithData",
- "body": [
- "List<StoreChangeHistory> $1 = db.StoreChangeHistory.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreChangeHistory $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //产品类型",
- " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
- " string BizBatchNo = $3.BizBatchNo; //业务批次号",
- " int TransType = $3.TransType; //交易类型",
- " string SnNo = $3.SnNo; //SN编号",
- " int SnType = $3.SnType; //SN机具类型",
- " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
- " string DeviceVendor = $3.DeviceVendor; //设备厂商",
- " string DeviceType = $3.DeviceType; //设备类型",
- " string DeviceModel = $3.DeviceModel; //设备型号",
- " int FromUserId = $3.FromUserId; //出货创客",
- " DateTime FromDate = $3.FromDate; //出库时间",
- " string FromRemark = $3.FromRemark; //出库备注",
- " int ToUserId = $3.ToUserId; //收货创客",
- " int ToStoreId = $3.ToStoreId; //创客退货收货仓库",
- " DateTime ToDate = $3.ToDate; //入库时间",
- " string ToRemark = $3.ToRemark; //入库备注",
- " int SourceStoreId = $3.SourceStoreId; //源仓库",
- " int StoreId = $3.StoreId; //仓库",
- "}"
- ]
- },
- "查询机具变动历史": {
- "prefix": "ym-db-StoreChangeHistory-Exist",
- "body": [
- "bool $1 = db.StoreChangeHistory.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具变动历史,并取值": {
- "prefix": "ym-db-StoreChangeHistory-FindByPrimaryKey",
- "body": [
- "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //产品类型",
- " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
- " string BizBatchNo = $1.BizBatchNo; //业务批次号",
- " int TransType = $1.TransType; //交易类型",
- " string SnNo = $1.SnNo; //SN编号",
- " int SnType = $1.SnType; //SN机具类型",
- " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
- " string DeviceVendor = $1.DeviceVendor; //设备厂商",
- " string DeviceType = $1.DeviceType; //设备类型",
- " string DeviceModel = $1.DeviceModel; //设备型号",
- " int FromUserId = $1.FromUserId; //出货创客",
- " DateTime FromDate = $1.FromDate; //出库时间",
- " string FromRemark = $1.FromRemark; //出库备注",
- " int ToUserId = $1.ToUserId; //收货创客",
- " int ToStoreId = $1.ToStoreId; //创客退货收货仓库",
- " DateTime ToDate = $1.ToDate; //入库时间",
- " string ToRemark = $1.ToRemark; //入库备注",
- " int SourceStoreId = $1.SourceStoreId; //源仓库",
- " int StoreId = $1.StoreId; //仓库",
- "}"
- ]
- },
- "查询某个机具变动历史,并赋值": {
- "prefix": "ym-db-StoreChangeHistory-Update",
- "body": [
- "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //产品类型",
- " $1.ChangeRecordNo = $4; //变更记录单号",
- " $1.BizBatchNo = $5; //业务批次号",
- " $1.TransType = $6; //交易类型",
- " $1.SnNo = $7; //SN编号",
- " $1.SnType = $8; //SN机具类型",
- " $1.StockOpDirect = $9; //库存操作方向",
- " $1.DeviceVendor = $10; //设备厂商",
- " $1.DeviceType = $11; //设备类型",
- " $1.DeviceModel = $12; //设备型号",
- " $1.FromUserId = $13; //出货创客",
- " $1.FromDate = $14; //出库时间",
- " $1.FromRemark = $15; //出库备注",
- " $1.ToUserId = $16; //收货创客",
- " $1.ToStoreId = $17; //创客退货收货仓库",
- " $1.ToDate = $18; //入库时间",
- " $1.ToRemark = $19; //入库备注",
- " $1.SourceStoreId = $20; //源仓库",
- " $1.StoreId = $21; //仓库",
- "}"
- ]
- },
- "获取机具变动历史数量": {
- "prefix": "ym-db-StoreChangeHistory-FindAndCount",
- "body": [
- "int $1 = db.StoreChangeHistory.Count(m => $2);",
- ]
- },
- "添加机具变动历史": {
- "prefix": "ym-db-StoreChangeHistory-Create",
- "body": [
- "db.StoreChangeHistory.Add(new StoreChangeHistory()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //产品类型",
- " ChangeRecordNo = $3, //变更记录单号",
- " BizBatchNo = $4, //业务批次号",
- " TransType = $5, //交易类型",
- " SnNo = $6, //SN编号",
- " SnType = $7, //SN机具类型",
- " StockOpDirect = $8, //库存操作方向",
- " DeviceVendor = $9, //设备厂商",
- " DeviceType = $10, //设备类型",
- " DeviceModel = $11, //设备型号",
- " FromUserId = $12, //出货创客",
- " FromDate = $13, //出库时间",
- " FromRemark = $14, //出库备注",
- " ToUserId = $15, //收货创客",
- " ToStoreId = $16, //创客退货收货仓库",
- " ToDate = $17, //入库时间",
- " ToRemark = $18, //入库备注",
- " SourceStoreId = $19, //源仓库",
- " StoreId = $20, //仓库",
- "});"
- ]
- },"删除某个机具变动历史": {
- "prefix": "ym-db-StoreChangeHistory-Delete",
- "body": [
- "StoreChangeHistory $1 = db.StoreChangeHistory.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreChangeHistory.Remove($1);",
- "}"
- ]
- },
- "查询仓库编号为主键的关联表列表": {
- "prefix": "ym-db-StoreForCode-Find",
- "body": [
- "List<StoreForCode> $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreForCode $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询仓库编号为主键的关联表列表,并取值": {
- "prefix": "ym-db-StoreForCode-FindWithData",
- "body": [
- "List<StoreForCode> $1 = db.StoreForCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreForCode $3 in $1)",
- "{",
- " string Code = $3.Code; //编号",
- " int StoreId = $3.StoreId; //仓库",
- "}"
- ]
- },
- "查询仓库编号为主键的关联表": {
- "prefix": "ym-db-StoreForCode-Exist",
- "body": [
- "bool $1 = db.StoreForCode.Any(m => m.Code == $2);",
- ]
- },
- "查询某个仓库编号为主键的关联表,并取值": {
- "prefix": "ym-db-StoreForCode-FindByPrimaryKey",
- "body": [
- "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
- "if ($1 != null)",
- "{",
- " string Code = $1.Code; //编号",
- " int StoreId = $1.StoreId; //仓库",
- "}"
- ]
- },
- "查询某个仓库编号为主键的关联表,并赋值": {
- "prefix": "ym-db-StoreForCode-Update",
- "body": [
- "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
- "if ($1 != null)",
- "{",
- " $1.Code = $2; //编号",
- " $1.StoreId = $3; //仓库",
- "}"
- ]
- },
- "获取仓库编号为主键的关联表数量": {
- "prefix": "ym-db-StoreForCode-FindAndCount",
- "body": [
- "int $1 = db.StoreForCode.Count(m => $2);",
- ]
- },
- "添加仓库编号为主键的关联表": {
- "prefix": "ym-db-StoreForCode-Create",
- "body": [
- "db.StoreForCode.Add(new StoreForCode()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Code = $1, //编号",
- " StoreId = $2, //仓库",
- "});"
- ]
- },"删除某个仓库编号为主键的关联表": {
- "prefix": "ym-db-StoreForCode-Delete",
- "body": [
- "StoreForCode $1 = db.StoreForCode.FirstOrDefault(m => m.Code == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreForCode.Remove($1);",
- "}"
- ]
- },
- "查询仓库名称为主键的关联表列表": {
- "prefix": "ym-db-StoreForName-Find",
- "body": [
- "List<StoreForName> $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreForName $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询仓库名称为主键的关联表列表,并取值": {
- "prefix": "ym-db-StoreForName-FindWithData",
- "body": [
- "List<StoreForName> $1 = db.StoreForName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreForName $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " int StoreId = $3.StoreId; //仓库",
- "}"
- ]
- },
- "查询仓库名称为主键的关联表": {
- "prefix": "ym-db-StoreForName-Exist",
- "body": [
- "bool $1 = db.StoreForName.Any(m => m.Name == $2);",
- ]
- },
- "查询某个仓库名称为主键的关联表,并取值": {
- "prefix": "ym-db-StoreForName-FindByPrimaryKey",
- "body": [
- "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " int StoreId = $1.StoreId; //仓库",
- "}"
- ]
- },
- "查询某个仓库名称为主键的关联表,并赋值": {
- "prefix": "ym-db-StoreForName-Update",
- "body": [
- "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.StoreId = $3; //仓库",
- "}"
- ]
- },
- "获取仓库名称为主键的关联表数量": {
- "prefix": "ym-db-StoreForName-FindAndCount",
- "body": [
- "int $1 = db.StoreForName.Count(m => $2);",
- ]
- },
- "添加仓库名称为主键的关联表": {
- "prefix": "ym-db-StoreForName-Create",
- "body": [
- "db.StoreForName.Add(new StoreForName()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " StoreId = $2, //仓库",
- "});"
- ]
- },"删除某个仓库名称为主键的关联表": {
- "prefix": "ym-db-StoreForName-Delete",
- "body": [
- "StoreForName $1 = db.StoreForName.FirstOrDefault(m => m.Name == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreForName.Remove($1);",
- "}"
- ]
- },
- "查询仓库列表": {
- "prefix": "ym-db-StoreHouse-Find",
- "body": [
- "List<StoreHouse> $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreHouse $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询仓库列表,并取值": {
- "prefix": "ym-db-StoreHouse-FindWithData",
- "body": [
- "List<StoreHouse> $1 = db.StoreHouse.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreHouse $3 in $1)",
- "{",
- " string StoreNo = $3.StoreNo; //仓库编号",
- " string StoreName = $3.StoreName; //仓库名称",
- " int UserId = $3.UserId; //仓库归属人",
- " string BrandId = $3.BrandId; //产品类型",
- " string ProductName = $3.ProductName; //产品名称",
- " string Address = $3.Address; //仓库地址",
- " int ManageUserId = $3.ManageUserId; //仓库管理员",
- " string ManagerEmail = $3.ManagerEmail; //管理者邮箱",
- " int ParentStoreId = $3.ParentStoreId; //父级Id",
- " string ParentNav = $3.ParentNav; //父级集合",
- " int StoreType = $3.StoreType; //仓库类型",
- " int TotalNum = $3.TotalNum; //总库存数",
- " int LaveNum = $3.LaveNum; //剩余库存数",
- " int OutNum = $3.OutNum; //出库数",
- " string Remark = $3.Remark; //备注",
- " string Areas = $3.Areas; //所属地区",
- " string LimitTopUserId = $3.LimitTopUserId; //限制创客特殊仓库",
- " int StoreStatus = $3.StoreStatus; //仓库状态",
- " int StoreKind = $3.StoreKind; //仓库归属类型",
- " string ManageMobile = $3.ManageMobile; //管理者手机号",
- "}"
- ]
- },
- "查询仓库": {
- "prefix": "ym-db-StoreHouse-Exist",
- "body": [
- "bool $1 = db.StoreHouse.Any(m => m.Id == $2);",
- ]
- },
- "查询某个仓库,并取值": {
- "prefix": "ym-db-StoreHouse-FindByPrimaryKey",
- "body": [
- "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string StoreNo = $1.StoreNo; //仓库编号",
- " string StoreName = $1.StoreName; //仓库名称",
- " int UserId = $1.UserId; //仓库归属人",
- " string BrandId = $1.BrandId; //产品类型",
- " string ProductName = $1.ProductName; //产品名称",
- " string Address = $1.Address; //仓库地址",
- " int ManageUserId = $1.ManageUserId; //仓库管理员",
- " string ManagerEmail = $1.ManagerEmail; //管理者邮箱",
- " int ParentStoreId = $1.ParentStoreId; //父级Id",
- " string ParentNav = $1.ParentNav; //父级集合",
- " int StoreType = $1.StoreType; //仓库类型",
- " int TotalNum = $1.TotalNum; //总库存数",
- " int LaveNum = $1.LaveNum; //剩余库存数",
- " int OutNum = $1.OutNum; //出库数",
- " string Remark = $1.Remark; //备注",
- " string Areas = $1.Areas; //所属地区",
- " string LimitTopUserId = $1.LimitTopUserId; //限制创客特殊仓库",
- " int StoreStatus = $1.StoreStatus; //仓库状态",
- " int StoreKind = $1.StoreKind; //仓库归属类型",
- " string ManageMobile = $1.ManageMobile; //管理者手机号",
- "}"
- ]
- },
- "查询某个仓库,并赋值": {
- "prefix": "ym-db-StoreHouse-Update",
- "body": [
- "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.StoreNo = $2; //仓库编号",
- " $1.StoreName = $3; //仓库名称",
- " $1.UserId = $4; //仓库归属人",
- " $1.BrandId = $5; //产品类型",
- " $1.ProductName = $6; //产品名称",
- " $1.Address = $7; //仓库地址",
- " $1.ManageUserId = $8; //仓库管理员",
- " $1.ManagerEmail = $9; //管理者邮箱",
- " $1.ParentStoreId = $10; //父级Id",
- " $1.ParentNav = $11; //父级集合",
- " $1.StoreType = $12; //仓库类型",
- " $1.TotalNum = $13; //总库存数",
- " $1.LaveNum = $14; //剩余库存数",
- " $1.OutNum = $15; //出库数",
- " $1.Remark = $16; //备注",
- " $1.Areas = $17; //所属地区",
- " $1.LimitTopUserId = $18; //限制创客特殊仓库",
- " $1.StoreStatus = $19; //仓库状态",
- " $1.StoreKind = $20; //仓库归属类型",
- " $1.ManageMobile = $21; //管理者手机号",
- "}"
- ]
- },
- "获取仓库数量": {
- "prefix": "ym-db-StoreHouse-FindAndCount",
- "body": [
- "int $1 = db.StoreHouse.Count(m => $2);",
- ]
- },
- "添加仓库": {
- "prefix": "ym-db-StoreHouse-Create",
- "body": [
- "db.StoreHouse.Add(new StoreHouse()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " StoreNo = $1, //仓库编号",
- " StoreName = $2, //仓库名称",
- " UserId = $3, //仓库归属人",
- " BrandId = $4, //产品类型",
- " ProductName = $5, //产品名称",
- " Address = $6, //仓库地址",
- " ManageUserId = $7, //仓库管理员",
- " ManagerEmail = $8, //管理者邮箱",
- " ParentStoreId = $9, //父级Id",
- " ParentNav = $10, //父级集合",
- " StoreType = $11, //仓库类型",
- " TotalNum = $12, //总库存数",
- " LaveNum = $13, //剩余库存数",
- " OutNum = $14, //出库数",
- " Remark = $15, //备注",
- " Areas = $16, //所属地区",
- " LimitTopUserId = $17, //限制创客特殊仓库",
- " StoreStatus = $18, //仓库状态",
- " StoreKind = $19, //仓库归属类型",
- " ManageMobile = $20, //管理者手机号",
- "});"
- ]
- },"删除某个仓库": {
- "prefix": "ym-db-StoreHouse-Delete",
- "body": [
- "StoreHouse $1 = db.StoreHouse.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreHouse.Remove($1);",
- "}"
- ]
- },
- "查询仓库订单汇总列表": {
- "prefix": "ym-db-StoreMallOrderSummary-Find",
- "body": [
- "List<StoreMallOrderSummary> $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreMallOrderSummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询仓库订单汇总列表,并取值": {
- "prefix": "ym-db-StoreMallOrderSummary-FindWithData",
- "body": [
- "List<StoreMallOrderSummary> $1 = db.StoreMallOrderSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreMallOrderSummary $3 in $1)",
- "{",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int StoreId = $3.StoreId; //仓库",
- " int AgentStoreId = $3.AgentStoreId; //代理分仓",
- " int BrandId = $3.BrandId; //品牌",
- " decimal UnitPrice = $3.UnitPrice; //单价",
- " int OrderNum = $3.OrderNum; //订单数量",
- " int OrderAmt = $3.OrderAmt; //订单金额",
- " int RefundOrderNum = $3.RefundOrderNum; //退款订单数量",
- " decimal RefundAmt = $3.RefundAmt; //退款金额",
- " decimal SettleAmt = $3.SettleAmt; //结算金额",
- " int SettleStatus = $3.SettleStatus; //结算状态",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询仓库订单汇总": {
- "prefix": "ym-db-StoreMallOrderSummary-Exist",
- "body": [
- "bool $1 = db.StoreMallOrderSummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个仓库订单汇总,并取值": {
- "prefix": "ym-db-StoreMallOrderSummary-FindByPrimaryKey",
- "body": [
- "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int StoreId = $1.StoreId; //仓库",
- " int AgentStoreId = $1.AgentStoreId; //代理分仓",
- " int BrandId = $1.BrandId; //品牌",
- " decimal UnitPrice = $1.UnitPrice; //单价",
- " int OrderNum = $1.OrderNum; //订单数量",
- " int OrderAmt = $1.OrderAmt; //订单金额",
- " int RefundOrderNum = $1.RefundOrderNum; //退款订单数量",
- " decimal RefundAmt = $1.RefundAmt; //退款金额",
- " decimal SettleAmt = $1.SettleAmt; //结算金额",
- " int SettleStatus = $1.SettleStatus; //结算状态",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个仓库订单汇总,并赋值": {
- "prefix": "ym-db-StoreMallOrderSummary-Update",
- "body": [
- "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TradeMonth = $2; //交易月",
- " $1.StoreId = $3; //仓库",
- " $1.AgentStoreId = $4; //代理分仓",
- " $1.BrandId = $5; //品牌",
- " $1.UnitPrice = $6; //单价",
- " $1.OrderNum = $7; //订单数量",
- " $1.OrderAmt = $8; //订单金额",
- " $1.RefundOrderNum = $9; //退款订单数量",
- " $1.RefundAmt = $10; //退款金额",
- " $1.SettleAmt = $11; //结算金额",
- " $1.SettleStatus = $12; //结算状态",
- " $1.Remark = $13; //备注",
- "}"
- ]
- },
- "获取仓库订单汇总数量": {
- "prefix": "ym-db-StoreMallOrderSummary-FindAndCount",
- "body": [
- "int $1 = db.StoreMallOrderSummary.Count(m => $2);",
- ]
- },
- "添加仓库订单汇总": {
- "prefix": "ym-db-StoreMallOrderSummary-Create",
- "body": [
- "db.StoreMallOrderSummary.Add(new StoreMallOrderSummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TradeMonth = $1, //交易月",
- " StoreId = $2, //仓库",
- " AgentStoreId = $3, //代理分仓",
- " BrandId = $4, //品牌",
- " UnitPrice = $5, //单价",
- " OrderNum = $6, //订单数量",
- " OrderAmt = $7, //订单金额",
- " RefundOrderNum = $8, //退款订单数量",
- " RefundAmt = $9, //退款金额",
- " SettleAmt = $10, //结算金额",
- " SettleStatus = $11, //结算状态",
- " Remark = $12, //备注",
- "});"
- ]
- },"删除某个仓库订单汇总": {
- "prefix": "ym-db-StoreMallOrderSummary-Delete",
- "body": [
- "StoreMallOrderSummary $1 = db.StoreMallOrderSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreMallOrderSummary.Remove($1);",
- "}"
- ]
- },
- "查询仓库SN激活统计列表": {
- "prefix": "ym-db-StoreSnActivateSummary-Find",
- "body": [
- "List<StoreSnActivateSummary> $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreSnActivateSummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询仓库SN激活统计列表,并取值": {
- "prefix": "ym-db-StoreSnActivateSummary-FindWithData",
- "body": [
- "List<StoreSnActivateSummary> $1 = db.StoreSnActivateSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreSnActivateSummary $3 in $1)",
- "{",
- " string TradeDate = $3.TradeDate; //交易日",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int StoreId = $3.StoreId; //仓库",
- " int AgentStoreId = $3.AgentStoreId; //代理分仓",
- " int BrandId = $3.BrandId; //产品类型",
- " int ActivateNum = $3.ActivateNum; //激活数量",
- " int RejectActNum = $3.RejectActNum; //互斥激活数量",
- " int TransferActNum = $3.TransferActNum; //划拨激活数量(循环机划拨激活数)",
- " int EffectActNum = $3.EffectActNum; //有效激活数量",
- " int UserApplyNum = $3.UserApplyNum; //创客申请数量",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询仓库SN激活统计": {
- "prefix": "ym-db-StoreSnActivateSummary-Exist",
- "body": [
- "bool $1 = db.StoreSnActivateSummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个仓库SN激活统计,并取值": {
- "prefix": "ym-db-StoreSnActivateSummary-FindByPrimaryKey",
- "body": [
- "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TradeDate = $1.TradeDate; //交易日",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int StoreId = $1.StoreId; //仓库",
- " int AgentStoreId = $1.AgentStoreId; //代理分仓",
- " int BrandId = $1.BrandId; //产品类型",
- " int ActivateNum = $1.ActivateNum; //激活数量",
- " int RejectActNum = $1.RejectActNum; //互斥激活数量",
- " int TransferActNum = $1.TransferActNum; //划拨激活数量(循环机划拨激活数)",
- " int EffectActNum = $1.EffectActNum; //有效激活数量",
- " int UserApplyNum = $1.UserApplyNum; //创客申请数量",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个仓库SN激活统计,并赋值": {
- "prefix": "ym-db-StoreSnActivateSummary-Update",
- "body": [
- "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TradeDate = $2; //交易日",
- " $1.TradeMonth = $3; //交易月",
- " $1.StoreId = $4; //仓库",
- " $1.AgentStoreId = $5; //代理分仓",
- " $1.BrandId = $6; //产品类型",
- " $1.ActivateNum = $7; //激活数量",
- " $1.RejectActNum = $8; //互斥激活数量",
- " $1.TransferActNum = $9; //划拨激活数量(循环机划拨激活数)",
- " $1.EffectActNum = $10; //有效激活数量",
- " $1.UserApplyNum = $11; //创客申请数量",
- " $1.Remark = $12; //备注",
- "}"
- ]
- },
- "获取仓库SN激活统计数量": {
- "prefix": "ym-db-StoreSnActivateSummary-FindAndCount",
- "body": [
- "int $1 = db.StoreSnActivateSummary.Count(m => $2);",
- ]
- },
- "添加仓库SN激活统计": {
- "prefix": "ym-db-StoreSnActivateSummary-Create",
- "body": [
- "db.StoreSnActivateSummary.Add(new StoreSnActivateSummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TradeDate = $1, //交易日",
- " TradeMonth = $2, //交易月",
- " StoreId = $3, //仓库",
- " AgentStoreId = $4, //代理分仓",
- " BrandId = $5, //产品类型",
- " ActivateNum = $6, //激活数量",
- " RejectActNum = $7, //互斥激活数量",
- " TransferActNum = $8, //划拨激活数量(循环机划拨激活数)",
- " EffectActNum = $9, //有效激活数量",
- " UserApplyNum = $10, //创客申请数量",
- " Remark = $11, //备注",
- "});"
- ]
- },"删除某个仓库SN激活统计": {
- "prefix": "ym-db-StoreSnActivateSummary-Delete",
- "body": [
- "StoreSnActivateSummary $1 = db.StoreSnActivateSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreSnActivateSummary.Remove($1);",
- "}"
- ]
- },
- "查询仓库库存变动记录列表": {
- "prefix": "ym-db-StoreStockChange-Find",
- "body": [
- "List<StoreStockChange> $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreStockChange $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询仓库库存变动记录列表,并取值": {
- "prefix": "ym-db-StoreStockChange-FindWithData",
- "body": [
- "List<StoreStockChange> $1 = db.StoreStockChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreStockChange $3 in $1)",
- "{",
- " int StoreId = $3.StoreId; //仓库",
- " int BrandId = $3.BrandId; //产品类型",
- " string ProductName = $3.ProductName; //产品名称",
- " string ChangeNo = $3.ChangeNo ; //变更单号",
- " string BizBatchNo = $3.BizBatchNo; //业务批次号",
- " int TransType = $3.TransType; //交易类型",
- " string SnNo = $3.SnNo; //SN编号",
- " int SnType = $3.SnType; //SN机具类型",
- " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
- " int SnStatus = $3.SnStatus; //SN状态",
- " int BindStatus = $3.BindStatus; //绑定状态",
- " int BindMerchant = $3.BindMerchant; //绑定商户",
- " int ActiveStatus = $3.ActiveStatus; //激活状态",
- " int ActRewardUserId = $3.ActRewardUserId; //激活奖励人",
- " string DeviceVendor = $3.DeviceVendor; //设备厂商",
- " string DeviceModel = $3.DeviceModel; //设备型号",
- " string DeviceType = $3.DeviceType; //设备类型",
- " int FromUserId = $3.FromUserId; //出货人",
- " DateTime FromDate = $3.FromDate; //出库时间",
- " string FromRemark = $3.FromRemark; //出库备注",
- " int ToUserId = $3.ToUserId; //收货人",
- " int ToStoreId = $3.ToStoreId; //退货收货仓库",
- " DateTime ToDate = $3.ToDate; //入库时间",
- " string ToRemark = $3.ToRemark; //入库备注",
- " int SourceStoreId = $3.SourceStoreId; //源仓库编号",
- " string ExpressNo = $3.ExpressNo; //快递单号",
- " string BrandType = $3.BrandType; //品牌类型",
- "}"
- ]
- },
- "查询仓库库存变动记录": {
- "prefix": "ym-db-StoreStockChange-Exist",
- "body": [
- "bool $1 = db.StoreStockChange.Any(m => m.Id == $2);",
- ]
- },
- "查询某个仓库库存变动记录,并取值": {
- "prefix": "ym-db-StoreStockChange-FindByPrimaryKey",
- "body": [
- "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int StoreId = $1.StoreId; //仓库",
- " int BrandId = $1.BrandId; //产品类型",
- " string ProductName = $1.ProductName; //产品名称",
- " string ChangeNo = $1.ChangeNo ; //变更单号",
- " string BizBatchNo = $1.BizBatchNo; //业务批次号",
- " int TransType = $1.TransType; //交易类型",
- " string SnNo = $1.SnNo; //SN编号",
- " int SnType = $1.SnType; //SN机具类型",
- " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
- " int SnStatus = $1.SnStatus; //SN状态",
- " int BindStatus = $1.BindStatus; //绑定状态",
- " int BindMerchant = $1.BindMerchant; //绑定商户",
- " int ActiveStatus = $1.ActiveStatus; //激活状态",
- " int ActRewardUserId = $1.ActRewardUserId; //激活奖励人",
- " string DeviceVendor = $1.DeviceVendor; //设备厂商",
- " string DeviceModel = $1.DeviceModel; //设备型号",
- " string DeviceType = $1.DeviceType; //设备类型",
- " int FromUserId = $1.FromUserId; //出货人",
- " DateTime FromDate = $1.FromDate; //出库时间",
- " string FromRemark = $1.FromRemark; //出库备注",
- " int ToUserId = $1.ToUserId; //收货人",
- " int ToStoreId = $1.ToStoreId; //退货收货仓库",
- " DateTime ToDate = $1.ToDate; //入库时间",
- " string ToRemark = $1.ToRemark; //入库备注",
- " int SourceStoreId = $1.SourceStoreId; //源仓库编号",
- " string ExpressNo = $1.ExpressNo; //快递单号",
- " string BrandType = $1.BrandType; //品牌类型",
- "}"
- ]
- },
- "查询某个仓库库存变动记录,并赋值": {
- "prefix": "ym-db-StoreStockChange-Update",
- "body": [
- "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.StoreId = $2; //仓库",
- " $1.BrandId = $3; //产品类型",
- " $1.ProductName = $4; //产品名称",
- " $1.ChangeNo = $5; //变更单号",
- " $1.BizBatchNo = $6; //业务批次号",
- " $1.TransType = $7; //交易类型",
- " $1.SnNo = $8; //SN编号",
- " $1.SnType = $9; //SN机具类型",
- " $1.StockOpDirect = $10; //库存操作方向",
- " $1.SnStatus = $11; //SN状态",
- " $1.BindStatus = $12; //绑定状态",
- " $1.BindMerchant = $13; //绑定商户",
- " $1.ActiveStatus = $14; //激活状态",
- " $1.ActRewardUserId = $15; //激活奖励人",
- " $1.DeviceVendor = $16; //设备厂商",
- " $1.DeviceModel = $17; //设备型号",
- " $1.DeviceType = $18; //设备类型",
- " $1.FromUserId = $19; //出货人",
- " $1.FromDate = $20; //出库时间",
- " $1.FromRemark = $21; //出库备注",
- " $1.ToUserId = $22; //收货人",
- " $1.ToStoreId = $23; //退货收货仓库",
- " $1.ToDate = $24; //入库时间",
- " $1.ToRemark = $25; //入库备注",
- " $1.SourceStoreId = $26; //源仓库编号",
- " $1.ExpressNo = $27; //快递单号",
- " $1.BrandType = $28; //品牌类型",
- "}"
- ]
- },
- "获取仓库库存变动记录数量": {
- "prefix": "ym-db-StoreStockChange-FindAndCount",
- "body": [
- "int $1 = db.StoreStockChange.Count(m => $2);",
- ]
- },
- "添加仓库库存变动记录": {
- "prefix": "ym-db-StoreStockChange-Create",
- "body": [
- "db.StoreStockChange.Add(new StoreStockChange()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " StoreId = $1, //仓库",
- " BrandId = $2, //产品类型",
- " ProductName = $3, //产品名称",
- " ChangeNo = $4, //变更单号",
- " BizBatchNo = $5, //业务批次号",
- " TransType = $6, //交易类型",
- " SnNo = $7, //SN编号",
- " SnType = $8, //SN机具类型",
- " StockOpDirect = $9, //库存操作方向",
- " SnStatus = $10, //SN状态",
- " BindStatus = $11, //绑定状态",
- " BindMerchant = $12, //绑定商户",
- " ActiveStatus = $13, //激活状态",
- " ActRewardUserId = $14, //激活奖励人",
- " DeviceVendor = $15, //设备厂商",
- " DeviceModel = $16, //设备型号",
- " DeviceType = $17, //设备类型",
- " FromUserId = $18, //出货人",
- " FromDate = $19, //出库时间",
- " FromRemark = $20, //出库备注",
- " ToUserId = $21, //收货人",
- " ToStoreId = $22, //退货收货仓库",
- " ToDate = $23, //入库时间",
- " ToRemark = $24, //入库备注",
- " SourceStoreId = $25, //源仓库编号",
- " ExpressNo = $26, //快递单号",
- " BrandType = $27, //品牌类型",
- "});"
- ]
- },"删除某个仓库库存变动记录": {
- "prefix": "ym-db-StoreStockChange-Delete",
- "body": [
- "StoreStockChange $1 = db.StoreStockChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreStockChange.Remove($1);",
- "}"
- ]
- },
- "查询兑换机具记录列表": {
- "prefix": "ym-db-StoreSwapSn-Find",
- "body": [
- "List<StoreSwapSn> $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreSwapSn $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询兑换机具记录列表,并取值": {
- "prefix": "ym-db-StoreSwapSn-FindWithData",
- "body": [
- "List<StoreSwapSn> $1 = db.StoreSwapSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (StoreSwapSn $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " string SnNo = $3.SnNo; //SN号",
- " int SnType = $3.SnType; //SN类型",
- " DateTime StandardDate = $3.StandardDate; //达标日期",
- " int ActType = $3.ActType; //激活类型",
- " string ActTypeDesc = $3.ActTypeDesc; //激活类型描述",
- " int SnStoreId = $3.SnStoreId; //SN仓库",
- " string PosType = $3.PosType; //POS类型",
- " int SwapStatus = $3.SwapStatus; //兑换状态",
- " int BizStatus = $3.BizStatus; //业务状态",
- " int RiskStatus = $3.RiskStatus; //风控状态",
- " string SwapExtProductTypes = $3.SwapExtProductTypes; //可兑换产品类型",
- " string SwapSnNo = $3.SwapSnNo; //兑换SN号",
- " string SwapApplyOrderNo = $3.SwapApplyOrderNo; //兑换申请单号",
- " DateTime SwapApplyDate = $3.SwapApplyDate; //兑换时间",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询兑换机具记录": {
- "prefix": "ym-db-StoreSwapSn-Exist",
- "body": [
- "bool $1 = db.StoreSwapSn.Any(m => m.Id == $2);",
- ]
- },
- "查询某个兑换机具记录,并取值": {
- "prefix": "ym-db-StoreSwapSn-FindByPrimaryKey",
- "body": [
- "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " string SnNo = $1.SnNo; //SN号",
- " int SnType = $1.SnType; //SN类型",
- " DateTime StandardDate = $1.StandardDate; //达标日期",
- " int ActType = $1.ActType; //激活类型",
- " string ActTypeDesc = $1.ActTypeDesc; //激活类型描述",
- " int SnStoreId = $1.SnStoreId; //SN仓库",
- " string PosType = $1.PosType; //POS类型",
- " int SwapStatus = $1.SwapStatus; //兑换状态",
- " int BizStatus = $1.BizStatus; //业务状态",
- " int RiskStatus = $1.RiskStatus; //风控状态",
- " string SwapExtProductTypes = $1.SwapExtProductTypes; //可兑换产品类型",
- " string SwapSnNo = $1.SwapSnNo; //兑换SN号",
- " string SwapApplyOrderNo = $1.SwapApplyOrderNo; //兑换申请单号",
- " DateTime SwapApplyDate = $1.SwapApplyDate; //兑换时间",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个兑换机具记录,并赋值": {
- "prefix": "ym-db-StoreSwapSn-Update",
- "body": [
- "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //品牌",
- " $1.SnNo = $4; //SN号",
- " $1.SnType = $5; //SN类型",
- " $1.StandardDate = $6; //达标日期",
- " $1.ActType = $7; //激活类型",
- " $1.ActTypeDesc = $8; //激活类型描述",
- " $1.SnStoreId = $9; //SN仓库",
- " $1.PosType = $10; //POS类型",
- " $1.SwapStatus = $11; //兑换状态",
- " $1.BizStatus = $12; //业务状态",
- " $1.RiskStatus = $13; //风控状态",
- " $1.SwapExtProductTypes = $14; //可兑换产品类型",
- " $1.SwapSnNo = $15; //兑换SN号",
- " $1.SwapApplyOrderNo = $16; //兑换申请单号",
- " $1.SwapApplyDate = $17; //兑换时间",
- " $1.Remark = $18; //备注",
- "}"
- ]
- },
- "获取兑换机具记录数量": {
- "prefix": "ym-db-StoreSwapSn-FindAndCount",
- "body": [
- "int $1 = db.StoreSwapSn.Count(m => $2);",
- ]
- },
- "添加兑换机具记录": {
- "prefix": "ym-db-StoreSwapSn-Create",
- "body": [
- "db.StoreSwapSn.Add(new StoreSwapSn()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //品牌",
- " SnNo = $3, //SN号",
- " SnType = $4, //SN类型",
- " StandardDate = $5, //达标日期",
- " ActType = $6, //激活类型",
- " ActTypeDesc = $7, //激活类型描述",
- " SnStoreId = $8, //SN仓库",
- " PosType = $9, //POS类型",
- " SwapStatus = $10, //兑换状态",
- " BizStatus = $11, //业务状态",
- " RiskStatus = $12, //风控状态",
- " SwapExtProductTypes = $13, //可兑换产品类型",
- " SwapSnNo = $14, //兑换SN号",
- " SwapApplyOrderNo = $15, //兑换申请单号",
- " SwapApplyDate = $16, //兑换时间",
- " Remark = $17, //备注",
- "});"
- ]
- },"删除某个兑换机具记录": {
- "prefix": "ym-db-StoreSwapSn-Delete",
- "body": [
- "StoreSwapSn $1 = db.StoreSwapSn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.StoreSwapSn.Remove($1);",
- "}"
- ]
- },
- "查询创客奖励记录列表": {
- "prefix": "ym-db-SysRechargeRecord-Find",
- "body": [
- "List<SysRechargeRecord> $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SysRechargeRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客奖励记录列表,并取值": {
- "prefix": "ym-db-SysRechargeRecord-FindWithData",
- "body": [
- "List<SysRechargeRecord> $1 = db.SysRechargeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SysRechargeRecord $3 in $1)",
- "{",
- " string RechargeRecNo = $3.RechargeRecNo; //充值流水号",
- " string PartnerTradeNo = $3.PartnerTradeNo; //业务单号",
- " int ProductType = $3.ProductType; //产品类型",
- " int UserId = $3.UserId; //创客",
- " int BizType = $3.BizType; //业务类型",
- " DateTime BizTime = $3.BizTime; //奖励时间",
- " decimal Amount = $3.Amount; //奖励金额",
- " int SyncStatus = $3.SyncStatus; //同步状态",
- " string BatchCode = $3.BatchCode; //批次号",
- " string ClientIp = $3.ClientIp; //客户IP",
- "}"
- ]
- },
- "查询创客奖励记录": {
- "prefix": "ym-db-SysRechargeRecord-Exist",
- "body": [
- "bool $1 = db.SysRechargeRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客奖励记录,并取值": {
- "prefix": "ym-db-SysRechargeRecord-FindByPrimaryKey",
- "body": [
- "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string RechargeRecNo = $1.RechargeRecNo; //充值流水号",
- " string PartnerTradeNo = $1.PartnerTradeNo; //业务单号",
- " int ProductType = $1.ProductType; //产品类型",
- " int UserId = $1.UserId; //创客",
- " int BizType = $1.BizType; //业务类型",
- " DateTime BizTime = $1.BizTime; //奖励时间",
- " decimal Amount = $1.Amount; //奖励金额",
- " int SyncStatus = $1.SyncStatus; //同步状态",
- " string BatchCode = $1.BatchCode; //批次号",
- " string ClientIp = $1.ClientIp; //客户IP",
- "}"
- ]
- },
- "查询某个创客奖励记录,并赋值": {
- "prefix": "ym-db-SysRechargeRecord-Update",
- "body": [
- "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.RechargeRecNo = $2; //充值流水号",
- " $1.PartnerTradeNo = $3; //业务单号",
- " $1.ProductType = $4; //产品类型",
- " $1.UserId = $5; //创客",
- " $1.BizType = $6; //业务类型",
- " $1.BizTime = $7; //奖励时间",
- " $1.Amount = $8; //奖励金额",
- " $1.SyncStatus = $9; //同步状态",
- " $1.BatchCode = $10; //批次号",
- " $1.ClientIp = $11; //客户IP",
- "}"
- ]
- },
- "获取创客奖励记录数量": {
- "prefix": "ym-db-SysRechargeRecord-FindAndCount",
- "body": [
- "int $1 = db.SysRechargeRecord.Count(m => $2);",
- ]
- },
- "添加创客奖励记录": {
- "prefix": "ym-db-SysRechargeRecord-Create",
- "body": [
- "db.SysRechargeRecord.Add(new SysRechargeRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " RechargeRecNo = $1, //充值流水号",
- " PartnerTradeNo = $2, //业务单号",
- " ProductType = $3, //产品类型",
- " UserId = $4, //创客",
- " BizType = $5, //业务类型",
- " BizTime = $6, //奖励时间",
- " Amount = $7, //奖励金额",
- " SyncStatus = $8, //同步状态",
- " BatchCode = $9, //批次号",
- " ClientIp = $10, //客户IP",
- "});"
- ]
- },"删除某个创客奖励记录": {
- "prefix": "ym-db-SysRechargeRecord-Delete",
- "body": [
- "SysRechargeRecord $1 = db.SysRechargeRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.SysRechargeRecord.Remove($1);",
- "}"
- ]
- },
- "查询开团申请列表": {
- "prefix": "ym-db-TeamApply-Find",
- "body": [
- "List<TeamApply> $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamApply $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开团申请列表,并取值": {
- "prefix": "ym-db-TeamApply-FindWithData",
- "body": [
- "List<TeamApply> $1 = db.TeamApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamApply $3 in $1)",
- "{",
- " string TeamNo = $3.TeamNo; //队伍编码",
- " string TeamName = $3.TeamName; //队伍名称",
- " int UserId = $3.UserId; //队长",
- " string ManagerNo = $3.ManagerNo; //渠道经理编号",
- " string ManagerName = $3.ManagerName; //渠道经理名称",
- " string Areas = $3.Areas; //特训营所在地区",
- " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
- " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间",
- " DateTime EnterStartDate = $3.EnterStartDate; //报名开始时间",
- " DateTime EnterEndDate = $3.EnterEndDate; //报名结束时间",
- " int MinUserNum = $3.MinUserNum; //最小队伍人数",
- " int MaxUserNum = $3.MaxUserNum; //最大队伍人数",
- " string WatchWord = $3.WatchWord; //口号",
- " DateTime AuditTime = $3.AuditTime; //审核时间",
- " int AuditResult = $3.AuditResult; //审核结果",
- " string AuditRemark = $3.AuditRemark; //审核备注",
- " int NotifyFlag = $3.NotifyFlag; //提醒标识",
- " string Remark = $3.Remark; //备注",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int TeamStatus = $3.TeamStatus; //组队状态",
- "}"
- ]
- },
- "查询开团申请": {
- "prefix": "ym-db-TeamApply-Exist",
- "body": [
- "bool $1 = db.TeamApply.Any(m => m.Id == $2);",
- ]
- },
- "查询某个开团申请,并取值": {
- "prefix": "ym-db-TeamApply-FindByPrimaryKey",
- "body": [
- "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TeamNo = $1.TeamNo; //队伍编码",
- " string TeamName = $1.TeamName; //队伍名称",
- " int UserId = $1.UserId; //队长",
- " string ManagerNo = $1.ManagerNo; //渠道经理编号",
- " string ManagerName = $1.ManagerName; //渠道经理名称",
- " string Areas = $1.Areas; //特训营所在地区",
- " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
- " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间",
- " DateTime EnterStartDate = $1.EnterStartDate; //报名开始时间",
- " DateTime EnterEndDate = $1.EnterEndDate; //报名结束时间",
- " int MinUserNum = $1.MinUserNum; //最小队伍人数",
- " int MaxUserNum = $1.MaxUserNum; //最大队伍人数",
- " string WatchWord = $1.WatchWord; //口号",
- " DateTime AuditTime = $1.AuditTime; //审核时间",
- " int AuditResult = $1.AuditResult; //审核结果",
- " string AuditRemark = $1.AuditRemark; //审核备注",
- " int NotifyFlag = $1.NotifyFlag; //提醒标识",
- " string Remark = $1.Remark; //备注",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int TeamStatus = $1.TeamStatus; //组队状态",
- "}"
- ]
- },
- "查询某个开团申请,并赋值": {
- "prefix": "ym-db-TeamApply-Update",
- "body": [
- "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TeamNo = $2; //队伍编码",
- " $1.TeamName = $3; //队伍名称",
- " $1.UserId = $4; //队长",
- " $1.ManagerNo = $5; //渠道经理编号",
- " $1.ManagerName = $6; //渠道经理名称",
- " $1.Areas = $7; //特训营所在地区",
- " $1.EffectStartDate = $8; //活动开始时间",
- " $1.EffectEndDate = $9; //活动结束时间",
- " $1.EnterStartDate = $10; //报名开始时间",
- " $1.EnterEndDate = $11; //报名结束时间",
- " $1.MinUserNum = $12; //最小队伍人数",
- " $1.MaxUserNum = $13; //最大队伍人数",
- " $1.WatchWord = $14; //口号",
- " $1.AuditTime = $15; //审核时间",
- " $1.AuditResult = $16; //审核结果",
- " $1.AuditRemark = $17; //审核备注",
- " $1.NotifyFlag = $18; //提醒标识",
- " $1.Remark = $19; //备注",
- " $1.TopUserId = $20; //顶级创客",
- " $1.TeamStatus = $21; //组队状态",
- "}"
- ]
- },
- "获取开团申请数量": {
- "prefix": "ym-db-TeamApply-FindAndCount",
- "body": [
- "int $1 = db.TeamApply.Count(m => $2);",
- ]
- },
- "添加开团申请": {
- "prefix": "ym-db-TeamApply-Create",
- "body": [
- "db.TeamApply.Add(new TeamApply()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TeamNo = $1, //队伍编码",
- " TeamName = $2, //队伍名称",
- " UserId = $3, //队长",
- " ManagerNo = $4, //渠道经理编号",
- " ManagerName = $5, //渠道经理名称",
- " Areas = $6, //特训营所在地区",
- " EffectStartDate = $7, //活动开始时间",
- " EffectEndDate = $8, //活动结束时间",
- " EnterStartDate = $9, //报名开始时间",
- " EnterEndDate = $10, //报名结束时间",
- " MinUserNum = $11, //最小队伍人数",
- " MaxUserNum = $12, //最大队伍人数",
- " WatchWord = $13, //口号",
- " AuditTime = $14, //审核时间",
- " AuditResult = $15, //审核结果",
- " AuditRemark = $16, //审核备注",
- " NotifyFlag = $17, //提醒标识",
- " Remark = $18, //备注",
- " TopUserId = $19, //顶级创客",
- " TeamStatus = $20, //组队状态",
- "});"
- ]
- },"删除某个开团申请": {
- "prefix": "ym-db-TeamApply-Delete",
- "body": [
- "TeamApply $1 = db.TeamApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamApply.Remove($1);",
- "}"
- ]
- },
- "查询团队名称为主键的关联表列表": {
- "prefix": "ym-db-TeamApplyForTeamName-Find",
- "body": [
- "List<TeamApplyForTeamName> $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamApplyForTeamName $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询团队名称为主键的关联表列表,并取值": {
- "prefix": "ym-db-TeamApplyForTeamName-FindWithData",
- "body": [
- "List<TeamApplyForTeamName> $1 = db.TeamApplyForTeamName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamApplyForTeamName $3 in $1)",
- "{",
- " string TeamName = $3.TeamName; //团队名称",
- " int TeamId = $3.TeamId; //团队Id",
- "}"
- ]
- },
- "查询团队名称为主键的关联表": {
- "prefix": "ym-db-TeamApplyForTeamName-Exist",
- "body": [
- "bool $1 = db.TeamApplyForTeamName.Any(m => m.TeamName == $2);",
- ]
- },
- "查询某个团队名称为主键的关联表,并取值": {
- "prefix": "ym-db-TeamApplyForTeamName-FindByPrimaryKey",
- "body": [
- "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
- "if ($1 != null)",
- "{",
- " string TeamName = $1.TeamName; //团队名称",
- " int TeamId = $1.TeamId; //团队Id",
- "}"
- ]
- },
- "查询某个团队名称为主键的关联表,并赋值": {
- "prefix": "ym-db-TeamApplyForTeamName-Update",
- "body": [
- "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
- "if ($1 != null)",
- "{",
- " $1.TeamName = $2; //团队名称",
- " $1.TeamId = $3; //团队Id",
- "}"
- ]
- },
- "获取团队名称为主键的关联表数量": {
- "prefix": "ym-db-TeamApplyForTeamName-FindAndCount",
- "body": [
- "int $1 = db.TeamApplyForTeamName.Count(m => $2);",
- ]
- },
- "添加团队名称为主键的关联表": {
- "prefix": "ym-db-TeamApplyForTeamName-Create",
- "body": [
- "db.TeamApplyForTeamName.Add(new TeamApplyForTeamName()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TeamName = $1, //团队名称",
- " TeamId = $2, //团队Id",
- "});"
- ]
- },"删除某个团队名称为主键的关联表": {
- "prefix": "ym-db-TeamApplyForTeamName-Delete",
- "body": [
- "TeamApplyForTeamName $1 = db.TeamApplyForTeamName.FirstOrDefault(m => m.TeamName == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamApplyForTeamName.Remove($1);",
- "}"
- ]
- },
- "查询团队编号为主键的关联表列表": {
- "prefix": "ym-db-TeamApplyForTeamNo-Find",
- "body": [
- "List<TeamApplyForTeamNo> $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamApplyForTeamNo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询团队编号为主键的关联表列表,并取值": {
- "prefix": "ym-db-TeamApplyForTeamNo-FindWithData",
- "body": [
- "List<TeamApplyForTeamNo> $1 = db.TeamApplyForTeamNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamApplyForTeamNo $3 in $1)",
- "{",
- " string TeamNo = $3.TeamNo; //团队编号",
- " int TeamId = $3.TeamId; //团队Id",
- "}"
- ]
- },
- "查询团队编号为主键的关联表": {
- "prefix": "ym-db-TeamApplyForTeamNo-Exist",
- "body": [
- "bool $1 = db.TeamApplyForTeamNo.Any(m => m.TeamNo == $2);",
- ]
- },
- "查询某个团队编号为主键的关联表,并取值": {
- "prefix": "ym-db-TeamApplyForTeamNo-FindByPrimaryKey",
- "body": [
- "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
- "if ($1 != null)",
- "{",
- " string TeamNo = $1.TeamNo; //团队编号",
- " int TeamId = $1.TeamId; //团队Id",
- "}"
- ]
- },
- "查询某个团队编号为主键的关联表,并赋值": {
- "prefix": "ym-db-TeamApplyForTeamNo-Update",
- "body": [
- "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
- "if ($1 != null)",
- "{",
- " $1.TeamNo = $2; //团队编号",
- " $1.TeamId = $3; //团队Id",
- "}"
- ]
- },
- "获取团队编号为主键的关联表数量": {
- "prefix": "ym-db-TeamApplyForTeamNo-FindAndCount",
- "body": [
- "int $1 = db.TeamApplyForTeamNo.Count(m => $2);",
- ]
- },
- "添加团队编号为主键的关联表": {
- "prefix": "ym-db-TeamApplyForTeamNo-Create",
- "body": [
- "db.TeamApplyForTeamNo.Add(new TeamApplyForTeamNo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TeamNo = $1, //团队编号",
- " TeamId = $2, //团队Id",
- "});"
- ]
- },"删除某个团队编号为主键的关联表": {
- "prefix": "ym-db-TeamApplyForTeamNo-Delete",
- "body": [
- "TeamApplyForTeamNo $1 = db.TeamApplyForTeamNo.FirstOrDefault(m => m.TeamNo == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamApplyForTeamNo.Remove($1);",
- "}"
- ]
- },
- "查询开团黑名单列表": {
- "prefix": "ym-db-TeamBlackList-Find",
- "body": [
- "List<TeamBlackList> $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamBlackList $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开团黑名单列表,并取值": {
- "prefix": "ym-db-TeamBlackList-FindWithData",
- "body": [
- "List<TeamBlackList> $1 = db.TeamBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamBlackList $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " string ManagerNo = $3.ManagerNo; //渠道经理编号",
- " string ManagerName = $3.ManagerName; //渠道经理名称",
- " DateTime EffectStartDate = $3.EffectStartDate; //生效时间",
- " DateTime EffectEndDate = $3.EffectEndDate; //失效时间",
- " string Remark = $3.Remark; //备注",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int BlackStatus = $3.BlackStatus; //状态",
- "}"
- ]
- },
- "查询开团黑名单": {
- "prefix": "ym-db-TeamBlackList-Exist",
- "body": [
- "bool $1 = db.TeamBlackList.Any(m => m.Id == $2);",
- ]
- },
- "查询某个开团黑名单,并取值": {
- "prefix": "ym-db-TeamBlackList-FindByPrimaryKey",
- "body": [
- "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " string ManagerNo = $1.ManagerNo; //渠道经理编号",
- " string ManagerName = $1.ManagerName; //渠道经理名称",
- " DateTime EffectStartDate = $1.EffectStartDate; //生效时间",
- " DateTime EffectEndDate = $1.EffectEndDate; //失效时间",
- " string Remark = $1.Remark; //备注",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int BlackStatus = $1.BlackStatus; //状态",
- "}"
- ]
- },
- "查询某个开团黑名单,并赋值": {
- "prefix": "ym-db-TeamBlackList-Update",
- "body": [
- "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.ManagerNo = $3; //渠道经理编号",
- " $1.ManagerName = $4; //渠道经理名称",
- " $1.EffectStartDate = $5; //生效时间",
- " $1.EffectEndDate = $6; //失效时间",
- " $1.Remark = $7; //备注",
- " $1.TopUserId = $8; //顶级创客",
- " $1.BlackStatus = $9; //状态",
- "}"
- ]
- },
- "获取开团黑名单数量": {
- "prefix": "ym-db-TeamBlackList-FindAndCount",
- "body": [
- "int $1 = db.TeamBlackList.Count(m => $2);",
- ]
- },
- "添加开团黑名单": {
- "prefix": "ym-db-TeamBlackList-Create",
- "body": [
- "db.TeamBlackList.Add(new TeamBlackList()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " ManagerNo = $2, //渠道经理编号",
- " ManagerName = $3, //渠道经理名称",
- " EffectStartDate = $4, //生效时间",
- " EffectEndDate = $5, //失效时间",
- " Remark = $6, //备注",
- " TopUserId = $7, //顶级创客",
- " BlackStatus = $8, //状态",
- "});"
- ]
- },"删除某个开团黑名单": {
- "prefix": "ym-db-TeamBlackList-Delete",
- "body": [
- "TeamBlackList $1 = db.TeamBlackList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamBlackList.Remove($1);",
- "}"
- ]
- },
- "查询开团配置列表": {
- "prefix": "ym-db-TeamConfig-Find",
- "body": [
- "List<TeamConfig> $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamConfig $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开团配置列表,并取值": {
- "prefix": "ym-db-TeamConfig-FindWithData",
- "body": [
- "List<TeamConfig> $1 = db.TeamConfig.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamConfig $3 in $1)",
- "{",
- " string LimitBuddyNo = $3.LimitBuddyNo; //限制人",
- " int MinUserNum = $3.MinUserNum; //最小队伍人数",
- " int MaxUserNum = $3.MaxUserNum; //最大队伍人数",
- " int MinCycleNum = $3.MinCycleNum; //最小周期天数",
- " int MaxCycleNum = $3.MaxCycleNum; //最大周期天数",
- " int MinStartDayLimit = $3.MinStartDayLimit; //最小间隔天数",
- " int MaxStartDayLimit = $3.MaxStartDayLimit; //最大间隔天数",
- " ulong OverlineStatus = $3.OverlineStatus; //是否允许跨顶级线报名",
- " int BlacklistCycle = $3.BlacklistCycle; //黑名单周期",
- " int EnterEndMin = $3.EnterEndMin; //活动时间差",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询开团配置": {
- "prefix": "ym-db-TeamConfig-Exist",
- "body": [
- "bool $1 = db.TeamConfig.Any(m => m.Id == $2);",
- ]
- },
- "查询某个开团配置,并取值": {
- "prefix": "ym-db-TeamConfig-FindByPrimaryKey",
- "body": [
- "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string LimitBuddyNo = $1.LimitBuddyNo; //限制人",
- " int MinUserNum = $1.MinUserNum; //最小队伍人数",
- " int MaxUserNum = $1.MaxUserNum; //最大队伍人数",
- " int MinCycleNum = $1.MinCycleNum; //最小周期天数",
- " int MaxCycleNum = $1.MaxCycleNum; //最大周期天数",
- " int MinStartDayLimit = $1.MinStartDayLimit; //最小间隔天数",
- " int MaxStartDayLimit = $1.MaxStartDayLimit; //最大间隔天数",
- " ulong OverlineStatus = $1.OverlineStatus; //是否允许跨顶级线报名",
- " int BlacklistCycle = $1.BlacklistCycle; //黑名单周期",
- " int EnterEndMin = $1.EnterEndMin; //活动时间差",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个开团配置,并赋值": {
- "prefix": "ym-db-TeamConfig-Update",
- "body": [
- "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.LimitBuddyNo = $2; //限制人",
- " $1.MinUserNum = $3; //最小队伍人数",
- " $1.MaxUserNum = $4; //最大队伍人数",
- " $1.MinCycleNum = $5; //最小周期天数",
- " $1.MaxCycleNum = $6; //最大周期天数",
- " $1.MinStartDayLimit = $7; //最小间隔天数",
- " $1.MaxStartDayLimit = $8; //最大间隔天数",
- " $1.OverlineStatus = $9; //是否允许跨顶级线报名",
- " $1.BlacklistCycle = $10; //黑名单周期",
- " $1.EnterEndMin = $11; //活动时间差",
- " $1.Remark = $12; //备注",
- "}"
- ]
- },
- "获取开团配置数量": {
- "prefix": "ym-db-TeamConfig-FindAndCount",
- "body": [
- "int $1 = db.TeamConfig.Count(m => $2);",
- ]
- },
- "添加开团配置": {
- "prefix": "ym-db-TeamConfig-Create",
- "body": [
- "db.TeamConfig.Add(new TeamConfig()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " LimitBuddyNo = $1, //限制人",
- " MinUserNum = $2, //最小队伍人数",
- " MaxUserNum = $3, //最大队伍人数",
- " MinCycleNum = $4, //最小周期天数",
- " MaxCycleNum = $5, //最大周期天数",
- " MinStartDayLimit = $6, //最小间隔天数",
- " MaxStartDayLimit = $7, //最大间隔天数",
- " OverlineStatus = $8, //是否允许跨顶级线报名",
- " BlacklistCycle = $9, //黑名单周期",
- " EnterEndMin = $10, //活动时间差",
- " Remark = $11, //备注",
- "});"
- ]
- },"删除某个开团配置": {
- "prefix": "ym-db-TeamConfig-Delete",
- "body": [
- "TeamConfig $1 = db.TeamConfig.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamConfig.Remove($1);",
- "}"
- ]
- },
- "查询特训营团队排行榜列表": {
- "prefix": "ym-db-TeamDayTop-Find",
- "body": [
- "List<TeamDayTop> $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamDayTop $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询特训营团队排行榜列表,并取值": {
- "prefix": "ym-db-TeamDayTop-FindWithData",
- "body": [
- "List<TeamDayTop> $1 = db.TeamDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamDayTop $3 in $1)",
- "{",
- " string StatDate = $3.StatDate; //统计日",
- " string StatMonth = $3.StatMonth; //统计月",
- " int UserId = $3.UserId; //创客",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int BrandId = $3.BrandId; //品牌",
- " int TeamId = $3.TeamId; //队伍",
- " int TeamUserId = $3.TeamUserId; //团队长创客",
- " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间",
- " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间",
- " int ActMerNum = $3.ActMerNum; //团员直营激活商户数",
- " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询特训营团队排行榜": {
- "prefix": "ym-db-TeamDayTop-Exist",
- "body": [
- "bool $1 = db.TeamDayTop.Any(m => m.Id == $2);",
- ]
- },
- "查询某个特训营团队排行榜,并取值": {
- "prefix": "ym-db-TeamDayTop-FindByPrimaryKey",
- "body": [
- "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string StatDate = $1.StatDate; //统计日",
- " string StatMonth = $1.StatMonth; //统计月",
- " int UserId = $1.UserId; //创客",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int BrandId = $1.BrandId; //品牌",
- " int TeamId = $1.TeamId; //队伍",
- " int TeamUserId = $1.TeamUserId; //团队长创客",
- " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间",
- " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间",
- " int ActMerNum = $1.ActMerNum; //团员直营激活商户数",
- " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个特训营团队排行榜,并赋值": {
- "prefix": "ym-db-TeamDayTop-Update",
- "body": [
- "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.StatDate = $2; //统计日",
- " $1.StatMonth = $3; //统计月",
- " $1.UserId = $4; //创客",
- " $1.TopUserId = $5; //顶级创客",
- " $1.BrandId = $6; //品牌",
- " $1.TeamId = $7; //队伍",
- " $1.TeamUserId = $8; //团队长创客",
- " $1.TeamStartDate = $9; //队伍开始时间",
- " $1.TeamEndDate = $10; //队伍结束时间",
- " $1.ActMerNum = $11; //团员直营激活商户数",
- " $1.TeamActMerNum = $12; //队伍直营激活商户数",
- " $1.Remark = $13; //备注",
- "}"
- ]
- },
- "获取特训营团队排行榜数量": {
- "prefix": "ym-db-TeamDayTop-FindAndCount",
- "body": [
- "int $1 = db.TeamDayTop.Count(m => $2);",
- ]
- },
- "添加特训营团队排行榜": {
- "prefix": "ym-db-TeamDayTop-Create",
- "body": [
- "db.TeamDayTop.Add(new TeamDayTop()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " StatDate = $1, //统计日",
- " StatMonth = $2, //统计月",
- " UserId = $3, //创客",
- " TopUserId = $4, //顶级创客",
- " BrandId = $5, //品牌",
- " TeamId = $6, //队伍",
- " TeamUserId = $7, //团队长创客",
- " TeamStartDate = $8, //队伍开始时间",
- " TeamEndDate = $9, //队伍结束时间",
- " ActMerNum = $10, //团员直营激活商户数",
- " TeamActMerNum = $11, //队伍直营激活商户数",
- " Remark = $12, //备注",
- "});"
- ]
- },"删除某个特训营团队排行榜": {
- "prefix": "ym-db-TeamDayTop-Delete",
- "body": [
- "TeamDayTop $1 = db.TeamDayTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamDayTop.Remove($1);",
- "}"
- ]
- },
- "查询参团申请列表": {
- "prefix": "ym-db-TeamOfferApply-Find",
- "body": [
- "List<TeamOfferApply> $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamOfferApply $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询参团申请列表,并取值": {
- "prefix": "ym-db-TeamOfferApply-FindWithData",
- "body": [
- "List<TeamOfferApply> $1 = db.TeamOfferApply.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamOfferApply $3 in $1)",
- "{",
- " string ManagerNo = $3.ManagerNo; //渠道经理编号",
- " string ManagerName = $3.ManagerName; //渠道经理名称",
- " string Areas = $3.Areas; //特训营所在地区",
- " DateTime EffectStartDate = $3.EffectStartDate; //活动开始时间",
- " DateTime EffectEndDate = $3.EffectEndDate; //活动结束时间",
- " DateTime EnterDate = $3.EnterDate; //报名时间",
- " DateTime AuditTime = $3.AuditTime; //审核时间",
- " int AuditResult = $3.AuditResult; //审核结果",
- " string AuditRemark = $3.AuditRemark; //审核备注",
- " int NotifyFlag = $3.NotifyFlag; //提醒标识",
- " string Remark = $3.Remark; //备注",
- " int UserId = $3.UserId; //创客",
- " int TeamId = $3.TeamId; //团队",
- " int TeamLeader = $3.TeamLeader; //队长",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int TeamApplyStatus = $3.TeamApplyStatus; //组队申请状态",
- " int TeamStatus = $3.TeamStatus; //状态",
- "}"
- ]
- },
- "查询参团申请": {
- "prefix": "ym-db-TeamOfferApply-Exist",
- "body": [
- "bool $1 = db.TeamOfferApply.Any(m => m.Id == $2);",
- ]
- },
- "查询某个参团申请,并取值": {
- "prefix": "ym-db-TeamOfferApply-FindByPrimaryKey",
- "body": [
- "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ManagerNo = $1.ManagerNo; //渠道经理编号",
- " string ManagerName = $1.ManagerName; //渠道经理名称",
- " string Areas = $1.Areas; //特训营所在地区",
- " DateTime EffectStartDate = $1.EffectStartDate; //活动开始时间",
- " DateTime EffectEndDate = $1.EffectEndDate; //活动结束时间",
- " DateTime EnterDate = $1.EnterDate; //报名时间",
- " DateTime AuditTime = $1.AuditTime; //审核时间",
- " int AuditResult = $1.AuditResult; //审核结果",
- " string AuditRemark = $1.AuditRemark; //审核备注",
- " int NotifyFlag = $1.NotifyFlag; //提醒标识",
- " string Remark = $1.Remark; //备注",
- " int UserId = $1.UserId; //创客",
- " int TeamId = $1.TeamId; //团队",
- " int TeamLeader = $1.TeamLeader; //队长",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int TeamApplyStatus = $1.TeamApplyStatus; //组队申请状态",
- " int TeamStatus = $1.TeamStatus; //状态",
- "}"
- ]
- },
- "查询某个参团申请,并赋值": {
- "prefix": "ym-db-TeamOfferApply-Update",
- "body": [
- "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ManagerNo = $2; //渠道经理编号",
- " $1.ManagerName = $3; //渠道经理名称",
- " $1.Areas = $4; //特训营所在地区",
- " $1.EffectStartDate = $5; //活动开始时间",
- " $1.EffectEndDate = $6; //活动结束时间",
- " $1.EnterDate = $7; //报名时间",
- " $1.AuditTime = $8; //审核时间",
- " $1.AuditResult = $9; //审核结果",
- " $1.AuditRemark = $10; //审核备注",
- " $1.NotifyFlag = $11; //提醒标识",
- " $1.Remark = $12; //备注",
- " $1.UserId = $13; //创客",
- " $1.TeamId = $14; //团队",
- " $1.TeamLeader = $15; //队长",
- " $1.TopUserId = $16; //顶级创客",
- " $1.TeamApplyStatus = $17; //组队申请状态",
- " $1.TeamStatus = $18; //状态",
- "}"
- ]
- },
- "获取参团申请数量": {
- "prefix": "ym-db-TeamOfferApply-FindAndCount",
- "body": [
- "int $1 = db.TeamOfferApply.Count(m => $2);",
- ]
- },
- "添加参团申请": {
- "prefix": "ym-db-TeamOfferApply-Create",
- "body": [
- "db.TeamOfferApply.Add(new TeamOfferApply()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ManagerNo = $1, //渠道经理编号",
- " ManagerName = $2, //渠道经理名称",
- " Areas = $3, //特训营所在地区",
- " EffectStartDate = $4, //活动开始时间",
- " EffectEndDate = $5, //活动结束时间",
- " EnterDate = $6, //报名时间",
- " AuditTime = $7, //审核时间",
- " AuditResult = $8, //审核结果",
- " AuditRemark = $9, //审核备注",
- " NotifyFlag = $10, //提醒标识",
- " Remark = $11, //备注",
- " UserId = $12, //创客",
- " TeamId = $13, //团队",
- " TeamLeader = $14, //队长",
- " TopUserId = $15, //顶级创客",
- " TeamApplyStatus = $16, //组队申请状态",
- " TeamStatus = $17, //状态",
- "});"
- ]
- },"删除某个参团申请": {
- "prefix": "ym-db-TeamOfferApply-Delete",
- "body": [
- "TeamOfferApply $1 = db.TeamOfferApply.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamOfferApply.Remove($1);",
- "}"
- ]
- },
- "查询特训营个人排行榜列表": {
- "prefix": "ym-db-TeamPersonDayTop-Find",
- "body": [
- "List<TeamPersonDayTop> $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamPersonDayTop $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询特训营个人排行榜列表,并取值": {
- "prefix": "ym-db-TeamPersonDayTop-FindWithData",
- "body": [
- "List<TeamPersonDayTop> $1 = db.TeamPersonDayTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TeamPersonDayTop $3 in $1)",
- "{",
- " string StatDate = $3.StatDate; //统计日",
- " string StatMonth = $3.StatMonth; //统计月",
- " int UserId = $3.UserId; //创客",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int BrandId = $3.BrandId; //品牌",
- " int TeamId = $3.TeamId; //队伍",
- " int TeamUserId = $3.TeamUserId; //团队长创客",
- " DateTime TeamStartDate = $3.TeamStartDate; //队伍开始时间",
- " DateTime TeamEndDate = $3.TeamEndDate; //队伍结束时间",
- " int ActMerNum = $3.ActMerNum; //团员直营激活商户数",
- " int TeamActMerNum = $3.TeamActMerNum; //队伍直营激活商户数",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询特训营个人排行榜": {
- "prefix": "ym-db-TeamPersonDayTop-Exist",
- "body": [
- "bool $1 = db.TeamPersonDayTop.Any(m => m.Id == $2);",
- ]
- },
- "查询某个特训营个人排行榜,并取值": {
- "prefix": "ym-db-TeamPersonDayTop-FindByPrimaryKey",
- "body": [
- "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string StatDate = $1.StatDate; //统计日",
- " string StatMonth = $1.StatMonth; //统计月",
- " int UserId = $1.UserId; //创客",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int BrandId = $1.BrandId; //品牌",
- " int TeamId = $1.TeamId; //队伍",
- " int TeamUserId = $1.TeamUserId; //团队长创客",
- " DateTime TeamStartDate = $1.TeamStartDate; //队伍开始时间",
- " DateTime TeamEndDate = $1.TeamEndDate; //队伍结束时间",
- " int ActMerNum = $1.ActMerNum; //团员直营激活商户数",
- " int TeamActMerNum = $1.TeamActMerNum; //队伍直营激活商户数",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个特训营个人排行榜,并赋值": {
- "prefix": "ym-db-TeamPersonDayTop-Update",
- "body": [
- "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.StatDate = $2; //统计日",
- " $1.StatMonth = $3; //统计月",
- " $1.UserId = $4; //创客",
- " $1.TopUserId = $5; //顶级创客",
- " $1.BrandId = $6; //品牌",
- " $1.TeamId = $7; //队伍",
- " $1.TeamUserId = $8; //团队长创客",
- " $1.TeamStartDate = $9; //队伍开始时间",
- " $1.TeamEndDate = $10; //队伍结束时间",
- " $1.ActMerNum = $11; //团员直营激活商户数",
- " $1.TeamActMerNum = $12; //队伍直营激活商户数",
- " $1.Remark = $13; //备注",
- "}"
- ]
- },
- "获取特训营个人排行榜数量": {
- "prefix": "ym-db-TeamPersonDayTop-FindAndCount",
- "body": [
- "int $1 = db.TeamPersonDayTop.Count(m => $2);",
- ]
- },
- "添加特训营个人排行榜": {
- "prefix": "ym-db-TeamPersonDayTop-Create",
- "body": [
- "db.TeamPersonDayTop.Add(new TeamPersonDayTop()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " StatDate = $1, //统计日",
- " StatMonth = $2, //统计月",
- " UserId = $3, //创客",
- " TopUserId = $4, //顶级创客",
- " BrandId = $5, //品牌",
- " TeamId = $6, //队伍",
- " TeamUserId = $7, //团队长创客",
- " TeamStartDate = $8, //队伍开始时间",
- " TeamEndDate = $9, //队伍结束时间",
- " ActMerNum = $10, //团员直营激活商户数",
- " TeamActMerNum = $11, //队伍直营激活商户数",
- " Remark = $12, //备注",
- "});"
- ]
- },"删除某个特训营个人排行榜": {
- "prefix": "ym-db-TeamPersonDayTop-Delete",
- "body": [
- "TeamPersonDayTop $1 = db.TeamPersonDayTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TeamPersonDayTop.Remove($1);",
- "}"
- ]
- },
- "查询交易日汇总列表": {
- "prefix": "ym-db-TradeDaySummary-Find",
- "body": [
- "List<TradeDaySummary> $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TradeDaySummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询交易日汇总列表,并取值": {
- "prefix": "ym-db-TradeDaySummary-FindWithData",
- "body": [
- "List<TradeDaySummary> $1 = db.TradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TradeDaySummary $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " string TradeDate = $3.TradeDate; //交易日",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int BrandId = $3.BrandId; //品牌",
- " string MgrNo = $3.MgrNo; //渠道经理编号",
- " string MgrName = $3.MgrName; //渠道经理姓名",
- " decimal NotHelpDirectTradeAmt = $3.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)",
- " decimal NotHelpNonDirectTradeAmt = $3.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)",
- " decimal NotHelpDirectCreditTradeAmt = $3.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)",
- " decimal NotHelpNonDirectCreditTradeAmt = $3.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)",
- " decimal NotHelpDirectQrCreditTradeAmt = $3.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpNonDirectQrCreditTradeAmt = $3.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpDirectNonQrCreditTradeAmt = $3.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpNonDirectNonQrCreditTradeAmt = $3.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpDirectDebitTradeAmt = $3.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)",
- " decimal NotHelpDirectDebitCapTradeAmt = $3.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)",
- " int NotHelpDirectDebitCapNum = $3.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)",
- " decimal NotHelpNonDirectDebitTradeAmt = $3.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)",
- " decimal NotHelpNonDirectDebitCapTradeAmt = $3.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)",
- " int NotHelpNonDirectDebitCapNum = $3.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)",
- " decimal NotHelpDirectQrDebitTradeAmt = $3.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)",
- " decimal NotHelpNonDirectQrDebitTradeAmt = $3.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)",
- " decimal NotHelpDirectNonQrDebitTradeAmt = $3.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)",
- " decimal NotHelpNonDirectNonQrDebitTradeAmt = $3.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)",
- " decimal HelpDirectTradeAmt = $3.HelpDirectTradeAmt; //直营商户交易总额(扶持期)",
- " decimal HelpNonDirectTradeAmt = $3.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)",
- " decimal HelpDirectCreditTradeAmt = $3.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)",
- " decimal HelpNonDirectCreditTradeAmt = $3.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)",
- " decimal HelpDirectQrCreditTradeAmt = $3.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)",
- " decimal HelpNonDirectQrCreditTradeAmt = $3.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)",
- " decimal HelpDirectNonQrCreditTradeAmt = $3.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)",
- " decimal HelpNonDirectNonQrCreditTradeAmt = $3.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)",
- " decimal HelpDirectDebitTradeAmt = $3.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)",
- " decimal HelpDirectDebitCapTradeAmt = $3.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)",
- " decimal HelpDirectDebitCapNum = $3.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)",
- " decimal HelpNonDirectDebitTradeAmt = $3.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)",
- " decimal HelpNonDirectDebitCapTradeAmt = $3.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)",
- " decimal HelpNonDirectDebitCapNum = $3.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)",
- " decimal HelpDirectQrDebitTradeAmt = $3.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)",
- " decimal HelpNonDirectQrDebitTradeAmt = $3.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)",
- " decimal HelpDirectNonQrDebitTradeAmt = $3.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)",
- " decimal HelpNonDirectNonQrDebitTradeAmt = $3.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询交易日汇总": {
- "prefix": "ym-db-TradeDaySummary-Exist",
- "body": [
- "bool $1 = db.TradeDaySummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个交易日汇总,并取值": {
- "prefix": "ym-db-TradeDaySummary-FindByPrimaryKey",
- "body": [
- "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " string TradeDate = $1.TradeDate; //交易日",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int BrandId = $1.BrandId; //品牌",
- " string MgrNo = $1.MgrNo; //渠道经理编号",
- " string MgrName = $1.MgrName; //渠道经理姓名",
- " decimal NotHelpDirectTradeAmt = $1.NotHelpDirectTradeAmt; //直营商户交易总额(非扶持期)",
- " decimal NotHelpNonDirectTradeAmt = $1.NotHelpNonDirectTradeAmt; //非直营商户交易总额(非扶持期)",
- " decimal NotHelpDirectCreditTradeAmt = $1.NotHelpDirectCreditTradeAmt; //直营贷记卡交易总额(非扶持期)",
- " decimal NotHelpNonDirectCreditTradeAmt = $1.NotHelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(非扶持期)",
- " decimal NotHelpDirectQrCreditTradeAmt = $1.NotHelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpNonDirectQrCreditTradeAmt = $1.NotHelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpDirectNonQrCreditTradeAmt = $1.NotHelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpNonDirectNonQrCreditTradeAmt = $1.NotHelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(非扶持期)",
- " decimal NotHelpDirectDebitTradeAmt = $1.NotHelpDirectDebitTradeAmt; //直营商户借记卡交易总额(非扶持期)",
- " decimal NotHelpDirectDebitCapTradeAmt = $1.NotHelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(非扶持期)",
- " int NotHelpDirectDebitCapNum = $1.NotHelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(非扶持期)",
- " decimal NotHelpNonDirectDebitTradeAmt = $1.NotHelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(非扶持期)",
- " decimal NotHelpNonDirectDebitCapTradeAmt = $1.NotHelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(非扶持期)",
- " int NotHelpNonDirectDebitCapNum = $1.NotHelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(非扶持期)",
- " decimal NotHelpDirectQrDebitTradeAmt = $1.NotHelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(非扶持期)",
- " decimal NotHelpNonDirectQrDebitTradeAmt = $1.NotHelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(非扶持期)",
- " decimal NotHelpDirectNonQrDebitTradeAmt = $1.NotHelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(非扶持期)",
- " decimal NotHelpNonDirectNonQrDebitTradeAmt = $1.NotHelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(非扶持期)",
- " decimal HelpDirectTradeAmt = $1.HelpDirectTradeAmt; //直营商户交易总额(扶持期)",
- " decimal HelpNonDirectTradeAmt = $1.HelpNonDirectTradeAmt; //非直营商户交易总额(扶持期)",
- " decimal HelpDirectCreditTradeAmt = $1.HelpDirectCreditTradeAmt; //直营贷记卡交易总额(扶持期)",
- " decimal HelpNonDirectCreditTradeAmt = $1.HelpNonDirectCreditTradeAmt; //非直营贷记卡交易总额(扶持期)",
- " decimal HelpDirectQrCreditTradeAmt = $1.HelpDirectQrCreditTradeAmt; //直营云闪付贷记卡交易额(扶持期)",
- " decimal HelpNonDirectQrCreditTradeAmt = $1.HelpNonDirectQrCreditTradeAmt; //非直营云闪付贷记卡交易额(扶持期)",
- " decimal HelpDirectNonQrCreditTradeAmt = $1.HelpDirectNonQrCreditTradeAmt; //直营非云闪付贷记卡交易额(扶持期)",
- " decimal HelpNonDirectNonQrCreditTradeAmt = $1.HelpNonDirectNonQrCreditTradeAmt; //非直营非云闪付贷记卡交易额(扶持期)",
- " decimal HelpDirectDebitTradeAmt = $1.HelpDirectDebitTradeAmt; //直营商户借记卡交易总额(扶持期)",
- " decimal HelpDirectDebitCapTradeAmt = $1.HelpDirectDebitCapTradeAmt; //直营商户借记卡封顶交易总金额(扶持期)",
- " decimal HelpDirectDebitCapNum = $1.HelpDirectDebitCapNum; //直营商户借记卡封顶交易总数(扶持期)",
- " decimal HelpNonDirectDebitTradeAmt = $1.HelpNonDirectDebitTradeAmt; //非直营商户借记卡交易总额(扶持期)",
- " decimal HelpNonDirectDebitCapTradeAmt = $1.HelpNonDirectDebitCapTradeAmt; //非直营商户借记卡封顶交易总金额(扶持期)",
- " decimal HelpNonDirectDebitCapNum = $1.HelpNonDirectDebitCapNum; //非直营商户借记卡封顶交易总数(扶持期)",
- " decimal HelpDirectQrDebitTradeAmt = $1.HelpDirectQrDebitTradeAmt; //直营云闪付非封顶借记卡(扶持期)",
- " decimal HelpNonDirectQrDebitTradeAmt = $1.HelpNonDirectQrDebitTradeAmt; //非直营云闪付非封顶借记卡(扶持期)",
- " decimal HelpDirectNonQrDebitTradeAmt = $1.HelpDirectNonQrDebitTradeAmt; //直营非云闪付非封顶借记卡(扶持期)",
- " decimal HelpNonDirectNonQrDebitTradeAmt = $1.HelpNonDirectNonQrDebitTradeAmt; //非直营非云闪付非封顶借记卡(扶持期)",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个交易日汇总,并赋值": {
- "prefix": "ym-db-TradeDaySummary-Update",
- "body": [
- "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.TradeDate = $3; //交易日",
- " $1.TradeMonth = $4; //交易月",
- " $1.BrandId = $5; //品牌",
- " $1.MgrNo = $6; //渠道经理编号",
- " $1.MgrName = $7; //渠道经理姓名",
- " $1.NotHelpDirectTradeAmt = $8; //直营商户交易总额(非扶持期)",
- " $1.NotHelpNonDirectTradeAmt = $9; //非直营商户交易总额(非扶持期)",
- " $1.NotHelpDirectCreditTradeAmt = $10; //直营贷记卡交易总额(非扶持期)",
- " $1.NotHelpNonDirectCreditTradeAmt = $11; //非直营贷记卡交易总额(非扶持期)",
- " $1.NotHelpDirectQrCreditTradeAmt = $12; //直营云闪付贷记卡交易额(非扶持期)",
- " $1.NotHelpNonDirectQrCreditTradeAmt = $13; //非直营云闪付贷记卡交易额(非扶持期)",
- " $1.NotHelpDirectNonQrCreditTradeAmt = $14; //直营非云闪付贷记卡交易额(非扶持期)",
- " $1.NotHelpNonDirectNonQrCreditTradeAmt = $15; //非直营非云闪付贷记卡交易额(非扶持期)",
- " $1.NotHelpDirectDebitTradeAmt = $16; //直营商户借记卡交易总额(非扶持期)",
- " $1.NotHelpDirectDebitCapTradeAmt = $17; //直营商户借记卡封顶交易总金额(非扶持期)",
- " $1.NotHelpDirectDebitCapNum = $18; //直营商户借记卡封顶交易总数(非扶持期)",
- " $1.NotHelpNonDirectDebitTradeAmt = $19; //非直营商户借记卡交易总额(非扶持期)",
- " $1.NotHelpNonDirectDebitCapTradeAmt = $20; //非直营商户借记卡封顶交易总金额(非扶持期)",
- " $1.NotHelpNonDirectDebitCapNum = $21; //非直营商户借记卡封顶交易总数(非扶持期)",
- " $1.NotHelpDirectQrDebitTradeAmt = $22; //直营云闪付非封顶借记卡(非扶持期)",
- " $1.NotHelpNonDirectQrDebitTradeAmt = $23; //非直营云闪付非封顶借记卡(非扶持期)",
- " $1.NotHelpDirectNonQrDebitTradeAmt = $24; //直营非云闪付非封顶借记卡(非扶持期)",
- " $1.NotHelpNonDirectNonQrDebitTradeAmt = $25; //非直营非云闪付非封顶借记卡(非扶持期)",
- " $1.HelpDirectTradeAmt = $26; //直营商户交易总额(扶持期)",
- " $1.HelpNonDirectTradeAmt = $27; //非直营商户交易总额(扶持期)",
- " $1.HelpDirectCreditTradeAmt = $28; //直营贷记卡交易总额(扶持期)",
- " $1.HelpNonDirectCreditTradeAmt = $29; //非直营贷记卡交易总额(扶持期)",
- " $1.HelpDirectQrCreditTradeAmt = $30; //直营云闪付贷记卡交易额(扶持期)",
- " $1.HelpNonDirectQrCreditTradeAmt = $31; //非直营云闪付贷记卡交易额(扶持期)",
- " $1.HelpDirectNonQrCreditTradeAmt = $32; //直营非云闪付贷记卡交易额(扶持期)",
- " $1.HelpNonDirectNonQrCreditTradeAmt = $33; //非直营非云闪付贷记卡交易额(扶持期)",
- " $1.HelpDirectDebitTradeAmt = $34; //直营商户借记卡交易总额(扶持期)",
- " $1.HelpDirectDebitCapTradeAmt = $35; //直营商户借记卡封顶交易总金额(扶持期)",
- " $1.HelpDirectDebitCapNum = $36; //直营商户借记卡封顶交易总数(扶持期)",
- " $1.HelpNonDirectDebitTradeAmt = $37; //非直营商户借记卡交易总额(扶持期)",
- " $1.HelpNonDirectDebitCapTradeAmt = $38; //非直营商户借记卡封顶交易总金额(扶持期)",
- " $1.HelpNonDirectDebitCapNum = $39; //非直营商户借记卡封顶交易总数(扶持期)",
- " $1.HelpDirectQrDebitTradeAmt = $40; //直营云闪付非封顶借记卡(扶持期)",
- " $1.HelpNonDirectQrDebitTradeAmt = $41; //非直营云闪付非封顶借记卡(扶持期)",
- " $1.HelpDirectNonQrDebitTradeAmt = $42; //直营非云闪付非封顶借记卡(扶持期)",
- " $1.HelpNonDirectNonQrDebitTradeAmt = $43; //非直营非云闪付非封顶借记卡(扶持期)",
- " $1.TopUserId = $44; //顶级创客",
- "}"
- ]
- },
- "获取交易日汇总数量": {
- "prefix": "ym-db-TradeDaySummary-FindAndCount",
- "body": [
- "int $1 = db.TradeDaySummary.Count(m => $2);",
- ]
- },
- "添加交易日汇总": {
- "prefix": "ym-db-TradeDaySummary-Create",
- "body": [
- "db.TradeDaySummary.Add(new TradeDaySummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " TradeDate = $2, //交易日",
- " TradeMonth = $3, //交易月",
- " BrandId = $4, //品牌",
- " MgrNo = $5, //渠道经理编号",
- " MgrName = $6, //渠道经理姓名",
- " NotHelpDirectTradeAmt = $7, //直营商户交易总额(非扶持期)",
- " NotHelpNonDirectTradeAmt = $8, //非直营商户交易总额(非扶持期)",
- " NotHelpDirectCreditTradeAmt = $9, //直营贷记卡交易总额(非扶持期)",
- " NotHelpNonDirectCreditTradeAmt = $10, //非直营贷记卡交易总额(非扶持期)",
- " NotHelpDirectQrCreditTradeAmt = $11, //直营云闪付贷记卡交易额(非扶持期)",
- " NotHelpNonDirectQrCreditTradeAmt = $12, //非直营云闪付贷记卡交易额(非扶持期)",
- " NotHelpDirectNonQrCreditTradeAmt = $13, //直营非云闪付贷记卡交易额(非扶持期)",
- " NotHelpNonDirectNonQrCreditTradeAmt = $14, //非直营非云闪付贷记卡交易额(非扶持期)",
- " NotHelpDirectDebitTradeAmt = $15, //直营商户借记卡交易总额(非扶持期)",
- " NotHelpDirectDebitCapTradeAmt = $16, //直营商户借记卡封顶交易总金额(非扶持期)",
- " NotHelpDirectDebitCapNum = $17, //直营商户借记卡封顶交易总数(非扶持期)",
- " NotHelpNonDirectDebitTradeAmt = $18, //非直营商户借记卡交易总额(非扶持期)",
- " NotHelpNonDirectDebitCapTradeAmt = $19, //非直营商户借记卡封顶交易总金额(非扶持期)",
- " NotHelpNonDirectDebitCapNum = $20, //非直营商户借记卡封顶交易总数(非扶持期)",
- " NotHelpDirectQrDebitTradeAmt = $21, //直营云闪付非封顶借记卡(非扶持期)",
- " NotHelpNonDirectQrDebitTradeAmt = $22, //非直营云闪付非封顶借记卡(非扶持期)",
- " NotHelpDirectNonQrDebitTradeAmt = $23, //直营非云闪付非封顶借记卡(非扶持期)",
- " NotHelpNonDirectNonQrDebitTradeAmt = $24, //非直营非云闪付非封顶借记卡(非扶持期)",
- " HelpDirectTradeAmt = $25, //直营商户交易总额(扶持期)",
- " HelpNonDirectTradeAmt = $26, //非直营商户交易总额(扶持期)",
- " HelpDirectCreditTradeAmt = $27, //直营贷记卡交易总额(扶持期)",
- " HelpNonDirectCreditTradeAmt = $28, //非直营贷记卡交易总额(扶持期)",
- " HelpDirectQrCreditTradeAmt = $29, //直营云闪付贷记卡交易额(扶持期)",
- " HelpNonDirectQrCreditTradeAmt = $30, //非直营云闪付贷记卡交易额(扶持期)",
- " HelpDirectNonQrCreditTradeAmt = $31, //直营非云闪付贷记卡交易额(扶持期)",
- " HelpNonDirectNonQrCreditTradeAmt = $32, //非直营非云闪付贷记卡交易额(扶持期)",
- " HelpDirectDebitTradeAmt = $33, //直营商户借记卡交易总额(扶持期)",
- " HelpDirectDebitCapTradeAmt = $34, //直营商户借记卡封顶交易总金额(扶持期)",
- " HelpDirectDebitCapNum = $35, //直营商户借记卡封顶交易总数(扶持期)",
- " HelpNonDirectDebitTradeAmt = $36, //非直营商户借记卡交易总额(扶持期)",
- " HelpNonDirectDebitCapTradeAmt = $37, //非直营商户借记卡封顶交易总金额(扶持期)",
- " HelpNonDirectDebitCapNum = $38, //非直营商户借记卡封顶交易总数(扶持期)",
- " HelpDirectQrDebitTradeAmt = $39, //直营云闪付非封顶借记卡(扶持期)",
- " HelpNonDirectQrDebitTradeAmt = $40, //非直营云闪付非封顶借记卡(扶持期)",
- " HelpDirectNonQrDebitTradeAmt = $41, //直营非云闪付非封顶借记卡(扶持期)",
- " HelpNonDirectNonQrDebitTradeAmt = $42, //非直营非云闪付非封顶借记卡(扶持期)",
- " TopUserId = $43, //顶级创客",
- "});"
- ]
- },"删除某个交易日汇总": {
- "prefix": "ym-db-TradeDaySummary-Delete",
- "body": [
- "TradeDaySummary $1 = db.TradeDaySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TradeDaySummary.Remove($1);",
- "}"
- ]
- },
- "查询交易记录列表": {
- "prefix": "ym-db-TradeRecord-Find",
- "body": [
- "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TradeRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询交易记录列表,并取值": {
- "prefix": "ym-db-TradeRecord-FindWithData",
- "body": [
- "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (TradeRecord $3 in $1)",
- "{",
- " string RecordNo = $3.RecordNo; //单号",
- " int UserId = $3.UserId; //创客",
- " int MerchantId = $3.MerchantId; //商户",
- " string MerNo = $3.MerNo; //渠道商户编号",
- " ulong MerHelpFlag = $3.MerHelpFlag; //是否属于扶持周期内商户",
- " int HelpMonthCount = $3.HelpMonthCount; //扶持第几个月",
- " int MerBuddyType = $3.MerBuddyType; //商户创客类型",
- " string SnNo = $3.SnNo; //渠道SN号",
- " DateTime TradeDate = $3.TradeDate; //交易日期",
- " DateTime ClearDate = $3.ClearDate; //清算日期",
- " string TradeSerialNo = $3.TradeSerialNo; //交易流水号",
- " decimal TradeAmount = $3.TradeAmount; //交易金额",
- " int BankCardType = $3.BankCardType; //银行卡类型",
- " int QrPayFlag = $3.QrPayFlag; //云闪付标识",
- " int CapFlag = $3.CapFlag; //借记卡封顶交易标志",
- " ulong DirectFlag = $3.DirectFlag; //是否直营",
- " int BrandId = $3.BrandId; //品牌",
- " string Remark = $3.Remark; //备注",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " int MerUserId = $3.MerUserId; //商户直属创客",
- "}"
- ]
- },
- "查询交易记录": {
- "prefix": "ym-db-TradeRecord-Exist",
- "body": [
- "bool $1 = db.TradeRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个交易记录,并取值": {
- "prefix": "ym-db-TradeRecord-FindByPrimaryKey",
- "body": [
- "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string RecordNo = $1.RecordNo; //单号",
- " int UserId = $1.UserId; //创客",
- " int MerchantId = $1.MerchantId; //商户",
- " string MerNo = $1.MerNo; //渠道商户编号",
- " ulong MerHelpFlag = $1.MerHelpFlag; //是否属于扶持周期内商户",
- " int HelpMonthCount = $1.HelpMonthCount; //扶持第几个月",
- " int MerBuddyType = $1.MerBuddyType; //商户创客类型",
- " string SnNo = $1.SnNo; //渠道SN号",
- " DateTime TradeDate = $1.TradeDate; //交易日期",
- " DateTime ClearDate = $1.ClearDate; //清算日期",
- " string TradeSerialNo = $1.TradeSerialNo; //交易流水号",
- " decimal TradeAmount = $1.TradeAmount; //交易金额",
- " int BankCardType = $1.BankCardType; //银行卡类型",
- " int QrPayFlag = $1.QrPayFlag; //云闪付标识",
- " int CapFlag = $1.CapFlag; //借记卡封顶交易标志",
- " ulong DirectFlag = $1.DirectFlag; //是否直营",
- " int BrandId = $1.BrandId; //品牌",
- " string Remark = $1.Remark; //备注",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " int MerUserId = $1.MerUserId; //商户直属创客",
- "}"
- ]
- },
- "查询某个交易记录,并赋值": {
- "prefix": "ym-db-TradeRecord-Update",
- "body": [
- "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.RecordNo = $2; //单号",
- " $1.UserId = $3; //创客",
- " $1.MerchantId = $4; //商户",
- " $1.MerNo = $5; //渠道商户编号",
- " $1.MerHelpFlag = $6; //是否属于扶持周期内商户",
- " $1.HelpMonthCount = $7; //扶持第几个月",
- " $1.MerBuddyType = $8; //商户创客类型",
- " $1.SnNo = $9; //渠道SN号",
- " $1.TradeDate = $10; //交易日期",
- " $1.ClearDate = $11; //清算日期",
- " $1.TradeSerialNo = $12; //交易流水号",
- " $1.TradeAmount = $13; //交易金额",
- " $1.BankCardType = $14; //银行卡类型",
- " $1.QrPayFlag = $15; //云闪付标识",
- " $1.CapFlag = $16; //借记卡封顶交易标志",
- " $1.DirectFlag = $17; //是否直营",
- " $1.BrandId = $18; //品牌",
- " $1.Remark = $19; //备注",
- " $1.TopUserId = $20; //顶级创客",
- " $1.MerUserId = $21; //商户直属创客",
- "}"
- ]
- },
- "获取交易记录数量": {
- "prefix": "ym-db-TradeRecord-FindAndCount",
- "body": [
- "int $1 = db.TradeRecord.Count(m => $2);",
- ]
- },
- "添加交易记录": {
- "prefix": "ym-db-TradeRecord-Create",
- "body": [
- "db.TradeRecord.Add(new TradeRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " RecordNo = $1, //单号",
- " UserId = $2, //创客",
- " MerchantId = $3, //商户",
- " MerNo = $4, //渠道商户编号",
- " MerHelpFlag = $5, //是否属于扶持周期内商户",
- " HelpMonthCount = $6, //扶持第几个月",
- " MerBuddyType = $7, //商户创客类型",
- " SnNo = $8, //渠道SN号",
- " TradeDate = $9, //交易日期",
- " ClearDate = $10, //清算日期",
- " TradeSerialNo = $11, //交易流水号",
- " TradeAmount = $12, //交易金额",
- " BankCardType = $13, //银行卡类型",
- " QrPayFlag = $14, //云闪付标识",
- " CapFlag = $15, //借记卡封顶交易标志",
- " DirectFlag = $16, //是否直营",
- " BrandId = $17, //品牌",
- " Remark = $18, //备注",
- " TopUserId = $19, //顶级创客",
- " MerUserId = $20, //商户直属创客",
- "});"
- ]
- },"删除某个交易记录": {
- "prefix": "ym-db-TradeRecord-Delete",
- "body": [
- "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.TradeRecord.Remove($1);",
- "}"
- ]
- },
- "查询上传配置项列表": {
- "prefix": "ym-db-UploadParams-Find",
- "body": [
- "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UploadParams $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询上传配置项列表,并取值": {
- "prefix": "ym-db-UploadParams-FindWithData",
- "body": [
- "List<UploadParams> $1 = db.UploadParams.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UploadParams $3 in $1)",
- "{",
- " string TableName = $3.TableName; //表名",
- " string ColumnName = $3.ColumnName; //字段名",
- " string ColumnEnName = $3.ColumnEnName; //字段英文明",
- " string ParamString = $3.ParamString; //参数",
- " string TableEnName = $3.TableEnName; //表英文名",
- "}"
- ]
- },
- "查询上传配置项": {
- "prefix": "ym-db-UploadParams-Exist",
- "body": [
- "bool $1 = db.UploadParams.Any(m => m.Id == $2);",
- ]
- },
- "查询某个上传配置项,并取值": {
- "prefix": "ym-db-UploadParams-FindByPrimaryKey",
- "body": [
- "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TableName = $1.TableName; //表名",
- " string ColumnName = $1.ColumnName; //字段名",
- " string ColumnEnName = $1.ColumnEnName; //字段英文明",
- " string ParamString = $1.ParamString; //参数",
- " string TableEnName = $1.TableEnName; //表英文名",
- "}"
- ]
- },
- "查询某个上传配置项,并赋值": {
- "prefix": "ym-db-UploadParams-Update",
- "body": [
- "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TableName = $2; //表名",
- " $1.ColumnName = $3; //字段名",
- " $1.ColumnEnName = $4; //字段英文明",
- " $1.ParamString = $5; //参数",
- " $1.TableEnName = $6; //表英文名",
- "}"
- ]
- },
- "获取上传配置项数量": {
- "prefix": "ym-db-UploadParams-FindAndCount",
- "body": [
- "int $1 = db.UploadParams.Count(m => $2);",
- ]
- },
- "添加上传配置项": {
- "prefix": "ym-db-UploadParams-Create",
- "body": [
- "db.UploadParams.Add(new UploadParams()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TableName = $1, //表名",
- " ColumnName = $2, //字段名",
- " ColumnEnName = $3, //字段英文明",
- " ParamString = $4, //参数",
- " TableEnName = $5, //表英文名",
- "});"
- ]
- },"删除某个上传配置项": {
- "prefix": "ym-db-UploadParams-Delete",
- "body": [
- "UploadParams $1 = db.UploadParams.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UploadParams.Remove($1);",
- "}"
- ]
- },
- "查询创客账户列表": {
- "prefix": "ym-db-UserAccount-Find",
- "body": [
- "List<UserAccount> $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAccount $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客账户列表,并取值": {
- "prefix": "ym-db-UserAccount-FindWithData",
- "body": [
- "List<UserAccount> $1 = db.UserAccount.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAccount $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int UserType = $3.UserType; //创客类型",
- " int UserProperty = $3.UserProperty; //创客属性",
- " decimal TotalAmount = $3.TotalAmount; //总金额",
- " decimal FreezeAmount = $3.FreezeAmount; //冻结金额",
- " decimal BalanceAmount = $3.BalanceAmount; //余额",
- " int AccountStatus = $3.AccountStatus; //账户状态",
- " int LockStatus = $3.LockStatus; //锁定状态",
- " decimal WithdrawAmount = $3.WithdrawAmount; //已提现金额",
- "}"
- ]
- },
- "查询创客账户": {
- "prefix": "ym-db-UserAccount-Exist",
- "body": [
- "bool $1 = db.UserAccount.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客账户,并取值": {
- "prefix": "ym-db-UserAccount-FindByPrimaryKey",
- "body": [
- "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int UserType = $1.UserType; //创客类型",
- " int UserProperty = $1.UserProperty; //创客属性",
- " decimal TotalAmount = $1.TotalAmount; //总金额",
- " decimal FreezeAmount = $1.FreezeAmount; //冻结金额",
- " decimal BalanceAmount = $1.BalanceAmount; //余额",
- " int AccountStatus = $1.AccountStatus; //账户状态",
- " int LockStatus = $1.LockStatus; //锁定状态",
- " decimal WithdrawAmount = $1.WithdrawAmount; //已提现金额",
- "}"
- ]
- },
- "查询某个创客账户,并赋值": {
- "prefix": "ym-db-UserAccount-Update",
- "body": [
- "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.UserType = $3; //创客类型",
- " $1.UserProperty = $4; //创客属性",
- " $1.TotalAmount = $5; //总金额",
- " $1.FreezeAmount = $6; //冻结金额",
- " $1.BalanceAmount = $7; //余额",
- " $1.AccountStatus = $8; //账户状态",
- " $1.LockStatus = $9; //锁定状态",
- " $1.WithdrawAmount = $10; //已提现金额",
- "}"
- ]
- },
- "获取创客账户数量": {
- "prefix": "ym-db-UserAccount-FindAndCount",
- "body": [
- "int $1 = db.UserAccount.Count(m => $2);",
- ]
- },
- "添加创客账户": {
- "prefix": "ym-db-UserAccount-Create",
- "body": [
- "db.UserAccount.Add(new UserAccount()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " UserType = $2, //创客类型",
- " UserProperty = $3, //创客属性",
- " TotalAmount = $4, //总金额",
- " FreezeAmount = $5, //冻结金额",
- " BalanceAmount = $6, //余额",
- " AccountStatus = $7, //账户状态",
- " LockStatus = $8, //锁定状态",
- " WithdrawAmount = $9, //已提现金额",
- "});"
- ]
- },"删除某个创客账户": {
- "prefix": "ym-db-UserAccount-Delete",
- "body": [
- "UserAccount $1 = db.UserAccount.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserAccount.Remove($1);",
- "}"
- ]
- },
- "查询创客账户变动记录列表": {
- "prefix": "ym-db-UserAccountRecord-Find",
- "body": [
- "List<UserAccountRecord> $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAccountRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客账户变动记录列表,并取值": {
- "prefix": "ym-db-UserAccountRecord-FindWithData",
- "body": [
- "List<UserAccountRecord> $1 = db.UserAccountRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAccountRecord $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int ChangeType = $3.ChangeType; //变动类型",
- " int ProductType = $3.ProductType; //产品类型",
- " decimal ChangeAmount = $3.ChangeAmount; //变更金额",
- " decimal BeforeTotalAmount = $3.BeforeTotalAmount; //变更前总金额",
- " decimal AfterTotalAmount = $3.AfterTotalAmount; //变更后总金额",
- " decimal BeforeFreezeAmount = $3.BeforeFreezeAmount; //变更前冻结金额",
- " decimal AfterFreezeAmount = $3.AfterFreezeAmount; //变更后冻结金额",
- " decimal BeforeBalanceAmount = $3.BeforeBalanceAmount; //变更前余额",
- " decimal AfterBalanceAmount = $3.AfterBalanceAmount; //变更后余额",
- " string Remark = $3.Remark; //账户变动明细备注信息",
- " string TransRecordNo = $3.TransRecordNo; //交易流水编号",
- "}"
- ]
- },
- "查询创客账户变动记录": {
- "prefix": "ym-db-UserAccountRecord-Exist",
- "body": [
- "bool $1 = db.UserAccountRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客账户变动记录,并取值": {
- "prefix": "ym-db-UserAccountRecord-FindByPrimaryKey",
- "body": [
- "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int ChangeType = $1.ChangeType; //变动类型",
- " int ProductType = $1.ProductType; //产品类型",
- " decimal ChangeAmount = $1.ChangeAmount; //变更金额",
- " decimal BeforeTotalAmount = $1.BeforeTotalAmount; //变更前总金额",
- " decimal AfterTotalAmount = $1.AfterTotalAmount; //变更后总金额",
- " decimal BeforeFreezeAmount = $1.BeforeFreezeAmount; //变更前冻结金额",
- " decimal AfterFreezeAmount = $1.AfterFreezeAmount; //变更后冻结金额",
- " decimal BeforeBalanceAmount = $1.BeforeBalanceAmount; //变更前余额",
- " decimal AfterBalanceAmount = $1.AfterBalanceAmount; //变更后余额",
- " string Remark = $1.Remark; //账户变动明细备注信息",
- " string TransRecordNo = $1.TransRecordNo; //交易流水编号",
- "}"
- ]
- },
- "查询某个创客账户变动记录,并赋值": {
- "prefix": "ym-db-UserAccountRecord-Update",
- "body": [
- "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.ChangeType = $3; //变动类型",
- " $1.ProductType = $4; //产品类型",
- " $1.ChangeAmount = $5; //变更金额",
- " $1.BeforeTotalAmount = $6; //变更前总金额",
- " $1.AfterTotalAmount = $7; //变更后总金额",
- " $1.BeforeFreezeAmount = $8; //变更前冻结金额",
- " $1.AfterFreezeAmount = $9; //变更后冻结金额",
- " $1.BeforeBalanceAmount = $10; //变更前余额",
- " $1.AfterBalanceAmount = $11; //变更后余额",
- " $1.Remark = $12; //账户变动明细备注信息",
- " $1.TransRecordNo = $13; //交易流水编号",
- "}"
- ]
- },
- "获取创客账户变动记录数量": {
- "prefix": "ym-db-UserAccountRecord-FindAndCount",
- "body": [
- "int $1 = db.UserAccountRecord.Count(m => $2);",
- ]
- },
- "添加创客账户变动记录": {
- "prefix": "ym-db-UserAccountRecord-Create",
- "body": [
- "db.UserAccountRecord.Add(new UserAccountRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " ChangeType = $2, //变动类型",
- " ProductType = $3, //产品类型",
- " ChangeAmount = $4, //变更金额",
- " BeforeTotalAmount = $5, //变更前总金额",
- " AfterTotalAmount = $6, //变更后总金额",
- " BeforeFreezeAmount = $7, //变更前冻结金额",
- " AfterFreezeAmount = $8, //变更后冻结金额",
- " BeforeBalanceAmount = $9, //变更前余额",
- " AfterBalanceAmount = $10, //变更后余额",
- " Remark = $11, //账户变动明细备注信息",
- " TransRecordNo = $12, //交易流水编号",
- "});"
- ]
- },"删除某个创客账户变动记录": {
- "prefix": "ym-db-UserAccountRecord-Delete",
- "body": [
- "UserAccountRecord $1 = db.UserAccountRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserAccountRecord.Remove($1);",
- "}"
- ]
- },
- "查询创客收货地址列表": {
- "prefix": "ym-db-UserAddress-Find",
- "body": [
- "List<UserAddress> $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAddress $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客收货地址列表,并取值": {
- "prefix": "ym-db-UserAddress-FindWithData",
- "body": [
- "List<UserAddress> $1 = db.UserAddress.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAddress $3 in $1)",
- "{",
- " string Address = $3.Address; //详细地址",
- " string PostalCode = $3.PostalCode; //邮政编码",
- " string RealName = $3.RealName; //收货人姓名",
- " string Mobile = $3.Mobile; //手机号码",
- " int UserId = $3.UserId; //所属创客Id",
- " string Areas = $3.Areas; //所在地区",
- " ulong IsDefault = $3.IsDefault; //是否默认",
- "}"
- ]
- },
- "查询创客收货地址": {
- "prefix": "ym-db-UserAddress-Exist",
- "body": [
- "bool $1 = db.UserAddress.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客收货地址,并取值": {
- "prefix": "ym-db-UserAddress-FindByPrimaryKey",
- "body": [
- "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Address = $1.Address; //详细地址",
- " string PostalCode = $1.PostalCode; //邮政编码",
- " string RealName = $1.RealName; //收货人姓名",
- " string Mobile = $1.Mobile; //手机号码",
- " int UserId = $1.UserId; //所属创客Id",
- " string Areas = $1.Areas; //所在地区",
- " ulong IsDefault = $1.IsDefault; //是否默认",
- "}"
- ]
- },
- "查询某个创客收货地址,并赋值": {
- "prefix": "ym-db-UserAddress-Update",
- "body": [
- "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Address = $2; //详细地址",
- " $1.PostalCode = $3; //邮政编码",
- " $1.RealName = $4; //收货人姓名",
- " $1.Mobile = $5; //手机号码",
- " $1.UserId = $6; //所属创客Id",
- " $1.Areas = $7; //所在地区",
- " $1.IsDefault = $8; //是否默认",
- "}"
- ]
- },
- "获取创客收货地址数量": {
- "prefix": "ym-db-UserAddress-FindAndCount",
- "body": [
- "int $1 = db.UserAddress.Count(m => $2);",
- ]
- },
- "添加创客收货地址": {
- "prefix": "ym-db-UserAddress-Create",
- "body": [
- "db.UserAddress.Add(new UserAddress()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Address = $1, //详细地址",
- " PostalCode = $2, //邮政编码",
- " RealName = $3, //收货人姓名",
- " Mobile = $4, //手机号码",
- " UserId = $5, //所属创客Id",
- " Areas = $6, //所在地区",
- " IsDefault = $7, //是否默认",
- "});"
- ]
- },"删除某个创客收货地址": {
- "prefix": "ym-db-UserAddress-Delete",
- "body": [
- "UserAddress $1 = db.UserAddress.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserAddress.Remove($1);",
- "}"
- ]
- },
- "查询创客绑卡记录列表": {
- "prefix": "ym-db-UserAuthRecord-Find",
- "body": [
- "List<UserAuthRecord> $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAuthRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客绑卡记录列表,并取值": {
- "prefix": "ym-db-UserAuthRecord-FindWithData",
- "body": [
- "List<UserAuthRecord> $1 = db.UserAuthRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserAuthRecord $3 in $1)",
- "{",
- " string ChannelCode = $3.ChannelCode; //渠道编码",
- " string ChannelName = $3.ChannelName; //渠道名称",
- " int UserId = $3.UserId; //创客",
- " string RealName = $3.RealName; //真实姓名",
- " string IdcardNo = $3.IdcardNo; //身份证号码",
- " string BankCardAccount = $3.BankCardAccount; //银行卡账号",
- " string BankName = $3.BankName; //银行名称",
- " string BankMobile = $3.BankMobile; //银行预留手机号码",
- " string ReqData = $3.ReqData; //请求数据",
- " string ResData = $3.ResData; //响应数据",
- " string ReturnCode = $3.ReturnCode; //返回编码",
- " string ReturnMsg = $3.ReturnMsg; //返回信息",
- " int AuthType = $3.AuthType; //实名类型",
- "}"
- ]
- },
- "查询创客绑卡记录": {
- "prefix": "ym-db-UserAuthRecord-Exist",
- "body": [
- "bool $1 = db.UserAuthRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客绑卡记录,并取值": {
- "prefix": "ym-db-UserAuthRecord-FindByPrimaryKey",
- "body": [
- "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ChannelCode = $1.ChannelCode; //渠道编码",
- " string ChannelName = $1.ChannelName; //渠道名称",
- " int UserId = $1.UserId; //创客",
- " string RealName = $1.RealName; //真实姓名",
- " string IdcardNo = $1.IdcardNo; //身份证号码",
- " string BankCardAccount = $1.BankCardAccount; //银行卡账号",
- " string BankName = $1.BankName; //银行名称",
- " string BankMobile = $1.BankMobile; //银行预留手机号码",
- " string ReqData = $1.ReqData; //请求数据",
- " string ResData = $1.ResData; //响应数据",
- " string ReturnCode = $1.ReturnCode; //返回编码",
- " string ReturnMsg = $1.ReturnMsg; //返回信息",
- " int AuthType = $1.AuthType; //实名类型",
- "}"
- ]
- },
- "查询某个创客绑卡记录,并赋值": {
- "prefix": "ym-db-UserAuthRecord-Update",
- "body": [
- "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ChannelCode = $2; //渠道编码",
- " $1.ChannelName = $3; //渠道名称",
- " $1.UserId = $4; //创客",
- " $1.RealName = $5; //真实姓名",
- " $1.IdcardNo = $6; //身份证号码",
- " $1.BankCardAccount = $7; //银行卡账号",
- " $1.BankName = $8; //银行名称",
- " $1.BankMobile = $9; //银行预留手机号码",
- " $1.ReqData = $10; //请求数据",
- " $1.ResData = $11; //响应数据",
- " $1.ReturnCode = $12; //返回编码",
- " $1.ReturnMsg = $13; //返回信息",
- " $1.AuthType = $14; //实名类型",
- "}"
- ]
- },
- "获取创客绑卡记录数量": {
- "prefix": "ym-db-UserAuthRecord-FindAndCount",
- "body": [
- "int $1 = db.UserAuthRecord.Count(m => $2);",
- ]
- },
- "添加创客绑卡记录": {
- "prefix": "ym-db-UserAuthRecord-Create",
- "body": [
- "db.UserAuthRecord.Add(new UserAuthRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ChannelCode = $1, //渠道编码",
- " ChannelName = $2, //渠道名称",
- " UserId = $3, //创客",
- " RealName = $4, //真实姓名",
- " IdcardNo = $5, //身份证号码",
- " BankCardAccount = $6, //银行卡账号",
- " BankName = $7, //银行名称",
- " BankMobile = $8, //银行预留手机号码",
- " ReqData = $9, //请求数据",
- " ResData = $10, //响应数据",
- " ReturnCode = $11, //返回编码",
- " ReturnMsg = $12, //返回信息",
- " AuthType = $13, //实名类型",
- "});"
- ]
- },"删除某个创客绑卡记录": {
- "prefix": "ym-db-UserAuthRecord-Delete",
- "body": [
- "UserAuthRecord $1 = db.UserAuthRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserAuthRecord.Remove($1);",
- "}"
- ]
- },
- "查询创客反馈列表": {
- "prefix": "ym-db-UserBack-Find",
- "body": [
- "List<UserBack> $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserBack $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客反馈列表,并取值": {
- "prefix": "ym-db-UserBack-FindWithData",
- "body": [
- "List<UserBack> $1 = db.UserBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserBack $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " string Content = $3.Content; //回复内容",
- " ulong IsPhoneCallBack = $3.IsPhoneCallBack; //是否需要电话回复",
- " int BackKind = $3.BackKind; //反馈类型",
- " string ReplyContent = $3.ReplyContent; //后台回复内容",
- " int BackStatus = $3.BackStatus; //回复状态",
- "}"
- ]
- },
- "查询创客反馈": {
- "prefix": "ym-db-UserBack-Exist",
- "body": [
- "bool $1 = db.UserBack.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客反馈,并取值": {
- "prefix": "ym-db-UserBack-FindByPrimaryKey",
- "body": [
- "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " string Content = $1.Content; //回复内容",
- " ulong IsPhoneCallBack = $1.IsPhoneCallBack; //是否需要电话回复",
- " int BackKind = $1.BackKind; //反馈类型",
- " string ReplyContent = $1.ReplyContent; //后台回复内容",
- " int BackStatus = $1.BackStatus; //回复状态",
- "}"
- ]
- },
- "查询某个创客反馈,并赋值": {
- "prefix": "ym-db-UserBack-Update",
- "body": [
- "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.Content = $3; //回复内容",
- " $1.IsPhoneCallBack = $4; //是否需要电话回复",
- " $1.BackKind = $5; //反馈类型",
- " $1.ReplyContent = $6; //后台回复内容",
- " $1.BackStatus = $7; //回复状态",
- "}"
- ]
- },
- "获取创客反馈数量": {
- "prefix": "ym-db-UserBack-FindAndCount",
- "body": [
- "int $1 = db.UserBack.Count(m => $2);",
- ]
- },
- "添加创客反馈": {
- "prefix": "ym-db-UserBack-Create",
- "body": [
- "db.UserBack.Add(new UserBack()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " Content = $2, //回复内容",
- " IsPhoneCallBack = $3, //是否需要电话回复",
- " BackKind = $4, //反馈类型",
- " ReplyContent = $5, //后台回复内容",
- " BackStatus = $6, //回复状态",
- "});"
- ]
- },"删除某个创客反馈": {
- "prefix": "ym-db-UserBack-Delete",
- "body": [
- "UserBack $1 = db.UserBack.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserBack.Remove($1);",
- "}"
- ]
- },
- "查询创客反馈类型列表": {
- "prefix": "ym-db-UserBackKind-Find",
- "body": [
- "List<UserBackKind> $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserBackKind $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客反馈类型列表,并取值": {
- "prefix": "ym-db-UserBackKind-FindWithData",
- "body": [
- "List<UserBackKind> $1 = db.UserBackKind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserBackKind $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- "}"
- ]
- },
- "查询创客反馈类型": {
- "prefix": "ym-db-UserBackKind-Exist",
- "body": [
- "bool $1 = db.UserBackKind.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客反馈类型,并取值": {
- "prefix": "ym-db-UserBackKind-FindByPrimaryKey",
- "body": [
- "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- "}"
- ]
- },
- "查询某个创客反馈类型,并赋值": {
- "prefix": "ym-db-UserBackKind-Update",
- "body": [
- "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- "}"
- ]
- },
- "获取创客反馈类型数量": {
- "prefix": "ym-db-UserBackKind-FindAndCount",
- "body": [
- "int $1 = db.UserBackKind.Count(m => $2);",
- ]
- },
- "添加创客反馈类型": {
- "prefix": "ym-db-UserBackKind-Create",
- "body": [
- "db.UserBackKind.Add(new UserBackKind()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- "});"
- ]
- },"删除某个创客反馈类型": {
- "prefix": "ym-db-UserBackKind-Delete",
- "body": [
- "UserBackKind $1 = db.UserBackKind.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserBackKind.Remove($1);",
- "}"
- ]
- },
- "查询创客收益排行列表": {
- "prefix": "ym-db-UserBalanceTop-Find",
- "body": [
- "List<UserBalanceTop> $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserBalanceTop $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客收益排行列表,并取值": {
- "prefix": "ym-db-UserBalanceTop-FindWithData",
- "body": [
- "List<UserBalanceTop> $1 = db.UserBalanceTop.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserBalanceTop $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " decimal Balance = $3.Balance; //收益金额",
- " string StatDate = $3.StatDate; //统计日",
- " string StatMonth = $3.StatMonth; //统计月",
- "}"
- ]
- },
- "查询创客收益排行": {
- "prefix": "ym-db-UserBalanceTop-Exist",
- "body": [
- "bool $1 = db.UserBalanceTop.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客收益排行,并取值": {
- "prefix": "ym-db-UserBalanceTop-FindByPrimaryKey",
- "body": [
- "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " decimal Balance = $1.Balance; //收益金额",
- " string StatDate = $1.StatDate; //统计日",
- " string StatMonth = $1.StatMonth; //统计月",
- "}"
- ]
- },
- "查询某个创客收益排行,并赋值": {
- "prefix": "ym-db-UserBalanceTop-Update",
- "body": [
- "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.Balance = $3; //收益金额",
- " $1.StatDate = $4; //统计日",
- " $1.StatMonth = $5; //统计月",
- "}"
- ]
- },
- "获取创客收益排行数量": {
- "prefix": "ym-db-UserBalanceTop-FindAndCount",
- "body": [
- "int $1 = db.UserBalanceTop.Count(m => $2);",
- ]
- },
- "添加创客收益排行": {
- "prefix": "ym-db-UserBalanceTop-Create",
- "body": [
- "db.UserBalanceTop.Add(new UserBalanceTop()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " Balance = $2, //收益金额",
- " StatDate = $3, //统计日",
- " StatMonth = $4, //统计月",
- "});"
- ]
- },"删除某个创客收益排行": {
- "prefix": "ym-db-UserBalanceTop-Delete",
- "body": [
- "UserBalanceTop $1 = db.UserBalanceTop.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserBalanceTop.Remove($1);",
- "}"
- ]
- },
- "查询创客购物车列表": {
- "prefix": "ym-db-UserCar-Find",
- "body": [
- "List<UserCar> $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCar $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客购物车列表,并取值": {
- "prefix": "ym-db-UserCar-FindWithData",
- "body": [
- "List<UserCar> $1 = db.UserCar.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCar $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " int ProductId = $3.ProductId; //商品Id",
- " int BuyCount = $3.BuyCount; //购买数量",
- " int MerchantId = $3.MerchantId; //商家Id",
- " int NormId = $3.NormId; //规格Id",
- "}"
- ]
- },
- "查询创客购物车": {
- "prefix": "ym-db-UserCar-Exist",
- "body": [
- "bool $1 = db.UserCar.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客购物车,并取值": {
- "prefix": "ym-db-UserCar-FindByPrimaryKey",
- "body": [
- "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " int ProductId = $1.ProductId; //商品Id",
- " int BuyCount = $1.BuyCount; //购买数量",
- " int MerchantId = $1.MerchantId; //商家Id",
- " int NormId = $1.NormId; //规格Id",
- "}"
- ]
- },
- "查询某个创客购物车,并赋值": {
- "prefix": "ym-db-UserCar-Update",
- "body": [
- "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.ProductId = $3; //商品Id",
- " $1.BuyCount = $4; //购买数量",
- " $1.MerchantId = $5; //商家Id",
- " $1.NormId = $6; //规格Id",
- "}"
- ]
- },
- "获取创客购物车数量": {
- "prefix": "ym-db-UserCar-FindAndCount",
- "body": [
- "int $1 = db.UserCar.Count(m => $2);",
- ]
- },
- "添加创客购物车": {
- "prefix": "ym-db-UserCar-Create",
- "body": [
- "db.UserCar.Add(new UserCar()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " ProductId = $2, //商品Id",
- " BuyCount = $3, //购买数量",
- " MerchantId = $4, //商家Id",
- " NormId = $5, //规格Id",
- "});"
- ]
- },"删除某个创客购物车": {
- "prefix": "ym-db-UserCar-Delete",
- "body": [
- "UserCar $1 = db.UserCar.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserCar.Remove($1);",
- "}"
- ]
- },
- "查询提现记录列表": {
- "prefix": "ym-db-UserCashRecord-Find",
- "body": [
- "List<UserCashRecord> $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCashRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询提现记录列表,并取值": {
- "prefix": "ym-db-UserCashRecord-FindWithData",
- "body": [
- "List<UserCashRecord> $1 = db.UserCashRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCashRecord $3 in $1)",
- "{",
- " string CashOrderNo = $3.CashOrderNo; //申请提现单号",
- " int UserId = $3.UserId; //创客",
- " string IdCardNo = $3.IdCardNo; //身份证号",
- " string SettleBankCardNo = $3.SettleBankCardNo; //提现卡号",
- " string SettleBankName = $3.SettleBankName; //银行名称",
- " int TradeType = $3.TradeType; //交易类型",
- " string PayTradeNo = $3.PayTradeNo; //提现服务交易流水号",
- " string ChannelCode = $3.ChannelCode; //支付渠道编号",
- " string ChanelName = $3.ChanelName; //支付渠道名称",
- " decimal TradeAmount = $3.TradeAmount; //交易金额",
- " decimal ActualTradeAmount = $3.ActualTradeAmount; //实际交易金额",
- " decimal TradeFee = $3.TradeFee; //交易手续费",
- " decimal ManageFee = $3.ManageFee; //扣税金额",
- " string ReqData = $3.ReqData; //请求数据",
- " string ResData = $3.ResData; //响应数据",
- " string ReturnCode = $3.ReturnCode; //返回编码",
- " string ReturnMsg = $3.ReturnMsg; //返回信息",
- " DateTime PaymentDate = $3.PaymentDate; //支付时间",
- " string Ip = $3.Ip; //IP地址",
- " string MediaSource = $3.MediaSource; //媒体来源",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询提现记录": {
- "prefix": "ym-db-UserCashRecord-Exist",
- "body": [
- "bool $1 = db.UserCashRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个提现记录,并取值": {
- "prefix": "ym-db-UserCashRecord-FindByPrimaryKey",
- "body": [
- "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string CashOrderNo = $1.CashOrderNo; //申请提现单号",
- " int UserId = $1.UserId; //创客",
- " string IdCardNo = $1.IdCardNo; //身份证号",
- " string SettleBankCardNo = $1.SettleBankCardNo; //提现卡号",
- " string SettleBankName = $1.SettleBankName; //银行名称",
- " int TradeType = $1.TradeType; //交易类型",
- " string PayTradeNo = $1.PayTradeNo; //提现服务交易流水号",
- " string ChannelCode = $1.ChannelCode; //支付渠道编号",
- " string ChanelName = $1.ChanelName; //支付渠道名称",
- " decimal TradeAmount = $1.TradeAmount; //交易金额",
- " decimal ActualTradeAmount = $1.ActualTradeAmount; //实际交易金额",
- " decimal TradeFee = $1.TradeFee; //交易手续费",
- " decimal ManageFee = $1.ManageFee; //扣税金额",
- " string ReqData = $1.ReqData; //请求数据",
- " string ResData = $1.ResData; //响应数据",
- " string ReturnCode = $1.ReturnCode; //返回编码",
- " string ReturnMsg = $1.ReturnMsg; //返回信息",
- " DateTime PaymentDate = $1.PaymentDate; //支付时间",
- " string Ip = $1.Ip; //IP地址",
- " string MediaSource = $1.MediaSource; //媒体来源",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个提现记录,并赋值": {
- "prefix": "ym-db-UserCashRecord-Update",
- "body": [
- "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.CashOrderNo = $2; //申请提现单号",
- " $1.UserId = $3; //创客",
- " $1.IdCardNo = $4; //身份证号",
- " $1.SettleBankCardNo = $5; //提现卡号",
- " $1.SettleBankName = $6; //银行名称",
- " $1.TradeType = $7; //交易类型",
- " $1.PayTradeNo = $8; //提现服务交易流水号",
- " $1.ChannelCode = $9; //支付渠道编号",
- " $1.ChanelName = $10; //支付渠道名称",
- " $1.TradeAmount = $11; //交易金额",
- " $1.ActualTradeAmount = $12; //实际交易金额",
- " $1.TradeFee = $13; //交易手续费",
- " $1.ManageFee = $14; //扣税金额",
- " $1.ReqData = $15; //请求数据",
- " $1.ResData = $16; //响应数据",
- " $1.ReturnCode = $17; //返回编码",
- " $1.ReturnMsg = $18; //返回信息",
- " $1.PaymentDate = $19; //支付时间",
- " $1.Ip = $20; //IP地址",
- " $1.MediaSource = $21; //媒体来源",
- " $1.Remark = $22; //备注",
- "}"
- ]
- },
- "获取提现记录数量": {
- "prefix": "ym-db-UserCashRecord-FindAndCount",
- "body": [
- "int $1 = db.UserCashRecord.Count(m => $2);",
- ]
- },
- "添加提现记录": {
- "prefix": "ym-db-UserCashRecord-Create",
- "body": [
- "db.UserCashRecord.Add(new UserCashRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " CashOrderNo = $1, //申请提现单号",
- " UserId = $2, //创客",
- " IdCardNo = $3, //身份证号",
- " SettleBankCardNo = $4, //提现卡号",
- " SettleBankName = $5, //银行名称",
- " TradeType = $6, //交易类型",
- " PayTradeNo = $7, //提现服务交易流水号",
- " ChannelCode = $8, //支付渠道编号",
- " ChanelName = $9, //支付渠道名称",
- " TradeAmount = $10, //交易金额",
- " ActualTradeAmount = $11, //实际交易金额",
- " TradeFee = $12, //交易手续费",
- " ManageFee = $13, //扣税金额",
- " ReqData = $14, //请求数据",
- " ResData = $15, //响应数据",
- " ReturnCode = $16, //返回编码",
- " ReturnMsg = $17, //返回信息",
- " PaymentDate = $18, //支付时间",
- " Ip = $19, //IP地址",
- " MediaSource = $20, //媒体来源",
- " Remark = $21, //备注",
- "});"
- ]
- },"删除某个提现记录": {
- "prefix": "ym-db-UserCashRecord-Delete",
- "body": [
- "UserCashRecord $1 = db.UserCashRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserCashRecord.Remove($1);",
- "}"
- ]
- },
- "查询个人中心常用工具列表": {
- "prefix": "ym-db-UserCenterIconList-Find",
- "body": [
- "List<UserCenterIconList> $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCenterIconList $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询个人中心常用工具列表,并取值": {
- "prefix": "ym-db-UserCenterIconList-FindWithData",
- "body": [
- "List<UserCenterIconList> $1 = db.UserCenterIconList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCenterIconList $3 in $1)",
- "{",
- " string Icon = $3.Icon; //图标",
- " string Title = $3.Title; //标题",
- " string Url = $3.Url; //跳转地址",
- "}"
- ]
- },
- "查询个人中心常用工具": {
- "prefix": "ym-db-UserCenterIconList-Exist",
- "body": [
- "bool $1 = db.UserCenterIconList.Any(m => m.Id == $2);",
- ]
- },
- "查询某个个人中心常用工具,并取值": {
- "prefix": "ym-db-UserCenterIconList-FindByPrimaryKey",
- "body": [
- "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Icon = $1.Icon; //图标",
- " string Title = $1.Title; //标题",
- " string Url = $1.Url; //跳转地址",
- "}"
- ]
- },
- "查询某个个人中心常用工具,并赋值": {
- "prefix": "ym-db-UserCenterIconList-Update",
- "body": [
- "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Icon = $2; //图标",
- " $1.Title = $3; //标题",
- " $1.Url = $4; //跳转地址",
- "}"
- ]
- },
- "获取个人中心常用工具数量": {
- "prefix": "ym-db-UserCenterIconList-FindAndCount",
- "body": [
- "int $1 = db.UserCenterIconList.Count(m => $2);",
- ]
- },
- "添加个人中心常用工具": {
- "prefix": "ym-db-UserCenterIconList-Create",
- "body": [
- "db.UserCenterIconList.Add(new UserCenterIconList()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Icon = $1, //图标",
- " Title = $2, //标题",
- " Url = $3, //跳转地址",
- "});"
- ]
- },"删除某个个人中心常用工具": {
- "prefix": "ym-db-UserCenterIconList-Delete",
- "body": [
- "UserCenterIconList $1 = db.UserCenterIconList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserCenterIconList.Remove($1);",
- "}"
- ]
- },
- "查询收藏列表": {
- "prefix": "ym-db-UserCollection-Find",
- "body": [
- "List<UserCollection> $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCollection $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询收藏列表,并取值": {
- "prefix": "ym-db-UserCollection-FindWithData",
- "body": [
- "List<UserCollection> $1 = db.UserCollection.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCollection $3 in $1)",
- "{",
- " int DataId = $3.DataId; //数据Id",
- " int Kind = $3.Kind; //类别",
- " int UserId = $3.UserId; //创客Id",
- "}"
- ]
- },
- "查询收藏": {
- "prefix": "ym-db-UserCollection-Exist",
- "body": [
- "bool $1 = db.UserCollection.Any(m => m.Id == $2);",
- ]
- },
- "查询某个收藏,并取值": {
- "prefix": "ym-db-UserCollection-FindByPrimaryKey",
- "body": [
- "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int DataId = $1.DataId; //数据Id",
- " int Kind = $1.Kind; //类别",
- " int UserId = $1.UserId; //创客Id",
- "}"
- ]
- },
- "查询某个收藏,并赋值": {
- "prefix": "ym-db-UserCollection-Update",
- "body": [
- "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.DataId = $2; //数据Id",
- " $1.Kind = $3; //类别",
- " $1.UserId = $4; //创客Id",
- "}"
- ]
- },
- "获取收藏数量": {
- "prefix": "ym-db-UserCollection-FindAndCount",
- "body": [
- "int $1 = db.UserCollection.Count(m => $2);",
- ]
- },
- "添加收藏": {
- "prefix": "ym-db-UserCollection-Create",
- "body": [
- "db.UserCollection.Add(new UserCollection()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " DataId = $1, //数据Id",
- " Kind = $2, //类别",
- " UserId = $3, //创客Id",
- "});"
- ]
- },"删除某个收藏": {
- "prefix": "ym-db-UserCollection-Delete",
- "body": [
- "UserCollection $1 = db.UserCollection.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserCollection.Remove($1);",
- "}"
- ]
- },
- "查询创客数据列表": {
- "prefix": "ym-db-UserData-Find",
- "body": [
- "List<UserData> $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserData $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客数据列表,并取值": {
- "prefix": "ym-db-UserData-FindWithData",
- "body": [
- "List<UserData> $1 = db.UserData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserData $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " int GrowthValue = $3.GrowthValue; //成长值",
- " decimal CurMoney = $3.CurMoney; //当前余额",
- " decimal Integral = $3.Integral; //当前积分",
- " decimal TotalOrderMoney = $3.TotalOrderMoney; //消费总额",
- " decimal TotalUseIntegral = $3.TotalUseIntegral; //消耗积分总额",
- " int FollowCount = $3.FollowCount; //关注数",
- " int FansCount = $3.FansCount; //粉丝数",
- " int CollectionCount = $3.CollectionCount; //收藏数",
- " decimal Coupons = $3.Coupons; //卡券包",
- " int ToPayOrderCount = $3.ToPayOrderCount; //待付款",
- " int ToSendOrderCount = $3.ToSendOrderCount; //待发货",
- " int ToReceiveOrderCount = $3.ToReceiveOrderCount; //待收货",
- " int ToCommentOrderCount = $3.ToCommentOrderCount; //待评价",
- " int ToRefundOrderCount = $3.ToRefundOrderCount; //退款售后",
- " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额",
- " decimal SettleAmount = $3.SettleAmount; //最低结算金额",
- " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额",
- " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励",
- "}"
- ]
- },
- "查询创客数据": {
- "prefix": "ym-db-UserData-Exist",
- "body": [
- "bool $1 = db.UserData.Any(m => m.UserId == $2);",
- ]
- },
- "查询某个创客数据,并取值": {
- "prefix": "ym-db-UserData-FindByPrimaryKey",
- "body": [
- "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " int GrowthValue = $1.GrowthValue; //成长值",
- " decimal CurMoney = $1.CurMoney; //当前余额",
- " decimal Integral = $1.Integral; //当前积分",
- " decimal TotalOrderMoney = $1.TotalOrderMoney; //消费总额",
- " decimal TotalUseIntegral = $1.TotalUseIntegral; //消耗积分总额",
- " int FollowCount = $1.FollowCount; //关注数",
- " int FansCount = $1.FansCount; //粉丝数",
- " int CollectionCount = $1.CollectionCount; //收藏数",
- " decimal Coupons = $1.Coupons; //卡券包",
- " int ToPayOrderCount = $1.ToPayOrderCount; //待付款",
- " int ToSendOrderCount = $1.ToSendOrderCount; //待发货",
- " int ToReceiveOrderCount = $1.ToReceiveOrderCount; //待收货",
- " int ToCommentOrderCount = $1.ToCommentOrderCount; //待评价",
- " int ToRefundOrderCount = $1.ToRefundOrderCount; //退款售后",
- " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额",
- " decimal SettleAmount = $1.SettleAmount; //最低结算金额",
- " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额",
- " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励",
- "}"
- ]
- },
- "查询某个创客数据,并赋值": {
- "prefix": "ym-db-UserData-Update",
- "body": [
- "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.GrowthValue = $3; //成长值",
- " $1.CurMoney = $4; //当前余额",
- " $1.Integral = $5; //当前积分",
- " $1.TotalOrderMoney = $6; //消费总额",
- " $1.TotalUseIntegral = $7; //消耗积分总额",
- " $1.FollowCount = $8; //关注数",
- " $1.FansCount = $9; //粉丝数",
- " $1.CollectionCount = $10; //收藏数",
- " $1.Coupons = $11; //卡券包",
- " $1.ToPayOrderCount = $12; //待付款",
- " $1.ToSendOrderCount = $13; //待发货",
- " $1.ToReceiveOrderCount = $14; //待收货",
- " $1.ToCommentOrderCount = $15; //待评价",
- " $1.ToRefundOrderCount = $16; //退款售后",
- " $1.ActiveRewardAmount = $17; //激活奖励金额",
- " $1.SettleAmount = $18; //最低结算金额",
- " $1.CashFreezeAmt = $19; //提现冻结金额",
- " $1.ProfitRewardRate = $20; //分润奖励",
- "}"
- ]
- },
- "获取创客数据数量": {
- "prefix": "ym-db-UserData-FindAndCount",
- "body": [
- "int $1 = db.UserData.Count(m => $2);",
- ]
- },
- "添加创客数据": {
- "prefix": "ym-db-UserData-Create",
- "body": [
- "db.UserData.Add(new UserData()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " GrowthValue = $2, //成长值",
- " CurMoney = $3, //当前余额",
- " Integral = $4, //当前积分",
- " TotalOrderMoney = $5, //消费总额",
- " TotalUseIntegral = $6, //消耗积分总额",
- " FollowCount = $7, //关注数",
- " FansCount = $8, //粉丝数",
- " CollectionCount = $9, //收藏数",
- " Coupons = $10, //卡券包",
- " ToPayOrderCount = $11, //待付款",
- " ToSendOrderCount = $12, //待发货",
- " ToReceiveOrderCount = $13, //待收货",
- " ToCommentOrderCount = $14, //待评价",
- " ToRefundOrderCount = $15, //退款售后",
- " ActiveRewardAmount = $16, //激活奖励金额",
- " SettleAmount = $17, //最低结算金额",
- " CashFreezeAmt = $18, //提现冻结金额",
- " ProfitRewardRate = $19, //分润奖励",
- "});"
- ]
- },"删除某个创客数据": {
- "prefix": "ym-db-UserData-Delete",
- "body": [
- "UserData $1 = db.UserData.FirstOrDefault(m => m.UserId == $2);",
- "if ($1 != null)",
- "{",
- " db.UserData.Remove($1);",
- "}"
- ]
- },
- "查询创客详细信息列表": {
- "prefix": "ym-db-UserDetail-Find",
- "body": [
- "List<UserDetail> $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客详细信息列表,并取值": {
- "prefix": "ym-db-UserDetail-FindWithData",
- "body": [
- "List<UserDetail> $1 = db.UserDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserDetail $3 in $1)",
- "{",
- " int Id = $3.Id; //创客Id",
- " DateTime Birthday = $3.Birthday; //出生日期",
- " string PostalCode = $3.PostalCode; //邮编",
- " string Email = $3.Email; //邮箱",
- " int UserJob = $3.UserJob; //职业",
- " string OfficePhone = $3.OfficePhone; //办公电话",
- " string PrivatePhone = $3.PrivatePhone; //私人电话",
- " DateTime ToShopDate = $3.ToShopDate; //到达时间",
- " int EduLevel = $3.EduLevel; //教育程度",
- " int FamilyIncome = $3.FamilyIncome; //家庭收入",
- " int TrafficTool = $3.TrafficTool; //交通工具",
- " DateTime CardExpireDate = $3.CardExpireDate; //卡有效期",
- " int CardAddAddress = $3.CardAddAddress; //办卡地点",
- " string Note = $3.Note; //备注",
- " int AddMan = $3.AddMan; //登记创客",
- " int UpdateMan = $3.UpdateMan; //更新人",
- " string Interests = $3.Interests; //兴趣爱好",
- "}"
- ]
- },
- "查询创客详细信息": {
- "prefix": "ym-db-UserDetail-Exist",
- "body": [
- "bool $1 = db.UserDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客详细信息,并取值": {
- "prefix": "ym-db-UserDetail-FindByPrimaryKey",
- "body": [
- "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int Id = $1.Id; //创客Id",
- " DateTime Birthday = $1.Birthday; //出生日期",
- " string PostalCode = $1.PostalCode; //邮编",
- " string Email = $1.Email; //邮箱",
- " int UserJob = $1.UserJob; //职业",
- " string OfficePhone = $1.OfficePhone; //办公电话",
- " string PrivatePhone = $1.PrivatePhone; //私人电话",
- " DateTime ToShopDate = $1.ToShopDate; //到达时间",
- " int EduLevel = $1.EduLevel; //教育程度",
- " int FamilyIncome = $1.FamilyIncome; //家庭收入",
- " int TrafficTool = $1.TrafficTool; //交通工具",
- " DateTime CardExpireDate = $1.CardExpireDate; //卡有效期",
- " int CardAddAddress = $1.CardAddAddress; //办卡地点",
- " string Note = $1.Note; //备注",
- " int AddMan = $1.AddMan; //登记创客",
- " int UpdateMan = $1.UpdateMan; //更新人",
- " string Interests = $1.Interests; //兴趣爱好",
- "}"
- ]
- },
- "查询某个创客详细信息,并赋值": {
- "prefix": "ym-db-UserDetail-Update",
- "body": [
- "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Id = $2; //创客Id",
- " $1.Birthday = $3; //出生日期",
- " $1.PostalCode = $4; //邮编",
- " $1.Email = $5; //邮箱",
- " $1.UserJob = $6; //职业",
- " $1.OfficePhone = $7; //办公电话",
- " $1.PrivatePhone = $8; //私人电话",
- " $1.ToShopDate = $9; //到达时间",
- " $1.EduLevel = $10; //教育程度",
- " $1.FamilyIncome = $11; //家庭收入",
- " $1.TrafficTool = $12; //交通工具",
- " $1.CardExpireDate = $13; //卡有效期",
- " $1.CardAddAddress = $14; //办卡地点",
- " $1.Note = $15; //备注",
- " $1.AddMan = $16; //登记创客",
- " $1.UpdateMan = $17; //更新人",
- " $1.Interests = $18; //兴趣爱好",
- "}"
- ]
- },
- "获取创客详细信息数量": {
- "prefix": "ym-db-UserDetail-FindAndCount",
- "body": [
- "int $1 = db.UserDetail.Count(m => $2);",
- ]
- },
- "添加创客详细信息": {
- "prefix": "ym-db-UserDetail-Create",
- "body": [
- "db.UserDetail.Add(new UserDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Id = $1, //创客Id",
- " Birthday = $2, //出生日期",
- " PostalCode = $3, //邮编",
- " Email = $4, //邮箱",
- " UserJob = $5, //职业",
- " OfficePhone = $6, //办公电话",
- " PrivatePhone = $7, //私人电话",
- " ToShopDate = $8, //到达时间",
- " EduLevel = $9, //教育程度",
- " FamilyIncome = $10, //家庭收入",
- " TrafficTool = $11, //交通工具",
- " CardExpireDate = $12, //卡有效期",
- " CardAddAddress = $13, //办卡地点",
- " Note = $14, //备注",
- " AddMan = $15, //登记创客",
- " UpdateMan = $16, //更新人",
- " Interests = $17, //兴趣爱好",
- "});"
- ]
- },"删除某个创客详细信息": {
- "prefix": "ym-db-UserDetail-Delete",
- "body": [
- "UserDetail $1 = db.UserDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserDetail.Remove($1);",
- "}"
- ]
- },
- "查询创客家庭成员列表": {
- "prefix": "ym-db-UserFamilyMember-Find",
- "body": [
- "List<UserFamilyMember> $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserFamilyMember $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客家庭成员列表,并取值": {
- "prefix": "ym-db-UserFamilyMember-FindWithData",
- "body": [
- "List<UserFamilyMember> $1 = db.UserFamilyMember.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserFamilyMember $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " string Name = $3.Name; //姓名",
- " string Mobile = $3.Mobile; //手机号",
- " int MemberKind = $3.MemberKind; //关系",
- " string IdCardNo = $3.IdCardNo; //身份证号",
- " int Job = $3.Job; //职业",
- "}"
- ]
- },
- "查询创客家庭成员": {
- "prefix": "ym-db-UserFamilyMember-Exist",
- "body": [
- "bool $1 = db.UserFamilyMember.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客家庭成员,并取值": {
- "prefix": "ym-db-UserFamilyMember-FindByPrimaryKey",
- "body": [
- "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " string Name = $1.Name; //姓名",
- " string Mobile = $1.Mobile; //手机号",
- " int MemberKind = $1.MemberKind; //关系",
- " string IdCardNo = $1.IdCardNo; //身份证号",
- " int Job = $1.Job; //职业",
- "}"
- ]
- },
- "查询某个创客家庭成员,并赋值": {
- "prefix": "ym-db-UserFamilyMember-Update",
- "body": [
- "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.Name = $3; //姓名",
- " $1.Mobile = $4; //手机号",
- " $1.MemberKind = $5; //关系",
- " $1.IdCardNo = $6; //身份证号",
- " $1.Job = $7; //职业",
- "}"
- ]
- },
- "获取创客家庭成员数量": {
- "prefix": "ym-db-UserFamilyMember-FindAndCount",
- "body": [
- "int $1 = db.UserFamilyMember.Count(m => $2);",
- ]
- },
- "添加创客家庭成员": {
- "prefix": "ym-db-UserFamilyMember-Create",
- "body": [
- "db.UserFamilyMember.Add(new UserFamilyMember()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " Name = $2, //姓名",
- " Mobile = $3, //手机号",
- " MemberKind = $4, //关系",
- " IdCardNo = $5, //身份证号",
- " Job = $6, //职业",
- "});"
- ]
- },"删除某个创客家庭成员": {
- "prefix": "ym-db-UserFamilyMember-Delete",
- "body": [
- "UserFamilyMember $1 = db.UserFamilyMember.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserFamilyMember.Remove($1);",
- "}"
- ]
- },
- "查询创客编号为主键的关联表列表": {
- "prefix": "ym-db-UserForMakerCode-Find",
- "body": [
- "List<UserForMakerCode> $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserForMakerCode $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客编号为主键的关联表列表,并取值": {
- "prefix": "ym-db-UserForMakerCode-FindWithData",
- "body": [
- "List<UserForMakerCode> $1 = db.UserForMakerCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserForMakerCode $3 in $1)",
- "{",
- " string MakerCode = $3.MakerCode; //编号",
- " int UserId = $3.UserId; //创客",
- "}"
- ]
- },
- "查询创客编号为主键的关联表": {
- "prefix": "ym-db-UserForMakerCode-Exist",
- "body": [
- "bool $1 = db.UserForMakerCode.Any(m => m.MakerCode == $2);",
- ]
- },
- "查询某个创客编号为主键的关联表,并取值": {
- "prefix": "ym-db-UserForMakerCode-FindByPrimaryKey",
- "body": [
- "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
- "if ($1 != null)",
- "{",
- " string MakerCode = $1.MakerCode; //编号",
- " int UserId = $1.UserId; //创客",
- "}"
- ]
- },
- "查询某个创客编号为主键的关联表,并赋值": {
- "prefix": "ym-db-UserForMakerCode-Update",
- "body": [
- "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
- "if ($1 != null)",
- "{",
- " $1.MakerCode = $2; //编号",
- " $1.UserId = $3; //创客",
- "}"
- ]
- },
- "获取创客编号为主键的关联表数量": {
- "prefix": "ym-db-UserForMakerCode-FindAndCount",
- "body": [
- "int $1 = db.UserForMakerCode.Count(m => $2);",
- ]
- },
- "添加创客编号为主键的关联表": {
- "prefix": "ym-db-UserForMakerCode-Create",
- "body": [
- "db.UserForMakerCode.Add(new UserForMakerCode()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MakerCode = $1, //编号",
- " UserId = $2, //创客",
- "});"
- ]
- },"删除某个创客编号为主键的关联表": {
- "prefix": "ym-db-UserForMakerCode-Delete",
- "body": [
- "UserForMakerCode $1 = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == $2);",
- "if ($1 != null)",
- "{",
- " db.UserForMakerCode.Remove($1);",
- "}"
- ]
- },
- "查询创客手机号为主键的关联表列表": {
- "prefix": "ym-db-UserForMobile-Find",
- "body": [
- "List<UserForMobile> $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserForMobile $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客手机号为主键的关联表列表,并取值": {
- "prefix": "ym-db-UserForMobile-FindWithData",
- "body": [
- "List<UserForMobile> $1 = db.UserForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserForMobile $3 in $1)",
- "{",
- " string Mobile = $3.Mobile; //手机号",
- " int UserId = $3.UserId; //创客Id",
- "}"
- ]
- },
- "查询创客手机号为主键的关联表": {
- "prefix": "ym-db-UserForMobile-Exist",
- "body": [
- "bool $1 = db.UserForMobile.Any(m => m.Mobile == $2);",
- ]
- },
- "查询某个创客手机号为主键的关联表,并取值": {
- "prefix": "ym-db-UserForMobile-FindByPrimaryKey",
- "body": [
- "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " string Mobile = $1.Mobile; //手机号",
- " int UserId = $1.UserId; //创客Id",
- "}"
- ]
- },
- "查询某个创客手机号为主键的关联表,并赋值": {
- "prefix": "ym-db-UserForMobile-Update",
- "body": [
- "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " $1.Mobile = $2; //手机号",
- " $1.UserId = $3; //创客Id",
- "}"
- ]
- },
- "获取创客手机号为主键的关联表数量": {
- "prefix": "ym-db-UserForMobile-FindAndCount",
- "body": [
- "int $1 = db.UserForMobile.Count(m => $2);",
- ]
- },
- "添加创客手机号为主键的关联表": {
- "prefix": "ym-db-UserForMobile-Create",
- "body": [
- "db.UserForMobile.Add(new UserForMobile()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Mobile = $1, //手机号",
- " UserId = $2, //创客Id",
- "});"
- ]
- },"删除某个创客手机号为主键的关联表": {
- "prefix": "ym-db-UserForMobile-Delete",
- "body": [
- "UserForMobile $1 = db.UserForMobile.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " db.UserForMobile.Remove($1);",
- "}"
- ]
- },
- "查询创客姓名为主键的关联表列表": {
- "prefix": "ym-db-UserForRealName-Find",
- "body": [
- "List<UserForRealName> $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserForRealName $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客姓名为主键的关联表列表,并取值": {
- "prefix": "ym-db-UserForRealName-FindWithData",
- "body": [
- "List<UserForRealName> $1 = db.UserForRealName.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserForRealName $3 in $1)",
- "{",
- " string RealName = $3.RealName; //姓名",
- " string UserId = $3.UserId; //创客",
- "}"
- ]
- },
- "查询创客姓名为主键的关联表": {
- "prefix": "ym-db-UserForRealName-Exist",
- "body": [
- "bool $1 = db.UserForRealName.Any(m => m.RealName == $2);",
- ]
- },
- "查询某个创客姓名为主键的关联表,并取值": {
- "prefix": "ym-db-UserForRealName-FindByPrimaryKey",
- "body": [
- "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
- "if ($1 != null)",
- "{",
- " string RealName = $1.RealName; //姓名",
- " string UserId = $1.UserId; //创客",
- "}"
- ]
- },
- "查询某个创客姓名为主键的关联表,并赋值": {
- "prefix": "ym-db-UserForRealName-Update",
- "body": [
- "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
- "if ($1 != null)",
- "{",
- " $1.RealName = $2; //姓名",
- " $1.UserId = $3; //创客",
- "}"
- ]
- },
- "获取创客姓名为主键的关联表数量": {
- "prefix": "ym-db-UserForRealName-FindAndCount",
- "body": [
- "int $1 = db.UserForRealName.Count(m => $2);",
- ]
- },
- "添加创客姓名为主键的关联表": {
- "prefix": "ym-db-UserForRealName-Create",
- "body": [
- "db.UserForRealName.Add(new UserForRealName()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " RealName = $1, //姓名",
- " UserId = $2, //创客",
- "});"
- ]
- },"删除某个创客姓名为主键的关联表": {
- "prefix": "ym-db-UserForRealName-Delete",
- "body": [
- "UserForRealName $1 = db.UserForRealName.FirstOrDefault(m => m.RealName == $2);",
- "if ($1 != null)",
- "{",
- " db.UserForRealName.Remove($1);",
- "}"
- ]
- },
- "查询创客好友关联表列表": {
- "prefix": "ym-db-UserFriend-Find",
- "body": [
- "List<UserFriend> $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserFriend $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客好友关联表列表,并取值": {
- "prefix": "ym-db-UserFriend-FindWithData",
- "body": [
- "List<UserFriend> $1 = db.UserFriend.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserFriend $3 in $1)",
- "{",
- " int Id = $3.Id; //Id",
- " int UserId = $3.UserId; //创客Id",
- " int FriendId = $3.FriendId; //好友Id",
- "}"
- ]
- },
- "查询创客好友关联表": {
- "prefix": "ym-db-UserFriend-Exist",
- "body": [
- "bool $1 = db.UserFriend.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客好友关联表,并取值": {
- "prefix": "ym-db-UserFriend-FindByPrimaryKey",
- "body": [
- "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int Id = $1.Id; //Id",
- " int UserId = $1.UserId; //创客Id",
- " int FriendId = $1.FriendId; //好友Id",
- "}"
- ]
- },
- "查询某个创客好友关联表,并赋值": {
- "prefix": "ym-db-UserFriend-Update",
- "body": [
- "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Id = $2; //Id",
- " $1.UserId = $3; //创客Id",
- " $1.FriendId = $4; //好友Id",
- "}"
- ]
- },
- "获取创客好友关联表数量": {
- "prefix": "ym-db-UserFriend-FindAndCount",
- "body": [
- "int $1 = db.UserFriend.Count(m => $2);",
- ]
- },
- "添加创客好友关联表": {
- "prefix": "ym-db-UserFriend-Create",
- "body": [
- "db.UserFriend.Add(new UserFriend()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Id = $1, //Id",
- " UserId = $2, //创客Id",
- " FriendId = $3, //好友Id",
- "});"
- ]
- },"删除某个创客好友关联表": {
- "prefix": "ym-db-UserFriend-Delete",
- "body": [
- "UserFriend $1 = db.UserFriend.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserFriend.Remove($1);",
- "}"
- ]
- },
- "查询创客分组列表": {
- "prefix": "ym-db-UserGroup-Find",
- "body": [
- "List<UserGroup> $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserGroup $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客分组列表,并取值": {
- "prefix": "ym-db-UserGroup-FindWithData",
- "body": [
- "List<UserGroup> $1 = db.UserGroup.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserGroup $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string Details = $3.Details; //描述",
- "}"
- ]
- },
- "查询创客分组": {
- "prefix": "ym-db-UserGroup-Exist",
- "body": [
- "bool $1 = db.UserGroup.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客分组,并取值": {
- "prefix": "ym-db-UserGroup-FindByPrimaryKey",
- "body": [
- "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string Details = $1.Details; //描述",
- "}"
- ]
- },
- "查询某个创客分组,并赋值": {
- "prefix": "ym-db-UserGroup-Update",
- "body": [
- "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.Details = $3; //描述",
- "}"
- ]
- },
- "获取创客分组数量": {
- "prefix": "ym-db-UserGroup-FindAndCount",
- "body": [
- "int $1 = db.UserGroup.Count(m => $2);",
- ]
- },
- "添加创客分组": {
- "prefix": "ym-db-UserGroup-Create",
- "body": [
- "db.UserGroup.Add(new UserGroup()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " Details = $2, //描述",
- "});"
- ]
- },"删除某个创客分组": {
- "prefix": "ym-db-UserGroup-Delete",
- "body": [
- "UserGroup $1 = db.UserGroup.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserGroup.Remove($1);",
- "}"
- ]
- },
- "查询创客等级设定列表": {
- "prefix": "ym-db-UserLevelSet-Find",
- "body": [
- "List<UserLevelSet> $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserLevelSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客等级设定列表,并取值": {
- "prefix": "ym-db-UserLevelSet-FindWithData",
- "body": [
- "List<UserLevelSet> $1 = db.UserLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserLevelSet $3 in $1)",
- "{",
- " string Name = $3.Name; //等级名称",
- " string Details = $3.Details; //等级描述",
- " int UpLevelDays = $3.UpLevelDays; //升级天数",
- " decimal UpLevelIntegral = $3.UpLevelIntegral; //升级需要积分值",
- " int UpLevelGrowth = $3.UpLevelGrowth; //升级需要成长值",
- "}"
- ]
- },
- "查询创客等级设定": {
- "prefix": "ym-db-UserLevelSet-Exist",
- "body": [
- "bool $1 = db.UserLevelSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客等级设定,并取值": {
- "prefix": "ym-db-UserLevelSet-FindByPrimaryKey",
- "body": [
- "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //等级名称",
- " string Details = $1.Details; //等级描述",
- " int UpLevelDays = $1.UpLevelDays; //升级天数",
- " decimal UpLevelIntegral = $1.UpLevelIntegral; //升级需要积分值",
- " int UpLevelGrowth = $1.UpLevelGrowth; //升级需要成长值",
- "}"
- ]
- },
- "查询某个创客等级设定,并赋值": {
- "prefix": "ym-db-UserLevelSet-Update",
- "body": [
- "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //等级名称",
- " $1.Details = $3; //等级描述",
- " $1.UpLevelDays = $4; //升级天数",
- " $1.UpLevelIntegral = $5; //升级需要积分值",
- " $1.UpLevelGrowth = $6; //升级需要成长值",
- "}"
- ]
- },
- "获取创客等级设定数量": {
- "prefix": "ym-db-UserLevelSet-FindAndCount",
- "body": [
- "int $1 = db.UserLevelSet.Count(m => $2);",
- ]
- },
- "添加创客等级设定": {
- "prefix": "ym-db-UserLevelSet-Create",
- "body": [
- "db.UserLevelSet.Add(new UserLevelSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //等级名称",
- " Details = $2, //等级描述",
- " UpLevelDays = $3, //升级天数",
- " UpLevelIntegral = $4, //升级需要积分值",
- " UpLevelGrowth = $5, //升级需要成长值",
- "});"
- ]
- },"删除某个创客等级设定": {
- "prefix": "ym-db-UserLevelSet-Delete",
- "body": [
- "UserLevelSet $1 = db.UserLevelSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserLevelSet.Remove($1);",
- "}"
- ]
- },
- "查询创客登录记录列表": {
- "prefix": "ym-db-UserLoginRecord-Find",
- "body": [
- "List<UserLoginRecord> $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserLoginRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客登录记录列表,并取值": {
- "prefix": "ym-db-UserLoginRecord-FindWithData",
- "body": [
- "List<UserLoginRecord> $1 = db.UserLoginRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserLoginRecord $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int Kind = $3.Kind; //类别",
- "}"
- ]
- },
- "查询创客登录记录": {
- "prefix": "ym-db-UserLoginRecord-Exist",
- "body": [
- "bool $1 = db.UserLoginRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客登录记录,并取值": {
- "prefix": "ym-db-UserLoginRecord-FindByPrimaryKey",
- "body": [
- "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int Kind = $1.Kind; //类别",
- "}"
- ]
- },
- "查询某个创客登录记录,并赋值": {
- "prefix": "ym-db-UserLoginRecord-Update",
- "body": [
- "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.Kind = $3; //类别",
- "}"
- ]
- },
- "获取创客登录记录数量": {
- "prefix": "ym-db-UserLoginRecord-FindAndCount",
- "body": [
- "int $1 = db.UserLoginRecord.Count(m => $2);",
- ]
- },
- "添加创客登录记录": {
- "prefix": "ym-db-UserLoginRecord-Create",
- "body": [
- "db.UserLoginRecord.Add(new UserLoginRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " Kind = $2, //类别",
- "});"
- ]
- },"删除某个创客登录记录": {
- "prefix": "ym-db-UserLoginRecord-Delete",
- "body": [
- "UserLoginRecord $1 = db.UserLoginRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserLoginRecord.Remove($1);",
- "}"
- ]
- },
- "查询创客商城提大货SN列表": {
- "prefix": "ym-db-UserMallLargeSn-Find",
- "body": [
- "List<UserMallLargeSn> $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserMallLargeSn $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客商城提大货SN列表,并取值": {
- "prefix": "ym-db-UserMallLargeSn-FindWithData",
- "body": [
- "List<UserMallLargeSn> $1 = db.UserMallLargeSn.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserMallLargeSn $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " string ProductName = $3.ProductName; //产品名称",
- " string OrderNo = $3.OrderNo; //订单号",
- " decimal OrderAmount = $3.OrderAmount; //订单金额",
- " int OrderNum = $3.OrderNum; //订单数量",
- " decimal RuleOrderAmt = $3.RuleOrderAmt; //规则订单金额",
- " int SnStatus = $3.SnStatus; //SN状态",
- " string SnNo = $3.SnNo; //SN编号",
- " int SnType = $3.SnType; //SN类型",
- " DateTime SnShipDate = $3.SnShipDate; //SN发货时间",
- " int StoreId = $3.StoreId; //SN发货仓库",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询创客商城提大货SN": {
- "prefix": "ym-db-UserMallLargeSn-Exist",
- "body": [
- "bool $1 = db.UserMallLargeSn.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客商城提大货SN,并取值": {
- "prefix": "ym-db-UserMallLargeSn-FindByPrimaryKey",
- "body": [
- "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " string ProductName = $1.ProductName; //产品名称",
- " string OrderNo = $1.OrderNo; //订单号",
- " decimal OrderAmount = $1.OrderAmount; //订单金额",
- " int OrderNum = $1.OrderNum; //订单数量",
- " decimal RuleOrderAmt = $1.RuleOrderAmt; //规则订单金额",
- " int SnStatus = $1.SnStatus; //SN状态",
- " string SnNo = $1.SnNo; //SN编号",
- " int SnType = $1.SnType; //SN类型",
- " DateTime SnShipDate = $1.SnShipDate; //SN发货时间",
- " int StoreId = $1.StoreId; //SN发货仓库",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个创客商城提大货SN,并赋值": {
- "prefix": "ym-db-UserMallLargeSn-Update",
- "body": [
- "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //品牌",
- " $1.ProductName = $4; //产品名称",
- " $1.OrderNo = $5; //订单号",
- " $1.OrderAmount = $6; //订单金额",
- " $1.OrderNum = $7; //订单数量",
- " $1.RuleOrderAmt = $8; //规则订单金额",
- " $1.SnStatus = $9; //SN状态",
- " $1.SnNo = $10; //SN编号",
- " $1.SnType = $11; //SN类型",
- " $1.SnShipDate = $12; //SN发货时间",
- " $1.StoreId = $13; //SN发货仓库",
- " $1.Remark = $14; //备注",
- "}"
- ]
- },
- "获取创客商城提大货SN数量": {
- "prefix": "ym-db-UserMallLargeSn-FindAndCount",
- "body": [
- "int $1 = db.UserMallLargeSn.Count(m => $2);",
- ]
- },
- "添加创客商城提大货SN": {
- "prefix": "ym-db-UserMallLargeSn-Create",
- "body": [
- "db.UserMallLargeSn.Add(new UserMallLargeSn()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //品牌",
- " ProductName = $3, //产品名称",
- " OrderNo = $4, //订单号",
- " OrderAmount = $5, //订单金额",
- " OrderNum = $6, //订单数量",
- " RuleOrderAmt = $7, //规则订单金额",
- " SnStatus = $8, //SN状态",
- " SnNo = $9, //SN编号",
- " SnType = $10, //SN类型",
- " SnShipDate = $11, //SN发货时间",
- " StoreId = $12, //SN发货仓库",
- " Remark = $13, //备注",
- "});"
- ]
- },"删除某个创客商城提大货SN": {
- "prefix": "ym-db-UserMallLargeSn-Delete",
- "body": [
- "UserMallLargeSn $1 = db.UserMallLargeSn.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserMallLargeSn.Remove($1);",
- "}"
- ]
- },
- "查询创客线下签到记录列表": {
- "prefix": "ym-db-UserOfflineSignInRecords-Find",
- "body": [
- "List<UserOfflineSignInRecords> $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserOfflineSignInRecords $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客线下签到记录列表,并取值": {
- "prefix": "ym-db-UserOfflineSignInRecords-FindWithData",
- "body": [
- "List<UserOfflineSignInRecords> $1 = db.UserOfflineSignInRecords.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserOfflineSignInRecords $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客Id",
- " int MerchantId = $3.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询创客线下签到记录": {
- "prefix": "ym-db-UserOfflineSignInRecords-Exist",
- "body": [
- "bool $1 = db.UserOfflineSignInRecords.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客线下签到记录,并取值": {
- "prefix": "ym-db-UserOfflineSignInRecords-FindByPrimaryKey",
- "body": [
- "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客Id",
- " int MerchantId = $1.MerchantId; //商家Id",
- "}"
- ]
- },
- "查询某个创客线下签到记录,并赋值": {
- "prefix": "ym-db-UserOfflineSignInRecords-Update",
- "body": [
- "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客Id",
- " $1.MerchantId = $3; //商家Id",
- "}"
- ]
- },
- "获取创客线下签到记录数量": {
- "prefix": "ym-db-UserOfflineSignInRecords-FindAndCount",
- "body": [
- "int $1 = db.UserOfflineSignInRecords.Count(m => $2);",
- ]
- },
- "添加创客线下签到记录": {
- "prefix": "ym-db-UserOfflineSignInRecords-Create",
- "body": [
- "db.UserOfflineSignInRecords.Add(new UserOfflineSignInRecords()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客Id",
- " MerchantId = $2, //商家Id",
- "});"
- ]
- },"删除某个创客线下签到记录": {
- "prefix": "ym-db-UserOfflineSignInRecords-Delete",
- "body": [
- "UserOfflineSignInRecords $1 = db.UserOfflineSignInRecords.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserOfflineSignInRecords.Remove($1);",
- "}"
- ]
- },
- "查询创客分润规则列表": {
- "prefix": "ym-db-UserProfit-Find",
- "body": [
- "List<UserProfit> $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserProfit $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客分润规则列表,并取值": {
- "prefix": "ym-db-UserProfit-FindWithData",
- "body": [
- "List<UserProfit> $1 = db.UserProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserProfit $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " string CardType = $3.CardType; //交易卡类型",
- " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例",
- " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比",
- " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间",
- " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数",
- " string Remark = $3.Remark; //备注",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " decimal HelpAddOrSubRate = $3.HelpAddOrSubRate; //扶持期浮动空间",
- " decimal HelpProfitPercent = $3.HelpProfitPercent; //扶持期创客预设分润百分比",
- " decimal HelpProfitRate = $3.HelpProfitRate; //扶持期创客预设分润比例",
- " decimal HelpProfitRateBase = $3.HelpProfitRateBase; //扶持期分润比例基数",
- "}"
- ]
- },
- "查询创客分润规则": {
- "prefix": "ym-db-UserProfit-Exist",
- "body": [
- "bool $1 = db.UserProfit.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客分润规则,并取值": {
- "prefix": "ym-db-UserProfit-FindByPrimaryKey",
- "body": [
- "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " string CardType = $1.CardType; //交易卡类型",
- " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例",
- " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比",
- " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间",
- " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数",
- " string Remark = $1.Remark; //备注",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " decimal HelpAddOrSubRate = $1.HelpAddOrSubRate; //扶持期浮动空间",
- " decimal HelpProfitPercent = $1.HelpProfitPercent; //扶持期创客预设分润百分比",
- " decimal HelpProfitRate = $1.HelpProfitRate; //扶持期创客预设分润比例",
- " decimal HelpProfitRateBase = $1.HelpProfitRateBase; //扶持期分润比例基数",
- "}"
- ]
- },
- "查询某个创客分润规则,并赋值": {
- "prefix": "ym-db-UserProfit-Update",
- "body": [
- "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //品牌",
- " $1.CardType = $4; //交易卡类型",
- " $1.ProfitRate = $5; //创客预设分润比例",
- " $1.ProfitPercent = $6; //创客预设分润百分比",
- " $1.AddOrSubRate = $7; //浮动空间",
- " $1.ProfitRateBase = $8; //分润比例基数",
- " $1.Remark = $9; //备注",
- " $1.TopUserId = $10; //顶级创客",
- " $1.HelpAddOrSubRate = $11; //扶持期浮动空间",
- " $1.HelpProfitPercent = $12; //扶持期创客预设分润百分比",
- " $1.HelpProfitRate = $13; //扶持期创客预设分润比例",
- " $1.HelpProfitRateBase = $14; //扶持期分润比例基数",
- "}"
- ]
- },
- "获取创客分润规则数量": {
- "prefix": "ym-db-UserProfit-FindAndCount",
- "body": [
- "int $1 = db.UserProfit.Count(m => $2);",
- ]
- },
- "添加创客分润规则": {
- "prefix": "ym-db-UserProfit-Create",
- "body": [
- "db.UserProfit.Add(new UserProfit()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //品牌",
- " CardType = $3, //交易卡类型",
- " ProfitRate = $4, //创客预设分润比例",
- " ProfitPercent = $5, //创客预设分润百分比",
- " AddOrSubRate = $6, //浮动空间",
- " ProfitRateBase = $7, //分润比例基数",
- " Remark = $8, //备注",
- " TopUserId = $9, //顶级创客",
- " HelpAddOrSubRate = $10, //扶持期浮动空间",
- " HelpProfitPercent = $11, //扶持期创客预设分润百分比",
- " HelpProfitRate = $12, //扶持期创客预设分润比例",
- " HelpProfitRateBase = $13, //扶持期分润比例基数",
- "});"
- ]
- },"删除某个创客分润规则": {
- "prefix": "ym-db-UserProfit-Delete",
- "body": [
- "UserProfit $1 = db.UserProfit.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserProfit.Remove($1);",
- "}"
- ]
- },
- "查询创客预设分润列表": {
- "prefix": "ym-db-UserProfitSet-Find",
- "body": [
- "List<UserProfitSet> $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserProfitSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客预设分润列表,并取值": {
- "prefix": "ym-db-UserProfitSet-FindWithData",
- "body": [
- "List<UserProfitSet> $1 = db.UserProfitSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserProfitSet $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " int CardType = $3.CardType; //交易卡类型",
- " int HelpFlag = $3.HelpFlag; //扶持期标识",
- " decimal ProfitRate = $3.ProfitRate; //创客预设分润比例",
- " decimal ProfitPercent = $3.ProfitPercent; //创客预设分润百分比",
- " decimal AddOrSubRate = $3.AddOrSubRate; //浮动空间",
- " decimal ProfitRateBase = $3.ProfitRateBase; //分润比例基数",
- " string Remark = $3.Remark; //备注",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询创客预设分润": {
- "prefix": "ym-db-UserProfitSet-Exist",
- "body": [
- "bool $1 = db.UserProfitSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客预设分润,并取值": {
- "prefix": "ym-db-UserProfitSet-FindByPrimaryKey",
- "body": [
- "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " int CardType = $1.CardType; //交易卡类型",
- " int HelpFlag = $1.HelpFlag; //扶持期标识",
- " decimal ProfitRate = $1.ProfitRate; //创客预设分润比例",
- " decimal ProfitPercent = $1.ProfitPercent; //创客预设分润百分比",
- " decimal AddOrSubRate = $1.AddOrSubRate; //浮动空间",
- " decimal ProfitRateBase = $1.ProfitRateBase; //分润比例基数",
- " string Remark = $1.Remark; //备注",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个创客预设分润,并赋值": {
- "prefix": "ym-db-UserProfitSet-Update",
- "body": [
- "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //品牌",
- " $1.CardType = $4; //交易卡类型",
- " $1.HelpFlag = $5; //扶持期标识",
- " $1.ProfitRate = $6; //创客预设分润比例",
- " $1.ProfitPercent = $7; //创客预设分润百分比",
- " $1.AddOrSubRate = $8; //浮动空间",
- " $1.ProfitRateBase = $9; //分润比例基数",
- " $1.Remark = $10; //备注",
- " $1.TopUserId = $11; //顶级创客",
- "}"
- ]
- },
- "获取创客预设分润数量": {
- "prefix": "ym-db-UserProfitSet-FindAndCount",
- "body": [
- "int $1 = db.UserProfitSet.Count(m => $2);",
- ]
- },
- "添加创客预设分润": {
- "prefix": "ym-db-UserProfitSet-Create",
- "body": [
- "db.UserProfitSet.Add(new UserProfitSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //品牌",
- " CardType = $3, //交易卡类型",
- " HelpFlag = $4, //扶持期标识",
- " ProfitRate = $5, //创客预设分润比例",
- " ProfitPercent = $6, //创客预设分润百分比",
- " AddOrSubRate = $7, //浮动空间",
- " ProfitRateBase = $8, //分润比例基数",
- " Remark = $9, //备注",
- " TopUserId = $10, //顶级创客",
- "});"
- ]
- },"删除某个创客预设分润": {
- "prefix": "ym-db-UserProfitSet-Delete",
- "body": [
- "UserProfitSet $1 = db.UserProfitSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserProfitSet.Remove($1);",
- "}"
- ]
- },
- "查询创客分润补贴月汇总列表": {
- "prefix": "ym-db-UserProfitSubsidySummary-Find",
- "body": [
- "List<UserProfitSubsidySummary> $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserProfitSubsidySummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客分润补贴月汇总列表,并取值": {
- "prefix": "ym-db-UserProfitSubsidySummary-FindWithData",
- "body": [
- "List<UserProfitSubsidySummary> $1 = db.UserProfitSubsidySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserProfitSubsidySummary $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " string MgrNo = $3.MgrNo; //渠道经理编号",
- " string MgrName = $3.MgrName; //渠道经理姓名",
- " decimal SubsidyTotalProfit = $3.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额",
- " decimal SubsidyJuniorProfit = $3.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
- " decimal SubsidyDirectProfit = $3.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
- " int CheckStatus = $3.CheckStatus; //验证和同步账户状态",
- "}"
- ]
- },
- "查询创客分润补贴月汇总": {
- "prefix": "ym-db-UserProfitSubsidySummary-Exist",
- "body": [
- "bool $1 = db.UserProfitSubsidySummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客分润补贴月汇总,并取值": {
- "prefix": "ym-db-UserProfitSubsidySummary-FindByPrimaryKey",
- "body": [
- "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " string MgrNo = $1.MgrNo; //渠道经理编号",
- " string MgrName = $1.MgrName; //渠道经理姓名",
- " decimal SubsidyTotalProfit = $1.SubsidyTotalProfit; //商户(非云闪付)贷记卡交易分润补贴总金额",
- " decimal SubsidyJuniorProfit = $1.SubsidyJuniorProfit; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
- " decimal SubsidyDirectProfit = $1.SubsidyDirectProfit; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
- " int CheckStatus = $1.CheckStatus; //验证和同步账户状态",
- "}"
- ]
- },
- "查询某个创客分润补贴月汇总,并赋值": {
- "prefix": "ym-db-UserProfitSubsidySummary-Update",
- "body": [
- "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //品牌",
- " $1.TradeMonth = $4; //交易月",
- " $1.MgrNo = $5; //渠道经理编号",
- " $1.MgrName = $6; //渠道经理姓名",
- " $1.SubsidyTotalProfit = $7; //商户(非云闪付)贷记卡交易分润补贴总金额",
- " $1.SubsidyJuniorProfit = $8; //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
- " $1.SubsidyDirectProfit = $9; //直营商户(非云闪付)贷记卡交易分润补贴总金额",
- " $1.CheckStatus = $10; //验证和同步账户状态",
- "}"
- ]
- },
- "获取创客分润补贴月汇总数量": {
- "prefix": "ym-db-UserProfitSubsidySummary-FindAndCount",
- "body": [
- "int $1 = db.UserProfitSubsidySummary.Count(m => $2);",
- ]
- },
- "添加创客分润补贴月汇总": {
- "prefix": "ym-db-UserProfitSubsidySummary-Create",
- "body": [
- "db.UserProfitSubsidySummary.Add(new UserProfitSubsidySummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //品牌",
- " TradeMonth = $3, //交易月",
- " MgrNo = $4, //渠道经理编号",
- " MgrName = $5, //渠道经理姓名",
- " SubsidyTotalProfit = $6, //商户(非云闪付)贷记卡交易分润补贴总金额",
- " SubsidyJuniorProfit = $7, //下级合伙人直属商户(非云闪付)贷记卡交易分润补贴总金额",
- " SubsidyDirectProfit = $8, //直营商户(非云闪付)贷记卡交易分润补贴总金额",
- " CheckStatus = $9, //验证和同步账户状态",
- "});"
- ]
- },"删除某个创客分润补贴月汇总": {
- "prefix": "ym-db-UserProfitSubsidySummary-Delete",
- "body": [
- "UserProfitSubsidySummary $1 = db.UserProfitSubsidySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserProfitSubsidySummary.Remove($1);",
- "}"
- ]
- },
- "查询创客职级信息列表": {
- "prefix": "ym-db-UserRank-Find",
- "body": [
- "List<UserRank> $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserRank $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客职级信息列表,并取值": {
- "prefix": "ym-db-UserRank-FindWithData",
- "body": [
- "List<UserRank> $1 = db.UserRank.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserRank $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int Rank = $3.Rank; //当前等级",
- " int WhiteRank = $3.WhiteRank; //白名单等级",
- " int NextRank = $3.NextRank; //下个等级",
- " int StatYear = $3.StatYear; //统计年份",
- " int StatMonth = $3.StatMonth; //统计月份",
- " decimal TradeAmt = $3.TradeAmt; //团队交易总额",
- " int ExceedVal = $3.ExceedVal; //超越值",
- " ulong UpgradeFlag = $3.UpgradeFlag; //升级标识",
- " DateTime OperateDate = $3.OperateDate; //操作时间",
- "}"
- ]
- },
- "查询创客职级信息": {
- "prefix": "ym-db-UserRank-Exist",
- "body": [
- "bool $1 = db.UserRank.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客职级信息,并取值": {
- "prefix": "ym-db-UserRank-FindByPrimaryKey",
- "body": [
- "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int Rank = $1.Rank; //当前等级",
- " int WhiteRank = $1.WhiteRank; //白名单等级",
- " int NextRank = $1.NextRank; //下个等级",
- " int StatYear = $1.StatYear; //统计年份",
- " int StatMonth = $1.StatMonth; //统计月份",
- " decimal TradeAmt = $1.TradeAmt; //团队交易总额",
- " int ExceedVal = $1.ExceedVal; //超越值",
- " ulong UpgradeFlag = $1.UpgradeFlag; //升级标识",
- " DateTime OperateDate = $1.OperateDate; //操作时间",
- "}"
- ]
- },
- "查询某个创客职级信息,并赋值": {
- "prefix": "ym-db-UserRank-Update",
- "body": [
- "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.Rank = $3; //当前等级",
- " $1.WhiteRank = $4; //白名单等级",
- " $1.NextRank = $5; //下个等级",
- " $1.StatYear = $6; //统计年份",
- " $1.StatMonth = $7; //统计月份",
- " $1.TradeAmt = $8; //团队交易总额",
- " $1.ExceedVal = $9; //超越值",
- " $1.UpgradeFlag = $10; //升级标识",
- " $1.OperateDate = $11; //操作时间",
- "}"
- ]
- },
- "获取创客职级信息数量": {
- "prefix": "ym-db-UserRank-FindAndCount",
- "body": [
- "int $1 = db.UserRank.Count(m => $2);",
- ]
- },
- "添加创客职级信息": {
- "prefix": "ym-db-UserRank-Create",
- "body": [
- "db.UserRank.Add(new UserRank()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " Rank = $2, //当前等级",
- " WhiteRank = $3, //白名单等级",
- " NextRank = $4, //下个等级",
- " StatYear = $5, //统计年份",
- " StatMonth = $6, //统计月份",
- " TradeAmt = $7, //团队交易总额",
- " ExceedVal = $8, //超越值",
- " UpgradeFlag = $9, //升级标识",
- " OperateDate = $10, //操作时间",
- "});"
- ]
- },"删除某个创客职级信息": {
- "prefix": "ym-db-UserRank-Delete",
- "body": [
- "UserRank $1 = db.UserRank.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserRank.Remove($1);",
- "}"
- ]
- },
- "查询创客预设职级列表": {
- "prefix": "ym-db-UserRankWhite-Find",
- "body": [
- "List<UserRankWhite> $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserRankWhite $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客预设职级列表,并取值": {
- "prefix": "ym-db-UserRankWhite-FindWithData",
- "body": [
- "List<UserRankWhite> $1 = db.UserRankWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserRankWhite $3 in $1)",
- "{",
- " int UserId = $3.UserId; //用户",
- " int Rank = $3.Rank; //当前等级类型",
- "}"
- ]
- },
- "查询创客预设职级": {
- "prefix": "ym-db-UserRankWhite-Exist",
- "body": [
- "bool $1 = db.UserRankWhite.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客预设职级,并取值": {
- "prefix": "ym-db-UserRankWhite-FindByPrimaryKey",
- "body": [
- "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //用户",
- " int Rank = $1.Rank; //当前等级类型",
- "}"
- ]
- },
- "查询某个创客预设职级,并赋值": {
- "prefix": "ym-db-UserRankWhite-Update",
- "body": [
- "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //用户",
- " $1.Rank = $3; //当前等级类型",
- "}"
- ]
- },
- "获取创客预设职级数量": {
- "prefix": "ym-db-UserRankWhite-FindAndCount",
- "body": [
- "int $1 = db.UserRankWhite.Count(m => $2);",
- ]
- },
- "添加创客预设职级": {
- "prefix": "ym-db-UserRankWhite-Create",
- "body": [
- "db.UserRankWhite.Add(new UserRankWhite()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //用户",
- " Rank = $2, //当前等级类型",
- "});"
- ]
- },"删除某个创客预设职级": {
- "prefix": "ym-db-UserRankWhite-Delete",
- "body": [
- "UserRankWhite $1 = db.UserRankWhite.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserRankWhite.Remove($1);",
- "}"
- ]
- },
- "查询返利明细表列表": {
- "prefix": "ym-db-UserRebateDetail-Find",
- "body": [
- "List<UserRebateDetail> $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserRebateDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询返利明细表列表,并取值": {
- "prefix": "ym-db-UserRebateDetail-FindWithData",
- "body": [
- "List<UserRebateDetail> $1 = db.UserRebateDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserRebateDetail $3 in $1)",
- "{",
- " string TradeMonth = $3.TradeMonth; //交易月份",
- " string TradeDate = $3.TradeDate; //达标日期",
- " int UserId = $3.UserId; //创客",
- " string MgrNo = $3.MgrNo; //渠道经理编号",
- " string MgrName = $3.MgrName; //渠道经理姓名",
- " int ProductType = $3.ProductType; //产品类型",
- " string ProductName = $3.ProductName; //产品名称",
- " int MerchantId = $3.MerchantId; //商户",
- " string ChannelMerNo = $3.ChannelMerNo; //渠道商户编号",
- " int RebateType = $3.RebateType; //返利类型",
- " int RebateMonthCount = $3.RebateMonthCount; //返利周期数",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $3.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $3.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $3.DebitRewardAmount; //借记卡交易奖励金额",
- " string RebateRewardNo = $3.RebateRewardNo; //达标返利单号",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询返利明细表": {
- "prefix": "ym-db-UserRebateDetail-Exist",
- "body": [
- "bool $1 = db.UserRebateDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个返利明细表,并取值": {
- "prefix": "ym-db-UserRebateDetail-FindByPrimaryKey",
- "body": [
- "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TradeMonth = $1.TradeMonth; //交易月份",
- " string TradeDate = $1.TradeDate; //达标日期",
- " int UserId = $1.UserId; //创客",
- " string MgrNo = $1.MgrNo; //渠道经理编号",
- " string MgrName = $1.MgrName; //渠道经理姓名",
- " int ProductType = $1.ProductType; //产品类型",
- " string ProductName = $1.ProductName; //产品名称",
- " int MerchantId = $1.MerchantId; //商户",
- " string ChannelMerNo = $1.ChannelMerNo; //渠道商户编号",
- " int RebateType = $1.RebateType; //返利类型",
- " int RebateMonthCount = $1.RebateMonthCount; //返利周期数",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //贷记卡交易总金额",
- " decimal DebitTradeAmt = $1.DebitTradeAmt; //借记卡交易总金额",
- " decimal CreditRewardAmount = $1.CreditRewardAmount; //贷记卡交易奖励金额",
- " decimal DebitRewardAmount = $1.DebitRewardAmount; //借记卡交易奖励金额",
- " string RebateRewardNo = $1.RebateRewardNo; //达标返利单号",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个返利明细表,并赋值": {
- "prefix": "ym-db-UserRebateDetail-Update",
- "body": [
- "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TradeMonth = $2; //交易月份",
- " $1.TradeDate = $3; //达标日期",
- " $1.UserId = $4; //创客",
- " $1.MgrNo = $5; //渠道经理编号",
- " $1.MgrName = $6; //渠道经理姓名",
- " $1.ProductType = $7; //产品类型",
- " $1.ProductName = $8; //产品名称",
- " $1.MerchantId = $9; //商户",
- " $1.ChannelMerNo = $10; //渠道商户编号",
- " $1.RebateType = $11; //返利类型",
- " $1.RebateMonthCount = $12; //返利周期数",
- " $1.CreditTradeAmt = $13; //贷记卡交易总金额",
- " $1.DebitTradeAmt = $14; //借记卡交易总金额",
- " $1.CreditRewardAmount = $15; //贷记卡交易奖励金额",
- " $1.DebitRewardAmount = $16; //借记卡交易奖励金额",
- " $1.RebateRewardNo = $17; //达标返利单号",
- " $1.Remark = $18; //备注",
- "}"
- ]
- },
- "获取返利明细表数量": {
- "prefix": "ym-db-UserRebateDetail-FindAndCount",
- "body": [
- "int $1 = db.UserRebateDetail.Count(m => $2);",
- ]
- },
- "添加返利明细表": {
- "prefix": "ym-db-UserRebateDetail-Create",
- "body": [
- "db.UserRebateDetail.Add(new UserRebateDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TradeMonth = $1, //交易月份",
- " TradeDate = $2, //达标日期",
- " UserId = $3, //创客",
- " MgrNo = $4, //渠道经理编号",
- " MgrName = $5, //渠道经理姓名",
- " ProductType = $6, //产品类型",
- " ProductName = $7, //产品名称",
- " MerchantId = $8, //商户",
- " ChannelMerNo = $9, //渠道商户编号",
- " RebateType = $10, //返利类型",
- " RebateMonthCount = $11, //返利周期数",
- " CreditTradeAmt = $12, //贷记卡交易总金额",
- " DebitTradeAmt = $13, //借记卡交易总金额",
- " CreditRewardAmount = $14, //贷记卡交易奖励金额",
- " DebitRewardAmount = $15, //借记卡交易奖励金额",
- " RebateRewardNo = $16, //达标返利单号",
- " Remark = $17, //备注",
- "});"
- ]
- },"删除某个返利明细表": {
- "prefix": "ym-db-UserRebateDetail-Delete",
- "body": [
- "UserRebateDetail $1 = db.UserRebateDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserRebateDetail.Remove($1);",
- "}"
- ]
- },
- "查询创客列表": {
- "prefix": "ym-db-Users-Find",
- "body": [
- "List<Users> $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Users $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客列表,并取值": {
- "prefix": "ym-db-Users-FindWithData",
- "body": [
- "List<Users> $1 = db.Users.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Users $3 in $1)",
- "{",
- " string NickName = $3.NickName; //昵称",
- " string RealName = $3.RealName; //真实姓名",
- " int Sex = $3.Sex; //性别",
- " string CertId = $3.CertId; //身份证号",
- " string Areas = $3.Areas; //所在地区",
- " string Address = $3.Address; //详细地址",
- " string HeadPhoto = $3.HeadPhoto; //头像",
- " int ParentUserId = $3.ParentUserId; //父级Id",
- " int UserLevel = $3.UserLevel; //创客等级",
- " string CardNo = $3.CardNo; //卡号",
- " string Mobile = $3.Mobile; //手机号",
- " string GroupId = $3.GroupId; //分组",
- " string Tags = $3.Tags; //标签",
- " string ParentNav = $3.ParentNav; //父级集合",
- " string LoginPwd = $3.LoginPwd; //登录密码",
- " string PayPwd = $3.PayPwd; //支付密码",
- " string CarIds = $3.CarIds; //购物车Id集合",
- " string OpenId = $3.OpenId; //OpenId",
- " string AlipayUserId = $3.AlipayUserId; //支付宝用户Id",
- " ulong IsNewUser = $3.IsNewUser; //是否新创客",
- " string IdCardEndNo = $3.IdCardEndNo; //身份证后四位",
- " string SettleBankCardNo = $3.SettleBankCardNo; //结算银行卡号",
- " string SettleBankName = $3.SettleBankName; //结算银行名称",
- " string ReferenceCode = $3.ReferenceCode; //推荐码",
- " int ReferralUserId = $3.ReferralUserId; //引荐人",
- " string CardRecCode = $3.CardRecCode; //办卡分享图片地址",
- " string ReferenceQrCode = $3.ReferenceQrCode; //推广二维码地址",
- " string SignImgUrl = $3.SignImgUrl; //特定协议签名图片地址",
- " int UserType = $3.UserType; //创客类型",
- " int UserProperty = $3.UserProperty; //创客属性",
- " int MerchantType = $3.MerchantType; //商户创客类型",
- " DateTime MerchantDate = $3.MerchantDate; //成为商户型创客时间",
- " int LoginStatus = $3.LoginStatus; //登录状态",
- " int AuditStatus = $3.AuditStatus; //审核状态",
- " ulong LockStatus = $3.LockStatus; //锁定状态",
- " ulong AuthFlag = $3.AuthFlag; //实名标识",
- " DateTime AuthDate = $3.AuthDate; //实名时间",
- " ulong RiskFlag = $3.RiskFlag; //风控标识",
- " string RiskRemark = $3.RiskRemark; //风控备注",
- " string RreezeRemark = $3.RreezeRemark; //账户冻结备注信息",
- " string SettleRemark = $3.SettleRemark; //结算金额调整备注",
- " string AccessToken = $3.AccessToken; //创客登录授权令牌",
- " DateTime ExpiredDate = $3.ExpiredDate; //过期时间",
- " string DeviceId = $3.DeviceId; //设备ID",
- " string DeviceToken = $3.DeviceToken; //设备令牌",
- " string CertFrontImage = $3.CertFrontImage; //身份证正面照",
- " string CertReverseImage = $3.CertReverseImage; //身份证反面照",
- " string HandCertImage = $3.HandCertImage; //手持身份证",
- " string BankCardPositiveImage = $3.BankCardPositiveImage; //银行卡正面照",
- " string Remark = $3.Remark; //备注信息",
- " string HandPwd = $3.HandPwd; //手势密码",
- " string MakerCode = $3.MakerCode; //创客编号",
- " decimal SettleAmount = $3.SettleAmount; //最低结算金额",
- " decimal CashFreezeAmt = $3.CashFreezeAmt; //提现冻结金额",
- " decimal ActiveRewardAmount = $3.ActiveRewardAmount; //激活奖励金额",
- " decimal ProfitRewardRate = $3.ProfitRewardRate; //分润奖励",
- " DateTime CitySetDate = $3.CitySetDate; //省市设置时间",
- "}"
- ]
- },
- "查询创客": {
- "prefix": "ym-db-Users-Exist",
- "body": [
- "bool $1 = db.Users.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客,并取值": {
- "prefix": "ym-db-Users-FindByPrimaryKey",
- "body": [
- "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string NickName = $1.NickName; //昵称",
- " string RealName = $1.RealName; //真实姓名",
- " int Sex = $1.Sex; //性别",
- " string CertId = $1.CertId; //身份证号",
- " string Areas = $1.Areas; //所在地区",
- " string Address = $1.Address; //详细地址",
- " string HeadPhoto = $1.HeadPhoto; //头像",
- " int ParentUserId = $1.ParentUserId; //父级Id",
- " int UserLevel = $1.UserLevel; //创客等级",
- " string CardNo = $1.CardNo; //卡号",
- " string Mobile = $1.Mobile; //手机号",
- " string GroupId = $1.GroupId; //分组",
- " string Tags = $1.Tags; //标签",
- " string ParentNav = $1.ParentNav; //父级集合",
- " string LoginPwd = $1.LoginPwd; //登录密码",
- " string PayPwd = $1.PayPwd; //支付密码",
- " string CarIds = $1.CarIds; //购物车Id集合",
- " string OpenId = $1.OpenId; //OpenId",
- " string AlipayUserId = $1.AlipayUserId; //支付宝用户Id",
- " ulong IsNewUser = $1.IsNewUser; //是否新创客",
- " string IdCardEndNo = $1.IdCardEndNo; //身份证后四位",
- " string SettleBankCardNo = $1.SettleBankCardNo; //结算银行卡号",
- " string SettleBankName = $1.SettleBankName; //结算银行名称",
- " string ReferenceCode = $1.ReferenceCode; //推荐码",
- " int ReferralUserId = $1.ReferralUserId; //引荐人",
- " string CardRecCode = $1.CardRecCode; //办卡分享图片地址",
- " string ReferenceQrCode = $1.ReferenceQrCode; //推广二维码地址",
- " string SignImgUrl = $1.SignImgUrl; //特定协议签名图片地址",
- " int UserType = $1.UserType; //创客类型",
- " int UserProperty = $1.UserProperty; //创客属性",
- " int MerchantType = $1.MerchantType; //商户创客类型",
- " DateTime MerchantDate = $1.MerchantDate; //成为商户型创客时间",
- " int LoginStatus = $1.LoginStatus; //登录状态",
- " int AuditStatus = $1.AuditStatus; //审核状态",
- " ulong LockStatus = $1.LockStatus; //锁定状态",
- " ulong AuthFlag = $1.AuthFlag; //实名标识",
- " DateTime AuthDate = $1.AuthDate; //实名时间",
- " ulong RiskFlag = $1.RiskFlag; //风控标识",
- " string RiskRemark = $1.RiskRemark; //风控备注",
- " string RreezeRemark = $1.RreezeRemark; //账户冻结备注信息",
- " string SettleRemark = $1.SettleRemark; //结算金额调整备注",
- " string AccessToken = $1.AccessToken; //创客登录授权令牌",
- " DateTime ExpiredDate = $1.ExpiredDate; //过期时间",
- " string DeviceId = $1.DeviceId; //设备ID",
- " string DeviceToken = $1.DeviceToken; //设备令牌",
- " string CertFrontImage = $1.CertFrontImage; //身份证正面照",
- " string CertReverseImage = $1.CertReverseImage; //身份证反面照",
- " string HandCertImage = $1.HandCertImage; //手持身份证",
- " string BankCardPositiveImage = $1.BankCardPositiveImage; //银行卡正面照",
- " string Remark = $1.Remark; //备注信息",
- " string HandPwd = $1.HandPwd; //手势密码",
- " string MakerCode = $1.MakerCode; //创客编号",
- " decimal SettleAmount = $1.SettleAmount; //最低结算金额",
- " decimal CashFreezeAmt = $1.CashFreezeAmt; //提现冻结金额",
- " decimal ActiveRewardAmount = $1.ActiveRewardAmount; //激活奖励金额",
- " decimal ProfitRewardRate = $1.ProfitRewardRate; //分润奖励",
- " DateTime CitySetDate = $1.CitySetDate; //省市设置时间",
- "}"
- ]
- },
- "查询某个创客,并赋值": {
- "prefix": "ym-db-Users-Update",
- "body": [
- "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.NickName = $2; //昵称",
- " $1.RealName = $3; //真实姓名",
- " $1.Sex = $4; //性别",
- " $1.CertId = $5; //身份证号",
- " $1.Areas = $6; //所在地区",
- " $1.Address = $7; //详细地址",
- " $1.HeadPhoto = $8; //头像",
- " $1.ParentUserId = $9; //父级Id",
- " $1.UserLevel = $10; //创客等级",
- " $1.CardNo = $11; //卡号",
- " $1.Mobile = $12; //手机号",
- " $1.GroupId = $13; //分组",
- " $1.Tags = $14; //标签",
- " $1.ParentNav = $15; //父级集合",
- " $1.LoginPwd = $16; //登录密码",
- " $1.PayPwd = $17; //支付密码",
- " $1.CarIds = $18; //购物车Id集合",
- " $1.OpenId = $19; //OpenId",
- " $1.AlipayUserId = $20; //支付宝用户Id",
- " $1.IsNewUser = $21; //是否新创客",
- " $1.IdCardEndNo = $22; //身份证后四位",
- " $1.SettleBankCardNo = $23; //结算银行卡号",
- " $1.SettleBankName = $24; //结算银行名称",
- " $1.ReferenceCode = $25; //推荐码",
- " $1.ReferralUserId = $26; //引荐人",
- " $1.CardRecCode = $27; //办卡分享图片地址",
- " $1.ReferenceQrCode = $28; //推广二维码地址",
- " $1.SignImgUrl = $29; //特定协议签名图片地址",
- " $1.UserType = $30; //创客类型",
- " $1.UserProperty = $31; //创客属性",
- " $1.MerchantType = $32; //商户创客类型",
- " $1.MerchantDate = $33; //成为商户型创客时间",
- " $1.LoginStatus = $34; //登录状态",
- " $1.AuditStatus = $35; //审核状态",
- " $1.LockStatus = $36; //锁定状态",
- " $1.AuthFlag = $37; //实名标识",
- " $1.AuthDate = $38; //实名时间",
- " $1.RiskFlag = $39; //风控标识",
- " $1.RiskRemark = $40; //风控备注",
- " $1.RreezeRemark = $41; //账户冻结备注信息",
- " $1.SettleRemark = $42; //结算金额调整备注",
- " $1.AccessToken = $43; //创客登录授权令牌",
- " $1.ExpiredDate = $44; //过期时间",
- " $1.DeviceId = $45; //设备ID",
- " $1.DeviceToken = $46; //设备令牌",
- " $1.CertFrontImage = $47; //身份证正面照",
- " $1.CertReverseImage = $48; //身份证反面照",
- " $1.HandCertImage = $49; //手持身份证",
- " $1.BankCardPositiveImage = $50; //银行卡正面照",
- " $1.Remark = $51; //备注信息",
- " $1.HandPwd = $52; //手势密码",
- " $1.MakerCode = $53; //创客编号",
- " $1.SettleAmount = $54; //最低结算金额",
- " $1.CashFreezeAmt = $55; //提现冻结金额",
- " $1.ActiveRewardAmount = $56; //激活奖励金额",
- " $1.ProfitRewardRate = $57; //分润奖励",
- " $1.CitySetDate = $58; //省市设置时间",
- "}"
- ]
- },
- "获取创客数量": {
- "prefix": "ym-db-Users-FindAndCount",
- "body": [
- "int $1 = db.Users.Count(m => $2);",
- ]
- },
- "添加创客": {
- "prefix": "ym-db-Users-Create",
- "body": [
- "db.Users.Add(new Users()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " NickName = $1, //昵称",
- " RealName = $2, //真实姓名",
- " Sex = $3, //性别",
- " CertId = $4, //身份证号",
- " Areas = $5, //所在地区",
- " Address = $6, //详细地址",
- " HeadPhoto = $7, //头像",
- " ParentUserId = $8, //父级Id",
- " UserLevel = $9, //创客等级",
- " CardNo = $10, //卡号",
- " Mobile = $11, //手机号",
- " GroupId = $12, //分组",
- " Tags = $13, //标签",
- " ParentNav = $14, //父级集合",
- " LoginPwd = $15, //登录密码",
- " PayPwd = $16, //支付密码",
- " CarIds = $17, //购物车Id集合",
- " OpenId = $18, //OpenId",
- " AlipayUserId = $19, //支付宝用户Id",
- " IsNewUser = $20, //是否新创客",
- " IdCardEndNo = $21, //身份证后四位",
- " SettleBankCardNo = $22, //结算银行卡号",
- " SettleBankName = $23, //结算银行名称",
- " ReferenceCode = $24, //推荐码",
- " ReferralUserId = $25, //引荐人",
- " CardRecCode = $26, //办卡分享图片地址",
- " ReferenceQrCode = $27, //推广二维码地址",
- " SignImgUrl = $28, //特定协议签名图片地址",
- " UserType = $29, //创客类型",
- " UserProperty = $30, //创客属性",
- " MerchantType = $31, //商户创客类型",
- " MerchantDate = $32, //成为商户型创客时间",
- " LoginStatus = $33, //登录状态",
- " AuditStatus = $34, //审核状态",
- " LockStatus = $35, //锁定状态",
- " AuthFlag = $36, //实名标识",
- " AuthDate = $37, //实名时间",
- " RiskFlag = $38, //风控标识",
- " RiskRemark = $39, //风控备注",
- " RreezeRemark = $40, //账户冻结备注信息",
- " SettleRemark = $41, //结算金额调整备注",
- " AccessToken = $42, //创客登录授权令牌",
- " ExpiredDate = $43, //过期时间",
- " DeviceId = $44, //设备ID",
- " DeviceToken = $45, //设备令牌",
- " CertFrontImage = $46, //身份证正面照",
- " CertReverseImage = $47, //身份证反面照",
- " HandCertImage = $48, //手持身份证",
- " BankCardPositiveImage = $49, //银行卡正面照",
- " Remark = $50, //备注信息",
- " HandPwd = $51, //手势密码",
- " MakerCode = $52, //创客编号",
- " SettleAmount = $53, //最低结算金额",
- " CashFreezeAmt = $54, //提现冻结金额",
- " ActiveRewardAmount = $55, //激活奖励金额",
- " ProfitRewardRate = $56, //分润奖励",
- " CitySetDate = $57, //省市设置时间",
- "});"
- ]
- },"删除某个创客": {
- "prefix": "ym-db-Users-Delete",
- "body": [
- "Users $1 = db.Users.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Users.Remove($1);",
- "}"
- ]
- },
- "查询机具激活限制信息列表": {
- "prefix": "ym-db-UserSnActInfo-Find",
- "body": [
- "List<UserSnActInfo> $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSnActInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具激活限制信息列表,并取值": {
- "prefix": "ym-db-UserSnActInfo-FindWithData",
- "body": [
- "List<UserSnActInfo> $1 = db.UserSnActInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSnActInfo $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //产品类型",
- " string SnNo = $3.SnNo; //SN编号",
- " int SnType = $3.SnType; //SN机具类型",
- " DateTime SnShipDate = $3.SnShipDate; //发货时间",
- " int SnStoreId = $3.SnStoreId; //SN仓库",
- " string EffectStartActDate = $3.EffectStartActDate; //有效开始激活时间",
- " string EffectEndActDate = $3.EffectEndActDate; //有效结束激活时间",
- " string EffectStartCycleDate = $3.EffectStartCycleDate; //有效开始循环时间",
- " string EffectEndCycleDate = $3.EffectEndCycleDate; //有效结束循环时间",
- " int ActUserId = $3.ActUserId; //激活奖励创客",
- " int ActiveStatus = $3.ActiveStatus; //商户激活状态",
- " string StandardDate = $3.StandardDate; //激活日期",
- " string SourceSnNo = $3.SourceSnNo; //源SN编号",
- " int SourceSnType = $3.SourceSnType; //源SN机具类型",
- " DateTime SourceShipDate = $3.SourceShipDate; //源SN发货时间",
- " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询机具激活限制信息": {
- "prefix": "ym-db-UserSnActInfo-Exist",
- "body": [
- "bool $1 = db.UserSnActInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个机具激活限制信息,并取值": {
- "prefix": "ym-db-UserSnActInfo-FindByPrimaryKey",
- "body": [
- "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //产品类型",
- " string SnNo = $1.SnNo; //SN编号",
- " int SnType = $1.SnType; //SN机具类型",
- " DateTime SnShipDate = $1.SnShipDate; //发货时间",
- " int SnStoreId = $1.SnStoreId; //SN仓库",
- " string EffectStartActDate = $1.EffectStartActDate; //有效开始激活时间",
- " string EffectEndActDate = $1.EffectEndActDate; //有效结束激活时间",
- " string EffectStartCycleDate = $1.EffectStartCycleDate; //有效开始循环时间",
- " string EffectEndCycleDate = $1.EffectEndCycleDate; //有效结束循环时间",
- " int ActUserId = $1.ActUserId; //激活奖励创客",
- " int ActiveStatus = $1.ActiveStatus; //商户激活状态",
- " string StandardDate = $1.StandardDate; //激活日期",
- " string SourceSnNo = $1.SourceSnNo; //源SN编号",
- " int SourceSnType = $1.SourceSnType; //源SN机具类型",
- " DateTime SourceShipDate = $1.SourceShipDate; //源SN发货时间",
- " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个机具激活限制信息,并赋值": {
- "prefix": "ym-db-UserSnActInfo-Update",
- "body": [
- "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //产品类型",
- " $1.SnNo = $4; //SN编号",
- " $1.SnType = $5; //SN机具类型",
- " $1.SnShipDate = $6; //发货时间",
- " $1.SnStoreId = $7; //SN仓库",
- " $1.EffectStartActDate = $8; //有效开始激活时间",
- " $1.EffectEndActDate = $9; //有效结束激活时间",
- " $1.EffectStartCycleDate = $10; //有效开始循环时间",
- " $1.EffectEndCycleDate = $11; //有效结束循环时间",
- " $1.ActUserId = $12; //激活奖励创客",
- " $1.ActiveStatus = $13; //商户激活状态",
- " $1.StandardDate = $14; //激活日期",
- " $1.SourceSnNo = $15; //源SN编号",
- " $1.SourceSnType = $16; //源SN机具类型",
- " $1.SourceShipDate = $17; //源SN发货时间",
- " $1.SourceStoreId = $18; //源SN发货你仓库",
- " $1.Remark = $19; //备注",
- "}"
- ]
- },
- "获取机具激活限制信息数量": {
- "prefix": "ym-db-UserSnActInfo-FindAndCount",
- "body": [
- "int $1 = db.UserSnActInfo.Count(m => $2);",
- ]
- },
- "添加机具激活限制信息": {
- "prefix": "ym-db-UserSnActInfo-Create",
- "body": [
- "db.UserSnActInfo.Add(new UserSnActInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //产品类型",
- " SnNo = $3, //SN编号",
- " SnType = $4, //SN机具类型",
- " SnShipDate = $5, //发货时间",
- " SnStoreId = $6, //SN仓库",
- " EffectStartActDate = $7, //有效开始激活时间",
- " EffectEndActDate = $8, //有效结束激活时间",
- " EffectStartCycleDate = $9, //有效开始循环时间",
- " EffectEndCycleDate = $10, //有效结束循环时间",
- " ActUserId = $11, //激活奖励创客",
- " ActiveStatus = $12, //商户激活状态",
- " StandardDate = $13, //激活日期",
- " SourceSnNo = $14, //源SN编号",
- " SourceSnType = $15, //源SN机具类型",
- " SourceShipDate = $16, //源SN发货时间",
- " SourceStoreId = $17, //源SN发货你仓库",
- " Remark = $18, //备注",
- "});"
- ]
- },"删除某个机具激活限制信息": {
- "prefix": "ym-db-UserSnActInfo-Delete",
- "body": [
- "UserSnActInfo $1 = db.UserSnActInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserSnActInfo.Remove($1);",
- "}"
- ]
- },
- "查询创客机具延迟变动明细表列表": {
- "prefix": "ym-db-UserSnDelayChange-Find",
- "body": [
- "List<UserSnDelayChange> $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSnDelayChange $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客机具延迟变动明细表列表,并取值": {
- "prefix": "ym-db-UserSnDelayChange-FindWithData",
- "body": [
- "List<UserSnDelayChange> $1 = db.UserSnDelayChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSnDelayChange $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //品牌",
- " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
- " string SnNo = $3.SnNo; //SN编号",
- " int SnType = $3.SnType; //SN机具类型",
- " int SnStoreId = $3.SnStoreId; //发货仓库",
- " string InitCycleDate = $3.InitCycleDate; //初始循环截止时间",
- " string BeforeEndCycleDate = $3.BeforeEndCycleDate; //变动前循环截止时间",
- " string AfterEndCycleDate = $3.AfterEndCycleDate; //变动后循环截止时间",
- " int RecUserId = $3.RecUserId; //招募创客",
- " int SnDelayDay = $3.SnDelayDay; //机具延时天数",
- " int ActivityRuleId = $3.ActivityRuleId; //拉新活动",
- " string SourceSnNo = $3.SourceSnNo; //源SN编号",
- " int SourceSnType = $3.SourceSnType; //源SN类型",
- " DateTime SourceSnShipDate = $3.SourceSnShipDate; //源SN发货时间",
- " int SourceStoreId = $3.SourceStoreId; //源SN发货你仓库",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询创客机具延迟变动明细表": {
- "prefix": "ym-db-UserSnDelayChange-Exist",
- "body": [
- "bool $1 = db.UserSnDelayChange.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客机具延迟变动明细表,并取值": {
- "prefix": "ym-db-UserSnDelayChange-FindByPrimaryKey",
- "body": [
- "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //品牌",
- " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
- " string SnNo = $1.SnNo; //SN编号",
- " int SnType = $1.SnType; //SN机具类型",
- " int SnStoreId = $1.SnStoreId; //发货仓库",
- " string InitCycleDate = $1.InitCycleDate; //初始循环截止时间",
- " string BeforeEndCycleDate = $1.BeforeEndCycleDate; //变动前循环截止时间",
- " string AfterEndCycleDate = $1.AfterEndCycleDate; //变动后循环截止时间",
- " int RecUserId = $1.RecUserId; //招募创客",
- " int SnDelayDay = $1.SnDelayDay; //机具延时天数",
- " int ActivityRuleId = $1.ActivityRuleId; //拉新活动",
- " string SourceSnNo = $1.SourceSnNo; //源SN编号",
- " int SourceSnType = $1.SourceSnType; //源SN类型",
- " DateTime SourceSnShipDate = $1.SourceSnShipDate; //源SN发货时间",
- " int SourceStoreId = $1.SourceStoreId; //源SN发货你仓库",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个创客机具延迟变动明细表,并赋值": {
- "prefix": "ym-db-UserSnDelayChange-Update",
- "body": [
- "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //品牌",
- " $1.ChangeRecordNo = $4; //变更记录单号",
- " $1.SnNo = $5; //SN编号",
- " $1.SnType = $6; //SN机具类型",
- " $1.SnStoreId = $7; //发货仓库",
- " $1.InitCycleDate = $8; //初始循环截止时间",
- " $1.BeforeEndCycleDate = $9; //变动前循环截止时间",
- " $1.AfterEndCycleDate = $10; //变动后循环截止时间",
- " $1.RecUserId = $11; //招募创客",
- " $1.SnDelayDay = $12; //机具延时天数",
- " $1.ActivityRuleId = $13; //拉新活动",
- " $1.SourceSnNo = $14; //源SN编号",
- " $1.SourceSnType = $15; //源SN类型",
- " $1.SourceSnShipDate = $16; //源SN发货时间",
- " $1.SourceStoreId = $17; //源SN发货你仓库",
- " $1.Remark = $18; //备注",
- "}"
- ]
- },
- "获取创客机具延迟变动明细表数量": {
- "prefix": "ym-db-UserSnDelayChange-FindAndCount",
- "body": [
- "int $1 = db.UserSnDelayChange.Count(m => $2);",
- ]
- },
- "添加创客机具延迟变动明细表": {
- "prefix": "ym-db-UserSnDelayChange-Create",
- "body": [
- "db.UserSnDelayChange.Add(new UserSnDelayChange()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //品牌",
- " ChangeRecordNo = $3, //变更记录单号",
- " SnNo = $4, //SN编号",
- " SnType = $5, //SN机具类型",
- " SnStoreId = $6, //发货仓库",
- " InitCycleDate = $7, //初始循环截止时间",
- " BeforeEndCycleDate = $8, //变动前循环截止时间",
- " AfterEndCycleDate = $9, //变动后循环截止时间",
- " RecUserId = $10, //招募创客",
- " SnDelayDay = $11, //机具延时天数",
- " ActivityRuleId = $12, //拉新活动",
- " SourceSnNo = $13, //源SN编号",
- " SourceSnType = $14, //源SN类型",
- " SourceSnShipDate = $15, //源SN发货时间",
- " SourceStoreId = $16, //源SN发货你仓库",
- " Remark = $17, //备注",
- "});"
- ]
- },"删除某个创客机具延迟变动明细表": {
- "prefix": "ym-db-UserSnDelayChange-Delete",
- "body": [
- "UserSnDelayChange $1 = db.UserSnDelayChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserSnDelayChange.Remove($1);",
- "}"
- ]
- },
- "查询创客库存变动记录列表": {
- "prefix": "ym-db-UserStoreChange-Find",
- "body": [
- "List<UserStoreChange> $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserStoreChange $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客库存变动记录列表,并取值": {
- "prefix": "ym-db-UserStoreChange-FindWithData",
- "body": [
- "List<UserStoreChange> $1 = db.UserStoreChange.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserStoreChange $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int BrandId = $3.BrandId; //产品类型",
- " string ChangeRecordNo = $3.ChangeRecordNo; //变更记录单号",
- " int TransType = $3.TransType; //交易类型",
- " string SnNo = $3.SnNo; //SN编号",
- " int SnType = $3.SnType; //SN机具类型",
- " int StockOpDirect = $3.StockOpDirect; //库存操作方向",
- " string DeviceVendor = $3.DeviceVendor; //设备厂商",
- " string DeviceType = $3.DeviceType; //设备类型",
- " string DeviceModel = $3.DeviceModel; //设备型号",
- " int ToUserId = $3.ToUserId; //收货创客",
- " int ToStoreId = $3.ToStoreId; //创客退货收货仓库",
- " DateTime ToDate = $3.ToDate; //入库时间",
- " string ToRemark = $3.ToRemark; //入库备注",
- " int SourceStoreId = $3.SourceStoreId; //源仓库",
- " int SnStatus = $3.SnStatus; //SN状态",
- " string BizBatchNo = $3.BizBatchNo; //业务批次号",
- " int BindStatus = $3.BindStatus; //绑定状态",
- " int BindMerchantId = $3.BindMerchantId; //绑定商户",
- " int ActiveStatus = $3.ActiveStatus; //激活状态",
- " int ActRewardUserId = $3.ActRewardUserId; //激活奖励创客",
- " int FromUserId = $3.FromUserId; //出货创客",
- " DateTime FromDate = $3.FromDate; //出库时间",
- " string FromRemark = $3.FromRemark; //出库备注",
- " string BrandType = $3.BrandType; //品牌类型",
- "}"
- ]
- },
- "查询创客库存变动记录": {
- "prefix": "ym-db-UserStoreChange-Exist",
- "body": [
- "bool $1 = db.UserStoreChange.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客库存变动记录,并取值": {
- "prefix": "ym-db-UserStoreChange-FindByPrimaryKey",
- "body": [
- "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int BrandId = $1.BrandId; //产品类型",
- " string ChangeRecordNo = $1.ChangeRecordNo; //变更记录单号",
- " int TransType = $1.TransType; //交易类型",
- " string SnNo = $1.SnNo; //SN编号",
- " int SnType = $1.SnType; //SN机具类型",
- " int StockOpDirect = $1.StockOpDirect; //库存操作方向",
- " string DeviceVendor = $1.DeviceVendor; //设备厂商",
- " string DeviceType = $1.DeviceType; //设备类型",
- " string DeviceModel = $1.DeviceModel; //设备型号",
- " int ToUserId = $1.ToUserId; //收货创客",
- " int ToStoreId = $1.ToStoreId; //创客退货收货仓库",
- " DateTime ToDate = $1.ToDate; //入库时间",
- " string ToRemark = $1.ToRemark; //入库备注",
- " int SourceStoreId = $1.SourceStoreId; //源仓库",
- " int SnStatus = $1.SnStatus; //SN状态",
- " string BizBatchNo = $1.BizBatchNo; //业务批次号",
- " int BindStatus = $1.BindStatus; //绑定状态",
- " int BindMerchantId = $1.BindMerchantId; //绑定商户",
- " int ActiveStatus = $1.ActiveStatus; //激活状态",
- " int ActRewardUserId = $1.ActRewardUserId; //激活奖励创客",
- " int FromUserId = $1.FromUserId; //出货创客",
- " DateTime FromDate = $1.FromDate; //出库时间",
- " string FromRemark = $1.FromRemark; //出库备注",
- " string BrandType = $1.BrandType; //品牌类型",
- "}"
- ]
- },
- "查询某个创客库存变动记录,并赋值": {
- "prefix": "ym-db-UserStoreChange-Update",
- "body": [
- "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.BrandId = $3; //产品类型",
- " $1.ChangeRecordNo = $4; //变更记录单号",
- " $1.TransType = $5; //交易类型",
- " $1.SnNo = $6; //SN编号",
- " $1.SnType = $7; //SN机具类型",
- " $1.StockOpDirect = $8; //库存操作方向",
- " $1.DeviceVendor = $9; //设备厂商",
- " $1.DeviceType = $10; //设备类型",
- " $1.DeviceModel = $11; //设备型号",
- " $1.ToUserId = $12; //收货创客",
- " $1.ToStoreId = $13; //创客退货收货仓库",
- " $1.ToDate = $14; //入库时间",
- " $1.ToRemark = $15; //入库备注",
- " $1.SourceStoreId = $16; //源仓库",
- " $1.SnStatus = $17; //SN状态",
- " $1.BizBatchNo = $18; //业务批次号",
- " $1.BindStatus = $19; //绑定状态",
- " $1.BindMerchantId = $20; //绑定商户",
- " $1.ActiveStatus = $21; //激活状态",
- " $1.ActRewardUserId = $22; //激活奖励创客",
- " $1.FromUserId = $23; //出货创客",
- " $1.FromDate = $24; //出库时间",
- " $1.FromRemark = $25; //出库备注",
- " $1.BrandType = $26; //品牌类型",
- "}"
- ]
- },
- "获取创客库存变动记录数量": {
- "prefix": "ym-db-UserStoreChange-FindAndCount",
- "body": [
- "int $1 = db.UserStoreChange.Count(m => $2);",
- ]
- },
- "添加创客库存变动记录": {
- "prefix": "ym-db-UserStoreChange-Create",
- "body": [
- "db.UserStoreChange.Add(new UserStoreChange()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " BrandId = $2, //产品类型",
- " ChangeRecordNo = $3, //变更记录单号",
- " TransType = $4, //交易类型",
- " SnNo = $5, //SN编号",
- " SnType = $6, //SN机具类型",
- " StockOpDirect = $7, //库存操作方向",
- " DeviceVendor = $8, //设备厂商",
- " DeviceType = $9, //设备类型",
- " DeviceModel = $10, //设备型号",
- " ToUserId = $11, //收货创客",
- " ToStoreId = $12, //创客退货收货仓库",
- " ToDate = $13, //入库时间",
- " ToRemark = $14, //入库备注",
- " SourceStoreId = $15, //源仓库",
- " SnStatus = $16, //SN状态",
- " BizBatchNo = $17, //业务批次号",
- " BindStatus = $18, //绑定状态",
- " BindMerchantId = $19, //绑定商户",
- " ActiveStatus = $20, //激活状态",
- " ActRewardUserId = $21, //激活奖励创客",
- " FromUserId = $22, //出货创客",
- " FromDate = $23, //出库时间",
- " FromRemark = $24, //出库备注",
- " BrandType = $25, //品牌类型",
- "});"
- ]
- },"删除某个创客库存变动记录": {
- "prefix": "ym-db-UserStoreChange-Delete",
- "body": [
- "UserStoreChange $1 = db.UserStoreChange.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserStoreChange.Remove($1);",
- "}"
- ]
- },
- "查询循环返风控明细信息列表": {
- "prefix": "ym-db-UserSwapDetail-Find",
- "body": [
- "List<UserSwapDetail> $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSwapDetail $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询循环返风控明细信息列表,并取值": {
- "prefix": "ym-db-UserSwapDetail-FindWithData",
- "body": [
- "List<UserSwapDetail> $1 = db.UserSwapDetail.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSwapDetail $3 in $1)",
- "{",
- " string RecordNo = $3.RecordNo; //单号",
- " int UserId = $3.UserId; //创客",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " string TradeDate = $3.TradeDate; //交易日",
- " int BrandId = $3.BrandId; //品牌",
- " string SnNo = $3.SnNo; //风控SN编号",
- " int SnType = $3.SnType; //风控SN机具类型",
- " int RiskResult = $3.RiskResult; //循环风控降档状态",
- " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型",
- " decimal DirectSnTradeAmt = $3.DirectSnTradeAmt; //直营商户激活sn交易总额",
- " string UpSourceSnNo = $3.UpSourceSnNo; //上一个兑换来源SN编码",
- " int UpSourceSnType = $3.UpSourceSnType; //上一个兑换来源SN机具类型",
- " string SourceSnNo = $3.SourceSnNo; //源SN编号",
- " int SourceSnType = $3.SourceSnType; //源SN机具类型",
- " string Remark = $3.Remark; //备注",
- " int TopUserId = $3.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询循环返风控明细信息": {
- "prefix": "ym-db-UserSwapDetail-Exist",
- "body": [
- "bool $1 = db.UserSwapDetail.Any(m => m.Id == $2);",
- ]
- },
- "查询某个循环返风控明细信息,并取值": {
- "prefix": "ym-db-UserSwapDetail-FindByPrimaryKey",
- "body": [
- "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string RecordNo = $1.RecordNo; //单号",
- " int UserId = $1.UserId; //创客",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " string TradeDate = $1.TradeDate; //交易日",
- " int BrandId = $1.BrandId; //品牌",
- " string SnNo = $1.SnNo; //风控SN编号",
- " int SnType = $1.SnType; //风控SN机具类型",
- " int RiskResult = $1.RiskResult; //循环风控降档状态",
- " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型",
- " decimal DirectSnTradeAmt = $1.DirectSnTradeAmt; //直营商户激活sn交易总额",
- " string UpSourceSnNo = $1.UpSourceSnNo; //上一个兑换来源SN编码",
- " int UpSourceSnType = $1.UpSourceSnType; //上一个兑换来源SN机具类型",
- " string SourceSnNo = $1.SourceSnNo; //源SN编号",
- " int SourceSnType = $1.SourceSnType; //源SN机具类型",
- " string Remark = $1.Remark; //备注",
- " int TopUserId = $1.TopUserId; //顶级创客",
- "}"
- ]
- },
- "查询某个循环返风控明细信息,并赋值": {
- "prefix": "ym-db-UserSwapDetail-Update",
- "body": [
- "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.RecordNo = $2; //单号",
- " $1.UserId = $3; //创客",
- " $1.TradeMonth = $4; //交易月",
- " $1.TradeDate = $5; //交易日",
- " $1.BrandId = $6; //品牌",
- " $1.SnNo = $7; //风控SN编号",
- " $1.SnType = $8; //风控SN机具类型",
- " $1.RiskResult = $9; //循环风控降档状态",
- " $1.SwapExtProductTypes = $10; //可申请循环产品类型",
- " $1.DirectSnTradeAmt = $11; //直营商户激活sn交易总额",
- " $1.UpSourceSnNo = $12; //上一个兑换来源SN编码",
- " $1.UpSourceSnType = $13; //上一个兑换来源SN机具类型",
- " $1.SourceSnNo = $14; //源SN编号",
- " $1.SourceSnType = $15; //源SN机具类型",
- " $1.Remark = $16; //备注",
- " $1.TopUserId = $17; //顶级创客",
- "}"
- ]
- },
- "获取循环返风控明细信息数量": {
- "prefix": "ym-db-UserSwapDetail-FindAndCount",
- "body": [
- "int $1 = db.UserSwapDetail.Count(m => $2);",
- ]
- },
- "添加循环返风控明细信息": {
- "prefix": "ym-db-UserSwapDetail-Create",
- "body": [
- "db.UserSwapDetail.Add(new UserSwapDetail()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " RecordNo = $1, //单号",
- " UserId = $2, //创客",
- " TradeMonth = $3, //交易月",
- " TradeDate = $4, //交易日",
- " BrandId = $5, //品牌",
- " SnNo = $6, //风控SN编号",
- " SnType = $7, //风控SN机具类型",
- " RiskResult = $8, //循环风控降档状态",
- " SwapExtProductTypes = $9, //可申请循环产品类型",
- " DirectSnTradeAmt = $10, //直营商户激活sn交易总额",
- " UpSourceSnNo = $11, //上一个兑换来源SN编码",
- " UpSourceSnType = $12, //上一个兑换来源SN机具类型",
- " SourceSnNo = $13, //源SN编号",
- " SourceSnType = $14, //源SN机具类型",
- " Remark = $15, //备注",
- " TopUserId = $16, //顶级创客",
- "});"
- ]
- },"删除某个循环返风控明细信息": {
- "prefix": "ym-db-UserSwapDetail-Delete",
- "body": [
- "UserSwapDetail $1 = db.UserSwapDetail.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserSwapDetail.Remove($1);",
- "}"
- ]
- },
- "查询创客循环返风控月汇总列表": {
- "prefix": "ym-db-UserSwapSummary-Find",
- "body": [
- "List<UserSwapSummary> $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSwapSummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客循环返风控月汇总列表,并取值": {
- "prefix": "ym-db-UserSwapSummary-FindWithData",
- "body": [
- "List<UserSwapSummary> $1 = db.UserSwapSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSwapSummary $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int TopUserId = $3.TopUserId; //顶级创客",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int BrandId = $3.BrandId; //品牌",
- " int DirectActMerCount = $3.DirectActMerCount; //上月直营激活商户数",
- " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户新增激活交易户均总额",
- " decimal DirAvgTradeAmt = $3.DirAvgTradeAmt; //户均",
- " int RiskStatus = $3.RiskStatus; //循环风控降档状态",
- " string SwapExtProductTypes = $3.SwapExtProductTypes; //可申请循环产品类型",
- " int RuleId = $3.RuleId; //规则",
- "}"
- ]
- },
- "查询创客循环返风控月汇总": {
- "prefix": "ym-db-UserSwapSummary-Exist",
- "body": [
- "bool $1 = db.UserSwapSummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客循环返风控月汇总,并取值": {
- "prefix": "ym-db-UserSwapSummary-FindByPrimaryKey",
- "body": [
- "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int TopUserId = $1.TopUserId; //顶级创客",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int BrandId = $1.BrandId; //品牌",
- " int DirectActMerCount = $1.DirectActMerCount; //上月直营激活商户数",
- " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户新增激活交易户均总额",
- " decimal DirAvgTradeAmt = $1.DirAvgTradeAmt; //户均",
- " int RiskStatus = $1.RiskStatus; //循环风控降档状态",
- " string SwapExtProductTypes = $1.SwapExtProductTypes; //可申请循环产品类型",
- " int RuleId = $1.RuleId; //规则",
- "}"
- ]
- },
- "查询某个创客循环返风控月汇总,并赋值": {
- "prefix": "ym-db-UserSwapSummary-Update",
- "body": [
- "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.TopUserId = $3; //顶级创客",
- " $1.TradeMonth = $4; //交易月",
- " $1.BrandId = $5; //品牌",
- " $1.DirectActMerCount = $6; //上月直营激活商户数",
- " $1.DirectTradeAmt = $7; //直营商户新增激活交易户均总额",
- " $1.DirAvgTradeAmt = $8; //户均",
- " $1.RiskStatus = $9; //循环风控降档状态",
- " $1.SwapExtProductTypes = $10; //可申请循环产品类型",
- " $1.RuleId = $11; //规则",
- "}"
- ]
- },
- "获取创客循环返风控月汇总数量": {
- "prefix": "ym-db-UserSwapSummary-FindAndCount",
- "body": [
- "int $1 = db.UserSwapSummary.Count(m => $2);",
- ]
- },
- "添加创客循环返风控月汇总": {
- "prefix": "ym-db-UserSwapSummary-Create",
- "body": [
- "db.UserSwapSummary.Add(new UserSwapSummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " TopUserId = $2, //顶级创客",
- " TradeMonth = $3, //交易月",
- " BrandId = $4, //品牌",
- " DirectActMerCount = $5, //上月直营激活商户数",
- " DirectTradeAmt = $6, //直营商户新增激活交易户均总额",
- " DirAvgTradeAmt = $7, //户均",
- " RiskStatus = $8, //循环风控降档状态",
- " SwapExtProductTypes = $9, //可申请循环产品类型",
- " RuleId = $10, //规则",
- "});"
- ]
- },"删除某个创客循环返风控月汇总": {
- "prefix": "ym-db-UserSwapSummary-Delete",
- "body": [
- "UserSwapSummary $1 = db.UserSwapSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserSwapSummary.Remove($1);",
- "}"
- ]
- },
- "查询循环返风控白名单列表": {
- "prefix": "ym-db-UserSwapWhite-Find",
- "body": [
- "List<UserSwapWhite> $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSwapWhite $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询循环返风控白名单列表,并取值": {
- "prefix": "ym-db-UserSwapWhite-FindWithData",
- "body": [
- "List<UserSwapWhite> $1 = db.UserSwapWhite.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserSwapWhite $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " int RiskType = $3.RiskType; //风控类型",
- " int BrandId = $3.BrandId; //品牌",
- " DateTime StartEffectTime = $3.StartEffectTime; //生效开始时间",
- " DateTime EndEffectTime = $3.EndEffectTime; //生效截止时间",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询循环返风控白名单": {
- "prefix": "ym-db-UserSwapWhite-Exist",
- "body": [
- "bool $1 = db.UserSwapWhite.Any(m => m.Id == $2);",
- ]
- },
- "查询某个循环返风控白名单,并取值": {
- "prefix": "ym-db-UserSwapWhite-FindByPrimaryKey",
- "body": [
- "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " int RiskType = $1.RiskType; //风控类型",
- " int BrandId = $1.BrandId; //品牌",
- " DateTime StartEffectTime = $1.StartEffectTime; //生效开始时间",
- " DateTime EndEffectTime = $1.EndEffectTime; //生效截止时间",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个循环返风控白名单,并赋值": {
- "prefix": "ym-db-UserSwapWhite-Update",
- "body": [
- "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.RiskType = $3; //风控类型",
- " $1.BrandId = $4; //品牌",
- " $1.StartEffectTime = $5; //生效开始时间",
- " $1.EndEffectTime = $6; //生效截止时间",
- " $1.Remark = $7; //备注",
- "}"
- ]
- },
- "获取循环返风控白名单数量": {
- "prefix": "ym-db-UserSwapWhite-FindAndCount",
- "body": [
- "int $1 = db.UserSwapWhite.Count(m => $2);",
- ]
- },
- "添加循环返风控白名单": {
- "prefix": "ym-db-UserSwapWhite-Create",
- "body": [
- "db.UserSwapWhite.Add(new UserSwapWhite()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " RiskType = $2, //风控类型",
- " BrandId = $3, //品牌",
- " StartEffectTime = $4, //生效开始时间",
- " EndEffectTime = $5, //生效截止时间",
- " Remark = $6, //备注",
- "});"
- ]
- },"删除某个循环返风控白名单": {
- "prefix": "ym-db-UserSwapWhite-Delete",
- "body": [
- "UserSwapWhite $1 = db.UserSwapWhite.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserSwapWhite.Remove($1);",
- "}"
- ]
- },
- "查询创客交易日汇总列表": {
- "prefix": "ym-db-UserTradeDaySummary-Find",
- "body": [
- "List<UserTradeDaySummary> $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserTradeDaySummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客交易日汇总列表,并取值": {
- "prefix": "ym-db-UserTradeDaySummary-FindWithData",
- "body": [
- "List<UserTradeDaySummary> $1 = db.UserTradeDaySummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserTradeDaySummary $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " string TradeDate = $3.TradeDate; //交易日",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int BrandId = $3.BrandId; //品牌",
- " decimal DirectTradeAmt = $3.DirectTradeAmt; //直营商户交易总额",
- " decimal NonDirectTradeAmt = $3.NonDirectTradeAmt; //非直营商户交易总额",
- " decimal DirectDebitTradeAmt = $3.DirectDebitTradeAmt; //直营商户借记卡交易总额",
- " int DirectDebitCapNum = $3.DirectDebitCapNum; //直营激活商户数",
- " decimal NonDirectDebitTradeAmt = $3.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额",
- " int NonDirectDebitCapNum = $3.NonDirectDebitCapNum; //非直营激活商户数",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询创客交易日汇总": {
- "prefix": "ym-db-UserTradeDaySummary-Exist",
- "body": [
- "bool $1 = db.UserTradeDaySummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个创客交易日汇总,并取值": {
- "prefix": "ym-db-UserTradeDaySummary-FindByPrimaryKey",
- "body": [
- "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " string TradeDate = $1.TradeDate; //交易日",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int BrandId = $1.BrandId; //品牌",
- " decimal DirectTradeAmt = $1.DirectTradeAmt; //直营商户交易总额",
- " decimal NonDirectTradeAmt = $1.NonDirectTradeAmt; //非直营商户交易总额",
- " decimal DirectDebitTradeAmt = $1.DirectDebitTradeAmt; //直营商户借记卡交易总额",
- " int DirectDebitCapNum = $1.DirectDebitCapNum; //直营激活商户数",
- " decimal NonDirectDebitTradeAmt = $1.NonDirectDebitTradeAmt; //非直营商户借记卡交易总额",
- " int NonDirectDebitCapNum = $1.NonDirectDebitCapNum; //非直营激活商户数",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个创客交易日汇总,并赋值": {
- "prefix": "ym-db-UserTradeDaySummary-Update",
- "body": [
- "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.TradeDate = $3; //交易日",
- " $1.TradeMonth = $4; //交易月",
- " $1.BrandId = $5; //品牌",
- " $1.DirectTradeAmt = $6; //直营商户交易总额",
- " $1.NonDirectTradeAmt = $7; //非直营商户交易总额",
- " $1.DirectDebitTradeAmt = $8; //直营商户借记卡交易总额",
- " $1.DirectDebitCapNum = $9; //直营激活商户数",
- " $1.NonDirectDebitTradeAmt = $10; //非直营商户借记卡交易总额",
- " $1.NonDirectDebitCapNum = $11; //非直营激活商户数",
- " $1.Remark = $12; //备注",
- "}"
- ]
- },
- "获取创客交易日汇总数量": {
- "prefix": "ym-db-UserTradeDaySummary-FindAndCount",
- "body": [
- "int $1 = db.UserTradeDaySummary.Count(m => $2);",
- ]
- },
- "添加创客交易日汇总": {
- "prefix": "ym-db-UserTradeDaySummary-Create",
- "body": [
- "db.UserTradeDaySummary.Add(new UserTradeDaySummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " TradeDate = $2, //交易日",
- " TradeMonth = $3, //交易月",
- " BrandId = $4, //品牌",
- " DirectTradeAmt = $5, //直营商户交易总额",
- " NonDirectTradeAmt = $6, //非直营商户交易总额",
- " DirectDebitTradeAmt = $7, //直营商户借记卡交易总额",
- " DirectDebitCapNum = $8, //直营激活商户数",
- " NonDirectDebitTradeAmt = $9, //非直营商户借记卡交易总额",
- " NonDirectDebitCapNum = $10, //非直营激活商户数",
- " Remark = $11, //备注",
- "});"
- ]
- },"删除某个创客交易日汇总": {
- "prefix": "ym-db-UserTradeDaySummary-Delete",
- "body": [
- "UserTradeDaySummary $1 = db.UserTradeDaySummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserTradeDaySummary.Remove($1);",
- "}"
- ]
- },
- "查询交易按产品汇总列表": {
- "prefix": "ym-db-UserTradeMonthSummary-Find",
- "body": [
- "List<UserTradeMonthSummary> $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserTradeMonthSummary $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询交易按产品汇总列表,并取值": {
- "prefix": "ym-db-UserTradeMonthSummary-FindWithData",
- "body": [
- "List<UserTradeMonthSummary> $1 = db.UserTradeMonthSummary.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserTradeMonthSummary $3 in $1)",
- "{",
- " int UserId = $3.UserId; //创客",
- " string TradeMonth = $3.TradeMonth; //交易月",
- " int BrandId = $3.BrandId; //品牌",
- " int StatType = $3.StatType; //交易统计类型",
- " decimal TradeAmt = $3.TradeAmt; //商户交易总额",
- " decimal CreditTradeAmt = $3.CreditTradeAmt; //商户贷记卡交易总金额",
- " decimal DebitNotCapTradeAmt = $3.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额",
- " decimal DebitCapTradeAmt = $3.DebitCapTradeAmt; //商户借记卡封顶交易总额",
- " int DebitCapTradeNum = $3.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
- " int MallPosOrderStatus = $3.MallPosOrderStatus; //商城购买机具状态",
- " int ActiveBuddyMerStatus = $3.ActiveBuddyMerStatus; //激活创客同名商户",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询交易按产品汇总": {
- "prefix": "ym-db-UserTradeMonthSummary-Exist",
- "body": [
- "bool $1 = db.UserTradeMonthSummary.Any(m => m.Id == $2);",
- ]
- },
- "查询某个交易按产品汇总,并取值": {
- "prefix": "ym-db-UserTradeMonthSummary-FindByPrimaryKey",
- "body": [
- "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int UserId = $1.UserId; //创客",
- " string TradeMonth = $1.TradeMonth; //交易月",
- " int BrandId = $1.BrandId; //品牌",
- " int StatType = $1.StatType; //交易统计类型",
- " decimal TradeAmt = $1.TradeAmt; //商户交易总额",
- " decimal CreditTradeAmt = $1.CreditTradeAmt; //商户贷记卡交易总金额",
- " decimal DebitNotCapTradeAmt = $1.DebitNotCapTradeAmt; //商户非封顶借记卡交易总金额",
- " decimal DebitCapTradeAmt = $1.DebitCapTradeAmt; //商户借记卡封顶交易总额",
- " int DebitCapTradeNum = $1.DebitCapTradeNum; //商户借记卡封顶交易总笔数",
- " int MallPosOrderStatus = $1.MallPosOrderStatus; //商城购买机具状态",
- " int ActiveBuddyMerStatus = $1.ActiveBuddyMerStatus; //激活创客同名商户",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个交易按产品汇总,并赋值": {
- "prefix": "ym-db-UserTradeMonthSummary-Update",
- "body": [
- "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.TradeMonth = $3; //交易月",
- " $1.BrandId = $4; //品牌",
- " $1.StatType = $5; //交易统计类型",
- " $1.TradeAmt = $6; //商户交易总额",
- " $1.CreditTradeAmt = $7; //商户贷记卡交易总金额",
- " $1.DebitNotCapTradeAmt = $8; //商户非封顶借记卡交易总金额",
- " $1.DebitCapTradeAmt = $9; //商户借记卡封顶交易总额",
- " $1.DebitCapTradeNum = $10; //商户借记卡封顶交易总笔数",
- " $1.MallPosOrderStatus = $11; //商城购买机具状态",
- " $1.ActiveBuddyMerStatus = $12; //激活创客同名商户",
- " $1.Remark = $13; //备注",
- "}"
- ]
- },
- "获取交易按产品汇总数量": {
- "prefix": "ym-db-UserTradeMonthSummary-FindAndCount",
- "body": [
- "int $1 = db.UserTradeMonthSummary.Count(m => $2);",
- ]
- },
- "添加交易按产品汇总": {
- "prefix": "ym-db-UserTradeMonthSummary-Create",
- "body": [
- "db.UserTradeMonthSummary.Add(new UserTradeMonthSummary()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " TradeMonth = $2, //交易月",
- " BrandId = $3, //品牌",
- " StatType = $4, //交易统计类型",
- " TradeAmt = $5, //商户交易总额",
- " CreditTradeAmt = $6, //商户贷记卡交易总金额",
- " DebitNotCapTradeAmt = $7, //商户非封顶借记卡交易总金额",
- " DebitCapTradeAmt = $8, //商户借记卡封顶交易总额",
- " DebitCapTradeNum = $9, //商户借记卡封顶交易总笔数",
- " MallPosOrderStatus = $10, //商城购买机具状态",
- " ActiveBuddyMerStatus = $11, //激活创客同名商户",
- " Remark = $12, //备注",
- "});"
- ]
- },"删除某个交易按产品汇总": {
- "prefix": "ym-db-UserTradeMonthSummary-Delete",
- "body": [
- "UserTradeMonthSummary $1 = db.UserTradeMonthSummary.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserTradeMonthSummary.Remove($1);",
- "}"
- ]
- },
- }
|