init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Retail\Model;
|
||||
|
||||
//[1.7.90]
|
||||
|
||||
/**
|
||||
* UU配送表
|
||||
* Class WeekDiscounModel
|
||||
* @package Retail\Model
|
||||
* @author GuYunQinFeng
|
||||
*/
|
||||
class WeekDiscountModel extends \Common\Model\BaseModel
|
||||
{
|
||||
protected $tableName = 'week_discount';
|
||||
protected $fields = array(
|
||||
'id', //int(11) NOT NULL AUTO_INCREMENT,
|
||||
'week',
|
||||
'discount'
|
||||
);
|
||||
|
||||
public function setData($param)
|
||||
{
|
||||
$res = $this->where("id = 1")->save($param);
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function getData()
|
||||
{
|
||||
$res = $this->where("id = 1")->field("week,discount")->find();
|
||||
return $res;
|
||||
}
|
||||
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户