spdb.code-snippets 101 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813
  1. {"查询激活记录列表": {
  2. "prefix": "ym-db-ActivateRecord-Find",
  3. "body": [
  4. "List<ActivateRecord> $1 = db.ActivateRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  5. "foreach (ActivateRecord $3 in $1)",
  6. "{",
  7. "}"
  8. ]
  9. },
  10. "查询激活记录列表,并取值": {
  11. "prefix": "ym-db-ActivateRecord-FindWithData",
  12. "body": [
  13. "List<ActivateRecord> $1 = db.ActivateRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  14. "foreach (ActivateRecord $3 in $1)",
  15. "{",
  16. " string MerNo = $3.MerNo; //商户编号",
  17. " string MerName = $3.MerName; //商户名称",
  18. " string MerMobile = $3.MerMobile; //商户手机号",
  19. " string SnNo = $3.SnNo; //终端机身号",
  20. " DateTime MerRegDate = $3.MerRegDate; //注册日期",
  21. " string AssessMonth = $3.AssessMonth; //考核月",
  22. " string AssessMonthCount = $3.AssessMonthCount; //考核第几月",
  23. " string ActivateStatus = $3.ActivateStatus; //激活状态",
  24. " DateTime ActivateDate = $3.ActivateDate; //激活日期",
  25. " string MerRealName = $3.MerRealName; //商户真实姓名",
  26. " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
  27. " string BizEnterNo = $3.BizEnterNo; //业务员编号",
  28. " string BizEnterName = $3.BizEnterName; //业务员名称",
  29. " string Remark = $3.Remark; //备注",
  30. " string AgentNo = $3.AgentNo; //代理商编号",
  31. " string ProductType = $3.ProductType; //产品类型",
  32. " string ChannelSerial = $3.ChannelSerial; //渠道流水号",
  33. "}"
  34. ]
  35. },
  36. "查询激活记录": {
  37. "prefix": "ym-db-ActivateRecord-Exist",
  38. "body": [
  39. "bool $1 = db.ActivateRecord.Any(m => m.MerNo == $2);",
  40. ]
  41. },
  42. "查询某个激活记录,并取值": {
  43. "prefix": "ym-db-ActivateRecord-FindByPrimaryKey",
  44. "body": [
  45. "ActivateRecord $1 = db.ActivateRecord.FirstOrDefault(m => m.MerNo == $2);",
  46. "if ($1 != null)",
  47. "{",
  48. " string MerNo = $1.MerNo; //商户编号",
  49. " string MerName = $1.MerName; //商户名称",
  50. " string MerMobile = $1.MerMobile; //商户手机号",
  51. " string SnNo = $1.SnNo; //终端机身号",
  52. " DateTime MerRegDate = $1.MerRegDate; //注册日期",
  53. " string AssessMonth = $1.AssessMonth; //考核月",
  54. " string AssessMonthCount = $1.AssessMonthCount; //考核第几月",
  55. " string ActivateStatus = $1.ActivateStatus; //激活状态",
  56. " DateTime ActivateDate = $1.ActivateDate; //激活日期",
  57. " string MerRealName = $1.MerRealName; //商户真实姓名",
  58. " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
  59. " string BizEnterNo = $1.BizEnterNo; //业务员编号",
  60. " string BizEnterName = $1.BizEnterName; //业务员名称",
  61. " string Remark = $1.Remark; //备注",
  62. " string AgentNo = $1.AgentNo; //代理商编号",
  63. " string ProductType = $1.ProductType; //产品类型",
  64. " string ChannelSerial = $1.ChannelSerial; //渠道流水号",
  65. "}"
  66. ]
  67. },
  68. "查询某个激活记录,并赋值": {
  69. "prefix": "ym-db-ActivateRecord-Update",
  70. "body": [
  71. "ActivateRecord $1 = db.ActivateRecord.FirstOrDefault(m => m.MerNo == $2);",
  72. "if ($1 != null)",
  73. "{",
  74. " $1.MerNo = $2; //商户编号",
  75. " $1.MerName = $3; //商户名称",
  76. " $1.MerMobile = $4; //商户手机号",
  77. " $1.SnNo = $5; //终端机身号",
  78. " $1.MerRegDate = $6; //注册日期",
  79. " $1.AssessMonth = $7; //考核月",
  80. " $1.AssessMonthCount = $8; //考核第几月",
  81. " $1.ActivateStatus = $9; //激活状态",
  82. " $1.ActivateDate = $10; //激活日期",
  83. " $1.MerRealName = $11; //商户真实姓名",
  84. " $1.MerIdcardNo = $12; //商户身份证号",
  85. " $1.BizEnterNo = $13; //业务员编号",
  86. " $1.BizEnterName = $14; //业务员名称",
  87. " $1.Remark = $15; //备注",
  88. " $1.AgentNo = $16; //代理商编号",
  89. " $1.ProductType = $17; //产品类型",
  90. " $1.ChannelSerial = $18; //渠道流水号",
  91. "}"
  92. ]
  93. },
  94. "获取激活记录数量": {
  95. "prefix": "ym-db-ActivateRecord-FindAndCount",
  96. "body": [
  97. "int $1 = db.ActivateRecord.Count(m => $2);",
  98. ]
  99. },
  100. "添加激活记录": {
  101. "prefix": "ym-db-ActivateRecord-Create",
  102. "body": [
  103. "db.ActivateRecord.Add(new ActivateRecord()",
  104. "{",
  105. " CreateDate = DateTime.Now,",
  106. " UpdateDate = DateTime.Now,",
  107. " MerNo = $1, //商户编号",
  108. " MerName = $2, //商户名称",
  109. " MerMobile = $3, //商户手机号",
  110. " SnNo = $4, //终端机身号",
  111. " MerRegDate = $5, //注册日期",
  112. " AssessMonth = $6, //考核月",
  113. " AssessMonthCount = $7, //考核第几月",
  114. " ActivateStatus = $8, //激活状态",
  115. " ActivateDate = $9, //激活日期",
  116. " MerRealName = $10, //商户真实姓名",
  117. " MerIdcardNo = $11, //商户身份证号",
  118. " BizEnterNo = $12, //业务员编号",
  119. " BizEnterName = $13, //业务员名称",
  120. " Remark = $14, //备注",
  121. " AgentNo = $15, //代理商编号",
  122. " ProductType = $16, //产品类型",
  123. " ChannelSerial = $17, //渠道流水号",
  124. "});"
  125. ]
  126. },"删除某个激活记录": {
  127. "prefix": "ym-db-ActivateRecord-Delete",
  128. "body": [
  129. "ActivateRecord $1 = db.ActivateRecord.FirstOrDefault(m => m.MerNo == $2);",
  130. "if ($1 != null)",
  131. "{",
  132. " db.ActivateRecord.Remove($1);",
  133. "}"
  134. ]
  135. },
  136. "查询绑定记录列表": {
  137. "prefix": "ym-db-BindRecord-Find",
  138. "body": [
  139. "List<BindRecord> $1 = db.BindRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  140. "foreach (BindRecord $3 in $1)",
  141. "{",
  142. "}"
  143. ]
  144. },
  145. "查询绑定记录列表,并取值": {
  146. "prefix": "ym-db-BindRecord-FindWithData",
  147. "body": [
  148. "List<BindRecord> $1 = db.BindRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  149. "foreach (BindRecord $3 in $1)",
  150. "{",
  151. " string AgentName = $3.AgentName; //机构名称",
  152. " string MerNo = $3.MerNo; //商户编号",
  153. " string MerName = $3.MerName; //商户名称",
  154. " string MerSnNo = $3.MerSnNo; //终端机身号",
  155. " DateTime MerOperateDate = $3.MerOperateDate; //操作时间",
  156. " string MerOperateType = $3.MerOperateType; //操作类型",
  157. " string MerStatus = $3.MerStatus; //商户状态",
  158. " string ProductType = $3.ProductType; //产品类型",
  159. " string MerNewSnNo = $3.MerNewSnNo; //新终端机身号",
  160. " string Remark = $3.Remark; //注释",
  161. " DateTime CreateTime = $3.CreateTime; //创建时间",
  162. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  163. " string ChannelSerial = $3.ChannelSerial; //渠道流水号",
  164. "}"
  165. ]
  166. },
  167. "查询绑定记录": {
  168. "prefix": "ym-db-BindRecord-Exist",
  169. "body": [
  170. "bool $1 = db.BindRecord.Any(m => m.MerNo == $2);",
  171. ]
  172. },
  173. "查询某个绑定记录,并取值": {
  174. "prefix": "ym-db-BindRecord-FindByPrimaryKey",
  175. "body": [
  176. "BindRecord $1 = db.BindRecord.FirstOrDefault(m => m.MerNo == $2);",
  177. "if ($1 != null)",
  178. "{",
  179. " string AgentName = $1.AgentName; //机构名称",
  180. " string MerNo = $1.MerNo; //商户编号",
  181. " string MerName = $1.MerName; //商户名称",
  182. " string MerSnNo = $1.MerSnNo; //终端机身号",
  183. " DateTime MerOperateDate = $1.MerOperateDate; //操作时间",
  184. " string MerOperateType = $1.MerOperateType; //操作类型",
  185. " string MerStatus = $1.MerStatus; //商户状态",
  186. " string ProductType = $1.ProductType; //产品类型",
  187. " string MerNewSnNo = $1.MerNewSnNo; //新终端机身号",
  188. " string Remark = $1.Remark; //注释",
  189. " DateTime CreateTime = $1.CreateTime; //创建时间",
  190. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  191. " string ChannelSerial = $1.ChannelSerial; //渠道流水号",
  192. "}"
  193. ]
  194. },
  195. "查询某个绑定记录,并赋值": {
  196. "prefix": "ym-db-BindRecord-Update",
  197. "body": [
  198. "BindRecord $1 = db.BindRecord.FirstOrDefault(m => m.MerNo == $2);",
  199. "if ($1 != null)",
  200. "{",
  201. " $1.AgentName = $2; //机构名称",
  202. " $1.MerNo = $3; //商户编号",
  203. " $1.MerName = $4; //商户名称",
  204. " $1.MerSnNo = $5; //终端机身号",
  205. " $1.MerOperateDate = $6; //操作时间",
  206. " $1.MerOperateType = $7; //操作类型",
  207. " $1.MerStatus = $8; //商户状态",
  208. " $1.ProductType = $9; //产品类型",
  209. " $1.MerNewSnNo = $10; //新终端机身号",
  210. " $1.Remark = $11; //注释",
  211. " $1.CreateTime = $12; //创建时间",
  212. " $1.UpdateTime = $13; //更新时间",
  213. " $1.ChannelSerial = $14; //渠道流水号",
  214. "}"
  215. ]
  216. },
  217. "获取绑定记录数量": {
  218. "prefix": "ym-db-BindRecord-FindAndCount",
  219. "body": [
  220. "int $1 = db.BindRecord.Count(m => $2);",
  221. ]
  222. },
  223. "添加绑定记录": {
  224. "prefix": "ym-db-BindRecord-Create",
  225. "body": [
  226. "db.BindRecord.Add(new BindRecord()",
  227. "{",
  228. " CreateDate = DateTime.Now,",
  229. " UpdateDate = DateTime.Now,",
  230. " AgentName = $1, //机构名称",
  231. " MerNo = $2, //商户编号",
  232. " MerName = $3, //商户名称",
  233. " MerSnNo = $4, //终端机身号",
  234. " MerOperateDate = $5, //操作时间",
  235. " MerOperateType = $6, //操作类型",
  236. " MerStatus = $7, //商户状态",
  237. " ProductType = $8, //产品类型",
  238. " MerNewSnNo = $9, //新终端机身号",
  239. " Remark = $10, //注释",
  240. " CreateTime = $11, //创建时间",
  241. " UpdateTime = $12, //更新时间",
  242. " ChannelSerial = $13, //渠道流水号",
  243. "});"
  244. ]
  245. },"删除某个绑定记录": {
  246. "prefix": "ym-db-BindRecord-Delete",
  247. "body": [
  248. "BindRecord $1 = db.BindRecord.FirstOrDefault(m => m.MerNo == $2);",
  249. "if ($1 != null)",
  250. "{",
  251. " db.BindRecord.Remove($1);",
  252. "}"
  253. ]
  254. },
  255. "查询自建表创建记录列表": {
  256. "prefix": "ym-db-CustomerTableRecord-Find",
  257. "body": [
  258. "List<CustomerTableRecord> $1 = db.CustomerTableRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  259. "foreach (CustomerTableRecord $3 in $1)",
  260. "{",
  261. "}"
  262. ]
  263. },
  264. "查询自建表创建记录列表,并取值": {
  265. "prefix": "ym-db-CustomerTableRecord-FindWithData",
  266. "body": [
  267. "List<CustomerTableRecord> $1 = db.CustomerTableRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  268. "foreach (CustomerTableRecord $3 in $1)",
  269. "{",
  270. " string TableEnName = $3.TableEnName; //表名",
  271. " DateTime CreateDate = $3.CreateDate; //创建时间",
  272. " DateTime AddTableDate = $3.AddTableDate; //分表时间",
  273. "}"
  274. ]
  275. },
  276. "查询自建表创建记录": {
  277. "prefix": "ym-db-CustomerTableRecord-Exist",
  278. "body": [
  279. "bool $1 = db.CustomerTableRecord.Any(m => m.TableEnName == $2);",
  280. ]
  281. },
  282. "查询某个自建表创建记录,并取值": {
  283. "prefix": "ym-db-CustomerTableRecord-FindByPrimaryKey",
  284. "body": [
  285. "CustomerTableRecord $1 = db.CustomerTableRecord.FirstOrDefault(m => m.TableEnName == $2);",
  286. "if ($1 != null)",
  287. "{",
  288. " string TableEnName = $1.TableEnName; //表名",
  289. " DateTime CreateDate = $1.CreateDate; //创建时间",
  290. " DateTime AddTableDate = $1.AddTableDate; //分表时间",
  291. "}"
  292. ]
  293. },
  294. "查询某个自建表创建记录,并赋值": {
  295. "prefix": "ym-db-CustomerTableRecord-Update",
  296. "body": [
  297. "CustomerTableRecord $1 = db.CustomerTableRecord.FirstOrDefault(m => m.TableEnName == $2);",
  298. "if ($1 != null)",
  299. "{",
  300. " $1.TableEnName = $2; //表名",
  301. " $1.CreateDate = $3; //创建时间",
  302. " $1.AddTableDate = $4; //分表时间",
  303. "}"
  304. ]
  305. },
  306. "获取自建表创建记录数量": {
  307. "prefix": "ym-db-CustomerTableRecord-FindAndCount",
  308. "body": [
  309. "int $1 = db.CustomerTableRecord.Count(m => $2);",
  310. ]
  311. },
  312. "添加自建表创建记录": {
  313. "prefix": "ym-db-CustomerTableRecord-Create",
  314. "body": [
  315. "db.CustomerTableRecord.Add(new CustomerTableRecord()",
  316. "{",
  317. " CreateDate = DateTime.Now,",
  318. " UpdateDate = DateTime.Now,",
  319. " TableEnName = $1, //表名",
  320. " CreateDate = $2, //创建时间",
  321. " AddTableDate = $3, //分表时间",
  322. "});"
  323. ]
  324. },"删除某个自建表创建记录": {
  325. "prefix": "ym-db-CustomerTableRecord-Delete",
  326. "body": [
  327. "CustomerTableRecord $1 = db.CustomerTableRecord.FirstOrDefault(m => m.TableEnName == $2);",
  328. "if ($1 != null)",
  329. "{",
  330. " db.CustomerTableRecord.Remove($1);",
  331. "}"
  332. ]
  333. },
  334. "查询快钱MPOS激活抓取列表": {
  335. "prefix": "ym-db-KqActivate-Find",
  336. "body": [
  337. "List<KqActivate> $1 = db.KqActivate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  338. "foreach (KqActivate $3 in $1)",
  339. "{",
  340. "}"
  341. ]
  342. },
  343. "查询快钱MPOS激活抓取列表,并取值": {
  344. "prefix": "ym-db-KqActivate-FindWithData",
  345. "body": [
  346. "List<KqActivate> $1 = db.KqActivate.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  347. "foreach (KqActivate $3 in $1)",
  348. "{",
  349. " string MerNo = $3.MerNo; //商户编号",
  350. " string MerName = $3.MerName; //商户名称",
  351. " string MerMobile = $3.MerMobile; //商户手机号",
  352. " string ProductType = $3.ProductType; //产品类型",
  353. " string MerSnNo = $3.MerSnNo; //终端机身号",
  354. " DateTime MerRegDate = $3.MerRegDate; //注册日期",
  355. " string AssessMonth = $3.AssessMonth; //考核月",
  356. " string AssessMonthCount = $3.AssessMonthCount; //考核第几月",
  357. " string ActivateStatus = $3.ActivateStatus; //激活状态",
  358. " DateTime ActivateDate = $3.ActivateDate; //激活日期",
  359. " string MerRealName = $3.MerRealName; //商户真实姓名",
  360. " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
  361. " string BizEnterNo = $3.BizEnterNo; //业务员编号",
  362. " string BizEnterName = $3.BizEnterName; //业务员名称",
  363. " string ActVerifyFlag = $3.ActVerifyFlag; //激活验证标识",
  364. " string Remark = $3.Remark; //注释",
  365. " DateTime CreateTime = $3.CreateTime; //创建时间",
  366. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  367. " string SourceType = $3.SourceType; //来源类型",
  368. " string ActNo = $3.ActNo; //押金活动ID",
  369. " string ActName = $3.ActName; //押金活动名称",
  370. "}"
  371. ]
  372. },
  373. "查询快钱MPOS激活抓取": {
  374. "prefix": "ym-db-KqActivate-Exist",
  375. "body": [
  376. "bool $1 = db.KqActivate.Any(m => m.MerNo == $2);",
  377. ]
  378. },
  379. "查询某个快钱MPOS激活抓取,并取值": {
  380. "prefix": "ym-db-KqActivate-FindByPrimaryKey",
  381. "body": [
  382. "KqActivate $1 = db.KqActivate.FirstOrDefault(m => m.MerNo == $2);",
  383. "if ($1 != null)",
  384. "{",
  385. " string MerNo = $1.MerNo; //商户编号",
  386. " string MerName = $1.MerName; //商户名称",
  387. " string MerMobile = $1.MerMobile; //商户手机号",
  388. " string ProductType = $1.ProductType; //产品类型",
  389. " string MerSnNo = $1.MerSnNo; //终端机身号",
  390. " DateTime MerRegDate = $1.MerRegDate; //注册日期",
  391. " string AssessMonth = $1.AssessMonth; //考核月",
  392. " string AssessMonthCount = $1.AssessMonthCount; //考核第几月",
  393. " string ActivateStatus = $1.ActivateStatus; //激活状态",
  394. " DateTime ActivateDate = $1.ActivateDate; //激活日期",
  395. " string MerRealName = $1.MerRealName; //商户真实姓名",
  396. " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
  397. " string BizEnterNo = $1.BizEnterNo; //业务员编号",
  398. " string BizEnterName = $1.BizEnterName; //业务员名称",
  399. " string ActVerifyFlag = $1.ActVerifyFlag; //激活验证标识",
  400. " string Remark = $1.Remark; //注释",
  401. " DateTime CreateTime = $1.CreateTime; //创建时间",
  402. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  403. " string SourceType = $1.SourceType; //来源类型",
  404. " string ActNo = $1.ActNo; //押金活动ID",
  405. " string ActName = $1.ActName; //押金活动名称",
  406. "}"
  407. ]
  408. },
  409. "查询某个快钱MPOS激活抓取,并赋值": {
  410. "prefix": "ym-db-KqActivate-Update",
  411. "body": [
  412. "KqActivate $1 = db.KqActivate.FirstOrDefault(m => m.MerNo == $2);",
  413. "if ($1 != null)",
  414. "{",
  415. " $1.MerNo = $2; //商户编号",
  416. " $1.MerName = $3; //商户名称",
  417. " $1.MerMobile = $4; //商户手机号",
  418. " $1.ProductType = $5; //产品类型",
  419. " $1.MerSnNo = $6; //终端机身号",
  420. " $1.MerRegDate = $7; //注册日期",
  421. " $1.AssessMonth = $8; //考核月",
  422. " $1.AssessMonthCount = $9; //考核第几月",
  423. " $1.ActivateStatus = $10; //激活状态",
  424. " $1.ActivateDate = $11; //激活日期",
  425. " $1.MerRealName = $12; //商户真实姓名",
  426. " $1.MerIdcardNo = $13; //商户身份证号",
  427. " $1.BizEnterNo = $14; //业务员编号",
  428. " $1.BizEnterName = $15; //业务员名称",
  429. " $1.ActVerifyFlag = $16; //激活验证标识",
  430. " $1.Remark = $17; //注释",
  431. " $1.CreateTime = $18; //创建时间",
  432. " $1.UpdateTime = $19; //更新时间",
  433. " $1.SourceType = $20; //来源类型",
  434. " $1.ActNo = $21; //押金活动ID",
  435. " $1.ActName = $22; //押金活动名称",
  436. "}"
  437. ]
  438. },
  439. "获取快钱MPOS激活抓取数量": {
  440. "prefix": "ym-db-KqActivate-FindAndCount",
  441. "body": [
  442. "int $1 = db.KqActivate.Count(m => $2);",
  443. ]
  444. },
  445. "添加快钱MPOS激活抓取": {
  446. "prefix": "ym-db-KqActivate-Create",
  447. "body": [
  448. "db.KqActivate.Add(new KqActivate()",
  449. "{",
  450. " CreateDate = DateTime.Now,",
  451. " UpdateDate = DateTime.Now,",
  452. " MerNo = $1, //商户编号",
  453. " MerName = $2, //商户名称",
  454. " MerMobile = $3, //商户手机号",
  455. " ProductType = $4, //产品类型",
  456. " MerSnNo = $5, //终端机身号",
  457. " MerRegDate = $6, //注册日期",
  458. " AssessMonth = $7, //考核月",
  459. " AssessMonthCount = $8, //考核第几月",
  460. " ActivateStatus = $9, //激活状态",
  461. " ActivateDate = $10, //激活日期",
  462. " MerRealName = $11, //商户真实姓名",
  463. " MerIdcardNo = $12, //商户身份证号",
  464. " BizEnterNo = $13, //业务员编号",
  465. " BizEnterName = $14, //业务员名称",
  466. " ActVerifyFlag = $15, //激活验证标识",
  467. " Remark = $16, //注释",
  468. " CreateTime = $17, //创建时间",
  469. " UpdateTime = $18, //更新时间",
  470. " SourceType = $19, //来源类型",
  471. " ActNo = $20, //押金活动ID",
  472. " ActName = $21, //押金活动名称",
  473. "});"
  474. ]
  475. },"删除某个快钱MPOS激活抓取": {
  476. "prefix": "ym-db-KqActivate-Delete",
  477. "body": [
  478. "KqActivate $1 = db.KqActivate.FirstOrDefault(m => m.MerNo == $2);",
  479. "if ($1 != null)",
  480. "{",
  481. " db.KqActivate.Remove($1);",
  482. "}"
  483. ]
  484. },
  485. "查询快钱MPOS激活推送列表": {
  486. "prefix": "ym-db-KqActivateCallBack-Find",
  487. "body": [
  488. "List<KqActivateCallBack> $1 = db.KqActivateCallBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  489. "foreach (KqActivateCallBack $3 in $1)",
  490. "{",
  491. "}"
  492. ]
  493. },
  494. "查询快钱MPOS激活推送列表,并取值": {
  495. "prefix": "ym-db-KqActivateCallBack-FindWithData",
  496. "body": [
  497. "List<KqActivateCallBack> $1 = db.KqActivateCallBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  498. "foreach (KqActivateCallBack $3 in $1)",
  499. "{",
  500. " string MerNo = $3.MerNo; //商户编号",
  501. " string MerName = $3.MerName; //商户名称",
  502. " string MerMobile = $3.MerMobile; //商户手机号",
  503. " string ProductType = $3.ProductType; //产品类型",
  504. " string MerSnNo = $3.MerSnNo; //终端机身号",
  505. " DateTime MerRegDate = $3.MerRegDate; //注册日期",
  506. " string AssessMonth = $3.AssessMonth; //考核月",
  507. " string AssessMonthCount = $3.AssessMonthCount; //考核第几月",
  508. " string ActivateStatus = $3.ActivateStatus; //激活状态",
  509. " DateTime ActivateDate = $3.ActivateDate; //激活日期",
  510. " string MerRealName = $3.MerRealName; //商户真实姓名",
  511. " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
  512. " string BizEnterNo = $3.BizEnterNo; //业务员编号",
  513. " string BizEnterName = $3.BizEnterName; //业务员名称",
  514. " string ActVerifyFlag = $3.ActVerifyFlag; //激活验证标识",
  515. " string Remark = $3.Remark; //注释",
  516. " DateTime CreateTime = $3.CreateTime; //创建时间",
  517. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  518. "}"
  519. ]
  520. },
  521. "查询快钱MPOS激活推送": {
  522. "prefix": "ym-db-KqActivateCallBack-Exist",
  523. "body": [
  524. "bool $1 = db.KqActivateCallBack.Any(m => m.MerNo == $2);",
  525. ]
  526. },
  527. "查询某个快钱MPOS激活推送,并取值": {
  528. "prefix": "ym-db-KqActivateCallBack-FindByPrimaryKey",
  529. "body": [
  530. "KqActivateCallBack $1 = db.KqActivateCallBack.FirstOrDefault(m => m.MerNo == $2);",
  531. "if ($1 != null)",
  532. "{",
  533. " string MerNo = $1.MerNo; //商户编号",
  534. " string MerName = $1.MerName; //商户名称",
  535. " string MerMobile = $1.MerMobile; //商户手机号",
  536. " string ProductType = $1.ProductType; //产品类型",
  537. " string MerSnNo = $1.MerSnNo; //终端机身号",
  538. " DateTime MerRegDate = $1.MerRegDate; //注册日期",
  539. " string AssessMonth = $1.AssessMonth; //考核月",
  540. " string AssessMonthCount = $1.AssessMonthCount; //考核第几月",
  541. " string ActivateStatus = $1.ActivateStatus; //激活状态",
  542. " DateTime ActivateDate = $1.ActivateDate; //激活日期",
  543. " string MerRealName = $1.MerRealName; //商户真实姓名",
  544. " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
  545. " string BizEnterNo = $1.BizEnterNo; //业务员编号",
  546. " string BizEnterName = $1.BizEnterName; //业务员名称",
  547. " string ActVerifyFlag = $1.ActVerifyFlag; //激活验证标识",
  548. " string Remark = $1.Remark; //注释",
  549. " DateTime CreateTime = $1.CreateTime; //创建时间",
  550. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  551. "}"
  552. ]
  553. },
  554. "查询某个快钱MPOS激活推送,并赋值": {
  555. "prefix": "ym-db-KqActivateCallBack-Update",
  556. "body": [
  557. "KqActivateCallBack $1 = db.KqActivateCallBack.FirstOrDefault(m => m.MerNo == $2);",
  558. "if ($1 != null)",
  559. "{",
  560. " $1.MerNo = $2; //商户编号",
  561. " $1.MerName = $3; //商户名称",
  562. " $1.MerMobile = $4; //商户手机号",
  563. " $1.ProductType = $5; //产品类型",
  564. " $1.MerSnNo = $6; //终端机身号",
  565. " $1.MerRegDate = $7; //注册日期",
  566. " $1.AssessMonth = $8; //考核月",
  567. " $1.AssessMonthCount = $9; //考核第几月",
  568. " $1.ActivateStatus = $10; //激活状态",
  569. " $1.ActivateDate = $11; //激活日期",
  570. " $1.MerRealName = $12; //商户真实姓名",
  571. " $1.MerIdcardNo = $13; //商户身份证号",
  572. " $1.BizEnterNo = $14; //业务员编号",
  573. " $1.BizEnterName = $15; //业务员名称",
  574. " $1.ActVerifyFlag = $16; //激活验证标识",
  575. " $1.Remark = $17; //注释",
  576. " $1.CreateTime = $18; //创建时间",
  577. " $1.UpdateTime = $19; //更新时间",
  578. "}"
  579. ]
  580. },
  581. "获取快钱MPOS激活推送数量": {
  582. "prefix": "ym-db-KqActivateCallBack-FindAndCount",
  583. "body": [
  584. "int $1 = db.KqActivateCallBack.Count(m => $2);",
  585. ]
  586. },
  587. "添加快钱MPOS激活推送": {
  588. "prefix": "ym-db-KqActivateCallBack-Create",
  589. "body": [
  590. "db.KqActivateCallBack.Add(new KqActivateCallBack()",
  591. "{",
  592. " CreateDate = DateTime.Now,",
  593. " UpdateDate = DateTime.Now,",
  594. " MerNo = $1, //商户编号",
  595. " MerName = $2, //商户名称",
  596. " MerMobile = $3, //商户手机号",
  597. " ProductType = $4, //产品类型",
  598. " MerSnNo = $5, //终端机身号",
  599. " MerRegDate = $6, //注册日期",
  600. " AssessMonth = $7, //考核月",
  601. " AssessMonthCount = $8, //考核第几月",
  602. " ActivateStatus = $9, //激活状态",
  603. " ActivateDate = $10, //激活日期",
  604. " MerRealName = $11, //商户真实姓名",
  605. " MerIdcardNo = $12, //商户身份证号",
  606. " BizEnterNo = $13, //业务员编号",
  607. " BizEnterName = $14, //业务员名称",
  608. " ActVerifyFlag = $15, //激活验证标识",
  609. " Remark = $16, //注释",
  610. " CreateTime = $17, //创建时间",
  611. " UpdateTime = $18, //更新时间",
  612. "});"
  613. ]
  614. },"删除某个快钱MPOS激活推送": {
  615. "prefix": "ym-db-KqActivateCallBack-Delete",
  616. "body": [
  617. "KqActivateCallBack $1 = db.KqActivateCallBack.FirstOrDefault(m => m.MerNo == $2);",
  618. "if ($1 != null)",
  619. "{",
  620. " db.KqActivateCallBack.Remove($1);",
  621. "}"
  622. ]
  623. },
  624. "查询快钱Mpos商户列表": {
  625. "prefix": "ym-db-KqMerchant-Find",
  626. "body": [
  627. "List<KqMerchant> $1 = db.KqMerchant.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  628. "foreach (KqMerchant $3 in $1)",
  629. "{",
  630. "}"
  631. ]
  632. },
  633. "查询快钱Mpos商户列表,并取值": {
  634. "prefix": "ym-db-KqMerchant-FindWithData",
  635. "body": [
  636. "List<KqMerchant> $1 = db.KqMerchant.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  637. "foreach (KqMerchant $3 in $1)",
  638. "{",
  639. " string MerNo = $3.MerNo; //商户编号",
  640. " string MerName = $3.MerName; //商户名称",
  641. " string MerMobile = $3.MerMobile; //商户手机号",
  642. " string ProductType = $3.ProductType; //产品类型",
  643. " string MerSnNo = $3.MerSnNo; //终端机身号",
  644. " DateTime MerRegDate = $3.MerRegDate; //注册日期",
  645. " DateTime MerBindDate = $3.MerBindDate; //商户绑定时间",
  646. " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
  647. " string MerRealName = $3.MerRealName; //商户真实姓名",
  648. " string BizEnterNo = $3.BizEnterNo; //业务员编号",
  649. " string BizEnterName = $3.BizEnterName; //业务员名称",
  650. " string SourceType = $3.SourceType; //来源类型",
  651. " string Province = $3.Province; //省份",
  652. " string City = $3.City; //城市",
  653. " string Remark = $3.Remark; //注释",
  654. " DateTime CreateTime = $3.CreateTime; //创建时间",
  655. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  656. "}"
  657. ]
  658. },
  659. "查询快钱Mpos商户": {
  660. "prefix": "ym-db-KqMerchant-Exist",
  661. "body": [
  662. "bool $1 = db.KqMerchant.Any(m => m.MerNo == $2);",
  663. ]
  664. },
  665. "查询某个快钱Mpos商户,并取值": {
  666. "prefix": "ym-db-KqMerchant-FindByPrimaryKey",
  667. "body": [
  668. "KqMerchant $1 = db.KqMerchant.FirstOrDefault(m => m.MerNo == $2);",
  669. "if ($1 != null)",
  670. "{",
  671. " string MerNo = $1.MerNo; //商户编号",
  672. " string MerName = $1.MerName; //商户名称",
  673. " string MerMobile = $1.MerMobile; //商户手机号",
  674. " string ProductType = $1.ProductType; //产品类型",
  675. " string MerSnNo = $1.MerSnNo; //终端机身号",
  676. " DateTime MerRegDate = $1.MerRegDate; //注册日期",
  677. " DateTime MerBindDate = $1.MerBindDate; //商户绑定时间",
  678. " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
  679. " string MerRealName = $1.MerRealName; //商户真实姓名",
  680. " string BizEnterNo = $1.BizEnterNo; //业务员编号",
  681. " string BizEnterName = $1.BizEnterName; //业务员名称",
  682. " string SourceType = $1.SourceType; //来源类型",
  683. " string Province = $1.Province; //省份",
  684. " string City = $1.City; //城市",
  685. " string Remark = $1.Remark; //注释",
  686. " DateTime CreateTime = $1.CreateTime; //创建时间",
  687. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  688. "}"
  689. ]
  690. },
  691. "查询某个快钱Mpos商户,并赋值": {
  692. "prefix": "ym-db-KqMerchant-Update",
  693. "body": [
  694. "KqMerchant $1 = db.KqMerchant.FirstOrDefault(m => m.MerNo == $2);",
  695. "if ($1 != null)",
  696. "{",
  697. " $1.MerNo = $2; //商户编号",
  698. " $1.MerName = $3; //商户名称",
  699. " $1.MerMobile = $4; //商户手机号",
  700. " $1.ProductType = $5; //产品类型",
  701. " $1.MerSnNo = $6; //终端机身号",
  702. " $1.MerRegDate = $7; //注册日期",
  703. " $1.MerBindDate = $8; //商户绑定时间",
  704. " $1.MerIdcardNo = $9; //商户身份证号",
  705. " $1.MerRealName = $10; //商户真实姓名",
  706. " $1.BizEnterNo = $11; //业务员编号",
  707. " $1.BizEnterName = $12; //业务员名称",
  708. " $1.SourceType = $13; //来源类型",
  709. " $1.Province = $14; //省份",
  710. " $1.City = $15; //城市",
  711. " $1.Remark = $16; //注释",
  712. " $1.CreateTime = $17; //创建时间",
  713. " $1.UpdateTime = $18; //更新时间",
  714. "}"
  715. ]
  716. },
  717. "获取快钱Mpos商户数量": {
  718. "prefix": "ym-db-KqMerchant-FindAndCount",
  719. "body": [
  720. "int $1 = db.KqMerchant.Count(m => $2);",
  721. ]
  722. },
  723. "添加快钱Mpos商户": {
  724. "prefix": "ym-db-KqMerchant-Create",
  725. "body": [
  726. "db.KqMerchant.Add(new KqMerchant()",
  727. "{",
  728. " CreateDate = DateTime.Now,",
  729. " UpdateDate = DateTime.Now,",
  730. " MerNo = $1, //商户编号",
  731. " MerName = $2, //商户名称",
  732. " MerMobile = $3, //商户手机号",
  733. " ProductType = $4, //产品类型",
  734. " MerSnNo = $5, //终端机身号",
  735. " MerRegDate = $6, //注册日期",
  736. " MerBindDate = $7, //商户绑定时间",
  737. " MerIdcardNo = $8, //商户身份证号",
  738. " MerRealName = $9, //商户真实姓名",
  739. " BizEnterNo = $10, //业务员编号",
  740. " BizEnterName = $11, //业务员名称",
  741. " SourceType = $12, //来源类型",
  742. " Province = $13, //省份",
  743. " City = $14, //城市",
  744. " Remark = $15, //注释",
  745. " CreateTime = $16, //创建时间",
  746. " UpdateTime = $17, //更新时间",
  747. "});"
  748. ]
  749. },"删除某个快钱Mpos商户": {
  750. "prefix": "ym-db-KqMerchant-Delete",
  751. "body": [
  752. "KqMerchant $1 = db.KqMerchant.FirstOrDefault(m => m.MerNo == $2);",
  753. "if ($1 != null)",
  754. "{",
  755. " db.KqMerchant.Remove($1);",
  756. "}"
  757. ]
  758. },
  759. "查询快钱Mpos交易抓取列表": {
  760. "prefix": "ym-db-KqTrade-Find",
  761. "body": [
  762. "List<KqTrade> $1 = db.KqTrade.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  763. "foreach (KqTrade $3 in $1)",
  764. "{",
  765. "}"
  766. ]
  767. },
  768. "查询快钱Mpos交易抓取列表,并取值": {
  769. "prefix": "ym-db-KqTrade-FindWithData",
  770. "body": [
  771. "List<KqTrade> $1 = db.KqTrade.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  772. "foreach (KqTrade $3 in $1)",
  773. "{",
  774. " string TradeSerialNo = $3.TradeSerialNo; //交易单号",
  775. " string MerNo = $3.MerNo; //商户编号",
  776. " string MerName = $3.MerName; //商户名称",
  777. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  778. " string ProductType = $3.ProductType; //产品类型",
  779. " string TradeStatus = $3.TradeStatus; //交易状态",
  780. " string TradeDate = $3.TradeDate; //交易日期",
  781. " string TradeTime = $3.TradeTime; //交易时间",
  782. " string BankCardType = $3.BankCardType; //银行卡类型",
  783. " string TradeSnNo = $3.TradeSnNo; //交易SN号",
  784. " string DigAmtFlag = $3.DigAmtFlag; //挖款标识",
  785. " decimal DigAmt = $3.DigAmt; //挖款金额",
  786. " string Remark = $3.Remark; //注释",
  787. " DateTime CreateTime = $3.CreateTime; //创建时间",
  788. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  789. " string BankCardNo = $3.BankCardNo; //交易卡号",
  790. " decimal FeeAmount = $3.FeeAmount; //手续费",
  791. " string SettleMethod = $3.SettleMethod; //出款方式",
  792. " decimal SettleFee = $3.SettleFee; //出款手续费",
  793. " string SmallDouble = $3.SmallDouble; //小额双免",
  794. " string BizEnterNo = $3.BizEnterNo; //业务员编号",
  795. " string BizEnterName = $3.BizEnterName; //业务员名称",
  796. " string SourceType = $3.SourceType; //来源类型",
  797. " decimal SettleTotalFee = $3.SettleTotalFee; //总手续费",
  798. " string BillType = $3.BillType; //计费类型",
  799. " decimal SettleFeeCostAmt = $3.SettleFeeCostAmt; //手续费成本金额",
  800. " decimal SettleFeeRebateAmt = $3.SettleFeeRebateAmt; //手续费返佣金额",
  801. " decimal SettleCostAmt = $3.SettleCostAmt; //出款成本金额",
  802. " decimal SettleRebateAmt = $3.SettleRebateAmt; //出款返佣金额",
  803. " decimal TotalCostAmt = $3.TotalCostAmt; //总成本",
  804. " decimal TotalRebateAmt = $3.TotalRebateAmt; //总返佣额",
  805. " string S0SettleStatus = $3.S0SettleStatus; //S0出款状态",
  806. " string DigStatus = $3.DigStatus; //挖款状态",
  807. " string KqTradeSeq = $3.KqTradeSeq; //快钱交易流水号",
  808. " string InputModel = $3.InputModel; //输入模式",
  809. "}"
  810. ]
  811. },
  812. "查询快钱Mpos交易抓取": {
  813. "prefix": "ym-db-KqTrade-Exist",
  814. "body": [
  815. "bool $1 = db.KqTrade.Any(m => m.MerNo == $2);",
  816. ]
  817. },
  818. "查询某个快钱Mpos交易抓取,并取值": {
  819. "prefix": "ym-db-KqTrade-FindByPrimaryKey",
  820. "body": [
  821. "KqTrade $1 = db.KqTrade.FirstOrDefault(m => m.MerNo == $2);",
  822. "if ($1 != null)",
  823. "{",
  824. " string TradeSerialNo = $1.TradeSerialNo; //交易单号",
  825. " string MerNo = $1.MerNo; //商户编号",
  826. " string MerName = $1.MerName; //商户名称",
  827. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  828. " string ProductType = $1.ProductType; //产品类型",
  829. " string TradeStatus = $1.TradeStatus; //交易状态",
  830. " string TradeDate = $1.TradeDate; //交易日期",
  831. " string TradeTime = $1.TradeTime; //交易时间",
  832. " string BankCardType = $1.BankCardType; //银行卡类型",
  833. " string TradeSnNo = $1.TradeSnNo; //交易SN号",
  834. " string DigAmtFlag = $1.DigAmtFlag; //挖款标识",
  835. " decimal DigAmt = $1.DigAmt; //挖款金额",
  836. " string Remark = $1.Remark; //注释",
  837. " DateTime CreateTime = $1.CreateTime; //创建时间",
  838. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  839. " string BankCardNo = $1.BankCardNo; //交易卡号",
  840. " decimal FeeAmount = $1.FeeAmount; //手续费",
  841. " string SettleMethod = $1.SettleMethod; //出款方式",
  842. " decimal SettleFee = $1.SettleFee; //出款手续费",
  843. " string SmallDouble = $1.SmallDouble; //小额双免",
  844. " string BizEnterNo = $1.BizEnterNo; //业务员编号",
  845. " string BizEnterName = $1.BizEnterName; //业务员名称",
  846. " string SourceType = $1.SourceType; //来源类型",
  847. " decimal SettleTotalFee = $1.SettleTotalFee; //总手续费",
  848. " string BillType = $1.BillType; //计费类型",
  849. " decimal SettleFeeCostAmt = $1.SettleFeeCostAmt; //手续费成本金额",
  850. " decimal SettleFeeRebateAmt = $1.SettleFeeRebateAmt; //手续费返佣金额",
  851. " decimal SettleCostAmt = $1.SettleCostAmt; //出款成本金额",
  852. " decimal SettleRebateAmt = $1.SettleRebateAmt; //出款返佣金额",
  853. " decimal TotalCostAmt = $1.TotalCostAmt; //总成本",
  854. " decimal TotalRebateAmt = $1.TotalRebateAmt; //总返佣额",
  855. " string S0SettleStatus = $1.S0SettleStatus; //S0出款状态",
  856. " string DigStatus = $1.DigStatus; //挖款状态",
  857. " string KqTradeSeq = $1.KqTradeSeq; //快钱交易流水号",
  858. " string InputModel = $1.InputModel; //输入模式",
  859. "}"
  860. ]
  861. },
  862. "查询某个快钱Mpos交易抓取,并赋值": {
  863. "prefix": "ym-db-KqTrade-Update",
  864. "body": [
  865. "KqTrade $1 = db.KqTrade.FirstOrDefault(m => m.MerNo == $2);",
  866. "if ($1 != null)",
  867. "{",
  868. " $1.TradeSerialNo = $2; //交易单号",
  869. " $1.MerNo = $3; //商户编号",
  870. " $1.MerName = $4; //商户名称",
  871. " $1.TradeAmount = $5; //交易金额",
  872. " $1.ProductType = $6; //产品类型",
  873. " $1.TradeStatus = $7; //交易状态",
  874. " $1.TradeDate = $8; //交易日期",
  875. " $1.TradeTime = $9; //交易时间",
  876. " $1.BankCardType = $10; //银行卡类型",
  877. " $1.TradeSnNo = $11; //交易SN号",
  878. " $1.DigAmtFlag = $12; //挖款标识",
  879. " $1.DigAmt = $13; //挖款金额",
  880. " $1.Remark = $14; //注释",
  881. " $1.CreateTime = $15; //创建时间",
  882. " $1.UpdateTime = $16; //更新时间",
  883. " $1.BankCardNo = $17; //交易卡号",
  884. " $1.FeeAmount = $18; //手续费",
  885. " $1.SettleMethod = $19; //出款方式",
  886. " $1.SettleFee = $20; //出款手续费",
  887. " $1.SmallDouble = $21; //小额双免",
  888. " $1.BizEnterNo = $22; //业务员编号",
  889. " $1.BizEnterName = $23; //业务员名称",
  890. " $1.SourceType = $24; //来源类型",
  891. " $1.SettleTotalFee = $25; //总手续费",
  892. " $1.BillType = $26; //计费类型",
  893. " $1.SettleFeeCostAmt = $27; //手续费成本金额",
  894. " $1.SettleFeeRebateAmt = $28; //手续费返佣金额",
  895. " $1.SettleCostAmt = $29; //出款成本金额",
  896. " $1.SettleRebateAmt = $30; //出款返佣金额",
  897. " $1.TotalCostAmt = $31; //总成本",
  898. " $1.TotalRebateAmt = $32; //总返佣额",
  899. " $1.S0SettleStatus = $33; //S0出款状态",
  900. " $1.DigStatus = $34; //挖款状态",
  901. " $1.KqTradeSeq = $35; //快钱交易流水号",
  902. " $1.InputModel = $36; //输入模式",
  903. "}"
  904. ]
  905. },
  906. "获取快钱Mpos交易抓取数量": {
  907. "prefix": "ym-db-KqTrade-FindAndCount",
  908. "body": [
  909. "int $1 = db.KqTrade.Count(m => $2);",
  910. ]
  911. },
  912. "添加快钱Mpos交易抓取": {
  913. "prefix": "ym-db-KqTrade-Create",
  914. "body": [
  915. "db.KqTrade.Add(new KqTrade()",
  916. "{",
  917. " CreateDate = DateTime.Now,",
  918. " UpdateDate = DateTime.Now,",
  919. " TradeSerialNo = $1, //交易单号",
  920. " MerNo = $2, //商户编号",
  921. " MerName = $3, //商户名称",
  922. " TradeAmount = $4, //交易金额",
  923. " ProductType = $5, //产品类型",
  924. " TradeStatus = $6, //交易状态",
  925. " TradeDate = $7, //交易日期",
  926. " TradeTime = $8, //交易时间",
  927. " BankCardType = $9, //银行卡类型",
  928. " TradeSnNo = $10, //交易SN号",
  929. " DigAmtFlag = $11, //挖款标识",
  930. " DigAmt = $12, //挖款金额",
  931. " Remark = $13, //注释",
  932. " CreateTime = $14, //创建时间",
  933. " UpdateTime = $15, //更新时间",
  934. " BankCardNo = $16, //交易卡号",
  935. " FeeAmount = $17, //手续费",
  936. " SettleMethod = $18, //出款方式",
  937. " SettleFee = $19, //出款手续费",
  938. " SmallDouble = $20, //小额双免",
  939. " BizEnterNo = $21, //业务员编号",
  940. " BizEnterName = $22, //业务员名称",
  941. " SourceType = $23, //来源类型",
  942. " SettleTotalFee = $24, //总手续费",
  943. " BillType = $25, //计费类型",
  944. " SettleFeeCostAmt = $26, //手续费成本金额",
  945. " SettleFeeRebateAmt = $27, //手续费返佣金额",
  946. " SettleCostAmt = $28, //出款成本金额",
  947. " SettleRebateAmt = $29, //出款返佣金额",
  948. " TotalCostAmt = $30, //总成本",
  949. " TotalRebateAmt = $31, //总返佣额",
  950. " S0SettleStatus = $32, //S0出款状态",
  951. " DigStatus = $33, //挖款状态",
  952. " KqTradeSeq = $34, //快钱交易流水号",
  953. " InputModel = $35, //输入模式",
  954. "});"
  955. ]
  956. },"删除某个快钱Mpos交易抓取": {
  957. "prefix": "ym-db-KqTrade-Delete",
  958. "body": [
  959. "KqTrade $1 = db.KqTrade.FirstOrDefault(m => m.MerNo == $2);",
  960. "if ($1 != null)",
  961. "{",
  962. " db.KqTrade.Remove($1);",
  963. "}"
  964. ]
  965. },
  966. "查询快钱Mpos交易推送列表": {
  967. "prefix": "ym-db-KqTradeCallBack-Find",
  968. "body": [
  969. "List<KqTradeCallBack> $1 = db.KqTradeCallBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  970. "foreach (KqTradeCallBack $3 in $1)",
  971. "{",
  972. "}"
  973. ]
  974. },
  975. "查询快钱Mpos交易推送列表,并取值": {
  976. "prefix": "ym-db-KqTradeCallBack-FindWithData",
  977. "body": [
  978. "List<KqTradeCallBack> $1 = db.KqTradeCallBack.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  979. "foreach (KqTradeCallBack $3 in $1)",
  980. "{",
  981. " string TradeSerialNo = $3.TradeSerialNo; //交易单号",
  982. " string MerNo = $3.MerNo; //商户编号",
  983. " string MerName = $3.MerName; //商户名称",
  984. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  985. " string TradeReferNo = $3.TradeReferNo; //交易参考号",
  986. " string BankAuthCode = $3.BankAuthCode; //银行授权码",
  987. " string DiscountRateFlag = $3.DiscountRateFlag; //优惠费率标识",
  988. " string ProductType = $3.ProductType; //产品类型",
  989. " string Trade_status = $3.Trade_status; //交易状态",
  990. " string ErrorCode = $3.ErrorCode; //错误码",
  991. " string ErrorMsg = $3.ErrorMsg; //错误信息",
  992. " string TradeDate = $3.TradeDate; //交易日期",
  993. " string TradeTime = $3.TradeTime; //交易时间",
  994. " string TradeType = $3.TradeType; //交易类型",
  995. " string SerEntryMode = $3.SerEntryMode; //输入模式",
  996. " string BankCardType = $3.BankCardType; //银行卡类型",
  997. " string TradeSnNo = $3.TradeSnNo; //交易SN号",
  998. " string DeviceType = $3.DeviceType; //设备类型",
  999. " string MerMobile = $3.MerMobile; //商户手机号",
  1000. " string DigAmtFlag = $3.DigAmtFlag; //挖款标识",
  1001. " decimal DigAmt = $3.DigAmt; //挖款金额",
  1002. " string IsStoreCashier = $3.IsStoreCashier; //店面收银交易标识",
  1003. " string ReceiptType = $3.ReceiptType; //设备类型",
  1004. " string Remark = $3.Remark; //注释",
  1005. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1006. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1007. "}"
  1008. ]
  1009. },
  1010. "查询快钱Mpos交易推送": {
  1011. "prefix": "ym-db-KqTradeCallBack-Exist",
  1012. "body": [
  1013. "bool $1 = db.KqTradeCallBack.Any(m => m.MerNo == $2);",
  1014. ]
  1015. },
  1016. "查询某个快钱Mpos交易推送,并取值": {
  1017. "prefix": "ym-db-KqTradeCallBack-FindByPrimaryKey",
  1018. "body": [
  1019. "KqTradeCallBack $1 = db.KqTradeCallBack.FirstOrDefault(m => m.MerNo == $2);",
  1020. "if ($1 != null)",
  1021. "{",
  1022. " string TradeSerialNo = $1.TradeSerialNo; //交易单号",
  1023. " string MerNo = $1.MerNo; //商户编号",
  1024. " string MerName = $1.MerName; //商户名称",
  1025. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  1026. " string TradeReferNo = $1.TradeReferNo; //交易参考号",
  1027. " string BankAuthCode = $1.BankAuthCode; //银行授权码",
  1028. " string DiscountRateFlag = $1.DiscountRateFlag; //优惠费率标识",
  1029. " string ProductType = $1.ProductType; //产品类型",
  1030. " string Trade_status = $1.Trade_status; //交易状态",
  1031. " string ErrorCode = $1.ErrorCode; //错误码",
  1032. " string ErrorMsg = $1.ErrorMsg; //错误信息",
  1033. " string TradeDate = $1.TradeDate; //交易日期",
  1034. " string TradeTime = $1.TradeTime; //交易时间",
  1035. " string TradeType = $1.TradeType; //交易类型",
  1036. " string SerEntryMode = $1.SerEntryMode; //输入模式",
  1037. " string BankCardType = $1.BankCardType; //银行卡类型",
  1038. " string TradeSnNo = $1.TradeSnNo; //交易SN号",
  1039. " string DeviceType = $1.DeviceType; //设备类型",
  1040. " string MerMobile = $1.MerMobile; //商户手机号",
  1041. " string DigAmtFlag = $1.DigAmtFlag; //挖款标识",
  1042. " decimal DigAmt = $1.DigAmt; //挖款金额",
  1043. " string IsStoreCashier = $1.IsStoreCashier; //店面收银交易标识",
  1044. " string ReceiptType = $1.ReceiptType; //设备类型",
  1045. " string Remark = $1.Remark; //注释",
  1046. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1047. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1048. "}"
  1049. ]
  1050. },
  1051. "查询某个快钱Mpos交易推送,并赋值": {
  1052. "prefix": "ym-db-KqTradeCallBack-Update",
  1053. "body": [
  1054. "KqTradeCallBack $1 = db.KqTradeCallBack.FirstOrDefault(m => m.MerNo == $2);",
  1055. "if ($1 != null)",
  1056. "{",
  1057. " $1.TradeSerialNo = $2; //交易单号",
  1058. " $1.MerNo = $3; //商户编号",
  1059. " $1.MerName = $4; //商户名称",
  1060. " $1.TradeAmount = $5; //交易金额",
  1061. " $1.TradeReferNo = $6; //交易参考号",
  1062. " $1.BankAuthCode = $7; //银行授权码",
  1063. " $1.DiscountRateFlag = $8; //优惠费率标识",
  1064. " $1.ProductType = $9; //产品类型",
  1065. " $1.Trade_status = $10; //交易状态",
  1066. " $1.ErrorCode = $11; //错误码",
  1067. " $1.ErrorMsg = $12; //错误信息",
  1068. " $1.TradeDate = $13; //交易日期",
  1069. " $1.TradeTime = $14; //交易时间",
  1070. " $1.TradeType = $15; //交易类型",
  1071. " $1.SerEntryMode = $16; //输入模式",
  1072. " $1.BankCardType = $17; //银行卡类型",
  1073. " $1.TradeSnNo = $18; //交易SN号",
  1074. " $1.DeviceType = $19; //设备类型",
  1075. " $1.MerMobile = $20; //商户手机号",
  1076. " $1.DigAmtFlag = $21; //挖款标识",
  1077. " $1.DigAmt = $22; //挖款金额",
  1078. " $1.IsStoreCashier = $23; //店面收银交易标识",
  1079. " $1.ReceiptType = $24; //设备类型",
  1080. " $1.Remark = $25; //注释",
  1081. " $1.CreateTime = $26; //创建时间",
  1082. " $1.UpdateTime = $27; //更新时间",
  1083. "}"
  1084. ]
  1085. },
  1086. "获取快钱Mpos交易推送数量": {
  1087. "prefix": "ym-db-KqTradeCallBack-FindAndCount",
  1088. "body": [
  1089. "int $1 = db.KqTradeCallBack.Count(m => $2);",
  1090. ]
  1091. },
  1092. "添加快钱Mpos交易推送": {
  1093. "prefix": "ym-db-KqTradeCallBack-Create",
  1094. "body": [
  1095. "db.KqTradeCallBack.Add(new KqTradeCallBack()",
  1096. "{",
  1097. " CreateDate = DateTime.Now,",
  1098. " UpdateDate = DateTime.Now,",
  1099. " TradeSerialNo = $1, //交易单号",
  1100. " MerNo = $2, //商户编号",
  1101. " MerName = $3, //商户名称",
  1102. " TradeAmount = $4, //交易金额",
  1103. " TradeReferNo = $5, //交易参考号",
  1104. " BankAuthCode = $6, //银行授权码",
  1105. " DiscountRateFlag = $7, //优惠费率标识",
  1106. " ProductType = $8, //产品类型",
  1107. " Trade_status = $9, //交易状态",
  1108. " ErrorCode = $10, //错误码",
  1109. " ErrorMsg = $11, //错误信息",
  1110. " TradeDate = $12, //交易日期",
  1111. " TradeTime = $13, //交易时间",
  1112. " TradeType = $14, //交易类型",
  1113. " SerEntryMode = $15, //输入模式",
  1114. " BankCardType = $16, //银行卡类型",
  1115. " TradeSnNo = $17, //交易SN号",
  1116. " DeviceType = $18, //设备类型",
  1117. " MerMobile = $19, //商户手机号",
  1118. " DigAmtFlag = $20, //挖款标识",
  1119. " DigAmt = $21, //挖款金额",
  1120. " IsStoreCashier = $22, //店面收银交易标识",
  1121. " ReceiptType = $23, //设备类型",
  1122. " Remark = $24, //注释",
  1123. " CreateTime = $25, //创建时间",
  1124. " UpdateTime = $26, //更新时间",
  1125. "});"
  1126. ]
  1127. },"删除某个快钱Mpos交易推送": {
  1128. "prefix": "ym-db-KqTradeCallBack-Delete",
  1129. "body": [
  1130. "KqTradeCallBack $1 = db.KqTradeCallBack.FirstOrDefault(m => m.MerNo == $2);",
  1131. "if ($1 != null)",
  1132. "{",
  1133. " db.KqTradeCallBack.Remove($1);",
  1134. "}"
  1135. ]
  1136. },
  1137. "查询快钱流量卡分佣交易列表": {
  1138. "prefix": "ym-db-KqTradeFlux-Find",
  1139. "body": [
  1140. "List<KqTradeFlux> $1 = db.KqTradeFlux.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1141. "foreach (KqTradeFlux $3 in $1)",
  1142. "{",
  1143. "}"
  1144. ]
  1145. },
  1146. "查询快钱流量卡分佣交易列表,并取值": {
  1147. "prefix": "ym-db-KqTradeFlux-FindWithData",
  1148. "body": [
  1149. "List<KqTradeFlux> $1 = db.KqTradeFlux.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1150. "foreach (KqTradeFlux $3 in $1)",
  1151. "{",
  1152. " string TradeSerialNo = $3.TradeSerialNo; //交易单号",
  1153. " string MerNo = $3.MerNo; //商户编号",
  1154. " string MerName = $3.MerName; //商户名称",
  1155. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  1156. " string ProductType = $3.ProductType; //产品类型",
  1157. " string TradeStatus = $3.TradeStatus; //交易状态",
  1158. " string TradeDate = $3.TradeDate; //交易日期",
  1159. " string TradeTime = $3.TradeTime; //交易时间",
  1160. " string BankCardType = $3.BankCardType; //银行卡类型",
  1161. " string TradeSnNo = $3.TradeSnNo; //交易SN号",
  1162. " string DigAmtFlag = $3.DigAmtFlag; //挖款标识",
  1163. " decimal DigAmt = $3.DigAmt; //挖款金额",
  1164. " string Remark = $3.Remark; //注释",
  1165. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1166. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1167. " string BankCardNo = $3.BankCardNo; //交易卡号",
  1168. " decimal FeeAmount = $3.FeeAmount; //手续费",
  1169. " string SettleMethod = $3.SettleMethod; //出款方式",
  1170. " decimal SettleFee = $3.SettleFee; //出款手续费",
  1171. " string SmallDouble = $3.SmallDouble; //小额双免",
  1172. " string BizEnterNo = $3.BizEnterNo; //业务员编号",
  1173. " string BizEnterName = $3.BizEnterName; //业务员名称",
  1174. " string SourceType = $3.SourceType; //来源类型",
  1175. " string BillType = $3.BillType; //计费类型",
  1176. " string KqTradeSeq = $3.KqTradeSeq; //快钱交易流水号",
  1177. " string InputModel = $3.InputModel; //输入模式",
  1178. " string TerminalNo = $3.TerminalNo; //终端号",
  1179. " string DeviceNetwork = $3.DeviceNetwork; //设备网络",
  1180. "}"
  1181. ]
  1182. },
  1183. "查询快钱流量卡分佣交易": {
  1184. "prefix": "ym-db-KqTradeFlux-Exist",
  1185. "body": [
  1186. "bool $1 = db.KqTradeFlux.Any(m => m.MerNo == $2);",
  1187. ]
  1188. },
  1189. "查询某个快钱流量卡分佣交易,并取值": {
  1190. "prefix": "ym-db-KqTradeFlux-FindByPrimaryKey",
  1191. "body": [
  1192. "KqTradeFlux $1 = db.KqTradeFlux.FirstOrDefault(m => m.MerNo == $2);",
  1193. "if ($1 != null)",
  1194. "{",
  1195. " string TradeSerialNo = $1.TradeSerialNo; //交易单号",
  1196. " string MerNo = $1.MerNo; //商户编号",
  1197. " string MerName = $1.MerName; //商户名称",
  1198. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  1199. " string ProductType = $1.ProductType; //产品类型",
  1200. " string TradeStatus = $1.TradeStatus; //交易状态",
  1201. " string TradeDate = $1.TradeDate; //交易日期",
  1202. " string TradeTime = $1.TradeTime; //交易时间",
  1203. " string BankCardType = $1.BankCardType; //银行卡类型",
  1204. " string TradeSnNo = $1.TradeSnNo; //交易SN号",
  1205. " string DigAmtFlag = $1.DigAmtFlag; //挖款标识",
  1206. " decimal DigAmt = $1.DigAmt; //挖款金额",
  1207. " string Remark = $1.Remark; //注释",
  1208. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1209. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1210. " string BankCardNo = $1.BankCardNo; //交易卡号",
  1211. " decimal FeeAmount = $1.FeeAmount; //手续费",
  1212. " string SettleMethod = $1.SettleMethod; //出款方式",
  1213. " decimal SettleFee = $1.SettleFee; //出款手续费",
  1214. " string SmallDouble = $1.SmallDouble; //小额双免",
  1215. " string BizEnterNo = $1.BizEnterNo; //业务员编号",
  1216. " string BizEnterName = $1.BizEnterName; //业务员名称",
  1217. " string SourceType = $1.SourceType; //来源类型",
  1218. " string BillType = $1.BillType; //计费类型",
  1219. " string KqTradeSeq = $1.KqTradeSeq; //快钱交易流水号",
  1220. " string InputModel = $1.InputModel; //输入模式",
  1221. " string TerminalNo = $1.TerminalNo; //终端号",
  1222. " string DeviceNetwork = $1.DeviceNetwork; //设备网络",
  1223. "}"
  1224. ]
  1225. },
  1226. "查询某个快钱流量卡分佣交易,并赋值": {
  1227. "prefix": "ym-db-KqTradeFlux-Update",
  1228. "body": [
  1229. "KqTradeFlux $1 = db.KqTradeFlux.FirstOrDefault(m => m.MerNo == $2);",
  1230. "if ($1 != null)",
  1231. "{",
  1232. " $1.TradeSerialNo = $2; //交易单号",
  1233. " $1.MerNo = $3; //商户编号",
  1234. " $1.MerName = $4; //商户名称",
  1235. " $1.TradeAmount = $5; //交易金额",
  1236. " $1.ProductType = $6; //产品类型",
  1237. " $1.TradeStatus = $7; //交易状态",
  1238. " $1.TradeDate = $8; //交易日期",
  1239. " $1.TradeTime = $9; //交易时间",
  1240. " $1.BankCardType = $10; //银行卡类型",
  1241. " $1.TradeSnNo = $11; //交易SN号",
  1242. " $1.DigAmtFlag = $12; //挖款标识",
  1243. " $1.DigAmt = $13; //挖款金额",
  1244. " $1.Remark = $14; //注释",
  1245. " $1.CreateTime = $15; //创建时间",
  1246. " $1.UpdateTime = $16; //更新时间",
  1247. " $1.BankCardNo = $17; //交易卡号",
  1248. " $1.FeeAmount = $18; //手续费",
  1249. " $1.SettleMethod = $19; //出款方式",
  1250. " $1.SettleFee = $20; //出款手续费",
  1251. " $1.SmallDouble = $21; //小额双免",
  1252. " $1.BizEnterNo = $22; //业务员编号",
  1253. " $1.BizEnterName = $23; //业务员名称",
  1254. " $1.SourceType = $24; //来源类型",
  1255. " $1.BillType = $25; //计费类型",
  1256. " $1.KqTradeSeq = $26; //快钱交易流水号",
  1257. " $1.InputModel = $27; //输入模式",
  1258. " $1.TerminalNo = $28; //终端号",
  1259. " $1.DeviceNetwork = $29; //设备网络",
  1260. "}"
  1261. ]
  1262. },
  1263. "获取快钱流量卡分佣交易数量": {
  1264. "prefix": "ym-db-KqTradeFlux-FindAndCount",
  1265. "body": [
  1266. "int $1 = db.KqTradeFlux.Count(m => $2);",
  1267. ]
  1268. },
  1269. "添加快钱流量卡分佣交易": {
  1270. "prefix": "ym-db-KqTradeFlux-Create",
  1271. "body": [
  1272. "db.KqTradeFlux.Add(new KqTradeFlux()",
  1273. "{",
  1274. " CreateDate = DateTime.Now,",
  1275. " UpdateDate = DateTime.Now,",
  1276. " TradeSerialNo = $1, //交易单号",
  1277. " MerNo = $2, //商户编号",
  1278. " MerName = $3, //商户名称",
  1279. " TradeAmount = $4, //交易金额",
  1280. " ProductType = $5, //产品类型",
  1281. " TradeStatus = $6, //交易状态",
  1282. " TradeDate = $7, //交易日期",
  1283. " TradeTime = $8, //交易时间",
  1284. " BankCardType = $9, //银行卡类型",
  1285. " TradeSnNo = $10, //交易SN号",
  1286. " DigAmtFlag = $11, //挖款标识",
  1287. " DigAmt = $12, //挖款金额",
  1288. " Remark = $13, //注释",
  1289. " CreateTime = $14, //创建时间",
  1290. " UpdateTime = $15, //更新时间",
  1291. " BankCardNo = $16, //交易卡号",
  1292. " FeeAmount = $17, //手续费",
  1293. " SettleMethod = $18, //出款方式",
  1294. " SettleFee = $19, //出款手续费",
  1295. " SmallDouble = $20, //小额双免",
  1296. " BizEnterNo = $21, //业务员编号",
  1297. " BizEnterName = $22, //业务员名称",
  1298. " SourceType = $23, //来源类型",
  1299. " BillType = $24, //计费类型",
  1300. " KqTradeSeq = $25, //快钱交易流水号",
  1301. " InputModel = $26, //输入模式",
  1302. " TerminalNo = $27, //终端号",
  1303. " DeviceNetwork = $28, //设备网络",
  1304. "});"
  1305. ]
  1306. },"删除某个快钱流量卡分佣交易": {
  1307. "prefix": "ym-db-KqTradeFlux-Delete",
  1308. "body": [
  1309. "KqTradeFlux $1 = db.KqTradeFlux.FirstOrDefault(m => m.MerNo == $2);",
  1310. "if ($1 != null)",
  1311. "{",
  1312. " db.KqTradeFlux.Remove($1);",
  1313. "}"
  1314. ]
  1315. },
  1316. "查询快闪刷商户绑定列表": {
  1317. "prefix": "ym-db-KssBind-Find",
  1318. "body": [
  1319. "List<KssBind> $1 = db.KssBind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1320. "foreach (KssBind $3 in $1)",
  1321. "{",
  1322. "}"
  1323. ]
  1324. },
  1325. "查询快闪刷商户绑定列表,并取值": {
  1326. "prefix": "ym-db-KssBind-FindWithData",
  1327. "body": [
  1328. "List<KssBind> $1 = db.KssBind.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1329. "foreach (KssBind $3 in $1)",
  1330. "{",
  1331. " string AgentName = $3.AgentName; //机构名称",
  1332. " string MerNo = $3.MerNo; //商户编号",
  1333. " string MerName = $3.MerName; //商户名称",
  1334. " string MerSnNo = $3.MerSnNo; //终端机身号",
  1335. " DateTime MerOperateDate = $3.MerOperateDate; //操作时间",
  1336. " string MerOperateType = $3.MerOperateType; //操作类型",
  1337. " string MerStatus = $3.MerStatus; //商户状态",
  1338. " string ProductType = $3.ProductType; //产品类型",
  1339. " string MerNewSnNo = $3.MerNewSnNo; //新终端机身号",
  1340. " string Remark = $3.Remark; //注释",
  1341. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1342. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1343. "}"
  1344. ]
  1345. },
  1346. "查询快闪刷商户绑定": {
  1347. "prefix": "ym-db-KssBind-Exist",
  1348. "body": [
  1349. "bool $1 = db.KssBind.Any(m => m.MerNo == $2);",
  1350. ]
  1351. },
  1352. "查询某个快闪刷商户绑定,并取值": {
  1353. "prefix": "ym-db-KssBind-FindByPrimaryKey",
  1354. "body": [
  1355. "KssBind $1 = db.KssBind.FirstOrDefault(m => m.MerNo == $2);",
  1356. "if ($1 != null)",
  1357. "{",
  1358. " string AgentName = $1.AgentName; //机构名称",
  1359. " string MerNo = $1.MerNo; //商户编号",
  1360. " string MerName = $1.MerName; //商户名称",
  1361. " string MerSnNo = $1.MerSnNo; //终端机身号",
  1362. " DateTime MerOperateDate = $1.MerOperateDate; //操作时间",
  1363. " string MerOperateType = $1.MerOperateType; //操作类型",
  1364. " string MerStatus = $1.MerStatus; //商户状态",
  1365. " string ProductType = $1.ProductType; //产品类型",
  1366. " string MerNewSnNo = $1.MerNewSnNo; //新终端机身号",
  1367. " string Remark = $1.Remark; //注释",
  1368. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1369. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1370. "}"
  1371. ]
  1372. },
  1373. "查询某个快闪刷商户绑定,并赋值": {
  1374. "prefix": "ym-db-KssBind-Update",
  1375. "body": [
  1376. "KssBind $1 = db.KssBind.FirstOrDefault(m => m.MerNo == $2);",
  1377. "if ($1 != null)",
  1378. "{",
  1379. " $1.AgentName = $2; //机构名称",
  1380. " $1.MerNo = $3; //商户编号",
  1381. " $1.MerName = $4; //商户名称",
  1382. " $1.MerSnNo = $5; //终端机身号",
  1383. " $1.MerOperateDate = $6; //操作时间",
  1384. " $1.MerOperateType = $7; //操作类型",
  1385. " $1.MerStatus = $8; //商户状态",
  1386. " $1.ProductType = $9; //产品类型",
  1387. " $1.MerNewSnNo = $10; //新终端机身号",
  1388. " $1.Remark = $11; //注释",
  1389. " $1.CreateTime = $12; //创建时间",
  1390. " $1.UpdateTime = $13; //更新时间",
  1391. "}"
  1392. ]
  1393. },
  1394. "获取快闪刷商户绑定数量": {
  1395. "prefix": "ym-db-KssBind-FindAndCount",
  1396. "body": [
  1397. "int $1 = db.KssBind.Count(m => $2);",
  1398. ]
  1399. },
  1400. "添加快闪刷商户绑定": {
  1401. "prefix": "ym-db-KssBind-Create",
  1402. "body": [
  1403. "db.KssBind.Add(new KssBind()",
  1404. "{",
  1405. " CreateDate = DateTime.Now,",
  1406. " UpdateDate = DateTime.Now,",
  1407. " AgentName = $1, //机构名称",
  1408. " MerNo = $2, //商户编号",
  1409. " MerName = $3, //商户名称",
  1410. " MerSnNo = $4, //终端机身号",
  1411. " MerOperateDate = $5, //操作时间",
  1412. " MerOperateType = $6, //操作类型",
  1413. " MerStatus = $7, //商户状态",
  1414. " ProductType = $8, //产品类型",
  1415. " MerNewSnNo = $9, //新终端机身号",
  1416. " Remark = $10, //注释",
  1417. " CreateTime = $11, //创建时间",
  1418. " UpdateTime = $12, //更新时间",
  1419. "});"
  1420. ]
  1421. },"删除某个快闪刷商户绑定": {
  1422. "prefix": "ym-db-KssBind-Delete",
  1423. "body": [
  1424. "KssBind $1 = db.KssBind.FirstOrDefault(m => m.MerNo == $2);",
  1425. "if ($1 != null)",
  1426. "{",
  1427. " db.KssBind.Remove($1);",
  1428. "}"
  1429. ]
  1430. },
  1431. "查询快闪刷商户免押金列表": {
  1432. "prefix": "ym-db-KssFreeDeposit-Find",
  1433. "body": [
  1434. "List<KssFreeDeposit> $1 = db.KssFreeDeposit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1435. "foreach (KssFreeDeposit $3 in $1)",
  1436. "{",
  1437. "}"
  1438. ]
  1439. },
  1440. "查询快闪刷商户免押金列表,并取值": {
  1441. "prefix": "ym-db-KssFreeDeposit-FindWithData",
  1442. "body": [
  1443. "List<KssFreeDeposit> $1 = db.KssFreeDeposit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1444. "foreach (KssFreeDeposit $3 in $1)",
  1445. "{",
  1446. " string AgentName = $3.AgentName; //机构名称",
  1447. " string MerNo = $3.MerNo; //商户编号",
  1448. " string MerName = $3.MerName; //商户名称",
  1449. " string ProductType = $3.ProductType; //产品类型",
  1450. " DateTime MerBindDate = $3.MerBindDate; //绑定日期",
  1451. " string MerSnNo = $3.MerSnNo; //终端机身号",
  1452. " string ActNo = $3.ActNo; //押金活动ID",
  1453. " string ActName = $3.ActName; //押金活动名称",
  1454. " string NewFlag = $3.NewFlag; //是否新增",
  1455. " string Remark = $3.Remark; //注释",
  1456. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1457. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1458. "}"
  1459. ]
  1460. },
  1461. "查询快闪刷商户免押金": {
  1462. "prefix": "ym-db-KssFreeDeposit-Exist",
  1463. "body": [
  1464. "bool $1 = db.KssFreeDeposit.Any(m => m.MerNo == $2);",
  1465. ]
  1466. },
  1467. "查询某个快闪刷商户免押金,并取值": {
  1468. "prefix": "ym-db-KssFreeDeposit-FindByPrimaryKey",
  1469. "body": [
  1470. "KssFreeDeposit $1 = db.KssFreeDeposit.FirstOrDefault(m => m.MerNo == $2);",
  1471. "if ($1 != null)",
  1472. "{",
  1473. " string AgentName = $1.AgentName; //机构名称",
  1474. " string MerNo = $1.MerNo; //商户编号",
  1475. " string MerName = $1.MerName; //商户名称",
  1476. " string ProductType = $1.ProductType; //产品类型",
  1477. " DateTime MerBindDate = $1.MerBindDate; //绑定日期",
  1478. " string MerSnNo = $1.MerSnNo; //终端机身号",
  1479. " string ActNo = $1.ActNo; //押金活动ID",
  1480. " string ActName = $1.ActName; //押金活动名称",
  1481. " string NewFlag = $1.NewFlag; //是否新增",
  1482. " string Remark = $1.Remark; //注释",
  1483. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1484. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1485. "}"
  1486. ]
  1487. },
  1488. "查询某个快闪刷商户免押金,并赋值": {
  1489. "prefix": "ym-db-KssFreeDeposit-Update",
  1490. "body": [
  1491. "KssFreeDeposit $1 = db.KssFreeDeposit.FirstOrDefault(m => m.MerNo == $2);",
  1492. "if ($1 != null)",
  1493. "{",
  1494. " $1.AgentName = $2; //机构名称",
  1495. " $1.MerNo = $3; //商户编号",
  1496. " $1.MerName = $4; //商户名称",
  1497. " $1.ProductType = $5; //产品类型",
  1498. " $1.MerBindDate = $6; //绑定日期",
  1499. " $1.MerSnNo = $7; //终端机身号",
  1500. " $1.ActNo = $8; //押金活动ID",
  1501. " $1.ActName = $9; //押金活动名称",
  1502. " $1.NewFlag = $10; //是否新增",
  1503. " $1.Remark = $11; //注释",
  1504. " $1.CreateTime = $12; //创建时间",
  1505. " $1.UpdateTime = $13; //更新时间",
  1506. "}"
  1507. ]
  1508. },
  1509. "获取快闪刷商户免押金数量": {
  1510. "prefix": "ym-db-KssFreeDeposit-FindAndCount",
  1511. "body": [
  1512. "int $1 = db.KssFreeDeposit.Count(m => $2);",
  1513. ]
  1514. },
  1515. "添加快闪刷商户免押金": {
  1516. "prefix": "ym-db-KssFreeDeposit-Create",
  1517. "body": [
  1518. "db.KssFreeDeposit.Add(new KssFreeDeposit()",
  1519. "{",
  1520. " CreateDate = DateTime.Now,",
  1521. " UpdateDate = DateTime.Now,",
  1522. " AgentName = $1, //机构名称",
  1523. " MerNo = $2, //商户编号",
  1524. " MerName = $3, //商户名称",
  1525. " ProductType = $4, //产品类型",
  1526. " MerBindDate = $5, //绑定日期",
  1527. " MerSnNo = $6, //终端机身号",
  1528. " ActNo = $7, //押金活动ID",
  1529. " ActName = $8, //押金活动名称",
  1530. " NewFlag = $9, //是否新增",
  1531. " Remark = $10, //注释",
  1532. " CreateTime = $11, //创建时间",
  1533. " UpdateTime = $12, //更新时间",
  1534. "});"
  1535. ]
  1536. },"删除某个快闪刷商户免押金": {
  1537. "prefix": "ym-db-KssFreeDeposit-Delete",
  1538. "body": [
  1539. "KssFreeDeposit $1 = db.KssFreeDeposit.FirstOrDefault(m => m.MerNo == $2);",
  1540. "if ($1 != null)",
  1541. "{",
  1542. " db.KssFreeDeposit.Remove($1);",
  1543. "}"
  1544. ]
  1545. },
  1546. "查询快闪刷商户列表": {
  1547. "prefix": "ym-db-KssMerchant-Find",
  1548. "body": [
  1549. "List<KssMerchant> $1 = db.KssMerchant.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1550. "foreach (KssMerchant $3 in $1)",
  1551. "{",
  1552. "}"
  1553. ]
  1554. },
  1555. "查询快闪刷商户列表,并取值": {
  1556. "prefix": "ym-db-KssMerchant-FindWithData",
  1557. "body": [
  1558. "List<KssMerchant> $1 = db.KssMerchant.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1559. "foreach (KssMerchant $3 in $1)",
  1560. "{",
  1561. " string MerNo = $3.MerNo; //商户编号",
  1562. " string MerName = $3.MerName; //商户名称",
  1563. " string AgentName = $3.AgentName; //机构名称",
  1564. " string MerRealName = $3.MerRealName; //商户真实姓名",
  1565. " string MerMobile = $3.MerMobile; //商户手机号",
  1566. " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
  1567. " DateTime MerRegDate = $3.MerRegDate; //注册日期",
  1568. " DateTime MerAuditDate = $3.MerAuditDate; //审核日期",
  1569. " string MerStatus = $3.MerStatus; //商户状态",
  1570. " string ProductType = $3.ProductType; //产品类型",
  1571. " string Province = $3.Province; //商户注册省份",
  1572. " string City = $3.City; //商户注册城市",
  1573. " string Remark = $3.Remark; //注释",
  1574. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1575. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1576. "}"
  1577. ]
  1578. },
  1579. "查询快闪刷商户": {
  1580. "prefix": "ym-db-KssMerchant-Exist",
  1581. "body": [
  1582. "bool $1 = db.KssMerchant.Any(m => m.MerNo == $2);",
  1583. ]
  1584. },
  1585. "查询某个快闪刷商户,并取值": {
  1586. "prefix": "ym-db-KssMerchant-FindByPrimaryKey",
  1587. "body": [
  1588. "KssMerchant $1 = db.KssMerchant.FirstOrDefault(m => m.MerNo == $2);",
  1589. "if ($1 != null)",
  1590. "{",
  1591. " string MerNo = $1.MerNo; //商户编号",
  1592. " string MerName = $1.MerName; //商户名称",
  1593. " string AgentName = $1.AgentName; //机构名称",
  1594. " string MerRealName = $1.MerRealName; //商户真实姓名",
  1595. " string MerMobile = $1.MerMobile; //商户手机号",
  1596. " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
  1597. " DateTime MerRegDate = $1.MerRegDate; //注册日期",
  1598. " DateTime MerAuditDate = $1.MerAuditDate; //审核日期",
  1599. " string MerStatus = $1.MerStatus; //商户状态",
  1600. " string ProductType = $1.ProductType; //产品类型",
  1601. " string Province = $1.Province; //商户注册省份",
  1602. " string City = $1.City; //商户注册城市",
  1603. " string Remark = $1.Remark; //注释",
  1604. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1605. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1606. "}"
  1607. ]
  1608. },
  1609. "查询某个快闪刷商户,并赋值": {
  1610. "prefix": "ym-db-KssMerchant-Update",
  1611. "body": [
  1612. "KssMerchant $1 = db.KssMerchant.FirstOrDefault(m => m.MerNo == $2);",
  1613. "if ($1 != null)",
  1614. "{",
  1615. " $1.MerNo = $2; //商户编号",
  1616. " $1.MerName = $3; //商户名称",
  1617. " $1.AgentName = $4; //机构名称",
  1618. " $1.MerRealName = $5; //商户真实姓名",
  1619. " $1.MerMobile = $6; //商户手机号",
  1620. " $1.MerIdcardNo = $7; //商户身份证号",
  1621. " $1.MerRegDate = $8; //注册日期",
  1622. " $1.MerAuditDate = $9; //审核日期",
  1623. " $1.MerStatus = $10; //商户状态",
  1624. " $1.ProductType = $11; //产品类型",
  1625. " $1.Province = $12; //商户注册省份",
  1626. " $1.City = $13; //商户注册城市",
  1627. " $1.Remark = $14; //注释",
  1628. " $1.CreateTime = $15; //创建时间",
  1629. " $1.UpdateTime = $16; //更新时间",
  1630. "}"
  1631. ]
  1632. },
  1633. "获取快闪刷商户数量": {
  1634. "prefix": "ym-db-KssMerchant-FindAndCount",
  1635. "body": [
  1636. "int $1 = db.KssMerchant.Count(m => $2);",
  1637. ]
  1638. },
  1639. "添加快闪刷商户": {
  1640. "prefix": "ym-db-KssMerchant-Create",
  1641. "body": [
  1642. "db.KssMerchant.Add(new KssMerchant()",
  1643. "{",
  1644. " CreateDate = DateTime.Now,",
  1645. " UpdateDate = DateTime.Now,",
  1646. " MerNo = $1, //商户编号",
  1647. " MerName = $2, //商户名称",
  1648. " AgentName = $3, //机构名称",
  1649. " MerRealName = $4, //商户真实姓名",
  1650. " MerMobile = $5, //商户手机号",
  1651. " MerIdcardNo = $6, //商户身份证号",
  1652. " MerRegDate = $7, //注册日期",
  1653. " MerAuditDate = $8, //审核日期",
  1654. " MerStatus = $9, //商户状态",
  1655. " ProductType = $10, //产品类型",
  1656. " Province = $11, //商户注册省份",
  1657. " City = $12, //商户注册城市",
  1658. " Remark = $13, //注释",
  1659. " CreateTime = $14, //创建时间",
  1660. " UpdateTime = $15, //更新时间",
  1661. "});"
  1662. ]
  1663. },"删除某个快闪刷商户": {
  1664. "prefix": "ym-db-KssMerchant-Delete",
  1665. "body": [
  1666. "KssMerchant $1 = db.KssMerchant.FirstOrDefault(m => m.MerNo == $2);",
  1667. "if ($1 != null)",
  1668. "{",
  1669. " db.KssMerchant.Remove($1);",
  1670. "}"
  1671. ]
  1672. },
  1673. "查询快闪刷商户返押列表": {
  1674. "prefix": "ym-db-KssReturnDeposit-Find",
  1675. "body": [
  1676. "List<KssReturnDeposit> $1 = db.KssReturnDeposit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1677. "foreach (KssReturnDeposit $3 in $1)",
  1678. "{",
  1679. "}"
  1680. ]
  1681. },
  1682. "查询快闪刷商户返押列表,并取值": {
  1683. "prefix": "ym-db-KssReturnDeposit-FindWithData",
  1684. "body": [
  1685. "List<KssReturnDeposit> $1 = db.KssReturnDeposit.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1686. "foreach (KssReturnDeposit $3 in $1)",
  1687. "{",
  1688. " string AgentName = $3.AgentName; //机构名称",
  1689. " string MerNo = $3.MerNo; //商户编号",
  1690. " string MerName = $3.MerName; //商户名称",
  1691. " string ActNo = $3.ActNo; //押金活动ID",
  1692. " string ActName = $3.ActName; //押金活动名称",
  1693. " DateTime MerDisposeDate = $3.MerDisposeDate; //押金日期",
  1694. " DateTime MerStdDate = $3.MerStdDate; //达标日期",
  1695. " int IntervalDay = $3.IntervalDay; //间隔天数",
  1696. " string ProductType = $3.ProductType; //产品类型",
  1697. " string MerSnNo = $3.MerSnNo; //终端机身号",
  1698. " decimal RetAmount = $3.RetAmount; //返押金额",
  1699. " string RetFlag = $3.RetFlag; //是否返还",
  1700. " string RetOrderNo = $3.RetOrderNo; //返押订单ID",
  1701. " string Remark = $3.Remark; //注释",
  1702. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1703. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1704. "}"
  1705. ]
  1706. },
  1707. "查询快闪刷商户返押": {
  1708. "prefix": "ym-db-KssReturnDeposit-Exist",
  1709. "body": [
  1710. "bool $1 = db.KssReturnDeposit.Any(m => m.MerNo == $2);",
  1711. ]
  1712. },
  1713. "查询某个快闪刷商户返押,并取值": {
  1714. "prefix": "ym-db-KssReturnDeposit-FindByPrimaryKey",
  1715. "body": [
  1716. "KssReturnDeposit $1 = db.KssReturnDeposit.FirstOrDefault(m => m.MerNo == $2);",
  1717. "if ($1 != null)",
  1718. "{",
  1719. " string AgentName = $1.AgentName; //机构名称",
  1720. " string MerNo = $1.MerNo; //商户编号",
  1721. " string MerName = $1.MerName; //商户名称",
  1722. " string ActNo = $1.ActNo; //押金活动ID",
  1723. " string ActName = $1.ActName; //押金活动名称",
  1724. " DateTime MerDisposeDate = $1.MerDisposeDate; //押金日期",
  1725. " DateTime MerStdDate = $1.MerStdDate; //达标日期",
  1726. " int IntervalDay = $1.IntervalDay; //间隔天数",
  1727. " string ProductType = $1.ProductType; //产品类型",
  1728. " string MerSnNo = $1.MerSnNo; //终端机身号",
  1729. " decimal RetAmount = $1.RetAmount; //返押金额",
  1730. " string RetFlag = $1.RetFlag; //是否返还",
  1731. " string RetOrderNo = $1.RetOrderNo; //返押订单ID",
  1732. " string Remark = $1.Remark; //注释",
  1733. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1734. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1735. "}"
  1736. ]
  1737. },
  1738. "查询某个快闪刷商户返押,并赋值": {
  1739. "prefix": "ym-db-KssReturnDeposit-Update",
  1740. "body": [
  1741. "KssReturnDeposit $1 = db.KssReturnDeposit.FirstOrDefault(m => m.MerNo == $2);",
  1742. "if ($1 != null)",
  1743. "{",
  1744. " $1.AgentName = $2; //机构名称",
  1745. " $1.MerNo = $3; //商户编号",
  1746. " $1.MerName = $4; //商户名称",
  1747. " $1.ActNo = $5; //押金活动ID",
  1748. " $1.ActName = $6; //押金活动名称",
  1749. " $1.MerDisposeDate = $7; //押金日期",
  1750. " $1.MerStdDate = $8; //达标日期",
  1751. " $1.IntervalDay = $9; //间隔天数",
  1752. " $1.ProductType = $10; //产品类型",
  1753. " $1.MerSnNo = $11; //终端机身号",
  1754. " $1.RetAmount = $12; //返押金额",
  1755. " $1.RetFlag = $13; //是否返还",
  1756. " $1.RetOrderNo = $14; //返押订单ID",
  1757. " $1.Remark = $15; //注释",
  1758. " $1.CreateTime = $16; //创建时间",
  1759. " $1.UpdateTime = $17; //更新时间",
  1760. "}"
  1761. ]
  1762. },
  1763. "获取快闪刷商户返押数量": {
  1764. "prefix": "ym-db-KssReturnDeposit-FindAndCount",
  1765. "body": [
  1766. "int $1 = db.KssReturnDeposit.Count(m => $2);",
  1767. ]
  1768. },
  1769. "添加快闪刷商户返押": {
  1770. "prefix": "ym-db-KssReturnDeposit-Create",
  1771. "body": [
  1772. "db.KssReturnDeposit.Add(new KssReturnDeposit()",
  1773. "{",
  1774. " CreateDate = DateTime.Now,",
  1775. " UpdateDate = DateTime.Now,",
  1776. " AgentName = $1, //机构名称",
  1777. " MerNo = $2, //商户编号",
  1778. " MerName = $3, //商户名称",
  1779. " ActNo = $4, //押金活动ID",
  1780. " ActName = $5, //押金活动名称",
  1781. " MerDisposeDate = $6, //押金日期",
  1782. " MerStdDate = $7, //达标日期",
  1783. " IntervalDay = $8, //间隔天数",
  1784. " ProductType = $9, //产品类型",
  1785. " MerSnNo = $10, //终端机身号",
  1786. " RetAmount = $11, //返押金额",
  1787. " RetFlag = $12, //是否返还",
  1788. " RetOrderNo = $13, //返押订单ID",
  1789. " Remark = $14, //注释",
  1790. " CreateTime = $15, //创建时间",
  1791. " UpdateTime = $16, //更新时间",
  1792. "});"
  1793. ]
  1794. },"删除某个快闪刷商户返押": {
  1795. "prefix": "ym-db-KssReturnDeposit-Delete",
  1796. "body": [
  1797. "KssReturnDeposit $1 = db.KssReturnDeposit.FirstOrDefault(m => m.MerNo == $2);",
  1798. "if ($1 != null)",
  1799. "{",
  1800. " db.KssReturnDeposit.Remove($1);",
  1801. "}"
  1802. ]
  1803. },
  1804. "查询快闪刷商户在网达标列表": {
  1805. "prefix": "ym-db-KssStageRwd-Find",
  1806. "body": [
  1807. "List<KssStageRwd> $1 = db.KssStageRwd.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1808. "foreach (KssStageRwd $3 in $1)",
  1809. "{",
  1810. "}"
  1811. ]
  1812. },
  1813. "查询快闪刷商户在网达标列表,并取值": {
  1814. "prefix": "ym-db-KssStageRwd-FindWithData",
  1815. "body": [
  1816. "List<KssStageRwd> $1 = db.KssStageRwd.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1817. "foreach (KssStageRwd $3 in $1)",
  1818. "{",
  1819. " string AgentName = $3.AgentName; //机构名称",
  1820. " string MerNo = $3.MerNo; //商户编号",
  1821. " string MerName = $3.MerName; //商户名称",
  1822. " string ProductType = $3.ProductType; //产品类型",
  1823. " DateTime MerBindDate = $3.MerBindDate; //绑定日期",
  1824. " string MerSnNo = $3.MerSnNo; //终端机身号",
  1825. " string ActNo = $3.ActNo; //押金活动ID",
  1826. " string ActName = $3.ActName; //押金活动名称",
  1827. " string MerStdStage = $3.MerStdStage; //达标阶段",
  1828. " DateTime MerStdDate = $3.MerStdDate; //达标日期",
  1829. " string MerStdStatus = $3.MerStdStatus; //达标状态",
  1830. " string NewFlag = $3.NewFlag; //是否新增",
  1831. " string Remark = $3.Remark; //注释",
  1832. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1833. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1834. "}"
  1835. ]
  1836. },
  1837. "查询快闪刷商户在网达标": {
  1838. "prefix": "ym-db-KssStageRwd-Exist",
  1839. "body": [
  1840. "bool $1 = db.KssStageRwd.Any(m => m.MerNo == $2);",
  1841. ]
  1842. },
  1843. "查询某个快闪刷商户在网达标,并取值": {
  1844. "prefix": "ym-db-KssStageRwd-FindByPrimaryKey",
  1845. "body": [
  1846. "KssStageRwd $1 = db.KssStageRwd.FirstOrDefault(m => m.MerNo == $2);",
  1847. "if ($1 != null)",
  1848. "{",
  1849. " string AgentName = $1.AgentName; //机构名称",
  1850. " string MerNo = $1.MerNo; //商户编号",
  1851. " string MerName = $1.MerName; //商户名称",
  1852. " string ProductType = $1.ProductType; //产品类型",
  1853. " DateTime MerBindDate = $1.MerBindDate; //绑定日期",
  1854. " string MerSnNo = $1.MerSnNo; //终端机身号",
  1855. " string ActNo = $1.ActNo; //押金活动ID",
  1856. " string ActName = $1.ActName; //押金活动名称",
  1857. " string MerStdStage = $1.MerStdStage; //达标阶段",
  1858. " DateTime MerStdDate = $1.MerStdDate; //达标日期",
  1859. " string MerStdStatus = $1.MerStdStatus; //达标状态",
  1860. " string NewFlag = $1.NewFlag; //是否新增",
  1861. " string Remark = $1.Remark; //注释",
  1862. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1863. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1864. "}"
  1865. ]
  1866. },
  1867. "查询某个快闪刷商户在网达标,并赋值": {
  1868. "prefix": "ym-db-KssStageRwd-Update",
  1869. "body": [
  1870. "KssStageRwd $1 = db.KssStageRwd.FirstOrDefault(m => m.MerNo == $2);",
  1871. "if ($1 != null)",
  1872. "{",
  1873. " $1.AgentName = $2; //机构名称",
  1874. " $1.MerNo = $3; //商户编号",
  1875. " $1.MerName = $4; //商户名称",
  1876. " $1.ProductType = $5; //产品类型",
  1877. " $1.MerBindDate = $6; //绑定日期",
  1878. " $1.MerSnNo = $7; //终端机身号",
  1879. " $1.ActNo = $8; //押金活动ID",
  1880. " $1.ActName = $9; //押金活动名称",
  1881. " $1.MerStdStage = $10; //达标阶段",
  1882. " $1.MerStdDate = $11; //达标日期",
  1883. " $1.MerStdStatus = $12; //达标状态",
  1884. " $1.NewFlag = $13; //是否新增",
  1885. " $1.Remark = $14; //注释",
  1886. " $1.CreateTime = $15; //创建时间",
  1887. " $1.UpdateTime = $16; //更新时间",
  1888. "}"
  1889. ]
  1890. },
  1891. "获取快闪刷商户在网达标数量": {
  1892. "prefix": "ym-db-KssStageRwd-FindAndCount",
  1893. "body": [
  1894. "int $1 = db.KssStageRwd.Count(m => $2);",
  1895. ]
  1896. },
  1897. "添加快闪刷商户在网达标": {
  1898. "prefix": "ym-db-KssStageRwd-Create",
  1899. "body": [
  1900. "db.KssStageRwd.Add(new KssStageRwd()",
  1901. "{",
  1902. " CreateDate = DateTime.Now,",
  1903. " UpdateDate = DateTime.Now,",
  1904. " AgentName = $1, //机构名称",
  1905. " MerNo = $2, //商户编号",
  1906. " MerName = $3, //商户名称",
  1907. " ProductType = $4, //产品类型",
  1908. " MerBindDate = $5, //绑定日期",
  1909. " MerSnNo = $6, //终端机身号",
  1910. " ActNo = $7, //押金活动ID",
  1911. " ActName = $8, //押金活动名称",
  1912. " MerStdStage = $9, //达标阶段",
  1913. " MerStdDate = $10, //达标日期",
  1914. " MerStdStatus = $11, //达标状态",
  1915. " NewFlag = $12, //是否新增",
  1916. " Remark = $13, //注释",
  1917. " CreateTime = $14, //创建时间",
  1918. " UpdateTime = $15, //更新时间",
  1919. "});"
  1920. ]
  1921. },"删除某个快闪刷商户在网达标": {
  1922. "prefix": "ym-db-KssStageRwd-Delete",
  1923. "body": [
  1924. "KssStageRwd $1 = db.KssStageRwd.FirstOrDefault(m => m.MerNo == $2);",
  1925. "if ($1 != null)",
  1926. "{",
  1927. " db.KssStageRwd.Remove($1);",
  1928. "}"
  1929. ]
  1930. },
  1931. "查询快闪刷商户首刷列表": {
  1932. "prefix": "ym-db-KssTradeFirst-Find",
  1933. "body": [
  1934. "List<KssTradeFirst> $1 = db.KssTradeFirst.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1935. "foreach (KssTradeFirst $3 in $1)",
  1936. "{",
  1937. "}"
  1938. ]
  1939. },
  1940. "查询快闪刷商户首刷列表,并取值": {
  1941. "prefix": "ym-db-KssTradeFirst-FindWithData",
  1942. "body": [
  1943. "List<KssTradeFirst> $1 = db.KssTradeFirst.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  1944. "foreach (KssTradeFirst $3 in $1)",
  1945. "{",
  1946. " string AgentName = $3.AgentName; //机构名称",
  1947. " string MerNo = $3.MerNo; //商户编号",
  1948. " string MerName = $3.MerName; //商户名称",
  1949. " string ProductType = $3.ProductType; //产品类型",
  1950. " DateTime MerBindDate = $3.MerBindDate; //绑定日期",
  1951. " string MerSnNo = $3.MerSnNo; //终端机身号",
  1952. " string ActNo = $3.ActNo; //押金活动ID",
  1953. " string ActName = $3.ActName; //押金活动名称",
  1954. " DateTime MerStdDate = $3.MerStdDate; //达标日期",
  1955. " string MerStdStatus = $3.MerStdStatus; //达标状态",
  1956. " string NewFlag = $3.NewFlag; //是否新增",
  1957. " string Remark = $3.Remark; //注释",
  1958. " DateTime CreateTime = $3.CreateTime; //创建时间",
  1959. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  1960. "}"
  1961. ]
  1962. },
  1963. "查询快闪刷商户首刷": {
  1964. "prefix": "ym-db-KssTradeFirst-Exist",
  1965. "body": [
  1966. "bool $1 = db.KssTradeFirst.Any(m => m.MerNo == $2);",
  1967. ]
  1968. },
  1969. "查询某个快闪刷商户首刷,并取值": {
  1970. "prefix": "ym-db-KssTradeFirst-FindByPrimaryKey",
  1971. "body": [
  1972. "KssTradeFirst $1 = db.KssTradeFirst.FirstOrDefault(m => m.MerNo == $2);",
  1973. "if ($1 != null)",
  1974. "{",
  1975. " string AgentName = $1.AgentName; //机构名称",
  1976. " string MerNo = $1.MerNo; //商户编号",
  1977. " string MerName = $1.MerName; //商户名称",
  1978. " string ProductType = $1.ProductType; //产品类型",
  1979. " DateTime MerBindDate = $1.MerBindDate; //绑定日期",
  1980. " string MerSnNo = $1.MerSnNo; //终端机身号",
  1981. " string ActNo = $1.ActNo; //押金活动ID",
  1982. " string ActName = $1.ActName; //押金活动名称",
  1983. " DateTime MerStdDate = $1.MerStdDate; //达标日期",
  1984. " string MerStdStatus = $1.MerStdStatus; //达标状态",
  1985. " string NewFlag = $1.NewFlag; //是否新增",
  1986. " string Remark = $1.Remark; //注释",
  1987. " DateTime CreateTime = $1.CreateTime; //创建时间",
  1988. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  1989. "}"
  1990. ]
  1991. },
  1992. "查询某个快闪刷商户首刷,并赋值": {
  1993. "prefix": "ym-db-KssTradeFirst-Update",
  1994. "body": [
  1995. "KssTradeFirst $1 = db.KssTradeFirst.FirstOrDefault(m => m.MerNo == $2);",
  1996. "if ($1 != null)",
  1997. "{",
  1998. " $1.AgentName = $2; //机构名称",
  1999. " $1.MerNo = $3; //商户编号",
  2000. " $1.MerName = $4; //商户名称",
  2001. " $1.ProductType = $5; //产品类型",
  2002. " $1.MerBindDate = $6; //绑定日期",
  2003. " $1.MerSnNo = $7; //终端机身号",
  2004. " $1.ActNo = $8; //押金活动ID",
  2005. " $1.ActName = $9; //押金活动名称",
  2006. " $1.MerStdDate = $10; //达标日期",
  2007. " $1.MerStdStatus = $11; //达标状态",
  2008. " $1.NewFlag = $12; //是否新增",
  2009. " $1.Remark = $13; //注释",
  2010. " $1.CreateTime = $14; //创建时间",
  2011. " $1.UpdateTime = $15; //更新时间",
  2012. "}"
  2013. ]
  2014. },
  2015. "获取快闪刷商户首刷数量": {
  2016. "prefix": "ym-db-KssTradeFirst-FindAndCount",
  2017. "body": [
  2018. "int $1 = db.KssTradeFirst.Count(m => $2);",
  2019. ]
  2020. },
  2021. "添加快闪刷商户首刷": {
  2022. "prefix": "ym-db-KssTradeFirst-Create",
  2023. "body": [
  2024. "db.KssTradeFirst.Add(new KssTradeFirst()",
  2025. "{",
  2026. " CreateDate = DateTime.Now,",
  2027. " UpdateDate = DateTime.Now,",
  2028. " AgentName = $1, //机构名称",
  2029. " MerNo = $2, //商户编号",
  2030. " MerName = $3, //商户名称",
  2031. " ProductType = $4, //产品类型",
  2032. " MerBindDate = $5, //绑定日期",
  2033. " MerSnNo = $6, //终端机身号",
  2034. " ActNo = $7, //押金活动ID",
  2035. " ActName = $8, //押金活动名称",
  2036. " MerStdDate = $9, //达标日期",
  2037. " MerStdStatus = $10, //达标状态",
  2038. " NewFlag = $11, //是否新增",
  2039. " Remark = $12, //注释",
  2040. " CreateTime = $13, //创建时间",
  2041. " UpdateTime = $14, //更新时间",
  2042. "});"
  2043. ]
  2044. },"删除某个快闪刷商户首刷": {
  2045. "prefix": "ym-db-KssTradeFirst-Delete",
  2046. "body": [
  2047. "KssTradeFirst $1 = db.KssTradeFirst.FirstOrDefault(m => m.MerNo == $2);",
  2048. "if ($1 != null)",
  2049. "{",
  2050. " db.KssTradeFirst.Remove($1);",
  2051. "}"
  2052. ]
  2053. },
  2054. "查询商户列表": {
  2055. "prefix": "ym-db-Merchants-Find",
  2056. "body": [
  2057. "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2058. "foreach (Merchants $3 in $1)",
  2059. "{",
  2060. "}"
  2061. ]
  2062. },
  2063. "查询商户列表,并取值": {
  2064. "prefix": "ym-db-Merchants-FindWithData",
  2065. "body": [
  2066. "List<Merchants> $1 = db.Merchants.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2067. "foreach (Merchants $3 in $1)",
  2068. "{",
  2069. " string MerNo = $3.MerNo; //商户编号",
  2070. " string MerName = $3.MerName; //商户名称",
  2071. " string AgentName = $3.AgentName; //机构名称",
  2072. " string MerRealName = $3.MerRealName; //商户真实姓名",
  2073. " string MerMobile = $3.MerMobile; //商户手机号",
  2074. " string MerIdcardNo = $3.MerIdcardNo; //商户身份证号",
  2075. " DateTime MerRegDate = $3.MerRegDate; //注册日期",
  2076. " DateTime MerAuditDate = $3.MerAuditDate; //审核日期",
  2077. " string MerStatus = $3.MerStatus; //商户状态",
  2078. " string ProductType = $3.ProductType; //产品类型",
  2079. " string Province = $3.Province; //商户注册省份",
  2080. " string City = $3.City; //商户注册城市",
  2081. " string Remark = $3.Remark; //注释",
  2082. " DateTime CreateTime = $3.CreateTime; //创建时间",
  2083. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  2084. " string SnNo = $3.SnNo; //SN号",
  2085. " string AgentNo = $3.AgentNo; //代理商编号",
  2086. "}"
  2087. ]
  2088. },
  2089. "查询商户": {
  2090. "prefix": "ym-db-Merchants-Exist",
  2091. "body": [
  2092. "bool $1 = db.Merchants.Any(m => m.MerNo == $2);",
  2093. ]
  2094. },
  2095. "查询某个商户,并取值": {
  2096. "prefix": "ym-db-Merchants-FindByPrimaryKey",
  2097. "body": [
  2098. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.MerNo == $2);",
  2099. "if ($1 != null)",
  2100. "{",
  2101. " string MerNo = $1.MerNo; //商户编号",
  2102. " string MerName = $1.MerName; //商户名称",
  2103. " string AgentName = $1.AgentName; //机构名称",
  2104. " string MerRealName = $1.MerRealName; //商户真实姓名",
  2105. " string MerMobile = $1.MerMobile; //商户手机号",
  2106. " string MerIdcardNo = $1.MerIdcardNo; //商户身份证号",
  2107. " DateTime MerRegDate = $1.MerRegDate; //注册日期",
  2108. " DateTime MerAuditDate = $1.MerAuditDate; //审核日期",
  2109. " string MerStatus = $1.MerStatus; //商户状态",
  2110. " string ProductType = $1.ProductType; //产品类型",
  2111. " string Province = $1.Province; //商户注册省份",
  2112. " string City = $1.City; //商户注册城市",
  2113. " string Remark = $1.Remark; //注释",
  2114. " DateTime CreateTime = $1.CreateTime; //创建时间",
  2115. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  2116. " string SnNo = $1.SnNo; //SN号",
  2117. " string AgentNo = $1.AgentNo; //代理商编号",
  2118. "}"
  2119. ]
  2120. },
  2121. "查询某个商户,并赋值": {
  2122. "prefix": "ym-db-Merchants-Update",
  2123. "body": [
  2124. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.MerNo == $2);",
  2125. "if ($1 != null)",
  2126. "{",
  2127. " $1.MerNo = $2; //商户编号",
  2128. " $1.MerName = $3; //商户名称",
  2129. " $1.AgentName = $4; //机构名称",
  2130. " $1.MerRealName = $5; //商户真实姓名",
  2131. " $1.MerMobile = $6; //商户手机号",
  2132. " $1.MerIdcardNo = $7; //商户身份证号",
  2133. " $1.MerRegDate = $8; //注册日期",
  2134. " $1.MerAuditDate = $9; //审核日期",
  2135. " $1.MerStatus = $10; //商户状态",
  2136. " $1.ProductType = $11; //产品类型",
  2137. " $1.Province = $12; //商户注册省份",
  2138. " $1.City = $13; //商户注册城市",
  2139. " $1.Remark = $14; //注释",
  2140. " $1.CreateTime = $15; //创建时间",
  2141. " $1.UpdateTime = $16; //更新时间",
  2142. " $1.SnNo = $17; //SN号",
  2143. " $1.AgentNo = $18; //代理商编号",
  2144. "}"
  2145. ]
  2146. },
  2147. "获取商户数量": {
  2148. "prefix": "ym-db-Merchants-FindAndCount",
  2149. "body": [
  2150. "int $1 = db.Merchants.Count(m => $2);",
  2151. ]
  2152. },
  2153. "添加商户": {
  2154. "prefix": "ym-db-Merchants-Create",
  2155. "body": [
  2156. "db.Merchants.Add(new Merchants()",
  2157. "{",
  2158. " CreateDate = DateTime.Now,",
  2159. " UpdateDate = DateTime.Now,",
  2160. " MerNo = $1, //商户编号",
  2161. " MerName = $2, //商户名称",
  2162. " AgentName = $3, //机构名称",
  2163. " MerRealName = $4, //商户真实姓名",
  2164. " MerMobile = $5, //商户手机号",
  2165. " MerIdcardNo = $6, //商户身份证号",
  2166. " MerRegDate = $7, //注册日期",
  2167. " MerAuditDate = $8, //审核日期",
  2168. " MerStatus = $9, //商户状态",
  2169. " ProductType = $10, //产品类型",
  2170. " Province = $11, //商户注册省份",
  2171. " City = $12, //商户注册城市",
  2172. " Remark = $13, //注释",
  2173. " CreateTime = $14, //创建时间",
  2174. " UpdateTime = $15, //更新时间",
  2175. " SnNo = $16, //SN号",
  2176. " AgentNo = $17, //代理商编号",
  2177. "});"
  2178. ]
  2179. },"删除某个商户": {
  2180. "prefix": "ym-db-Merchants-Delete",
  2181. "body": [
  2182. "Merchants $1 = db.Merchants.FirstOrDefault(m => m.MerNo == $2);",
  2183. "if ($1 != null)",
  2184. "{",
  2185. " db.Merchants.Remove($1);",
  2186. "}"
  2187. ]
  2188. },
  2189. "查询商户在网达标列表": {
  2190. "prefix": "ym-db-MerchantStageRwd-Find",
  2191. "body": [
  2192. "List<MerchantStageRwd> $1 = db.MerchantStageRwd.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2193. "foreach (MerchantStageRwd $3 in $1)",
  2194. "{",
  2195. "}"
  2196. ]
  2197. },
  2198. "查询商户在网达标列表,并取值": {
  2199. "prefix": "ym-db-MerchantStageRwd-FindWithData",
  2200. "body": [
  2201. "List<MerchantStageRwd> $1 = db.MerchantStageRwd.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2202. "foreach (MerchantStageRwd $3 in $1)",
  2203. "{",
  2204. " string AgentName = $3.AgentName; //机构名称",
  2205. " string MerName = $3.MerName; //商户名称",
  2206. " string ProductType = $3.ProductType; //产品类型",
  2207. " DateTime MerBindDate = $3.MerBindDate; //绑定日期",
  2208. " string MerSnNo = $3.MerSnNo; //终端机身号",
  2209. " string ActNo = $3.ActNo; //押金活动ID",
  2210. " string ActName = $3.ActName; //押金活动名称",
  2211. " string MerStdStage = $3.MerStdStage; //达标阶段",
  2212. " DateTime MerStdDate = $3.MerStdDate; //达标日期",
  2213. " string MerStdStatus = $3.MerStdStatus; //达标状态",
  2214. " string NewFlag = $3.NewFlag; //是否新增",
  2215. " string Remark = $3.Remark; //注释",
  2216. " DateTime CreateTime = $3.CreateTime; //创建时间",
  2217. " DateTime UpdateTime = $3.UpdateTime; //更新时间",
  2218. " string MerNo = $3.MerNo; //商户编号",
  2219. "}"
  2220. ]
  2221. },
  2222. "查询商户在网达标": {
  2223. "prefix": "ym-db-MerchantStageRwd-Exist",
  2224. "body": [
  2225. "bool $1 = db.MerchantStageRwd.Any(m => m.MerNo == $2);",
  2226. ]
  2227. },
  2228. "查询某个商户在网达标,并取值": {
  2229. "prefix": "ym-db-MerchantStageRwd-FindByPrimaryKey",
  2230. "body": [
  2231. "MerchantStageRwd $1 = db.MerchantStageRwd.FirstOrDefault(m => m.MerNo == $2);",
  2232. "if ($1 != null)",
  2233. "{",
  2234. " string AgentName = $1.AgentName; //机构名称",
  2235. " string MerName = $1.MerName; //商户名称",
  2236. " string ProductType = $1.ProductType; //产品类型",
  2237. " DateTime MerBindDate = $1.MerBindDate; //绑定日期",
  2238. " string MerSnNo = $1.MerSnNo; //终端机身号",
  2239. " string ActNo = $1.ActNo; //押金活动ID",
  2240. " string ActName = $1.ActName; //押金活动名称",
  2241. " string MerStdStage = $1.MerStdStage; //达标阶段",
  2242. " DateTime MerStdDate = $1.MerStdDate; //达标日期",
  2243. " string MerStdStatus = $1.MerStdStatus; //达标状态",
  2244. " string NewFlag = $1.NewFlag; //是否新增",
  2245. " string Remark = $1.Remark; //注释",
  2246. " DateTime CreateTime = $1.CreateTime; //创建时间",
  2247. " DateTime UpdateTime = $1.UpdateTime; //更新时间",
  2248. " string MerNo = $1.MerNo; //商户编号",
  2249. "}"
  2250. ]
  2251. },
  2252. "查询某个商户在网达标,并赋值": {
  2253. "prefix": "ym-db-MerchantStageRwd-Update",
  2254. "body": [
  2255. "MerchantStageRwd $1 = db.MerchantStageRwd.FirstOrDefault(m => m.MerNo == $2);",
  2256. "if ($1 != null)",
  2257. "{",
  2258. " $1.AgentName = $2; //机构名称",
  2259. " $1.MerName = $3; //商户名称",
  2260. " $1.ProductType = $4; //产品类型",
  2261. " $1.MerBindDate = $5; //绑定日期",
  2262. " $1.MerSnNo = $6; //终端机身号",
  2263. " $1.ActNo = $7; //押金活动ID",
  2264. " $1.ActName = $8; //押金活动名称",
  2265. " $1.MerStdStage = $9; //达标阶段",
  2266. " $1.MerStdDate = $10; //达标日期",
  2267. " $1.MerStdStatus = $11; //达标状态",
  2268. " $1.NewFlag = $12; //是否新增",
  2269. " $1.Remark = $13; //注释",
  2270. " $1.CreateTime = $14; //创建时间",
  2271. " $1.UpdateTime = $15; //更新时间",
  2272. " $1.MerNo = $16; //商户编号",
  2273. "}"
  2274. ]
  2275. },
  2276. "获取商户在网达标数量": {
  2277. "prefix": "ym-db-MerchantStageRwd-FindAndCount",
  2278. "body": [
  2279. "int $1 = db.MerchantStageRwd.Count(m => $2);",
  2280. ]
  2281. },
  2282. "添加商户在网达标": {
  2283. "prefix": "ym-db-MerchantStageRwd-Create",
  2284. "body": [
  2285. "db.MerchantStageRwd.Add(new MerchantStageRwd()",
  2286. "{",
  2287. " CreateDate = DateTime.Now,",
  2288. " UpdateDate = DateTime.Now,",
  2289. " AgentName = $1, //机构名称",
  2290. " MerName = $2, //商户名称",
  2291. " ProductType = $3, //产品类型",
  2292. " MerBindDate = $4, //绑定日期",
  2293. " MerSnNo = $5, //终端机身号",
  2294. " ActNo = $6, //押金活动ID",
  2295. " ActName = $7, //押金活动名称",
  2296. " MerStdStage = $8, //达标阶段",
  2297. " MerStdDate = $9, //达标日期",
  2298. " MerStdStatus = $10, //达标状态",
  2299. " NewFlag = $11, //是否新增",
  2300. " Remark = $12, //注释",
  2301. " CreateTime = $13, //创建时间",
  2302. " UpdateTime = $14, //更新时间",
  2303. " MerNo = $15, //商户编号",
  2304. "});"
  2305. ]
  2306. },"删除某个商户在网达标": {
  2307. "prefix": "ym-db-MerchantStageRwd-Delete",
  2308. "body": [
  2309. "MerchantStageRwd $1 = db.MerchantStageRwd.FirstOrDefault(m => m.MerNo == $2);",
  2310. "if ($1 != null)",
  2311. "{",
  2312. " db.MerchantStageRwd.Remove($1);",
  2313. "}"
  2314. ]
  2315. },
  2316. "查询分润记录列表": {
  2317. "prefix": "ym-db-ProfitRecord-Find",
  2318. "body": [
  2319. "List<ProfitRecord> $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2320. "foreach (ProfitRecord $3 in $1)",
  2321. "{",
  2322. "}"
  2323. ]
  2324. },
  2325. "查询分润记录列表,并取值": {
  2326. "prefix": "ym-db-ProfitRecord-FindWithData",
  2327. "body": [
  2328. "List<ProfitRecord> $1 = db.ProfitRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2329. "foreach (ProfitRecord $3 in $1)",
  2330. "{",
  2331. " string requestId = $3.requestId; //请求号",
  2332. " string organizationNumber = $3.organizationNumber; //直属代理编号",
  2333. " string organizationName = $3.organizationName; //直属代理名称",
  2334. " string amount = $3.amount; //分润基础数据金额",
  2335. " string orderNo = $3.orderNo; //原交易/结算流水单号",
  2336. " string valueType = $3.valueType; //费率类型",
  2337. " string balanceDirection = $3.balanceDirection; //支出方向",
  2338. " string originalRate = $3.originalRate; //商户费率",
  2339. " string originalFee = $3.originalFee; //原手续费",
  2340. " string profitCost = $3.profitCost; //成本值",
  2341. " string couponAmt = $3.couponAmt; //优惠券金额",
  2342. " string actualCouponAmt = $3.actualCouponAmt; //分润使用优惠券金额",
  2343. " string profitRate = $3.profitRate; //分润税点",
  2344. " string rateFee = $3.rateFee; //分润税费",
  2345. " string incomeScale = $3.incomeScale; //入账比例",
  2346. " string actualIncomeAmt = $3.actualIncomeAmt; //实际结账户金额",
  2347. " string applyDay = $3.applyDay; //分润日期",
  2348. " string createTime = $3.createTime; //创建时间",
  2349. " string topOrgNo = $3.topOrgNo; //一级服务商编号",
  2350. "}"
  2351. ]
  2352. },
  2353. "查询分润记录": {
  2354. "prefix": "ym-db-ProfitRecord-Exist",
  2355. "body": [
  2356. "bool $1 = db.ProfitRecord.Any(m => m.Id == $2);",
  2357. ]
  2358. },
  2359. "查询某个分润记录,并取值": {
  2360. "prefix": "ym-db-ProfitRecord-FindByPrimaryKey",
  2361. "body": [
  2362. "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
  2363. "if ($1 != null)",
  2364. "{",
  2365. " string requestId = $1.requestId; //请求号",
  2366. " string organizationNumber = $1.organizationNumber; //直属代理编号",
  2367. " string organizationName = $1.organizationName; //直属代理名称",
  2368. " string amount = $1.amount; //分润基础数据金额",
  2369. " string orderNo = $1.orderNo; //原交易/结算流水单号",
  2370. " string valueType = $1.valueType; //费率类型",
  2371. " string balanceDirection = $1.balanceDirection; //支出方向",
  2372. " string originalRate = $1.originalRate; //商户费率",
  2373. " string originalFee = $1.originalFee; //原手续费",
  2374. " string profitCost = $1.profitCost; //成本值",
  2375. " string couponAmt = $1.couponAmt; //优惠券金额",
  2376. " string actualCouponAmt = $1.actualCouponAmt; //分润使用优惠券金额",
  2377. " string profitRate = $1.profitRate; //分润税点",
  2378. " string rateFee = $1.rateFee; //分润税费",
  2379. " string incomeScale = $1.incomeScale; //入账比例",
  2380. " string actualIncomeAmt = $1.actualIncomeAmt; //实际结账户金额",
  2381. " string applyDay = $1.applyDay; //分润日期",
  2382. " string createTime = $1.createTime; //创建时间",
  2383. " string topOrgNo = $1.topOrgNo; //一级服务商编号",
  2384. "}"
  2385. ]
  2386. },
  2387. "查询某个分润记录,并赋值": {
  2388. "prefix": "ym-db-ProfitRecord-Update",
  2389. "body": [
  2390. "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
  2391. "if ($1 != null)",
  2392. "{",
  2393. " $1.requestId = $2; //请求号",
  2394. " $1.organizationNumber = $3; //直属代理编号",
  2395. " $1.organizationName = $4; //直属代理名称",
  2396. " $1.amount = $5; //分润基础数据金额",
  2397. " $1.orderNo = $6; //原交易/结算流水单号",
  2398. " $1.valueType = $7; //费率类型",
  2399. " $1.balanceDirection = $8; //支出方向",
  2400. " $1.originalRate = $9; //商户费率",
  2401. " $1.originalFee = $10; //原手续费",
  2402. " $1.profitCost = $11; //成本值",
  2403. " $1.couponAmt = $12; //优惠券金额",
  2404. " $1.actualCouponAmt = $13; //分润使用优惠券金额",
  2405. " $1.profitRate = $14; //分润税点",
  2406. " $1.rateFee = $15; //分润税费",
  2407. " $1.incomeScale = $16; //入账比例",
  2408. " $1.actualIncomeAmt = $17; //实际结账户金额",
  2409. " $1.applyDay = $18; //分润日期",
  2410. " $1.createTime = $19; //创建时间",
  2411. " $1.topOrgNo = $20; //一级服务商编号",
  2412. "}"
  2413. ]
  2414. },
  2415. "获取分润记录数量": {
  2416. "prefix": "ym-db-ProfitRecord-FindAndCount",
  2417. "body": [
  2418. "int $1 = db.ProfitRecord.Count(m => $2);",
  2419. ]
  2420. },
  2421. "添加分润记录": {
  2422. "prefix": "ym-db-ProfitRecord-Create",
  2423. "body": [
  2424. "db.ProfitRecord.Add(new ProfitRecord()",
  2425. "{",
  2426. " CreateDate = DateTime.Now,",
  2427. " UpdateDate = DateTime.Now,",
  2428. " requestId = $1, //请求号",
  2429. " organizationNumber = $2, //直属代理编号",
  2430. " organizationName = $3, //直属代理名称",
  2431. " amount = $4, //分润基础数据金额",
  2432. " orderNo = $5, //原交易/结算流水单号",
  2433. " valueType = $6, //费率类型",
  2434. " balanceDirection = $7, //支出方向",
  2435. " originalRate = $8, //商户费率",
  2436. " originalFee = $9, //原手续费",
  2437. " profitCost = $10, //成本值",
  2438. " couponAmt = $11, //优惠券金额",
  2439. " actualCouponAmt = $12, //分润使用优惠券金额",
  2440. " profitRate = $13, //分润税点",
  2441. " rateFee = $14, //分润税费",
  2442. " incomeScale = $15, //入账比例",
  2443. " actualIncomeAmt = $16, //实际结账户金额",
  2444. " applyDay = $17, //分润日期",
  2445. " createTime = $18, //创建时间",
  2446. " topOrgNo = $19, //一级服务商编号",
  2447. "});"
  2448. ]
  2449. },"删除某个分润记录": {
  2450. "prefix": "ym-db-ProfitRecord-Delete",
  2451. "body": [
  2452. "ProfitRecord $1 = db.ProfitRecord.FirstOrDefault(m => m.Id == $2);",
  2453. "if ($1 != null)",
  2454. "{",
  2455. " db.ProfitRecord.Remove($1);",
  2456. "}"
  2457. ]
  2458. },
  2459. "查询流量卡分佣交易列表": {
  2460. "prefix": "ym-db-TradeFluxRecord-Find",
  2461. "body": [
  2462. "List<TradeFluxRecord> $1 = db.TradeFluxRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2463. "foreach (TradeFluxRecord $3 in $1)",
  2464. "{",
  2465. "}"
  2466. ]
  2467. },
  2468. "查询流量卡分佣交易列表,并取值": {
  2469. "prefix": "ym-db-TradeFluxRecord-FindWithData",
  2470. "body": [
  2471. "List<TradeFluxRecord> $1 = db.TradeFluxRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2472. "foreach (TradeFluxRecord $3 in $1)",
  2473. "{",
  2474. " string TradeSerialNo = $3.TradeSerialNo; //交易单号",
  2475. " string MerNo = $3.MerNo; //商户编号",
  2476. " string MerName = $3.MerName; //商户名称",
  2477. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  2478. " string TradeStatus = $3.TradeStatus; //交易状态",
  2479. " string TradeDate = $3.TradeDate; //交易日期",
  2480. " string TradeTime = $3.TradeTime; //交易时间",
  2481. " string BankCardType = $3.BankCardType; //银行卡类型",
  2482. " string TradeSnNo = $3.TradeSnNo; //交易SN号",
  2483. " string DigAmtFlag = $3.DigAmtFlag; //挖款标识",
  2484. " decimal DigAmt = $3.DigAmt; //挖款金额",
  2485. " string BankCardNo = $3.BankCardNo; //交易卡号",
  2486. " decimal FeeAmount = $3.FeeAmount; //手续费",
  2487. " string SettleMethod = $3.SettleMethod; //出款方式",
  2488. " decimal SettleFee = $3.SettleFee; //出款手续费",
  2489. " string SmallDouble = $3.SmallDouble; //小额双免",
  2490. " string BizEnterNo = $3.BizEnterNo; //业务员编号",
  2491. " string BizEnterName = $3.BizEnterName; //业务员名称",
  2492. " string SourceType = $3.SourceType; //来源类型",
  2493. " string BillType = $3.BillType; //计费类型",
  2494. " string KqTradeSeq = $3.KqTradeSeq; //快钱交易流水号",
  2495. " string InputModel = $3.InputModel; //输入模式",
  2496. " string TerminalNo = $3.TerminalNo; //终端号",
  2497. " string DeviceNetwork = $3.DeviceNetwork; //设备网络",
  2498. " string ProductType = $3.ProductType; //产品类型",
  2499. " string AgentNo = $3.AgentNo; //代理商编号",
  2500. "}"
  2501. ]
  2502. },
  2503. "查询流量卡分佣交易": {
  2504. "prefix": "ym-db-TradeFluxRecord-Exist",
  2505. "body": [
  2506. "bool $1 = db.TradeFluxRecord.Any(m => m.MerNo == $2);",
  2507. ]
  2508. },
  2509. "查询某个流量卡分佣交易,并取值": {
  2510. "prefix": "ym-db-TradeFluxRecord-FindByPrimaryKey",
  2511. "body": [
  2512. "TradeFluxRecord $1 = db.TradeFluxRecord.FirstOrDefault(m => m.MerNo == $2);",
  2513. "if ($1 != null)",
  2514. "{",
  2515. " string TradeSerialNo = $1.TradeSerialNo; //交易单号",
  2516. " string MerNo = $1.MerNo; //商户编号",
  2517. " string MerName = $1.MerName; //商户名称",
  2518. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  2519. " string TradeStatus = $1.TradeStatus; //交易状态",
  2520. " string TradeDate = $1.TradeDate; //交易日期",
  2521. " string TradeTime = $1.TradeTime; //交易时间",
  2522. " string BankCardType = $1.BankCardType; //银行卡类型",
  2523. " string TradeSnNo = $1.TradeSnNo; //交易SN号",
  2524. " string DigAmtFlag = $1.DigAmtFlag; //挖款标识",
  2525. " decimal DigAmt = $1.DigAmt; //挖款金额",
  2526. " string BankCardNo = $1.BankCardNo; //交易卡号",
  2527. " decimal FeeAmount = $1.FeeAmount; //手续费",
  2528. " string SettleMethod = $1.SettleMethod; //出款方式",
  2529. " decimal SettleFee = $1.SettleFee; //出款手续费",
  2530. " string SmallDouble = $1.SmallDouble; //小额双免",
  2531. " string BizEnterNo = $1.BizEnterNo; //业务员编号",
  2532. " string BizEnterName = $1.BizEnterName; //业务员名称",
  2533. " string SourceType = $1.SourceType; //来源类型",
  2534. " string BillType = $1.BillType; //计费类型",
  2535. " string KqTradeSeq = $1.KqTradeSeq; //快钱交易流水号",
  2536. " string InputModel = $1.InputModel; //输入模式",
  2537. " string TerminalNo = $1.TerminalNo; //终端号",
  2538. " string DeviceNetwork = $1.DeviceNetwork; //设备网络",
  2539. " string ProductType = $1.ProductType; //产品类型",
  2540. " string AgentNo = $1.AgentNo; //代理商编号",
  2541. "}"
  2542. ]
  2543. },
  2544. "查询某个流量卡分佣交易,并赋值": {
  2545. "prefix": "ym-db-TradeFluxRecord-Update",
  2546. "body": [
  2547. "TradeFluxRecord $1 = db.TradeFluxRecord.FirstOrDefault(m => m.MerNo == $2);",
  2548. "if ($1 != null)",
  2549. "{",
  2550. " $1.TradeSerialNo = $2; //交易单号",
  2551. " $1.MerNo = $3; //商户编号",
  2552. " $1.MerName = $4; //商户名称",
  2553. " $1.TradeAmount = $5; //交易金额",
  2554. " $1.TradeStatus = $6; //交易状态",
  2555. " $1.TradeDate = $7; //交易日期",
  2556. " $1.TradeTime = $8; //交易时间",
  2557. " $1.BankCardType = $9; //银行卡类型",
  2558. " $1.TradeSnNo = $10; //交易SN号",
  2559. " $1.DigAmtFlag = $11; //挖款标识",
  2560. " $1.DigAmt = $12; //挖款金额",
  2561. " $1.BankCardNo = $13; //交易卡号",
  2562. " $1.FeeAmount = $14; //手续费",
  2563. " $1.SettleMethod = $15; //出款方式",
  2564. " $1.SettleFee = $16; //出款手续费",
  2565. " $1.SmallDouble = $17; //小额双免",
  2566. " $1.BizEnterNo = $18; //业务员编号",
  2567. " $1.BizEnterName = $19; //业务员名称",
  2568. " $1.SourceType = $20; //来源类型",
  2569. " $1.BillType = $21; //计费类型",
  2570. " $1.KqTradeSeq = $22; //快钱交易流水号",
  2571. " $1.InputModel = $23; //输入模式",
  2572. " $1.TerminalNo = $24; //终端号",
  2573. " $1.DeviceNetwork = $25; //设备网络",
  2574. " $1.ProductType = $26; //产品类型",
  2575. " $1.AgentNo = $27; //代理商编号",
  2576. "}"
  2577. ]
  2578. },
  2579. "获取流量卡分佣交易数量": {
  2580. "prefix": "ym-db-TradeFluxRecord-FindAndCount",
  2581. "body": [
  2582. "int $1 = db.TradeFluxRecord.Count(m => $2);",
  2583. ]
  2584. },
  2585. "添加流量卡分佣交易": {
  2586. "prefix": "ym-db-TradeFluxRecord-Create",
  2587. "body": [
  2588. "db.TradeFluxRecord.Add(new TradeFluxRecord()",
  2589. "{",
  2590. " CreateDate = DateTime.Now,",
  2591. " UpdateDate = DateTime.Now,",
  2592. " TradeSerialNo = $1, //交易单号",
  2593. " MerNo = $2, //商户编号",
  2594. " MerName = $3, //商户名称",
  2595. " TradeAmount = $4, //交易金额",
  2596. " TradeStatus = $5, //交易状态",
  2597. " TradeDate = $6, //交易日期",
  2598. " TradeTime = $7, //交易时间",
  2599. " BankCardType = $8, //银行卡类型",
  2600. " TradeSnNo = $9, //交易SN号",
  2601. " DigAmtFlag = $10, //挖款标识",
  2602. " DigAmt = $11, //挖款金额",
  2603. " BankCardNo = $12, //交易卡号",
  2604. " FeeAmount = $13, //手续费",
  2605. " SettleMethod = $14, //出款方式",
  2606. " SettleFee = $15, //出款手续费",
  2607. " SmallDouble = $16, //小额双免",
  2608. " BizEnterNo = $17, //业务员编号",
  2609. " BizEnterName = $18, //业务员名称",
  2610. " SourceType = $19, //来源类型",
  2611. " BillType = $20, //计费类型",
  2612. " KqTradeSeq = $21, //快钱交易流水号",
  2613. " InputModel = $22, //输入模式",
  2614. " TerminalNo = $23, //终端号",
  2615. " DeviceNetwork = $24, //设备网络",
  2616. " ProductType = $25, //产品类型",
  2617. " AgentNo = $26, //代理商编号",
  2618. "});"
  2619. ]
  2620. },"删除某个流量卡分佣交易": {
  2621. "prefix": "ym-db-TradeFluxRecord-Delete",
  2622. "body": [
  2623. "TradeFluxRecord $1 = db.TradeFluxRecord.FirstOrDefault(m => m.MerNo == $2);",
  2624. "if ($1 != null)",
  2625. "{",
  2626. " db.TradeFluxRecord.Remove($1);",
  2627. "}"
  2628. ]
  2629. },
  2630. "查询交易记录列表": {
  2631. "prefix": "ym-db-TradeRecord-Find",
  2632. "body": [
  2633. "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2634. "foreach (TradeRecord $3 in $1)",
  2635. "{",
  2636. "}"
  2637. ]
  2638. },
  2639. "查询交易记录列表,并取值": {
  2640. "prefix": "ym-db-TradeRecord-FindWithData",
  2641. "body": [
  2642. "List<TradeRecord> $1 = db.TradeRecord.Where(m => $2).OrderByDescending(m => m.Id).ToList();",
  2643. "foreach (TradeRecord $3 in $1)",
  2644. "{",
  2645. " string TradeSerialNo = $3.TradeSerialNo; //交易单号",
  2646. " string MerNo = $3.MerNo; //商户编号",
  2647. " string MerName = $3.MerName; //商户名称",
  2648. " decimal TradeAmount = $3.TradeAmount; //交易金额",
  2649. " string TradeReferNo = $3.TradeReferNo; //交易参考号",
  2650. " string BankAuthCode = $3.BankAuthCode; //银行授权码",
  2651. " string DiscountRateFlag = $3.DiscountRateFlag; //优惠费率标识",
  2652. " string TradeStatus = $3.TradeStatus; //交易状态",
  2653. " string ErrorCode = $3.ErrorCode; //错误码",
  2654. " string ErrorMsg = $3.ErrorMsg; //错误信息",
  2655. " string TradeDate = $3.TradeDate; //交易日期",
  2656. " string TradeTime = $3.TradeTime; //交易时间",
  2657. " string TradeType = $3.TradeType; //交易类型",
  2658. " string SerEntryMode = $3.SerEntryMode; //输入模式",
  2659. " string BankCardType = $3.BankCardType; //银行卡类型",
  2660. " string TradeSnNo = $3.TradeSnNo; //交易SN号",
  2661. " string DeviceType = $3.DeviceType; //设备类型",
  2662. " string MerMobile = $3.MerMobile; //商户手机号",
  2663. " string DigAmtFlag = $3.DigAmtFlag; //挖款标识",
  2664. " decimal DigAmt = $3.DigAmt; //挖款金额",
  2665. " string IsStoreCashier = $3.IsStoreCashier; //店面收银交易标识",
  2666. " string ReceiptType = $3.ReceiptType; //设备类型",
  2667. " string BankCardNo = $3.BankCardNo; //交易卡号",
  2668. " decimal SettleFee = $3.SettleFee; //出款手续费",
  2669. " string SettleMethod = $3.SettleMethod; //出款方式",
  2670. " string Remark = $3.Remark; //备注",
  2671. " string ProductType = $3.ProductType; //产品类型",
  2672. " string AgentNo = $3.AgentNo; //代理商编号",
  2673. " string ChannelSerial = $3.ChannelSerial; //渠道流水号",
  2674. "}"
  2675. ]
  2676. },
  2677. "查询交易记录": {
  2678. "prefix": "ym-db-TradeRecord-Exist",
  2679. "body": [
  2680. "bool $1 = db.TradeRecord.Any(m => m.Id == $2);",
  2681. ]
  2682. },
  2683. "查询某个交易记录,并取值": {
  2684. "prefix": "ym-db-TradeRecord-FindByPrimaryKey",
  2685. "body": [
  2686. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  2687. "if ($1 != null)",
  2688. "{",
  2689. " string TradeSerialNo = $1.TradeSerialNo; //交易单号",
  2690. " string MerNo = $1.MerNo; //商户编号",
  2691. " string MerName = $1.MerName; //商户名称",
  2692. " decimal TradeAmount = $1.TradeAmount; //交易金额",
  2693. " string TradeReferNo = $1.TradeReferNo; //交易参考号",
  2694. " string BankAuthCode = $1.BankAuthCode; //银行授权码",
  2695. " string DiscountRateFlag = $1.DiscountRateFlag; //优惠费率标识",
  2696. " string TradeStatus = $1.TradeStatus; //交易状态",
  2697. " string ErrorCode = $1.ErrorCode; //错误码",
  2698. " string ErrorMsg = $1.ErrorMsg; //错误信息",
  2699. " string TradeDate = $1.TradeDate; //交易日期",
  2700. " string TradeTime = $1.TradeTime; //交易时间",
  2701. " string TradeType = $1.TradeType; //交易类型",
  2702. " string SerEntryMode = $1.SerEntryMode; //输入模式",
  2703. " string BankCardType = $1.BankCardType; //银行卡类型",
  2704. " string TradeSnNo = $1.TradeSnNo; //交易SN号",
  2705. " string DeviceType = $1.DeviceType; //设备类型",
  2706. " string MerMobile = $1.MerMobile; //商户手机号",
  2707. " string DigAmtFlag = $1.DigAmtFlag; //挖款标识",
  2708. " decimal DigAmt = $1.DigAmt; //挖款金额",
  2709. " string IsStoreCashier = $1.IsStoreCashier; //店面收银交易标识",
  2710. " string ReceiptType = $1.ReceiptType; //设备类型",
  2711. " string BankCardNo = $1.BankCardNo; //交易卡号",
  2712. " decimal SettleFee = $1.SettleFee; //出款手续费",
  2713. " string SettleMethod = $1.SettleMethod; //出款方式",
  2714. " string Remark = $1.Remark; //备注",
  2715. " string ProductType = $1.ProductType; //产品类型",
  2716. " string AgentNo = $1.AgentNo; //代理商编号",
  2717. " string ChannelSerial = $1.ChannelSerial; //渠道流水号",
  2718. "}"
  2719. ]
  2720. },
  2721. "查询某个交易记录,并赋值": {
  2722. "prefix": "ym-db-TradeRecord-Update",
  2723. "body": [
  2724. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  2725. "if ($1 != null)",
  2726. "{",
  2727. " $1.TradeSerialNo = $2; //交易单号",
  2728. " $1.MerNo = $3; //商户编号",
  2729. " $1.MerName = $4; //商户名称",
  2730. " $1.TradeAmount = $5; //交易金额",
  2731. " $1.TradeReferNo = $6; //交易参考号",
  2732. " $1.BankAuthCode = $7; //银行授权码",
  2733. " $1.DiscountRateFlag = $8; //优惠费率标识",
  2734. " $1.TradeStatus = $9; //交易状态",
  2735. " $1.ErrorCode = $10; //错误码",
  2736. " $1.ErrorMsg = $11; //错误信息",
  2737. " $1.TradeDate = $12; //交易日期",
  2738. " $1.TradeTime = $13; //交易时间",
  2739. " $1.TradeType = $14; //交易类型",
  2740. " $1.SerEntryMode = $15; //输入模式",
  2741. " $1.BankCardType = $16; //银行卡类型",
  2742. " $1.TradeSnNo = $17; //交易SN号",
  2743. " $1.DeviceType = $18; //设备类型",
  2744. " $1.MerMobile = $19; //商户手机号",
  2745. " $1.DigAmtFlag = $20; //挖款标识",
  2746. " $1.DigAmt = $21; //挖款金额",
  2747. " $1.IsStoreCashier = $22; //店面收银交易标识",
  2748. " $1.ReceiptType = $23; //设备类型",
  2749. " $1.BankCardNo = $24; //交易卡号",
  2750. " $1.SettleFee = $25; //出款手续费",
  2751. " $1.SettleMethod = $26; //出款方式",
  2752. " $1.Remark = $27; //备注",
  2753. " $1.ProductType = $28; //产品类型",
  2754. " $1.AgentNo = $29; //代理商编号",
  2755. " $1.ChannelSerial = $30; //渠道流水号",
  2756. "}"
  2757. ]
  2758. },
  2759. "获取交易记录数量": {
  2760. "prefix": "ym-db-TradeRecord-FindAndCount",
  2761. "body": [
  2762. "int $1 = db.TradeRecord.Count(m => $2);",
  2763. ]
  2764. },
  2765. "添加交易记录": {
  2766. "prefix": "ym-db-TradeRecord-Create",
  2767. "body": [
  2768. "db.TradeRecord.Add(new TradeRecord()",
  2769. "{",
  2770. " CreateDate = DateTime.Now,",
  2771. " UpdateDate = DateTime.Now,",
  2772. " TradeSerialNo = $1, //交易单号",
  2773. " MerNo = $2, //商户编号",
  2774. " MerName = $3, //商户名称",
  2775. " TradeAmount = $4, //交易金额",
  2776. " TradeReferNo = $5, //交易参考号",
  2777. " BankAuthCode = $6, //银行授权码",
  2778. " DiscountRateFlag = $7, //优惠费率标识",
  2779. " TradeStatus = $8, //交易状态",
  2780. " ErrorCode = $9, //错误码",
  2781. " ErrorMsg = $10, //错误信息",
  2782. " TradeDate = $11, //交易日期",
  2783. " TradeTime = $12, //交易时间",
  2784. " TradeType = $13, //交易类型",
  2785. " SerEntryMode = $14, //输入模式",
  2786. " BankCardType = $15, //银行卡类型",
  2787. " TradeSnNo = $16, //交易SN号",
  2788. " DeviceType = $17, //设备类型",
  2789. " MerMobile = $18, //商户手机号",
  2790. " DigAmtFlag = $19, //挖款标识",
  2791. " DigAmt = $20, //挖款金额",
  2792. " IsStoreCashier = $21, //店面收银交易标识",
  2793. " ReceiptType = $22, //设备类型",
  2794. " BankCardNo = $23, //交易卡号",
  2795. " SettleFee = $24, //出款手续费",
  2796. " SettleMethod = $25, //出款方式",
  2797. " Remark = $26, //备注",
  2798. " ProductType = $27, //产品类型",
  2799. " AgentNo = $28, //代理商编号",
  2800. " ChannelSerial = $29, //渠道流水号",
  2801. "});"
  2802. ]
  2803. },"删除某个交易记录": {
  2804. "prefix": "ym-db-TradeRecord-Delete",
  2805. "body": [
  2806. "TradeRecord $1 = db.TradeRecord.FirstOrDefault(m => m.Id == $2);",
  2807. "if ($1 != null)",
  2808. "{",
  2809. " db.TradeRecord.Remove($1);",
  2810. "}"
  2811. ]
  2812. },
  2813. }