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
4b50ef26
Commit
4b50ef26
authored
Sep 29, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除
parent
0752963c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
PerformanceReport.php
application/index/controller/PerformanceReport.php
+21
-0
RAgentReport.php
application/model/RAgentReport.php
+13
-0
route.php
application/route.php
+2
-0
No files found.
application/index/controller/PerformanceReport.php
View file @
4b50ef26
...
...
@@ -96,6 +96,26 @@ class PerformanceReport extends Basic
}
/**
* 删除
* @return \think\Response
*/
public
function
delPerformanceReport
(){
$params
=
$this
->
params
;
$checkResult
=
$this
->
validate
(
$params
,
"ImageDepot.getImageDepotById"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
}
$params_
[
'is_del'
]
=
1
;
$res
=
$this
->
rAgentReport
->
updatePerformanceReport
(
$params
[
'id'
],
$params_
);
//int(1)
if
(
$res
==
1
){
return
$this
->
response
(
"200"
,
"成功"
,[
'data'
=>
$res
]);
}
else
{
return
$this
->
response
(
"300"
,
"失败"
);
}
}
}
\ No newline at end of file
application/model/RAgentReport.php
View file @
4b50ef26
...
...
@@ -44,4 +44,16 @@ class RAgentReport extends BaseModel
//dump($this->getLastSql());
return
$result
;
}
/**
* 更新数据
*/
public
function
updatePerformanceReport
(
$id
,
$params
)
{
$result
=
$this
->
where
(
'id'
,
$id
)
->
update
(
$params
);
//dump($this->getLastSql());
return
$result
;
}
}
\ No newline at end of file
application/route.php
View file @
4b50ef26
...
...
@@ -327,6 +327,8 @@ Route::group('index', [
//后台业绩日报,周报
'getPerformanceReportList'
=>
[
'index/PerformanceReport/getPerformanceReportList'
,
[
'method'
=>
'get | post'
]
],
'delPerformanceReport'
=>
[
'index/PerformanceReport/delPerformanceReport'
,
[
'method'
=>
'get | post'
]
],
//删除
]);
...
...
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