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
cc328b52
Commit
cc328b52
authored
Dec 18, 2018
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/1210-v3.0.2' into 1210-v3.0.2
parents
6e756b0a
c9a016c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Finance.php
application/index/controller/Finance.php
+1
-1
HouseService.php
application/index/service/HouseService.php
+4
-1
No files found.
application/index/controller/Finance.php
View file @
cc328b52
...
@@ -2858,7 +2858,7 @@ class Finance extends Basic
...
@@ -2858,7 +2858,7 @@ class Finance extends Basic
$params
[
"collecting_bill"
]
=
json_decode
(
$params
[
"collecting_bill"
],
true
);
$params
[
"collecting_bill"
]
=
json_decode
(
$params
[
"collecting_bill"
],
true
);
$remark
=
isset
(
$params
[
"remark"
])
?
$params
[
"remark"
]
:
""
;
$remark
=
isset
(
$params
[
"remark"
])
?
$params
[
"remark"
]
:
""
;
$transfer_img
=
isset
(
$params
[
"transfer_img"
])
?
json_decode
(
$params
[
"transfer_img"
]
,
true
)
:
""
;
$transfer_img
=
isset
(
$params
[
"transfer_img"
])
?
$params
[
"transfer_img"
]
:
""
;
$income_time
=
isset
(
$params
[
"income_time"
])
?
$params
[
"income_time"
]
:
""
;
$income_time
=
isset
(
$params
[
"income_time"
])
?
$params
[
"income_time"
]
:
""
;
$pay_id
=
isset
(
$params
[
"pay_id"
])
?
$params
[
"pay_id"
]
:
0
;
$pay_id
=
isset
(
$params
[
"pay_id"
])
?
$params
[
"pay_id"
]
:
0
;
$source
=
$params
[
"source"
]
?
$params
[
"source"
]
:
0
;
$source
=
$params
[
"source"
]
?
$params
[
"source"
]
:
0
;
...
...
application/index/service/HouseService.php
View file @
cc328b52
...
@@ -23,6 +23,7 @@ use app\model\GHousesToAgents;
...
@@ -23,6 +23,7 @@ use app\model\GHousesToAgents;
use
app\model\GLandlordPhone
;
use
app\model\GLandlordPhone
;
use
app\model\GOperatingRecords
;
use
app\model\GOperatingRecords
;
use
app\task\controller\ResultsSummaryNewTask
;
use
app\task\controller\ResultsSummaryNewTask
;
use
think\Log
;
class
HouseService
class
HouseService
{
{
...
@@ -696,7 +697,7 @@ class HouseService
...
@@ -696,7 +697,7 @@ class HouseService
$params__
[
'level'
]
=
30
;
$params__
[
'level'
]
=
30
;
$result_zj
=
$this
->
agent
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params__
);
$result_zj
=
$this
->
agent
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params__
);
if
((
$shop_agent_id
==
$agent_id
)
or
(
$result_dz
[
0
][
'
store_id'
]
==
$agent_id
)
or
(
$result_zj
[
0
][
'district_
id'
]
==
$agent_id
))
{
if
((
$shop_agent_id
==
$agent_id
)
or
(
$result_dz
[
0
][
'
id'
]
==
$agent_id
)
or
(
$result_zj
[
0
][
'
id'
]
==
$agent_id
))
{
return
0
;
//可编辑
return
0
;
//可编辑
}
else
{
}
else
{
return
1
;
//不可编辑
return
1
;
//不可编辑
...
@@ -727,6 +728,8 @@ class HouseService
...
@@ -727,6 +728,8 @@ class HouseService
if
(
$is_quanxian
==
1
){
if
(
$is_quanxian
==
1
){
//是否存在独家方 查询
//是否存在独家方 查询
$m_houses_to_agents_res
=
$this
->
getShopOnlyAgentId
(
$shop_id
);
$m_houses_to_agents_res
=
$this
->
getShopOnlyAgentId
(
$shop_id
);
$content
=
"独家方:
{
$m_houses_to_agents_res
}
商铺ID:
{
$shop_id
}
"
;
file_put_contents
(
'/wwwdata/webroot/work/tl_test/runtime/log/201812/bug.log'
,
$content
.
"
\r\n
"
,
FILE_APPEND
);
if
(
$m_houses_to_agents_res
){
if
(
$m_houses_to_agents_res
){
//存在独家方则判断当前经纪人是否是该独家方的总监或者店长
//存在独家方则判断当前经纪人是否是该独家方的总监或者店长
return
$this
->
isUserAgentBoss
(
$m_houses_to_agents_res
,
$agent_id
);
return
$this
->
isUserAgentBoss
(
$m_houses_to_agents_res
,
$agent_id
);
...
...
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