yspay_merchant_log.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php
  2. $type = array
  3. (
  4. 1 => '入账',
  5. //2 => '分账',
  6. 3 => '提现',
  7. );
  8. $tixian_status = array
  9. (
  10. 1 => '未提现',
  11. 2 => '提现中',
  12. 3 => '提现成功',
  13. 4 => '提现失败',
  14. );
  15. $link = Dever::decode(Dever::input('refer'));
  16. $button = array
  17. (
  18. '返回上一页' => array('location', $link),
  19. );
  20. return array
  21. (
  22. # 表名
  23. 'name' => 'yspay_merchant_log',
  24. # 显示给用户看的名称
  25. 'lang' => '银联资金日志列表',
  26. 'order' => -200,
  27. 'menu' => false,
  28. 'end' => array
  29. (
  30. 'update' => 'pay/yspay/merchant.updateLog',
  31. ),
  32. # 数据结构
  33. 'struct' => array
  34. (
  35. 'id' => array
  36. (
  37. 'type' => 'int-11',
  38. 'name' => 'ID',
  39. 'default' => '',
  40. 'desc' => '',
  41. 'match' => 'is_numeric',
  42. 'order' => 'desc',
  43. 'update' => 'hidden',
  44. //'list' => true,
  45. ),
  46. 'account_id' => array
  47. (
  48. 'type' => 'int-11',
  49. 'name' => '账户id',
  50. 'default' => '',
  51. 'desc' => '账户id',
  52. 'match' => 'option',
  53. 'search' => 'hidden',
  54. 'update' => 'hidden',
  55. 'value' => Dever::input('search_option_account_id'),
  56. ),
  57. 'merchant_id' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '商户id',
  61. 'default' => '',
  62. 'desc' => '商户id',
  63. 'match' => 'option',
  64. 'update' => 'hidden',
  65. 'value' => Dever::input('search_option_merchant_id'),
  66. 'list_name' => '商户名称',
  67. 'list' => 'Dever::load("pay/yspay_merchant-one#name", "{merchant_id}")',
  68. ),
  69. 'name' => array
  70. (
  71. 'type' => 'varchar-100',
  72. 'name' => '操作人',
  73. 'default' => '',
  74. 'desc' => '操作人',
  75. 'match' => 'option',
  76. 'list_name' => '操作人',
  77. 'list' => true,
  78. 'list_order' => 100,
  79. ),
  80. 'type' => array
  81. (
  82. 'type' => 'int-11',
  83. 'name' => '类型',
  84. 'default' => '',
  85. 'desc' => '类型',
  86. 'match' => 'is_numeric',
  87. 'update' => 'text',
  88. 'option' => $type,
  89. 'search' => 'select',
  90. 'list' => true,
  91. ),
  92. 'cash' => array
  93. (
  94. 'type' => 'int-11',
  95. 'name' => '交易金额',
  96. 'default' => '0',
  97. 'desc' => '交易金额',
  98. 'match' => 'option',
  99. 'update' => 'text',
  100. 'list' => 'Dever::number({cash}/100, 2)',
  101. ),
  102. 'yue' => array
  103. (
  104. 'type' => 'int-11',
  105. 'name' => '交易后余额',
  106. 'default' => '0',
  107. 'desc' => '交易后余额',
  108. 'match' => 'option',
  109. 'update' => 'text',
  110. 'list' => 'Dever::number({yue}/100, 2)',
  111. ),
  112. 'tixian_status' => array
  113. (
  114. 'type' => 'tinyint-1',
  115. 'name' => '提现状态',
  116. 'default' => '1',
  117. 'desc' => '提现状态',
  118. 'match' => 'is_numeric',
  119. 'update' => 'text',
  120. 'option' => $tixian_status,
  121. 'search' => 'select',
  122. 'list' => true,
  123. 'edit' => '{my_role_id}==1 && {type} == 3'
  124. ),
  125. 'state' => array
  126. (
  127. 'type' => 'tinyint-1',
  128. 'name' => '状态',
  129. 'default' => '1',
  130. 'desc' => '请选择状态',
  131. 'match' => 'is_numeric',
  132. ),
  133. 'cdate' => array
  134. (
  135. 'type' => 'int-11',
  136. 'name' => '交易时间',
  137. 'match' => array('is_numeric', time()),
  138. 'desc' => '',
  139. # 只有insert时才生效
  140. //'insert' => true,
  141. 'search' => 'date',
  142. 'list' => 'date("Y-m-d H:i", {cdate})',
  143. ),
  144. ),
  145. 'manage' => array
  146. (
  147. 'edit' => false,
  148. 'insert' => false,
  149. 'delete' => false,
  150. 'button' => $button,
  151. ),
  152. 'request' => array
  153. (
  154. 'getList' => array
  155. (
  156. 'option' => array
  157. (
  158. 'start' => array('yes-cdate', '>='),
  159. 'end' => array('yes-cdate', '<='),
  160. 'type' => 'yes',
  161. 'merchant_id' => 'yes',
  162. 'state' => 1,
  163. ),
  164. 'type' => 'all',
  165. 'page' => array(20, 'list'),
  166. 'order' => array('id' => 'desc'),
  167. 'col' => '*',
  168. ),
  169. ),
  170. );