seller_log.model.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 卖家日志模型
  4. *
  5. *
  6. *
  7. *
  8. */
  9. defined('InShopNC') or exit('Access Invalid!');
  10. class seller_logModel extends Model{
  11. public function __construct(){
  12. parent::__construct('seller_log');
  13. }
  14. /**
  15. * 读取列表
  16. * @param array $condition
  17. *
  18. */
  19. public function getSellerLogList($condition, $page='', $order='', $field='*') {
  20. $result = $this->field($field)->where($condition)->page($page)->order($order)->select();
  21. return $result;
  22. }
  23. /**
  24. * 读取单条记录
  25. * @param array $condition
  26. *
  27. */
  28. public function getSellerLogInfo($condition) {
  29. $result = $this->where($condition)->find();
  30. return $result;
  31. }
  32. /*
  33. * 增加
  34. * @param array $param
  35. * @return bool
  36. */
  37. public function addSellerLog($param){
  38. return $this->insert($param);
  39. }
  40. /*
  41. * 删除
  42. * @param array $condition
  43. * @return bool
  44. */
  45. public function delSellerLog($condition){
  46. return $this->where($condition)->delete();
  47. }
  48. }