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
9263102a
Commit
9263102a
authored
Jun 28, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺同步修改
parent
e104e033
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
Finance.php
application/index/controller/Finance.php
+0
-0
OfficeBargain.php
application/index/controller/OfficeBargain.php
+0
-1
OBargainModel.php
application/model/OBargainModel.php
+19
-0
No files found.
application/index/controller/Finance.php
View file @
9263102a
This diff is collapsed.
Click to expand it.
application/index/controller/OfficeBargain.php
View file @
9263102a
...
@@ -778,7 +778,6 @@ class OfficeBargain extends Basic
...
@@ -778,7 +778,6 @@ class OfficeBargain extends Basic
}
}
if
(
!
empty
(
$content
))
{
if
(
!
empty
(
$content
))
{
dump
(
$father_id
);
die
;
$this
->
editRecordLog
(
$father_id
,
'【编号:'
.
$father_id
.
'】'
.
$content
);
$this
->
editRecordLog
(
$father_id
,
'【编号:'
.
$father_id
.
'】'
.
$content
);
}
}
/*记录日志 end*/
/*记录日志 end*/
...
...
application/model/OBargainModel.php
View file @
9263102a
...
@@ -1367,6 +1367,7 @@ class OBargainModel extends Model
...
@@ -1367,6 +1367,7 @@ class OBargainModel extends Model
->
field
(
$filed
)
->
field
(
$filed
)
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"o_partial_commission b"
,
"a.id = b.bargain_id"
,
"left"
)
->
join
(
"o_partial_commission b"
,
"a.id = b.bargain_id"
,
"left"
)
->
join
(
"o_real_income c"
,
"b.real_income_id = c.id"
,
"left"
)
->
where
(
$where_
)
->
where
(
$where_
)
->
whereOr
(
$whereOr_
)
->
whereOr
(
$whereOr_
)
->
order
(
"a.id asc"
)
->
order
(
"a.id asc"
)
...
@@ -1631,6 +1632,24 @@ class OBargainModel extends Model
...
@@ -1631,6 +1632,24 @@ class OBargainModel extends Model
->
select
();
->
select
();
}
}
/**
* @param $field
* @param $where
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
agentBargainIncome
(
$field
,
$where
)
{
return
$this
->
db_
->
alias
(
'a'
)
->
field
(
$field
)
->
join
(
'a_agents b'
,
'a.agent_id = b.id'
,
'left'
)
->
join
(
'office_o_partial_commission c'
,
'a.id = c.bargain_id'
,
'left'
)
->
join
(
'office_o_real_income d'
,
'c.real_income_id = d.id'
,
'left'
)
->
where
(
$where
)
->
select
();
}
/**
/**
* @param $field
* @param $field
* @param $where
* @param $where
...
...
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