1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493 |
- {"查询激活奖励记录列表": {
- "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);",
- "}"
- ]
- },
- "查询广告位列表": {
- "prefix": "ym-db-Advertisment-Find",
- "body": [
- "List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Advertisment $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询广告位列表,并取值": {
- "prefix": "ym-db-Advertisment-FindWithData",
- "body": [
- "List<Advertisment> $1 = db.Advertisment.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Advertisment $3 in $1)",
- "{",
- " string Title = $3.Title; //标题",
- " string ColId = $3.ColId; //分类",
- " string PicPath = $3.PicPath; //图片",
- " string Contents = $3.Contents; //内容",
- " string Url = $3.Url; //链接地址",
- "}"
- ]
- },
- "查询广告位": {
- "prefix": "ym-db-Advertisment-Exist",
- "body": [
- "bool $1 = db.Advertisment.Any(m => m.Id == $2);",
- ]
- },
- "查询某个广告位,并取值": {
- "prefix": "ym-db-Advertisment-FindByPrimaryKey",
- "body": [
- "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Title = $1.Title; //标题",
- " string ColId = $1.ColId; //分类",
- " string PicPath = $1.PicPath; //图片",
- " string Contents = $1.Contents; //内容",
- " string Url = $1.Url; //链接地址",
- "}"
- ]
- },
- "查询某个广告位,并赋值": {
- "prefix": "ym-db-Advertisment-Update",
- "body": [
- "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Title = $2; //标题",
- " $1.ColId = $3; //分类",
- " $1.PicPath = $4; //图片",
- " $1.Contents = $5; //内容",
- " $1.Url = $6; //链接地址",
- "}"
- ]
- },
- "获取广告位数量": {
- "prefix": "ym-db-Advertisment-FindAndCount",
- "body": [
- "int $1 = db.Advertisment.Count(m => $2);",
- ]
- },
- "添加广告位": {
- "prefix": "ym-db-Advertisment-Create",
- "body": [
- "db.Advertisment.Add(new Advertisment()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Title = $1, //标题",
- " ColId = $2, //分类",
- " PicPath = $3, //图片",
- " Contents = $4, //内容",
- " Url = $5, //链接地址",
- "});"
- ]
- },"删除某个广告位": {
- "prefix": "ym-db-Advertisment-Delete",
- "body": [
- "Advertisment $1 = db.Advertisment.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Advertisment.Remove($1);",
- "}"
- ]
- },
- "查询代理商等级列表": {
- "prefix": "ym-db-AgentLevelSet-Find",
- "body": [
- "List<AgentLevelSet> $1 = db.AgentLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AgentLevelSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询代理商等级列表,并取值": {
- "prefix": "ym-db-AgentLevelSet-FindWithData",
- "body": [
- "List<AgentLevelSet> $1 = db.AgentLevelSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (AgentLevelSet $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " decimal ProfitPercent = $3.ProfitPercent; //分润比例",
- " ulong LevelDiff = $3.LevelDiff; //分润级差",
- " decimal AreasProfitPercent = $3.AreasProfitPercent; //区域保护分润比例",
- "}"
- ]
- },
- "查询代理商等级": {
- "prefix": "ym-db-AgentLevelSet-Exist",
- "body": [
- "bool $1 = db.AgentLevelSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个代理商等级,并取值": {
- "prefix": "ym-db-AgentLevelSet-FindByPrimaryKey",
- "body": [
- "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " decimal ProfitPercent = $1.ProfitPercent; //分润比例",
- " ulong LevelDiff = $1.LevelDiff; //分润级差",
- " decimal AreasProfitPercent = $1.AreasProfitPercent; //区域保护分润比例",
- "}"
- ]
- },
- "查询某个代理商等级,并赋值": {
- "prefix": "ym-db-AgentLevelSet-Update",
- "body": [
- "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.ProfitPercent = $3; //分润比例",
- " $1.LevelDiff = $4; //分润级差",
- " $1.AreasProfitPercent = $5; //区域保护分润比例",
- "}"
- ]
- },
- "获取代理商等级数量": {
- "prefix": "ym-db-AgentLevelSet-FindAndCount",
- "body": [
- "int $1 = db.AgentLevelSet.Count(m => $2);",
- ]
- },
- "添加代理商等级": {
- "prefix": "ym-db-AgentLevelSet-Create",
- "body": [
- "db.AgentLevelSet.Add(new AgentLevelSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " ProfitPercent = $2, //分润比例",
- " LevelDiff = $3, //分润级差",
- " AreasProfitPercent = $4, //区域保护分润比例",
- "});"
- ]
- },"删除某个代理商等级": {
- "prefix": "ym-db-AgentLevelSet-Delete",
- "body": [
- "AgentLevelSet $1 = db.AgentLevelSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.AgentLevelSet.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);",
- "}"
- ]
- },
- "查询消费者对应商户的OpenId列表": {
- "prefix": "ym-db-ConsumerOpenIds-Find",
- "body": [
- "List<ConsumerOpenIds> $1 = db.ConsumerOpenIds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ConsumerOpenIds $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询消费者对应商户的OpenId列表,并取值": {
- "prefix": "ym-db-ConsumerOpenIds-FindWithData",
- "body": [
- "List<ConsumerOpenIds> $1 = db.ConsumerOpenIds.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ConsumerOpenIds $3 in $1)",
- "{",
- " string OpenId = $3.OpenId; //消费者OpenId",
- " int ConsumerId = $3.ConsumerId; //消费者",
- "}"
- ]
- },
- "查询消费者对应商户的OpenId": {
- "prefix": "ym-db-ConsumerOpenIds-Exist",
- "body": [
- "bool $1 = db.ConsumerOpenIds.Any(m => m.OpenId == $2);",
- ]
- },
- "查询某个消费者对应商户的OpenId,并取值": {
- "prefix": "ym-db-ConsumerOpenIds-FindByPrimaryKey",
- "body": [
- "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);",
- "if ($1 != null)",
- "{",
- " string OpenId = $1.OpenId; //消费者OpenId",
- " int ConsumerId = $1.ConsumerId; //消费者",
- "}"
- ]
- },
- "查询某个消费者对应商户的OpenId,并赋值": {
- "prefix": "ym-db-ConsumerOpenIds-Update",
- "body": [
- "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);",
- "if ($1 != null)",
- "{",
- " $1.OpenId = $2; //消费者OpenId",
- " $1.ConsumerId = $3; //消费者",
- "}"
- ]
- },
- "获取消费者对应商户的OpenId数量": {
- "prefix": "ym-db-ConsumerOpenIds-FindAndCount",
- "body": [
- "int $1 = db.ConsumerOpenIds.Count(m => $2);",
- ]
- },
- "添加消费者对应商户的OpenId": {
- "prefix": "ym-db-ConsumerOpenIds-Create",
- "body": [
- "db.ConsumerOpenIds.Add(new ConsumerOpenIds()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " OpenId = $1, //消费者OpenId",
- " ConsumerId = $2, //消费者",
- "});"
- ]
- },"删除某个消费者对应商户的OpenId": {
- "prefix": "ym-db-ConsumerOpenIds-Delete",
- "body": [
- "ConsumerOpenIds $1 = db.ConsumerOpenIds.FirstOrDefault(m => m.OpenId == $2);",
- "if ($1 != null)",
- "{",
- " db.ConsumerOpenIds.Remove($1);",
- "}"
- ]
- },
- "查询消费记录列表": {
- "prefix": "ym-db-ConsumerOrders-Find",
- "body": [
- "List<ConsumerOrders> $1 = db.ConsumerOrders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ConsumerOrders $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询消费记录列表,并取值": {
- "prefix": "ym-db-ConsumerOrders-FindWithData",
- "body": [
- "List<ConsumerOrders> $1 = db.ConsumerOrders.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ConsumerOrders $3 in $1)",
- "{",
- " int MerchantId = $3.MerchantId; //商户",
- " int ConsumerId = $3.ConsumerId; //消费者",
- " string OrderNo = $3.OrderNo; //订单号",
- " int PayMode = $3.PayMode; //支付方式",
- " decimal PayMoney = $3.PayMoney; //支付金额",
- " decimal ReturnMoney = $3.ReturnMoney; //已返金额",
- " string SnNo = $3.SnNo; //SN号",
- " decimal MaxDivi = $3.MaxDivi; //最大分红",
- " decimal CurDivi = $3.CurDivi; //当前分红",
- "}"
- ]
- },
- "查询消费记录": {
- "prefix": "ym-db-ConsumerOrders-Exist",
- "body": [
- "bool $1 = db.ConsumerOrders.Any(m => m.Id == $2);",
- ]
- },
- "查询某个消费记录,并取值": {
- "prefix": "ym-db-ConsumerOrders-FindByPrimaryKey",
- "body": [
- "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int MerchantId = $1.MerchantId; //商户",
- " int ConsumerId = $1.ConsumerId; //消费者",
- " string OrderNo = $1.OrderNo; //订单号",
- " int PayMode = $1.PayMode; //支付方式",
- " decimal PayMoney = $1.PayMoney; //支付金额",
- " decimal ReturnMoney = $1.ReturnMoney; //已返金额",
- " string SnNo = $1.SnNo; //SN号",
- " decimal MaxDivi = $1.MaxDivi; //最大分红",
- " decimal CurDivi = $1.CurDivi; //当前分红",
- "}"
- ]
- },
- "查询某个消费记录,并赋值": {
- "prefix": "ym-db-ConsumerOrders-Update",
- "body": [
- "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.MerchantId = $2; //商户",
- " $1.ConsumerId = $3; //消费者",
- " $1.OrderNo = $4; //订单号",
- " $1.PayMode = $5; //支付方式",
- " $1.PayMoney = $6; //支付金额",
- " $1.ReturnMoney = $7; //已返金额",
- " $1.SnNo = $8; //SN号",
- " $1.MaxDivi = $9; //最大分红",
- " $1.CurDivi = $10; //当前分红",
- "}"
- ]
- },
- "获取消费记录数量": {
- "prefix": "ym-db-ConsumerOrders-FindAndCount",
- "body": [
- "int $1 = db.ConsumerOrders.Count(m => $2);",
- ]
- },
- "添加消费记录": {
- "prefix": "ym-db-ConsumerOrders-Create",
- "body": [
- "db.ConsumerOrders.Add(new ConsumerOrders()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MerchantId = $1, //商户",
- " ConsumerId = $2, //消费者",
- " OrderNo = $3, //订单号",
- " PayMode = $4, //支付方式",
- " PayMoney = $5, //支付金额",
- " ReturnMoney = $6, //已返金额",
- " SnNo = $7, //SN号",
- " MaxDivi = $8, //最大分红",
- " CurDivi = $9, //当前分红",
- "});"
- ]
- },"删除某个消费记录": {
- "prefix": "ym-db-ConsumerOrders-Delete",
- "body": [
- "ConsumerOrders $1 = db.ConsumerOrders.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ConsumerOrders.Remove($1);",
- "}"
- ]
- },
- "查询消费者分红记录列表": {
- "prefix": "ym-db-ConsumerProfit-Find",
- "body": [
- "List<ConsumerProfit> $1 = db.ConsumerProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ConsumerProfit $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询消费者分红记录列表,并取值": {
- "prefix": "ym-db-ConsumerProfit-FindWithData",
- "body": [
- "List<ConsumerProfit> $1 = db.ConsumerProfit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ConsumerProfit $3 in $1)",
- "{",
- " int ConsumerId = $3.ConsumerId; //消费者",
- " int MerchantId = $3.MerchantId; //商户",
- " decimal GetMoney = $3.GetMoney; //分红金额",
- " int OrderId = $3.OrderId; //订单",
- "}"
- ]
- },
- "查询消费者分红记录": {
- "prefix": "ym-db-ConsumerProfit-Exist",
- "body": [
- "bool $1 = db.ConsumerProfit.Any(m => m.Id == $2);",
- ]
- },
- "查询某个消费者分红记录,并取值": {
- "prefix": "ym-db-ConsumerProfit-FindByPrimaryKey",
- "body": [
- "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int ConsumerId = $1.ConsumerId; //消费者",
- " int MerchantId = $1.MerchantId; //商户",
- " decimal GetMoney = $1.GetMoney; //分红金额",
- " int OrderId = $1.OrderId; //订单",
- "}"
- ]
- },
- "查询某个消费者分红记录,并赋值": {
- "prefix": "ym-db-ConsumerProfit-Update",
- "body": [
- "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ConsumerId = $2; //消费者",
- " $1.MerchantId = $3; //商户",
- " $1.GetMoney = $4; //分红金额",
- " $1.OrderId = $5; //订单",
- "}"
- ]
- },
- "获取消费者分红记录数量": {
- "prefix": "ym-db-ConsumerProfit-FindAndCount",
- "body": [
- "int $1 = db.ConsumerProfit.Count(m => $2);",
- ]
- },
- "添加消费者分红记录": {
- "prefix": "ym-db-ConsumerProfit-Create",
- "body": [
- "db.ConsumerProfit.Add(new ConsumerProfit()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ConsumerId = $1, //消费者",
- " MerchantId = $2, //商户",
- " GetMoney = $3, //分红金额",
- " OrderId = $4, //订单",
- "});"
- ]
- },"删除某个消费者分红记录": {
- "prefix": "ym-db-ConsumerProfit-Delete",
- "body": [
- "ConsumerProfit $1 = db.ConsumerProfit.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ConsumerProfit.Remove($1);",
- "}"
- ]
- },
- "查询消费者列表": {
- "prefix": "ym-db-Consumers-Find",
- "body": [
- "List<Consumers> $1 = db.Consumers.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Consumers $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询消费者列表,并取值": {
- "prefix": "ym-db-Consumers-FindWithData",
- "body": [
- "List<Consumers> $1 = db.Consumers.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (Consumers $3 in $1)",
- "{",
- " string NickName = $3.NickName; //昵称",
- " string HeadPhoto = $3.HeadPhoto; //头像",
- " string Mobile = $3.Mobile; //手机号",
- " decimal TotalDividend = $3.TotalDividend; //累计分红",
- " int TotalIntegral = $3.TotalIntegral; //累计积分",
- " int CurIntgegral = $3.CurIntgegral; //当前积分",
- " string WechatUnionid = $3.WechatUnionid; //微信Unionid",
- " string AlipayUserId = $3.AlipayUserId; //支付宝UserId",
- " decimal TotalAmount = $3.TotalAmount; //累计消费金额",
- " int TotalConsumCount = $3.TotalConsumCount; //累计消费次数",
- " DateTime LastConsumDate = $3.LastConsumDate; //最近消费时间",
- " ulong WeChatPayFlag = $3.WeChatPayFlag; //微信付款标记",
- " ulong AlipayFlag = $3.AlipayFlag; //支付宝付款标记",
- " ulong CardFlag = $3.CardFlag; //是否领取会员卡",
- " string WechatOpenId = $3.WechatOpenId; //微信OpenId",
- "}"
- ]
- },
- "查询消费者": {
- "prefix": "ym-db-Consumers-Exist",
- "body": [
- "bool $1 = db.Consumers.Any(m => m.Id == $2);",
- ]
- },
- "查询某个消费者,并取值": {
- "prefix": "ym-db-Consumers-FindByPrimaryKey",
- "body": [
- "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string NickName = $1.NickName; //昵称",
- " string HeadPhoto = $1.HeadPhoto; //头像",
- " string Mobile = $1.Mobile; //手机号",
- " decimal TotalDividend = $1.TotalDividend; //累计分红",
- " int TotalIntegral = $1.TotalIntegral; //累计积分",
- " int CurIntgegral = $1.CurIntgegral; //当前积分",
- " string WechatUnionid = $1.WechatUnionid; //微信Unionid",
- " string AlipayUserId = $1.AlipayUserId; //支付宝UserId",
- " decimal TotalAmount = $1.TotalAmount; //累计消费金额",
- " int TotalConsumCount = $1.TotalConsumCount; //累计消费次数",
- " DateTime LastConsumDate = $1.LastConsumDate; //最近消费时间",
- " ulong WeChatPayFlag = $1.WeChatPayFlag; //微信付款标记",
- " ulong AlipayFlag = $1.AlipayFlag; //支付宝付款标记",
- " ulong CardFlag = $1.CardFlag; //是否领取会员卡",
- " string WechatOpenId = $1.WechatOpenId; //微信OpenId",
- "}"
- ]
- },
- "查询某个消费者,并赋值": {
- "prefix": "ym-db-Consumers-Update",
- "body": [
- "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.NickName = $2; //昵称",
- " $1.HeadPhoto = $3; //头像",
- " $1.Mobile = $4; //手机号",
- " $1.TotalDividend = $5; //累计分红",
- " $1.TotalIntegral = $6; //累计积分",
- " $1.CurIntgegral = $7; //当前积分",
- " $1.WechatUnionid = $8; //微信Unionid",
- " $1.AlipayUserId = $9; //支付宝UserId",
- " $1.TotalAmount = $10; //累计消费金额",
- " $1.TotalConsumCount = $11; //累计消费次数",
- " $1.LastConsumDate = $12; //最近消费时间",
- " $1.WeChatPayFlag = $13; //微信付款标记",
- " $1.AlipayFlag = $14; //支付宝付款标记",
- " $1.CardFlag = $15; //是否领取会员卡",
- " $1.WechatOpenId = $16; //微信OpenId",
- "}"
- ]
- },
- "获取消费者数量": {
- "prefix": "ym-db-Consumers-FindAndCount",
- "body": [
- "int $1 = db.Consumers.Count(m => $2);",
- ]
- },
- "添加消费者": {
- "prefix": "ym-db-Consumers-Create",
- "body": [
- "db.Consumers.Add(new Consumers()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " NickName = $1, //昵称",
- " HeadPhoto = $2, //头像",
- " Mobile = $3, //手机号",
- " TotalDividend = $4, //累计分红",
- " TotalIntegral = $5, //累计积分",
- " CurIntgegral = $6, //当前积分",
- " WechatUnionid = $7, //微信Unionid",
- " AlipayUserId = $8, //支付宝UserId",
- " TotalAmount = $9, //累计消费金额",
- " TotalConsumCount = $10, //累计消费次数",
- " LastConsumDate = $11, //最近消费时间",
- " WeChatPayFlag = $12, //微信付款标记",
- " AlipayFlag = $13, //支付宝付款标记",
- " CardFlag = $14, //是否领取会员卡",
- " WechatOpenId = $15, //微信OpenId",
- "});"
- ]
- },"删除某个消费者": {
- "prefix": "ym-db-Consumers-Delete",
- "body": [
- "Consumers $1 = db.Consumers.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.Consumers.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; //备注",
- " int BrandId = $3.BrandId; //品牌",
- "}"
- ]
- },
- "查询流量分佣汇总": {
- "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; //备注",
- " int BrandId = $1.BrandId; //品牌",
- "}"
- ]
- },
- "查询某个流量分佣汇总,并赋值": {
- "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; //备注",
- " $1.BrandId = $10; //品牌",
- "}"
- ]
- },
- "获取流量分佣汇总数量": {
- "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, //备注",
- " BrandId = $9, //品牌",
- "});"
- ]
- },"删除某个流量分佣汇总": {
- "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-MachineForQrCode-Find",
- "body": [
- "List<MachineForQrCode> $1 = db.MachineForQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineForQrCode $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具绑定收款码列表,并取值": {
- "prefix": "ym-db-MachineForQrCode-FindWithData",
- "body": [
- "List<MachineForQrCode> $1 = db.MachineForQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineForQrCode $3 in $1)",
- "{",
- " string DataId = $3.DataId; //关联主键",
- " DateTime BindDate = $3.BindDate; //绑定时间",
- " string SnNo = $3.SnNo; //收款SN",
- " string MachineSnNo = $3.MachineSnNo; //音箱SN",
- " int MerchantId = $3.MerchantId; //商户",
- "}"
- ]
- },
- "查询机具绑定收款码": {
- "prefix": "ym-db-MachineForQrCode-Exist",
- "body": [
- "bool $1 = db.MachineForQrCode.Any(m => m.DataId == $2);",
- ]
- },
- "查询某个机具绑定收款码,并取值": {
- "prefix": "ym-db-MachineForQrCode-FindByPrimaryKey",
- "body": [
- "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);",
- "if ($1 != null)",
- "{",
- " string DataId = $1.DataId; //关联主键",
- " DateTime BindDate = $1.BindDate; //绑定时间",
- " string SnNo = $1.SnNo; //收款SN",
- " string MachineSnNo = $1.MachineSnNo; //音箱SN",
- " int MerchantId = $1.MerchantId; //商户",
- "}"
- ]
- },
- "查询某个机具绑定收款码,并赋值": {
- "prefix": "ym-db-MachineForQrCode-Update",
- "body": [
- "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);",
- "if ($1 != null)",
- "{",
- " $1.DataId = $2; //关联主键",
- " $1.BindDate = $3; //绑定时间",
- " $1.SnNo = $4; //收款SN",
- " $1.MachineSnNo = $5; //音箱SN",
- " $1.MerchantId = $6; //商户",
- "}"
- ]
- },
- "获取机具绑定收款码数量": {
- "prefix": "ym-db-MachineForQrCode-FindAndCount",
- "body": [
- "int $1 = db.MachineForQrCode.Count(m => $2);",
- ]
- },
- "添加机具绑定收款码": {
- "prefix": "ym-db-MachineForQrCode-Create",
- "body": [
- "db.MachineForQrCode.Add(new MachineForQrCode()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " DataId = $1, //关联主键",
- " BindDate = $2, //绑定时间",
- " SnNo = $3, //收款SN",
- " MachineSnNo = $4, //音箱SN",
- " MerchantId = $5, //商户",
- "});"
- ]
- },"删除某个机具绑定收款码": {
- "prefix": "ym-db-MachineForQrCode-Delete",
- "body": [
- "MachineForQrCode $1 = db.MachineForQrCode.FirstOrDefault(m => m.DataId == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineForQrCode.Remove($1);",
- "}"
- ]
- },
- "查询机具号为主键的关联表列表": {
- "prefix": "ym-db-MachineForSnNo-Find",
- "body": [
- "List<MachineForSnNo> $1 = db.MachineForSnNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineForSnNo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询机具号为主键的关联表列表,并取值": {
- "prefix": "ym-db-MachineForSnNo-FindWithData",
- "body": [
- "List<MachineForSnNo> $1 = db.MachineForSnNo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MachineForSnNo $3 in $1)",
- "{",
- " string SnNo = $3.SnNo; //机具号",
- " int SnId = $3.SnId; //机具Id",
- "}"
- ]
- },
- "查询机具号为主键的关联表": {
- "prefix": "ym-db-MachineForSnNo-Exist",
- "body": [
- "bool $1 = db.MachineForSnNo.Any(m => m.SnNo == $2);",
- ]
- },
- "查询某个机具号为主键的关联表,并取值": {
- "prefix": "ym-db-MachineForSnNo-FindByPrimaryKey",
- "body": [
- "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);",
- "if ($1 != null)",
- "{",
- " string SnNo = $1.SnNo; //机具号",
- " int SnId = $1.SnId; //机具Id",
- "}"
- ]
- },
- "查询某个机具号为主键的关联表,并赋值": {
- "prefix": "ym-db-MachineForSnNo-Update",
- "body": [
- "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);",
- "if ($1 != null)",
- "{",
- " $1.SnNo = $2; //机具号",
- " $1.SnId = $3; //机具Id",
- "}"
- ]
- },
- "获取机具号为主键的关联表数量": {
- "prefix": "ym-db-MachineForSnNo-FindAndCount",
- "body": [
- "int $1 = db.MachineForSnNo.Count(m => $2);",
- ]
- },
- "添加机具号为主键的关联表": {
- "prefix": "ym-db-MachineForSnNo-Create",
- "body": [
- "db.MachineForSnNo.Add(new MachineForSnNo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " SnNo = $1, //机具号",
- " SnId = $2, //机具Id",
- "});"
- ]
- },"删除某个机具号为主键的关联表": {
- "prefix": "ym-db-MachineForSnNo-Delete",
- "body": [
- "MachineForSnNo $1 = db.MachineForSnNo.FirstOrDefault(m => m.SnNo == $2);",
- "if ($1 != null)",
- "{",
- " db.MachineForSnNo.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-MenuRight-Find",
- "body": [
- "List<MenuRight> $1 = db.MenuRight.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MenuRight $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询菜单权限列表,并取值": {
- "prefix": "ym-db-MenuRight-FindWithData",
- "body": [
- "List<MenuRight> $1 = db.MenuRight.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MenuRight $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string MenuId = $3.MenuId; //权限名",
- "}"
- ]
- },
- "查询菜单权限": {
- "prefix": "ym-db-MenuRight-Exist",
- "body": [
- "bool $1 = db.MenuRight.Any(m => m.MenuId == $2);",
- ]
- },
- "查询某个菜单权限,并取值": {
- "prefix": "ym-db-MenuRight-FindByPrimaryKey",
- "body": [
- "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string MenuId = $1.MenuId; //权限名",
- "}"
- ]
- },
- "查询某个菜单权限,并赋值": {
- "prefix": "ym-db-MenuRight-Update",
- "body": [
- "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.MenuId = $3; //权限名",
- "}"
- ]
- },
- "获取菜单权限数量": {
- "prefix": "ym-db-MenuRight-FindAndCount",
- "body": [
- "int $1 = db.MenuRight.Count(m => $2);",
- ]
- },
- "添加菜单权限": {
- "prefix": "ym-db-MenuRight-Create",
- "body": [
- "db.MenuRight.Add(new MenuRight()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " MenuId = $2, //权限名",
- "});"
- ]
- },"删除某个菜单权限": {
- "prefix": "ym-db-MenuRight-Delete",
- "body": [
- "MenuRight $1 = db.MenuRight.FirstOrDefault(m => m.MenuId == $2);",
- "if ($1 != null)",
- "{",
- " db.MenuRight.Remove($1);",
- "}"
- ]
- },
- "查询商户进件资料列表": {
- "prefix": "ym-db-MerchantAddInfo-Find",
- "body": [
- "List<MerchantAddInfo> $1 = db.MerchantAddInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantAddInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户进件资料列表,并取值": {
- "prefix": "ym-db-MerchantAddInfo-FindWithData",
- "body": [
- "List<MerchantAddInfo> $1 = db.MerchantAddInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantAddInfo $3 in $1)",
- "{",
- " string BusinessCode = $3.BusinessCode; //申请编号",
- " string ContactName = $3.ContactName; //管理员姓名",
- " string ContactIdNumber = $3.ContactIdNumber; //管理员身份证件号码",
- " string OpenId = $3.OpenId; //管理员微信openid",
- " string MobilePhone = $3.MobilePhone; //联系手机",
- " string ContactEmail = $3.ContactEmail; //联系邮箱",
- " string SubjectType = $3.SubjectType; //主体类型",
- " string LicenseCopy = $3.LicenseCopy; //营业执照照片",
- " string LicenseNumber = $3.LicenseNumber; //统一社会信用代码",
- " string LegalPerson = $3.LegalPerson; //个体户经营者/法人姓名",
- " string CertCopy = $3.CertCopy; //登记证书照片",
- " string CertType = $3.CertType; //登记证书类型",
- " string CertNumber = $3.CertNumber; //证书号",
- " string CertMerchantName = $3.CertMerchantName; //商户名称",
- " string CompanyAddress = $3.CompanyAddress; //注册地址",
- " string CertLegalPerson = $3.CertLegalPerson; //法人姓名",
- " DateTime PeriodBegin = $3.PeriodBegin; //有效期限开始日期",
- " DateTime PeriodEnd = $3.PeriodEnd; //有效期限结束日期",
- " string OrganizationCopy = $3.OrganizationCopy; //组织机构代码证照片",
- " string OrganizationCode = $3.OrganizationCode; //组织机构代码",
- " DateTime OrgPeriodBegin = $3.OrgPeriodBegin; //组织机构代码证有效期开始日期",
- " DateTime OrgPeriodEnd = $3.OrgPeriodEnd; //组织机构代码证有效期结束日期",
- " string CertificateLetterCopy = $3.CertificateLetterCopy; //单位证明函照片",
- " string IdDocType = $3.IdDocType; //证件类型",
- " ulong Owner = $3.Owner; //经营者/法人是否为受益人",
- " string UboInfoIdType = $3.UboInfoIdType; //最终受益人证件类型",
- " string UboInfoIdCardCopy = $3.UboInfoIdCardCopy; //最终受益人身份证人像面照片",
- " string UboInfoIdCardNational = $3.UboInfoIdCardNational; //身份证国徽面照片",
- " string UboInfoIdDocCopy = $3.UboInfoIdDocCopy; //最终受益人证件照片",
- " string UboInfoName = $3.UboInfoName; //受益人姓名",
- " string UboInfoIdNumber = $3.UboInfoIdNumber; //最终受益人证件号码",
- " DateTime UboInfoIdPeriodBegin = $3.UboInfoIdPeriodBegin; //证件有效期开始时间",
- " DateTime UboInfoIdPeriodEnd = $3.UboInfoIdPeriodEnd; //证件有效期结束时间",
- " string MerchantShortname = $3.MerchantShortname; //商户简称",
- " string ServicePhone = $3.ServicePhone; //客服电话",
- " string SalesScenesType = $3.SalesScenesType; //经营场景类型",
- " string BizStoreName = $3.BizStoreName; //门店名称",
- " string BizAddressCode = $3.BizAddressCode; //门店省市编码",
- " string BizStoreAddress = $3.BizStoreAddress; //门店地址",
- " string StoreEntrancePic = $3.StoreEntrancePic; //门店门头照片",
- " string IndoorPic = $3.IndoorPic; //店内环境照片",
- " string BizSubAppid = $3.BizSubAppid; //线下场所对应的商家APPID",
- " string MpAppid = $3.MpAppid; //服务商公众号APPID",
- " string MpSubAppid = $3.MpSubAppid; //商家公众号APPID",
- " string MpPics = $3.MpPics; //公众号页面截图",
- " string MiniProgramAppid = $3.MiniProgramAppid; //服务商小程序APPID",
- " string MiniProgramSubAppid = $3.MiniProgramSubAppid; //商家小程序APPID",
- " string MiniProgramPics = $3.MiniProgramPics; //小程序截图",
- " string AppAppid = $3.AppAppid; //服务商应用APPID",
- " string AppSubAppid = $3.AppSubAppid; //商家应用APPID",
- " string AppPics = $3.AppPics; //APP截图",
- " string WebDomain = $3.WebDomain; //互联网网站域名",
- " string WebAuthorisation = $3.WebAuthorisation; //网站授权函",
- " string WebAppId = $3.WebAppId; //互联网网站对应的商家APPID",
- " string SubCorpId = $3.SubCorpId; //商家企业微信CorpID",
- " string WeworkPics = $3.WeworkPics; //企业微信页面截图",
- " string SettlementId = $3.SettlementId; //入驻结算规则ID",
- " string QualificationType = $3.QualificationType; //所属行业",
- " string Qualifications = $3.Qualifications; //特殊资质图片",
- " string ActivitiesId = $3.ActivitiesId; //优惠费率活动ID",
- " string ActivitiesRate = $3.ActivitiesRate; //优惠费率活动值",
- " string BankAccountType = $3.BankAccountType; //账户类型",
- " string AccountName = $3.AccountName; //开户名称",
- " string AccountBank = $3.AccountBank; //开户银行",
- " string BankAddressCode = $3.BankAddressCode; //开户银行省市编码",
- " string BankBranchId = $3.BankBranchId; //开户银行联行号",
- " string BankName = $3.BankName; //开户银行全称",
- " string AccountNumber = $3.AccountNumber; //银行账号",
- " string ApplymentId = $3.ApplymentId; //微信支付申请单号",
- " string SubMchid = $3.SubMchid; //特约商户号",
- " string SignUrl = $3.SignUrl; //超级管理员签约链接",
- " string ApplymentState = $3.ApplymentState; //申请单状态",
- " string AuditDetail = $3.AuditDetail; //驳回原因详情",
- " string IdCardCopy = $3.IdCardCopy; //身份证人像面照片",
- " string IdCardNational = $3.IdCardNational; //身份证国徽面照片",
- " string IdCardName = $3.IdCardName; //身份证姓名",
- " string IdCardNumber = $3.IdCardNumber; //身份证号码",
- " DateTime CardPeriodBegin = $3.CardPeriodBegin; //身份证有效期开始时间",
- " DateTime CardPeriodEnd = $3.CardPeriodEnd; //身份证有效期结束时间",
- "}"
- ]
- },
- "查询商户进件资料": {
- "prefix": "ym-db-MerchantAddInfo-Exist",
- "body": [
- "bool $1 = db.MerchantAddInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商户进件资料,并取值": {
- "prefix": "ym-db-MerchantAddInfo-FindByPrimaryKey",
- "body": [
- "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string BusinessCode = $1.BusinessCode; //申请编号",
- " string ContactName = $1.ContactName; //管理员姓名",
- " string ContactIdNumber = $1.ContactIdNumber; //管理员身份证件号码",
- " string OpenId = $1.OpenId; //管理员微信openid",
- " string MobilePhone = $1.MobilePhone; //联系手机",
- " string ContactEmail = $1.ContactEmail; //联系邮箱",
- " string SubjectType = $1.SubjectType; //主体类型",
- " string LicenseCopy = $1.LicenseCopy; //营业执照照片",
- " string LicenseNumber = $1.LicenseNumber; //统一社会信用代码",
- " string LegalPerson = $1.LegalPerson; //个体户经营者/法人姓名",
- " string CertCopy = $1.CertCopy; //登记证书照片",
- " string CertType = $1.CertType; //登记证书类型",
- " string CertNumber = $1.CertNumber; //证书号",
- " string CertMerchantName = $1.CertMerchantName; //商户名称",
- " string CompanyAddress = $1.CompanyAddress; //注册地址",
- " string CertLegalPerson = $1.CertLegalPerson; //法人姓名",
- " DateTime PeriodBegin = $1.PeriodBegin; //有效期限开始日期",
- " DateTime PeriodEnd = $1.PeriodEnd; //有效期限结束日期",
- " string OrganizationCopy = $1.OrganizationCopy; //组织机构代码证照片",
- " string OrganizationCode = $1.OrganizationCode; //组织机构代码",
- " DateTime OrgPeriodBegin = $1.OrgPeriodBegin; //组织机构代码证有效期开始日期",
- " DateTime OrgPeriodEnd = $1.OrgPeriodEnd; //组织机构代码证有效期结束日期",
- " string CertificateLetterCopy = $1.CertificateLetterCopy; //单位证明函照片",
- " string IdDocType = $1.IdDocType; //证件类型",
- " ulong Owner = $1.Owner; //经营者/法人是否为受益人",
- " string UboInfoIdType = $1.UboInfoIdType; //最终受益人证件类型",
- " string UboInfoIdCardCopy = $1.UboInfoIdCardCopy; //最终受益人身份证人像面照片",
- " string UboInfoIdCardNational = $1.UboInfoIdCardNational; //身份证国徽面照片",
- " string UboInfoIdDocCopy = $1.UboInfoIdDocCopy; //最终受益人证件照片",
- " string UboInfoName = $1.UboInfoName; //受益人姓名",
- " string UboInfoIdNumber = $1.UboInfoIdNumber; //最终受益人证件号码",
- " DateTime UboInfoIdPeriodBegin = $1.UboInfoIdPeriodBegin; //证件有效期开始时间",
- " DateTime UboInfoIdPeriodEnd = $1.UboInfoIdPeriodEnd; //证件有效期结束时间",
- " string MerchantShortname = $1.MerchantShortname; //商户简称",
- " string ServicePhone = $1.ServicePhone; //客服电话",
- " string SalesScenesType = $1.SalesScenesType; //经营场景类型",
- " string BizStoreName = $1.BizStoreName; //门店名称",
- " string BizAddressCode = $1.BizAddressCode; //门店省市编码",
- " string BizStoreAddress = $1.BizStoreAddress; //门店地址",
- " string StoreEntrancePic = $1.StoreEntrancePic; //门店门头照片",
- " string IndoorPic = $1.IndoorPic; //店内环境照片",
- " string BizSubAppid = $1.BizSubAppid; //线下场所对应的商家APPID",
- " string MpAppid = $1.MpAppid; //服务商公众号APPID",
- " string MpSubAppid = $1.MpSubAppid; //商家公众号APPID",
- " string MpPics = $1.MpPics; //公众号页面截图",
- " string MiniProgramAppid = $1.MiniProgramAppid; //服务商小程序APPID",
- " string MiniProgramSubAppid = $1.MiniProgramSubAppid; //商家小程序APPID",
- " string MiniProgramPics = $1.MiniProgramPics; //小程序截图",
- " string AppAppid = $1.AppAppid; //服务商应用APPID",
- " string AppSubAppid = $1.AppSubAppid; //商家应用APPID",
- " string AppPics = $1.AppPics; //APP截图",
- " string WebDomain = $1.WebDomain; //互联网网站域名",
- " string WebAuthorisation = $1.WebAuthorisation; //网站授权函",
- " string WebAppId = $1.WebAppId; //互联网网站对应的商家APPID",
- " string SubCorpId = $1.SubCorpId; //商家企业微信CorpID",
- " string WeworkPics = $1.WeworkPics; //企业微信页面截图",
- " string SettlementId = $1.SettlementId; //入驻结算规则ID",
- " string QualificationType = $1.QualificationType; //所属行业",
- " string Qualifications = $1.Qualifications; //特殊资质图片",
- " string ActivitiesId = $1.ActivitiesId; //优惠费率活动ID",
- " string ActivitiesRate = $1.ActivitiesRate; //优惠费率活动值",
- " string BankAccountType = $1.BankAccountType; //账户类型",
- " string AccountName = $1.AccountName; //开户名称",
- " string AccountBank = $1.AccountBank; //开户银行",
- " string BankAddressCode = $1.BankAddressCode; //开户银行省市编码",
- " string BankBranchId = $1.BankBranchId; //开户银行联行号",
- " string BankName = $1.BankName; //开户银行全称",
- " string AccountNumber = $1.AccountNumber; //银行账号",
- " string ApplymentId = $1.ApplymentId; //微信支付申请单号",
- " string SubMchid = $1.SubMchid; //特约商户号",
- " string SignUrl = $1.SignUrl; //超级管理员签约链接",
- " string ApplymentState = $1.ApplymentState; //申请单状态",
- " string AuditDetail = $1.AuditDetail; //驳回原因详情",
- " string IdCardCopy = $1.IdCardCopy; //身份证人像面照片",
- " string IdCardNational = $1.IdCardNational; //身份证国徽面照片",
- " string IdCardName = $1.IdCardName; //身份证姓名",
- " string IdCardNumber = $1.IdCardNumber; //身份证号码",
- " DateTime CardPeriodBegin = $1.CardPeriodBegin; //身份证有效期开始时间",
- " DateTime CardPeriodEnd = $1.CardPeriodEnd; //身份证有效期结束时间",
- "}"
- ]
- },
- "查询某个商户进件资料,并赋值": {
- "prefix": "ym-db-MerchantAddInfo-Update",
- "body": [
- "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.BusinessCode = $2; //申请编号",
- " $1.ContactName = $3; //管理员姓名",
- " $1.ContactIdNumber = $4; //管理员身份证件号码",
- " $1.OpenId = $5; //管理员微信openid",
- " $1.MobilePhone = $6; //联系手机",
- " $1.ContactEmail = $7; //联系邮箱",
- " $1.SubjectType = $8; //主体类型",
- " $1.LicenseCopy = $9; //营业执照照片",
- " $1.LicenseNumber = $10; //统一社会信用代码",
- " $1.LegalPerson = $11; //个体户经营者/法人姓名",
- " $1.CertCopy = $12; //登记证书照片",
- " $1.CertType = $13; //登记证书类型",
- " $1.CertNumber = $14; //证书号",
- " $1.CertMerchantName = $15; //商户名称",
- " $1.CompanyAddress = $16; //注册地址",
- " $1.CertLegalPerson = $17; //法人姓名",
- " $1.PeriodBegin = $18; //有效期限开始日期",
- " $1.PeriodEnd = $19; //有效期限结束日期",
- " $1.OrganizationCopy = $20; //组织机构代码证照片",
- " $1.OrganizationCode = $21; //组织机构代码",
- " $1.OrgPeriodBegin = $22; //组织机构代码证有效期开始日期",
- " $1.OrgPeriodEnd = $23; //组织机构代码证有效期结束日期",
- " $1.CertificateLetterCopy = $24; //单位证明函照片",
- " $1.IdDocType = $25; //证件类型",
- " $1.Owner = $26; //经营者/法人是否为受益人",
- " $1.UboInfoIdType = $27; //最终受益人证件类型",
- " $1.UboInfoIdCardCopy = $28; //最终受益人身份证人像面照片",
- " $1.UboInfoIdCardNational = $29; //身份证国徽面照片",
- " $1.UboInfoIdDocCopy = $30; //最终受益人证件照片",
- " $1.UboInfoName = $31; //受益人姓名",
- " $1.UboInfoIdNumber = $32; //最终受益人证件号码",
- " $1.UboInfoIdPeriodBegin = $33; //证件有效期开始时间",
- " $1.UboInfoIdPeriodEnd = $34; //证件有效期结束时间",
- " $1.MerchantShortname = $35; //商户简称",
- " $1.ServicePhone = $36; //客服电话",
- " $1.SalesScenesType = $37; //经营场景类型",
- " $1.BizStoreName = $38; //门店名称",
- " $1.BizAddressCode = $39; //门店省市编码",
- " $1.BizStoreAddress = $40; //门店地址",
- " $1.StoreEntrancePic = $41; //门店门头照片",
- " $1.IndoorPic = $42; //店内环境照片",
- " $1.BizSubAppid = $43; //线下场所对应的商家APPID",
- " $1.MpAppid = $44; //服务商公众号APPID",
- " $1.MpSubAppid = $45; //商家公众号APPID",
- " $1.MpPics = $46; //公众号页面截图",
- " $1.MiniProgramAppid = $47; //服务商小程序APPID",
- " $1.MiniProgramSubAppid = $48; //商家小程序APPID",
- " $1.MiniProgramPics = $49; //小程序截图",
- " $1.AppAppid = $50; //服务商应用APPID",
- " $1.AppSubAppid = $51; //商家应用APPID",
- " $1.AppPics = $52; //APP截图",
- " $1.WebDomain = $53; //互联网网站域名",
- " $1.WebAuthorisation = $54; //网站授权函",
- " $1.WebAppId = $55; //互联网网站对应的商家APPID",
- " $1.SubCorpId = $56; //商家企业微信CorpID",
- " $1.WeworkPics = $57; //企业微信页面截图",
- " $1.SettlementId = $58; //入驻结算规则ID",
- " $1.QualificationType = $59; //所属行业",
- " $1.Qualifications = $60; //特殊资质图片",
- " $1.ActivitiesId = $61; //优惠费率活动ID",
- " $1.ActivitiesRate = $62; //优惠费率活动值",
- " $1.BankAccountType = $63; //账户类型",
- " $1.AccountName = $64; //开户名称",
- " $1.AccountBank = $65; //开户银行",
- " $1.BankAddressCode = $66; //开户银行省市编码",
- " $1.BankBranchId = $67; //开户银行联行号",
- " $1.BankName = $68; //开户银行全称",
- " $1.AccountNumber = $69; //银行账号",
- " $1.ApplymentId = $70; //微信支付申请单号",
- " $1.SubMchid = $71; //特约商户号",
- " $1.SignUrl = $72; //超级管理员签约链接",
- " $1.ApplymentState = $73; //申请单状态",
- " $1.AuditDetail = $74; //驳回原因详情",
- " $1.IdCardCopy = $75; //身份证人像面照片",
- " $1.IdCardNational = $76; //身份证国徽面照片",
- " $1.IdCardName = $77; //身份证姓名",
- " $1.IdCardNumber = $78; //身份证号码",
- " $1.CardPeriodBegin = $79; //身份证有效期开始时间",
- " $1.CardPeriodEnd = $80; //身份证有效期结束时间",
- "}"
- ]
- },
- "获取商户进件资料数量": {
- "prefix": "ym-db-MerchantAddInfo-FindAndCount",
- "body": [
- "int $1 = db.MerchantAddInfo.Count(m => $2);",
- ]
- },
- "添加商户进件资料": {
- "prefix": "ym-db-MerchantAddInfo-Create",
- "body": [
- "db.MerchantAddInfo.Add(new MerchantAddInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " BusinessCode = $1, //申请编号",
- " ContactName = $2, //管理员姓名",
- " ContactIdNumber = $3, //管理员身份证件号码",
- " OpenId = $4, //管理员微信openid",
- " MobilePhone = $5, //联系手机",
- " ContactEmail = $6, //联系邮箱",
- " SubjectType = $7, //主体类型",
- " LicenseCopy = $8, //营业执照照片",
- " LicenseNumber = $9, //统一社会信用代码",
- " LegalPerson = $10, //个体户经营者/法人姓名",
- " CertCopy = $11, //登记证书照片",
- " CertType = $12, //登记证书类型",
- " CertNumber = $13, //证书号",
- " CertMerchantName = $14, //商户名称",
- " CompanyAddress = $15, //注册地址",
- " CertLegalPerson = $16, //法人姓名",
- " PeriodBegin = $17, //有效期限开始日期",
- " PeriodEnd = $18, //有效期限结束日期",
- " OrganizationCopy = $19, //组织机构代码证照片",
- " OrganizationCode = $20, //组织机构代码",
- " OrgPeriodBegin = $21, //组织机构代码证有效期开始日期",
- " OrgPeriodEnd = $22, //组织机构代码证有效期结束日期",
- " CertificateLetterCopy = $23, //单位证明函照片",
- " IdDocType = $24, //证件类型",
- " Owner = $25, //经营者/法人是否为受益人",
- " UboInfoIdType = $26, //最终受益人证件类型",
- " UboInfoIdCardCopy = $27, //最终受益人身份证人像面照片",
- " UboInfoIdCardNational = $28, //身份证国徽面照片",
- " UboInfoIdDocCopy = $29, //最终受益人证件照片",
- " UboInfoName = $30, //受益人姓名",
- " UboInfoIdNumber = $31, //最终受益人证件号码",
- " UboInfoIdPeriodBegin = $32, //证件有效期开始时间",
- " UboInfoIdPeriodEnd = $33, //证件有效期结束时间",
- " MerchantShortname = $34, //商户简称",
- " ServicePhone = $35, //客服电话",
- " SalesScenesType = $36, //经营场景类型",
- " BizStoreName = $37, //门店名称",
- " BizAddressCode = $38, //门店省市编码",
- " BizStoreAddress = $39, //门店地址",
- " StoreEntrancePic = $40, //门店门头照片",
- " IndoorPic = $41, //店内环境照片",
- " BizSubAppid = $42, //线下场所对应的商家APPID",
- " MpAppid = $43, //服务商公众号APPID",
- " MpSubAppid = $44, //商家公众号APPID",
- " MpPics = $45, //公众号页面截图",
- " MiniProgramAppid = $46, //服务商小程序APPID",
- " MiniProgramSubAppid = $47, //商家小程序APPID",
- " MiniProgramPics = $48, //小程序截图",
- " AppAppid = $49, //服务商应用APPID",
- " AppSubAppid = $50, //商家应用APPID",
- " AppPics = $51, //APP截图",
- " WebDomain = $52, //互联网网站域名",
- " WebAuthorisation = $53, //网站授权函",
- " WebAppId = $54, //互联网网站对应的商家APPID",
- " SubCorpId = $55, //商家企业微信CorpID",
- " WeworkPics = $56, //企业微信页面截图",
- " SettlementId = $57, //入驻结算规则ID",
- " QualificationType = $58, //所属行业",
- " Qualifications = $59, //特殊资质图片",
- " ActivitiesId = $60, //优惠费率活动ID",
- " ActivitiesRate = $61, //优惠费率活动值",
- " BankAccountType = $62, //账户类型",
- " AccountName = $63, //开户名称",
- " AccountBank = $64, //开户银行",
- " BankAddressCode = $65, //开户银行省市编码",
- " BankBranchId = $66, //开户银行联行号",
- " BankName = $67, //开户银行全称",
- " AccountNumber = $68, //银行账号",
- " ApplymentId = $69, //微信支付申请单号",
- " SubMchid = $70, //特约商户号",
- " SignUrl = $71, //超级管理员签约链接",
- " ApplymentState = $72, //申请单状态",
- " AuditDetail = $73, //驳回原因详情",
- " IdCardCopy = $74, //身份证人像面照片",
- " IdCardNational = $75, //身份证国徽面照片",
- " IdCardName = $76, //身份证姓名",
- " IdCardNumber = $77, //身份证号码",
- " CardPeriodBegin = $78, //身份证有效期开始时间",
- " CardPeriodEnd = $79, //身份证有效期结束时间",
- "});"
- ]
- },"删除某个商户进件资料": {
- "prefix": "ym-db-MerchantAddInfo-Delete",
- "body": [
- "MerchantAddInfo $1 = db.MerchantAddInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantAddInfo.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-MerchantForMobile-Find",
- "body": [
- "List<MerchantForMobile> $1 = db.MerchantForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantForMobile $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户手机号为主键的关联表列表,并取值": {
- "prefix": "ym-db-MerchantForMobile-FindWithData",
- "body": [
- "List<MerchantForMobile> $1 = db.MerchantForMobile.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantForMobile $3 in $1)",
- "{",
- " string Mobile = $3.Mobile; //手机号",
- " int MerchantId = $3.MerchantId; //商户",
- "}"
- ]
- },
- "查询商户手机号为主键的关联表": {
- "prefix": "ym-db-MerchantForMobile-Exist",
- "body": [
- "bool $1 = db.MerchantForMobile.Any(m => m.Mobile == $2);",
- ]
- },
- "查询某个商户手机号为主键的关联表,并取值": {
- "prefix": "ym-db-MerchantForMobile-FindByPrimaryKey",
- "body": [
- "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " string Mobile = $1.Mobile; //手机号",
- " int MerchantId = $1.MerchantId; //商户",
- "}"
- ]
- },
- "查询某个商户手机号为主键的关联表,并赋值": {
- "prefix": "ym-db-MerchantForMobile-Update",
- "body": [
- "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " $1.Mobile = $2; //手机号",
- " $1.MerchantId = $3; //商户",
- "}"
- ]
- },
- "获取商户手机号为主键的关联表数量": {
- "prefix": "ym-db-MerchantForMobile-FindAndCount",
- "body": [
- "int $1 = db.MerchantForMobile.Count(m => $2);",
- ]
- },
- "添加商户手机号为主键的关联表": {
- "prefix": "ym-db-MerchantForMobile-Create",
- "body": [
- "db.MerchantForMobile.Add(new MerchantForMobile()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Mobile = $1, //手机号",
- " MerchantId = $2, //商户",
- "});"
- ]
- },"删除某个商户手机号为主键的关联表": {
- "prefix": "ym-db-MerchantForMobile-Delete",
- "body": [
- "MerchantForMobile $1 = db.MerchantForMobile.FirstOrDefault(m => m.Mobile == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantForMobile.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 Name = $3.Name; //名称",
- " string Mobile = $3.Mobile; //手机号",
- " string Areas = $3.Areas; //所在地区",
- " string Address = $3.Address; //详细地址",
- " ulong IsAuth = $3.IsAuth; //是否认证",
- " decimal TotalAmount = $3.TotalAmount; //平台总收益",
- " int TotalOrder = $3.TotalOrder; //累计订单",
- " int TotalCustomer = $3.TotalCustomer; //累计客户",
- " int TotalUser = $3.TotalUser; //会员数",
- " string LoginPwd = $3.LoginPwd; //登录密码",
- " string Logo = $3.Logo; //Logo图片",
- " decimal TotalActual = $3.TotalActual; //营收总额",
- " DateTime LastAddConsumerDate = $3.LastAddConsumerDate; //最后加入会员时间",
- " int TotalConsumeCount = $3.TotalConsumeCount; //累计消费次数",
- " DateTime LastConsumeDate = $3.LastConsumeDate; //最后消费时间",
- " int UserId = $3.UserId; //所属创客",
- " string ParentUserNav = $3.ParentUserNav; //所属创客上级集合",
- "}"
- ]
- },
- "查询商户": {
- "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 Name = $1.Name; //名称",
- " string Mobile = $1.Mobile; //手机号",
- " string Areas = $1.Areas; //所在地区",
- " string Address = $1.Address; //详细地址",
- " ulong IsAuth = $1.IsAuth; //是否认证",
- " decimal TotalAmount = $1.TotalAmount; //平台总收益",
- " int TotalOrder = $1.TotalOrder; //累计订单",
- " int TotalCustomer = $1.TotalCustomer; //累计客户",
- " int TotalUser = $1.TotalUser; //会员数",
- " string LoginPwd = $1.LoginPwd; //登录密码",
- " string Logo = $1.Logo; //Logo图片",
- " decimal TotalActual = $1.TotalActual; //营收总额",
- " DateTime LastAddConsumerDate = $1.LastAddConsumerDate; //最后加入会员时间",
- " int TotalConsumeCount = $1.TotalConsumeCount; //累计消费次数",
- " DateTime LastConsumeDate = $1.LastConsumeDate; //最后消费时间",
- " int UserId = $1.UserId; //所属创客",
- " string ParentUserNav = $1.ParentUserNav; //所属创客上级集合",
- "}"
- ]
- },
- "查询某个商户,并赋值": {
- "prefix": "ym-db-MerchantInfo-Update",
- "body": [
- "MerchantInfo $1 = db.MerchantInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.Mobile = $3; //手机号",
- " $1.Areas = $4; //所在地区",
- " $1.Address = $5; //详细地址",
- " $1.IsAuth = $6; //是否认证",
- " $1.TotalAmount = $7; //平台总收益",
- " $1.TotalOrder = $8; //累计订单",
- " $1.TotalCustomer = $9; //累计客户",
- " $1.TotalUser = $10; //会员数",
- " $1.LoginPwd = $11; //登录密码",
- " $1.Logo = $12; //Logo图片",
- " $1.TotalActual = $13; //营收总额",
- " $1.LastAddConsumerDate = $14; //最后加入会员时间",
- " $1.TotalConsumeCount = $15; //累计消费次数",
- " $1.LastConsumeDate = $16; //最后消费时间",
- " $1.UserId = $17; //所属创客",
- " $1.ParentUserNav = $18; //所属创客上级集合",
- "}"
- ]
- },
- "获取商户数量": {
- "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,",
- " Name = $1, //名称",
- " Mobile = $2, //手机号",
- " Areas = $3, //所在地区",
- " Address = $4, //详细地址",
- " IsAuth = $5, //是否认证",
- " TotalAmount = $6, //平台总收益",
- " TotalOrder = $7, //累计订单",
- " TotalCustomer = $8, //累计客户",
- " TotalUser = $9, //会员数",
- " LoginPwd = $10, //登录密码",
- " Logo = $11, //Logo图片",
- " TotalActual = $12, //营收总额",
- " LastAddConsumerDate = $13, //最后加入会员时间",
- " TotalConsumeCount = $14, //累计消费次数",
- " LastConsumeDate = $15, //最后消费时间",
- " UserId = $16, //所属创客",
- " ParentUserNav = $17, //所属创客上级集合",
- "});"
- ]
- },"删除某个商户": {
- "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-MerchantParamSet-Find",
- "body": [
- "List<MerchantParamSet> $1 = db.MerchantParamSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantParamSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商户活动配置列表,并取值": {
- "prefix": "ym-db-MerchantParamSet-FindWithData",
- "body": [
- "List<MerchantParamSet> $1 = db.MerchantParamSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantParamSet $3 in $1)",
- "{",
- " int IsAll = $3.IsAll; //是否收全额",
- " decimal MinPayMoney = $3.MinPayMoney; //订单参与门槛",
- " decimal GetPercent = $3.GetPercent; //商家实收比例",
- " int ProfitDays = $3.ProfitDays; //分红期限(天)",
- " decimal DiviPercent = $3.DiviPercent; //最大分红比例",
- " int DiviPersons = $3.DiviPersons; //单笔订单分红人数",
- "}"
- ]
- },
- "查询商户活动配置": {
- "prefix": "ym-db-MerchantParamSet-Exist",
- "body": [
- "bool $1 = db.MerchantParamSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商户活动配置,并取值": {
- "prefix": "ym-db-MerchantParamSet-FindByPrimaryKey",
- "body": [
- "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int IsAll = $1.IsAll; //是否收全额",
- " decimal MinPayMoney = $1.MinPayMoney; //订单参与门槛",
- " decimal GetPercent = $1.GetPercent; //商家实收比例",
- " int ProfitDays = $1.ProfitDays; //分红期限(天)",
- " decimal DiviPercent = $1.DiviPercent; //最大分红比例",
- " int DiviPersons = $1.DiviPersons; //单笔订单分红人数",
- "}"
- ]
- },
- "查询某个商户活动配置,并赋值": {
- "prefix": "ym-db-MerchantParamSet-Update",
- "body": [
- "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.IsAll = $2; //是否收全额",
- " $1.MinPayMoney = $3; //订单参与门槛",
- " $1.GetPercent = $4; //商家实收比例",
- " $1.ProfitDays = $5; //分红期限(天)",
- " $1.DiviPercent = $6; //最大分红比例",
- " $1.DiviPersons = $7; //单笔订单分红人数",
- "}"
- ]
- },
- "获取商户活动配置数量": {
- "prefix": "ym-db-MerchantParamSet-FindAndCount",
- "body": [
- "int $1 = db.MerchantParamSet.Count(m => $2);",
- ]
- },
- "添加商户活动配置": {
- "prefix": "ym-db-MerchantParamSet-Create",
- "body": [
- "db.MerchantParamSet.Add(new MerchantParamSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " IsAll = $1, //是否收全额",
- " MinPayMoney = $2, //订单参与门槛",
- " GetPercent = $3, //商家实收比例",
- " ProfitDays = $4, //分红期限(天)",
- " DiviPercent = $5, //最大分红比例",
- " DiviPersons = $6, //单笔订单分红人数",
- "});"
- ]
- },"删除某个商户活动配置": {
- "prefix": "ym-db-MerchantParamSet-Delete",
- "body": [
- "MerchantParamSet $1 = db.MerchantParamSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantParamSet.Remove($1);",
- "}"
- ]
- },
- "查询商家收款二维码列表": {
- "prefix": "ym-db-MerchantQrCode-Find",
- "body": [
- "List<MerchantQrCode> $1 = db.MerchantQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantQrCode $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询商家收款二维码列表,并取值": {
- "prefix": "ym-db-MerchantQrCode-FindWithData",
- "body": [
- "List<MerchantQrCode> $1 = db.MerchantQrCode.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MerchantQrCode $3 in $1)",
- "{",
- " int MerchantId = $3.MerchantId; //商户",
- " string QrCodeContent = $3.QrCodeContent; //二维码内容",
- " int MachineId = $3.MachineId; //设备",
- " string SnNo = $3.SnNo; //Sn编号",
- "}"
- ]
- },
- "查询商家收款二维码": {
- "prefix": "ym-db-MerchantQrCode-Exist",
- "body": [
- "bool $1 = db.MerchantQrCode.Any(m => m.Id == $2);",
- ]
- },
- "查询某个商家收款二维码,并取值": {
- "prefix": "ym-db-MerchantQrCode-FindByPrimaryKey",
- "body": [
- "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int MerchantId = $1.MerchantId; //商户",
- " string QrCodeContent = $1.QrCodeContent; //二维码内容",
- " int MachineId = $1.MachineId; //设备",
- " string SnNo = $1.SnNo; //Sn编号",
- "}"
- ]
- },
- "查询某个商家收款二维码,并赋值": {
- "prefix": "ym-db-MerchantQrCode-Update",
- "body": [
- "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.MerchantId = $2; //商户",
- " $1.QrCodeContent = $3; //二维码内容",
- " $1.MachineId = $4; //设备",
- " $1.SnNo = $5; //Sn编号",
- "}"
- ]
- },
- "获取商家收款二维码数量": {
- "prefix": "ym-db-MerchantQrCode-FindAndCount",
- "body": [
- "int $1 = db.MerchantQrCode.Count(m => $2);",
- ]
- },
- "添加商家收款二维码": {
- "prefix": "ym-db-MerchantQrCode-Create",
- "body": [
- "db.MerchantQrCode.Add(new MerchantQrCode()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MerchantId = $1, //商户",
- " QrCodeContent = $2, //二维码内容",
- " MachineId = $3, //设备",
- " SnNo = $4, //Sn编号",
- "});"
- ]
- },"删除某个商家收款二维码": {
- "prefix": "ym-db-MerchantQrCode-Delete",
- "body": [
- "MerchantQrCode $1 = db.MerchantQrCode.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MerchantQrCode.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-MsgBlackList-Find",
- "body": [
- "List<MsgBlackList> $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgBlackList $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询消息黑名单列表,并取值": {
- "prefix": "ym-db-MsgBlackList-FindWithData",
- "body": [
- "List<MsgBlackList> $1 = db.MsgBlackList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgBlackList $3 in $1)",
- "{",
- " string ColId = $3.ColId; //分类",
- " int TemplateId = $3.TemplateId; //模板",
- " string Mobile = $3.Mobile; //手机号",
- " string Ip = $3.Ip; //IP地址",
- " string Reason = $3.Reason; //加入黑名单原因",
- " string Remark = $3.Remark; //注释",
- " string Extend = $3.Extend; //扩展字段",
- "}"
- ]
- },
- "查询消息黑名单": {
- "prefix": "ym-db-MsgBlackList-Exist",
- "body": [
- "bool $1 = db.MsgBlackList.Any(m => m.Id == $2);",
- ]
- },
- "查询某个消息黑名单,并取值": {
- "prefix": "ym-db-MsgBlackList-FindByPrimaryKey",
- "body": [
- "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ColId = $1.ColId; //分类",
- " int TemplateId = $1.TemplateId; //模板",
- " string Mobile = $1.Mobile; //手机号",
- " string Ip = $1.Ip; //IP地址",
- " string Reason = $1.Reason; //加入黑名单原因",
- " string Remark = $1.Remark; //注释",
- " string Extend = $1.Extend; //扩展字段",
- "}"
- ]
- },
- "查询某个消息黑名单,并赋值": {
- "prefix": "ym-db-MsgBlackList-Update",
- "body": [
- "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ColId = $2; //分类",
- " $1.TemplateId = $3; //模板",
- " $1.Mobile = $4; //手机号",
- " $1.Ip = $5; //IP地址",
- " $1.Reason = $6; //加入黑名单原因",
- " $1.Remark = $7; //注释",
- " $1.Extend = $8; //扩展字段",
- "}"
- ]
- },
- "获取消息黑名单数量": {
- "prefix": "ym-db-MsgBlackList-FindAndCount",
- "body": [
- "int $1 = db.MsgBlackList.Count(m => $2);",
- ]
- },
- "添加消息黑名单": {
- "prefix": "ym-db-MsgBlackList-Create",
- "body": [
- "db.MsgBlackList.Add(new MsgBlackList()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ColId = $1, //分类",
- " TemplateId = $2, //模板",
- " Mobile = $3, //手机号",
- " Ip = $4, //IP地址",
- " Reason = $5, //加入黑名单原因",
- " Remark = $6, //注释",
- " Extend = $7, //扩展字段",
- "});"
- ]
- },"删除某个消息黑名单": {
- "prefix": "ym-db-MsgBlackList-Delete",
- "body": [
- "MsgBlackList $1 = db.MsgBlackList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgBlackList.Remove($1);",
- "}"
- ]
- },
- "查询个人消息列表": {
- "prefix": "ym-db-MsgPersonal-Find",
- "body": [
- "List<MsgPersonal> $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPersonal $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询个人消息列表,并取值": {
- "prefix": "ym-db-MsgPersonal-FindWithData",
- "body": [
- "List<MsgPersonal> $1 = db.MsgPersonal.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPersonal $3 in $1)",
- "{",
- " int TemplateId = $3.TemplateId; //模板",
- " int UserId = $3.UserId; //创客",
- " int MsgType = $3.MsgType; //消息类型",
- " string BgPic = $3.BgPic; //背景图片",
- " string Title = $3.Title; //标题",
- " string Content = $3.Content; //内容",
- " string Url = $3.Url; //跳转Url",
- " string Summary = $3.Summary; //简介",
- " int PushFlag = $3.PushFlag; //推送标记",
- " ulong ReadFlag = $3.ReadFlag; //已读标记",
- " string PushParam = $3.PushParam; //推送参数",
- " string ExtendColumn = $3.ExtendColumn; //扩展字段",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询个人消息": {
- "prefix": "ym-db-MsgPersonal-Exist",
- "body": [
- "bool $1 = db.MsgPersonal.Any(m => m.Id == $2);",
- ]
- },
- "查询某个个人消息,并取值": {
- "prefix": "ym-db-MsgPersonal-FindByPrimaryKey",
- "body": [
- "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int TemplateId = $1.TemplateId; //模板",
- " int UserId = $1.UserId; //创客",
- " int MsgType = $1.MsgType; //消息类型",
- " string BgPic = $1.BgPic; //背景图片",
- " string Title = $1.Title; //标题",
- " string Content = $1.Content; //内容",
- " string Url = $1.Url; //跳转Url",
- " string Summary = $1.Summary; //简介",
- " int PushFlag = $1.PushFlag; //推送标记",
- " ulong ReadFlag = $1.ReadFlag; //已读标记",
- " string PushParam = $1.PushParam; //推送参数",
- " string ExtendColumn = $1.ExtendColumn; //扩展字段",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个个人消息,并赋值": {
- "prefix": "ym-db-MsgPersonal-Update",
- "body": [
- "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TemplateId = $2; //模板",
- " $1.UserId = $3; //创客",
- " $1.MsgType = $4; //消息类型",
- " $1.BgPic = $5; //背景图片",
- " $1.Title = $6; //标题",
- " $1.Content = $7; //内容",
- " $1.Url = $8; //跳转Url",
- " $1.Summary = $9; //简介",
- " $1.PushFlag = $10; //推送标记",
- " $1.ReadFlag = $11; //已读标记",
- " $1.PushParam = $12; //推送参数",
- " $1.ExtendColumn = $13; //扩展字段",
- " $1.Remark = $14; //备注",
- "}"
- ]
- },
- "获取个人消息数量": {
- "prefix": "ym-db-MsgPersonal-FindAndCount",
- "body": [
- "int $1 = db.MsgPersonal.Count(m => $2);",
- ]
- },
- "添加个人消息": {
- "prefix": "ym-db-MsgPersonal-Create",
- "body": [
- "db.MsgPersonal.Add(new MsgPersonal()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TemplateId = $1, //模板",
- " UserId = $2, //创客",
- " MsgType = $3, //消息类型",
- " BgPic = $4, //背景图片",
- " Title = $5, //标题",
- " Content = $6, //内容",
- " Url = $7, //跳转Url",
- " Summary = $8, //简介",
- " PushFlag = $9, //推送标记",
- " ReadFlag = $10, //已读标记",
- " PushParam = $11, //推送参数",
- " ExtendColumn = $12, //扩展字段",
- " Remark = $13, //备注",
- "});"
- ]
- },"删除某个个人消息": {
- "prefix": "ym-db-MsgPersonal-Delete",
- "body": [
- "MsgPersonal $1 = db.MsgPersonal.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgPersonal.Remove($1);",
- "}"
- ]
- },
- "查询公告消息列表": {
- "prefix": "ym-db-MsgPlacard-Find",
- "body": [
- "List<MsgPlacard> $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPlacard $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询公告消息列表,并取值": {
- "prefix": "ym-db-MsgPlacard-FindWithData",
- "body": [
- "List<MsgPlacard> $1 = db.MsgPlacard.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPlacard $3 in $1)",
- "{",
- " int MsgType = $3.MsgType; //消息类型",
- " string Title = $3.Title; //标题",
- " string Summary = $3.Summary; //简介",
- " string Content = $3.Content; //内容",
- " ulong IsTop = $3.IsTop; //置顶",
- " int ShowType = $3.ShowType; //展示类型",
- " DateTime EffectStartDate = $3.EffectStartDate; //有效开始时间",
- " DateTime EffectEndDate = $3.EffectEndDate; //有效结束时间",
- " string BgPic = $3.BgPic; //背景图片",
- " int PushType = $3.PushType; //推送类型",
- " int PushFlag = $3.PushFlag; //推送标记",
- " string PushParam = $3.PushParam; //推送参数",
- " DateTime PushTime = $3.PushTime; //推送时间",
- " string ExtendColumn = $3.ExtendColumn; //扩展字段",
- " string Remark = $3.Remark; //备注",
- " string Url = $3.Url; //跳转Url",
- "}"
- ]
- },
- "查询公告消息": {
- "prefix": "ym-db-MsgPlacard-Exist",
- "body": [
- "bool $1 = db.MsgPlacard.Any(m => m.Id == $2);",
- ]
- },
- "查询某个公告消息,并取值": {
- "prefix": "ym-db-MsgPlacard-FindByPrimaryKey",
- "body": [
- "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int MsgType = $1.MsgType; //消息类型",
- " string Title = $1.Title; //标题",
- " string Summary = $1.Summary; //简介",
- " string Content = $1.Content; //内容",
- " ulong IsTop = $1.IsTop; //置顶",
- " int ShowType = $1.ShowType; //展示类型",
- " DateTime EffectStartDate = $1.EffectStartDate; //有效开始时间",
- " DateTime EffectEndDate = $1.EffectEndDate; //有效结束时间",
- " string BgPic = $1.BgPic; //背景图片",
- " int PushType = $1.PushType; //推送类型",
- " int PushFlag = $1.PushFlag; //推送标记",
- " string PushParam = $1.PushParam; //推送参数",
- " DateTime PushTime = $1.PushTime; //推送时间",
- " string ExtendColumn = $1.ExtendColumn; //扩展字段",
- " string Remark = $1.Remark; //备注",
- " string Url = $1.Url; //跳转Url",
- "}"
- ]
- },
- "查询某个公告消息,并赋值": {
- "prefix": "ym-db-MsgPlacard-Update",
- "body": [
- "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.MsgType = $2; //消息类型",
- " $1.Title = $3; //标题",
- " $1.Summary = $4; //简介",
- " $1.Content = $5; //内容",
- " $1.IsTop = $6; //置顶",
- " $1.ShowType = $7; //展示类型",
- " $1.EffectStartDate = $8; //有效开始时间",
- " $1.EffectEndDate = $9; //有效结束时间",
- " $1.BgPic = $10; //背景图片",
- " $1.PushType = $11; //推送类型",
- " $1.PushFlag = $12; //推送标记",
- " $1.PushParam = $13; //推送参数",
- " $1.PushTime = $14; //推送时间",
- " $1.ExtendColumn = $15; //扩展字段",
- " $1.Remark = $16; //备注",
- " $1.Url = $17; //跳转Url",
- "}"
- ]
- },
- "获取公告消息数量": {
- "prefix": "ym-db-MsgPlacard-FindAndCount",
- "body": [
- "int $1 = db.MsgPlacard.Count(m => $2);",
- ]
- },
- "添加公告消息": {
- "prefix": "ym-db-MsgPlacard-Create",
- "body": [
- "db.MsgPlacard.Add(new MsgPlacard()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MsgType = $1, //消息类型",
- " Title = $2, //标题",
- " Summary = $3, //简介",
- " Content = $4, //内容",
- " IsTop = $5, //置顶",
- " ShowType = $6, //展示类型",
- " EffectStartDate = $7, //有效开始时间",
- " EffectEndDate = $8, //有效结束时间",
- " BgPic = $9, //背景图片",
- " PushType = $10, //推送类型",
- " PushFlag = $11, //推送标记",
- " PushParam = $12, //推送参数",
- " PushTime = $13, //推送时间",
- " ExtendColumn = $14, //扩展字段",
- " Remark = $15, //备注",
- " Url = $16, //跳转Url",
- "});"
- ]
- },"删除某个公告消息": {
- "prefix": "ym-db-MsgPlacard-Delete",
- "body": [
- "MsgPlacard $1 = db.MsgPlacard.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgPlacard.Remove($1);",
- "}"
- ]
- },
- "查询公告消息已读记录列表": {
- "prefix": "ym-db-MsgPlacardRead-Find",
- "body": [
- "List<MsgPlacardRead> $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPlacardRead $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询公告消息已读记录列表,并取值": {
- "prefix": "ym-db-MsgPlacardRead-FindWithData",
- "body": [
- "List<MsgPlacardRead> $1 = db.MsgPlacardRead.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPlacardRead $3 in $1)",
- "{",
- " int PlacardId = $3.PlacardId; //公告",
- " string UserId = $3.UserId; //用户ID",
- " ulong ReadFlag = $3.ReadFlag; //已读标记",
- " string Remark = $3.Remark; //备注",
- "}"
- ]
- },
- "查询公告消息已读记录": {
- "prefix": "ym-db-MsgPlacardRead-Exist",
- "body": [
- "bool $1 = db.MsgPlacardRead.Any(m => m.Id == $2);",
- ]
- },
- "查询某个公告消息已读记录,并取值": {
- "prefix": "ym-db-MsgPlacardRead-FindByPrimaryKey",
- "body": [
- "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int PlacardId = $1.PlacardId; //公告",
- " string UserId = $1.UserId; //用户ID",
- " ulong ReadFlag = $1.ReadFlag; //已读标记",
- " string Remark = $1.Remark; //备注",
- "}"
- ]
- },
- "查询某个公告消息已读记录,并赋值": {
- "prefix": "ym-db-MsgPlacardRead-Update",
- "body": [
- "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.PlacardId = $2; //公告",
- " $1.UserId = $3; //用户ID",
- " $1.ReadFlag = $4; //已读标记",
- " $1.Remark = $5; //备注",
- "}"
- ]
- },
- "获取公告消息已读记录数量": {
- "prefix": "ym-db-MsgPlacardRead-FindAndCount",
- "body": [
- "int $1 = db.MsgPlacardRead.Count(m => $2);",
- ]
- },
- "添加公告消息已读记录": {
- "prefix": "ym-db-MsgPlacardRead-Create",
- "body": [
- "db.MsgPlacardRead.Add(new MsgPlacardRead()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " PlacardId = $1, //公告",
- " UserId = $2, //用户ID",
- " ReadFlag = $3, //已读标记",
- " Remark = $4, //备注",
- "});"
- ]
- },"删除某个公告消息已读记录": {
- "prefix": "ym-db-MsgPlacardRead-Delete",
- "body": [
- "MsgPlacardRead $1 = db.MsgPlacardRead.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgPlacardRead.Remove($1);",
- "}"
- ]
- },
- "查询推送消息记录列表": {
- "prefix": "ym-db-MsgPush-Find",
- "body": [
- "List<MsgPush> $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPush $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询推送消息记录列表,并取值": {
- "prefix": "ym-db-MsgPush-FindWithData",
- "body": [
- "List<MsgPush> $1 = db.MsgPush.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgPush $3 in $1)",
- "{",
- " string ClientType = $3.ClientType; //客户端类型",
- " string Url = $3.Url; //链接地址",
- " string Title = $3.Title; //推送标题",
- " string Details = $3.Details; //推送内容",
- " ulong IsSilent = $3.IsSilent; //静音推送",
- " string Devices = $3.Devices; //设备号",
- " int TemplateId = $3.TemplateId; //模板",
- " DateTime AutoPushDate = $3.AutoPushDate; //定时推送时间",
- " string MessageId = $3.MessageId; //推送返回码",
- " string Mobiles = $3.Mobiles; //手机号",
- "}"
- ]
- },
- "查询推送消息记录": {
- "prefix": "ym-db-MsgPush-Exist",
- "body": [
- "bool $1 = db.MsgPush.Any(m => m.Id == $2);",
- ]
- },
- "查询某个推送消息记录,并取值": {
- "prefix": "ym-db-MsgPush-FindByPrimaryKey",
- "body": [
- "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ClientType = $1.ClientType; //客户端类型",
- " string Url = $1.Url; //链接地址",
- " string Title = $1.Title; //推送标题",
- " string Details = $1.Details; //推送内容",
- " ulong IsSilent = $1.IsSilent; //静音推送",
- " string Devices = $1.Devices; //设备号",
- " int TemplateId = $1.TemplateId; //模板",
- " DateTime AutoPushDate = $1.AutoPushDate; //定时推送时间",
- " string MessageId = $1.MessageId; //推送返回码",
- " string Mobiles = $1.Mobiles; //手机号",
- "}"
- ]
- },
- "查询某个推送消息记录,并赋值": {
- "prefix": "ym-db-MsgPush-Update",
- "body": [
- "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ClientType = $2; //客户端类型",
- " $1.Url = $3; //链接地址",
- " $1.Title = $4; //推送标题",
- " $1.Details = $5; //推送内容",
- " $1.IsSilent = $6; //静音推送",
- " $1.Devices = $7; //设备号",
- " $1.TemplateId = $8; //模板",
- " $1.AutoPushDate = $9; //定时推送时间",
- " $1.MessageId = $10; //推送返回码",
- " $1.Mobiles = $11; //手机号",
- "}"
- ]
- },
- "获取推送消息记录数量": {
- "prefix": "ym-db-MsgPush-FindAndCount",
- "body": [
- "int $1 = db.MsgPush.Count(m => $2);",
- ]
- },
- "添加推送消息记录": {
- "prefix": "ym-db-MsgPush-Create",
- "body": [
- "db.MsgPush.Add(new MsgPush()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ClientType = $1, //客户端类型",
- " Url = $2, //链接地址",
- " Title = $3, //推送标题",
- " Details = $4, //推送内容",
- " IsSilent = $5, //静音推送",
- " Devices = $6, //设备号",
- " TemplateId = $7, //模板",
- " AutoPushDate = $8, //定时推送时间",
- " MessageId = $9, //推送返回码",
- " Mobiles = $10, //手机号",
- "});"
- ]
- },"删除某个推送消息记录": {
- "prefix": "ym-db-MsgPush-Delete",
- "body": [
- "MsgPush $1 = db.MsgPush.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgPush.Remove($1);",
- "}"
- ]
- },
- "查询发送短信记录列表": {
- "prefix": "ym-db-MsgSms-Find",
- "body": [
- "List<MsgSms> $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgSms $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询发送短信记录列表,并取值": {
- "prefix": "ym-db-MsgSms-FindWithData",
- "body": [
- "List<MsgSms> $1 = db.MsgSms.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgSms $3 in $1)",
- "{",
- " string ColId = $3.ColId; //分类",
- " int TemplateId = $3.TemplateId; //模板",
- " string Mobile = $3.Mobile; //手机号",
- " string Ip = $3.Ip; //IP地址",
- " int SendType = $3.SendType; //发送类别",
- " int SmsType = $3.SmsType; //短信内容类型",
- " string Content = $3.Content; //内容",
- " string SignName = $3.SignName; //签名",
- " DateTime SendTime = $3.SendTime; //发送时间",
- " string RespContent = $3.RespContent; //返回报文",
- " string RespCode = $3.RespCode; //返回码",
- " string VerifyCode = $3.VerifyCode; //验证码",
- " int ErrorNum = $3.ErrorNum; //错误次数",
- " int VerifyStatus = $3.VerifyStatus; //校验状态",
- " int Code = $3.Code; //业务编号",
- " string Kind = $3.Kind; //短信类型",
- " int SendStatus = $3.SendStatus; //发送状态",
- "}"
- ]
- },
- "查询发送短信记录": {
- "prefix": "ym-db-MsgSms-Exist",
- "body": [
- "bool $1 = db.MsgSms.Any(m => m.Id == $2);",
- ]
- },
- "查询某个发送短信记录,并取值": {
- "prefix": "ym-db-MsgSms-FindByPrimaryKey",
- "body": [
- "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string ColId = $1.ColId; //分类",
- " int TemplateId = $1.TemplateId; //模板",
- " string Mobile = $1.Mobile; //手机号",
- " string Ip = $1.Ip; //IP地址",
- " int SendType = $1.SendType; //发送类别",
- " int SmsType = $1.SmsType; //短信内容类型",
- " string Content = $1.Content; //内容",
- " string SignName = $1.SignName; //签名",
- " DateTime SendTime = $1.SendTime; //发送时间",
- " string RespContent = $1.RespContent; //返回报文",
- " string RespCode = $1.RespCode; //返回码",
- " string VerifyCode = $1.VerifyCode; //验证码",
- " int ErrorNum = $1.ErrorNum; //错误次数",
- " int VerifyStatus = $1.VerifyStatus; //校验状态",
- " int Code = $1.Code; //业务编号",
- " string Kind = $1.Kind; //短信类型",
- " int SendStatus = $1.SendStatus; //发送状态",
- "}"
- ]
- },
- "查询某个发送短信记录,并赋值": {
- "prefix": "ym-db-MsgSms-Update",
- "body": [
- "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ColId = $2; //分类",
- " $1.TemplateId = $3; //模板",
- " $1.Mobile = $4; //手机号",
- " $1.Ip = $5; //IP地址",
- " $1.SendType = $6; //发送类别",
- " $1.SmsType = $7; //短信内容类型",
- " $1.Content = $8; //内容",
- " $1.SignName = $9; //签名",
- " $1.SendTime = $10; //发送时间",
- " $1.RespContent = $11; //返回报文",
- " $1.RespCode = $12; //返回码",
- " $1.VerifyCode = $13; //验证码",
- " $1.ErrorNum = $14; //错误次数",
- " $1.VerifyStatus = $15; //校验状态",
- " $1.Code = $16; //业务编号",
- " $1.Kind = $17; //短信类型",
- " $1.SendStatus = $18; //发送状态",
- "}"
- ]
- },
- "获取发送短信记录数量": {
- "prefix": "ym-db-MsgSms-FindAndCount",
- "body": [
- "int $1 = db.MsgSms.Count(m => $2);",
- ]
- },
- "添加发送短信记录": {
- "prefix": "ym-db-MsgSms-Create",
- "body": [
- "db.MsgSms.Add(new MsgSms()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ColId = $1, //分类",
- " TemplateId = $2, //模板",
- " Mobile = $3, //手机号",
- " Ip = $4, //IP地址",
- " SendType = $5, //发送类别",
- " SmsType = $6, //短信内容类型",
- " Content = $7, //内容",
- " SignName = $8, //签名",
- " SendTime = $9, //发送时间",
- " RespContent = $10, //返回报文",
- " RespCode = $11, //返回码",
- " VerifyCode = $12, //验证码",
- " ErrorNum = $13, //错误次数",
- " VerifyStatus = $14, //校验状态",
- " Code = $15, //业务编号",
- " Kind = $16, //短信类型",
- " SendStatus = $17, //发送状态",
- "});"
- ]
- },"删除某个发送短信记录": {
- "prefix": "ym-db-MsgSms-Delete",
- "body": [
- "MsgSms $1 = db.MsgSms.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgSms.Remove($1);",
- "}"
- ]
- },
- "查询发送短信配置列表": {
- "prefix": "ym-db-MsgSmsSet-Find",
- "body": [
- "List<MsgSmsSet> $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgSmsSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询发送短信配置列表,并取值": {
- "prefix": "ym-db-MsgSmsSet-FindWithData",
- "body": [
- "List<MsgSmsSet> $1 = db.MsgSmsSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgSmsSet $3 in $1)",
- "{",
- " string Name = $3.Name; //渠道名称",
- " string UserName = $3.UserName; //账号",
- " string AuthPwd = $3.AuthPwd; //密码",
- " int SmsType = $3.SmsType; //类别",
- " string ReqUrl = $3.ReqUrl; //请求地址",
- " string Params = $3.Params; //请求参数",
- "}"
- ]
- },
- "查询发送短信配置": {
- "prefix": "ym-db-MsgSmsSet-Exist",
- "body": [
- "bool $1 = db.MsgSmsSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个发送短信配置,并取值": {
- "prefix": "ym-db-MsgSmsSet-FindByPrimaryKey",
- "body": [
- "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //渠道名称",
- " string UserName = $1.UserName; //账号",
- " string AuthPwd = $1.AuthPwd; //密码",
- " int SmsType = $1.SmsType; //类别",
- " string ReqUrl = $1.ReqUrl; //请求地址",
- " string Params = $1.Params; //请求参数",
- "}"
- ]
- },
- "查询某个发送短信配置,并赋值": {
- "prefix": "ym-db-MsgSmsSet-Update",
- "body": [
- "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //渠道名称",
- " $1.UserName = $3; //账号",
- " $1.AuthPwd = $4; //密码",
- " $1.SmsType = $5; //类别",
- " $1.ReqUrl = $6; //请求地址",
- " $1.Params = $7; //请求参数",
- "}"
- ]
- },
- "获取发送短信配置数量": {
- "prefix": "ym-db-MsgSmsSet-FindAndCount",
- "body": [
- "int $1 = db.MsgSmsSet.Count(m => $2);",
- ]
- },
- "添加发送短信配置": {
- "prefix": "ym-db-MsgSmsSet-Create",
- "body": [
- "db.MsgSmsSet.Add(new MsgSmsSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //渠道名称",
- " UserName = $2, //账号",
- " AuthPwd = $3, //密码",
- " SmsType = $4, //类别",
- " ReqUrl = $5, //请求地址",
- " Params = $6, //请求参数",
- "});"
- ]
- },"删除某个发送短信配置": {
- "prefix": "ym-db-MsgSmsSet-Delete",
- "body": [
- "MsgSmsSet $1 = db.MsgSmsSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgSmsSet.Remove($1);",
- "}"
- ]
- },
- "查询消息模板列表": {
- "prefix": "ym-db-MsgTemplate-Find",
- "body": [
- "List<MsgTemplate> $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgTemplate $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询消息模板列表,并取值": {
- "prefix": "ym-db-MsgTemplate-FindWithData",
- "body": [
- "List<MsgTemplate> $1 = db.MsgTemplate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (MsgTemplate $3 in $1)",
- "{",
- " string Title = $3.Title; //标题",
- " string Content = $3.Content; //内容",
- " string ColId = $3.ColId; //分类",
- " int TemplateType = $3.TemplateType; //类型",
- " int MsgType = $3.MsgType; //消息类型",
- " string Remark = $3.Remark; //注释",
- " string Extend = $3.Extend; //扩展字段",
- " string SignName = $3.SignName; //签名",
- "}"
- ]
- },
- "查询消息模板": {
- "prefix": "ym-db-MsgTemplate-Exist",
- "body": [
- "bool $1 = db.MsgTemplate.Any(m => m.Id == $2);",
- ]
- },
- "查询某个消息模板,并取值": {
- "prefix": "ym-db-MsgTemplate-FindByPrimaryKey",
- "body": [
- "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Title = $1.Title; //标题",
- " string Content = $1.Content; //内容",
- " string ColId = $1.ColId; //分类",
- " int TemplateType = $1.TemplateType; //类型",
- " int MsgType = $1.MsgType; //消息类型",
- " string Remark = $1.Remark; //注释",
- " string Extend = $1.Extend; //扩展字段",
- " string SignName = $1.SignName; //签名",
- "}"
- ]
- },
- "查询某个消息模板,并赋值": {
- "prefix": "ym-db-MsgTemplate-Update",
- "body": [
- "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Title = $2; //标题",
- " $1.Content = $3; //内容",
- " $1.ColId = $4; //分类",
- " $1.TemplateType = $5; //类型",
- " $1.MsgType = $6; //消息类型",
- " $1.Remark = $7; //注释",
- " $1.Extend = $8; //扩展字段",
- " $1.SignName = $9; //签名",
- "}"
- ]
- },
- "获取消息模板数量": {
- "prefix": "ym-db-MsgTemplate-FindAndCount",
- "body": [
- "int $1 = db.MsgTemplate.Count(m => $2);",
- ]
- },
- "添加消息模板": {
- "prefix": "ym-db-MsgTemplate-Create",
- "body": [
- "db.MsgTemplate.Add(new MsgTemplate()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Title = $1, //标题",
- " Content = $2, //内容",
- " ColId = $3, //分类",
- " TemplateType = $4, //类型",
- " MsgType = $5, //消息类型",
- " Remark = $6, //注释",
- " Extend = $7, //扩展字段",
- " SignName = $8, //签名",
- "});"
- ]
- },"删除某个消息模板": {
- "prefix": "ym-db-MsgTemplate-Delete",
- "body": [
- "MsgTemplate $1 = db.MsgTemplate.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.MsgTemplate.Remove($1);",
- "}"
- ]
- },
- "查询开户银行省市编码列表": {
- "prefix": "ym-db-OpenBankCityTable-Find",
- "body": [
- "List<OpenBankCityTable> $1 = db.OpenBankCityTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenBankCityTable $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开户银行省市编码列表,并取值": {
- "prefix": "ym-db-OpenBankCityTable-FindWithData",
- "body": [
- "List<OpenBankCityTable> $1 = db.OpenBankCityTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenBankCityTable $3 in $1)",
- "{",
- " string CityName = $3.CityName; //省市",
- " string Code = $3.Code; //编码",
- "}"
- ]
- },
- "查询开户银行省市编码": {
- "prefix": "ym-db-OpenBankCityTable-Exist",
- "body": [
- "bool $1 = db.OpenBankCityTable.Any(m => m.CityName == $2);",
- ]
- },
- "查询某个开户银行省市编码,并取值": {
- "prefix": "ym-db-OpenBankCityTable-FindByPrimaryKey",
- "body": [
- "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);",
- "if ($1 != null)",
- "{",
- " string CityName = $1.CityName; //省市",
- " string Code = $1.Code; //编码",
- "}"
- ]
- },
- "查询某个开户银行省市编码,并赋值": {
- "prefix": "ym-db-OpenBankCityTable-Update",
- "body": [
- "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);",
- "if ($1 != null)",
- "{",
- " $1.CityName = $2; //省市",
- " $1.Code = $3; //编码",
- "}"
- ]
- },
- "获取开户银行省市编码数量": {
- "prefix": "ym-db-OpenBankCityTable-FindAndCount",
- "body": [
- "int $1 = db.OpenBankCityTable.Count(m => $2);",
- ]
- },
- "添加开户银行省市编码": {
- "prefix": "ym-db-OpenBankCityTable-Create",
- "body": [
- "db.OpenBankCityTable.Add(new OpenBankCityTable()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " CityName = $1, //省市",
- " Code = $2, //编码",
- "});"
- ]
- },"删除某个开户银行省市编码": {
- "prefix": "ym-db-OpenBankCityTable-Delete",
- "body": [
- "OpenBankCityTable $1 = db.OpenBankCityTable.FirstOrDefault(m => m.CityName == $2);",
- "if ($1 != null)",
- "{",
- " db.OpenBankCityTable.Remove($1);",
- "}"
- ]
- },
- "查询开户行对照表列表": {
- "prefix": "ym-db-OpenBankTable-Find",
- "body": [
- "List<OpenBankTable> $1 = db.OpenBankTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenBankTable $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询开户行对照表列表,并取值": {
- "prefix": "ym-db-OpenBankTable-FindWithData",
- "body": [
- "List<OpenBankTable> $1 = db.OpenBankTable.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OpenBankTable $3 in $1)",
- "{",
- " string BankName = $3.BankName; //开户行名称",
- " string BankCode = $3.BankCode; //联行号",
- "}"
- ]
- },
- "查询开户行对照表": {
- "prefix": "ym-db-OpenBankTable-Exist",
- "body": [
- "bool $1 = db.OpenBankTable.Any(m => m.BankName == $2);",
- ]
- },
- "查询某个开户行对照表,并取值": {
- "prefix": "ym-db-OpenBankTable-FindByPrimaryKey",
- "body": [
- "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);",
- "if ($1 != null)",
- "{",
- " string BankName = $1.BankName; //开户行名称",
- " string BankCode = $1.BankCode; //联行号",
- "}"
- ]
- },
- "查询某个开户行对照表,并赋值": {
- "prefix": "ym-db-OpenBankTable-Update",
- "body": [
- "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);",
- "if ($1 != null)",
- "{",
- " $1.BankName = $2; //开户行名称",
- " $1.BankCode = $3; //联行号",
- "}"
- ]
- },
- "获取开户行对照表数量": {
- "prefix": "ym-db-OpenBankTable-FindAndCount",
- "body": [
- "int $1 = db.OpenBankTable.Count(m => $2);",
- ]
- },
- "添加开户行对照表": {
- "prefix": "ym-db-OpenBankTable-Create",
- "body": [
- "db.OpenBankTable.Add(new OpenBankTable()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " BankName = $1, //开户行名称",
- " BankCode = $2, //联行号",
- "});"
- ]
- },"删除某个开户行对照表": {
- "prefix": "ym-db-OpenBankTable-Delete",
- "body": [
- "OpenBankTable $1 = db.OpenBankTable.FirstOrDefault(m => m.BankName == $2);",
- "if ($1 != null)",
- "{",
- " db.OpenBankTable.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-OperateLog-Find",
- "body": [
- "List<OperateLog> $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OperateLog $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询操作日志列表,并取值": {
- "prefix": "ym-db-OperateLog-FindWithData",
- "body": [
- "List<OperateLog> $1 = db.OperateLog.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OperateLog $3 in $1)",
- "{",
- " string TableEnName = $3.TableEnName; //表",
- " string OperateMan = $3.OperateMan; //操作员",
- " string BeforeOperate = $3.BeforeOperate; //操作前的数据",
- " string AfterOperate = $3.AfterOperate; //操作后的数据",
- " string OpMode = $3.OpMode; //操作方式",
- "}"
- ]
- },
- "查询操作日志": {
- "prefix": "ym-db-OperateLog-Exist",
- "body": [
- "bool $1 = db.OperateLog.Any(m => m.Id == $2);",
- ]
- },
- "查询某个操作日志,并取值": {
- "prefix": "ym-db-OperateLog-FindByPrimaryKey",
- "body": [
- "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string TableEnName = $1.TableEnName; //表",
- " string OperateMan = $1.OperateMan; //操作员",
- " string BeforeOperate = $1.BeforeOperate; //操作前的数据",
- " string AfterOperate = $1.AfterOperate; //操作后的数据",
- " string OpMode = $1.OpMode; //操作方式",
- "}"
- ]
- },
- "查询某个操作日志,并赋值": {
- "prefix": "ym-db-OperateLog-Update",
- "body": [
- "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.TableEnName = $2; //表",
- " $1.OperateMan = $3; //操作员",
- " $1.BeforeOperate = $4; //操作前的数据",
- " $1.AfterOperate = $5; //操作后的数据",
- " $1.OpMode = $6; //操作方式",
- "}"
- ]
- },
- "获取操作日志数量": {
- "prefix": "ym-db-OperateLog-FindAndCount",
- "body": [
- "int $1 = db.OperateLog.Count(m => $2);",
- ]
- },
- "添加操作日志": {
- "prefix": "ym-db-OperateLog-Create",
- "body": [
- "db.OperateLog.Add(new OperateLog()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " TableEnName = $1, //表",
- " OperateMan = $2, //操作员",
- " BeforeOperate = $3, //操作前的数据",
- " AfterOperate = $4, //操作后的数据",
- " OpMode = $5, //操作方式",
- "});"
- ]
- },"删除某个操作日志": {
- "prefix": "ym-db-OperateLog-Delete",
- "body": [
- "OperateLog $1 = db.OperateLog.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OperateLog.Remove($1);",
- "}"
- ]
- },
- "查询操作权限列表": {
- "prefix": "ym-db-OperateRightList-Find",
- "body": [
- "List<OperateRightList> $1 = db.OperateRightList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OperateRightList $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询操作权限列表,并取值": {
- "prefix": "ym-db-OperateRightList-FindWithData",
- "body": [
- "List<OperateRightList> $1 = db.OperateRightList.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (OperateRightList $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string EnName = $3.EnName; //英文名",
- "}"
- ]
- },
- "查询操作权限": {
- "prefix": "ym-db-OperateRightList-Exist",
- "body": [
- "bool $1 = db.OperateRightList.Any(m => m.Id == $2);",
- ]
- },
- "查询某个操作权限,并取值": {
- "prefix": "ym-db-OperateRightList-FindByPrimaryKey",
- "body": [
- "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string EnName = $1.EnName; //英文名",
- "}"
- ]
- },
- "查询某个操作权限,并赋值": {
- "prefix": "ym-db-OperateRightList-Update",
- "body": [
- "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.EnName = $3; //英文名",
- "}"
- ]
- },
- "获取操作权限数量": {
- "prefix": "ym-db-OperateRightList-FindAndCount",
- "body": [
- "int $1 = db.OperateRightList.Count(m => $2);",
- ]
- },
- "添加操作权限": {
- "prefix": "ym-db-OperateRightList-Create",
- "body": [
- "db.OperateRightList.Add(new OperateRightList()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " EnName = $2, //英文名",
- "});"
- ]
- },"删除某个操作权限": {
- "prefix": "ym-db-OperateRightList-Delete",
- "body": [
- "OperateRightList $1 = db.OperateRightList.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.OperateRightList.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-PageInfo-Find",
- "body": [
- "List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PageInfo $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询单页内容列表,并取值": {
- "prefix": "ym-db-PageInfo-FindWithData",
- "body": [
- "List<PageInfo> $1 = db.PageInfo.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PageInfo $3 in $1)",
- "{",
- " string Title = $3.Title; //标题",
- " string ColId = $3.ColId; //分类",
- " string Contents = $3.Contents; //内容",
- "}"
- ]
- },
- "查询单页内容": {
- "prefix": "ym-db-PageInfo-Exist",
- "body": [
- "bool $1 = db.PageInfo.Any(m => m.Id == $2);",
- ]
- },
- "查询某个单页内容,并取值": {
- "prefix": "ym-db-PageInfo-FindByPrimaryKey",
- "body": [
- "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Title = $1.Title; //标题",
- " string ColId = $1.ColId; //分类",
- " string Contents = $1.Contents; //内容",
- "}"
- ]
- },
- "查询某个单页内容,并赋值": {
- "prefix": "ym-db-PageInfo-Update",
- "body": [
- "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Title = $2; //标题",
- " $1.ColId = $3; //分类",
- " $1.Contents = $4; //内容",
- "}"
- ]
- },
- "获取单页内容数量": {
- "prefix": "ym-db-PageInfo-FindAndCount",
- "body": [
- "int $1 = db.PageInfo.Count(m => $2);",
- ]
- },
- "添加单页内容": {
- "prefix": "ym-db-PageInfo-Create",
- "body": [
- "db.PageInfo.Add(new PageInfo()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Title = $1, //标题",
- " ColId = $2, //分类",
- " Contents = $3, //内容",
- "});"
- ]
- },"删除某个单页内容": {
- "prefix": "ym-db-PageInfo-Delete",
- "body": [
- "PageInfo $1 = db.PageInfo.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.PageInfo.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; //设备类型",
- " string BatchNo = $3.BatchNo; //业务批次号",
- " string DeviceName = $3.DeviceName; //设备厂商",
- " string DeviceKind = $3.DeviceKind; //设备型号",
- " DateTime RecycEndDate = $3.RecycEndDate; //循环截止时间",
- " int OrderId = $3.OrderId; //订单Id",
- " int SourceStoreId = $3.SourceStoreId; //源仓库",
- "}"
- ]
- },
- "查询机具库": {
- "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; //设备类型",
- " string BatchNo = $1.BatchNo; //业务批次号",
- " string DeviceName = $1.DeviceName; //设备厂商",
- " string DeviceKind = $1.DeviceKind; //设备型号",
- " DateTime RecycEndDate = $1.RecycEndDate; //循环截止时间",
- " int OrderId = $1.OrderId; //订单Id",
- " int SourceStoreId = $1.SourceStoreId; //源仓库",
- "}"
- ]
- },
- "查询某个机具库,并赋值": {
- "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; //设备类型",
- " $1.BatchNo = $25; //业务批次号",
- " $1.DeviceName = $26; //设备厂商",
- " $1.DeviceKind = $27; //设备型号",
- " $1.RecycEndDate = $28; //循环截止时间",
- " $1.OrderId = $29; //订单Id",
- " $1.SourceStoreId = $30; //源仓库",
- "}"
- ]
- },
- "获取机具库数量": {
- "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, //设备类型",
- " BatchNo = $24, //业务批次号",
- " DeviceName = $25, //设备厂商",
- " DeviceKind = $26, //设备型号",
- " RecycEndDate = $27, //循环截止时间",
- " OrderId = $28, //订单Id",
- " SourceStoreId = $29, //源仓库",
- "});"
- ]
- },"删除某个机具库": {
- "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",
- " decimal ProfitNumber = $3.ProfitNumber; //获得收益值",
- " int MachineCount = $3.MachineCount; //赠机台数",
- " DateTime StartDate = $3.StartDate; //开始时间",
- " DateTime EndDate = $3.EndDate; //结束时间",
- " string Code = $3.Code; //编码",
- "}"
- ]
- },
- "查询激活奖励设置": {
- "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",
- " decimal ProfitNumber = $1.ProfitNumber; //获得收益值",
- " int MachineCount = $1.MachineCount; //赠机台数",
- " DateTime StartDate = $1.StartDate; //开始时间",
- " DateTime EndDate = $1.EndDate; //结束时间",
- " string Code = $1.Code; //编码",
- "}"
- ]
- },
- "查询某个激活奖励设置,并赋值": {
- "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",
- " $1.ProfitNumber = $7; //获得收益值",
- " $1.MachineCount = $8; //赠机台数",
- " $1.StartDate = $9; //开始时间",
- " $1.EndDate = $10; //结束时间",
- " $1.Code = $11; //编码",
- "}"
- ]
- },
- "获取激活奖励设置数量": {
- "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",
- " ProfitNumber = $6, //获得收益值",
- " MachineCount = $7, //赠机台数",
- " StartDate = $8, //开始时间",
- " EndDate = $9, //结束时间",
- " Code = $10, //编码",
- "});"
- ]
- },"删除某个激活奖励设置": {
- "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; //赠机台数",
- " int CardType = $3.CardType; //卡类型",
- " decimal ProfitNumber2 = $3.ProfitNumber2; //获得收益值2",
- " string Code = $3.Code; //编号",
- "}"
- ]
- },
- "查询分润对象活动奖": {
- "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; //赠机台数",
- " int CardType = $1.CardType; //卡类型",
- " decimal ProfitNumber2 = $1.ProfitNumber2; //获得收益值2",
- " string Code = $1.Code; //编号",
- "}"
- ]
- },
- "查询某个分润对象活动奖,并赋值": {
- "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; //赠机台数",
- " $1.CardType = $12; //卡类型",
- " $1.ProfitNumber2 = $13; //获得收益值2",
- " $1.Code = $14; //编号",
- "}"
- ]
- },
- "获取分润对象活动奖数量": {
- "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, //赠机台数",
- " CardType = $11, //卡类型",
- " ProfitNumber2 = $12, //获得收益值2",
- " Code = $13, //编号",
- "});"
- ]
- },"删除某个分润对象活动奖": {
- "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-ProfitObjectsRule-Find",
- "body": [
- "List<ProfitObjectsRule> $1 = db.ProfitObjectsRule.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsRule $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象规则列表,并取值": {
- "prefix": "ym-db-ProfitObjectsRule-FindWithData",
- "body": [
- "List<ProfitObjectsRule> $1 = db.ProfitObjectsRule.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsRule $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " int ObjectId = $3.ObjectId; //对象Id",
- " DateTime StartDate = $3.StartDate; //活动开始时间",
- " DateTime EndDate = $3.EndDate; //活动结束时间",
- " string Code = $3.Code; //编号",
- "}"
- ]
- },
- "查询分润对象规则": {
- "prefix": "ym-db-ProfitObjectsRule-Exist",
- "body": [
- "bool $1 = db.ProfitObjectsRule.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象规则,并取值": {
- "prefix": "ym-db-ProfitObjectsRule-FindByPrimaryKey",
- "body": [
- "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " int ObjectId = $1.ObjectId; //对象Id",
- " DateTime StartDate = $1.StartDate; //活动开始时间",
- " DateTime EndDate = $1.EndDate; //活动结束时间",
- " string Code = $1.Code; //编号",
- "}"
- ]
- },
- "查询某个分润对象规则,并赋值": {
- "prefix": "ym-db-ProfitObjectsRule-Update",
- "body": [
- "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.ObjectId = $3; //对象Id",
- " $1.StartDate = $4; //活动开始时间",
- " $1.EndDate = $5; //活动结束时间",
- " $1.Code = $6; //编号",
- "}"
- ]
- },
- "获取分润对象规则数量": {
- "prefix": "ym-db-ProfitObjectsRule-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectsRule.Count(m => $2);",
- ]
- },
- "添加分润对象规则": {
- "prefix": "ym-db-ProfitObjectsRule-Create",
- "body": [
- "db.ProfitObjectsRule.Add(new ProfitObjectsRule()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " ObjectId = $2, //对象Id",
- " StartDate = $3, //活动开始时间",
- " EndDate = $4, //活动结束时间",
- " Code = $5, //编号",
- "});"
- ]
- },"删除某个分润对象规则": {
- "prefix": "ym-db-ProfitObjectsRule-Delete",
- "body": [
- "ProfitObjectsRule $1 = db.ProfitObjectsRule.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectsRule.Remove($1);",
- "}"
- ]
- },
- "查询分润对象规则配置明细列表": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-Find",
- "body": [
- "List<ProfitObjectsRuleDetails> $1 = db.ProfitObjectsRuleDetails.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsRuleDetails $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润对象规则配置明细列表,并取值": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-FindWithData",
- "body": [
- "List<ProfitObjectsRuleDetails> $1 = db.ProfitObjectsRuleDetails.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitObjectsRuleDetails $3 in $1)",
- "{",
- " int RuleId = $3.RuleId; //所属规则",
- " string Name = $3.Name; //名称",
- " string Code = $3.Code; //编号",
- " string DataValue = $3.DataValue; //设置值",
- "}"
- ]
- },
- "查询分润对象规则配置明细": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-Exist",
- "body": [
- "bool $1 = db.ProfitObjectsRuleDetails.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润对象规则配置明细,并取值": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-FindByPrimaryKey",
- "body": [
- "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int RuleId = $1.RuleId; //所属规则",
- " string Name = $1.Name; //名称",
- " string Code = $1.Code; //编号",
- " string DataValue = $1.DataValue; //设置值",
- "}"
- ]
- },
- "查询某个分润对象规则配置明细,并赋值": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-Update",
- "body": [
- "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.RuleId = $2; //所属规则",
- " $1.Name = $3; //名称",
- " $1.Code = $4; //编号",
- " $1.DataValue = $5; //设置值",
- "}"
- ]
- },
- "获取分润对象规则配置明细数量": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-FindAndCount",
- "body": [
- "int $1 = db.ProfitObjectsRuleDetails.Count(m => $2);",
- ]
- },
- "添加分润对象规则配置明细": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-Create",
- "body": [
- "db.ProfitObjectsRuleDetails.Add(new ProfitObjectsRuleDetails()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " RuleId = $1, //所属规则",
- " Name = $2, //名称",
- " Code = $3, //编号",
- " DataValue = $4, //设置值",
- "});"
- ]
- },"删除某个分润对象规则配置明细": {
- "prefix": "ym-db-ProfitObjectsRuleDetails-Delete",
- "body": [
- "ProfitObjectsRuleDetails $1 = db.ProfitObjectsRuleDetails.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitObjectsRuleDetails.Remove($1);",
- "}"
- ]
- },
- "查询分账记录列表": {
- "prefix": "ym-db-ProfitReceiveRecord-Find",
- "body": [
- "List<ProfitReceiveRecord> $1 = db.ProfitReceiveRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitReceiveRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分账记录列表,并取值": {
- "prefix": "ym-db-ProfitReceiveRecord-FindWithData",
- "body": [
- "List<ProfitReceiveRecord> $1 = db.ProfitReceiveRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitReceiveRecord $3 in $1)",
- "{",
- " int MerchantId = $3.MerchantId; //商户",
- " string SubMchid = $3.SubMchid; //子商户号",
- " string AppId = $3.AppId; //应用ID",
- " string SubAppId = $3.SubAppId; //子商户应用ID",
- " string Type = $3.Type; //分账接收方类型",
- " string Account = $3.Account; //分账接收方账号",
- " string Name = $3.Name; //分账个人接收方姓名",
- " string RelationType = $3.RelationType; //与分账方的关系类型",
- " string CustomRelation = $3.CustomRelation; //自定义的分账关系",
- " string TransactionId = $3.TransactionId; //微信订单号",
- " string OutOrderNo = $3.OutOrderNo; //商户分账单号",
- " decimal Amount = $3.Amount; //分账金额",
- " string Description = $3.Description; //分账描述",
- " ulong UnfreezeUnsplit = $3.UnfreezeUnsplit; //是否解冻剩余未分资金",
- " string OrderId = $3.OrderId; //微信分账单号",
- " string State = $3.State; //分账单状态",
- "}"
- ]
- },
- "查询分账记录": {
- "prefix": "ym-db-ProfitReceiveRecord-Exist",
- "body": [
- "bool $1 = db.ProfitReceiveRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分账记录,并取值": {
- "prefix": "ym-db-ProfitReceiveRecord-FindByPrimaryKey",
- "body": [
- "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int MerchantId = $1.MerchantId; //商户",
- " string SubMchid = $1.SubMchid; //子商户号",
- " string AppId = $1.AppId; //应用ID",
- " string SubAppId = $1.SubAppId; //子商户应用ID",
- " string Type = $1.Type; //分账接收方类型",
- " string Account = $1.Account; //分账接收方账号",
- " string Name = $1.Name; //分账个人接收方姓名",
- " string RelationType = $1.RelationType; //与分账方的关系类型",
- " string CustomRelation = $1.CustomRelation; //自定义的分账关系",
- " string TransactionId = $1.TransactionId; //微信订单号",
- " string OutOrderNo = $1.OutOrderNo; //商户分账单号",
- " decimal Amount = $1.Amount; //分账金额",
- " string Description = $1.Description; //分账描述",
- " ulong UnfreezeUnsplit = $1.UnfreezeUnsplit; //是否解冻剩余未分资金",
- " string OrderId = $1.OrderId; //微信分账单号",
- " string State = $1.State; //分账单状态",
- "}"
- ]
- },
- "查询某个分账记录,并赋值": {
- "prefix": "ym-db-ProfitReceiveRecord-Update",
- "body": [
- "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.MerchantId = $2; //商户",
- " $1.SubMchid = $3; //子商户号",
- " $1.AppId = $4; //应用ID",
- " $1.SubAppId = $5; //子商户应用ID",
- " $1.Type = $6; //分账接收方类型",
- " $1.Account = $7; //分账接收方账号",
- " $1.Name = $8; //分账个人接收方姓名",
- " $1.RelationType = $9; //与分账方的关系类型",
- " $1.CustomRelation = $10; //自定义的分账关系",
- " $1.TransactionId = $11; //微信订单号",
- " $1.OutOrderNo = $12; //商户分账单号",
- " $1.Amount = $13; //分账金额",
- " $1.Description = $14; //分账描述",
- " $1.UnfreezeUnsplit = $15; //是否解冻剩余未分资金",
- " $1.OrderId = $16; //微信分账单号",
- " $1.State = $17; //分账单状态",
- "}"
- ]
- },
- "获取分账记录数量": {
- "prefix": "ym-db-ProfitReceiveRecord-FindAndCount",
- "body": [
- "int $1 = db.ProfitReceiveRecord.Count(m => $2);",
- ]
- },
- "添加分账记录": {
- "prefix": "ym-db-ProfitReceiveRecord-Create",
- "body": [
- "db.ProfitReceiveRecord.Add(new ProfitReceiveRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MerchantId = $1, //商户",
- " SubMchid = $2, //子商户号",
- " AppId = $3, //应用ID",
- " SubAppId = $4, //子商户应用ID",
- " Type = $5, //分账接收方类型",
- " Account = $6, //分账接收方账号",
- " Name = $7, //分账个人接收方姓名",
- " RelationType = $8, //与分账方的关系类型",
- " CustomRelation = $9, //自定义的分账关系",
- " TransactionId = $10, //微信订单号",
- " OutOrderNo = $11, //商户分账单号",
- " Amount = $12, //分账金额",
- " Description = $13, //分账描述",
- " UnfreezeUnsplit = $14, //是否解冻剩余未分资金",
- " OrderId = $15, //微信分账单号",
- " State = $16, //分账单状态",
- "});"
- ]
- },"删除某个分账记录": {
- "prefix": "ym-db-ProfitReceiveRecord-Delete",
- "body": [
- "ProfitReceiveRecord $1 = db.ProfitReceiveRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitReceiveRecord.Remove($1);",
- "}"
- ]
- },
- "查询分账接收方列表": {
- "prefix": "ym-db-ProfitReceives-Find",
- "body": [
- "List<ProfitReceives> $1 = db.ProfitReceives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitReceives $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分账接收方列表,并取值": {
- "prefix": "ym-db-ProfitReceives-FindWithData",
- "body": [
- "List<ProfitReceives> $1 = db.ProfitReceives.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitReceives $3 in $1)",
- "{",
- " int MerchantId = $3.MerchantId; //商户",
- " string SubMchid = $3.SubMchid; //子商户号",
- " string AppId = $3.AppId; //应用ID",
- " string SubAppId = $3.SubAppId; //子商户应用ID",
- " string Type = $3.Type; //分账接收方类型",
- " string Account = $3.Account; //分账接收方账号",
- " string Name = $3.Name; //分账个人接收方姓名",
- " string RelationType = $3.RelationType; //与分账方的关系类型",
- " string CustomRelation = $3.CustomRelation; //自定义的分账关系",
- "}"
- ]
- },
- "查询分账接收方": {
- "prefix": "ym-db-ProfitReceives-Exist",
- "body": [
- "bool $1 = db.ProfitReceives.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分账接收方,并取值": {
- "prefix": "ym-db-ProfitReceives-FindByPrimaryKey",
- "body": [
- "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int MerchantId = $1.MerchantId; //商户",
- " string SubMchid = $1.SubMchid; //子商户号",
- " string AppId = $1.AppId; //应用ID",
- " string SubAppId = $1.SubAppId; //子商户应用ID",
- " string Type = $1.Type; //分账接收方类型",
- " string Account = $1.Account; //分账接收方账号",
- " string Name = $1.Name; //分账个人接收方姓名",
- " string RelationType = $1.RelationType; //与分账方的关系类型",
- " string CustomRelation = $1.CustomRelation; //自定义的分账关系",
- "}"
- ]
- },
- "查询某个分账接收方,并赋值": {
- "prefix": "ym-db-ProfitReceives-Update",
- "body": [
- "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.MerchantId = $2; //商户",
- " $1.SubMchid = $3; //子商户号",
- " $1.AppId = $4; //应用ID",
- " $1.SubAppId = $5; //子商户应用ID",
- " $1.Type = $6; //分账接收方类型",
- " $1.Account = $7; //分账接收方账号",
- " $1.Name = $8; //分账个人接收方姓名",
- " $1.RelationType = $9; //与分账方的关系类型",
- " $1.CustomRelation = $10; //自定义的分账关系",
- "}"
- ]
- },
- "获取分账接收方数量": {
- "prefix": "ym-db-ProfitReceives-FindAndCount",
- "body": [
- "int $1 = db.ProfitReceives.Count(m => $2);",
- ]
- },
- "添加分账接收方": {
- "prefix": "ym-db-ProfitReceives-Create",
- "body": [
- "db.ProfitReceives.Add(new ProfitReceives()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " MerchantId = $1, //商户",
- " SubMchid = $2, //子商户号",
- " AppId = $3, //应用ID",
- " SubAppId = $4, //子商户应用ID",
- " Type = $5, //分账接收方类型",
- " Account = $6, //分账接收方账号",
- " Name = $7, //分账个人接收方姓名",
- " RelationType = $8, //与分账方的关系类型",
- " CustomRelation = $9, //自定义的分账关系",
- "});"
- ]
- },"删除某个分账接收方": {
- "prefix": "ym-db-ProfitReceives-Delete",
- "body": [
- "ProfitReceives $1 = db.ProfitReceives.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitReceives.Remove($1);",
- "}"
- ]
- },
- "查询分润记录列表": {
- "prefix": "ym-db-ProfitRecord-Find",
- "body": [
- "List<ProfitRecord> $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询分润记录列表,并取值": {
- "prefix": "ym-db-ProfitRecord-FindWithData",
- "body": [
- "List<ProfitRecord> $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (ProfitRecord $3 in $1)",
- "{",
- " 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; //清算日期",
- " decimal ProfitAmount = $3.ProfitAmount; //分润金额",
- " int QrPayFlag = $3.QrPayFlag; //云闪付标识",
- " int CapFlag = $3.CapFlag; //借记卡封顶交易标志",
- " ulong DirectFlag = $3.DirectFlag; //是否直营",
- " int BrandId = $3.BrandId; //品牌",
- " string Remark = $3.Remark; //备注",
- " string ParentNav = $3.ParentNav; //上级创客集",
- " int TradeId = $3.TradeId; //交易记录Id",
- "}"
- ]
- },
- "查询分润记录": {
- "prefix": "ym-db-ProfitRecord-Exist",
- "body": [
- "bool $1 = db.ProfitRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个分润记录,并取值": {
- "prefix": "ym-db-ProfitRecord-FindByPrimaryKey",
- "body": [
- "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " 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; //清算日期",
- " decimal ProfitAmount = $1.ProfitAmount; //分润金额",
- " int QrPayFlag = $1.QrPayFlag; //云闪付标识",
- " int CapFlag = $1.CapFlag; //借记卡封顶交易标志",
- " ulong DirectFlag = $1.DirectFlag; //是否直营",
- " int BrandId = $1.BrandId; //品牌",
- " string Remark = $1.Remark; //备注",
- " string ParentNav = $1.ParentNav; //上级创客集",
- " int TradeId = $1.TradeId; //交易记录Id",
- "}"
- ]
- },
- "查询某个分润记录,并赋值": {
- "prefix": "ym-db-ProfitRecord-Update",
- "body": [
- "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.UserId = $2; //创客",
- " $1.MerchantId = $3; //商户",
- " $1.MerNo = $4; //渠道商户编号",
- " $1.MerHelpFlag = $5; //是否属于扶持周期内商户",
- " $1.HelpMonthCount = $6; //扶持第几个月",
- " $1.MerBuddyType = $7; //商户创客类型",
- " $1.SnNo = $8; //SN号",
- " $1.TradeDate = $9; //交易日期",
- " $1.ClearDate = $10; //清算日期",
- " $1.ProfitAmount = $11; //分润金额",
- " $1.QrPayFlag = $12; //云闪付标识",
- " $1.CapFlag = $13; //借记卡封顶交易标志",
- " $1.DirectFlag = $14; //是否直营",
- " $1.BrandId = $15; //品牌",
- " $1.Remark = $16; //备注",
- " $1.ParentNav = $17; //上级创客集",
- " $1.TradeId = $18; //交易记录Id",
- "}"
- ]
- },
- "获取分润记录数量": {
- "prefix": "ym-db-ProfitRecord-FindAndCount",
- "body": [
- "int $1 = db.ProfitRecord.Count(m => $2);",
- ]
- },
- "添加分润记录": {
- "prefix": "ym-db-ProfitRecord-Create",
- "body": [
- "db.ProfitRecord.Add(new ProfitRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " UserId = $1, //创客",
- " MerchantId = $2, //商户",
- " MerNo = $3, //渠道商户编号",
- " MerHelpFlag = $4, //是否属于扶持周期内商户",
- " HelpMonthCount = $5, //扶持第几个月",
- " MerBuddyType = $6, //商户创客类型",
- " SnNo = $7, //SN号",
- " TradeDate = $8, //交易日期",
- " ClearDate = $9, //清算日期",
- " ProfitAmount = $10, //分润金额",
- " QrPayFlag = $11, //云闪付标识",
- " CapFlag = $12, //借记卡封顶交易标志",
- " DirectFlag = $13, //是否直营",
- " BrandId = $14, //品牌",
- " Remark = $15, //备注",
- " ParentNav = $16, //上级创客集",
- " TradeId = $17, //交易记录Id",
- "});"
- ]
- },"删除某个分润记录": {
- "prefix": "ym-db-ProfitRecord-Delete",
- "body": [
- "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.ProfitRecord.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-PublicAccountSet-Find",
- "body": [
- "List<PublicAccountSet> $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PublicAccountSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询第三方平台设置列表,并取值": {
- "prefix": "ym-db-PublicAccountSet-FindWithData",
- "body": [
- "List<PublicAccountSet> $1 = db.PublicAccountSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (PublicAccountSet $3 in $1)",
- "{",
- " int Id = $3.Id; //Id",
- " string AlipayAppId = $3.AlipayAppId; //支付宝AppId",
- " string AlipayPartnerId = $3.AlipayPartnerId; //支付宝合作者Id",
- " string AlipayPrivateKey = $3.AlipayPrivateKey; //支付宝私钥",
- " string AlipayPublicKey = $3.AlipayPublicKey; //支付宝公钥",
- " string WeChatAppId = $3.WeChatAppId; //微信公众号AppId",
- " string WeChatAppSecret = $3.WeChatAppSecret; //微信公众号AppSecret",
- " string WeChatMchId = $3.WeChatMchId; //微信商户号",
- " string WeChatPayKey = $3.WeChatPayKey; //微信支付密钥",
- " string WeChatOpenAppId = $3.WeChatOpenAppId; //微信开放平台AppId",
- " string WeChatOpenAppSecret = $3.WeChatOpenAppSecret; //微信开放平台AppSecret",
- " string ServerIp = $3.ServerIp; //服务器IP",
- " string WeChatMiniAppId = $3.WeChatMiniAppId; //微信小程序AppId",
- " string WeChatMiniAppSecret = $3.WeChatMiniAppSecret; //微信小程序AppSecret",
- " string QqAndroidAppId = $3.QqAndroidAppId; //QQ安卓AppId",
- " string QqAndroidAppKey = $3.QqAndroidAppKey; //QQ安卓AppKey",
- " string QqIosAppId = $3.QqIosAppId; //QQIOSAppId",
- " string QqIosAppKey = $3.QqIosAppKey; //QQIOSAppKey",
- " string AliyunAccessKeyId = $3.AliyunAccessKeyId; //阿里云AccessKeyID",
- " string AliyunAccessKeySecret = $3.AliyunAccessKeySecret; //阿里云AccessKeySecret",
- " string AliyunPushAndroidAppId = $3.AliyunPushAndroidAppId; //阿里云推送安卓AppId",
- " string AliyunPushAndroidAppSecret = $3.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret",
- " string AliyunPushIosAppId = $3.AliyunPushIosAppId; //阿里云推送IOSAppId",
- " string AliyunPushIosAppSecret = $3.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret",
- " string MobAppKey = $3.MobAppKey; //MobAppKey",
- " string MobAppSecret = $3.MobAppSecret; //MobAppSecret",
- " string MeiQiaAppKey = $3.MeiQiaAppKey; //美洽AppKey",
- " string ErpApiUrl = $3.ErpApiUrl; //请求地址",
- " string ErpAppCode = $3.ErpAppCode; //AppCode",
- " string SmsApiPwd = $3.SmsApiPwd; //密码",
- " string SmsApiSign = $3.SmsApiSign; //签名",
- " string SmsApiUserId = $3.SmsApiUserId; //账号",
- " string SmsApiDefaultTemplate = $3.SmsApiDefaultTemplate; //默认验证码模板",
- " string AliyunRegionId = $3.AliyunRegionId; //阿里云服务器别名",
- " string AliyunAndroidNotifyTitle = $3.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题",
- " string AliyunAndroidActivity = $3.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity",
- "}"
- ]
- },
- "查询第三方平台设置": {
- "prefix": "ym-db-PublicAccountSet-Exist",
- "body": [
- "bool $1 = db.PublicAccountSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个第三方平台设置,并取值": {
- "prefix": "ym-db-PublicAccountSet-FindByPrimaryKey",
- "body": [
- "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int Id = $1.Id; //Id",
- " string AlipayAppId = $1.AlipayAppId; //支付宝AppId",
- " string AlipayPartnerId = $1.AlipayPartnerId; //支付宝合作者Id",
- " string AlipayPrivateKey = $1.AlipayPrivateKey; //支付宝私钥",
- " string AlipayPublicKey = $1.AlipayPublicKey; //支付宝公钥",
- " string WeChatAppId = $1.WeChatAppId; //微信公众号AppId",
- " string WeChatAppSecret = $1.WeChatAppSecret; //微信公众号AppSecret",
- " string WeChatMchId = $1.WeChatMchId; //微信商户号",
- " string WeChatPayKey = $1.WeChatPayKey; //微信支付密钥",
- " string WeChatOpenAppId = $1.WeChatOpenAppId; //微信开放平台AppId",
- " string WeChatOpenAppSecret = $1.WeChatOpenAppSecret; //微信开放平台AppSecret",
- " string ServerIp = $1.ServerIp; //服务器IP",
- " string WeChatMiniAppId = $1.WeChatMiniAppId; //微信小程序AppId",
- " string WeChatMiniAppSecret = $1.WeChatMiniAppSecret; //微信小程序AppSecret",
- " string QqAndroidAppId = $1.QqAndroidAppId; //QQ安卓AppId",
- " string QqAndroidAppKey = $1.QqAndroidAppKey; //QQ安卓AppKey",
- " string QqIosAppId = $1.QqIosAppId; //QQIOSAppId",
- " string QqIosAppKey = $1.QqIosAppKey; //QQIOSAppKey",
- " string AliyunAccessKeyId = $1.AliyunAccessKeyId; //阿里云AccessKeyID",
- " string AliyunAccessKeySecret = $1.AliyunAccessKeySecret; //阿里云AccessKeySecret",
- " string AliyunPushAndroidAppId = $1.AliyunPushAndroidAppId; //阿里云推送安卓AppId",
- " string AliyunPushAndroidAppSecret = $1.AliyunPushAndroidAppSecret; //阿里云推送安卓AppSecret",
- " string AliyunPushIosAppId = $1.AliyunPushIosAppId; //阿里云推送IOSAppId",
- " string AliyunPushIosAppSecret = $1.AliyunPushIosAppSecret; //阿里云推送IOSAppSecret",
- " string MobAppKey = $1.MobAppKey; //MobAppKey",
- " string MobAppSecret = $1.MobAppSecret; //MobAppSecret",
- " string MeiQiaAppKey = $1.MeiQiaAppKey; //美洽AppKey",
- " string ErpApiUrl = $1.ErpApiUrl; //请求地址",
- " string ErpAppCode = $1.ErpAppCode; //AppCode",
- " string SmsApiPwd = $1.SmsApiPwd; //密码",
- " string SmsApiSign = $1.SmsApiSign; //签名",
- " string SmsApiUserId = $1.SmsApiUserId; //账号",
- " string SmsApiDefaultTemplate = $1.SmsApiDefaultTemplate; //默认验证码模板",
- " string AliyunRegionId = $1.AliyunRegionId; //阿里云服务器别名",
- " string AliyunAndroidNotifyTitle = $1.AliyunAndroidNotifyTitle; //阿里云安卓弹窗标题",
- " string AliyunAndroidActivity = $1.AliyunAndroidActivity; //阿里云点击通知后跳转的Activity",
- "}"
- ]
- },
- "查询某个第三方平台设置,并赋值": {
- "prefix": "ym-db-PublicAccountSet-Update",
- "body": [
- "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Id = $2; //Id",
- " $1.AlipayAppId = $3; //支付宝AppId",
- " $1.AlipayPartnerId = $4; //支付宝合作者Id",
- " $1.AlipayPrivateKey = $5; //支付宝私钥",
- " $1.AlipayPublicKey = $6; //支付宝公钥",
- " $1.WeChatAppId = $7; //微信公众号AppId",
- " $1.WeChatAppSecret = $8; //微信公众号AppSecret",
- " $1.WeChatMchId = $9; //微信商户号",
- " $1.WeChatPayKey = $10; //微信支付密钥",
- " $1.WeChatOpenAppId = $11; //微信开放平台AppId",
- " $1.WeChatOpenAppSecret = $12; //微信开放平台AppSecret",
- " $1.ServerIp = $13; //服务器IP",
- " $1.WeChatMiniAppId = $14; //微信小程序AppId",
- " $1.WeChatMiniAppSecret = $15; //微信小程序AppSecret",
- " $1.QqAndroidAppId = $16; //QQ安卓AppId",
- " $1.QqAndroidAppKey = $17; //QQ安卓AppKey",
- " $1.QqIosAppId = $18; //QQIOSAppId",
- " $1.QqIosAppKey = $19; //QQIOSAppKey",
- " $1.AliyunAccessKeyId = $20; //阿里云AccessKeyID",
- " $1.AliyunAccessKeySecret = $21; //阿里云AccessKeySecret",
- " $1.AliyunPushAndroidAppId = $22; //阿里云推送安卓AppId",
- " $1.AliyunPushAndroidAppSecret = $23; //阿里云推送安卓AppSecret",
- " $1.AliyunPushIosAppId = $24; //阿里云推送IOSAppId",
- " $1.AliyunPushIosAppSecret = $25; //阿里云推送IOSAppSecret",
- " $1.MobAppKey = $26; //MobAppKey",
- " $1.MobAppSecret = $27; //MobAppSecret",
- " $1.MeiQiaAppKey = $28; //美洽AppKey",
- " $1.ErpApiUrl = $29; //请求地址",
- " $1.ErpAppCode = $30; //AppCode",
- " $1.SmsApiPwd = $31; //密码",
- " $1.SmsApiSign = $32; //签名",
- " $1.SmsApiUserId = $33; //账号",
- " $1.SmsApiDefaultTemplate = $34; //默认验证码模板",
- " $1.AliyunRegionId = $35; //阿里云服务器别名",
- " $1.AliyunAndroidNotifyTitle = $36; //阿里云安卓弹窗标题",
- " $1.AliyunAndroidActivity = $37; //阿里云点击通知后跳转的Activity",
- "}"
- ]
- },
- "获取第三方平台设置数量": {
- "prefix": "ym-db-PublicAccountSet-FindAndCount",
- "body": [
- "int $1 = db.PublicAccountSet.Count(m => $2);",
- ]
- },
- "添加第三方平台设置": {
- "prefix": "ym-db-PublicAccountSet-Create",
- "body": [
- "db.PublicAccountSet.Add(new PublicAccountSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Id = $1, //Id",
- " AlipayAppId = $2, //支付宝AppId",
- " AlipayPartnerId = $3, //支付宝合作者Id",
- " AlipayPrivateKey = $4, //支付宝私钥",
- " AlipayPublicKey = $5, //支付宝公钥",
- " WeChatAppId = $6, //微信公众号AppId",
- " WeChatAppSecret = $7, //微信公众号AppSecret",
- " WeChatMchId = $8, //微信商户号",
- " WeChatPayKey = $9, //微信支付密钥",
- " WeChatOpenAppId = $10, //微信开放平台AppId",
- " WeChatOpenAppSecret = $11, //微信开放平台AppSecret",
- " ServerIp = $12, //服务器IP",
- " WeChatMiniAppId = $13, //微信小程序AppId",
- " WeChatMiniAppSecret = $14, //微信小程序AppSecret",
- " QqAndroidAppId = $15, //QQ安卓AppId",
- " QqAndroidAppKey = $16, //QQ安卓AppKey",
- " QqIosAppId = $17, //QQIOSAppId",
- " QqIosAppKey = $18, //QQIOSAppKey",
- " AliyunAccessKeyId = $19, //阿里云AccessKeyID",
- " AliyunAccessKeySecret = $20, //阿里云AccessKeySecret",
- " AliyunPushAndroidAppId = $21, //阿里云推送安卓AppId",
- " AliyunPushAndroidAppSecret = $22, //阿里云推送安卓AppSecret",
- " AliyunPushIosAppId = $23, //阿里云推送IOSAppId",
- " AliyunPushIosAppSecret = $24, //阿里云推送IOSAppSecret",
- " MobAppKey = $25, //MobAppKey",
- " MobAppSecret = $26, //MobAppSecret",
- " MeiQiaAppKey = $27, //美洽AppKey",
- " ErpApiUrl = $28, //请求地址",
- " ErpAppCode = $29, //AppCode",
- " SmsApiPwd = $30, //密码",
- " SmsApiSign = $31, //签名",
- " SmsApiUserId = $32, //账号",
- " SmsApiDefaultTemplate = $33, //默认验证码模板",
- " AliyunRegionId = $34, //阿里云服务器别名",
- " AliyunAndroidNotifyTitle = $35, //阿里云安卓弹窗标题",
- " AliyunAndroidActivity = $36, //阿里云点击通知后跳转的Activity",
- "});"
- ]
- },"删除某个第三方平台设置": {
- "prefix": "ym-db-PublicAccountSet-Delete",
- "body": [
- "PublicAccountSet $1 = db.PublicAccountSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.PublicAccountSet.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-SysAdmin-Find",
- "body": [
- "List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SysAdmin $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询后台管理员列表,并取值": {
- "prefix": "ym-db-SysAdmin-FindWithData",
- "body": [
- "List<SysAdmin> $1 = db.SysAdmin.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SysAdmin $3 in $1)",
- "{",
- " string AdminName = $3.AdminName; //用户名",
- " string Password = $3.Password; //密码",
- " string RealName = $3.RealName; //名称",
- " string Role = $3.Role; //角色",
- " DateTime LastLoginDate = $3.LastLoginDate; //最后登录时间",
- "}"
- ]
- },
- "查询后台管理员": {
- "prefix": "ym-db-SysAdmin-Exist",
- "body": [
- "bool $1 = db.SysAdmin.Any(m => m.Id == $2);",
- ]
- },
- "查询某个后台管理员,并取值": {
- "prefix": "ym-db-SysAdmin-FindByPrimaryKey",
- "body": [
- "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string AdminName = $1.AdminName; //用户名",
- " string Password = $1.Password; //密码",
- " string RealName = $1.RealName; //名称",
- " string Role = $1.Role; //角色",
- " DateTime LastLoginDate = $1.LastLoginDate; //最后登录时间",
- "}"
- ]
- },
- "查询某个后台管理员,并赋值": {
- "prefix": "ym-db-SysAdmin-Update",
- "body": [
- "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.AdminName = $2; //用户名",
- " $1.Password = $3; //密码",
- " $1.RealName = $4; //名称",
- " $1.Role = $5; //角色",
- " $1.LastLoginDate = $6; //最后登录时间",
- "}"
- ]
- },
- "获取后台管理员数量": {
- "prefix": "ym-db-SysAdmin-FindAndCount",
- "body": [
- "int $1 = db.SysAdmin.Count(m => $2);",
- ]
- },
- "添加后台管理员": {
- "prefix": "ym-db-SysAdmin-Create",
- "body": [
- "db.SysAdmin.Add(new SysAdmin()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " AdminName = $1, //用户名",
- " Password = $2, //密码",
- " RealName = $3, //名称",
- " Role = $4, //角色",
- " LastLoginDate = $5, //最后登录时间",
- "});"
- ]
- },"删除某个后台管理员": {
- "prefix": "ym-db-SysAdmin-Delete",
- "body": [
- "SysAdmin $1 = db.SysAdmin.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.SysAdmin.Remove($1);",
- "}"
- ]
- },
- "查询后台管理员角色列表": {
- "prefix": "ym-db-SysAdminRole-Find",
- "body": [
- "List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SysAdminRole $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询后台管理员角色列表,并取值": {
- "prefix": "ym-db-SysAdminRole-FindWithData",
- "body": [
- "List<SysAdminRole> $1 = db.SysAdminRole.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SysAdminRole $3 in $1)",
- "{",
- " string Name = $3.Name; //名称",
- " string Details = $3.Details; //描述",
- " string RightInfo = $3.RightInfo; //权限设置",
- "}"
- ]
- },
- "查询后台管理员角色": {
- "prefix": "ym-db-SysAdminRole-Exist",
- "body": [
- "bool $1 = db.SysAdminRole.Any(m => m.Id == $2);",
- ]
- },
- "查询某个后台管理员角色,并取值": {
- "prefix": "ym-db-SysAdminRole-FindByPrimaryKey",
- "body": [
- "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string Name = $1.Name; //名称",
- " string Details = $1.Details; //描述",
- " string RightInfo = $1.RightInfo; //权限设置",
- "}"
- ]
- },
- "查询某个后台管理员角色,并赋值": {
- "prefix": "ym-db-SysAdminRole-Update",
- "body": [
- "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.Name = $2; //名称",
- " $1.Details = $3; //描述",
- " $1.RightInfo = $4; //权限设置",
- "}"
- ]
- },
- "获取后台管理员角色数量": {
- "prefix": "ym-db-SysAdminRole-FindAndCount",
- "body": [
- "int $1 = db.SysAdminRole.Count(m => $2);",
- ]
- },
- "添加后台管理员角色": {
- "prefix": "ym-db-SysAdminRole-Create",
- "body": [
- "db.SysAdminRole.Add(new SysAdminRole()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " Name = $1, //名称",
- " Details = $2, //描述",
- " RightInfo = $3, //权限设置",
- "});"
- ]
- },"删除某个后台管理员角色": {
- "prefix": "ym-db-SysAdminRole-Delete",
- "body": [
- "SysAdminRole $1 = db.SysAdminRole.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.SysAdminRole.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-SystemSet-Find",
- "body": [
- "List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SystemSet $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询系统设置列表,并取值": {
- "prefix": "ym-db-SystemSet-FindWithData",
- "body": [
- "List<SystemSet> $1 = db.SystemSet.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (SystemSet $3 in $1)",
- "{",
- " string WebUrl = $3.WebUrl; //网站地址",
- " string WebName = $3.WebName; //网站名称",
- " string IndexKeyword = $3.IndexKeyword; //首页关键词",
- " string IndexDescription = $3.IndexDescription; //首页简介",
- " string UploadExt = $3.UploadExt; //允许上传类型",
- " int UploadMaxSize = $3.UploadMaxSize; //允许最大上传",
- " ulong UploadAutoZoom = $3.UploadAutoZoom; //自动缩略图",
- " int UploadAutoZoomWidth = $3.UploadAutoZoomWidth; //自动缩略图宽",
- " int UploadAutoZoomHeight = $3.UploadAutoZoomHeight; //自动缩略图高",
- " ulong UploadAutoWater = $3.UploadAutoWater; //自动水印",
- " string UploadWaterPosition = $3.UploadWaterPosition; //水印位置",
- " string UploadWaterPath = $3.UploadWaterPath; //水印图片",
- " string RightInfo = $3.RightInfo; //版权信息",
- " string Address = $3.Address; //企业地址",
- " string Phone = $3.Phone; //联系电话",
- " string WebStatCode = $3.WebStatCode; //网站统计代码",
- " string Logo = $3.Logo; //Logo图片",
- " ulong UploadOss = $3.UploadOss; //是否上传到OSS",
- " int UploadAutoZoomQuality = $3.UploadAutoZoomQuality; //自动缩略图质量",
- " string StartAdPhoto = $3.StartAdPhoto; //启动图",
- "}"
- ]
- },
- "查询系统设置": {
- "prefix": "ym-db-SystemSet-Exist",
- "body": [
- "bool $1 = db.SystemSet.Any(m => m.Id == $2);",
- ]
- },
- "查询某个系统设置,并取值": {
- "prefix": "ym-db-SystemSet-FindByPrimaryKey",
- "body": [
- "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string WebUrl = $1.WebUrl; //网站地址",
- " string WebName = $1.WebName; //网站名称",
- " string IndexKeyword = $1.IndexKeyword; //首页关键词",
- " string IndexDescription = $1.IndexDescription; //首页简介",
- " string UploadExt = $1.UploadExt; //允许上传类型",
- " int UploadMaxSize = $1.UploadMaxSize; //允许最大上传",
- " ulong UploadAutoZoom = $1.UploadAutoZoom; //自动缩略图",
- " int UploadAutoZoomWidth = $1.UploadAutoZoomWidth; //自动缩略图宽",
- " int UploadAutoZoomHeight = $1.UploadAutoZoomHeight; //自动缩略图高",
- " ulong UploadAutoWater = $1.UploadAutoWater; //自动水印",
- " string UploadWaterPosition = $1.UploadWaterPosition; //水印位置",
- " string UploadWaterPath = $1.UploadWaterPath; //水印图片",
- " string RightInfo = $1.RightInfo; //版权信息",
- " string Address = $1.Address; //企业地址",
- " string Phone = $1.Phone; //联系电话",
- " string WebStatCode = $1.WebStatCode; //网站统计代码",
- " string Logo = $1.Logo; //Logo图片",
- " ulong UploadOss = $1.UploadOss; //是否上传到OSS",
- " int UploadAutoZoomQuality = $1.UploadAutoZoomQuality; //自动缩略图质量",
- " string StartAdPhoto = $1.StartAdPhoto; //启动图",
- "}"
- ]
- },
- "查询某个系统设置,并赋值": {
- "prefix": "ym-db-SystemSet-Update",
- "body": [
- "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.WebUrl = $2; //网站地址",
- " $1.WebName = $3; //网站名称",
- " $1.IndexKeyword = $4; //首页关键词",
- " $1.IndexDescription = $5; //首页简介",
- " $1.UploadExt = $6; //允许上传类型",
- " $1.UploadMaxSize = $7; //允许最大上传",
- " $1.UploadAutoZoom = $8; //自动缩略图",
- " $1.UploadAutoZoomWidth = $9; //自动缩略图宽",
- " $1.UploadAutoZoomHeight = $10; //自动缩略图高",
- " $1.UploadAutoWater = $11; //自动水印",
- " $1.UploadWaterPosition = $12; //水印位置",
- " $1.UploadWaterPath = $13; //水印图片",
- " $1.RightInfo = $14; //版权信息",
- " $1.Address = $15; //企业地址",
- " $1.Phone = $16; //联系电话",
- " $1.WebStatCode = $17; //网站统计代码",
- " $1.Logo = $18; //Logo图片",
- " $1.UploadOss = $19; //是否上传到OSS",
- " $1.UploadAutoZoomQuality = $20; //自动缩略图质量",
- " $1.StartAdPhoto = $21; //启动图",
- "}"
- ]
- },
- "获取系统设置数量": {
- "prefix": "ym-db-SystemSet-FindAndCount",
- "body": [
- "int $1 = db.SystemSet.Count(m => $2);",
- ]
- },
- "添加系统设置": {
- "prefix": "ym-db-SystemSet-Create",
- "body": [
- "db.SystemSet.Add(new SystemSet()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " WebUrl = $1, //网站地址",
- " WebName = $2, //网站名称",
- " IndexKeyword = $3, //首页关键词",
- " IndexDescription = $4, //首页简介",
- " UploadExt = $5, //允许上传类型",
- " UploadMaxSize = $6, //允许最大上传",
- " UploadAutoZoom = $7, //自动缩略图",
- " UploadAutoZoomWidth = $8, //自动缩略图宽",
- " UploadAutoZoomHeight = $9, //自动缩略图高",
- " UploadAutoWater = $10, //自动水印",
- " UploadWaterPosition = $11, //水印位置",
- " UploadWaterPath = $12, //水印图片",
- " RightInfo = $13, //版权信息",
- " Address = $14, //企业地址",
- " Phone = $15, //联系电话",
- " WebStatCode = $16, //网站统计代码",
- " Logo = $17, //Logo图片",
- " UploadOss = $18, //是否上传到OSS",
- " UploadAutoZoomQuality = $19, //自动缩略图质量",
- " StartAdPhoto = $20, //启动图",
- "});"
- ]
- },"删除某个系统设置": {
- "prefix": "ym-db-SystemSet-Delete",
- "body": [
- "SystemSet $1 = db.SystemSet.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.SystemSet.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; //已提现金额",
- " decimal TotalProfit = $3.TotalProfit; //总收益",
- " decimal TotalServiceProfit = $3.TotalServiceProfit; //总服务分润",
- " decimal TeamTotalOverProfit = $3.TeamTotalOverProfit; //团队总流水分润",
- " decimal TeamTotalProfit = $3.TeamTotalProfit; //团队总收益",
- " decimal TeamTotalServiceProfit = $3.TeamTotalServiceProfit; //团队总服务分润",
- " decimal TotalOverProfit = $3.TotalOverProfit; //总流水分润",
- "}"
- ]
- },
- "查询创客账户": {
- "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; //已提现金额",
- " decimal TotalProfit = $1.TotalProfit; //总收益",
- " decimal TotalServiceProfit = $1.TotalServiceProfit; //总服务分润",
- " decimal TeamTotalOverProfit = $1.TeamTotalOverProfit; //团队总流水分润",
- " decimal TeamTotalProfit = $1.TeamTotalProfit; //团队总收益",
- " decimal TeamTotalServiceProfit = $1.TeamTotalServiceProfit; //团队总服务分润",
- " decimal TotalOverProfit = $1.TotalOverProfit; //总流水分润",
- "}"
- ]
- },
- "查询某个创客账户,并赋值": {
- "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; //已提现金额",
- " $1.TotalProfit = $11; //总收益",
- " $1.TotalServiceProfit = $12; //总服务分润",
- " $1.TeamTotalOverProfit = $13; //团队总流水分润",
- " $1.TeamTotalProfit = $14; //团队总收益",
- " $1.TeamTotalServiceProfit = $15; //团队总服务分润",
- " $1.TotalOverProfit = $16; //总流水分润",
- "}"
- ]
- },
- "获取创客账户数量": {
- "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, //已提现金额",
- " TotalProfit = $10, //总收益",
- " TotalServiceProfit = $11, //总服务分润",
- " TeamTotalOverProfit = $12, //团队总流水分润",
- " TeamTotalProfit = $13, //团队总收益",
- " TeamTotalServiceProfit = $14, //团队总服务分润",
- " TotalOverProfit = $15, //总流水分润",
- "});"
- ]
- },"删除某个创客账户": {
- "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-UserCardForWeChat-Find",
- "body": [
- "List<UserCardForWeChat> $1 = db.UserCardForWeChat.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCardForWeChat $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询会员卡列表,并取值": {
- "prefix": "ym-db-UserCardForWeChat-FindWithData",
- "body": [
- "List<UserCardForWeChat> $1 = db.UserCardForWeChat.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCardForWeChat $3 in $1)",
- "{",
- " string CardType = $3.CardType; //会员卡类型",
- " string LogoUrl = $3.LogoUrl; //商户logo",
- " string CodeType = $3.CodeType; //展示类型",
- " string BrandName = $3.BrandName; //商户名字",
- " string Title = $3.Title; //卡券名",
- " string Color = $3.Color; //券颜色",
- " string Notice = $3.Notice; //卡券使用提醒",
- " string Description = $3.Description; //卡券使用说明",
- " int Quantity = $3.Quantity; //卡券库存的数量",
- " string DateType = $3.DateType; //使用时间类型",
- " string Sku = $3.Sku; //商品信息",
- " string Prerogative = $3.Prerogative; //会员卡特权说明",
- " ulong SupplyBonus = $3.SupplyBonus; //显示积分",
- " ulong SupplyBalance = $3.SupplyBalance; //是否支持储值",
- " string EnterName = $3.EnterName; //入口名称",
- " string EnterTips = $3.EnterTips; //入口右侧提示语",
- " string EnterUrl = $3.EnterUrl; //入口跳转链接",
- " string CardId = $3.CardId; //卡券ID",
- " int MerchantId = $3.MerchantId; //商户",
- "}"
- ]
- },
- "查询会员卡": {
- "prefix": "ym-db-UserCardForWeChat-Exist",
- "body": [
- "bool $1 = db.UserCardForWeChat.Any(m => m.Id == $2);",
- ]
- },
- "查询某个会员卡,并取值": {
- "prefix": "ym-db-UserCardForWeChat-FindByPrimaryKey",
- "body": [
- "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " string CardType = $1.CardType; //会员卡类型",
- " string LogoUrl = $1.LogoUrl; //商户logo",
- " string CodeType = $1.CodeType; //展示类型",
- " string BrandName = $1.BrandName; //商户名字",
- " string Title = $1.Title; //卡券名",
- " string Color = $1.Color; //券颜色",
- " string Notice = $1.Notice; //卡券使用提醒",
- " string Description = $1.Description; //卡券使用说明",
- " int Quantity = $1.Quantity; //卡券库存的数量",
- " string DateType = $1.DateType; //使用时间类型",
- " string Sku = $1.Sku; //商品信息",
- " string Prerogative = $1.Prerogative; //会员卡特权说明",
- " ulong SupplyBonus = $1.SupplyBonus; //显示积分",
- " ulong SupplyBalance = $1.SupplyBalance; //是否支持储值",
- " string EnterName = $1.EnterName; //入口名称",
- " string EnterTips = $1.EnterTips; //入口右侧提示语",
- " string EnterUrl = $1.EnterUrl; //入口跳转链接",
- " string CardId = $1.CardId; //卡券ID",
- " int MerchantId = $1.MerchantId; //商户",
- "}"
- ]
- },
- "查询某个会员卡,并赋值": {
- "prefix": "ym-db-UserCardForWeChat-Update",
- "body": [
- "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.CardType = $2; //会员卡类型",
- " $1.LogoUrl = $3; //商户logo",
- " $1.CodeType = $4; //展示类型",
- " $1.BrandName = $5; //商户名字",
- " $1.Title = $6; //卡券名",
- " $1.Color = $7; //券颜色",
- " $1.Notice = $8; //卡券使用提醒",
- " $1.Description = $9; //卡券使用说明",
- " $1.Quantity = $10; //卡券库存的数量",
- " $1.DateType = $11; //使用时间类型",
- " $1.Sku = $12; //商品信息",
- " $1.Prerogative = $13; //会员卡特权说明",
- " $1.SupplyBonus = $14; //显示积分",
- " $1.SupplyBalance = $15; //是否支持储值",
- " $1.EnterName = $16; //入口名称",
- " $1.EnterTips = $17; //入口右侧提示语",
- " $1.EnterUrl = $18; //入口跳转链接",
- " $1.CardId = $19; //卡券ID",
- " $1.MerchantId = $20; //商户",
- "}"
- ]
- },
- "获取会员卡数量": {
- "prefix": "ym-db-UserCardForWeChat-FindAndCount",
- "body": [
- "int $1 = db.UserCardForWeChat.Count(m => $2);",
- ]
- },
- "添加会员卡": {
- "prefix": "ym-db-UserCardForWeChat-Create",
- "body": [
- "db.UserCardForWeChat.Add(new UserCardForWeChat()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " CardType = $1, //会员卡类型",
- " LogoUrl = $2, //商户logo",
- " CodeType = $3, //展示类型",
- " BrandName = $4, //商户名字",
- " Title = $5, //卡券名",
- " Color = $6, //券颜色",
- " Notice = $7, //卡券使用提醒",
- " Description = $8, //卡券使用说明",
- " Quantity = $9, //卡券库存的数量",
- " DateType = $10, //使用时间类型",
- " Sku = $11, //商品信息",
- " Prerogative = $12, //会员卡特权说明",
- " SupplyBonus = $13, //显示积分",
- " SupplyBalance = $14, //是否支持储值",
- " EnterName = $15, //入口名称",
- " EnterTips = $16, //入口右侧提示语",
- " EnterUrl = $17, //入口跳转链接",
- " CardId = $18, //卡券ID",
- " MerchantId = $19, //商户",
- "});"
- ]
- },"删除某个会员卡": {
- "prefix": "ym-db-UserCardForWeChat-Delete",
- "body": [
- "UserCardForWeChat $1 = db.UserCardForWeChat.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserCardForWeChat.Remove($1);",
- "}"
- ]
- },
- "查询会员卡领取记录列表": {
- "prefix": "ym-db-UserCardRecord-Find",
- "body": [
- "List<UserCardRecord> $1 = db.UserCardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCardRecord $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询会员卡领取记录列表,并取值": {
- "prefix": "ym-db-UserCardRecord-FindWithData",
- "body": [
- "List<UserCardRecord> $1 = db.UserCardRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserCardRecord $3 in $1)",
- "{",
- " int ConsumerId = $3.ConsumerId; //消费者",
- " int CardId = $3.CardId; //会员卡",
- " int MerchantId = $3.MerchantId; //商户",
- "}"
- ]
- },
- "查询会员卡领取记录": {
- "prefix": "ym-db-UserCardRecord-Exist",
- "body": [
- "bool $1 = db.UserCardRecord.Any(m => m.Id == $2);",
- ]
- },
- "查询某个会员卡领取记录,并取值": {
- "prefix": "ym-db-UserCardRecord-FindByPrimaryKey",
- "body": [
- "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " int ConsumerId = $1.ConsumerId; //消费者",
- " int CardId = $1.CardId; //会员卡",
- " int MerchantId = $1.MerchantId; //商户",
- "}"
- ]
- },
- "查询某个会员卡领取记录,并赋值": {
- "prefix": "ym-db-UserCardRecord-Update",
- "body": [
- "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " $1.ConsumerId = $2; //消费者",
- " $1.CardId = $3; //会员卡",
- " $1.MerchantId = $4; //商户",
- "}"
- ]
- },
- "获取会员卡领取记录数量": {
- "prefix": "ym-db-UserCardRecord-FindAndCount",
- "body": [
- "int $1 = db.UserCardRecord.Count(m => $2);",
- ]
- },
- "添加会员卡领取记录": {
- "prefix": "ym-db-UserCardRecord-Create",
- "body": [
- "db.UserCardRecord.Add(new UserCardRecord()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " ConsumerId = $1, //消费者",
- " CardId = $2, //会员卡",
- " MerchantId = $3, //商户",
- "});"
- ]
- },"删除某个会员卡领取记录": {
- "prefix": "ym-db-UserCardRecord-Delete",
- "body": [
- "UserCardRecord $1 = db.UserCardRecord.FirstOrDefault(m => m.Id == $2);",
- "if ($1 != null)",
- "{",
- " db.UserCardRecord.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; //分润奖励",
- " int MachineCount = $3.MachineCount; //赠机数量",
- "}"
- ]
- },
- "查询创客数据": {
- "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; //分润奖励",
- " int MachineCount = $1.MachineCount; //赠机数量",
- "}"
- ]
- },
- "查询某个创客数据,并赋值": {
- "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; //分润奖励",
- " $1.MachineCount = $21; //赠机数量",
- "}"
- ]
- },
- "获取创客数据数量": {
- "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, //分润奖励",
- " MachineCount = $20, //赠机数量",
- "});"
- ]
- },"删除某个创客数据": {
- "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);",
- "}"
- ]
- },
- "查询创客机具数据列表": {
- "prefix": "ym-db-UserMachineData-Find",
- "body": [
- "List<UserMachineData> $1 = db.UserMachineData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserMachineData $3 in $1)",
- "{",
- "}"
- ]
- },
- "查询创客机具数据列表,并取值": {
- "prefix": "ym-db-UserMachineData-FindWithData",
- "body": [
- "List<UserMachineData> $1 = db.UserMachineData.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
- "foreach (UserMachineData $3 in $1)",
- "{",
- " string IdBrand = $3.IdBrand; //创客品牌",
- " int TotalMachineCount = $3.TotalMachineCount; //总机具数",
- " int UnBindCount = $3.UnBindCount; //未绑定数",
- " int BindCount = $3.BindCount; //已绑定数",
- " decimal TradeProfit = $3.TradeProfit; //交易分润",
- " decimal ActProfit = $3.ActProfit; //激活奖励",
- " decimal OpenProfit = $3.OpenProfit; //开机奖励",
- " decimal DividendsProfit = $3.DividendsProfit; //分红奖励",
- " decimal OtherProfit = $3.OtherProfit; //分润补贴",
- " decimal FluxProfit = $3.FluxProfit; //流量卡分佣",
- "}"
- ]
- },
- "查询创客机具数据": {
- "prefix": "ym-db-UserMachineData-Exist",
- "body": [
- "bool $1 = db.UserMachineData.Any(m => m.IdBrand == $2);",
- ]
- },
- "查询某个创客机具数据,并取值": {
- "prefix": "ym-db-UserMachineData-FindByPrimaryKey",
- "body": [
- "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);",
- "if ($1 != null)",
- "{",
- " string IdBrand = $1.IdBrand; //创客品牌",
- " int TotalMachineCount = $1.TotalMachineCount; //总机具数",
- " int UnBindCount = $1.UnBindCount; //未绑定数",
- " int BindCount = $1.BindCount; //已绑定数",
- " decimal TradeProfit = $1.TradeProfit; //交易分润",
- " decimal ActProfit = $1.ActProfit; //激活奖励",
- " decimal OpenProfit = $1.OpenProfit; //开机奖励",
- " decimal DividendsProfit = $1.DividendsProfit; //分红奖励",
- " decimal OtherProfit = $1.OtherProfit; //分润补贴",
- " decimal FluxProfit = $1.FluxProfit; //流量卡分佣",
- "}"
- ]
- },
- "查询某个创客机具数据,并赋值": {
- "prefix": "ym-db-UserMachineData-Update",
- "body": [
- "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);",
- "if ($1 != null)",
- "{",
- " $1.IdBrand = $2; //创客品牌",
- " $1.TotalMachineCount = $3; //总机具数",
- " $1.UnBindCount = $4; //未绑定数",
- " $1.BindCount = $5; //已绑定数",
- " $1.TradeProfit = $6; //交易分润",
- " $1.ActProfit = $7; //激活奖励",
- " $1.OpenProfit = $8; //开机奖励",
- " $1.DividendsProfit = $9; //分红奖励",
- " $1.OtherProfit = $10; //分润补贴",
- " $1.FluxProfit = $11; //流量卡分佣",
- "}"
- ]
- },
- "获取创客机具数据数量": {
- "prefix": "ym-db-UserMachineData-FindAndCount",
- "body": [
- "int $1 = db.UserMachineData.Count(m => $2);",
- ]
- },
- "添加创客机具数据": {
- "prefix": "ym-db-UserMachineData-Create",
- "body": [
- "db.UserMachineData.Add(new UserMachineData()",
- "{",
- " CreateDate = DateTime.Now,",
- " UpdateDate = DateTime.Now,",
- " IdBrand = $1, //创客品牌",
- " TotalMachineCount = $2, //总机具数",
- " UnBindCount = $3, //未绑定数",
- " BindCount = $4, //已绑定数",
- " TradeProfit = $5, //交易分润",
- " ActProfit = $6, //激活奖励",
- " OpenProfit = $7, //开机奖励",
- " DividendsProfit = $8, //分红奖励",
- " OtherProfit = $9, //分润补贴",
- " FluxProfit = $10, //流量卡分佣",
- "});"
- ]
- },"删除某个创客机具数据": {
- "prefix": "ym-db-UserMachineData-Delete",
- "body": [
- "UserMachineData $1 = db.UserMachineData.FirstOrDefault(m => m.IdBrand == $2);",
- "if ($1 != null)",
- "{",
- " db.UserMachineData.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; //省市设置时间",
- " DateTime CertValidStartDate = $3.CertValidStartDate; //身份证有效期开始时间",
- " DateTime CertValidEndDate = $3.CertValidEndDate; //身份证有效期结束时间",
- " string SettleBankCardName = $3.SettleBankCardName; //结算银行卡户名",
- " int AgentLevel = $3.AgentLevel; //代理等级",
- " string AgentAreas = $3.AgentAreas; //代理区域",
- "}"
- ]
- },
- "查询创客": {
- "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; //省市设置时间",
- " DateTime CertValidStartDate = $1.CertValidStartDate; //身份证有效期开始时间",
- " DateTime CertValidEndDate = $1.CertValidEndDate; //身份证有效期结束时间",
- " string SettleBankCardName = $1.SettleBankCardName; //结算银行卡户名",
- " int AgentLevel = $1.AgentLevel; //代理等级",
- " string AgentAreas = $1.AgentAreas; //代理区域",
- "}"
- ]
- },
- "查询某个创客,并赋值": {
- "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; //省市设置时间",
- " $1.CertValidStartDate = $59; //身份证有效期开始时间",
- " $1.CertValidEndDate = $60; //身份证有效期结束时间",
- " $1.SettleBankCardName = $61; //结算银行卡户名",
- " $1.AgentLevel = $62; //代理等级",
- " $1.AgentAreas = $63; //代理区域",
- "}"
- ]
- },
- "获取创客数量": {
- "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, //省市设置时间",
- " CertValidStartDate = $58, //身份证有效期开始时间",
- " CertValidEndDate = $59, //身份证有效期结束时间",
- " SettleBankCardName = $60, //结算银行卡户名",
- " AgentLevel = $61, //代理等级",
- " AgentAreas = $62, //代理区域",
- "});"
- ]
- },"删除某个创客": {
- "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);",
- "}"
- ]
- },
- }
|