yspay_merchant_log.php 5.1 KB

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