yspay_cash.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <?php
  2. $status = array
  3. (
  4. 1 => '未确认',
  5. 2 => '待入账',
  6. 3 => '已入账',
  7. 4 => '申请提现',
  8. 5 => '已提现',
  9. 6 => '提现失败',
  10. );
  11. return array
  12. (
  13. # 表名
  14. 'name' => 'yspay_cash',
  15. # 显示给用户看的名称
  16. 'lang' => '银联资金记录表',
  17. 'menu' => false,
  18. # 数据结构
  19. 'struct' => array
  20. (
  21. 'id' => array
  22. (
  23. 'type' => 'int-11',
  24. 'name' => 'ID',
  25. 'default' => '',
  26. 'desc' => '',
  27. 'match' => 'is_numeric',
  28. 'search' => 'order',
  29. 'update' => 'hidden',
  30. //'list' => true,
  31. ),
  32. 'account_id' => array
  33. (
  34. 'type' => 'int-11',
  35. 'name' => '账户id',
  36. 'default' => '',
  37. 'desc' => '账户id',
  38. 'match' => 'option',
  39. 'search' => 'hidden',
  40. 'update' => 'hidden',
  41. 'value' => Dever::input('search_option_account_id'),
  42. ),
  43. 'merchant_id' => array
  44. (
  45. 'type' => 'int-11',
  46. 'name' => '商户id',
  47. 'default' => '',
  48. 'desc' => '商户id',
  49. 'match' => 'option',
  50. 'search' => 'hidden',
  51. 'update' => 'hidden',
  52. 'value' => Dever::input('search_option_merchant_id'),
  53. 'list_name' => '商户名称',
  54. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  55. ),
  56. 'order_num' => array
  57. (
  58. 'type' => 'varchar-800',
  59. 'name' => '流水号',
  60. 'default' => '',
  61. 'desc' => '流水号',
  62. 'match' => 'is_string',
  63. 'update' => 'text',
  64. 'list' => true,
  65. ),
  66. 'source_order_num' => array
  67. (
  68. 'type' => 'varchar-800',
  69. 'name' => '关联订单号',
  70. 'default' => '',
  71. 'desc' => '关联订单号',
  72. 'match' => 'is_string',
  73. 'update' => 'text',
  74. 'list' => true,
  75. ),
  76. 'ycash' => array
  77. (
  78. 'type' => 'int-11',
  79. 'name' => '交易金额',
  80. 'default' => '0',
  81. 'desc' => '交易金额',
  82. 'match' => 'option',
  83. 'list' => 'Dever::number({ycash}/100, 2)',
  84. ),
  85. 'yl_cash' => array
  86. (
  87. 'type' => 'int-11',
  88. 'name' => '银联手续费',
  89. 'default' => '0',
  90. 'desc' => '银联手续费',
  91. 'match' => 'option',
  92. 'list' => 'Dever::number({yl_cash}/100, 2)',
  93. ),
  94. 'pt_cash' => array
  95. (
  96. 'type' => 'int-11',
  97. 'name' => '平台手续费',
  98. 'default' => '0',
  99. 'desc' => '平台手续费',
  100. 'match' => 'option',
  101. 'list' => 'Dever::number({pt_cash}/100, 2)',
  102. ),
  103. 'cash' => array
  104. (
  105. 'type' => 'int-11',
  106. 'name' => '实际金额',
  107. 'default' => '0',
  108. 'desc' => '实际金额',
  109. 'match' => 'option',
  110. 'list' => 'Dever::number({cash}/100, 2)',
  111. ),
  112. 'hf_cash' => array
  113. (
  114. 'type' => 'int-11',
  115. 'name' => '商户划付金额',
  116. 'default' => '0',
  117. 'desc' => '划付金额',
  118. 'match' => 'option',
  119. //'update' => 'text',
  120. 'list' => 'Dever::number({hf_cash}/100, 2)',
  121. ),
  122. 'fz_cash' => array
  123. (
  124. 'type' => 'int-11',
  125. 'name' => '平台分账金额',
  126. 'default' => '0',
  127. 'desc' => '分账金额',
  128. 'match' => 'option',
  129. //'update' => 'text',
  130. 'list' => 'Dever::number({fz_cash}/100, 2)',
  131. ),
  132. 'rdate' => array
  133. (
  134. 'type' => 'int-11',
  135. 'name' => '入账时间',
  136. 'default' => '',
  137. 'match' => 'is_numeric',
  138. 'desc' => '',
  139. 'search' => 'date',
  140. 'list' => '"{rdate}" ? date("Y-m-d H:i", \'{rdate}\') : "-"',
  141. 'list_order' => 100,
  142. ),
  143. 'tdate' => array
  144. (
  145. 'type' => 'int-11',
  146. 'name' => '提现时间',
  147. 'default' => '',
  148. 'match' => 'is_numeric',
  149. 'desc' => '',
  150. 'search' => 'date',
  151. 'list' => '"{tdate}" ? date("Y-m-d H:i", \'{tdate}\') : "-"',
  152. 'list_order' => 101,
  153. ),
  154. 'status' => array
  155. (
  156. 'type' => 'tinyint-1',
  157. 'name' => '状态',
  158. 'default' => '1',
  159. 'desc' => '状态',
  160. 'match' => 'is_numeric',
  161. 'option' => $status,
  162. 'search' => 'select',
  163. 'list' => true,
  164. ),
  165. 'state' => array
  166. (
  167. 'type' => 'tinyint-1',
  168. 'name' => '状态',
  169. 'default' => '1',
  170. 'desc' => '请选择状态',
  171. 'match' => 'is_numeric',
  172. ),
  173. 'cdate' => array
  174. (
  175. 'type' => 'int-11',
  176. 'name' => '创建时间',
  177. 'match' => array('is_numeric', time()),
  178. 'desc' => '',
  179. # 只有insert时才生效
  180. //'insert' => true,
  181. //'search' => 'date',
  182. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  183. ),
  184. ),
  185. 'manage' => array
  186. (
  187. 'edit' => false,
  188. 'insert' => false,
  189. 'delete' => false,
  190. 'button' => array
  191. (
  192. '资金划付' => array('oper', 'pay/yspay/cash.huafu_commit'),
  193. ),
  194. ),
  195. 'request' => array
  196. (
  197. 'getTotal' => array
  198. (
  199. 'option' => array
  200. (
  201. 'merchant_id' => 'yes',
  202. 'status' => array('yes', '>='),
  203. 'state' => 1,
  204. ),
  205. 'type' => 'one',
  206. 'col' => 'sum(cash) as cash,sum(hf_cash) as hf_cash,sum(fz_cash) as fz_cash,sum(yl_cash) as yl_cash,sum(pt_cash) as pt_cash',
  207. ),
  208. ),
  209. );