TableDataLogic.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeadmin快速开发前后端分离管理后台(PHP版)
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
  8. // | github下载:https://github.com/likeshop-github/likeadmin
  9. // | 访问官网:https://www.likeadmin.cn
  10. // | likeadmin团队 版权所有 拥有最终解释权
  11. // +----------------------------------------------------------------------
  12. // | author: likeadminTeam
  13. // +----------------------------------------------------------------------
  14. namespace app\common\logic;
  15. use app\common\enum\PayEnum;
  16. use app\common\enum\RefundEnum;
  17. use app\common\model\labels\Labels;
  18. use app\common\model\property\PropertyHead;
  19. use app\common\model\recharge\RechargeOrder;
  20. use app\common\model\refund\RefundLog;
  21. use app\common\model\refund\RefundRecord;
  22. use app\common\model\sale\Sale;
  23. use app\common\model\sale\SaleGroup;
  24. use app\common\service\pay\AliPayService;
  25. use app\common\service\pay\WeChatPayService;
  26. /**
  27. * 查询选项类数据
  28. * Class TableDataLogic
  29. * @package app\common\logic
  30. */
  31. class TableDataLogic extends BaseLogic
  32. {
  33. /**
  34. * @notes 标签列表
  35. */
  36. public static function labels()
  37. {
  38. return Labels::where('id','>',0)->field('id,label_name as name,id as value,"data_table_labels" as type_value')->select()->toArray();
  39. }
  40. /**
  41. * @notes 销售列表
  42. */
  43. public static function sale()
  44. {
  45. return Sale::where('id','>',0)->field('id,sale_name as name,id as value,"data_table_sale" as type_value')->select()->toArray();
  46. }
  47. /**
  48. * @notes 销售组列表
  49. */
  50. public static function saleGroup()
  51. {
  52. return SaleGroup::where('id','>',0)->field('id,sale_name as name,id as value,"data_table_saleGroup" as type_value')->select()->toArray();
  53. }
  54. public static function propertyHead()
  55. {
  56. return PropertyHead::where('id','>',0)->field('id,village_name as name,id as value,"data_table_propertyHead" as type_value')->select()->toArray();
  57. }
  58. }