You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OperaProduct.php 1.3 KiB

3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. *
  4. * ============================================================================
  5. * * 版权所有 蜘蛛出行 * *
  6. * 网站地址: http://www.zhizhuchuxing.com
  7. * ----------------------------------------------------------------------------
  8. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和
  9. * 使用;不允许对程序代码以任何形式任何目的的再发布。
  10. * ============================================================================
  11. * Author By: 倪宗锋
  12. * PhpStorm OperaProduct.php
  13. * Create By 2016/11/8 10:10 $
  14. */
  15. namespace Home\Model;
  16. use Base\Tool\DbTable;
  17. use Util\Util\Util;
  18. class OperaProduct extends DbTable
  19. {
  20. public $db = 'CST';
  21. public $tab = 'opera_product';
  22. /**
  23. * Function Description:获取列表
  24. * Function Name: getList
  25. *
  26. * @return array
  27. *
  28. * @author 倪宗锋
  29. */
  30. public function getList()
  31. {
  32. $sql = 'select * from opera_product limit 10';
  33. $result = $this->fetchRow($sql);
  34. return Util::returnArrSu('', '', $result);
  35. }
  36. public function updates()
  37. {
  38. $data = array(
  39. 'CANCEL_FLAG' => '1',
  40. 'ORG_ID' => '1'
  41. );
  42. $where = 'PROD_ID = 1';
  43. $update = $this->update($data, $where);
  44. }
  45. }