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
48ba68ad
Commit
48ba68ad
authored
Aug 17, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成交报告-转到一级
parent
bc8e4eda
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
2 deletions
+32
-2
Finance.php
application/index/controller/Finance.php
+6
-1
OBargainModel.php
application/model/OBargainModel.php
+26
-1
No files found.
application/index/controller/Finance.php
View file @
48ba68ad
...
...
@@ -126,10 +126,12 @@ class Finance extends Basic
case
2
:
//成交报告列表-第二级审核
$where
[
'a.audit_level'
]
=
1
;
$where
[
'a.status'
]
=
11
;
break
;
case
3
:
//成交报告列表-第三级审核
$where
[
'a.audit_level'
]
=
2
;
$where
[
'a.status'
]
=
11
;
break
;
case
4
:
//成交报告列表-已结单
...
...
@@ -1223,7 +1225,10 @@ class Finance extends Basic
$m_bargain
=
new
OBargainModel
();
$update_data
[
'status'
]
=
10
;
$update_data
[
'audit_level'
]
=
0
;
$m_bargain
->
updateBargainById
(
$this
->
params
[
'bargain_id'
],
$update_data
);
$where
[]
=
[
'EXP'
,
'id='
.
$this
->
params
[
'bargain_id'
]
.
' or father_id='
.
$this
->
params
[
'bargain_id'
]];
$where
[
'status'
]
=
[
'<>'
,
30
];
$m_bargain
->
updateBargainByWhere
(
$update_data
,
$where
);
die
(
'111'
);
$msg
=
''
;
if
(
$data
>
0
)
{
$code
=
200
;
...
...
application/model/OBargainModel.php
View file @
48ba68ad
...
...
@@ -70,6 +70,27 @@ class OBargainModel extends Model
}
}
/**
* 修改信息
*
* @param $data
* @param $params
* @return int
*/
public
function
updateBargainByWhere
(
$data
,
$params
)
{
$data
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
Db
::
startTrans
();
try
{
$this
->
db_
->
where
(
$params
)
->
update
(
$data
);
Db
::
commit
();
return
1
;
}
catch
(
\Exception
$e
)
{
Db
::
rollback
();
return
0
;
}
}
/**
* 查询成交报告记录
*
...
...
@@ -424,7 +445,11 @@ class OBargainModel extends Model
//记录第几级审核-与 OFinancialAudit 表一致
$update_data
[
'audit_level'
]
=
$data
[
'audit_level'
];
$this
->
where
(
'id'
,
$bargain_data
[
'id'
])
->
whereOr
(
'father_id'
,
$bargain_data
[
'id'
])
->
update
(
$update_data
);
$where_bargain
[
'id'
]
=
$bargain_data
[
'id'
];
$where_bargain
[
'status'
]
=
[
'<>'
,
30
];
$where_bargain
[]
=
[
'EXP'
,
'id='
.
$bargain_data
[
'id'
]
.
' or father_id='
.
$bargain_data
[
'id'
]
];
$this
->
where
(
$where_bargain
)
->
update
(
$update_data
);
$this
->
commit
();
$result
=
true
;
}
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