lszyh
parent
4369bea2d4
commit
2aadae8ef7
@ -0,0 +1,42 @@ |
||||
<?php |
||||
declare (strict_types=1); |
||||
|
||||
namespace app\common\enum; |
||||
|
||||
class RetailDescribeEnum extends EnumBasics |
||||
{ |
||||
const GOODS = 1; |
||||
const DATA = 2; |
||||
const PRODUCT_ORDER = 3; |
||||
const SERVICE_ORDER = 4; |
||||
const RECYCLE_ORDER = 5; |
||||
const PAYMENT = 6; |
||||
const FINANCE = 7; |
||||
const STORE_DISPLAY = 8; |
||||
const ROLE = 9; |
||||
const MARKETING = 10; |
||||
const MULTI_MERCHANT = 11; |
||||
const CONTENT_MANAGEMENT = 12; |
||||
const OTHER_FEATURES = 13; |
||||
|
||||
public static $version = [ |
||||
self::GOODS => "商品", |
||||
self::DATA => "数据", |
||||
self::PRODUCT_ORDER => "商品订单", |
||||
self::SERVICE_ORDER => "服务订单", |
||||
self::RECYCLE_ORDER => "回收订单", |
||||
self::PAYMENT => "支付", |
||||
self::FINANCE => "财务", |
||||
self::STORE_DISPLAY => "店铺展示", |
||||
self::ROLE => "角色", |
||||
self::MARKETING => "营销", |
||||
self::MULTI_MERCHANT => "多商户", |
||||
self::CONTENT_MANAGEMENT => "内容管理", |
||||
self::OTHER_FEATURES => "其他功能", |
||||
]; |
||||
|
||||
private function __construct() { |
||||
|
||||
} // 防止实例化 |
||||
|
||||
} |
@ -0,0 +1,52 @@ |
||||
<?php |
||||
// +---------------------------------------------------------------------- |
||||
// | 萤火商城系统 [ 致力于通过产品和服务,帮助商家高效化开拓市场 ] |
||||
// +---------------------------------------------------------------------- |
||||
// | Copyright (c) 2017~2023 https://www.yiovo.com All rights reserved. |
||||
// +---------------------------------------------------------------------- |
||||
// | Licensed 这不是一个自由软件,不允许对程序代码以任何形式任何目的的再发行 |
||||
// +---------------------------------------------------------------------- |
||||
// | Author: 萤火科技 <admin@yiovo.com> |
||||
// +---------------------------------------------------------------------- |
||||
declare (strict_types=1); |
||||
|
||||
namespace app\common\model; |
||||
use cores\BaseModel; |
||||
|
||||
class MerchantRemarks extends BaseModel |
||||
{ |
||||
// 定义表名 |
||||
protected $name = 'merchant_remarks'; |
||||
|
||||
// 定义主键 |
||||
protected $pk = 'id'; |
||||
|
||||
// 定义时间戳字段名 |
||||
protected $createTime = 'create_time'; |
||||
protected $updateTime = 'update_time'; |
||||
|
||||
|
||||
|
||||
|
||||
public function add($data){ |
||||
return self::save($data); |
||||
} |
||||
|
||||
public function orderDetail($orderId){ |
||||
return $this->where('order_id',$orderId)->order('create_time asc')->select(); |
||||
} |
||||
|
||||
public static function detail($MerchantRemarkId) |
||||
{ |
||||
return self::get($MerchantRemarkId); |
||||
} |
||||
|
||||
public function setRemarks($data){ |
||||
return $this->save($data); |
||||
} |
||||
|
||||
public function setDelete($MerchantRemarkId){ |
||||
return $this->where('id', $MerchantRemarkId)->delete(); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue