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
c6266f91
Commit
c6266f91
authored
Aug 17, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
ba1a274f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
OBargainModel.php
application/model/OBargainModel.php
+10
-7
No files found.
application/model/OBargainModel.php
View file @
c6266f91
...
@@ -401,12 +401,12 @@ class OBargainModel extends Model
...
@@ -401,12 +401,12 @@ class OBargainModel extends Model
}
else
{
}
else
{
//第一步审核
//第一步审核
$save_data
[
'audit_level'
]
=
1
;
$save_data
[
'audit_level'
]
=
1
;
$return
=
$audit
->
addAudit
(
$save_data
);
$return
=
$audit
->
addAudit
(
$save_data
);
}
}
if
(
$return
)
{
if
(
$return
)
{
if
(
$status
==
10
&&
$data
[
'audit_level'
]
==
1
){
if
(
$status
==
10
&&
$data
[
'audit_level'
]
==
1
)
{
//审核开始
//审核开始
$update_data
[
'status'
]
=
11
;
$update_data
[
'status'
]
=
11
;
}
elseif
(
$data
[
'audit_level'
]
==
3
&&
$status
==
11
)
{
}
elseif
(
$data
[
'audit_level'
]
==
3
&&
$status
==
11
)
{
...
@@ -633,6 +633,8 @@ class OBargainModel extends Model
...
@@ -633,6 +633,8 @@ class OBargainModel extends Model
$where_
[
"role"
]
=
3
;
//必须是反签方
$where_
[
"role"
]
=
3
;
//必须是反签方
}
}
$where_
[
"status"
]
=
array
(
"in"
,
"10,11,13"
);
if
(
isset
(
$params
[
"agent_id"
]))
{
if
(
isset
(
$params
[
"agent_id"
]))
{
$where_
[
"agent_id"
]
=
$params
[
"agent_id"
];
$where_
[
"agent_id"
]
=
$params
[
"agent_id"
];
}
}
...
@@ -930,9 +932,9 @@ class OBargainModel extends Model
...
@@ -930,9 +932,9 @@ class OBargainModel extends Model
if
(
$result
==
1
)
{
if
(
$result
==
1
)
{
$this
->
commit
();
$this
->
commit
();
$agent_data
=
$m_agent
->
verifyUser
(
'store_id,district_id'
,
''
,
[
'id'
=>
$agent_id
]);
$agent_data
=
$m_agent
->
verifyUser
(
'store_id,district_id'
,
''
,
[
'id'
=>
$agent_id
]);
//更新业绩统计
//更新业绩统计
$sum
=
new
ResultsSummaryNewTask
();
$sum
=
new
ResultsSummaryNewTask
();
$date
=
date
(
'Y-m-d'
,
strtotime
(
$bargain_data
[
'create_time'
]));
$date
=
date
(
'Y-m-d'
,
strtotime
(
$bargain_data
[
'create_time'
]));
$sum
->
updateTotalByAgentId
(
$agent_id
,
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
);
//被修改的人
$sum
->
updateTotalByAgentId
(
$agent_id
,
$agent_data
[
'store_id'
],
$agent_data
[
'district_id'
],
$date
);
//被修改的人
}
else
{
}
else
{
...
@@ -1345,9 +1347,10 @@ class OBargainModel extends Model
...
@@ -1345,9 +1347,10 @@ class OBargainModel extends Model
* @param array $data
* @param array $data
* @return int
* @return int
*/
*/
public
function
updateBargain
(
int
$id
=
0
,
array
$data
=
[])
:
int
{
public
function
updateBargain
(
int
$id
=
0
,
array
$data
=
[])
:
int
{
if
(
$id
)
{
if
(
$id
)
{
$result
=
$this
->
where
(
'id'
,
$id
)
$result
=
$this
->
where
(
'id'
,
$id
)
->
whereOr
(
'father_id'
,
$id
)
->
whereOr
(
'father_id'
,
$id
)
->
update
(
$data
);
->
update
(
$data
);
}
else
{
}
else
{
...
...
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