Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
bdfaf336
Commit
bdfaf336
authored
Jun 19, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款列表
parent
50d355f2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
15 deletions
+29
-15
OfficePayLog.php
application/index/controller/OfficePayLog.php
+0
-0
OfficeGRoom.php
application/model/OfficeGRoom.php
+14
-0
OfficeORefundModel.php
application/model/OfficeORefundModel.php
+15
-15
No files found.
application/index/controller/OfficePayLog.php
View file @
bdfaf336
This diff is collapsed.
Click to expand it.
application/model/OfficeGRoom.php
View file @
bdfaf336
...
@@ -507,4 +507,18 @@ class OfficeGRoom extends BaseModel
...
@@ -507,4 +507,18 @@ class OfficeGRoom extends BaseModel
public
function
updateData
(
$data
,
$where
)
{
public
function
updateData
(
$data
,
$where
)
{
return
$this
->
db_
->
where
(
$where
)
->
update
(
$data
);
return
$this
->
db_
->
where
(
$where
)
->
update
(
$data
);
}
}
/**
* @param $field
* @param $params
* @return array
*/
public
function
getHouseColumn
(
$field
,
$params
)
{
return
$this
->
db_
->
alias
(
"a"
)
->
join
(
"office_g_building b"
,
"a.building_id=b.id"
,
"left"
)
->
where
(
$params
)
->
column
(
$field
);
}
}
}
application/model/OfficeORefundModel.php
View file @
bdfaf336
...
@@ -228,11 +228,11 @@ class OfficeORefundModel extends Model{
...
@@ -228,11 +228,11 @@ class OfficeORefundModel extends Model{
public
function
getCheckRefundList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
public
function
getCheckRefundList
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
)
{
return
$this
->
db_
->
alias
(
'a'
)
return
$this
->
db_
->
alias
(
'a'
)
->
field
(
$field
)
->
field
(
$field
)
->
join
(
'o_order b'
,
'a.order_id = b.id'
,
'left'
)
->
join
(
'o
ffice_o
_order b'
,
'a.order_id = b.id'
,
'left'
)
->
join
(
'a_agents c'
,
'a.agent_id = c.id'
,
'left'
)
->
join
(
'
office_
a_agents c'
,
'a.agent_id = c.id'
,
'left'
)
->
join
(
'o_paylog d'
,
'a.pay_log_id = d.id'
,
'left'
)
->
join
(
'o
ffice_o
_paylog d'
,
'a.pay_log_id = d.id'
,
'left'
)
->
join
(
'o_refund_log e'
,
'a.id = e.refund_id'
,
'left'
)
->
join
(
'o
ffice_o
_refund_log e'
,
'a.id = e.refund_id'
,
'left'
)
->
join
(
'o_bargain f'
,
'd.bargain_id = f.id'
,
'left'
)
->
join
(
'o
ffice_o
_bargain f'
,
'd.bargain_id = f.id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
...
@@ -263,11 +263,11 @@ class OfficeORefundModel extends Model{
...
@@ -263,11 +263,11 @@ class OfficeORefundModel extends Model{
*/
*/
public
function
getCheckRefundListTotal
(
$params
)
{
public
function
getCheckRefundListTotal
(
$params
)
{
return
$this
->
db_
->
alias
(
'a'
)
return
$this
->
db_
->
alias
(
'a'
)
->
join
(
'o_order b'
,
'a.order_id = b.id'
,
'left'
)
->
join
(
'o
ffice_o
_order b'
,
'a.order_id = b.id'
,
'left'
)
->
join
(
'a_agents c'
,
'a.agent_id = c.id'
,
'left'
)
->
join
(
'
office_
a_agents c'
,
'a.agent_id = c.id'
,
'left'
)
->
join
(
'o_paylog d'
,
'a.pay_log_id = d.id'
,
'left'
)
->
join
(
'o
ffice_o
_paylog d'
,
'a.pay_log_id = d.id'
,
'left'
)
->
join
(
'o_refund_log e'
,
'a.id = e.refund_id'
,
'left'
)
->
join
(
'o
ffice_o
_refund_log e'
,
'a.id = e.refund_id'
,
'left'
)
->
join
(
'o_bargain f'
,
'd.bargain_id = f.id'
,
'left'
)
->
join
(
'o
ffice_o
_bargain f'
,
'd.bargain_id = f.id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
->
group
(
'a.id'
)
->
group
(
'a.id'
)
->
count
();
->
count
();
...
@@ -305,11 +305,11 @@ class OfficeORefundModel extends Model{
...
@@ -305,11 +305,11 @@ class OfficeORefundModel extends Model{
public
function
getSumMoney
(
$params
)
{
public
function
getSumMoney
(
$params
)
{
$refund_money
=
$this
->
db_
->
alias
(
'a'
)
$refund_money
=
$this
->
db_
->
alias
(
'a'
)
->
field
(
'a.refund_money'
)
->
field
(
'a.refund_money'
)
->
join
(
'o_order b'
,
'a.order_id = b.id'
,
'left'
)
->
join
(
'o
ffice_o
_order b'
,
'a.order_id = b.id'
,
'left'
)
->
join
(
'a_agents c'
,
'a.agent_id = c.id'
,
'left'
)
->
join
(
'
office_
a_agents c'
,
'a.agent_id = c.id'
,
'left'
)
->
join
(
'o_paylog d'
,
'a.pay_log_id = d.id'
,
'left'
)
->
join
(
'o
ffice_o
_paylog d'
,
'a.pay_log_id = d.id'
,
'left'
)
->
join
(
'o_refund_log e'
,
'a.id = e.refund_id'
,
'left'
)
->
join
(
'o
ffice_o
_refund_log e'
,
'a.id = e.refund_id'
,
'left'
)
->
join
(
'o_bargain f'
,
'd.bargain_id = f.id'
,
'left'
)
->
join
(
'o
ffice_o
_bargain f'
,
'd.bargain_id = f.id'
,
'left'
)
->
where
(
$params
)
->
where
(
$params
)
->
group
(
'a.id'
)
->
group
(
'a.id'
)
->
select
();
->
select
();
...
...
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