yspay_merchant_log.php 4.4 KB

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