yspay_cash.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. 'merchant_id' => array
  33. (
  34. 'type' => 'int-11',
  35. 'name' => '商户id',
  36. 'default' => '',
  37. 'desc' => '商户id',
  38. 'match' => 'option',
  39. 'update' => 'hidden',
  40. 'value' => Dever::input('search_option_merchant_id'),
  41. 'list_name' => '商户名称',
  42. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  43. ),
  44. 'order_num' => array
  45. (
  46. 'type' => 'varchar-800',
  47. 'name' => '流水号',
  48. 'default' => '',
  49. 'desc' => '流水号',
  50. 'match' => 'is_string',
  51. 'update' => 'text',
  52. 'list' => true,
  53. ),
  54. 'source_order_num' => array
  55. (
  56. 'type' => 'varchar-800',
  57. 'name' => '关联订单号',
  58. 'default' => '',
  59. 'desc' => '关联订单号',
  60. 'match' => 'is_string',
  61. 'update' => 'text',
  62. 'list' => true,
  63. ),
  64. 'ycash' => array
  65. (
  66. 'type' => 'int-11',
  67. 'name' => '交易金额',
  68. 'default' => '0',
  69. 'desc' => '交易金额',
  70. 'match' => 'option',
  71. 'list' => 'Dever::number({ycash}/100, 2)',
  72. ),
  73. 'cash' => array
  74. (
  75. 'type' => 'int-11',
  76. 'name' => '实际金额',
  77. 'default' => '0',
  78. 'desc' => '实际金额',
  79. 'match' => 'option',
  80. 'list' => 'Dever::number({cash}/100, 2)',
  81. ),
  82. 'hf_cash' => array
  83. (
  84. 'type' => 'int-11',
  85. 'name' => '商户划付金额',
  86. 'default' => '0',
  87. 'desc' => '划付金额',
  88. 'match' => 'option',
  89. //'update' => 'text',
  90. 'list' => 'Dever::number({hf_cash}/100, 2)',
  91. ),
  92. 'fz_cash' => array
  93. (
  94. 'type' => 'int-11',
  95. 'name' => '平台分账金额',
  96. 'default' => '0',
  97. 'desc' => '分账金额',
  98. 'match' => 'option',
  99. //'update' => 'text',
  100. 'list' => 'Dever::number({fz_cash}/100, 2)',
  101. ),
  102. 'rdate' => array
  103. (
  104. 'type' => 'int-11',
  105. 'name' => '入账时间',
  106. 'default' => '',
  107. 'match' => 'is_numeric',
  108. 'desc' => '',
  109. 'search' => 'date',
  110. 'list' => '"{rdate}" ? date("Y-m-d H:i", \'{rdate}\') : "-"',
  111. 'list_order' => 100,
  112. ),
  113. 'tdate' => array
  114. (
  115. 'type' => 'int-11',
  116. 'name' => '提现时间',
  117. 'default' => '',
  118. 'match' => 'is_numeric',
  119. 'desc' => '',
  120. 'search' => 'date',
  121. 'list' => '"{tdate}" ? date("Y-m-d H:i", \'{tdate}\') : "-"',
  122. 'list_order' => 101,
  123. ),
  124. 'status' => array
  125. (
  126. 'type' => 'tinyint-1',
  127. 'name' => '状态',
  128. 'default' => '1',
  129. 'desc' => '状态',
  130. 'match' => 'is_numeric',
  131. 'option' => $status,
  132. 'search' => 'select',
  133. 'list' => true,
  134. ),
  135. 'state' => array
  136. (
  137. 'type' => 'tinyint-1',
  138. 'name' => '状态',
  139. 'default' => '1',
  140. 'desc' => '请选择状态',
  141. 'match' => 'is_numeric',
  142. ),
  143. 'cdate' => array
  144. (
  145. 'type' => 'int-11',
  146. 'name' => '创建时间',
  147. 'match' => array('is_numeric', time()),
  148. 'desc' => '',
  149. # 只有insert时才生效
  150. //'insert' => true,
  151. //'search' => 'date',
  152. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  153. ),
  154. ),
  155. 'manage' => array
  156. (
  157. 'edit' => false,
  158. 'insert' => false,
  159. 'delete' => false,
  160. 'button' => array
  161. (
  162. '资金划付' => array('oper', 'pay/yspay/cash.huafu_commit'),
  163. ),
  164. ),
  165. 'request' => array
  166. (
  167. 'getTotal' => array
  168. (
  169. 'option' => array
  170. (
  171. 'merchant_id' => 'yes',
  172. 'status' => array('yes', '>='),
  173. 'state' => 1,
  174. ),
  175. 'type' => 'one',
  176. 'col' => 'sum(cash) as cash,sum(tx_cash) as tx_cash,sum(fz_cash) as fz_cash',
  177. ),
  178. ),
  179. );