Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
亲子游项目
backend
Commits
410fb3a1
Commit
410fb3a1
authored
Sep 29, 2018
by
wanggang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order模型修改
parent
b66b8a69
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
application/common/model/Order.php
+10
-0
No files found.
application/common/model/Order.php
View file @
410fb3a1
...
...
@@ -20,6 +20,16 @@ class Order extends BaseModel
// 设置当前模型对应的完整数据表名称
protected
$table
=
'mr_user_orders'
;
// 订单退款信息
public
function
linkrefund
(){
return
$this
->
hasOne
(
'refund'
,
'order_id'
,
'id'
)
->
field
(
'id'
);
}
// 订单退款信息
public
function
linkcomment
(){
return
$this
->
hasOne
(
'comment'
,
'order_id'
,
'id'
)
->
field
(
'id'
);
}
//获取订单商品
public
function
project
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment