yspay_merchant_log.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. 'search' => 'order',
  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. 'type' => array
  59. (
  60. 'type' => 'int-11',
  61. 'name' => '类型',
  62. 'default' => '',
  63. 'desc' => '类型',
  64. 'match' => 'is_numeric',
  65. 'update' => 'text',
  66. 'option' => $type,
  67. 'search' => 'select',
  68. 'list' => true,
  69. ),
  70. 'cash' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '交易金额',
  74. 'default' => '0',
  75. 'desc' => '交易金额',
  76. 'match' => 'option',
  77. 'update' => 'text',
  78. 'list' => 'Dever::number({cash}/1000, 2)',
  79. ),
  80. 'yue' => array
  81. (
  82. 'type' => 'int-11',
  83. 'name' => '交易后余额',
  84. 'default' => '0',
  85. 'desc' => '交易后余额',
  86. 'match' => 'option',
  87. 'update' => 'text',
  88. 'list' => 'Dever::number({yue}/1000, 2)',
  89. ),
  90. 'state' => array
  91. (
  92. 'type' => 'tinyint-1',
  93. 'name' => '状态',
  94. 'default' => '1',
  95. 'desc' => '请选择状态',
  96. 'match' => 'is_numeric',
  97. ),
  98. 'cdate' => array
  99. (
  100. 'type' => 'int-11',
  101. 'name' => '交易时间',
  102. 'match' => array('is_numeric', time()),
  103. 'desc' => '',
  104. # 只有insert时才生效
  105. //'insert' => true,
  106. 'search' => 'date',
  107. 'list' => 'date("Y-m-d H:i", {cdate})',
  108. ),
  109. ),
  110. 'manage' => array
  111. (
  112. 'edit' => false,
  113. 'insert' => false,
  114. 'delete' => false,
  115. 'button' => $button,
  116. ),
  117. 'request' => array
  118. (
  119. 'getList' => array
  120. (
  121. 'option' => array
  122. (
  123. 'start' => array('yes-cdate', '>='),
  124. 'end' => array('yes-cdate', '<='),
  125. 'type' => 'yes',
  126. 'merchant_id' => 'yes',
  127. 'state' => 1,
  128. ),
  129. 'type' => 'all',
  130. 'page' => array(20, 'list'),
  131. 'col' => '*',
  132. ),
  133. ),
  134. );