Commit 512ec539 authored by zhuwei's avatar zhuwei

1

parent 69afad96
......@@ -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'];
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment