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
e4c3e16c
Commit
e4c3e16c
authored
Jul 26, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9d9fd51a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
StoreFee.php
application/index/controller/StoreFee.php
+5
-0
FStoreData.php
application/model/FStoreData.php
+10
-0
No files found.
application/index/controller/StoreFee.php
View file @
e4c3e16c
...
@@ -16,6 +16,7 @@ use app\index\extend\Basic;
...
@@ -16,6 +16,7 @@ use app\index\extend\Basic;
use
app\model\AAgents
;
use
app\model\AAgents
;
use
app\model\AStore
;
use
app\model\AStore
;
use
app\model\FOffice
;
use
app\model\FOffice
;
use
app\model\FStoreData
;
use
think\Request
;
use
think\Request
;
class
StoreFee
extends
Basic
class
StoreFee
extends
Basic
...
@@ -343,6 +344,10 @@ class StoreFee extends Basic
...
@@ -343,6 +344,10 @@ class StoreFee extends Basic
$conditions
[
'office_id'
]
=
0
;
$conditions
[
'office_id'
]
=
0
;
$conditions
[
'id'
]
=
$params
[
'store_id'
];
$conditions
[
'id'
]
=
$params
[
'store_id'
];
$return
=
$m_store
->
updateStore
(
$conditions
);
$return
=
$m_store
->
updateStore
(
$conditions
);
//门店参数表数据删除
$m_store_data
=
new
FStoreData
();
$m_store_data
->
delData
(
$params
[
'store_id'
]);
}
else
{
}
else
{
$store_params
[
'id'
]
=
$params
[
'store_id'
];
$store_params
[
'id'
]
=
$params
[
'store_id'
];
$store_params
[
'office_id'
]
=
array
(
'gt'
,
0
);
$store_params
[
'office_id'
]
=
array
(
'gt'
,
0
);
...
...
application/model/FStoreData.php
View file @
e4c3e16c
...
@@ -140,4 +140,14 @@ class FStoreData extends BaseModel
...
@@ -140,4 +140,14 @@ class FStoreData extends BaseModel
->
group
(
'a.store_id'
)
->
group
(
'a.store_id'
)
->
select
();
->
select
();
}
}
public
function
delData
(
$store_id
)
{
$result
=
$this
->
where
([
'store_id'
=>
$store_id
])
->
update
([
'is_del'
=>
1
]);
//dump($this->getLastSql());
// big_log($this->getLastSql());
return
$result
;
}
}
}
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