index.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. namespace app\admin\controller;
  3. use app\admin\model\ReportCode;
  4. use think\Request;
  5. class index
  6. {
  7. /**
  8. * 显示资源列表
  9. *
  10. * @return \think\Response
  11. */
  12. public function index()
  13. {
  14. $report =ReportCode::where(['qrdNo'=>212])->find();
  15. // $report =ReportCode::find(['id'=>1]);
  16. var_dump($report->payNo);
  17. $report->setField("payNo","222");
  18. // $report->setpayNo('pay');
  19. // $report->setinvNo('inv');
  20. // $report->setlogNo('log');
  21. // $report->settradNo('trad');
  22. // $report->setDzNo('dz');
  23. // $report->sethpNo('hp');
  24. // $report->setreturnInv('returninv');
  25. // $report->setreturnTrad('returntrad');
  26. }
  27. /**
  28. * 显示创建资源表单页.
  29. *
  30. * @return \think\Response
  31. */
  32. public function create()
  33. {
  34. //
  35. }
  36. /**
  37. * 保存新建的资源
  38. *
  39. * @param \think\Request $request
  40. * @return \think\Response
  41. */
  42. public function save(Request $request)
  43. {
  44. //
  45. }
  46. /**
  47. * 显示指定的资源
  48. *
  49. * @param int $id
  50. * @return \think\Response
  51. */
  52. public function read($id)
  53. {
  54. //
  55. }
  56. /**
  57. * 显示编辑资源表单页.
  58. *
  59. * @param int $id
  60. * @return \think\Response
  61. */
  62. public function edit($id)
  63. {
  64. //
  65. }
  66. /**
  67. * 保存更新的资源
  68. *
  69. * @param \think\Request $request
  70. * @param int $id
  71. * @return \think\Response
  72. */
  73. public function update(Request $request, $id)
  74. {
  75. //
  76. }
  77. /**
  78. * 删除指定资源
  79. *
  80. * @param int $id
  81. * @return \think\Response
  82. */
  83. public function delete($id)
  84. {
  85. //
  86. }
  87. }