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
512ec539
Commit
512ec539
authored
May 31, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
69afad96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
+23
-3
BatchProcessing.php
application/index/controller/BatchProcessing.php
+1
-1
ImageDepot.php
application/index/controller/ImageDepot.php
+22
-2
No files found.
application/index/controller/BatchProcessing.php
View file @
512ec539
...
...
@@ -83,7 +83,7 @@ class BatchProcessing extends Basic
$fail
=
0
;
foreach
(
$model_res
as
$key
=>
$v
)
{
$id
=
$v
[
'id'
];
$address
=
$v
[
'name'
]
.
'
地铁
站'
;
$address
=
$v
[
'name'
]
.
'站'
;
$city
=
$v
[
'city'
];
...
...
application/index/controller/ImageDepot.php
View file @
512ec539
...
...
@@ -12,6 +12,7 @@ use app\index\service\UserService;
use
app\model\AAgents
;
use
app\model\GBusinessDistrict
;
use
app\model\GImageDepot
;
use
app\model\MetroStations
;
use
app\model\OReportModel
;
use
app\model\Users
;
use
think\Cache
;
...
...
@@ -183,8 +184,27 @@ class ImageDepot extends Basic
public
function
ceshi
()
{
$arr
=
[
'html'
,
'css'
,
'javascript'
,
'vuejs'
];
big_log
(
$arr
);
$sql
=
'SELECT
id ,count( * ) AS count
FROM
metro_stations
GROUP BY
line_name_simple,`name`,city
HAVING
count > 1;'
;
$model
=
new
MetroStations
();
$res
=
$model
->
query
(
$sql
);
foreach
(
$res
as
$k
=>
$v
)
{
dump
(
$v
[
'id'
]);
$res
=
$model
->
where
(
'id'
,
$v
[
'id'
])
->
delete
();
dump
(
'删除结果:'
.
$res
);
}
}
...
...
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