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
07e3f9ee
Commit
07e3f9ee
authored
Jan 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
del
parent
aca8b2a7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
Finance.php
application/index/controller/Finance.php
+6
-0
OPayLogModel.php
application/model/OPayLogModel.php
+5
-0
reportList.js
public/resource/js/reportList.js
+1
-1
No files found.
application/index/controller/Finance.php
View file @
07e3f9ee
...
...
@@ -2282,6 +2282,12 @@ class Finance extends Basic
return
$this
->
response
(
101
,
'参数错误'
);
}
$m_pay
=
new
OPayLogModel
();
$num
=
$m_pay
->
getCount
([
'bargain_id'
=>
$this
->
params
[
'bargain_id'
],
'is_del'
=>
0
]);
if
(
$num
>
0
)
{
return
$this
->
response
(
101
,
'存在收款,不能删除!'
);
}
$check
=
$this
->
updatePerformanceAll
(
$this
->
params
[
'bargain_id'
]);
if
(
$check
[
'status'
]
==
'fail'
)
{
return
$this
->
response
(
101
,
'更新个人业绩失败,请重试!'
);
...
...
application/model/OPayLogModel.php
View file @
07e3f9ee
...
...
@@ -557,4 +557,8 @@ class OPayLogModel extends Model
public
function
sumPayLog
(
string
$field
,
array
$where
)
{
return
$this
->
db_
->
where
(
$where
)
->
sum
(
$field
);
}
public
function
getCount
(
$where
)
{
return
$this
->
db_
->
where
(
$where
)
->
count
(
'id'
);
}
}
\ No newline at end of file
public/resource/js/reportList.js
View file @
07e3f9ee
...
...
@@ -1045,7 +1045,7 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
bargain
.
getList
(
bargain
.
pageNo
);
}
}
else
{
alert
(
'获取失败!'
);
alert
(
data
.
msg
);
}
}
});
...
...
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