diff --git a/backend/config/main.php b/backend/config/main.php index fd68c99..5bf54be 100644 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -10,15 +10,6 @@ return [ 'controllerNamespace' => 'backend\controllers', 'bootstrap' => ['log'], 'modules' => [ - 'goods' => [ - 'class' => '\backend\modules\goods\Module', - ], - 'file' => [ - 'class' => '\backend\modules\file\Module', - ], - 'shop' => [ - 'class' => '\backend\modules\shop\Module', - ], 'wx-public-account' => [ 'class' => '\backend\modules\wx_public_account\Module', ], diff --git a/backend/modules/file/Module.php b/backend/modules/file/Module.php deleted file mode 100644 index 937b3f6..0000000 --- a/backend/modules/file/Module.php +++ /dev/null @@ -1,24 +0,0 @@ - ['jpg', 'png', 'jpeg'], - self::TYPE_VIDEO => ['mp4'], - self::TYPE_EXCEL => [], - self::TYPE_WORD => ['docx'], - self::TYPE_TXT => ['txt'], - ]; - - /** - * @param $keyword - * @return int|string - * 根据文件拓展名在$extension中查找对应的文件类型,若不存在则返回self::TYPE_NONE - */ - public static function searchType($keyword) - { - foreach(self::$extension as $key => $type){ - if (in_array($keyword, $type)) { - return $key; - } - } - return self::TYPE_NONE; - } - - /** - * @param $temFileIdArr - * @param $ownId - * @param $ownType - * @return array|bool - * @throws HttpException - * @throws ServerErrorHttpException - * 根据临时文件id将临时文件保存在文件中 - */ - public function saveTemFileToFile($temFileIdArr, $ownId, $ownType) - { - if(empty($temFileIdArr) || !$ownId) { - return false; - } - - $tra = Yii::$app->db->beginTransaction(); - try { - $firstFileId = 0; - foreach ($temFileIdArr as $key => $value) { - $temFile = TemFile::findOne($value); - - if ($temFile) { - $res = self::saveNewFile($temFile, $ownId, $ownType); - if ($key == 0) { - $firstFileId = $res['file_id']; - } - } - } - - $tra->commit(); - return ['status' => true, 'info' => '保存成功', 'first_file_id' => $firstFileId]; - } catch (yii\db\Exception $e) { - $tra->rollBack(); - throw new ServerErrorHttpException($e->getMessage()); - } - } - - /** - * @param TemFile|$temFile - * @param $ownId - * @param $ownType - * @return array - * @throws HttpException - * 创建新的文件 - */ - private function saveNewFile($temFile, $ownId, $ownType) - { - $newFile = new File(); - $newFile->name = $temFile->name; - $newFile->type = $temFile->type; - $newFile->own_id = $ownId; - $newFile->own_type = $ownType; - $newFile->alias = $temFile->alias; - $newFile->path = $temFile->path; - if($newFile->save()) { - return ['status' => true, 'info' => '操作成功', 'file_id' => $newFile->id]; - } else { - throw new HttpException('500', 'File保存失败'); - } - } - - /** - * @param $fileIdArr - * @return bool - * @throws HttpException - * 删除file表中的文件 - */ - public function deleteFile($fileIdArr) - { - if($fileIdArr){ - foreach ($fileIdArr as $key => $value) { - $fileModel = File::findOne($value); - if($fileModel){ - $fileModel->is_delete = File::IS_DELETE_YES; - if(!$fileModel->save()){ - throw new HttpException('500', '文件删除失败'); - } - } - } - } - return true; - } - - /** - * @param yii\base\Model|$dataModel //数据模型 - * @param $fileIdStrName //表单中临时保存的文件id字符串组合(以,隔开) - * @param string $fileNameInModel //需要保存到数据库中的数据表字段名称 - * @param $fileOldIdStr //数据库中已经保存的文件id字符串组合(以,隔开) - * @param $fileType //File模型中定义的own_type常量 - * @return bool - * @throws Exception - * 数据模型保存文件操作 - */ - public static function saveFileInModel($dataModel, $fileIdStrName, $fileOldIdStr, $fileType, $fileNameInModel = '') - { - if (is_array($dataModel)) { - throw new ServerErrorHttpException('数据模型不得为数组'); - } - $dataModel->save(); - $saveFileRes = GoodsManager::saveFile(explode(',', $dataModel->$fileIdStrName), $dataModel, explode(',', $fileOldIdStr), $fileType); - if ($fileNameInModel && $saveFileRes['status'] && $saveFileRes['first_file_id'] !== 0) { - $dataModel->$fileNameInModel = $saveFileRes['first_file_id']; - if (!$dataModel->save()) { - throw new ServerErrorHttpException('dataModel保存失败'); - } - } - return true; - } - - /** - * @param $fileName - * @param $formData - * @return int - * 保存临时文件操作 - */ - public static function saveTemFile($fileName, $formData) - { - $temFileModel = new TemFile(); - $temFileModel->user_id = Yii::$app->user->identity->id; - $temFileModel->name = $fileName; - $temFileModel->type = FileManager::searchType(pathinfo($formData['path'])['extension']); - $temFileModel->alias = $formData['alias']; - $temFileModel->path = $formData['path']; - $temFileModel->save(); - return $temFileModel->id; - } - - /** - * @param $data //ajax接收的数据 - * @return string - * 上传插件点击删除按钮时处理文件id字符串(以,分隔) - */ - public static function dealFileIdStrInDel($data) - { - $imgIdArr = explode(',', $data['imgid']); - if(isset($data['data']['alias'])) { - $temFile = TemFile::findOne(['alias' => $data['data']['alias']]); - if ($temFile) { - $imgIdArr = array_diff($imgIdArr, [$temFile->id]); - } - }else{ - foreach ($data as $key => $value) { - $temFile = File::findOne(['alias' => $value]); - if ($temFile) { - $imgIdArr = array_diff($imgIdArr, [$temFile->id]); - } - } - } - return implode(',', $imgIdArr); - } - - /** - * @param $fileIdStr - * @return false|string - * 加载已有的文件数据 - */ - public static function loadExitFile($fileIdStr) - { - $fileIdArr = explode(',', $fileIdStr); - $files = File::find()->where(['id' => $fileIdArr])->all(); - $fileInfo = array(); - if($files) { - foreach ($files as $key => $file) { - $fileInfo[$key]['name'] = $file->alias; - $fileInfo[$key]['path'] = Yii::$app->request->hostInfo . '/' . $file->path; - $fileInfo[$key]['size'] = filesize($file->path); - } - } - return json_encode($fileInfo); - } -} \ No newline at end of file diff --git a/backend/modules/file/migrations/m191112_022131_create_table_file.php b/backend/modules/file/migrations/m191112_022131_create_table_file.php deleted file mode 100755 index 74ccd95..0000000 --- a/backend/modules/file/migrations/m191112_022131_create_table_file.php +++ /dev/null @@ -1,39 +0,0 @@ -createTable('ats_file', [ - 'id' => $this->primaryKey(), - 'pid'=>$this->integer(11)->defaultValue(null)->comment('父级id'), - 'name'=>$this->string(255)->defaultValue(null)->comment('名称'), - 'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), - 'own_type'=>$this->tinyInteger(1)->defaultValue(0)->comment('拥有者类型'), - 'own_id'=>$this->integer(11)->defaultValue(null)->comment('拥有者id'), - 'alias'=>$this->string(50)->defaultValue(null)->comment('别名'), - 'path'=>$this->string(255)->defaultValue(null)->comment('地址'), - 'is_delete'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否删除,1为已删除'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_file'); - return true; - } -} diff --git a/backend/modules/file/migrations/m191112_022532_create_table_tem_file.php b/backend/modules/file/migrations/m191112_022532_create_table_tem_file.php deleted file mode 100755 index b275a70..0000000 --- a/backend/modules/file/migrations/m191112_022532_create_table_tem_file.php +++ /dev/null @@ -1,36 +0,0 @@ -createTable('ats_tem_file', [ - 'id' => $this->primaryKey(), - 'user_id'=>$this->integer(11)->defaultValue(null)->comment('父级id'), - 'name'=>$this->string(255)->defaultValue(null)->comment('名称'), - 'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), - 'alias'=>$this->string(50)->defaultValue(null)->comment('别名'), - 'path'=>$this->string(255)->defaultValue(null)->comment('地址'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_tem_file'); - return true; - } -} diff --git a/backend/modules/file/models/ars/File.php b/backend/modules/file/models/ars/File.php deleted file mode 100755 index 1908c57..0000000 --- a/backend/modules/file/models/ars/File.php +++ /dev/null @@ -1,95 +0,0 @@ - 255], - [['alias'], 'string', 'max' => 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'pid' => '父级id', - 'name' => '名称', - 'type' => '类型', - 'own_type' => '拥有者类型', - 'own_id' => '拥有者id', - 'alias' => '别名', - 'path' => '地址', - 'is_delete' => '是否删除,1为已删除', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::class, - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function () { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/file/models/ars/TemFile.php b/backend/modules/file/models/ars/TemFile.php deleted file mode 100755 index fd04b0b..0000000 --- a/backend/modules/file/models/ars/TemFile.php +++ /dev/null @@ -1,81 +0,0 @@ - 255], - [['alias'], 'string', 'max' => 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '父级id', - 'name' => '名称', - 'type' => '类型', - 'alias' => '别名', - 'path' => '地址', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::class, - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/goods/Module.php b/backend/modules/goods/Module.php deleted file mode 100644 index 7fe6386..0000000 --- a/backend/modules/goods/Module.php +++ /dev/null @@ -1,24 +0,0 @@ ->>0,r=0;r0)for(n=0;n<_.length;n++)c(a=t[r=_[n]])||(e[r]=a);return e}var M=!1;function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,a.updateOffset(this),M=!1)}function g(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function L(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function z(e,t,n){var r,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0;for(r=0;r=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},W={};function U(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(W[e]=a),t&&(W[t[0]]=function(){return F(a.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function B(e,t){return e.isValid()?(t=K(t,e.localeData()),R[t]=R[t]||function(e){var t,n,r,a=e.match(N);for(t=0,n=a.length;t=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var q=/\d/,J=/\d\d/,G=/\d{3}/,$=/\d{4}/,X=/[+-]?\d{6}/,Z=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ae=/\d+/,ie=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,ce=/Z|[+-]\d\d(?::?\d\d)?/gi,se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ue(e,t,n){le[e]=D(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(le,e)?le[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,a){return t||n||r||a}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function fe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=L(e)}),n=0;n68?1900:2e3)};var Se,Ye=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(xe(this,e,n),a.updateOffset(this,t),this):Oe(this,e)}}function Oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function xe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Te(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ce(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ce(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Te(e)?29:28:31-r%7%2}Se=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(c=new Date(e+400,t,n,r,a,i,o),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,r,a,i,o),c}function Ue(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Be(e,t,n){var r=7+t-n;return-(7+Ue(e,0,r).getUTCDay()-t)%7+r-1}function Ke(e,t,n,r,a){var i,o,c=1+7*(t-1)+(7+n-r)%7+Be(e,r,a);return c<=0?o=He(i=e-1)+c:c>He(e)?(i=e+1,o=c-He(e)):(i=e,o=c),{year:i,dayOfYear:o}}function qe(e,t,n){var r,a,i=Be(e.year(),t,n),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+Je(a=e.year()-1,t,n):o>Je(e.year(),t,n)?(r=o-Je(e.year(),t,n),a=e.year()+1):(a=e.year(),r=o),{week:r,year:a}}function Je(e,t,n){var r=Be(e,t,n),a=Be(e+1,t,n);return(He(e)-r+a)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),V("week","w"),V("isoWeek","W"),A("week",5),A("isoWeek",5),ue("w",Z),ue("ww",Z,J),ue("W",Z),ue("WW",Z,J),pe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=L(e)})),U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),V("day","d"),V("weekday","e"),V("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),ue("d",Z),ue("e",Z),ue("E",Z),ue("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ue("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ue("dddd",(function(e,t){return t.weekdaysRegex(e)})),pe(["dd","ddd","dddd"],(function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:f(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,r){t[r]=L(e)}));var $e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qe(e,t,n){var r,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Se.call(this._weekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Se.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=Se.call(this._minWeekdaysParse,o))?a:null:"dddd"===t?-1!==(a=Se.call(this._weekdaysParse,o))?a:-1!==(a=Se.call(this._shortWeekdaysParse,o))?a:-1!==(a=Se.call(this._minWeekdaysParse,o))?a:null:"ddd"===t?-1!==(a=Se.call(this._shortWeekdaysParse,o))?a:-1!==(a=Se.call(this._weekdaysParse,o))?a:-1!==(a=Se.call(this._minWeekdaysParse,o))?a:null:-1!==(a=Se.call(this._minWeekdaysParse,o))?a:-1!==(a=Se.call(this._weekdaysParse,o))?a:-1!==(a=Se.call(this._shortWeekdaysParse,o))?a:null}var et=se,tt=se,nt=se;function rt(){function e(e,t){return t.length-e.length}var t,n,r,a,i,o=[],c=[],s=[],l=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),i=this.weekdays(n,""),o.push(r),c.push(a),s.push(i),l.push(r),l.push(a),l.push(i);for(o.sort(e),c.sort(e),s.sort(e),l.sort(e),t=0;t<7;t++)c[t]=me(c[t]),s[t]=me(s[t]),l[t]=me(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function at(){return this.hours()%12||12}function it(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ot(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,at),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+at.apply(this)+F(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+at.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),it("a",!0),it("A",!1),V("hour","h"),A("hour",13),ue("a",ot),ue("A",ot),ue("H",Z),ue("h",Z),ue("k",Z),ue("HH",Z,J),ue("hh",Z,J),ue("kk",Z,J),ue("hmm",Q),ue("hmmss",ee),ue("Hmm",Q),ue("Hmmss",ee),fe(["H","HH"],be),fe(["k","kk"],(function(e,t,n){var r=L(e);t[be]=24===r?0:r})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[be]=L(e),f(n).bigHour=!0})),fe("hmm",(function(e,t,n){var r=e.length-2;t[be]=L(e.substr(0,r)),t[ge]=L(e.substr(r)),f(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[be]=L(e.substr(0,r)),t[ge]=L(e.substr(r,2)),t[we]=L(e.substr(a)),f(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var r=e.length-2;t[be]=L(e.substr(0,r)),t[ge]=L(e.substr(r))})),fe("Hmmss",(function(e,t,n){var r=e.length-4,a=e.length-2;t[be]=L(e.substr(0,r)),t[ge]=L(e.substr(r,2)),t[we]=L(e.substr(a))}));var ct,st=De("Hours",!0),lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ee,monthsShort:Pe,week:{dow:0,doy:6},weekdays:$e,weekdaysMin:Ze,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},ut={},dt={};function mt(e){return e?e.toLowerCase().replace("_","-"):e}function ht(t){var r=null;if(!ut[t]&&void 0!==e&&e&&e.exports)try{r=ct._abbr,n(310)("./"+t),ft(r)}catch(e){}return ut[t]}function ft(e,t){var n;return e&&((n=c(t)?vt(e):pt(e,t))?ct=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ct._abbr}function pt(e,t){if(null!==t){var n,r=lt;if(t.abbr=e,null!=ut[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])r=ut[t.parentLocale]._config;else{if(null==(n=ht(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ut[e]=new x(O(r,t)),dt[e]&&dt[e].forEach((function(e){pt(e.name,e.config)})),ft(e),ut[e]}return delete ut[e],null}function vt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ct;if(!i(e)){if(t=ht(e))return t;e=[e]}return function(e){for(var t,n,r,a,i=0;i0;){if(r=ht(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&z(a,n,!0)>=t-1)break;t--}i++}return ct}(e)}function _t(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[Me]<1||n[Me]>Ce(n[_e],n[ye])?Me:n[be]<0||n[be]>24||24===n[be]&&(0!==n[ge]||0!==n[we]||0!==n[Le])?be:n[ge]<0||n[ge]>59?ge:n[we]<0||n[we]>59?we:n[Le]<0||n[Le]>999?Le:-1,f(e)._overflowDayOfYear&&(t<_e||t>Me)&&(t=Me),f(e)._overflowWeeks&&-1===t&&(t=ze),f(e)._overflowWeekday&&-1===t&&(t=ke),f(e).overflow=t),e}function yt(e,t,n){return null!=e?e:null!=t?t:n}function Mt(e){var t,n,r,i,o,c=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Me]&&null==e._a[ye]&&function(e){var t,n,r,a,i,o,c,s;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,o=4,n=yt(t.GG,e._a[_e],qe(Vt(),1,4).year),r=yt(t.W,1),((a=yt(t.E,1))<1||a>7)&&(s=!0);else{i=e._locale._week.dow,o=e._locale._week.doy;var l=qe(Vt(),i,o);n=yt(t.gg,e._a[_e],l.year),r=yt(t.w,l.week),null!=t.d?((a=t.d)<0||a>6)&&(s=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(s=!0)):a=i}r<1||r>Je(n,i,o)?f(e)._overflowWeeks=!0:null!=s?f(e)._overflowWeekday=!0:(c=Ke(n,r,a,i,o),e._a[_e]=c.year,e._dayOfYear=c.dayOfYear)}(e),null!=e._dayOfYear&&(o=yt(e._a[_e],r[_e]),(e._dayOfYear>He(o)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=Ue(o,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[Me]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=c[t]=r[t];for(;t<7;t++)e._a[t]=c[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[ge]&&0===e._a[we]&&0===e._a[Le]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Ue:We).apply(null,c),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(f(e).weekdayMismatch=!0)}}var bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,Lt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],zt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kt=/^\/?Date\((\-?\d+)/i;function Ht(e){var t,n,r,a,i,o,c=e._i,s=bt.exec(c)||gt.exec(c);if(s){for(f(e).iso=!0,t=0,n=Lt.length;t0&&f(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),l+=n.length),W[i]?(n?f(e).empty=!1:f(e).unusedTokens.push(i),ve(i,n,e)):e._strict&&!n&&f(e).unusedTokens.push(i);f(e).charsLeftOver=s-l,c.length>0&&f(e).unusedInput.push(c),e._a[be]<=12&&!0===f(e).bigHour&&e._a[be]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[be],e._meridiem),Mt(e),_t(e)}else Dt(e);else Ht(e)}function xt(e){var t=e._i,n=e._f;return e._locale=e._locale||vt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),g(t)?new b(_t(t)):(l(t)?e._d=t:i(n)?function(e){var t,n,r,a,i;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;athis?this:e:v()}));function jt(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Vt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-dn:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-dn:Date.UTC(e,t,n)}function pn(e,t){U(0,[e,e.length],0,t)}function vn(e,t,n,r,a){var i;return null==e?qe(this,r,a).year:(t>(i=Je(e,r,a))&&(t=i),_n.call(this,e,t,n,r,a))}function _n(e,t,n,r,a){var i=Ke(e,t,n,r,a),o=Ue(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),V("weekYear","gg"),V("isoWeekYear","GG"),A("weekYear",1),A("isoWeekYear",1),ue("G",ie),ue("g",ie),ue("GG",Z,J),ue("gg",Z,J),ue("GGGG",ne,$),ue("gggg",ne,$),ue("GGGGG",re,X),ue("ggggg",re,X),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=L(e)})),pe(["gg","GG"],(function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),V("quarter","Q"),A("quarter",7),ue("Q",q),fe("Q",(function(e,t){t[ye]=3*(L(e)-1)})),U("D",["DD",2],"Do","date"),V("date","D"),A("date",9),ue("D",Z),ue("DD",Z,J),ue("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],Me),fe("Do",(function(e,t){t[Me]=L(e.match(Z)[0])}));var yn=De("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),V("dayOfYear","DDD"),A("dayOfYear",4),ue("DDD",te),ue("DDDD",G),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=L(e)})),U("m",["mm",2],0,"minute"),V("minute","m"),A("minute",14),ue("m",Z),ue("mm",Z,J),fe(["m","mm"],ge);var Mn=De("Minutes",!1);U("s",["ss",2],0,"second"),V("second","s"),A("second",15),ue("s",Z),ue("ss",Z,J),fe(["s","ss"],we);var bn,gn=De("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),V("millisecond","ms"),A("millisecond",16),ue("S",te,q),ue("SS",te,J),ue("SSS",te,G),bn="SSSS";bn.length<=9;bn+="S")ue(bn,ae);function wn(e,t){t[Le]=L(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")fe(bn,wn);var Ln=De("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var zn=b.prototype;function kn(e){return e}zn.add=tn,zn.calendar=function(e,t){var n=e||Vt(),r=Bt(n,this).startOf("day"),i=a.calendarFormat(this,r)||"sameElse",o=t&&(D(t[i])?t[i].call(this,n):t[i]);return this.format(o||this.localeData().calendar(i,this,Vt(n)))},zn.clone=function(){return new b(this)},zn.diff=function(e,t,n){var r,a,i;if(!this.isValid())return NaN;if(!(r=Bt(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=E(t)){case"year":i=rn(this,r)/12;break;case"month":i=rn(this,r);break;case"quarter":i=rn(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-a)/864e5;break;case"week":i=(this-r-a)/6048e5;break;default:i=this-r}return n?i:w(i)},zn.endOf=function(e){var t;if(void 0===(e=E(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?fn:hn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=un-mn(t+(this._isUTC?0:this.utcOffset()*ln),un)-1;break;case"minute":t=this._d.valueOf(),t+=ln-mn(t,ln)-1;break;case"second":t=this._d.valueOf(),t+=sn-mn(t,sn)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},zn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=B(this,e);return this.localeData().postformat(t)},zn.from=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||Vt(e).isValid())?$t({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},zn.fromNow=function(e){return this.from(Vt(),e)},zn.to=function(e,t){return this.isValid()&&(g(e)&&e.isValid()||Vt(e).isValid())?$t({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},zn.toNow=function(e){return this.to(Vt(),e)},zn.get=function(e){return D(this[e=E(e)])?this[e]():this},zn.invalidAt=function(){return f(this).overflow},zn.isAfter=function(e,t){var n=g(e)?e:Vt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=E(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},zn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)},zn.toJSON=function(){return this.isValid()?this.toISOString():null},zn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},zn.unix=function(){return Math.floor(this.valueOf()/1e3)},zn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},zn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},zn.year=Ye,zn.isLeapYear=function(){return Te(this.year())},zn.weekYear=function(e){return vn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},zn.isoWeekYear=function(e){return vn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},zn.quarter=zn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},zn.month=Fe,zn.daysInMonth=function(){return Ce(this.year(),this.month())},zn.week=zn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},zn.isoWeek=zn.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},zn.weeksInYear=function(){var e=this.localeData()._week;return Je(this.year(),e.dow,e.doy)},zn.isoWeeksInYear=function(){return Je(this.year(),1,4)},zn.date=yn,zn.day=zn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},zn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},zn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},zn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},zn.hour=zn.hours=st,zn.minute=zn.minutes=Mn,zn.second=zn.seconds=gn,zn.millisecond=zn.milliseconds=Ln,zn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(ce,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Kt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?en(this,$t(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Kt(this)},zn.utc=function(e){return this.utcOffset(0,e)},zn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Kt(this),"m")),this},zn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},zn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Vt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},zn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},zn.isLocal=function(){return!!this.isValid()&&!this._isUTC},zn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},zn.isUtc=qt,zn.isUTC=qt,zn.zoneAbbr=function(){return this._isUTC?"UTC":""},zn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},zn.dates=H("dates accessor is deprecated. Use date instead.",yn),zn.months=H("months accessor is deprecated. Use month instead",Fe),zn.years=H("years accessor is deprecated. Use year instead",Ye),zn.zone=H("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),zn.isDSTShifted=H("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=xt(e))._a){var t=e._isUTC?h(e._a):Vt(e._a);this._isDSTShifted=this.isValid()&&z(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var Hn=x.prototype;function Tn(e,t,n,r){var a=vt(),i=h().set(r,t);return a[n](i,e)}function Sn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Tn(e,r,n,"month");return a}function Yn(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var a,i=vt(),o=e?i._week.dow:0;if(null!=n)return Tn(t,(n+o)%7,r,"day");var c=[];for(a=0;a<7;a++)c[a]=Tn(t,(a+o)%7,r,"day");return c}Hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},Hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},Hn.invalidDate=function(){return this._invalidDate},Hn.ordinal=function(e){return this._ordinal.replace("%d",e)},Hn.preparse=kn,Hn.postformat=kn,Hn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return D(a)?a(e,t,n,r):a.replace(/%d/i,e)},Hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},Hn.set=function(e){var t,n;for(n in e)D(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ve).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ve.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Hn.monthsParse=function(e,t,n){var r,a,i;if(this._monthsParseExact)return je.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Re.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Re.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Hn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Hn.firstDayOfYear=function(){return this._week.doy},Hn.firstDayOfWeek=function(){return this._week.dow},Hn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},Hn.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Hn.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Hn.weekdaysParse=function(e,t,n){var r,a,i;if(this._weekdaysParseExact)return Qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===L(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=H("moment.lang is deprecated. Use moment.locale instead.",ft),a.langData=H("moment.langData is deprecated. Use moment.localeData instead.",vt);var Dn=Math.abs;function On(e,t,n,r){var a=$t(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function xn(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function Vn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var Pn=En("ms"),jn=En("s"),An=En("m"),Fn=En("h"),Nn=En("d"),In=En("w"),Rn=En("M"),Wn=En("Q"),Un=En("y");function Bn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Kn=Bn("milliseconds"),qn=Bn("seconds"),Jn=Bn("minutes"),Gn=Bn("hours"),$n=Bn("days"),Xn=Bn("months"),Zn=Bn("years"),Qn=Math.round,er={ss:44,s:45,m:45,h:22,d:26,M:11};function tr(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}var nr=Math.abs;function rr(e){return(e>0)-(e<0)||+e}function ar(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=nr(this._milliseconds)/1e3,r=nr(this._days),a=nr(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var i=w(a/12),o=a%=12,c=r,s=t,l=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var m=d<0?"-":"",h=rr(this._months)!==rr(d)?"-":"",f=rr(this._days)!==rr(d)?"-":"",p=rr(this._milliseconds)!==rr(d)?"-":"";return m+"P"+(i?h+i+"Y":"")+(o?h+o+"M":"")+(c?f+c+"D":"")+(s||l||u?"T":"")+(s?p+s+"H":"")+(l?p+l+"M":"")+(u?p+u+"S":"")}var ir=Ft.prototype;return ir.isValid=function(){return this._isValid},ir.abs=function(){var e=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),e.milliseconds=Dn(e.milliseconds),e.seconds=Dn(e.seconds),e.minutes=Dn(e.minutes),e.hours=Dn(e.hours),e.months=Dn(e.months),e.years=Dn(e.years),this},ir.add=function(e,t){return On(this,e,t,1)},ir.subtract=function(e,t){return On(this,e,t,-1)},ir.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=E(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Cn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},ir.asMilliseconds=Pn,ir.asSeconds=jn,ir.asMinutes=An,ir.asHours=Fn,ir.asDays=Nn,ir.asWeeks=In,ir.asMonths=Rn,ir.asQuarters=Wn,ir.asYears=Un,ir.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*L(this._months/12):NaN},ir._bubble=function(){var e,t,n,r,a,i=this._milliseconds,o=this._days,c=this._months,s=this._data;return i>=0&&o>=0&&c>=0||i<=0&&o<=0&&c<=0||(i+=864e5*xn(Vn(c)+o),o=0,c=0),s.milliseconds=i%1e3,e=w(i/1e3),s.seconds=e%60,t=w(e/60),s.minutes=t%60,n=w(t/60),s.hours=n%24,o+=w(n/24),a=w(Cn(o)),c+=a,o-=xn(Vn(a)),r=w(c/12),c%=12,s.days=o,s.months=c,s.years=r,this},ir.clone=function(){return $t(this)},ir.get=function(e){return e=E(e),this.isValid()?this[e+"s"]():NaN},ir.milliseconds=Kn,ir.seconds=qn,ir.minutes=Jn,ir.hours=Gn,ir.days=$n,ir.weeks=function(){return w(this.days()/7)},ir.months=Xn,ir.years=Zn,ir.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=$t(e).abs(),a=Qn(r.as("s")),i=Qn(r.as("m")),o=Qn(r.as("h")),c=Qn(r.as("d")),s=Qn(r.as("M")),l=Qn(r.as("y")),u=a<=er.ss&&["s",a]||a0,u[4]=n,tr.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},ir.toISOString=ar,ir.toString=ar,ir.toJSON=ar,ir.locale=an,ir.localeData=cn,ir.toIsoString=H("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ar),ir.lang=on,U("X",0,0,"unix"),U("x",0,0,"valueOf"),ue("x",ie),ue("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),fe("x",(function(e,t,n){n._d=new Date(L(e))})),a.version="2.24.0",t=Vt,a.fn=zn,a.min=function(){return jt("isBefore",[].slice.call(arguments,0))},a.max=function(){return jt("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=h,a.unix=function(e){return Vt(1e3*e)},a.months=function(e,t){return Sn(e,t,"months")},a.isDate=l,a.locale=ft,a.invalid=v,a.duration=$t,a.isMoment=g,a.weekdays=function(e,t,n){return Yn(e,t,n,"weekdays")},a.parseZone=function(){return Vt.apply(null,arguments).parseZone()},a.localeData=vt,a.isDuration=Nt,a.monthsShort=function(e,t){return Sn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return Yn(e,t,n,"weekdaysMin")},a.defineLocale=pt,a.updateLocale=function(e,t){if(null!=t){var n,r,a=lt;null!=(r=ht(e))&&(a=r._config),t=O(a,t),(n=new x(t)).parentLocale=ut[e],ut[e]=n,ft(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?ut[e]=ut[e].parentLocale:null!=ut[e]&&delete ut[e]);return ut[e]},a.locales=function(){return T(ut)},a.weekdaysShort=function(e,t,n){return Yn(e,t,n,"weekdaysShort")},a.normalizeUnits=E,a.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==er[e]&&(void 0===t?er[e]:(er[e]=t,"s"===e&&(er.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=zn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(309)(e))},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(234)},function(e,t,n){var r; -/*! - Copyright (c) 2017 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t}),{})}var f=function(){function e(){o()(this,e),this.collection={}}return s()(e,[{key:"clear",value:function(){this.collection={}}},{key:"delete",value:function(e){return delete this.collection[e]}},{key:"get",value:function(e){return this.collection[e]}},{key:"has",value:function(e){return Boolean(this.collection[e])}},{key:"set",value:function(e,t){return this.collection[e]=t,this}},{key:"size",get:function(){return Object.keys(this.collection).length}}]),e}();function p(e,t,n){return n?u.createElement(e.tag,a()({key:t},h(e.attrs),n),(e.children||[]).map((function(n,r){return p(n,t+"-"+e.tag+"-"+r)}))):u.createElement(e.tag,a()({key:t},h(e.attrs)),(e.children||[]).map((function(n,r){return p(n,t+"-"+e.tag+"-"+r)})))}function v(e){return Object(l.generate)(e)[0]}function _(e,t){switch(t){case"fill":return e+"-fill";case"outline":return e+"-o";case"twotone":return e+"-twotone";default:throw new TypeError("Unknown theme type: "+t+", name: "+e)}}}).call(this,n(62))},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=(o=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([a]).join("\n")}var o;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a=0&&d.splice(t,1)}function _(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),p(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function M(e,t){var n,r,a,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var o=u++;n=l||(l=_(t)),r=w.bind(null,n,o,!1),a=w.bind(null,n,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),p(e,t),t}(t),r=z.bind(null,n,t),a=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=_(t),r=L.bind(null,n),a=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return h(n,t),function(e){for(var r=[],a=0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},g=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},w=function(e){return"object"===(void 0===e?"undefined":p(e))&&e.constructor===Object},L=Object.freeze([]),z=Object.freeze({});function k(e){return"function"==typeof e}function H(e){return e.displayName||e.name||"Component"}function T(e){return e&&"string"==typeof e.styledComponentId}var S=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",Y="undefined"!=typeof window&&"HTMLElement"in window,D="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||void 0!==e&&(e.env.REACT_APP_SC_DISABLE_SPEEDY||e.env.SC_DISABLE_SPEEDY)||!1;var O=function(e){function t(n){v(this,t);for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i0?" Additional arguments: "+a.join(", "):"")));return g(o)}return M(t,e),t}(Error),x=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,C=function(e){var t=""+(e||""),n=[];return t.replace(x,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var a=e.componentId,i=e.matchIndex,o=n[r+1];return{componentId:a,cssFromDOM:o?t.slice(i,o.matchIndex):t.slice(i)}}))},V=/^\s*\/\/.*$/gm,E=new a.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),P=new a.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),j=[],A=function(e){if(-2===e){var t=j;return j=[],t}},F=o()((function(e){j.push(e)})),N=void 0,I=void 0,R=void 0,W=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(I)&&n.slice(t-I.length,t)!==I?"."+N:e};P.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(I)>0&&(n[0]=n[0].replace(R,W))},F,A]),E.use([F,A]);var U=function(e){return E("",e)};function B(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",a=e.join("").replace(V,""),i=t&&n?n+" "+t+" { "+a+" }":a;return N=r,I=t,R=new RegExp("\\"+I+"\\b","g"),P(n||!t?"":t,i)}var K=function(){return n.nc},q=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},J=function(e,t){e[t]=Object.create(null)},G=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},$=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},X=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n"+e()+""}},ne=function(e,t){return function(){var n,r=((n={})[S]=$(t),n["data-styled-version"]="4.4.1",n),a=K();return a&&(r.nonce=a),s.a.createElement("style",y({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ae=function(e,t){return e.createTextNode(Q(t))},ie=function e(t,n){var r=void 0===t?Object.create(null):t,a=void 0===n?Object.create(null):n,i=function(e){var t=a[e];return void 0!==t?t:a[e]=[""]},o=function(){var e="";for(var t in a){var n=a[t][0];n&&(e+=Q(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=y({},e[n]);return t}(r),n=Object.create(null);for(var i in a)n[i]=[a[i][0]];return e(t,n)},css:o,getIds:re(a),hasNameForId:G(r),insertMarker:i,insertRules:function(e,t,n){i(e)[0]+=t.join(" "),q(r,e,n)},removeRules:function(e){var t=a[e];void 0!==t&&(t[0]="",J(r,e))},sealed:!1,styleTag:null,toElement:ne(o,r),toHTML:te(o,r)}},oe=function(e,t,n,r,a){if(Y&&!n){var i=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var a=r.createElement("style");a.setAttribute(S,""),a.setAttribute("data-styled-version","4.4.1");var i=K();if(i&&a.setAttribute("nonce",i),a.appendChild(r.createTextNode("")),e&&!t)e.appendChild(a);else{if(!t||!e||!t.parentNode)throw new O(6);t.parentNode.insertBefore(a,n?t:t.nextSibling)}return a}(e,t,r);return D?function(e,t){var n=Object.create(null),r=Object.create(null),a=void 0!==t,i=!1,o=function(t){var a=r[t];return void 0!==a?a:(r[t]=ae(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},c=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new O(5)},css:c,getIds:re(r),hasNameForId:G(n),insertMarker:o,insertRules:function(e,r,c){for(var s=o(e),l=[],u=r.length,d=0;d0&&(i=!0,t().insertRules(e+"-import",l))},removeRules:function(o){var c=r[o];if(void 0!==c){var s=ae(e.ownerDocument,o);e.replaceChild(s,c),r[o]=s,J(n,o),a&&i&&t().removeRules(o+"-import")}},sealed:!1,styleTag:e,toElement:ne(c,n),toHTML:te(c,n)}}(i,a):function(e,t){var n=Object.create(null),r=Object.create(null),a=[],i=void 0!==t,o=!1,c=function(e){var t=r[e];return void 0!==t?t:(r[e]=a.length,a.push(0),J(n,e),r[e])},s=function(){var t=X(e).cssRules,n="";for(var i in r){n+=Q(i);for(var o=r[i],c=ee(a,o),s=c-a[o];s0&&(o=!0,t().insertRules(r+"-import",f)),a[u]+=h,q(n,r,l)},removeRules:function(c){var s=r[c];if(void 0!==s&&!1!==e.isConnected){var l=a[s];!function(e,t,n){for(var r=t-n,a=t;a>r;a-=1)e.deleteRule(a)}(X(e),ee(a,s)-1,l),a[s]=0,J(n,c),i&&o&&t().removeRules(c+"-import")}},sealed:!1,styleTag:e,toElement:ne(s,n),toHTML:te(s,n)}}(i,a)}return ie()},ce=/\s+/,se=void 0;se=Y?D?40:1e3:-1;var le=0,ue=void 0,de=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];v(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=oe(t.target,n?n.styleTag:null,t.forceServer,!0)},le+=1,this.id=le,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!Y||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+S+'][data-styled-version="4.4.1"]'),a=r.length;if(!a)return this;for(var i=0;i0&&void 0!==arguments[0]&&arguments[0];ue=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),a=0;a1?t-1:0),r=1;r=4;)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var ge=52,we=function(e){return String.fromCharCode(e+(e>25?39:97))};function Le(e){var t="",n=void 0;for(n=e;n>ge;n=Math.floor(n/ge))t=we(n%ge)+t;return we(n%ge)+t}function ze(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:z,r=!!n&&e.theme===n.theme,a=e.theme&&!r?e.theme:t||n.theme;return a},Ye=/[[\].#*$><+~=|^:(),"'`-]+/g,De=/(^-|-$)/g;function Oe(e){return e.replace(Ye,"-").replace(De,"")}function xe(e){return"string"==typeof e&&!0}var Ce={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ve={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ee=((ke={})[u.ForwardRef]={$$typeof:!0,render:!0},ke),Pe=Object.defineProperty,je=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,Fe=void 0===Ae?function(){return[]}:Ae,Ne=Object.getOwnPropertyDescriptor,Ie=Object.getPrototypeOf,Re=Object.prototype,We=Array.prototype;function Ue(e,t,n){if("string"!=typeof t){var r=Ie(t);r&&r!==Re&&Ue(e,r,n);for(var a=We.concat(je(t),Fe(t)),i=Ee[e.$$typeof]||Ce,o=Ee[t.$$typeof]||Ce,c=a.length,s=void 0,l=void 0;c--;)if(l=a[c],!(Ve[l]||n&&n[l]||o&&o[l]||i&&i[l])&&(s=Ne(t,l)))try{Pe(e,l,s)}catch(e){}return e}return e}var Be=Object(c.createContext)(),Ke=Be.Consumer,qe=(function(e){function t(n){v(this,t);var r=g(this,e.call(this,n));return r.getContext=Object(d.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}M(t,e),t.prototype.render=function(){return this.props.children?s.a.createElement(Be.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return s.a.createElement(Be.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(k(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":p(e)))throw new O(8);return y({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)}}(c.Component),function(){function e(){v(this,e),this.masterSheet=de.master,this.instance=this.masterSheet.clone(),this.sealed=!1}e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new O(2);return s.a.createElement(Ge,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new O(3)}}(),Object(c.createContext)()),Je=qe.Consumer,Ge=function(e){function t(n){v(this,t);var r=g(this,e.call(this,n));return r.getContext=Object(d.a)(r.getContext),r}return M(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new de(t);throw new O(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return s.a.createElement(qe.Provider,{value:this.getContext(n,r)},t)},t}(c.Component),$e={};var Xe=function(e){function t(){v(this,t);var n=g(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return M(t,e),t.prototype.render=function(){return s.a.createElement(Je,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:de.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():s.a.createElement(Ke,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,a=(t.displayName,t.foldedComponentIds),i=t.styledComponentId,o=t.target,s=void 0;s=n.isStatic?this.generateAndInjectStyles(z,this.props):this.generateAndInjectStyles(Se(this.props,e,r)||z,this.props);var l=this.props.as||this.attrs.as||o,u=xe(l),d={},h=y({},this.props,this.attrs),f=void 0;for(f in h)"forwardedComponent"!==f&&"as"!==f&&("forwardedRef"===f?d.ref=h[f]:"forwardedAs"===f?d.as=h[f]:u&&!Object(m.a)(f)||(d[f]=h[f]));return this.props.style&&this.attrs.style&&(d.style=y({},this.attrs.style,this.props.style)),d.className=Array.prototype.concat(a,i,s!==i?s:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(c.createElement)(l,d)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,a=y({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,i=!1,o=void 0,c=void 0;for(c in k(n)&&(n=n(a),i=!0),n)o=n[c],i||!k(o)||(t=o)&&t.prototype&&t.prototype.isReactComponent||T(o)||(o=o(a)),r.attrs[c]=o,a[c]=o})),a):a},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,a=n.componentStyle;n.warnTooManyClasses;return a.isStatic&&!r.length?a.generateAndInjectStyles(z,this.styleSheet):a.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(c.Component);function Ze(e,t,n){var r=T(e),a=!xe(e),i=t.displayName,o=void 0===i?function(e){return xe(e)?"styled."+e:"Styled("+H(e)+")"}(e):i,c=t.componentId,l=void 0===c?function(e,t,n){var r="string"!=typeof t?"sc":Oe(t),a=($e[r]||0)+1;$e[r]=a;var i=r+"-"+e.generateName(r+a);return n?n+"-"+i:i}(Te,t.displayName,t.parentComponentId):c,u=t.ParentComponent,d=void 0===u?Xe:u,m=t.attrs,f=void 0===m?L:m,p=t.displayName&&t.componentId?Oe(t.displayName)+"-"+t.componentId:t.componentId||l,v=r&&e.attrs?Array.prototype.concat(e.attrs,f).filter(Boolean):f,_=new Te(r?e.componentStyle.rules.concat(n):n,v,p),M=void 0,g=function(e,t){return s.a.createElement(d,y({},e,{forwardedComponent:M,forwardedRef:t}))};return g.displayName=o,(M=s.a.forwardRef(g)).displayName=o,M.attrs=v,M.componentStyle=_,M.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):L,M.styledComponentId=p,M.target=r?e.target:e,M.withComponent=function(e){var r=t.componentId,a=b(t,["componentId"]),i=r&&r+"-"+(xe(e)?e:Oe(H(e)));return Ze(e,y({},a,{attrs:v,componentId:i,ParentComponent:d}),n)},Object.defineProperty(M,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(h.a)(e.defaultProps,t):t}}),M.toString=function(){return"."+M.styledComponentId},a&&Ue(M,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),M}var Qe=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z;if(!Object(u.isValidElementType)(n))throw new O(1,String(n));var a=function(){return t(n,r,Me.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,n,y({},r,a))},a.attrs=function(a){return e(t,n,y({},r,{attrs:Array.prototype.concat(r.attrs,a).filter(Boolean)}))},a}(Ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Qe[e]=Qe(e)}));!function(){function e(t,n){v(this,e),this.rules=t,this.componentId=n,this.isStatic=ze(t,L),de.master.hasId(n)||de.master.deferredInject(n,[])}e.prototype.createStyles=function(e,t){var n=B(ye(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)}}();Y&&(window.scCGSHMRCache={});t.a=Qe}).call(this,n(62))},function(e,t,n){var r=n(13),a=n(14),i=n(69),o=n(24),c=n(20),s=function(e,t,n){var l,u,d,m=e&s.F,h=e&s.G,f=e&s.S,p=e&s.P,v=e&s.B,_=e&s.W,y=h?a:a[t]||(a[t]={}),M=y.prototype,b=h?r:f?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(u=!m&&b&&void 0!==b[l])&&c(y,l)||(d=u?b[l]:n[l],y[l]=h&&"function"!=typeof b[l]?n[l]:v&&u?i(d,r):_&&b[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):p&&"function"==typeof d?i(Function.call,d):d,p&&((y.virtual||(y.virtual={}))[l]=d,e&s.R&&M&&!M[l]&&o(M,l,d)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(19),a=n(33);e.exports=n(15)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(73),a=n(50);e.exports=function(e){return r(a(e))}},function(e,t,n){var r=n(53)("wks"),a=n(36),i=n(13).Symbol,o="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))}).store=r},function(e,t,n){var r=n(227);"string"==typeof r&&(r=[[e.i,r,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};n(18)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(25);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){try{var r=n(68)}catch(e){r=n(68)}var a=/\s+/,i=Object.prototype.toString;function o(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}e.exports=function(e){return new o(e)},o.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(" "),this},o.prototype.remove=function(e){if("[object RegExp]"==i.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},o.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";e.exports=n(294)},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,c,s=o(e),l=1;l0?r:n)(e)}},function(e,t,n){var r=n(53)("keys"),a=n(36);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(14),a=n(13),i=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(35)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(50);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports={}},function(e,t,n){var r=n(29),a=n(262),i=n(54),o=n(52)("IE_PROTO"),c=function(){},s=function(){var e,t=n(71)("iframe"),r=i.length;for(t.style.display="none",n(263).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" diff --git a/backend/modules/goods/views/goods/create.php b/backend/modules/goods/views/goods/create.php deleted file mode 100755 index 13874f2..0000000 --- a/backend/modules/goods/views/goods/create.php +++ /dev/null @@ -1,112 +0,0 @@ -title = '创建商品'; -$this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -Yii::$app->params['bsVersion'] = '4.x'; -?> - -
- - ['class' => 'container-fluid']]); - - echo TabsX::widget([ - 'bordered' => true, - 'items' => [ - [ - 'label' => ' 基本信息', - 'content' => $this->render('goods', ['model' => $model, - 'form' => $form, - 'judgeGoodsCategory' => false, //表示后台分类可以修改 - ]), - ], - [ - 'label' => ' 筛选规格', - 'content' => $this->render('filter_attribute', [ - 'filterModel' => [], - 'filterAttrValue' => [], - ]), - ], - [ - 'label' => ' 商品规格', - 'content' => $this->render('attribute', [ - 'model' => [], - 'attrValue' => [], - ]), - ], - [ - 'label' => ' 物流信息', - 'content' => $this->render('express', ['model' => $model, - 'form' => $form, - ]), - ], - [ - 'label' => ' 详情上传', - 'content' => $this->render('new_editor', ['model' => $model, - 'form' => $form, - ]), - ], - [ - 'label' => ' 图片上传', - 'content' => $this->render('picture', [ - 'model' => $model, - 'form' => $form - ]), - ], - ], - 'position' => TabsX::POS_ABOVE, - 'encodeLabels' => false - ]); - ?> -
- -
- ', ['class' => 'btn-float btn btn-success']) ?> - ', ['index'], ['class' => 'btn-float btn btn-info']) ?> -
- - - - diff --git a/backend/modules/goods/views/goods/express.php b/backend/modules/goods/views/goods/express.php deleted file mode 100755 index 66682cb..0000000 --- a/backend/modules/goods/views/goods/express.php +++ /dev/null @@ -1,90 +0,0 @@ - -field($model, 'is_taking')->widget(Icheck::className(), ['items' => Goods::$isTaking, 'type' => 'radio']) ?> - -field($model, 'is_express')->widget(Icheck::className(), ['items' => Goods::$isExpress, 'type' => 'radio']) ?> - -
- field($model, 'express_type')->widget(Icheck::className(), ['items' => Goods::$expressType, 'type' => 'radio']) ?> - -
- field($model, 'uniform_postage')->textInput() ?> -
- -
- field($model, 'express_template')->widget(Select2::className(), ["items" => ExpressTemplate::modelColumn()]) ?> -
-
- -registerJs($js); - -?> \ No newline at end of file diff --git a/backend/modules/goods/views/goods/filter_attribute.php b/backend/modules/goods/views/goods/filter_attribute.php deleted file mode 100755 index 582e366..0000000 --- a/backend/modules/goods/views/goods/filter_attribute.php +++ /dev/null @@ -1,22 +0,0 @@ -where(['type' => Attribute::TYPE_ATTR])->asArray()->all(); -GoodsFilterAttributeAsset::register($this); -?> - -
- -
-
- diff --git a/backend/modules/goods/views/goods/goods.php b/backend/modules/goods/views/goods/goods.php deleted file mode 100755 index 5058a04..0000000 --- a/backend/modules/goods/views/goods/goods.php +++ /dev/null @@ -1,139 +0,0 @@ - - -
- field($model, 'name')->textInput(['maxlength' => true]) ?> - - field($model, 'sn')->textInput(['maxlength' => true]) ?> - - field($model, 'code')->textInput(['maxlength' => true]) ?> - - field($model, 'market_price')->textInput() ?> - - field($model, 'price')->textInput() ?> -
- -
- field($model, 'cat_id')->dropDownList(Category::modelColumn(0,0), ['prompt' => '请选择', 'disabled' => $judgeGoodsCategory]) ?> - - field($model, 'brand_id')->dropDownList(Brand::modelColumn(0,0), ['prompt' => '请选择']) ?> - - field($model, 'shop_cat_id')->dropDownList(ShopCategory::modelColumn(), ['prompt' => '请选择']) ?> - - field($model, 'supplier_id')->dropDownList(Supplier::modelColumn(), ['prompt' => '请选择']) ?> - - field($model, 'is_sale')->radioList(Goods::$isSale) ?> -
- -
- field($model, 'weight')->textInput() ?> - - field($model, 'length')->textInput() ?> - - field($model, 'width')->textInput() ?> - - field($model, 'height')->textInput() ?> - - field($model, 'diameter')->textInput() ?> -
- -
- field($model, 'sort_order')->textInput() ?> - - field($model, 'bouns_points')->textInput() ?> - - field($model, 'experience_points')->textInput() ?> - - field($model, 'unit')->textInput(['maxlength' => true]) ?> - - field($model, 'limit_count')->textInput() ?> -
- -
- field($model, 'stock')->textInput()->label('库存(-1为不限制)') ?> - - field($model, 'stock_warn')->textInput(['placeholder' => '低于该值警告库存不足']) ?> -
- -field($model, 'brief')->textInput(['maxlength' => true]) ?> -registerJs($js); - -?> \ No newline at end of file diff --git a/backend/modules/goods/views/goods/index.php b/backend/modules/goods/views/goods/index.php deleted file mode 100755 index 40421e3..0000000 --- a/backend/modules/goods/views/goods/index.php +++ /dev/null @@ -1,28 +0,0 @@ -title = '商品列表'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "goods/deletes" - ], - ], - 'columns' => $columns - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/goods/views/goods/new_editor.php b/backend/modules/goods/views/goods/new_editor.php deleted file mode 100755 index e1d7b34..0000000 --- a/backend/modules/goods/views/goods/new_editor.php +++ /dev/null @@ -1,25 +0,0 @@ - -
-
-
- field($model, 'description')->widget('common\widgets\ueditor\Ueditor',[ - 'options'=>[ - 'initialFrameWidth' => 760,//宽度 - 'initialFrameHeight' => 500,//高度 - - ] - - ]) ?> -
-
-
- diff --git a/backend/modules/goods/views/goods/picture.php b/backend/modules/goods/views/goods/picture.php deleted file mode 100755 index d3ad8ea..0000000 --- a/backend/modules/goods/views/goods/picture.php +++ /dev/null @@ -1,35 +0,0 @@ - -field($model, 'coverImageId')->hiddenInput()->label('') ?> -field($model, 'coverImagePath')->widget(\iron\widgets\Upload::className(), [ - 'url' => 'upload', - 'deleteUrl' => 'img-id-del', - 'dragdropWidth'=> 800, - 'afterSave' => 'save-file', - 'maxCount' => 1, - 'fillInAttribute' => 'coverImageId', - 'model' => $model, - 'previewConfig' => [ - 'url' => Url::to(['image-file', 'fileIdStr' => $model->coverImageId, 'ruleverify' => $model->ruleVerify]), - ], -])->label('商品封面图') ?> - -field($model, 'detailImageId')->hiddenInput()->label('') ?> -field($model, 'detailImagePath')->widget(\iron\widgets\Upload::className(), [ - 'url' => 'upload', - 'deleteUrl' => 'img-id-del', - 'dragdropWidth'=> 800, - 'afterSave' => 'save-file', - 'maxCount' => 5, - 'fillInAttribute' => 'detailImageId', - 'model' => $model, - 'previewConfig' => [ - 'url' => Url::to(['image-file', 'fileIdStr' => $model->detailImageId]), - ], -])->label('商品详情图') ?> diff --git a/backend/modules/goods/views/goods/sku_edit.php b/backend/modules/goods/views/goods/sku_edit.php deleted file mode 100755 index 2baa1aa..0000000 --- a/backend/modules/goods/views/goods/sku_edit.php +++ /dev/null @@ -1,15 +0,0 @@ -title = '添加SKU'; -$this->params['breadcrumbs'][] = ['label' => '商品列表', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -GoodsSkuEditAsset::register($this); -?> -
- \ No newline at end of file diff --git a/backend/modules/goods/views/goods/update.php b/backend/modules/goods/views/goods/update.php deleted file mode 100755 index e3f5ac8..0000000 --- a/backend/modules/goods/views/goods/update.php +++ /dev/null @@ -1,123 +0,0 @@ -title = '编辑商品: ' . $model->name; -$this->params['breadcrumbs'][] = ['label' => '商品管理', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = '编辑 '; -Yii::$app->params['bsVersion'] = '4.x'; -?> - -
-
- ['class' => 'container-fluid']]); - - echo TabsX::widget([ - 'bordered' => true, - 'items' => [ - [ - 'label' => ' 基本信息', - 'content' => $this->render('goods', [ - 'model' => $model, - 'form' => $form, - 'judgeGoodsCategory' => $judgeGoodsCategory - ]), - ], - [ - 'label' => ' 筛选规格', - 'content' => $this->render('filter_attribute', [ - 'filterModel' => $filterAttributeModel, - 'filterAttrValue' => [], - ]), - ], - [ - 'label' => ' 商品规格', - 'content' => $this->render('attribute', [ - 'model' => $attributeModel, - 'attrValue' => $attrValue, - 'goodsModel' => $model, - ]), - ], - [ - 'label' => ' 物流信息', - 'content' => $this->render('express', ['model' => $model, - 'form' => $form, - ]), - ], - [ - 'label' => ' 详情上传', - 'content' => $this->render('new_editor', ['model' => $model, - 'form' => $form, - ]), - ], - [ - 'label' => ' 图片上传', - 'content' => $this->render('picture', [ - 'model' => $model, - 'form' => $form, - ]), - ], - ], - 'position' => TabsX::POS_ABOVE, - 'encodeLabels' => false - ]); - ?> -
-
- -
- ', ['class' => 'btn-float btn btn-success']) ?> - ', ['index'], ['class' => 'btn-float btn btn-info']) ?> -
- - - - - render('_form', [ -// 'model' => $model, -// ]) - ?> - - diff --git a/backend/modules/goods/views/goods/view.php b/backend/modules/goods/views/goods/view.php deleted file mode 100755 index d553ca5..0000000 --- a/backend/modules/goods/views/goods/view.php +++ /dev/null @@ -1,113 +0,0 @@ -title = $model->name; -$this->params['breadcrumbs'][] = ['label' => '商品管理', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - 'name', - 'sn', - [ - 'attribute' => 'cat_id', - 'width' => '10%', - 'value' => function ($model) { - return $model->category ? $model->category->name : ''; - }, - ], - [ - 'attribute' => 'shop_cat_id', - 'width' => '10%', - 'value' => function ($model) { - return $model->shopCategory ? $model->shopCategory->name : ''; - }, - ], - [ - 'attribute' => 'brand_id', - 'width' => '10%', - 'value' => function ($model) { - return $model->brand ? $model->brand->name : ''; - }, - ], - 'code', - [ - 'attribute' => 'supplier_id', - 'width' => '10%', - 'value' => function ($model) { - return $model->supplier ? $model->supplier->name : ''; - }, - ], - 'weight', - 'length', - 'width', - 'height', - 'diameter', - 'unit', - [ - 'attribute' => 'stock', - 'width' => '5%', - 'value' => function ($model) { - if ($model->stock == -1) { - return '未开启'; - } else { - return $model->stock; - } - }, - ], - 'market_price', - 'price', - 'brief', - ['attribute' => 'image', - 'format' => 'raw', - 'value' => function ($model) { - return $model->imageFile ? - Html::img(['/'.$model->imageFile->path], ['style' => 'width:80px']) - : '
未设置
'; - - } - ], - [ - 'label' => '详情图', - 'format' => 'raw', - 'value' => function ($model) { - $image = ''; - $imgs = File::findAll(['own_id' => $model->id, 'own_type' => File::OWN_TYPE_GOODS_DETAILS, 'is_delete' => File::IS_DELETE_NO]); - foreach ($imgs as $img) { - $image .= Html::img(['/'.$img->path], ['style' => 'width:150px']); - } - return $image; - - } - ], - ['attribute' => 'is_sale', - 'width' => '5%', - 'value' => - function ($model) { - return $model->is_sale ? Goods::$isSale[$model->is_sale] : '未设置'; - - }, - ], - 'sort_order', - 'created_at:datetime', - 'updated_at:datetime', - ], - ]) ?> - -
diff --git a/backend/modules/goods/views/shop-category/_form.php b/backend/modules/goods/views/shop-category/_form.php deleted file mode 100755 index 7621f14..0000000 --- a/backend/modules/goods/views/shop-category/_form.php +++ /dev/null @@ -1,55 +0,0 @@ - - -
- - - - field($model, 'name')->textInput(['maxlength' => true]) ?> - - field($model, 'keywords')->textInput(['maxlength' => true]) ?> - - field($model, 'pid')->dropDownList(ShopCategory::modelColumn($model->id)) ?> - - field($model, 'desc')->textInput(['maxlength' => true]) ?> - - field($model, 'sort_order')->textInput() ?> - - field($model, 'iconImageId')->hiddenInput()->label('') ?> - field($model, 'iconImagePath')->widget(\iron\widgets\Upload::className(), [ - 'url' => 'upload', - 'deleteUrl' => 'img-id-del', - 'dragdropWidth'=> 800, - 'afterSave' => 'save-file', - 'maxCount' => 1, - 'fillInAttribute' => 'iconImageId', - 'model' => $model, - 'previewConfig' => [ - 'url' => Url::to(['image-file', 'fileIdStr' => $model->iconImageId]), - ], - ])->label('类目图片') ?> - - field($model, 'filter_attr')->widget(Select2::className(), ["items" => Attribute::modelColumn(), "promptText" => false, 'options' => ['multiple' => true, 'placeholder' => '请选择...'] ]) ?> - - field($model, 'is_show')->widget(Icheck::className(), ["items" => $model::$isShow, 'type' => "radio"]) ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/goods/views/shop-category/_search.php b/backend/modules/goods/views/shop-category/_search.php deleted file mode 100755 index b7d6f94..0000000 --- a/backend/modules/goods/views/shop-category/_search.php +++ /dev/null @@ -1,62 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, 'name', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "类别名称", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/goods/views/shop-category/create.php b/backend/modules/goods/views/shop-category/create.php deleted file mode 100755 index 1963d89..0000000 --- a/backend/modules/goods/views/shop-category/create.php +++ /dev/null @@ -1,18 +0,0 @@ -title = '创建前端商品分类'; -$this->params['breadcrumbs'][] = ['label' => '前端商品分类', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/goods/views/shop-category/index.php b/backend/modules/goods/views/shop-category/index.php deleted file mode 100755 index af3692d..0000000 --- a/backend/modules/goods/views/shop-category/index.php +++ /dev/null @@ -1,28 +0,0 @@ -title = '前端商品分类'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "shopcategory/deletes" - ], - ], - 'columns' => $columns - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/goods/views/shop-category/update.php b/backend/modules/goods/views/shop-category/update.php deleted file mode 100755 index 4a56469..0000000 --- a/backend/modules/goods/views/shop-category/update.php +++ /dev/null @@ -1,19 +0,0 @@ -title = '编辑前端商品分类: ' . $model->name; -$this->params['breadcrumbs'][] = ['label' => '前端商品分类', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = '编辑 '; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/goods/views/shop-category/view.php b/backend/modules/goods/views/shop-category/view.php deleted file mode 100755 index 5c05ef0..0000000 --- a/backend/modules/goods/views/shop-category/view.php +++ /dev/null @@ -1,64 +0,0 @@ -title = $model->name; -$this->params['breadcrumbs'][] = ['label' => '前端商品分类', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -$filter_attr_arr = explode(',', $model->filter_attr); -$attr_str = ''; -foreach ($filter_attr_arr as $filter_attr_id) { - $attr = Attribute::findOne($filter_attr_id); - if ($attr) { - $attr_str = $attr_str . ',' . $attr->name; - } -} -$attr_str = substr($attr_str, 1); -?> -
- -

- 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - 'name', - 'keywords', - 'desc', - 'sort_order', - ['attribute' => 'icon', - 'width'=>'10%', - 'format' => 'raw', - 'value' => function ($model) { - return $model->iconFile ? - \yii\bootstrap4\Html::img(['/'.$model->iconFile->path], ['style' => 'width:80px']) - : '未设置'; - - } - ], - ['attribute' => 'filter_attr', - 'value' => $attr_str - ], - ['attribute' => 'is_show', - 'width' => '5%', - 'value' => - function ($model) { - return $model->is_show == ShopCategory::IS_SHOW_HIDE ? '隐藏' : '显示'; - }, - ], - 'created_at:datetime', - 'updated_at:datetime', - ], - ]) ?> - -
diff --git a/backend/modules/goods/views/supplier/_form.php b/backend/modules/goods/views/supplier/_form.php deleted file mode 100755 index fccf803..0000000 --- a/backend/modules/goods/views/supplier/_form.php +++ /dev/null @@ -1,30 +0,0 @@ - - -
- - - - field($model, 'name')->textInput(['maxlength' => true]) ?> - - field($model, 'full_name')->textInput(['maxlength' => true]) ?> - - field($model, 'phone')->textInput(['maxlength' => true]) ?> - - field($model, 'address')->textInput(['maxlength' => true]) ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/goods/views/supplier/_search.php b/backend/modules/goods/views/supplier/_search.php deleted file mode 100755 index e960226..0000000 --- a/backend/modules/goods/views/supplier/_search.php +++ /dev/null @@ -1,75 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, 'name', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "供应商名称", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, 'phone', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "手机号码", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/goods/views/supplier/create.php b/backend/modules/goods/views/supplier/create.php deleted file mode 100755 index 608a85a..0000000 --- a/backend/modules/goods/views/supplier/create.php +++ /dev/null @@ -1,18 +0,0 @@ -title = '创建供应商'; -$this->params['breadcrumbs'][] = ['label' => '供应商管理', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/goods/views/supplier/index.php b/backend/modules/goods/views/supplier/index.php deleted file mode 100755 index bad1e50..0000000 --- a/backend/modules/goods/views/supplier/index.php +++ /dev/null @@ -1,28 +0,0 @@ -title = '供应商管理'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "supplier/deletes" - ], - ], - 'columns' => $columns - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/goods/views/supplier/update.php b/backend/modules/goods/views/supplier/update.php deleted file mode 100755 index e23a549..0000000 --- a/backend/modules/goods/views/supplier/update.php +++ /dev/null @@ -1,19 +0,0 @@ -title = '编辑供应商: ' . $model->name; -$this->params['breadcrumbs'][] = ['label' => '供应商管理', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = '编辑 '; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/goods/views/supplier/view.php b/backend/modules/goods/views/supplier/view.php deleted file mode 100755 index 68a7689..0000000 --- a/backend/modules/goods/views/supplier/view.php +++ /dev/null @@ -1,33 +0,0 @@ -title = $model->name; -$this->params['breadcrumbs'][] = ['label' => '供应商管理', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - 'name', - 'full_name', - 'phone', - 'address', - 'created_at:datetime', - 'updated_at:datetime', - ], - ]) ?> - -
diff --git a/backend/modules/goods/web/GoodsAttributeAsset.php b/backend/modules/goods/web/GoodsAttributeAsset.php deleted file mode 100755 index b249ae2..0000000 --- a/backend/modules/goods/web/GoodsAttributeAsset.php +++ /dev/null @@ -1,22 +0,0 @@ -tradeType = self::TRADE_TYPE_JS_API; - $this->payType = $payType; - $this->notifyUrl = $notifyUrl; - - $unifyParams = $this->applyPaymentData($orderId, $orderAmount, $paymentAmount, $notifyUrl); - $result = $this->unify($unifyParams); - if ($result['return_code'] == 'FAIL') { - throw new BadRequestHttpException($result['return_msg']); - } - if ($result['return_code'] == 'SUCCESS' && $result['return_msg'] == 'OK' && $result['result_code'] == 'FAIL') { - throw new BadRequestHttpException($result['err_code_des']); - } - return Json::decode($this->getBridgeConfig($result['prepay_id']), true); - } - - /** - * @param $prepayId - * @return array|string - */ - private function getBridgeConfig($prepayId) - { - $this->initObject(); - return $this->app->jssdk->bridgeConfig($prepayId); - } - - /** - * @param string $orderId - * @param int $orderAmount - * @param int $paymentAmount - * @param string $notifyUrl - * @return array - * @throws BadRequestHttpException - * @throws Exception - * 生成支付参数 - */ - private function applyPaymentData($orderId, $orderAmount, $paymentAmount, $notifyUrl) - { - $this->savePaymentLog($orderId, $orderAmount, $paymentAmount, $notifyUrl); - - $params = [ - 'body' => '订单支付', - 'out_trade_no' => $orderId, - 'total_fee' => $paymentAmount, - 'openid' => Yii::$app->user->identity->wx_openid, - ]; - return $params; - } - - /** - * @param string $orderId - * @param int $orderAmount - * @param int $paymentAmount - * @param string $notifyUrl - * @throws BadRequestHttpException - * @throws Exception - * 保存支付信息 - */ - private function savePaymentLog($orderId, $orderAmount, $paymentAmount, $notifyUrl) - { - $paymentLog = PaymentLog::findOne(['order_id' => $orderId]); - if (!$paymentLog) { - $paymentLog = new PaymentLog(); - } elseif (!empty($paymentLog->wx_payment_id)) { - throw new BadRequestHttpException('此订单号也有支付信息,不能重复'); - } - $paymentLog->order_id = $orderId; - $paymentLog->order_amount = $orderAmount; - $paymentLog->payment_amount = $paymentAmount; - $paymentLog->notify_url = $this->notifyUrl; - $paymentLog->type = $this->payType; - $paymentLog->status = self::STATUS_PAYMENT_WAITING; - if (!$paymentLog->save()) { - throw new Exception(Helper::errorMessageStr($paymentLog->errors)); - } - } - - protected function getApp() - { - $this->initObject(); - $config = [ - 'app_id' => $this->appId, - 'mch_id' => $this->mchId, - 'key' => $this->key, - 'cert_path' => $this->certPath, - 'key_path' => $this->keyPath, - 'notify_url' => $this->notifyUrl, - 'trade_type' => $this->tradeType, - 'sandbox' => true, // 设置为 false 或注释则关闭沙箱模式 - ]; - $this->app = Factory::payment($config); - //判断当前是否为沙箱模式: - $this->app->inSandbox(); - } - - /** - * @var WxPayConfig $wxPayConfig - */ - private function initObject() - { - $path = Yii::getAlias('@backend'); - $wxPayConfig = WxPayConfig::find()->one(); - switch ($this->payType) { - case self::PAY_TYPE_WEB: - // $wxConfig = WxConfig::find()->one(); -// $this->appId = trim($wxConfig->appid); - break; - case self::PAY_TYPE_MINI_PROGRAM: - // $miniProgramConfig = MiniProgramConfig::find()->one(); -// $this->appId = trim($miniProgramConfig->appid); - break; - } - $this->mchId = trim($wxPayConfig->mch_id); - $this->key = trim($wxPayConfig->key); - $this->certPath = trim($path . $wxPayConfig->cert_path); - $this->keyPath = trim($path . $wxPayConfig->key_path); - $this->notifyUrl = Yii::$app->request->hostInfo . '/wx-payment/notify'; - - $this->mchId = '1395812402'; - $this->key = '51CF5EE3B2E35B9843E17E6099325A65'; - } - - /** - * @param $unifyParams - * @return mixed - * 统一下单 - */ - private function unify($unifyParams) - { - $unifyParams['trade_type'] = $this->tradeType; - $this->getApp(); - return $this->app->order->unify($unifyParams); - } - - /** - * @param $data - * @return bool - * 支付成功回调验证签名和支付金额 - */ - public function checkSign($data) - { - $this->initObject(); - $notifySign = $data['sign']; - unset($data['sign']); - $sign = $this->_sign($data); - if ($notifySign == $sign) { - return true; - } else { - return false; - } - } - - /** - * @param $arr - * @return string - * 微信签名方法 - */ - private function _sign($arr) - { - $arr = array_filter($arr); - ksort($arr); - $arr['key'] = $this->key; - $queryString = http_build_query($arr); - $queryString = urldecode($queryString); - return strtoupper(md5($queryString)); - } - - -/*************************************** Refund ************************************************/ - /** - * @param string $orderId - * @param int $refundAmount - * @param string $refundAccount - * @param int $reason - * @return RefundLog - * @throws BadRequestHttpException - * @throws Exception - * @throws NotFoundHttpException - * 申请退款 - */ - public function applyRefund($orderId, $refundAmount, $refundAccount, $reason) - { - if (empty($orderId) || empty($refundAmount) || empty($refundAccount) || empty($reason)) { - throw new BadRequestHttpException(Helper::REQUEST_BAD_PARAMS); - } - $paymentLog = PaymentLog::findOne(['order_id' => $orderId]); - if (empty($paymentLog)) { - throw new NotFoundHttpException('订单支付信息未找到'); - } - if (RefundLog::findOne(['order_id' => $orderId, 'status' => self::STATUS_REFUND_WAIT])) { - throw new BadRequestHttpException('此订单存在等待审核的退款申请'); - } - $refundedAmount = RefundLog::find() - ->where(['order_id' => $orderId, 'status' => self::STATUS_PAYMENT_SUCCESS]) - ->sum('refund_amount') ?? 0; - - $refundLog = new RefundLog(); - $refundLog->order_id = $orderId; - $refundLog->wx_refund_id = Helper::timeRandomNum(3, 'R'); - $refundLog->reason = $reason; - $refundLog->order_amount = $paymentLog->payment_amount; - $refundLog->refund_amount = $refundAmount; - $refundLog->refunded_amount = $refundedAmount; - $refundLog->type = $paymentLog->type; - $refundLog->status = self::STATUS_REFUND_WAIT; - $refundLog->refund_account = $refundAccount; - $refundLog->applyed_at = time(); - if (!$refundLog->save()) { - throw new Exception(Helper::errorMessageStr($refundLog->errors)); - } - return $refundLog; - } - - /** - * @param string $orderId - * @param int $refundAmount - * @param int $operatorId - * @return array|mixed - * @throws BadRequestHttpException - * @throws NotFoundHttpException - */ - public function refund($orderId, $refundAmount, $operatorId) - { - $paymentLog = PaymentLog::findOne(['order_id' => $orderId]); - if (empty($paymentLog)) { - throw new NotFoundHttpException('订单支付信息未找到'); - } - $refundLog = RefundLog::findOne(['order_id' => $orderId, 'status' => self::STATUS_REFUND_WAIT]); - if (empty($refundLog)) { - throw new NotFoundHttpException('订单退款信息未找到'); - } - - $this->executeRefund($paymentLog, $refundLog, $refundAmount); - return $this->updateRefundInfo($paymentLog, $refundLog, $operatorId); - } - - /** - * @param PaymentLog $paymentLog - * @param RefundLog $refundLog - * @param $refundAmount - * @throws BadRequestHttpException - */ - private function executeRefund($paymentLog, $refundLog, $refundAmount) - { - /*参数分别为:微信订单号、商户退款单号、订单金额、退款金额、其他参数*/ - $this->getApp(); - $config = [ - 'refund_desc' => '退款' - ]; - $result = $this->app->refund->byTransactionId( - $paymentLog->wx_payment_id, - $refundLog->wx_refund_id, - $paymentLog->payment_amount, - $refundAmount, - $config - ); - Yii::info($result, 'refund_log'); - - if ($result['return_code'] == 'FAIL' || $result['return_msg'] != 'OK' || $result['result_code'] == 'FAIL') { - throw new BadRequestHttpException($result['return_msg']); - } - if ($result['err_code_des']) { - throw new BadRequestHttpException($result['err_code_des']); - } - } - - /** - * @param PaymentLog $paymentLog - * @param RefundLog $refundLog - * @param int $operatorId - * @return array - */ - private function updateRefundInfo($paymentLog, $refundLog, $operatorId) - { - $tra = Yii::$app->db->beginTransaction(); - try { - $paymentLog->wx_refund_id = $refundLog->wx_refund_id; - $paymentLog->refund_account = $refundLog->refund_account; - $paymentLog->status = $refundLog->refund_amount < $paymentLog->payment_amount ? self::STATUS_REFUND_SUCCESS : self::STATUS_REFUND_PORTION; - if (!$paymentLog->save()) { - throw new Exception(Helper::errorMessageStr($paymentLog->errors)); - } - - $refundLog->operator_id = $operatorId; - $refundLog->status = $refundLog->refund_amount < $paymentLog->payment_amount ? self::STATUS_REFUND_SUCCESS : self::STATUS_REFUND_PORTION; - $refundLog->finished_at = time(); - if (!$refundLog->save()) { - throw new Exception(Helper::errorMessageStr($refundLog->errors)); - } - - $tra->commit(); - return ['status' => true]; - } catch (Exception $e) { - $tra->rollBack(); - return ['status' => false, 'info' => $e->getMessage()]; - } - } - -} \ No newline at end of file diff --git a/backend/modules/shop/Module.php b/backend/modules/shop/Module.php deleted file mode 100755 index bf111e5..0000000 --- a/backend/modules/shop/Module.php +++ /dev/null @@ -1,24 +0,0 @@ - [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['POST'], - ], - ], - ]; - } - - /** - * Lists all AfterSale models. - * @return mixed - */ - public function actionIndex() - { - $searchModel = new AfterSaleSearch(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams); - - return $this->render('index', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - 'columns' => $searchModel->columns() - ]); - } - - /** - * Displays a single AfterSale model. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionView($id) - { - return $this->render('view', [ - 'model' => $this->findModel($id), - ]); - } - - /** - * Creates a new AfterSale model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new AfterSale(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('create', [ - 'model' => $model, - ]); - } - - /** - * Updates an existing AfterSale model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('update', [ - 'model' => $model, - ]); - } - - /** - * Deletes an existing AfterSale model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionDelete($id) - { - $this->findModel($id); - - return $this->redirect(['index']); - } - - /** - * Finds the AfterSale model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return AfterSale the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = AfterSale::findOne($id)) !== null) { - return $model; - } - - throw new NotFoundHttpException('The requested page does not exist.'); - } - /** - * @author iron - * 文件导出 - */ - public function actionExport() - { - $searchModel = new AfterSaleSearch(); - $params = Yii::$app->request->queryParams; - if ($params['page-type'] == 'all') { - $dataProvider = $searchModel->allData($params); - } else { - $dataProvider = $searchModel->search($params); - } - Excel::export([ - 'models' => $dataProvider->getModels(), - 'format' => 'Xlsx', - 'asAttachment' => true, - 'fileName' =>'After Sales'. "-" .date('Y-m-d H/i/s', time()), - 'columns' => $searchModel->columns() - ]); - } - - /** - * @param $status - * @param $id - * @return Response - * 处理售后申请 - */ - public function actionHandle($status, $id) - { - $url = Yii::$app->request->referrer; - $model = AfterSale::findOne($id); - if ($status == AfterSale::STATUS_ACCEPT) { - $model->status = AfterSale::STATUS_ACCEPT; - } else { - $model->status = AfterSale::STATUS_REJECT; - } - $model->dealt_at = time(); - $model->operator_id = Yii::$app->user->id; - if ($model->save()) { - return $this->redirect('index'); - } else { - return $this->redirect($url); - } - } -} diff --git a/backend/modules/shop/controllers/CommentController.php b/backend/modules/shop/controllers/CommentController.php deleted file mode 100644 index 01ab832..0000000 --- a/backend/modules/shop/controllers/CommentController.php +++ /dev/null @@ -1,179 +0,0 @@ - [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['POST'], - ], - ], - ]; - } - - /** - * Lists all Comment models. - * @return mixed - */ - public function actionIndex() - { - $searchModel = new CommentSearch(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams); - - return $this->render('index', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - 'columns' => $searchModel->columns() - ]); - } - - /** - * Displays a single Comment model. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionView($id) - { - return $this->render('view', [ - 'model' => $this->findModel($id), - ]); - } - - /** - * Creates a new Comment model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new Comment(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('create', [ - 'model' => $model, - ]); - } - - /** - * Updates an existing Comment model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('update', [ - 'model' => $model, - ]); - } - - /** - * Deletes an existing Comment model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionDelete($id) - { - $this->findModel($id)->delete(); - - return $this->redirect(['index']); - } - - /** - * Finds the Comment model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return Comment the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = Comment::findOne($id)) !== null) { - return $model; - } - - throw new NotFoundHttpException('The requested page does not exist.'); - } - /** - * @author iron - * 文件导出 - */ - public function actionExport() - { - $searchModel = new CommentSearch(); - $params = Yii::$app->request->queryParams; - if ($params['page-type'] == 'all') { - $dataProvider = $searchModel->allData($params); - } else { - $dataProvider = $searchModel->search($params); - } - Excel::export([ - 'models' => $dataProvider->getModels(), - 'format' => 'Xlsx', - 'asAttachment' => true, - 'fileName' =>'Comments'. "-" .date('Y-m-d H/i/s', time()), - 'columns' => $searchModel->columns() - ]); - } - - /** - * 显示评论 - * @param $id - * @return Response - * @throws NotFoundHttpException - */ - public function actionDisplay($id) - { - $model = $this->findModel($id); - $model->status = Comment::STATUS_DISPLAY; - $model->save(); - return $this->redirect(['index']); - } - - /** - * 隐藏评论 - * @param $id - * @return Response - * @throws NotFoundHttpException - */ - public function actionHide($id) - { - $model = $this->findModel($id); - $model->status = Comment::STATUS_HIDE; - $model->save(); - return $this->redirect(['index']); - } -} diff --git a/backend/modules/shop/controllers/DeliveryController.php b/backend/modules/shop/controllers/DeliveryController.php deleted file mode 100644 index 3938206..0000000 --- a/backend/modules/shop/controllers/DeliveryController.php +++ /dev/null @@ -1,155 +0,0 @@ - [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['POST'], - ], - ], - ]; - } - - /** - * Lists all Delivery models. - * @return mixed - */ - public function actionIndex() - { - $searchModel = new DeliverySearch(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams); - - return $this->render('index', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - 'columns' => $searchModel->columns() - ]); - } - - /** - * Displays a single Delivery model. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionView($id) - { - $model = $this->findModel($id); - $logistics = DeliveryManager::queryLogistics($model->order_id); - - return $this->render('view', [ - 'model' => $model, - 'logistics' => $logistics, - ]); - } - - /** - * Creates a new Delivery model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new Delivery(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('create', [ - 'model' => $model, - ]); - } - - /** - * Updates an existing Delivery model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('update', [ - 'model' => $model, - ]); - } - - /** - * Deletes an existing Delivery model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionDelete($id) - { - $this->findModel($id)->delete(); - - return $this->redirect(['index']); - } - - /** - * Finds the Delivery model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return Delivery the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = Delivery::findOne($id)) !== null) { - return $model; - } - - throw new NotFoundHttpException('The requested page does not exist.'); - } - /** - * @author iron - * 文件导出 - */ - public function actionExport() - { - $searchModel = new DeliverySearch(); - $params = Yii::$app->request->queryParams; - if ($params['page-type'] == 'all') { - $dataProvider = $searchModel->allData($params); - } else { - $dataProvider = $searchModel->search($params); - } - \iron\widget\Excel::export([ - 'models' => $dataProvider->getModels(), - 'format' => 'Xlsx', - 'asAttachment' => true, - 'fileName' =>'Deliveries'. "-" .date('Y-m-d H/i/s', time()), - 'columns' => $searchModel->columns() - ]); - } - -} diff --git a/backend/modules/shop/controllers/ExpressTemplateController.php b/backend/modules/shop/controllers/ExpressTemplateController.php deleted file mode 100755 index 223faf5..0000000 --- a/backend/modules/shop/controllers/ExpressTemplateController.php +++ /dev/null @@ -1,291 +0,0 @@ - [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['POST'], - ], - ], - ]; - } - - /** - * Lists all ExpressTemplate models. - * @return mixed - */ - public function actionIndex() - { - $searchModel = new ExpressTemplateSearch(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams); - - return $this->render('index', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - 'columns' => $searchModel->columns() - ]); - } - - /** - * Displays a single ExpressTemplate model. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionView($id) - { - return $this->render('view', [ - 'model' => $this->findModel($id), - ]); - } - - /** - * Creates a new ExpressTemplate model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new ExpressTemplate(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('create', [ - 'model' => $model, - ]); - } - - /** - * Updates an existing ExpressTemplate model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('update', [ - 'model' => $model, - ]); - } - - /** - * Deletes an existing ExpressTemplate model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - * @throws Throwable - * @throws StaleObjectException - */ - public function actionDelete($id) - { - if (Goods::find()->where(['express_template' => $id, 'is_delete' => Goods::IS_DELETE_NO])->count() == 0) { - $expressTemplateModel = $this->findModel($id); - ExpressArea::deleteAll(['express_template' => $expressTemplateModel->id]); - $expressTemplateModel->delete(); - } else { - Yii::$app->session->setFlash('error', '该模板已被使用'); - } - - return $this->redirect(['index']); - } - - /** - * Finds the ExpressTemplate model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return ExpressTemplate the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = ExpressTemplate::findOne($id)) !== null) { - return $model; - } - - throw new NotFoundHttpException('The requested page does not exist.'); - } - /** - * @author iron - * 文件导出 - */ - public function actionExport() - { - $searchModel = new ExpressTemplateSearch(); - $params = Yii::$app->request->queryParams; - if ($params['page-type'] == 'all') { - $dataProvider = $searchModel->allData($params); - } else { - $dataProvider = $searchModel->search($params); - } - Excel::export([ - 'models' => $dataProvider->getModels(), - 'format' => 'Xlsx', - 'asAttachment' => true, - 'fileName' =>'Express Templates'. "-" .date('Y-m-d H/i/s', time()), - 'columns' => $searchModel->columns() - ]); - } - - /** - * @param $id - * @return string - * 运费区域列表 - */ - public function actionExpressAreaList($id) - { - $expressTemplate = ExpressTemplate::findOne($id); - $searchModel = new ExpressAreaSearch(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams, $id); - - return $this->render('express_area_list', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - 'columns' => $searchModel->columns(), - 'expressTemplate' => $expressTemplate - ]); - } - - /** - * @return array|mixed|string|Response - * 运费区域模板区域创建方法 - */ - public function actionExpressAreaCreate() - { - $expressTemplateModel = ExpressTemplate::findOne(Yii::$app->request->get('expressTemplateId')); - $model = new ExpressArea(); - $model->basic_count = 1; - $model->basic_price = '0.00'; - $model->express_template = $expressTemplateModel->id; - - if (Yii::$app->request->isPost) { - $data = Yii::$app->request->post('ExpressArea'); - if (Yii::$app->request->isAjax) { - $model->load($data, ''); - Yii::$app->response->format = Response::FORMAT_JSON; - $data = ActiveForm::validate($model); - $data['status'] = 2; - return $data; - } - $area = Yii::$app->request->post('area'); - if ($area == null) { - return $this->redirect(Yii::$app->request->referrer . '&status=1'); - } - ShopManager::dealAreaInExpressArea($area, $model, $expressTemplateModel); - return $this->redirect('express-area-list?id='.$model->express_template); - } - - $data = ShopManager::filterCity($model); //获取筛选的城市数据 - if (empty($data)) { - Yii::$app->session->setFlash('error', '已无地区选择'); - return $this->redirect('express-area-list?id='.$expressTemplateModel->id); - } - return $this->render('express_area_create', [ - 'model' => $model, - 'data' => $data, - 'expressTemplateModel' => $expressTemplateModel - ]); - } - - /** - * @return array|mixed|string|Response - * 运费区域模板区域更新方法 - */ - public function actionExpressAreaUpdate($id) - { - $model = ExpressArea::findOne($id); - - //数据按比例转换 - $expressTemplateModel = ExpressTemplate::findOne($model->express_template); - $model->basic_price /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_MONEY); - $model->extra_price /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_MONEY); - if ($expressTemplateModel->calculation_type == ExpressTemplate::CALCULATION_TYPE_WEIGHT) { - $model->basic_count /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_WEIGHT); - $model->extra_count /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_WEIGHT); - } - - $data = Yii::$app->request->post('ExpressArea'); - if ($data) { - $area = Yii::$app->request->post('area'); - if ($area == null) { - return $this->redirect(Yii::$app->request->referrer . '&status=1'); - } - ShopManager::dealAreaInExpressArea($area, $model, $expressTemplateModel); - return $this->redirect('express-area-list?id='.$model->express_template); - } - - $data = ShopManager::filterCity($model); //获取筛选的城市数据 - - return $this->render('express_area_update', [ - 'model' => $model, 'data' => $data, 'cities' => explode(',', $model->city), 'expressTemplateModel' => $expressTemplateModel - ]); - } - - /** - * @param $id - * @return string - * 运费区域模板区域查看方法 - */ - public function actionExpressAreaView($id) - { - $expressAreaModel = ExpressArea::findOne($id); - $expressTemplateModel = ExpressTemplate::findOne($expressAreaModel->express_template); - return $this->render('express_area_view', [ - 'model' => $expressAreaModel, - 'expressTemplateModel' => $expressTemplateModel - ]); - } - - /** - * @param $id - * @return Response - * @throws StaleObjectException - * @throws Throwable - */ - public function actionExpressAreaDelete($id) - { - $expressAreaModel = ExpressArea::findOne($id); - $expressTemplateId = $expressAreaModel->express_template; - $expressAreaModel->delete(); - return $this->redirect('express-area-list?id='.$expressTemplateId); - } -} diff --git a/backend/modules/shop/controllers/OrderController.php b/backend/modules/shop/controllers/OrderController.php deleted file mode 100755 index a3038a2..0000000 --- a/backend/modules/shop/controllers/OrderController.php +++ /dev/null @@ -1,219 +0,0 @@ - [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['POST'], - ], - ], - ]; - } - - /** - * Lists all Order models. - * @return mixed - */ - public function actionIndex() - { - $searchModel = new OrderSearch(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams); - - return $this->render('index', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - 'columns' => $searchModel->columns() - ]); - } - - /** - * Displays a single Order model. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionView($id) - { - return $this->render('view', [ - 'model' => $this->findModel($id), - ]); - } - - /** - * Creates a new Order model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new Order(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('create', [ - 'model' => $model, - ]); - } - - /** - * Updates an existing Order model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('update', [ - 'model' => $model, - ]); - } - - /** - * Deletes an existing Order model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - * @throws Throwable - * @throws StaleObjectException - */ - public function actionDelete($id) - { - $this->findModel($id)->delete(); - - return $this->redirect(['index']); - } - - /** - * Finds the Order model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return Order the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = Order::findOne($id)) !== null) { - return $model; - } - - throw new NotFoundHttpException('The requested page does not exist.'); - } - /** - * @author iron - * 文件导出 - */ - public function actionExport() - { - $searchModel = new OrderSearch(); - $params = Yii::$app->request->queryParams; - if ($params['page-type'] == 'all') { - $dataProvider = $searchModel->allData($params); - } else { - $dataProvider = $searchModel->search($params); - } - Excel::export([ - 'models' => $dataProvider->getModels(), - 'format' => 'Xlsx', - 'asAttachment' => true, - 'fileName' =>'Orders'. "-" .date('Y-m-d H/i/s', time()), - 'columns' => $searchModel->columns() - ]); - } - - /** - * @param $id - * @return string|\yii\web\Response - * @throws NotFoundHttpException - * 订单发货 - */ - public function actionDelivery($id) - { - $order = $this->findModel($id); - $delivery = new Delivery(); - - if (Yii::$app->request->isPost) { - $res = DeliveryManager::orderDelivery($order, $delivery); - if ($res['status']) { - return $this->redirect(['index']); - } else { - Yii::$app->session->setFlash('error', $res['info']); - } - } - - /*获取发货商品信息(包括已发货和未发货)*/ - $deliveryGoods = DeliveryManager::deliveryGoodsInfo($id); - return $this->render('delivery', [ - 'order' => $order, - 'delivery' => $delivery, - 'deliveryGoods' => $deliveryGoods - ]); - } - - /** - * @param $id - * @return string|\yii\web\Response - * @throws \yii\base\InvalidConfigException - * @var $wxPayment - */ - public function actionRefund($id) - { - $model = RefundLog::findOne([ - 'order_id' => Order::findOne($id)->order_sn, - 'status' => WxPaymentLogic::STATUS_REFUND_WAIT - ]); - - if (Yii::$app->request->post()) { - $wxPayment = Yii::createObject([ - 'class' => 'backend\modules\payment\logic\WxPaymentManager' - ]); - $res = $wxPayment->refund($model->order_id, $model->refund_amount, Yii::$app->user->id); - if ($res['status']) { - return $this->redirect(['index']); - } else { - Yii::$app->session->setFlash('error', $res['info']); - } - } - - return $this->render('refund', [ - 'model' => $model, - ]); - } - -} diff --git a/backend/modules/shop/controllers/TakingSiteController.php b/backend/modules/shop/controllers/TakingSiteController.php deleted file mode 100755 index 9bfdd89..0000000 --- a/backend/modules/shop/controllers/TakingSiteController.php +++ /dev/null @@ -1,190 +0,0 @@ - [ - 'class' => VerbFilter::className(), - 'actions' => [ - 'delete' => ['POST'], - ], - ], - ]; - } - - /** - * Lists all TakingSite models. - * @return mixed - */ - public function actionIndex() - { - $searchModel = new TakingSiteSearch(); - $dataProvider = $searchModel->search(Yii::$app->request->queryParams); - - return $this->render('index', [ - 'searchModel' => $searchModel, - 'dataProvider' => $dataProvider, - 'columns' => $searchModel->columns() - ]); - } - - /** - * Displays a single TakingSite model. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionView($id) - { - return $this->render('view', [ - 'model' => $this->findModel($id), - ]); - } - - /** - * Creates a new TakingSite model. - * If creation is successful, the browser will be redirected to the 'view' page. - * @return mixed - */ - public function actionCreate() - { - $model = new TakingSite(); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('create', [ - 'model' => $model, - ]); - } - - /** - * Updates an existing TakingSite model. - * If update is successful, the browser will be redirected to the 'view' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - */ - public function actionUpdate($id) - { - $model = $this->findModel($id); - - if ($model->load(Yii::$app->request->post()) && $model->save()) { - return $this->redirect('index'); - } - - return $this->render('update', [ - 'model' => $model, - ]); - } - - /** - * Deletes an existing TakingSite model. - * If deletion is successful, the browser will be redirected to the 'index' page. - * @param integer $id - * @return mixed - * @throws NotFoundHttpException if the model cannot be found - * @throws Throwable - * @throws StaleObjectException - */ - public function actionDelete($id) - { - $this->findModel($id)->delete(); - - return $this->redirect(['index']); - } - - /** - * Finds the TakingSite model based on its primary key value. - * If the model is not found, a 404 HTTP exception will be thrown. - * @param integer $id - * @return TakingSite the loaded model - * @throws NotFoundHttpException if the model cannot be found - */ - protected function findModel($id) - { - if (($model = TakingSite::findOne($id)) !== null) { - return $model; - } - - throw new NotFoundHttpException('The requested page does not exist.'); - } - /** - * @author iron - * 文件导出 - */ - public function actionExport() - { - $searchModel = new TakingSiteSearch(); - $params = Yii::$app->request->queryParams; - if ($params['page-type'] == 'all') { - $dataProvider = $searchModel->allData($params); - } else { - $dataProvider = $searchModel->search($params); - } - Excel::export([ - 'models' => $dataProvider->getModels(), - 'format' => 'Xlsx', - 'asAttachment' => true, - 'fileName' =>'Taking Sites'. "-" .date('Y-m-d H/i/s', time()), - 'columns' => $searchModel->columns() - ]); - } - - /** - * @return array - * 根据省获取市数据 - */ - public function actionCity() - { - Yii::$app->response->format = 'json'; - $parents = Yii::$app->request->post('depdrop_parents'); - if ($parents != null) { - $provinceId = $parents[0]; - $data = City::find()->select('city_id as id,name')->where(['province_id' => $provinceId])->asArray()->all(); - return ['output' => $data, 'selected' => '']; - } else { - return ['output' => '', 'selected' => '']; - } - } - - /** - * @return array - * 根据市数据获取区域数据 - */ - public function actionArea() - { - Yii::$app->response->format = 'json'; - $parents = Yii::$app->request->post('depdrop_parents'); - if ($parents != null) { - $cityId = $parents[0]; - $data = Area::find()->select('area_id as id,name')->where(['city_id' => $cityId])->asArray()->all(); - return ['output' => $data, 'selected' => '']; - } else { - return ['output' => '', 'selected' => '']; - } - } -} diff --git a/backend/modules/shop/logic/ShopManager.php b/backend/modules/shop/logic/ShopManager.php deleted file mode 100644 index bde5b00..0000000 --- a/backend/modules/shop/logic/ShopManager.php +++ /dev/null @@ -1,139 +0,0 @@ -basic_price *= self::proportionalConversion(self::UNIT_TYPE_MONEY); - $expressAreaModel->extra_price *= self::proportionalConversion(self::UNIT_TYPE_MONEY); - if ($expressTemplateModel->calculation_type == ExpressTemplate::CALCULATION_TYPE_WEIGHT) { - $expressAreaModel->basic_count *= self::proportionalConversion(self::UNIT_TYPE_WEIGHT); - $expressAreaModel->extra_count *= self::proportionalConversion(self::UNIT_TYPE_WEIGHT); - } else { - $expressAreaModel->basic_count *= self::proportionalConversion(self::UNIT_TYPE_ITEM); - $expressAreaModel->extra_count *= self::proportionalConversion(self::UNIT_TYPE_ITEM); - } - } - - /** - * @param ExpressArea|$expressAreaModel - * @return array - * 除去已被选取的城市,筛选剩下的城市数据 - */ - public static function filterCity($expressAreaModel) - { - $query = ExpressArea::find() - ->select(['city']) - ->where(['express_template' => $expressAreaModel->express_template]); - if ($expressAreaModel->id) { //修改操作时,除去自身的城市 - $query = $query->andWhere(['!=', 'id', $expressAreaModel->id]); - } - $allDate = $query->all(); - - $expressAresCityIdArr = self::filterSelectedCtiyIdArr($allDate); - - $leftoverCityArr = self::filterLeftoverCityArr($expressAresCityIdArr); - return $leftoverCityArr; - } - - /** - * @param $expressAreas - * @return array 已选的城市id数组 - * 获取已选的城市id数组 - */ - private static function filterSelectedCtiyIdArr($expressAreas) - { - $expressAresCityIdArr = []; - if ($expressAreas) { - foreach ($expressAreas as $expressAreaCity) { - $cityIdArr = explode(',', $expressAreaCity->city); - $expressAresCityIdArr = array_unique(array_merge($cityIdArr, $expressAresCityIdArr)); - } - } - return $expressAresCityIdArr; - } - - /** - * @param $expressAresCityIdArr - * @return array 未选的城市id数组 - * 筛选剩下的城市 - */ - private static function filterLeftoverCityArr($expressAresCityIdArr) - { - $data = []; - $provinces = Province::find()->cache(0)->all(); - foreach ($provinces as $key => $province) { - $cities = City::find() - ->where(['province_id' => $province->province_id]) - ->andWhere(['not in', 'city_id', $expressAresCityIdArr]) - ->all(); - - if ($cities) { - $data[$key]['province'] = $province->name; - foreach ($cities as $city) { - $data[$key]['city'][] = ['id' => $city->city_id, 'name' => $city->name]; - } - } - } - return array_values($data); - } - - /** - * 处理所选区域数据 - * @param $area - * @param ExpressArea|$expressAreaModel - * @param ExpressTemplate|$expressTemplateModel - * @return bool - */ - public static function dealAreaInExpressArea($area, $expressAreaModel, $expressTemplateModel) - { - $cityIds = array_keys($area); - $data['city'] = implode(',', $cityIds); - $expressAreaModel->load($data, ''); - self::expressAreaScaleDate($expressAreaModel, $expressTemplateModel); //按比例转换数据 - $expressAreaModel->save(); - return true; - } -} \ No newline at end of file diff --git a/backend/modules/shop/logic/delivery/DeliveryManager.php b/backend/modules/shop/logic/delivery/DeliveryManager.php deleted file mode 100644 index 9ae43f0..0000000 --- a/backend/modules/shop/logic/delivery/DeliveryManager.php +++ /dev/null @@ -1,228 +0,0 @@ -db->beginTransaction(); - try { - $data = Yii::$app->request->post(); - if (empty($data['deliveryGoods'])) { - throw new Exception('缺少发货商品信息'); - } - $delivery->load($data); - $delivery->order_id = $order->id; - if (!$delivery->save()) { - throw new Exception('保存物流信息失败'); - } - - /*发货商品数据*/ - $orderStatus = self::saveDeliveryGoods($data['deliveryGoods'], $delivery->id); - $order->status = $orderStatus; - if (!$order->save()) { - throw new Exception('order shipping_status update false'); - } - - if ($orderStatus == Order::STATUS_SHIPMENT_PORTION || Delivery::find()->where(['!=', 'id', $delivery->id])->andWhere(['order_id' => $delivery->order_id])->one()) { - $delivery->type = Delivery::TYPE_SHIPMENT_PORTION; - } else { - $delivery->type = Delivery::TYPE_SHIPMENT_ALL; - } - if (!$delivery->save()) { - throw new Exception('保存物流信息失败'); - } - - $transaction->commit(); - return ['status' => true]; - } catch (Exception $e) { - $transaction->rollBack(); - return ['status' => false, 'info' => $e->getMessage()]; - } - } - - /** - * @param $deliveryGoods - * @param $delivery_id - * @return int - * @throws Exception - * 保存发货商品信息 - */ - private static function saveDeliveryGoods($deliveryGoods, $delivery_id) - { - $status = Order::STATUS_SHIPMENT_ALL; - foreach ($deliveryGoods as $id => $goodsCount) { - if ($goodsCount < 0) { - throw new Exception('操作异常,发货数量不能小于0'); - } elseif ($goodsCount == 0) { - continue; - } - $orderGoods = OrderGoods::findOne($id); - - /*如果是发货数量不是全部,订单状态为部分发货*/ - $deliveryGoodsCount = DeliveryGoods::find()->where(['order_goods_id' => $id])->sum('goods_count'); - if (($deliveryGoodsCount + $goodsCount) < $orderGoods->goods_count) { //如果已发货数量未达到order_goods里的数量 - $status = Order::STATUS_SHIPMENT_PORTION; - } elseif (($deliveryGoodsCount + $goodsCount) > $orderGoods->goods_count) { - throw new Exception('操作异常,现发货数量超过之前缺少的发货数量'); - } - - $model = new DeliveryGoods(); - $model->delivery_id = $delivery_id; - $model->order_goods_id = $orderGoods->id; - $model->goods_id = $orderGoods->goods_id; - $model->goods_name = $orderGoods->goods_name; - $model->goods_count = $goodsCount; - if (!$model->save()) { - throw new Exception('delivery_goods save false'); - } - } - return $status; - } - - /** - * @param $order_id - * @return array - * 查询订单发货商品信息 - */ - public static function deliveryGoodsInfo($order_id) - { - $delivery = Delivery::findAll(['order_id' => $order_id]); - /*如果该订单是首次发货*/ - if ($delivery) { - /*获取订单已发的商品和未发的商品*/ - return self::getDeliveryGoodsInfo($delivery); - } else { - $unShippedGoods = OrderGoods::find()->where(['order_id' => $order_id])->all(); - return ['unShipped' => $unShippedGoods]; - } - } - - /** - * @param $delivery - * @return array - * 获取订单已发的商品和未发的商品 - */ - public static function getDeliveryGoodsInfo($delivery) - { - $data = []; - $deliveryIds = []; - foreach ($delivery as $k => $value) { - $deliveryIds[] = $value->id; - $orderGoodsIds = DeliveryGoods::find() - ->select('order_goods_id') - ->where(['delivery_id' => $value->id]) - ->andWhere(['>', 'goods_count', 0]) - ->column(); - $value->deliveryGoods = OrderGoods::findAll($orderGoodsIds); - } - $data['shipped'] = $delivery; - - $deliveryGoodsData = []; - $deliveryGoods = DeliveryGoods::find() - ->select(['order_goods_id', 'goods_count']) - ->where(['delivery_id' => $deliveryIds]) - ->andWhere(['>', 'goods_count', 0]) - ->all(); - foreach ($deliveryGoods as $k => $value) { - $orderGoods = $value->order_goods_id; - if (isset($deliveryGoodsData[$orderGoods])) { - $deliveryGoodsData[$orderGoods] += $value->goods_count; - } else { - $deliveryGoodsData[$orderGoods] = $value->goods_count; - } - } - foreach ($deliveryGoodsData as $k => $value) { //键名为order_goods_id,键值为对应的已发货数量 - $orderGoods = OrderGoods::findOne($k); //通过orderGoods_id找到订单商品 - if ($value < $orderGoods->goods_count) { //如果已发货数量未达到order_goods里的数量 - $orderGoods->lack_number = $orderGoods->goods_count - $value; - $data['unShipped'][] = $orderGoods; - } - } - return $data; - } - - - - /** - * @param $orderId - * @return array|mixed - * @throws NotFoundHttpException - * 查询物流接口 - */ - public static function queryLogistics($orderId) - { - $delivery = Delivery::findOne(['order_id' => $orderId]); - if (!$delivery) { - throw new NotFoundHttpException('发货信息未找到'); - } - - $cache = Yii::$app->cache; - if ($cache->exists($delivery->shipping_id)) { - return $cache->get($delivery->shipping_id); - } - - $logisticsParams = self::createLogisticsParam($delivery); //创建参数(包括签名的处理) - $url = self::LOGISTICS_URL . '?' . $logisticsParams; - $result = Json::decode(file_get_contents($url), false); - if (isset($result->showapi_res_body)) { - $cache->set($delivery->shipping_id, $result->showapi_res_body, 7200); //设置缓存2个小时 - return $result->showapi_res_body; - } else { - return []; - } - } - - /** - * @param Delivery $delivery - * @return string - * 查询物流 创建参数(包括签名的处理) - */ - private static function createLogisticsParam($delivery) - { - $params = [ - 'showapi_appid' => Yii::$app->params['logistics_config']['logistics_appid'], - 'com' => $delivery->shipping_name , //物流单位 - 'nu' => $delivery->invoice_sn, //运单号 - //添加其他参数 - ]; - - $paraStr = ""; - $signStr = ""; - ksort($params); - foreach ($params as $key => $val) { - if ($key != '' && $val != '') { - $signStr .= $key.$val; - $paraStr .= $key . '=' . urlencode($val) . '&'; - } - } - $signStr .= Yii::$app->params['logistics_config']['logistics_secret']; - - //排好序的参数加上secret,进行md5,将md5后的值作为参数,便于服务器的效验 - $sign = strtolower(md5($signStr)); - $paraStr .= 'showapi_sign=' . $sign; - return $paraStr; - } - - -} \ No newline at end of file diff --git a/backend/modules/shop/migrations/m191111_101658_create_table_area.php b/backend/modules/shop/migrations/m191111_101658_create_table_area.php deleted file mode 100755 index e2c8d42..0000000 --- a/backend/modules/shop/migrations/m191111_101658_create_table_area.php +++ /dev/null @@ -1,27 +0,0 @@ -execute($sql); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable("area"); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191111_102644_create_table_province.php b/backend/modules/shop/migrations/m191111_102644_create_table_province.php deleted file mode 100755 index 8ea4071..0000000 --- a/backend/modules/shop/migrations/m191111_102644_create_table_province.php +++ /dev/null @@ -1,27 +0,0 @@ -execute($sql); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable("province"); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191111_102730_create_table_city.php b/backend/modules/shop/migrations/m191111_102730_create_table_city.php deleted file mode 100755 index d708e6b..0000000 --- a/backend/modules/shop/migrations/m191111_102730_create_table_city.php +++ /dev/null @@ -1,27 +0,0 @@ -execute($sql); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable("city"); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191111_102925_create_table_cart.php b/backend/modules/shop/migrations/m191111_102925_create_table_cart.php deleted file mode 100755 index bea2e27..0000000 --- a/backend/modules/shop/migrations/m191111_102925_create_table_cart.php +++ /dev/null @@ -1,38 +0,0 @@ -createTable('ats_cart', [ - 'id' => $this->primaryKey(), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'goods_id'=>$this->integer(11)->notNull()->comment('商品id'), - 'goods_name'=>$this->string(120)->notNull()->comment('商品名称'), - 'goods_img'=>$this->integer(11)->defaultValue(null)->comment('商品图片'), - 'goods_price'=>$this->integer(20)->defaultValue(null)->comment('商品售价'), - 'sku_id'=>$this->integer(11)->notNull()->comment('商品sku的id'), - 'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_cart'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191111_112559_create_table_address.php b/backend/modules/shop/migrations/m191111_112559_create_table_address.php deleted file mode 100755 index ab94279..0000000 --- a/backend/modules/shop/migrations/m191111_112559_create_table_address.php +++ /dev/null @@ -1,39 +0,0 @@ -createTable('ats_address', [ - 'id' => $this->primaryKey(), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'consignee'=>$this->string(20)->notNull()->comment('收件人'), - 'phone'=>$this->string(20)->notNull()->comment('电话'), - 'province'=>$this->string(10)->defaultValue(null)->comment('省份'), - 'city'=>$this->string(10)->defaultValue(null)->comment('城市'), - 'area'=>$this->string(10)->defaultValue(null)->comment('区域'), - 'address'=>$this->text()->notNull()->comment('详细地址'), - 'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态,0-默认值 1-默认地址'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_address'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191111_113455_create_table_after_sale.php b/backend/modules/shop/migrations/m191111_113455_create_table_after_sale.php deleted file mode 100755 index 81cdd1d..0000000 --- a/backend/modules/shop/migrations/m191111_113455_create_table_after_sale.php +++ /dev/null @@ -1,45 +0,0 @@ -filefilefilecreateTable('ats_after_sale', [ - 'id' => $this->primaryKey(), - 'operator_id'=>$this->integer(11)->notNull()->comment('操作者'), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'wx_refund_id'=>$this->string(64)->defaultValue(null)->comment('微信退款单号'), - 'after_sale_sn'=>$this->string(64)->defaultValue(null)->comment('售后单号'), - 'order_goods_id'=>$this->integer(11)->defaultValue(null)->comment('订单商品id'), - 'count'=>$this->integer(11)->defaultValue(null)->comment('退换货的商品数量'), - 'amount'=>$this->integer(20)->notNull()->comment('退货时实际退的金额'), - 'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), - 'reason'=>$this->smallInteger(2)->defaultValue(0)->comment('退换货理由'), - 'description'=>$this->text()->comment('描述'), - 'take_shipping_sn'=>$this->string(50)->defaultValue(null)->comment('用户发货物流单号'), - 'send_shipping_sn'=>$this->string(50)->defaultValue(null)->comment('换货商家发货的物流单号'), - 'remarks'=>$this->text()->comment('店家备注'), - 'applyed_at'=>$this->integer(11)->defaultValue(null)->comment('申请时间'), - 'dealed_at'=>$this->integer(11)->defaultValue(null)->comment('处理时间'), - 'finished_at'=>$this->integer(11)->defaultValue(null)->comment('完成时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_after_sale'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_005106_create_table_search_history.php b/backend/modules/shop/migrations/m191112_005106_create_table_search_history.php deleted file mode 100755 index 54736ec..0000000 --- a/backend/modules/shop/migrations/m191112_005106_create_table_search_history.php +++ /dev/null @@ -1,36 +0,0 @@ -createTable('ats_search_history', [ - 'id' => $this->primaryKey(), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'keyword'=>$this->string(255)->defaultValue(null)->comment('关键字'), - 'count'=>$this->integer(10)->defaultValue(null)->comment('次数'), - 'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态'), - 'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_search_history'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_005545_create_table_collection.php b/backend/modules/shop/migrations/m191112_005545_create_table_collection.php deleted file mode 100755 index e4fb1e7..0000000 --- a/backend/modules/shop/migrations/m191112_005545_create_table_collection.php +++ /dev/null @@ -1,33 +0,0 @@ -createTable('ats_collection', [ - 'id' => $this->primaryKey(), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'goods_id'=>$this->integer(11)->notNull()->comment('商品id'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_collection'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_005702_create_table_comment.php b/backend/modules/shop/migrations/m191112_005702_create_table_comment.php deleted file mode 100755 index 1fa7e2b..0000000 --- a/backend/modules/shop/migrations/m191112_005702_create_table_comment.php +++ /dev/null @@ -1,36 +0,0 @@ -createTable('ats_comment', [ - 'id' => $this->primaryKey(), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'order_goods_id'=>$this->integer(11)->defaultValue(null)->comment('订单详情商品id'), - 'star'=>$this->integer(11)->defaultValue(null)->comment('星级'), - 'content'=>$this->text()->comment('评论内容'), - 'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态:1为显示,0为不显示'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_comment'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_010421_create_table_order.php b/backend/modules/shop/migrations/m191112_010421_create_table_order.php deleted file mode 100755 index 6bcfb06..0000000 --- a/backend/modules/shop/migrations/m191112_010421_create_table_order.php +++ /dev/null @@ -1,54 +0,0 @@ -createTable('ats_order', [ - 'id' => $this->primaryKey(), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'order_sn'=>$this->string(64)->defaultValue(null)->comment('订单号'), - 'invoice_id'=>$this->string(64)->defaultValue(null)->comment('发票单号'), - 'status'=>$this->tinyInteger(2)->defaultValue(0)->comment('状态'), - 'type'=>$this->tinyInteger(2)->defaultValue(0)->comment('类型'), - 'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), - 'goods_amount'=>$this->integer(20)->defaultValue(null)->comment('商品金额'), - 'shipping_amount'=>$this->integer(20)->defaultValue(null)->comment('物流金额'), - 'shipping_type'=>$this->integer(11)->defaultValue(null)->comment('物流类型'), - 'consignee'=>$this->string(20)->defaultValue(null)->comment('收件人'), - 'phone'=>$this->string(20)->defaultValue(null)->comment('手机号码'), - 'province'=>$this->string(10)->defaultValue(null)->comment('省份'), - 'city'=>$this->string(10)->defaultValue(null)->comment('城市'), - 'area'=>$this->string(10)->defaultValue(null)->comment('区域'), - 'taking_site'=>$this->integer(11)->defaultValue(null)->comment('自提点'), - 'pay_type'=>$this->integer(11)->defaultValue(null)->comment('支付方式'), - 'pay_at'=>$this->integer(11)->defaultValue(null)->comment('支付时间'), - 'payment_sn'=>$this->string(120)->defaultValue(null)->comment('付款单号'), - 'payment_amount'=>$this->integer(20)->defaultValue(null)->comment('支付金额'), - 'receivables'=>$this->integer(20)->defaultValue(null)->comment('应收款'), - 'remarks'=>$this->string(255)->defaultValue(null)->comment('备注'), - 'discount_amount'=>$this->integer(20)->defaultValue(null)->comment('折扣金额'), - 'discount_decription'=>$this->text()->comment('折扣说明'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_order'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_011517_create_table_order_goods.php b/backend/modules/shop/migrations/m191112_011517_create_table_order_goods.php deleted file mode 100755 index 3340d25..0000000 --- a/backend/modules/shop/migrations/m191112_011517_create_table_order_goods.php +++ /dev/null @@ -1,39 +0,0 @@ -createTable('ats_order_goods', [ - 'id' => $this->primaryKey(), - 'order_id'=>$this->integer(11)->notNull()->comment('订单id'), - 'goods_id'=>$this->integer(11)->notNull()->comment('商品id'), - 'goods_img'=>$this->integer(11)->defaultValue(null)->comment('商品图片'), - 'goods_name'=>$this->string(120)->defaultValue(null)->comment('商品名称'), - 'goods_count'=>$this->integer(11)->defaultValue(null)->comment('商品数量'), - 'sku_value'=>$this->string(120)->defaultValue(null)->comment('商品sku'), - 'price'=>$this->integer(20)->defaultValue(null)->comment('销售价'), - 'market_price'=>$this->integer(20)->defaultValue(null)->comment('市场价'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_order_goods'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_012449_create_table_taking_site.php b/backend/modules/shop/migrations/m191112_012449_create_table_taking_site.php deleted file mode 100755 index a03c9a6..0000000 --- a/backend/modules/shop/migrations/m191112_012449_create_table_taking_site.php +++ /dev/null @@ -1,37 +0,0 @@ -createTable('ats_taking_site', [ - 'id' => $this->primaryKey(), - 'name'=>$this->string(120)->notNull()->comment('名称'), - 'province'=>$this->string(10)->defaultValue(null)->comment('省份'), - 'city'=>$this->string(10)->defaultValue(null)->comment('城市'), - 'area'=>$this->string(10)->defaultValue(null)->comment('区域'), - 'address'=>$this->text()->comment('地址'), - 'is_default'=>$this->tinyInteger(1)->defaultValue(0)->comment('是否为默认,1为默认'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_taking_site'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_014508_create_table_express_template.php b/backend/modules/shop/migrations/m191112_014508_create_table_express_template.php deleted file mode 100755 index 787a65e..0000000 --- a/backend/modules/shop/migrations/m191112_014508_create_table_express_template.php +++ /dev/null @@ -1,40 +0,0 @@ -createTable('ats_express_template', [ - 'id' => $this->primaryKey(), - 'name'=>$this->string(255)->notNull()->comment('名称'), - 'province'=>$this->text()->comment('省份'), - 'city'=>$this->text()->comment('城市'), - 'area'=>$this->text()->comment('区域'), - 'calculation'=>$this->tinyInteger(2)->defaultValue(0)->comment('计算方式'), - 'basic_price'=>$this->integer(20)->defaultValue(null)->comment('基本运费'), - 'basic_amount'=>$this->integer(20)->defaultValue(null)->comment('基本数量'), - 'extra_price'=>$this->integer(20)->defaultValue(null)->comment('续重运费'), - 'extra_amount'=>$this->integer(20)->defaultValue(null)->comment('续重数量'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_express_template'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_015939_create_table_delivery.php b/backend/modules/shop/migrations/m191112_015939_create_table_delivery.php deleted file mode 100755 index c90f0a1..0000000 --- a/backend/modules/shop/migrations/m191112_015939_create_table_delivery.php +++ /dev/null @@ -1,38 +0,0 @@ -createTable('ats_delivery', [ - 'id' => $this->primaryKey(), - 'order_id'=>$this->integer(11)->defaultValue(null)->comment('订单id'), - 'shipping_name'=>$this->string(50)->defaultValue(null)->comment('货流名称'), - 'shipping_id'=>$this->string(10)->notNull()->comment('运货单位'), - 'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), - 'goods'=>$this->text()->comment('商品'), - 'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态'), - 'decription'=>$this->text()->comment('描述'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_delivery'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_020830_create_table_payment_log.php b/backend/modules/shop/migrations/m191112_020830_create_table_payment_log.php deleted file mode 100755 index c705800..0000000 --- a/backend/modules/shop/migrations/m191112_020830_create_table_payment_log.php +++ /dev/null @@ -1,39 +0,0 @@ -createTable('ats_payment_log', [ - 'id' => $this->primaryKey(), - 'order_id'=>$this->integer(11)->defaultValue(null)->comment('订单id'), - 'wx_refund_id'=>$this->string(64)->defaultValue(null)->comment('微信退款单号'), - 'mch_id'=>$this->string(64)->defaultValue(null)->comment('商户号'), - 'order_amount'=>$this->integer(20)->defaultValue(null)->comment('订单金额'), - 'payment_amount'=>$this->integer(20)->defaultValue(null)->comment('支付金额'), - 'type'=>$this->tinyInteger(1)->defaultValue(null)->comment('类型'), - 'status'=>$this->tinyInteger(1)->defaultValue(null)->comment('状态'), - 'refund_account'=>$this->string(64)->defaultValue(null)->comment('退款账户'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_payment_log'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191112_021528_create_table_refund_log.php b/backend/modules/shop/migrations/m191112_021528_create_table_refund_log.php deleted file mode 100755 index 8a2d149..0000000 --- a/backend/modules/shop/migrations/m191112_021528_create_table_refund_log.php +++ /dev/null @@ -1,42 +0,0 @@ -createTable('ats_refund_log', [ - 'id' => $this->primaryKey(), - 'order_id'=>$this->integer(11)->defaultValue(null)->comment('订单id'), - 'wx_refund_id'=>$this->string(64)->defaultValue(null)->comment('微信退款单号'), - 'reason'=>$this->smallInteger(2)->defaultValue(null)->comment('理由'), - 'order_amount'=>$this->integer(20)->defaultValue(null)->comment('订单金额'), - 'refund_amount'=>$this->integer(20)->defaultValue(null)->comment('退款金额'), - 'refunded_amount'=>$this->integer(20)->defaultValue(null)->comment('已退款金额'), - 'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), - 'status'=>$this->tinyInteger(1)->defaultValue(0)->comment('状态'), - 'refund_account'=>$this->string(64)->defaultValue(null)->comment('退款账户'), - 'operator_id'=>$this->integer(11)->defaultValue(null)->comment('操作者'), - 'applyed_at'=>$this->integer(11)->defaultValue(null)->comment('申请时间'), - 'confirmed_at'=>$this->integer(11)->defaultValue(null)->comment('确认时间'), - 'finished_at'=>$this->integer(11)->defaultValue(null)->comment('完成时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_refund_log'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191130_071623_add_column_weight_in_table_ats_order_goods.php b/backend/modules/shop/migrations/m191130_071623_add_column_weight_in_table_ats_order_goods.php deleted file mode 100755 index da1c6cc..0000000 --- a/backend/modules/shop/migrations/m191130_071623_add_column_weight_in_table_ats_order_goods.php +++ /dev/null @@ -1,20 +0,0 @@ -addColumn('ats_order_goods', 'weight', $this->integer(11)->defaultValue(0)->unsigned()->comment('重量')); - } - - public function down() - { - $this->dropColumn('ats_order_goods', 'weight'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191203_022720_add_column_sku_id_in_table_ats_order_goods.php b/backend/modules/shop/migrations/m191203_022720_add_column_sku_id_in_table_ats_order_goods.php deleted file mode 100755 index 297b93a..0000000 --- a/backend/modules/shop/migrations/m191203_022720_add_column_sku_id_in_table_ats_order_goods.php +++ /dev/null @@ -1,20 +0,0 @@ -addColumn('ats_order_goods', 'sku_id', $this->integer(11)->defaultValue(null)->comment('sku_id')); - } - - public function down() - { - $this->dropColumn('ats_order_goods', 'sku_id'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191203_030210_update_columns_province_city_area_in_table_ats_taking_site.php b/backend/modules/shop/migrations/m191203_030210_update_columns_province_city_area_in_table_ats_taking_site.php deleted file mode 100755 index 5fae9fa..0000000 --- a/backend/modules/shop/migrations/m191203_030210_update_columns_province_city_area_in_table_ats_taking_site.php +++ /dev/null @@ -1,30 +0,0 @@ -dropColumn('ats_taking_site', 'province'); - $this->addColumn('ats_taking_site', 'province', $this->string(64)->defaultValue('')->notNull()->comment('省份')); - $this->dropColumn('ats_taking_site', 'city'); - $this->addColumn('ats_taking_site', 'city', $this->string(64)->defaultValue('')->notNull()->comment('城市')); - $this->dropColumn('ats_taking_site', 'area'); - $this->addColumn('ats_taking_site', 'area', $this->string(64)->defaultValue('')->notNull()->comment('区域')); - } - - public function down() - { - $this->dropColumn('ats_taking_site', 'province'); - $this->addColumn('ats_taking_site', 'province', $this->string(10)->defaultValue(null)->comment('省份')); - $this->dropColumn('ats_taking_site', 'city'); - $this->addColumn('ats_taking_site', 'city', $this->string(10)->defaultValue(null)->comment('城市')); - $this->dropColumn('ats_taking_site', 'area'); - $this->addColumn('ats_taking_site', 'area', $this->string(10)->defaultValue(null)->comment('区域')); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191203_030911_update_column_address_in_table_ats_taking_site.php b/backend/modules/shop/migrations/m191203_030911_update_column_address_in_table_ats_taking_site.php deleted file mode 100755 index 5574799..0000000 --- a/backend/modules/shop/migrations/m191203_030911_update_column_address_in_table_ats_taking_site.php +++ /dev/null @@ -1,22 +0,0 @@ -dropColumn('ats_taking_site', 'address'); - $this->addColumn('ats_taking_site', 'address', $this->text()->defaultValue('')->notNull()->comment('地址')); - } - - public function down() - { - $this->dropColumn('ats_taking_site', 'address'); - $this->addColumn('ats_taking_site', 'address', $this->text()->comment('地址')); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191203_031446_drop_column_is_default_in_table_ats_taking_site.php b/backend/modules/shop/migrations/m191203_031446_drop_column_is_default_in_table_ats_taking_site.php deleted file mode 100755 index 7c43851..0000000 --- a/backend/modules/shop/migrations/m191203_031446_drop_column_is_default_in_table_ats_taking_site.php +++ /dev/null @@ -1,20 +0,0 @@ -dropColumn('ats_taking_site', 'is_default'); - } - - public function down() - { - $this->addColumn('ats_taking_site', 'is_default', $this->tinyInteger(1)->defaultValue(0)->comment('是否为默认,1为默认')); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191203_034004_add_column_address_in_table_ats_order.php b/backend/modules/shop/migrations/m191203_034004_add_column_address_in_table_ats_order.php deleted file mode 100755 index 0e99b7b..0000000 --- a/backend/modules/shop/migrations/m191203_034004_add_column_address_in_table_ats_order.php +++ /dev/null @@ -1,20 +0,0 @@ -addColumn('ats_order', 'address', $this->text()->defaultValue('')->notNull()->comment('详细地址')); - } - - public function down() - { - $this->dropColumn('ats_order', 'address'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191203_112307_add_data_to_table_city_and_area.php b/backend/modules/shop/migrations/m191203_112307_add_data_to_table_city_and_area.php deleted file mode 100755 index 5a5f47b..0000000 --- a/backend/modules/shop/migrations/m191203_112307_add_data_to_table_city_and_area.php +++ /dev/null @@ -1,20 +0,0 @@ -execute($sql); - } - - public function down() - { - return true; - } -} diff --git a/backend/modules/shop/migrations/m191203_114421_update_column_discount_description_in_table_order.php b/backend/modules/shop/migrations/m191203_114421_update_column_discount_description_in_table_order.php deleted file mode 100755 index 9ff01eb..0000000 --- a/backend/modules/shop/migrations/m191203_114421_update_column_discount_description_in_table_order.php +++ /dev/null @@ -1,20 +0,0 @@ -dropColumn('ats_order', 'discount_decription'); - $this->addColumn('ats_order', 'discount_description', $this->text()->comment('折扣说明')); - } - - public function down() - { - return true; - } -} diff --git a/backend/modules/shop/migrations/m191204_004849_update_column_calculation_in_table_ats_express_template.php b/backend/modules/shop/migrations/m191204_004849_update_column_calculation_in_table_ats_express_template.php deleted file mode 100755 index 1c93121..0000000 --- a/backend/modules/shop/migrations/m191204_004849_update_column_calculation_in_table_ats_express_template.php +++ /dev/null @@ -1,22 +0,0 @@ -dropColumn('ats_express_template', 'calculation'); - $this->addColumn('ats_express_template', 'calculation', $this->tinyInteger(2)->defaultValue(0)->notNull()->comment('计算方式')); - } - - public function down() - { - $this->dropColumn('ats_express_template', 'calculation'); - $this->addColumn('ats_express_template', 'calculation', $this->tinyInteger(2)->defaultValue(0)->comment('计算方式')); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191204_012240_update_columns_basic_price_basic_amount_in_table_ats_express_template.php b/backend/modules/shop/migrations/m191204_012240_update_columns_basic_price_basic_amount_in_table_ats_express_template.php deleted file mode 100755 index 8abec78..0000000 --- a/backend/modules/shop/migrations/m191204_012240_update_columns_basic_price_basic_amount_in_table_ats_express_template.php +++ /dev/null @@ -1,26 +0,0 @@ -dropColumn('ats_express_template', 'basic_price'); - $this->dropColumn('ats_express_template', 'basic_amount'); - $this->addColumn('ats_express_template', 'basic_price', $this->integer(20)->unsigned()->defaultValue(0)->notNull()->comment('基本运费')); - $this->addColumn('ats_express_template', 'basic_amount', $this->integer(20)->unsigned()->defaultValue(1)->notNull()->comment('基本数量')); - } - - public function down() - { - $this->dropColumn('ats_express_template', 'basic_price'); - $this->dropColumn('ats_express_template', 'basic_amount'); - $this->addColumn('ats_express_template', 'basic_price', $this->integer(20)->defaultValue(0)->comment('基本运费')); - $this->addColumn('ats_express_template', 'basic_amount', $this->integer(20)->defaultValue(0)->comment('基本数量')); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191205_062533_update_columns_basic_amount_extra_amount_calculation_in_table_ats_express_template.php b/backend/modules/shop/migrations/m191205_062533_update_columns_basic_amount_extra_amount_calculation_in_table_ats_express_template.php deleted file mode 100755 index 6d8a75e..0000000 --- a/backend/modules/shop/migrations/m191205_062533_update_columns_basic_amount_extra_amount_calculation_in_table_ats_express_template.php +++ /dev/null @@ -1,30 +0,0 @@ -dropColumn('ats_express_template', 'basic_amount'); - $this->dropColumn('ats_express_template', 'extra_amount'); - $this->dropColumn('ats_express_template', 'calculation'); - $this->addColumn('ats_express_template', 'basic_count', $this->integer(20)->defaultValue(null)->comment('基本数量')); - $this->addColumn('ats_express_template', 'extra_count', $this->integer(20)->defaultValue(null)->comment('续重数量')); - $this->addColumn('ats_express_template', 'calculation_type', $this->tinyInteger(2)->defaultValue(0)->comment('计算方式')); - } - - public function down() - { - $this->dropColumn('ats_express_template', 'basic_amount'); - $this->dropColumn('ats_express_template', 'extra_amount'); - $this->dropColumn('ats_express_template', 'calculation'); - $this->addColumn('ats_express_template', 'basic_amount', $this->integer(20)->defaultValue(null)->comment('基本数量')); - $this->addColumn('ats_express_template', 'extra_amount', $this->integer(20)->defaultValue(null)->comment('续重数量')); - $this->addColumn('ats_express_template', 'calculation', $this->tinyInteger(2)->defaultValue(0)->comment('计算方式')); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191205_092426_drop_columns_province_city_area_basic_price_basic_count_extra_count_extra_price_in_table_ats_express_template.php b/backend/modules/shop/migrations/m191205_092426_drop_columns_province_city_area_basic_price_basic_count_extra_count_extra_price_in_table_ats_express_template.php deleted file mode 100644 index a0859df..0000000 --- a/backend/modules/shop/migrations/m191205_092426_drop_columns_province_city_area_basic_price_basic_count_extra_count_extra_price_in_table_ats_express_template.php +++ /dev/null @@ -1,32 +0,0 @@ -dropColumn('ats_express_template', 'province'); - $this->dropColumn('ats_express_template', 'city'); - $this->dropColumn('ats_express_template', 'area'); - $this->dropColumn('ats_express_template', 'extra_price'); - $this->dropColumn('ats_express_template', 'basic_price'); - $this->dropColumn('ats_express_template', 'basic_count'); - $this->dropColumn('ats_express_template', 'extra_count'); - } - - public function down() - { - $this->addColumn('ats_express_template', 'province', $this->text()->comment('省份')); - $this->addColumn('ats_express_template', 'city', $this->text()->comment('城市')); - $this->addColumn('ats_express_template', 'area', $this->text()->comment('区域')); - $this->addColumn('ats_express_template', 'extra_price', $this->integer(20)->defaultValue(null)->comment('续重运费')); - $this->addColumn('ats_express_template', 'basic_price', $this->integer(20)->defaultValue(null)->comment('基本运费')); - $this->addColumn('ats_express_template', 'basic_count', $this->integer(20)->defaultValue(null)->comment('基本数量')); - $this->addColumn('ats_express_template', 'extra_count', $this->integer(20)->defaultValue(null)->comment('续重数量')); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191205_092942_create_table_ats_express_area.php b/backend/modules/shop/migrations/m191205_092942_create_table_ats_express_area.php deleted file mode 100644 index bd50a85..0000000 --- a/backend/modules/shop/migrations/m191205_092942_create_table_ats_express_area.php +++ /dev/null @@ -1,36 +0,0 @@ -createTable('ats_express_area', [ - 'id' => $this->primaryKey(), - 'province' => $this->text()->comment('省份'), - 'city' => $this->text()->comment('城市'), - 'area' => $this->text()->comment('区域'), - 'express_template' => $this->integer(11)->defaultValue(null)->comment('运费模板id'), - 'extra_price' => $this->integer(20)->defaultValue(null)->comment('续重运费'), - 'basic_price' => $this->integer(20)->defaultValue(null)->comment('基本运费'), - 'basic_count' => $this->integer(20)->defaultValue(null)->comment('基本数量'), - 'extra_count' => $this->integer(20)->defaultValue(null)->comment('续重数量'), - 'updated_at'=>$this->integer(11)->defaultValue(null)->comment('更新时间'), - 'created_at'=>$this->integer(11)->defaultValue(null)->comment('创建时间'), - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_express_area'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191206_024047_create_table_delivery_goods.php b/backend/modules/shop/migrations/m191206_024047_create_table_delivery_goods.php deleted file mode 100644 index 8fbae76..0000000 --- a/backend/modules/shop/migrations/m191206_024047_create_table_delivery_goods.php +++ /dev/null @@ -1,37 +0,0 @@ -createTable('ats_delivery_goods', [ - 'id' => $this->primaryKey(), - 'delivery_id' => $this->integer()->notNull()->defaultValue(0)->comment('物流id'), - 'order_goods_id' => $this->integer()->notNull()->defaultValue(0)->comment('订单商品id'), - 'goods_id' => $this->integer()->notNull()->defaultValue(0)->comment('商品id'), - 'goods_name' => $this->string()->notNull()->defaultValue('')->comment('商品名称'), - 'goods_count' => $this->integer()->notNull()->defaultValue(0)->comment('商品数量'), - 'created_at' => $this->integer()->notNull()->defaultValue(0)->comment('创建时间'), - 'updated_at' => $this->integer()->notNull()->defaultValue(0)->comment('更新时间'), - ], $tableOptions); - } - - /** - * {@inheritdoc} - */ - public function safeDown() - { - $this->dropTable('ats_delivery_goods'); - return true; - } - -} diff --git a/backend/modules/shop/migrations/m191206_092733_add_column_about_goods_to_table_collection.php b/backend/modules/shop/migrations/m191206_092733_add_column_about_goods_to_table_collection.php deleted file mode 100755 index 584e624..0000000 --- a/backend/modules/shop/migrations/m191206_092733_add_column_about_goods_to_table_collection.php +++ /dev/null @@ -1,24 +0,0 @@ -addColumn('ats_collection', 'goods_name', $this->string(120)->notNull()->defaultValue('')->comment('商品名称')); - $this->addColumn('ats_collection', 'goods_img', $this->integer(11)->comment('商品图片')); - $this->addColumn('ats_collection', 'goods_price', $this->integer(20)->notNull()->defaultValue(0)->comment('商品价格')); - } - - public function down() - { - $this->dropColumn('ats_collection', 'goods_name'); - $this->dropColumn('ats_collection', 'goods_img'); - $this->dropColumn('ats_collection', 'goods_price'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191206_162733_add_column_about_user_to_table_comment.php b/backend/modules/shop/migrations/m191206_162733_add_column_about_user_to_table_comment.php deleted file mode 100755 index 2435aca..0000000 --- a/backend/modules/shop/migrations/m191206_162733_add_column_about_user_to_table_comment.php +++ /dev/null @@ -1,22 +0,0 @@ -addColumn('ats_comment', 'nickname', $this->string(120)->notNull()->defaultValue('')->comment('昵称')); - $this->addColumn('ats_comment', 'avatar', $this->integer(11)->comment('头像')); - } - - public function down() - { - $this->dropColumn('ats_comment', 'nickname'); - $this->dropColumn('ats_comment', 'avatar'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191209_080245_update_table_after_sale.php b/backend/modules/shop/migrations/m191209_080245_update_table_after_sale.php deleted file mode 100644 index ea81c27..0000000 --- a/backend/modules/shop/migrations/m191209_080245_update_table_after_sale.php +++ /dev/null @@ -1,68 +0,0 @@ -dropTable('ats_after_sale'); - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="售后表"'; - $this->createTable('ats_after_sale', [ - 'id' => $this->primaryKey(), - 'wx_refund_id'=>$this->string(64)->defaultValue('')->notNull()->comment('微信退款单号'), - 'after_sale_sn'=>$this->string(64)->defaultValue('')->notNull()->comment('售后单号'), - 'user_id'=>$this->integer(11)->defaultValue('0')->notNull()->comment('用户id'), - 'order_goods_id'=>$this->integer(11)->defaultValue('0')->notNull()->comment('订单商品id'), - 'amount'=>$this->integer(20)->defaultValue("0")->notNull()->comment('退货时实际退的金额'), - 'count'=>$this->integer(11)->defaultValue("0")->notNull()->comment('退换货的商品数量'), - 'apply_at'=>$this->integer(11)->defaultValue(null)->comment('申请时间'), - 'dealt_at'=>$this->integer(11)->defaultValue(null)->comment('处理时间'), - 'finish_at'=>$this->integer(11)->defaultValue(null)->comment('完成时间'), - 'operator_id'=>$this->integer(11)->defaultValue("0")->notNull()->comment('操作者'), - 'refund_type'=>$this->tinyInteger(1)->defaultValue("1")->comment('退款类型:1:全额退款;2:部分退款'), - 'description'=>$this->text()->comment('描述'), - 'image' => $this->text()->comment('图片'), - 'status' => $this->tinyInteger(2)->defaultValue('0')->notNull()->comment('处理状态:0:未处理;1:已同意,待买家确认;2:用户已确认;3:已拒绝;4:退款成功;5:已取消;'), - 'reason'=>$this->smallInteger(2)->defaultValue("0")->comment('退换货理由'), - 'remarks'=>$this->text()->comment('店家备注'), - 'take_shipping_sn'=>$this->string(50)->defaultValue(null)->comment('用户发货物流单号'), - 'refund_mode' => $this->tinyInteger(2)->defaultValue('1')->notNull()->comment('退款方式:1:仅退款;2:退货退款;') - ],$tableOptions); - } - - /** - * {@inheritdoc} - */ - public function down() - { - $this->dropTable('ats_after_sale'); - $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB COMMENT="售后表"'; - $this->createTable('ats_after_sale', [ - 'id' => $this->primaryKey(), - 'operator_id'=>$this->integer(11)->notNull()->comment('操作者'), - 'user_id'=>$this->integer(11)->notNull()->comment('用户id'), - 'wx_refund_id'=>$this->string(64)->defaultValue(null)->comment('微信退款单号'), - 'after_sale_sn'=>$this->string(64)->defaultValue(null)->comment('售后单号'), - 'order_goods_id'=>$this->integer(11)->defaultValue(null)->comment('订单商品id'), - 'count'=>$this->integer(11)->defaultValue(null)->comment('退换货的商品数量'), - 'amount'=>$this->integer(20)->notNull()->comment('退货时实际退的金额'), - 'type'=>$this->tinyInteger(1)->defaultValue(0)->comment('类型'), - 'reason'=>$this->smallInteger(2)->defaultValue(0)->comment('退换货理由'), - 'description'=>$this->text()->comment('描述'), - 'take_shipping_sn'=>$this->string(50)->defaultValue(null)->comment('用户发货物流单号'), - 'send_shipping_sn'=>$this->string(50)->defaultValue(null)->comment('换货商家发货的物流单号'), - 'remarks'=>$this->text()->comment('店家备注'), - 'applyed_at'=>$this->integer(11)->defaultValue(null)->comment('申请时间'), - 'dealed_at'=>$this->integer(11)->defaultValue(null)->comment('处理时间'), - 'finished_at'=>$this->integer(11)->defaultValue(null)->comment('完成时间'), - ],$tableOptions); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191214_033752_add_column_notify_url_in_payment_log.php b/backend/modules/shop/migrations/m191214_033752_add_column_notify_url_in_payment_log.php deleted file mode 100644 index e9829bf..0000000 --- a/backend/modules/shop/migrations/m191214_033752_add_column_notify_url_in_payment_log.php +++ /dev/null @@ -1,41 +0,0 @@ -addColumn('ats_payment_log', 'notify_url', $this->string()->after('payment_amount')->comment('支付回调路径')); - } - - /** - * {@inheritdoc} - */ - public function safeDown() - { - $this->dropColumn('ats_payment_log', 'notify_url'); - return true; - } - - /* - // Use up()/down() to run migration code without a transaction. - public function up() - { - - } - - public function down() - { - echo "m191214_033752_add_column_notify_url_in_payment_log cannot be reverted.\n"; - - return false; - } - */ -} diff --git a/backend/modules/shop/migrations/m191217_013625_add_column_sku_value_in_table_ats_cart.php b/backend/modules/shop/migrations/m191217_013625_add_column_sku_value_in_table_ats_cart.php deleted file mode 100644 index 5a88fff..0000000 --- a/backend/modules/shop/migrations/m191217_013625_add_column_sku_value_in_table_ats_cart.php +++ /dev/null @@ -1,20 +0,0 @@ -addColumn('ats_cart', 'sku_value', $this->string(120)->defaultValue('')->comment('商品sku')); - } - - public function down() - { - $this->dropColumn('ats_cart', 'sku_value'); - return true; - } -} diff --git a/backend/modules/shop/migrations/m191217_021455_update_column_star_in_table_ats_comment.php b/backend/modules/shop/migrations/m191217_021455_update_column_star_in_table_ats_comment.php deleted file mode 100644 index 921cc04..0000000 --- a/backend/modules/shop/migrations/m191217_021455_update_column_star_in_table_ats_comment.php +++ /dev/null @@ -1,20 +0,0 @@ -dropColumn('ats_comment', 'star'); - $this->addColumn('ats_comment', 'star', $this->integer(11)->notNull()->defaultValue("0")->comment('星级')); - } - - public function down() - { - return true; - } -} diff --git a/backend/modules/shop/migrations/m191217_033724_add_column_payment_at_wx_payment_id_in_payment_log.php b/backend/modules/shop/migrations/m191217_033724_add_column_payment_at_wx_payment_id_in_payment_log.php deleted file mode 100644 index 62faaa9..0000000 --- a/backend/modules/shop/migrations/m191217_033724_add_column_payment_at_wx_payment_id_in_payment_log.php +++ /dev/null @@ -1,29 +0,0 @@ -addColumn('ats_payment_log', 'wx_payment_id', $this->string(64)->after('order_id')->comment('微信支付交易单号')); - $this->addColumn('ats_payment_log', 'payment_at', $this->integer()->comment('支付时间')); - } - - /** - * {@inheritdoc} - */ - public function safeDown() - { - $this->dropColumn('ats_payment_log', 'wx_payment_id'); - $this->dropColumn('ats_payment_log', 'payment_at'); - return true; - } - -} diff --git a/backend/modules/shop/migrations/m191217_034337_alter_column_order_id_in_payment_log_refund_log.php b/backend/modules/shop/migrations/m191217_034337_alter_column_order_id_in_payment_log_refund_log.php deleted file mode 100644 index 0186b45..0000000 --- a/backend/modules/shop/migrations/m191217_034337_alter_column_order_id_in_payment_log_refund_log.php +++ /dev/null @@ -1,28 +0,0 @@ -alterColumn('ats_payment_log', 'order_id', $this->string()->comment('订单号')); - $this->alterColumn('ats_refund_log', 'order_id', $this->string()->comment('订单号')); - } - - /** - * {@inheritdoc} - */ - public function safeDown() - { - return true; - } - - -} diff --git a/backend/modules/shop/migrations/m191218_122251_add_column_invoice_sn_in_delivery.php b/backend/modules/shop/migrations/m191218_122251_add_column_invoice_sn_in_delivery.php deleted file mode 100644 index e9f75cc..0000000 --- a/backend/modules/shop/migrations/m191218_122251_add_column_invoice_sn_in_delivery.php +++ /dev/null @@ -1,41 +0,0 @@ -addColumn('ats_delivery', 'invoice_sn', $this->string()->after('shipping_id')->comment('运单号')); - } - - /** - * {@inheritdoc} - */ - public function safeDown() - { - $this->dropColumn('ats_delivery', 'invoice_sn'); - return true; - } - - /* - // Use up()/down() to run migration code without a transaction. - public function up() - { - - } - - public function down() - { - echo "m191218_122251_add_column_invoice_sn_in_delivery cannot be reverted.\n"; - - return false; - } - */ -} diff --git a/backend/modules/shop/migrations/schema-mysql.sql b/backend/modules/shop/migrations/schema-mysql.sql deleted file mode 100755 index 42ff6c3..0000000 --- a/backend/modules/shop/migrations/schema-mysql.sql +++ /dev/null @@ -1,57 +0,0 @@ -/** - * Database schema required by \yii\rbac\DbManager. - * - * @author Qiang Xue - * @author Alexander Kochetov - * @link http://www.yiiframework.com/ - * @copyright 2008 Yii Software LLC - * @license http://www.yiiframework.com/license/ - * @since 2.0 - */ - -drop table if exists `auth_assignment`; -drop table if exists `auth_item_child`; -drop table if exists `auth_item`; -drop table if exists `auth_rule`; - -create table `auth_rule` -( - `name` varchar(64) not null, - `data` blob, - `created_at` integer, - `updated_at` integer, - primary key (`name`) -) engine InnoDB; - -create table `auth_item` -( - `name` varchar(64) not null, - `type` smallint not null, - `description` text, - `rule_name` varchar(64), - `data` blob, - `created_at` integer, - `updated_at` integer, - primary key (`name`), - foreign key (`rule_name`) references `auth_rule` (`name`) on delete set null on update cascade, - key `type` (`type`) -) engine InnoDB; - -create table `auth_item_child` -( - `parent` varchar(64) not null, - `child` varchar(64) not null, - primary key (`parent`, `child`), - foreign key (`parent`) references `auth_item` (`name`) on delete cascade on update cascade, - foreign key (`child`) references `auth_item` (`name`) on delete cascade on update cascade -) engine InnoDB; - -create table `auth_assignment` -( - `item_name` varchar(64) not null, - `user_id` varchar(64) not null, - `created_at` integer, - primary key (`item_name`, `user_id`), - foreign key (`item_name`) references `auth_item` (`name`) on delete cascade on update cascade, - key `auth_assignment_user_id_idx` (`user_id`) -) engine InnoDB; diff --git a/backend/modules/shop/migrations/sql/add_category.sql b/backend/modules/shop/migrations/sql/add_category.sql deleted file mode 100755 index e801049..0000000 --- a/backend/modules/shop/migrations/sql/add_category.sql +++ /dev/null @@ -1,11 +0,0 @@ -DROP TABLE IF EXISTS `category`; -CREATE TABLE `category` ( - `id` int(11) AUTO_INCREMENT PRIMARY KEY, - `cat_name` varchar(64) NOT NULL, - `icon` varchar(64) DEFAULT NULL, - `icon_type` tinyint(1) NOT NULL DEFAULT 1, - `description` text NOT NULL DEFAULT '', - `sort_order` smallint(3) NOT NULL DEFAULT 100, - `created_at` int(11) NOT NULL DEFAULT 0, - `updated_at` int(11) NOT NULL DEFAULT 0 -)ENGINE=INNODB DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; diff --git a/backend/modules/shop/migrations/sql/add_data.sql b/backend/modules/shop/migrations/sql/add_data.sql deleted file mode 100755 index c67dd07..0000000 --- a/backend/modules/shop/migrations/sql/add_data.sql +++ /dev/null @@ -1,8 +0,0 @@ - -INSERT INTO `city` VALUES ('348', '710000', '台湾', '710000'); -INSERT INTO `city` VALUES ('349', '810000', '香港特别行政区', '810000'); -INSERT INTO `city` VALUES ('350', '820000', '澳门特别行政区', '820000'); -INSERT INTO `area` VALUES ('3193', '台湾', '710000', '710000'); -INSERT INTO `area` VALUES ('3194', '香港特别行政区', '810000', '810000'); -INSERT INTO `area` VALUES ('3195', '澳门特别行政区', '820000', '820000'); - diff --git a/backend/modules/shop/migrations/sql/area.sql b/backend/modules/shop/migrations/sql/area.sql deleted file mode 100755 index e1fa090..0000000 --- a/backend/modules/shop/migrations/sql/area.sql +++ /dev/null @@ -1,3220 +0,0 @@ -/* -Navicat MySQL Data Transfer - -Source Server : phpstudy -Source Server Version : 50553 -Source Host : localhost:3306 -Source Database : kcshop - -Target Server Type : MYSQL -Target Server Version : 50553 -File Encoding : 65001 - -Date: 2018-05-24 09:33:08 -*/ - -SET FOREIGN_KEY_CHECKS=0; - --- ---------------------------- --- Table structure for area --- ---------------------------- -DROP TABLE IF EXISTS `area`; -CREATE TABLE `area` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(32) DEFAULT NULL, - `area_id` int(8) DEFAULT NULL, - `city_id` int(8) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=3189 DEFAULT CHARSET=utf8; - --- ---------------------------- --- Records of area --- ---------------------------- -INSERT INTO `area` VALUES ('1', '东城区', '110101', '110100'); -INSERT INTO `area` VALUES ('2', '西城区', '110102', '110100'); -INSERT INTO `area` VALUES ('3', '朝阳区', '110105', '110100'); -INSERT INTO `area` VALUES ('4', '丰台区', '110106', '110100'); -INSERT INTO `area` VALUES ('5', '石景山区', '110107', '110100'); -INSERT INTO `area` VALUES ('6', '海淀区', '110108', '110100'); -INSERT INTO `area` VALUES ('7', '门头沟区', '110109', '110100'); -INSERT INTO `area` VALUES ('8', '房山区', '110111', '110100'); -INSERT INTO `area` VALUES ('9', '通州区', '110112', '110100'); -INSERT INTO `area` VALUES ('10', '顺义区', '110113', '110100'); -INSERT INTO `area` VALUES ('11', '昌平区', '110114', '110100'); -INSERT INTO `area` VALUES ('12', '大兴区', '110115', '110100'); -INSERT INTO `area` VALUES ('13', '怀柔区', '110116', '110100'); -INSERT INTO `area` VALUES ('14', '平谷区', '110117', '110100'); -INSERT INTO `area` VALUES ('15', '密云区', '110118', '110100'); -INSERT INTO `area` VALUES ('16', '延庆区', '110119', '110100'); -INSERT INTO `area` VALUES ('17', '和平区', '120101', '120100'); -INSERT INTO `area` VALUES ('18', '河东区', '120102', '120100'); -INSERT INTO `area` VALUES ('19', '河西区', '120103', '120100'); -INSERT INTO `area` VALUES ('20', '南开区', '120104', '120100'); -INSERT INTO `area` VALUES ('21', '河北区', '120105', '120100'); -INSERT INTO `area` VALUES ('22', '红桥区', '120106', '120100'); -INSERT INTO `area` VALUES ('23', '东丽区', '120110', '120100'); -INSERT INTO `area` VALUES ('24', '西青区', '120111', '120100'); -INSERT INTO `area` VALUES ('25', '津南区', '120112', '120100'); -INSERT INTO `area` VALUES ('26', '北辰区', '120113', '120100'); -INSERT INTO `area` VALUES ('27', '武清区', '120114', '120100'); -INSERT INTO `area` VALUES ('28', '宝坻区', '120115', '120100'); -INSERT INTO `area` VALUES ('29', '滨海新区', '120116', '120100'); -INSERT INTO `area` VALUES ('30', '宁河区', '120117', '120100'); -INSERT INTO `area` VALUES ('31', '静海区', '120118', '120100'); -INSERT INTO `area` VALUES ('32', '蓟州区', '120119', '120100'); -INSERT INTO `area` VALUES ('33', '市辖区', '130101', '130100'); -INSERT INTO `area` VALUES ('34', '长安区', '130102', '130100'); -INSERT INTO `area` VALUES ('35', '桥西区', '130104', '130100'); -INSERT INTO `area` VALUES ('36', '新华区', '130105', '130100'); -INSERT INTO `area` VALUES ('37', '井陉矿区', '130107', '130100'); -INSERT INTO `area` VALUES ('38', '裕华区', '130108', '130100'); -INSERT INTO `area` VALUES ('39', '藁城区', '130109', '130100'); -INSERT INTO `area` VALUES ('40', '鹿泉区', '130110', '130100'); -INSERT INTO `area` VALUES ('41', '栾城区', '130111', '130100'); -INSERT INTO `area` VALUES ('42', '井陉县', '130121', '130100'); -INSERT INTO `area` VALUES ('43', '正定县', '130123', '130100'); -INSERT INTO `area` VALUES ('44', '行唐县', '130125', '130100'); -INSERT INTO `area` VALUES ('45', '灵寿县', '130126', '130100'); -INSERT INTO `area` VALUES ('46', '高邑县', '130127', '130100'); -INSERT INTO `area` VALUES ('47', '深泽县', '130128', '130100'); -INSERT INTO `area` VALUES ('48', '赞皇县', '130129', '130100'); -INSERT INTO `area` VALUES ('49', '无极县', '130130', '130100'); -INSERT INTO `area` VALUES ('50', '平山县', '130131', '130100'); -INSERT INTO `area` VALUES ('51', '元氏县', '130132', '130100'); -INSERT INTO `area` VALUES ('52', '赵县', '130133', '130100'); -INSERT INTO `area` VALUES ('53', '晋州市', '130183', '130100'); -INSERT INTO `area` VALUES ('54', '新乐市', '130184', '130100'); -INSERT INTO `area` VALUES ('55', '市辖区', '130201', '130200'); -INSERT INTO `area` VALUES ('56', '路南区', '130202', '130200'); -INSERT INTO `area` VALUES ('57', '路北区', '130203', '130200'); -INSERT INTO `area` VALUES ('58', '古冶区', '130204', '130200'); -INSERT INTO `area` VALUES ('59', '开平区', '130205', '130200'); -INSERT INTO `area` VALUES ('60', '丰南区', '130207', '130200'); -INSERT INTO `area` VALUES ('61', '丰润区', '130208', '130200'); -INSERT INTO `area` VALUES ('62', '曹妃甸区', '130209', '130200'); -INSERT INTO `area` VALUES ('63', '滦县', '130223', '130200'); -INSERT INTO `area` VALUES ('64', '滦南县', '130224', '130200'); -INSERT INTO `area` VALUES ('65', '乐亭县', '130225', '130200'); -INSERT INTO `area` VALUES ('66', '迁西县', '130227', '130200'); -INSERT INTO `area` VALUES ('67', '玉田县', '130229', '130200'); -INSERT INTO `area` VALUES ('68', '遵化市', '130281', '130200'); -INSERT INTO `area` VALUES ('69', '迁安市', '130283', '130200'); -INSERT INTO `area` VALUES ('70', '市辖区', '130301', '130300'); -INSERT INTO `area` VALUES ('71', '海港区', '130302', '130300'); -INSERT INTO `area` VALUES ('72', '山海关区', '130303', '130300'); -INSERT INTO `area` VALUES ('73', '北戴河区', '130304', '130300'); -INSERT INTO `area` VALUES ('74', '抚宁区', '130306', '130300'); -INSERT INTO `area` VALUES ('75', '青龙满族自治县', '130321', '130300'); -INSERT INTO `area` VALUES ('76', '昌黎县', '130322', '130300'); -INSERT INTO `area` VALUES ('77', '卢龙县', '130324', '130300'); -INSERT INTO `area` VALUES ('78', '市辖区', '130401', '130400'); -INSERT INTO `area` VALUES ('79', '邯山区', '130402', '130400'); -INSERT INTO `area` VALUES ('80', '丛台区', '130403', '130400'); -INSERT INTO `area` VALUES ('81', '复兴区', '130404', '130400'); -INSERT INTO `area` VALUES ('82', '峰峰矿区', '130406', '130400'); -INSERT INTO `area` VALUES ('83', '邯郸县', '130421', '130400'); -INSERT INTO `area` VALUES ('84', '临漳县', '130423', '130400'); -INSERT INTO `area` VALUES ('85', '成安县', '130424', '130400'); -INSERT INTO `area` VALUES ('86', '大名县', '130425', '130400'); -INSERT INTO `area` VALUES ('87', '涉县', '130426', '130400'); -INSERT INTO `area` VALUES ('88', '磁县', '130427', '130400'); -INSERT INTO `area` VALUES ('89', '肥乡县', '130428', '130400'); -INSERT INTO `area` VALUES ('90', '永年县', '130429', '130400'); -INSERT INTO `area` VALUES ('91', '邱县', '130430', '130400'); -INSERT INTO `area` VALUES ('92', '鸡泽县', '130431', '130400'); -INSERT INTO `area` VALUES ('93', '广平县', '130432', '130400'); -INSERT INTO `area` VALUES ('94', '馆陶县', '130433', '130400'); -INSERT INTO `area` VALUES ('95', '魏县', '130434', '130400'); -INSERT INTO `area` VALUES ('96', '曲周县', '130435', '130400'); -INSERT INTO `area` VALUES ('97', '武安市', '130481', '130400'); -INSERT INTO `area` VALUES ('98', '市辖区', '130501', '130500'); -INSERT INTO `area` VALUES ('99', '桥东区', '130502', '130500'); -INSERT INTO `area` VALUES ('100', '桥西区', '130503', '130500'); -INSERT INTO `area` VALUES ('101', '邢台县', '130521', '130500'); -INSERT INTO `area` VALUES ('102', '临城县', '130522', '130500'); -INSERT INTO `area` VALUES ('103', '内丘县', '130523', '130500'); -INSERT INTO `area` VALUES ('104', '柏乡县', '130524', '130500'); -INSERT INTO `area` VALUES ('105', '隆尧县', '130525', '130500'); -INSERT INTO `area` VALUES ('106', '任县', '130526', '130500'); -INSERT INTO `area` VALUES ('107', '南和县', '130527', '130500'); -INSERT INTO `area` VALUES ('108', '宁晋县', '130528', '130500'); -INSERT INTO `area` VALUES ('109', '巨鹿县', '130529', '130500'); -INSERT INTO `area` VALUES ('110', '新河县', '130530', '130500'); -INSERT INTO `area` VALUES ('111', '广宗县', '130531', '130500'); -INSERT INTO `area` VALUES ('112', '平乡县', '130532', '130500'); -INSERT INTO `area` VALUES ('113', '威县', '130533', '130500'); -INSERT INTO `area` VALUES ('114', '清河县', '130534', '130500'); -INSERT INTO `area` VALUES ('115', '临西县', '130535', '130500'); -INSERT INTO `area` VALUES ('116', '南宫市', '130581', '130500'); -INSERT INTO `area` VALUES ('117', '沙河市', '130582', '130500'); -INSERT INTO `area` VALUES ('118', '市辖区', '130601', '130600'); -INSERT INTO `area` VALUES ('119', '竞秀区', '130602', '130600'); -INSERT INTO `area` VALUES ('120', '莲池区', '130606', '130600'); -INSERT INTO `area` VALUES ('121', '满城区', '130607', '130600'); -INSERT INTO `area` VALUES ('122', '清苑区', '130608', '130600'); -INSERT INTO `area` VALUES ('123', '徐水区', '130609', '130600'); -INSERT INTO `area` VALUES ('124', '涞水县', '130623', '130600'); -INSERT INTO `area` VALUES ('125', '阜平县', '130624', '130600'); -INSERT INTO `area` VALUES ('126', '定兴县', '130626', '130600'); -INSERT INTO `area` VALUES ('127', '唐县', '130627', '130600'); -INSERT INTO `area` VALUES ('128', '高阳县', '130628', '130600'); -INSERT INTO `area` VALUES ('129', '容城县', '130629', '130600'); -INSERT INTO `area` VALUES ('130', '涞源县', '130630', '130600'); -INSERT INTO `area` VALUES ('131', '望都县', '130631', '130600'); -INSERT INTO `area` VALUES ('132', '安新县', '130632', '130600'); -INSERT INTO `area` VALUES ('133', '易县', '130633', '130600'); -INSERT INTO `area` VALUES ('134', '曲阳县', '130634', '130600'); -INSERT INTO `area` VALUES ('135', '蠡县', '130635', '130600'); -INSERT INTO `area` VALUES ('136', '顺平县', '130636', '130600'); -INSERT INTO `area` VALUES ('137', '博野县', '130637', '130600'); -INSERT INTO `area` VALUES ('138', '雄县', '130638', '130600'); -INSERT INTO `area` VALUES ('139', '涿州市', '130681', '130600'); -INSERT INTO `area` VALUES ('140', '安国市', '130683', '130600'); -INSERT INTO `area` VALUES ('141', '高碑店市', '130684', '130600'); -INSERT INTO `area` VALUES ('142', '市辖区', '130701', '130700'); -INSERT INTO `area` VALUES ('143', '桥东区', '130702', '130700'); -INSERT INTO `area` VALUES ('144', '桥西区', '130703', '130700'); -INSERT INTO `area` VALUES ('145', '宣化区', '130705', '130700'); -INSERT INTO `area` VALUES ('146', '下花园区', '130706', '130700'); -INSERT INTO `area` VALUES ('147', '万全区', '130708', '130700'); -INSERT INTO `area` VALUES ('148', '崇礼区', '130709', '130700'); -INSERT INTO `area` VALUES ('149', '张北县', '130722', '130700'); -INSERT INTO `area` VALUES ('150', '康保县', '130723', '130700'); -INSERT INTO `area` VALUES ('151', '沽源县', '130724', '130700'); -INSERT INTO `area` VALUES ('152', '尚义县', '130725', '130700'); -INSERT INTO `area` VALUES ('153', '蔚县', '130726', '130700'); -INSERT INTO `area` VALUES ('154', '阳原县', '130727', '130700'); -INSERT INTO `area` VALUES ('155', '怀安县', '130728', '130700'); -INSERT INTO `area` VALUES ('156', '怀来县', '130730', '130700'); -INSERT INTO `area` VALUES ('157', '涿鹿县', '130731', '130700'); -INSERT INTO `area` VALUES ('158', '赤城县', '130732', '130700'); -INSERT INTO `area` VALUES ('159', '市辖区', '130801', '130800'); -INSERT INTO `area` VALUES ('160', '双桥区', '130802', '130800'); -INSERT INTO `area` VALUES ('161', '双滦区', '130803', '130800'); -INSERT INTO `area` VALUES ('162', '鹰手营子矿区', '130804', '130800'); -INSERT INTO `area` VALUES ('163', '承德县', '130821', '130800'); -INSERT INTO `area` VALUES ('164', '兴隆县', '130822', '130800'); -INSERT INTO `area` VALUES ('165', '平泉县', '130823', '130800'); -INSERT INTO `area` VALUES ('166', '滦平县', '130824', '130800'); -INSERT INTO `area` VALUES ('167', '隆化县', '130825', '130800'); -INSERT INTO `area` VALUES ('168', '丰宁满族自治县', '130826', '130800'); -INSERT INTO `area` VALUES ('169', '宽城满族自治县', '130827', '130800'); -INSERT INTO `area` VALUES ('170', '围场满族蒙古族自治县', '130828', '130800'); -INSERT INTO `area` VALUES ('171', '市辖区', '130901', '130900'); -INSERT INTO `area` VALUES ('172', '新华区', '130902', '130900'); -INSERT INTO `area` VALUES ('173', '运河区', '130903', '130900'); -INSERT INTO `area` VALUES ('174', '沧县', '130921', '130900'); -INSERT INTO `area` VALUES ('175', '青县', '130922', '130900'); -INSERT INTO `area` VALUES ('176', '东光县', '130923', '130900'); -INSERT INTO `area` VALUES ('177', '海兴县', '130924', '130900'); -INSERT INTO `area` VALUES ('178', '盐山县', '130925', '130900'); -INSERT INTO `area` VALUES ('179', '肃宁县', '130926', '130900'); -INSERT INTO `area` VALUES ('180', '南皮县', '130927', '130900'); -INSERT INTO `area` VALUES ('181', '吴桥县', '130928', '130900'); -INSERT INTO `area` VALUES ('182', '献县', '130929', '130900'); -INSERT INTO `area` VALUES ('183', '孟村回族自治县', '130930', '130900'); -INSERT INTO `area` VALUES ('184', '泊头市', '130981', '130900'); -INSERT INTO `area` VALUES ('185', '任丘市', '130982', '130900'); -INSERT INTO `area` VALUES ('186', '黄骅市', '130983', '130900'); -INSERT INTO `area` VALUES ('187', '河间市', '130984', '130900'); -INSERT INTO `area` VALUES ('188', '市辖区', '131001', '131000'); -INSERT INTO `area` VALUES ('189', '安次区', '131002', '131000'); -INSERT INTO `area` VALUES ('190', '广阳区', '131003', '131000'); -INSERT INTO `area` VALUES ('191', '固安县', '131022', '131000'); -INSERT INTO `area` VALUES ('192', '永清县', '131023', '131000'); -INSERT INTO `area` VALUES ('193', '香河县', '131024', '131000'); -INSERT INTO `area` VALUES ('194', '大城县', '131025', '131000'); -INSERT INTO `area` VALUES ('195', '文安县', '131026', '131000'); -INSERT INTO `area` VALUES ('196', '大厂回族自治县', '131028', '131000'); -INSERT INTO `area` VALUES ('197', '霸州市', '131081', '131000'); -INSERT INTO `area` VALUES ('198', '三河市', '131082', '131000'); -INSERT INTO `area` VALUES ('199', '市辖区', '131101', '131100'); -INSERT INTO `area` VALUES ('200', '桃城区', '131102', '131100'); -INSERT INTO `area` VALUES ('201', '冀州区', '131103', '131100'); -INSERT INTO `area` VALUES ('202', '枣强县', '131121', '131100'); -INSERT INTO `area` VALUES ('203', '武邑县', '131122', '131100'); -INSERT INTO `area` VALUES ('204', '武强县', '131123', '131100'); -INSERT INTO `area` VALUES ('205', '饶阳县', '131124', '131100'); -INSERT INTO `area` VALUES ('206', '安平县', '131125', '131100'); -INSERT INTO `area` VALUES ('207', '故城县', '131126', '131100'); -INSERT INTO `area` VALUES ('208', '景县', '131127', '131100'); -INSERT INTO `area` VALUES ('209', '阜城县', '131128', '131100'); -INSERT INTO `area` VALUES ('210', '深州市', '131182', '131100'); -INSERT INTO `area` VALUES ('211', '定州市', '139001', '139000'); -INSERT INTO `area` VALUES ('212', '辛集市', '139002', '139000'); -INSERT INTO `area` VALUES ('213', '市辖区', '140101', '140100'); -INSERT INTO `area` VALUES ('214', '小店区', '140105', '140100'); -INSERT INTO `area` VALUES ('215', '迎泽区', '140106', '140100'); -INSERT INTO `area` VALUES ('216', '杏花岭区', '140107', '140100'); -INSERT INTO `area` VALUES ('217', '尖草坪区', '140108', '140100'); -INSERT INTO `area` VALUES ('218', '万柏林区', '140109', '140100'); -INSERT INTO `area` VALUES ('219', '晋源区', '140110', '140100'); -INSERT INTO `area` VALUES ('220', '清徐县', '140121', '140100'); -INSERT INTO `area` VALUES ('221', '阳曲县', '140122', '140100'); -INSERT INTO `area` VALUES ('222', '娄烦县', '140123', '140100'); -INSERT INTO `area` VALUES ('223', '古交市', '140181', '140100'); -INSERT INTO `area` VALUES ('224', '市辖区', '140201', '140200'); -INSERT INTO `area` VALUES ('225', '城区', '140202', '140200'); -INSERT INTO `area` VALUES ('226', '矿区', '140203', '140200'); -INSERT INTO `area` VALUES ('227', '南郊区', '140211', '140200'); -INSERT INTO `area` VALUES ('228', '新荣区', '140212', '140200'); -INSERT INTO `area` VALUES ('229', '阳高县', '140221', '140200'); -INSERT INTO `area` VALUES ('230', '天镇县', '140222', '140200'); -INSERT INTO `area` VALUES ('231', '广灵县', '140223', '140200'); -INSERT INTO `area` VALUES ('232', '灵丘县', '140224', '140200'); -INSERT INTO `area` VALUES ('233', '浑源县', '140225', '140200'); -INSERT INTO `area` VALUES ('234', '左云县', '140226', '140200'); -INSERT INTO `area` VALUES ('235', '大同县', '140227', '140200'); -INSERT INTO `area` VALUES ('236', '市辖区', '140301', '140300'); -INSERT INTO `area` VALUES ('237', '城区', '140302', '140300'); -INSERT INTO `area` VALUES ('238', '矿区', '140303', '140300'); -INSERT INTO `area` VALUES ('239', '郊区', '140311', '140300'); -INSERT INTO `area` VALUES ('240', '平定县', '140321', '140300'); -INSERT INTO `area` VALUES ('241', '盂县', '140322', '140300'); -INSERT INTO `area` VALUES ('242', '市辖区', '140401', '140400'); -INSERT INTO `area` VALUES ('243', '城区', '140402', '140400'); -INSERT INTO `area` VALUES ('244', '郊区', '140411', '140400'); -INSERT INTO `area` VALUES ('245', '长治县', '140421', '140400'); -INSERT INTO `area` VALUES ('246', '襄垣县', '140423', '140400'); -INSERT INTO `area` VALUES ('247', '屯留县', '140424', '140400'); -INSERT INTO `area` VALUES ('248', '平顺县', '140425', '140400'); -INSERT INTO `area` VALUES ('249', '黎城县', '140426', '140400'); -INSERT INTO `area` VALUES ('250', '壶关县', '140427', '140400'); -INSERT INTO `area` VALUES ('251', '长子县', '140428', '140400'); -INSERT INTO `area` VALUES ('252', '武乡县', '140429', '140400'); -INSERT INTO `area` VALUES ('253', '沁县', '140430', '140400'); -INSERT INTO `area` VALUES ('254', '沁源县', '140431', '140400'); -INSERT INTO `area` VALUES ('255', '潞城市', '140481', '140400'); -INSERT INTO `area` VALUES ('256', '市辖区', '140501', '140500'); -INSERT INTO `area` VALUES ('257', '城区', '140502', '140500'); -INSERT INTO `area` VALUES ('258', '沁水县', '140521', '140500'); -INSERT INTO `area` VALUES ('259', '阳城县', '140522', '140500'); -INSERT INTO `area` VALUES ('260', '陵川县', '140524', '140500'); -INSERT INTO `area` VALUES ('261', '泽州县', '140525', '140500'); -INSERT INTO `area` VALUES ('262', '高平市', '140581', '140500'); -INSERT INTO `area` VALUES ('263', '市辖区', '140601', '140600'); -INSERT INTO `area` VALUES ('264', '朔城区', '140602', '140600'); -INSERT INTO `area` VALUES ('265', '平鲁区', '140603', '140600'); -INSERT INTO `area` VALUES ('266', '山阴县', '140621', '140600'); -INSERT INTO `area` VALUES ('267', '应县', '140622', '140600'); -INSERT INTO `area` VALUES ('268', '右玉县', '140623', '140600'); -INSERT INTO `area` VALUES ('269', '怀仁县', '140624', '140600'); -INSERT INTO `area` VALUES ('270', '市辖区', '140701', '140700'); -INSERT INTO `area` VALUES ('271', '榆次区', '140702', '140700'); -INSERT INTO `area` VALUES ('272', '榆社县', '140721', '140700'); -INSERT INTO `area` VALUES ('273', '左权县', '140722', '140700'); -INSERT INTO `area` VALUES ('274', '和顺县', '140723', '140700'); -INSERT INTO `area` VALUES ('275', '昔阳县', '140724', '140700'); -INSERT INTO `area` VALUES ('276', '寿阳县', '140725', '140700'); -INSERT INTO `area` VALUES ('277', '太谷县', '140726', '140700'); -INSERT INTO `area` VALUES ('278', '祁县', '140727', '140700'); -INSERT INTO `area` VALUES ('279', '平遥县', '140728', '140700'); -INSERT INTO `area` VALUES ('280', '灵石县', '140729', '140700'); -INSERT INTO `area` VALUES ('281', '介休市', '140781', '140700'); -INSERT INTO `area` VALUES ('282', '市辖区', '140801', '140800'); -INSERT INTO `area` VALUES ('283', '盐湖区', '140802', '140800'); -INSERT INTO `area` VALUES ('284', '临猗县', '140821', '140800'); -INSERT INTO `area` VALUES ('285', '万荣县', '140822', '140800'); -INSERT INTO `area` VALUES ('286', '闻喜县', '140823', '140800'); -INSERT INTO `area` VALUES ('287', '稷山县', '140824', '140800'); -INSERT INTO `area` VALUES ('288', '新绛县', '140825', '140800'); -INSERT INTO `area` VALUES ('289', '绛县', '140826', '140800'); -INSERT INTO `area` VALUES ('290', '垣曲县', '140827', '140800'); -INSERT INTO `area` VALUES ('291', '夏县', '140828', '140800'); -INSERT INTO `area` VALUES ('292', '平陆县', '140829', '140800'); -INSERT INTO `area` VALUES ('293', '芮城县', '140830', '140800'); -INSERT INTO `area` VALUES ('294', '永济市', '140881', '140800'); -INSERT INTO `area` VALUES ('295', '河津市', '140882', '140800'); -INSERT INTO `area` VALUES ('296', '市辖区', '140901', '140900'); -INSERT INTO `area` VALUES ('297', '忻府区', '140902', '140900'); -INSERT INTO `area` VALUES ('298', '定襄县', '140921', '140900'); -INSERT INTO `area` VALUES ('299', '五台县', '140922', '140900'); -INSERT INTO `area` VALUES ('300', '代县', '140923', '140900'); -INSERT INTO `area` VALUES ('301', '繁峙县', '140924', '140900'); -INSERT INTO `area` VALUES ('302', '宁武县', '140925', '140900'); -INSERT INTO `area` VALUES ('303', '静乐县', '140926', '140900'); -INSERT INTO `area` VALUES ('304', '神池县', '140927', '140900'); -INSERT INTO `area` VALUES ('305', '五寨县', '140928', '140900'); -INSERT INTO `area` VALUES ('306', '岢岚县', '140929', '140900'); -INSERT INTO `area` VALUES ('307', '河曲县', '140930', '140900'); -INSERT INTO `area` VALUES ('308', '保德县', '140931', '140900'); -INSERT INTO `area` VALUES ('309', '偏关县', '140932', '140900'); -INSERT INTO `area` VALUES ('310', '原平市', '140981', '140900'); -INSERT INTO `area` VALUES ('311', '市辖区', '141001', '141000'); -INSERT INTO `area` VALUES ('312', '尧都区', '141002', '141000'); -INSERT INTO `area` VALUES ('313', '曲沃县', '141021', '141000'); -INSERT INTO `area` VALUES ('314', '翼城县', '141022', '141000'); -INSERT INTO `area` VALUES ('315', '襄汾县', '141023', '141000'); -INSERT INTO `area` VALUES ('316', '洪洞县', '141024', '141000'); -INSERT INTO `area` VALUES ('317', '古县', '141025', '141000'); -INSERT INTO `area` VALUES ('318', '安泽县', '141026', '141000'); -INSERT INTO `area` VALUES ('319', '浮山县', '141027', '141000'); -INSERT INTO `area` VALUES ('320', '吉县', '141028', '141000'); -INSERT INTO `area` VALUES ('321', '乡宁县', '141029', '141000'); -INSERT INTO `area` VALUES ('322', '大宁县', '141030', '141000'); -INSERT INTO `area` VALUES ('323', '隰县', '141031', '141000'); -INSERT INTO `area` VALUES ('324', '永和县', '141032', '141000'); -INSERT INTO `area` VALUES ('325', '蒲县', '141033', '141000'); -INSERT INTO `area` VALUES ('326', '汾西县', '141034', '141000'); -INSERT INTO `area` VALUES ('327', '侯马市', '141081', '141000'); -INSERT INTO `area` VALUES ('328', '霍州市', '141082', '141000'); -INSERT INTO `area` VALUES ('329', '市辖区', '141101', '141100'); -INSERT INTO `area` VALUES ('330', '离石区', '141102', '141100'); -INSERT INTO `area` VALUES ('331', '文水县', '141121', '141100'); -INSERT INTO `area` VALUES ('332', '交城县', '141122', '141100'); -INSERT INTO `area` VALUES ('333', '兴县', '141123', '141100'); -INSERT INTO `area` VALUES ('334', '临县', '141124', '141100'); -INSERT INTO `area` VALUES ('335', '柳林县', '141125', '141100'); -INSERT INTO `area` VALUES ('336', '石楼县', '141126', '141100'); -INSERT INTO `area` VALUES ('337', '岚县', '141127', '141100'); -INSERT INTO `area` VALUES ('338', '方山县', '141128', '141100'); -INSERT INTO `area` VALUES ('339', '中阳县', '141129', '141100'); -INSERT INTO `area` VALUES ('340', '交口县', '141130', '141100'); -INSERT INTO `area` VALUES ('341', '孝义市', '141181', '141100'); -INSERT INTO `area` VALUES ('342', '汾阳市', '141182', '141100'); -INSERT INTO `area` VALUES ('343', '市辖区', '150101', '150100'); -INSERT INTO `area` VALUES ('344', '新城区', '150102', '150100'); -INSERT INTO `area` VALUES ('345', '回民区', '150103', '150100'); -INSERT INTO `area` VALUES ('346', '玉泉区', '150104', '150100'); -INSERT INTO `area` VALUES ('347', '赛罕区', '150105', '150100'); -INSERT INTO `area` VALUES ('348', '土默特左旗', '150121', '150100'); -INSERT INTO `area` VALUES ('349', '托克托县', '150122', '150100'); -INSERT INTO `area` VALUES ('350', '和林格尔县', '150123', '150100'); -INSERT INTO `area` VALUES ('351', '清水河县', '150124', '150100'); -INSERT INTO `area` VALUES ('352', '武川县', '150125', '150100'); -INSERT INTO `area` VALUES ('353', '市辖区', '150201', '150200'); -INSERT INTO `area` VALUES ('354', '东河区', '150202', '150200'); -INSERT INTO `area` VALUES ('355', '昆都仑区', '150203', '150200'); -INSERT INTO `area` VALUES ('356', '青山区', '150204', '150200'); -INSERT INTO `area` VALUES ('357', '石拐区', '150205', '150200'); -INSERT INTO `area` VALUES ('358', '白云鄂博矿区', '150206', '150200'); -INSERT INTO `area` VALUES ('359', '九原区', '150207', '150200'); -INSERT INTO `area` VALUES ('360', '土默特右旗', '150221', '150200'); -INSERT INTO `area` VALUES ('361', '固阳县', '150222', '150200'); -INSERT INTO `area` VALUES ('362', '达尔罕茂明安联合旗', '150223', '150200'); -INSERT INTO `area` VALUES ('363', '市辖区', '150301', '150300'); -INSERT INTO `area` VALUES ('364', '海勃湾区', '150302', '150300'); -INSERT INTO `area` VALUES ('365', '海南区', '150303', '150300'); -INSERT INTO `area` VALUES ('366', '乌达区', '150304', '150300'); -INSERT INTO `area` VALUES ('367', '市辖区', '150401', '150400'); -INSERT INTO `area` VALUES ('368', '红山区', '150402', '150400'); -INSERT INTO `area` VALUES ('369', '元宝山区', '150403', '150400'); -INSERT INTO `area` VALUES ('370', '松山区', '150404', '150400'); -INSERT INTO `area` VALUES ('371', '阿鲁科尔沁旗', '150421', '150400'); -INSERT INTO `area` VALUES ('372', '巴林左旗', '150422', '150400'); -INSERT INTO `area` VALUES ('373', '巴林右旗', '150423', '150400'); -INSERT INTO `area` VALUES ('374', '林西县', '150424', '150400'); -INSERT INTO `area` VALUES ('375', '克什克腾旗', '150425', '150400'); -INSERT INTO `area` VALUES ('376', '翁牛特旗', '150426', '150400'); -INSERT INTO `area` VALUES ('377', '喀喇沁旗', '150428', '150400'); -INSERT INTO `area` VALUES ('378', '宁城县', '150429', '150400'); -INSERT INTO `area` VALUES ('379', '敖汉旗', '150430', '150400'); -INSERT INTO `area` VALUES ('380', '市辖区', '150501', '150500'); -INSERT INTO `area` VALUES ('381', '科尔沁区', '150502', '150500'); -INSERT INTO `area` VALUES ('382', '科尔沁左翼中旗', '150521', '150500'); -INSERT INTO `area` VALUES ('383', '科尔沁左翼后旗', '150522', '150500'); -INSERT INTO `area` VALUES ('384', '开鲁县', '150523', '150500'); -INSERT INTO `area` VALUES ('385', '库伦旗', '150524', '150500'); -INSERT INTO `area` VALUES ('386', '奈曼旗', '150525', '150500'); -INSERT INTO `area` VALUES ('387', '扎鲁特旗', '150526', '150500'); -INSERT INTO `area` VALUES ('388', '霍林郭勒市', '150581', '150500'); -INSERT INTO `area` VALUES ('389', '市辖区', '150601', '150600'); -INSERT INTO `area` VALUES ('390', '东胜区', '150602', '150600'); -INSERT INTO `area` VALUES ('391', '康巴什区', '150603', '150600'); -INSERT INTO `area` VALUES ('392', '达拉特旗', '150621', '150600'); -INSERT INTO `area` VALUES ('393', '准格尔旗', '150622', '150600'); -INSERT INTO `area` VALUES ('394', '鄂托克前旗', '150623', '150600'); -INSERT INTO `area` VALUES ('395', '鄂托克旗', '150624', '150600'); -INSERT INTO `area` VALUES ('396', '杭锦旗', '150625', '150600'); -INSERT INTO `area` VALUES ('397', '乌审旗', '150626', '150600'); -INSERT INTO `area` VALUES ('398', '伊金霍洛旗', '150627', '150600'); -INSERT INTO `area` VALUES ('399', '市辖区', '150701', '150700'); -INSERT INTO `area` VALUES ('400', '海拉尔区', '150702', '150700'); -INSERT INTO `area` VALUES ('401', '扎赉诺尔区', '150703', '150700'); -INSERT INTO `area` VALUES ('402', '阿荣旗', '150721', '150700'); -INSERT INTO `area` VALUES ('403', '莫力达瓦达斡尔族自治旗', '150722', '150700'); -INSERT INTO `area` VALUES ('404', '鄂伦春自治旗', '150723', '150700'); -INSERT INTO `area` VALUES ('405', '鄂温克族自治旗', '150724', '150700'); -INSERT INTO `area` VALUES ('406', '陈巴尔虎旗', '150725', '150700'); -INSERT INTO `area` VALUES ('407', '新巴尔虎左旗', '150726', '150700'); -INSERT INTO `area` VALUES ('408', '新巴尔虎右旗', '150727', '150700'); -INSERT INTO `area` VALUES ('409', '满洲里市', '150781', '150700'); -INSERT INTO `area` VALUES ('410', '牙克石市', '150782', '150700'); -INSERT INTO `area` VALUES ('411', '扎兰屯市', '150783', '150700'); -INSERT INTO `area` VALUES ('412', '额尔古纳市', '150784', '150700'); -INSERT INTO `area` VALUES ('413', '根河市', '150785', '150700'); -INSERT INTO `area` VALUES ('414', '市辖区', '150801', '150800'); -INSERT INTO `area` VALUES ('415', '临河区', '150802', '150800'); -INSERT INTO `area` VALUES ('416', '五原县', '150821', '150800'); -INSERT INTO `area` VALUES ('417', '磴口县', '150822', '150800'); -INSERT INTO `area` VALUES ('418', '乌拉特前旗', '150823', '150800'); -INSERT INTO `area` VALUES ('419', '乌拉特中旗', '150824', '150800'); -INSERT INTO `area` VALUES ('420', '乌拉特后旗', '150825', '150800'); -INSERT INTO `area` VALUES ('421', '杭锦后旗', '150826', '150800'); -INSERT INTO `area` VALUES ('422', '市辖区', '150901', '150900'); -INSERT INTO `area` VALUES ('423', '集宁区', '150902', '150900'); -INSERT INTO `area` VALUES ('424', '卓资县', '150921', '150900'); -INSERT INTO `area` VALUES ('425', '化德县', '150922', '150900'); -INSERT INTO `area` VALUES ('426', '商都县', '150923', '150900'); -INSERT INTO `area` VALUES ('427', '兴和县', '150924', '150900'); -INSERT INTO `area` VALUES ('428', '凉城县', '150925', '150900'); -INSERT INTO `area` VALUES ('429', '察哈尔右翼前旗', '150926', '150900'); -INSERT INTO `area` VALUES ('430', '察哈尔右翼中旗', '150927', '150900'); -INSERT INTO `area` VALUES ('431', '察哈尔右翼后旗', '150928', '150900'); -INSERT INTO `area` VALUES ('432', '四子王旗', '150929', '150900'); -INSERT INTO `area` VALUES ('433', '丰镇市', '150981', '150900'); -INSERT INTO `area` VALUES ('434', '乌兰浩特市', '152201', '152200'); -INSERT INTO `area` VALUES ('435', '阿尔山市', '152202', '152200'); -INSERT INTO `area` VALUES ('436', '科尔沁右翼前旗', '152221', '152200'); -INSERT INTO `area` VALUES ('437', '科尔沁右翼中旗', '152222', '152200'); -INSERT INTO `area` VALUES ('438', '扎赉特旗', '152223', '152200'); -INSERT INTO `area` VALUES ('439', '突泉县', '152224', '152200'); -INSERT INTO `area` VALUES ('440', '二连浩特市', '152501', '152500'); -INSERT INTO `area` VALUES ('441', '锡林浩特市', '152502', '152500'); -INSERT INTO `area` VALUES ('442', '阿巴嘎旗', '152522', '152500'); -INSERT INTO `area` VALUES ('443', '苏尼特左旗', '152523', '152500'); -INSERT INTO `area` VALUES ('444', '苏尼特右旗', '152524', '152500'); -INSERT INTO `area` VALUES ('445', '东乌珠穆沁旗', '152525', '152500'); -INSERT INTO `area` VALUES ('446', '西乌珠穆沁旗', '152526', '152500'); -INSERT INTO `area` VALUES ('447', '太仆寺旗', '152527', '152500'); -INSERT INTO `area` VALUES ('448', '镶黄旗', '152528', '152500'); -INSERT INTO `area` VALUES ('449', '正镶白旗', '152529', '152500'); -INSERT INTO `area` VALUES ('450', '正蓝旗', '152530', '152500'); -INSERT INTO `area` VALUES ('451', '多伦县', '152531', '152500'); -INSERT INTO `area` VALUES ('452', '阿拉善左旗', '152921', '152900'); -INSERT INTO `area` VALUES ('453', '阿拉善右旗', '152922', '152900'); -INSERT INTO `area` VALUES ('454', '额济纳旗', '152923', '152900'); -INSERT INTO `area` VALUES ('455', '市辖区', '210101', '210100'); -INSERT INTO `area` VALUES ('456', '和平区', '210102', '210100'); -INSERT INTO `area` VALUES ('457', '沈河区', '210103', '210100'); -INSERT INTO `area` VALUES ('458', '大东区', '210104', '210100'); -INSERT INTO `area` VALUES ('459', '皇姑区', '210105', '210100'); -INSERT INTO `area` VALUES ('460', '铁西区', '210106', '210100'); -INSERT INTO `area` VALUES ('461', '苏家屯区', '210111', '210100'); -INSERT INTO `area` VALUES ('462', '浑南区', '210112', '210100'); -INSERT INTO `area` VALUES ('463', '沈北新区', '210113', '210100'); -INSERT INTO `area` VALUES ('464', '于洪区', '210114', '210100'); -INSERT INTO `area` VALUES ('465', '辽中区', '210115', '210100'); -INSERT INTO `area` VALUES ('466', '康平县', '210123', '210100'); -INSERT INTO `area` VALUES ('467', '法库县', '210124', '210100'); -INSERT INTO `area` VALUES ('468', '新民市', '210181', '210100'); -INSERT INTO `area` VALUES ('469', '市辖区', '210201', '210200'); -INSERT INTO `area` VALUES ('470', '中山区', '210202', '210200'); -INSERT INTO `area` VALUES ('471', '西岗区', '210203', '210200'); -INSERT INTO `area` VALUES ('472', '沙河口区', '210204', '210200'); -INSERT INTO `area` VALUES ('473', '甘井子区', '210211', '210200'); -INSERT INTO `area` VALUES ('474', '旅顺口区', '210212', '210200'); -INSERT INTO `area` VALUES ('475', '金州区', '210213', '210200'); -INSERT INTO `area` VALUES ('476', '普兰店区', '210214', '210200'); -INSERT INTO `area` VALUES ('477', '长海县', '210224', '210200'); -INSERT INTO `area` VALUES ('478', '瓦房店市', '210281', '210200'); -INSERT INTO `area` VALUES ('479', '庄河市', '210283', '210200'); -INSERT INTO `area` VALUES ('480', '市辖区', '210301', '210300'); -INSERT INTO `area` VALUES ('481', '铁东区', '210302', '210300'); -INSERT INTO `area` VALUES ('482', '铁西区', '210303', '210300'); -INSERT INTO `area` VALUES ('483', '立山区', '210304', '210300'); -INSERT INTO `area` VALUES ('484', '千山区', '210311', '210300'); -INSERT INTO `area` VALUES ('485', '台安县', '210321', '210300'); -INSERT INTO `area` VALUES ('486', '岫岩满族自治县', '210323', '210300'); -INSERT INTO `area` VALUES ('487', '海城市', '210381', '210300'); -INSERT INTO `area` VALUES ('488', '市辖区', '210401', '210400'); -INSERT INTO `area` VALUES ('489', '新抚区', '210402', '210400'); -INSERT INTO `area` VALUES ('490', '东洲区', '210403', '210400'); -INSERT INTO `area` VALUES ('491', '望花区', '210404', '210400'); -INSERT INTO `area` VALUES ('492', '顺城区', '210411', '210400'); -INSERT INTO `area` VALUES ('493', '抚顺县', '210421', '210400'); -INSERT INTO `area` VALUES ('494', '新宾满族自治县', '210422', '210400'); -INSERT INTO `area` VALUES ('495', '清原满族自治县', '210423', '210400'); -INSERT INTO `area` VALUES ('496', '市辖区', '210501', '210500'); -INSERT INTO `area` VALUES ('497', '平山区', '210502', '210500'); -INSERT INTO `area` VALUES ('498', '溪湖区', '210503', '210500'); -INSERT INTO `area` VALUES ('499', '明山区', '210504', '210500'); -INSERT INTO `area` VALUES ('500', '南芬区', '210505', '210500'); -INSERT INTO `area` VALUES ('501', '本溪满族自治县', '210521', '210500'); -INSERT INTO `area` VALUES ('502', '桓仁满族自治县', '210522', '210500'); -INSERT INTO `area` VALUES ('503', '市辖区', '210601', '210600'); -INSERT INTO `area` VALUES ('504', '元宝区', '210602', '210600'); -INSERT INTO `area` VALUES ('505', '振兴区', '210603', '210600'); -INSERT INTO `area` VALUES ('506', '振安区', '210604', '210600'); -INSERT INTO `area` VALUES ('507', '宽甸满族自治县', '210624', '210600'); -INSERT INTO `area` VALUES ('508', '东港市', '210681', '210600'); -INSERT INTO `area` VALUES ('509', '凤城市', '210682', '210600'); -INSERT INTO `area` VALUES ('510', '市辖区', '210701', '210700'); -INSERT INTO `area` VALUES ('511', '古塔区', '210702', '210700'); -INSERT INTO `area` VALUES ('512', '凌河区', '210703', '210700'); -INSERT INTO `area` VALUES ('513', '太和区', '210711', '210700'); -INSERT INTO `area` VALUES ('514', '黑山县', '210726', '210700'); -INSERT INTO `area` VALUES ('515', '义县', '210727', '210700'); -INSERT INTO `area` VALUES ('516', '凌海市', '210781', '210700'); -INSERT INTO `area` VALUES ('517', '北镇市', '210782', '210700'); -INSERT INTO `area` VALUES ('518', '市辖区', '210801', '210800'); -INSERT INTO `area` VALUES ('519', '站前区', '210802', '210800'); -INSERT INTO `area` VALUES ('520', '西市区', '210803', '210800'); -INSERT INTO `area` VALUES ('521', '鲅鱼圈区', '210804', '210800'); -INSERT INTO `area` VALUES ('522', '老边区', '210811', '210800'); -INSERT INTO `area` VALUES ('523', '盖州市', '210881', '210800'); -INSERT INTO `area` VALUES ('524', '大石桥市', '210882', '210800'); -INSERT INTO `area` VALUES ('525', '市辖区', '210901', '210900'); -INSERT INTO `area` VALUES ('526', '海州区', '210902', '210900'); -INSERT INTO `area` VALUES ('527', '新邱区', '210903', '210900'); -INSERT INTO `area` VALUES ('528', '太平区', '210904', '210900'); -INSERT INTO `area` VALUES ('529', '清河门区', '210905', '210900'); -INSERT INTO `area` VALUES ('530', '细河区', '210911', '210900'); -INSERT INTO `area` VALUES ('531', '阜新蒙古族自治县', '210921', '210900'); -INSERT INTO `area` VALUES ('532', '彰武县', '210922', '210900'); -INSERT INTO `area` VALUES ('533', '市辖区', '211001', '211000'); -INSERT INTO `area` VALUES ('534', '白塔区', '211002', '211000'); -INSERT INTO `area` VALUES ('535', '文圣区', '211003', '211000'); -INSERT INTO `area` VALUES ('536', '宏伟区', '211004', '211000'); -INSERT INTO `area` VALUES ('537', '弓长岭区', '211005', '211000'); -INSERT INTO `area` VALUES ('538', '太子河区', '211011', '211000'); -INSERT INTO `area` VALUES ('539', '辽阳县', '211021', '211000'); -INSERT INTO `area` VALUES ('540', '灯塔市', '211081', '211000'); -INSERT INTO `area` VALUES ('541', '市辖区', '211101', '211100'); -INSERT INTO `area` VALUES ('542', '双台子区', '211102', '211100'); -INSERT INTO `area` VALUES ('543', '兴隆台区', '211103', '211100'); -INSERT INTO `area` VALUES ('544', '大洼区', '211104', '211100'); -INSERT INTO `area` VALUES ('545', '盘山县', '211122', '211100'); -INSERT INTO `area` VALUES ('546', '市辖区', '211201', '211200'); -INSERT INTO `area` VALUES ('547', '银州区', '211202', '211200'); -INSERT INTO `area` VALUES ('548', '清河区', '211204', '211200'); -INSERT INTO `area` VALUES ('549', '铁岭县', '211221', '211200'); -INSERT INTO `area` VALUES ('550', '西丰县', '211223', '211200'); -INSERT INTO `area` VALUES ('551', '昌图县', '211224', '211200'); -INSERT INTO `area` VALUES ('552', '调兵山市', '211281', '211200'); -INSERT INTO `area` VALUES ('553', '开原市', '211282', '211200'); -INSERT INTO `area` VALUES ('554', '市辖区', '211301', '211300'); -INSERT INTO `area` VALUES ('555', '双塔区', '211302', '211300'); -INSERT INTO `area` VALUES ('556', '龙城区', '211303', '211300'); -INSERT INTO `area` VALUES ('557', '朝阳县', '211321', '211300'); -INSERT INTO `area` VALUES ('558', '建平县', '211322', '211300'); -INSERT INTO `area` VALUES ('559', '喀喇沁左翼蒙古族自治县', '211324', '211300'); -INSERT INTO `area` VALUES ('560', '北票市', '211381', '211300'); -INSERT INTO `area` VALUES ('561', '凌源市', '211382', '211300'); -INSERT INTO `area` VALUES ('562', '市辖区', '211401', '211400'); -INSERT INTO `area` VALUES ('563', '连山区', '211402', '211400'); -INSERT INTO `area` VALUES ('564', '龙港区', '211403', '211400'); -INSERT INTO `area` VALUES ('565', '南票区', '211404', '211400'); -INSERT INTO `area` VALUES ('566', '绥中县', '211421', '211400'); -INSERT INTO `area` VALUES ('567', '建昌县', '211422', '211400'); -INSERT INTO `area` VALUES ('568', '兴城市', '211481', '211400'); -INSERT INTO `area` VALUES ('569', '市辖区', '220101', '220100'); -INSERT INTO `area` VALUES ('570', '南关区', '220102', '220100'); -INSERT INTO `area` VALUES ('571', '宽城区', '220103', '220100'); -INSERT INTO `area` VALUES ('572', '朝阳区', '220104', '220100'); -INSERT INTO `area` VALUES ('573', '二道区', '220105', '220100'); -INSERT INTO `area` VALUES ('574', '绿园区', '220106', '220100'); -INSERT INTO `area` VALUES ('575', '双阳区', '220112', '220100'); -INSERT INTO `area` VALUES ('576', '九台区', '220113', '220100'); -INSERT INTO `area` VALUES ('577', '农安县', '220122', '220100'); -INSERT INTO `area` VALUES ('578', '榆树市', '220182', '220100'); -INSERT INTO `area` VALUES ('579', '德惠市', '220183', '220100'); -INSERT INTO `area` VALUES ('580', '市辖区', '220201', '220200'); -INSERT INTO `area` VALUES ('581', '昌邑区', '220202', '220200'); -INSERT INTO `area` VALUES ('582', '龙潭区', '220203', '220200'); -INSERT INTO `area` VALUES ('583', '船营区', '220204', '220200'); -INSERT INTO `area` VALUES ('584', '丰满区', '220211', '220200'); -INSERT INTO `area` VALUES ('585', '永吉县', '220221', '220200'); -INSERT INTO `area` VALUES ('586', '蛟河市', '220281', '220200'); -INSERT INTO `area` VALUES ('587', '桦甸市', '220282', '220200'); -INSERT INTO `area` VALUES ('588', '舒兰市', '220283', '220200'); -INSERT INTO `area` VALUES ('589', '磐石市', '220284', '220200'); -INSERT INTO `area` VALUES ('590', '市辖区', '220301', '220300'); -INSERT INTO `area` VALUES ('591', '铁西区', '220302', '220300'); -INSERT INTO `area` VALUES ('592', '铁东区', '220303', '220300'); -INSERT INTO `area` VALUES ('593', '梨树县', '220322', '220300'); -INSERT INTO `area` VALUES ('594', '伊通满族自治县', '220323', '220300'); -INSERT INTO `area` VALUES ('595', '公主岭市', '220381', '220300'); -INSERT INTO `area` VALUES ('596', '双辽市', '220382', '220300'); -INSERT INTO `area` VALUES ('597', '市辖区', '220401', '220400'); -INSERT INTO `area` VALUES ('598', '龙山区', '220402', '220400'); -INSERT INTO `area` VALUES ('599', '西安区', '220403', '220400'); -INSERT INTO `area` VALUES ('600', '东丰县', '220421', '220400'); -INSERT INTO `area` VALUES ('601', '东辽县', '220422', '220400'); -INSERT INTO `area` VALUES ('602', '市辖区', '220501', '220500'); -INSERT INTO `area` VALUES ('603', '东昌区', '220502', '220500'); -INSERT INTO `area` VALUES ('604', '二道江区', '220503', '220500'); -INSERT INTO `area` VALUES ('605', '通化县', '220521', '220500'); -INSERT INTO `area` VALUES ('606', '辉南县', '220523', '220500'); -INSERT INTO `area` VALUES ('607', '柳河县', '220524', '220500'); -INSERT INTO `area` VALUES ('608', '梅河口市', '220581', '220500'); -INSERT INTO `area` VALUES ('609', '集安市', '220582', '220500'); -INSERT INTO `area` VALUES ('610', '市辖区', '220601', '220600'); -INSERT INTO `area` VALUES ('611', '浑江区', '220602', '220600'); -INSERT INTO `area` VALUES ('612', '江源区', '220605', '220600'); -INSERT INTO `area` VALUES ('613', '抚松县', '220621', '220600'); -INSERT INTO `area` VALUES ('614', '靖宇县', '220622', '220600'); -INSERT INTO `area` VALUES ('615', '长白朝鲜族自治县', '220623', '220600'); -INSERT INTO `area` VALUES ('616', '临江市', '220681', '220600'); -INSERT INTO `area` VALUES ('617', '市辖区', '220701', '220700'); -INSERT INTO `area` VALUES ('618', '宁江区', '220702', '220700'); -INSERT INTO `area` VALUES ('619', '前郭尔罗斯蒙古族自治县', '220721', '220700'); -INSERT INTO `area` VALUES ('620', '长岭县', '220722', '220700'); -INSERT INTO `area` VALUES ('621', '乾安县', '220723', '220700'); -INSERT INTO `area` VALUES ('622', '扶余市', '220781', '220700'); -INSERT INTO `area` VALUES ('623', '市辖区', '220801', '220800'); -INSERT INTO `area` VALUES ('624', '洮北区', '220802', '220800'); -INSERT INTO `area` VALUES ('625', '镇赉县', '220821', '220800'); -INSERT INTO `area` VALUES ('626', '通榆县', '220822', '220800'); -INSERT INTO `area` VALUES ('627', '洮南市', '220881', '220800'); -INSERT INTO `area` VALUES ('628', '大安市', '220882', '220800'); -INSERT INTO `area` VALUES ('629', '延吉市', '222401', '222400'); -INSERT INTO `area` VALUES ('630', '图们市', '222402', '222400'); -INSERT INTO `area` VALUES ('631', '敦化市', '222403', '222400'); -INSERT INTO `area` VALUES ('632', '珲春市', '222404', '222400'); -INSERT INTO `area` VALUES ('633', '龙井市', '222405', '222400'); -INSERT INTO `area` VALUES ('634', '和龙市', '222406', '222400'); -INSERT INTO `area` VALUES ('635', '汪清县', '222424', '222400'); -INSERT INTO `area` VALUES ('636', '安图县', '222426', '222400'); -INSERT INTO `area` VALUES ('637', '市辖区', '230101', '230100'); -INSERT INTO `area` VALUES ('638', '道里区', '230102', '230100'); -INSERT INTO `area` VALUES ('639', '南岗区', '230103', '230100'); -INSERT INTO `area` VALUES ('640', '道外区', '230104', '230100'); -INSERT INTO `area` VALUES ('641', '平房区', '230108', '230100'); -INSERT INTO `area` VALUES ('642', '松北区', '230109', '230100'); -INSERT INTO `area` VALUES ('643', '香坊区', '230110', '230100'); -INSERT INTO `area` VALUES ('644', '呼兰区', '230111', '230100'); -INSERT INTO `area` VALUES ('645', '阿城区', '230112', '230100'); -INSERT INTO `area` VALUES ('646', '双城区', '230113', '230100'); -INSERT INTO `area` VALUES ('647', '依兰县', '230123', '230100'); -INSERT INTO `area` VALUES ('648', '方正县', '230124', '230100'); -INSERT INTO `area` VALUES ('649', '宾县', '230125', '230100'); -INSERT INTO `area` VALUES ('650', '巴彦县', '230126', '230100'); -INSERT INTO `area` VALUES ('651', '木兰县', '230127', '230100'); -INSERT INTO `area` VALUES ('652', '通河县', '230128', '230100'); -INSERT INTO `area` VALUES ('653', '延寿县', '230129', '230100'); -INSERT INTO `area` VALUES ('654', '尚志市', '230183', '230100'); -INSERT INTO `area` VALUES ('655', '五常市', '230184', '230100'); -INSERT INTO `area` VALUES ('656', '市辖区', '230201', '230200'); -INSERT INTO `area` VALUES ('657', '龙沙区', '230202', '230200'); -INSERT INTO `area` VALUES ('658', '建华区', '230203', '230200'); -INSERT INTO `area` VALUES ('659', '铁锋区', '230204', '230200'); -INSERT INTO `area` VALUES ('660', '昂昂溪区', '230205', '230200'); -INSERT INTO `area` VALUES ('661', '富拉尔基区', '230206', '230200'); -INSERT INTO `area` VALUES ('662', '碾子山区', '230207', '230200'); -INSERT INTO `area` VALUES ('663', '梅里斯达斡尔族区', '230208', '230200'); -INSERT INTO `area` VALUES ('664', '龙江县', '230221', '230200'); -INSERT INTO `area` VALUES ('665', '依安县', '230223', '230200'); -INSERT INTO `area` VALUES ('666', '泰来县', '230224', '230200'); -INSERT INTO `area` VALUES ('667', '甘南县', '230225', '230200'); -INSERT INTO `area` VALUES ('668', '富裕县', '230227', '230200'); -INSERT INTO `area` VALUES ('669', '克山县', '230229', '230200'); -INSERT INTO `area` VALUES ('670', '克东县', '230230', '230200'); -INSERT INTO `area` VALUES ('671', '拜泉县', '230231', '230200'); -INSERT INTO `area` VALUES ('672', '讷河市', '230281', '230200'); -INSERT INTO `area` VALUES ('673', '市辖区', '230301', '230300'); -INSERT INTO `area` VALUES ('674', '鸡冠区', '230302', '230300'); -INSERT INTO `area` VALUES ('675', '恒山区', '230303', '230300'); -INSERT INTO `area` VALUES ('676', '滴道区', '230304', '230300'); -INSERT INTO `area` VALUES ('677', '梨树区', '230305', '230300'); -INSERT INTO `area` VALUES ('678', '城子河区', '230306', '230300'); -INSERT INTO `area` VALUES ('679', '麻山区', '230307', '230300'); -INSERT INTO `area` VALUES ('680', '鸡东县', '230321', '230300'); -INSERT INTO `area` VALUES ('681', '虎林市', '230381', '230300'); -INSERT INTO `area` VALUES ('682', '密山市', '230382', '230300'); -INSERT INTO `area` VALUES ('683', '市辖区', '230401', '230400'); -INSERT INTO `area` VALUES ('684', '向阳区', '230402', '230400'); -INSERT INTO `area` VALUES ('685', '工农区', '230403', '230400'); -INSERT INTO `area` VALUES ('686', '南山区', '230404', '230400'); -INSERT INTO `area` VALUES ('687', '兴安区', '230405', '230400'); -INSERT INTO `area` VALUES ('688', '东山区', '230406', '230400'); -INSERT INTO `area` VALUES ('689', '兴山区', '230407', '230400'); -INSERT INTO `area` VALUES ('690', '萝北县', '230421', '230400'); -INSERT INTO `area` VALUES ('691', '绥滨县', '230422', '230400'); -INSERT INTO `area` VALUES ('692', '市辖区', '230501', '230500'); -INSERT INTO `area` VALUES ('693', '尖山区', '230502', '230500'); -INSERT INTO `area` VALUES ('694', '岭东区', '230503', '230500'); -INSERT INTO `area` VALUES ('695', '四方台区', '230505', '230500'); -INSERT INTO `area` VALUES ('696', '宝山区', '230506', '230500'); -INSERT INTO `area` VALUES ('697', '集贤县', '230521', '230500'); -INSERT INTO `area` VALUES ('698', '友谊县', '230522', '230500'); -INSERT INTO `area` VALUES ('699', '宝清县', '230523', '230500'); -INSERT INTO `area` VALUES ('700', '饶河县', '230524', '230500'); -INSERT INTO `area` VALUES ('701', '市辖区', '230601', '230600'); -INSERT INTO `area` VALUES ('702', '萨尔图区', '230602', '230600'); -INSERT INTO `area` VALUES ('703', '龙凤区', '230603', '230600'); -INSERT INTO `area` VALUES ('704', '让胡路区', '230604', '230600'); -INSERT INTO `area` VALUES ('705', '红岗区', '230605', '230600'); -INSERT INTO `area` VALUES ('706', '大同区', '230606', '230600'); -INSERT INTO `area` VALUES ('707', '肇州县', '230621', '230600'); -INSERT INTO `area` VALUES ('708', '肇源县', '230622', '230600'); -INSERT INTO `area` VALUES ('709', '林甸县', '230623', '230600'); -INSERT INTO `area` VALUES ('710', '杜尔伯特蒙古族自治县', '230624', '230600'); -INSERT INTO `area` VALUES ('711', '市辖区', '230701', '230700'); -INSERT INTO `area` VALUES ('712', '伊春区', '230702', '230700'); -INSERT INTO `area` VALUES ('713', '南岔区', '230703', '230700'); -INSERT INTO `area` VALUES ('714', '友好区', '230704', '230700'); -INSERT INTO `area` VALUES ('715', '西林区', '230705', '230700'); -INSERT INTO `area` VALUES ('716', '翠峦区', '230706', '230700'); -INSERT INTO `area` VALUES ('717', '新青区', '230707', '230700'); -INSERT INTO `area` VALUES ('718', '美溪区', '230708', '230700'); -INSERT INTO `area` VALUES ('719', '金山屯区', '230709', '230700'); -INSERT INTO `area` VALUES ('720', '五营区', '230710', '230700'); -INSERT INTO `area` VALUES ('721', '乌马河区', '230711', '230700'); -INSERT INTO `area` VALUES ('722', '汤旺河区', '230712', '230700'); -INSERT INTO `area` VALUES ('723', '带岭区', '230713', '230700'); -INSERT INTO `area` VALUES ('724', '乌伊岭区', '230714', '230700'); -INSERT INTO `area` VALUES ('725', '红星区', '230715', '230700'); -INSERT INTO `area` VALUES ('726', '上甘岭区', '230716', '230700'); -INSERT INTO `area` VALUES ('727', '嘉荫县', '230722', '230700'); -INSERT INTO `area` VALUES ('728', '铁力市', '230781', '230700'); -INSERT INTO `area` VALUES ('729', '市辖区', '230801', '230800'); -INSERT INTO `area` VALUES ('730', '向阳区', '230803', '230800'); -INSERT INTO `area` VALUES ('731', '前进区', '230804', '230800'); -INSERT INTO `area` VALUES ('732', '东风区', '230805', '230800'); -INSERT INTO `area` VALUES ('733', '郊区', '230811', '230800'); -INSERT INTO `area` VALUES ('734', '桦南县', '230822', '230800'); -INSERT INTO `area` VALUES ('735', '桦川县', '230826', '230800'); -INSERT INTO `area` VALUES ('736', '汤原县', '230828', '230800'); -INSERT INTO `area` VALUES ('737', '同江市', '230881', '230800'); -INSERT INTO `area` VALUES ('738', '富锦市', '230882', '230800'); -INSERT INTO `area` VALUES ('739', '抚远市', '230883', '230800'); -INSERT INTO `area` VALUES ('740', '市辖区', '230901', '230900'); -INSERT INTO `area` VALUES ('741', '新兴区', '230902', '230900'); -INSERT INTO `area` VALUES ('742', '桃山区', '230903', '230900'); -INSERT INTO `area` VALUES ('743', '茄子河区', '230904', '230900'); -INSERT INTO `area` VALUES ('744', '勃利县', '230921', '230900'); -INSERT INTO `area` VALUES ('745', '市辖区', '231001', '231000'); -INSERT INTO `area` VALUES ('746', '东安区', '231002', '231000'); -INSERT INTO `area` VALUES ('747', '阳明区', '231003', '231000'); -INSERT INTO `area` VALUES ('748', '爱民区', '231004', '231000'); -INSERT INTO `area` VALUES ('749', '西安区', '231005', '231000'); -INSERT INTO `area` VALUES ('750', '林口县', '231025', '231000'); -INSERT INTO `area` VALUES ('751', '绥芬河市', '231081', '231000'); -INSERT INTO `area` VALUES ('752', '海林市', '231083', '231000'); -INSERT INTO `area` VALUES ('753', '宁安市', '231084', '231000'); -INSERT INTO `area` VALUES ('754', '穆棱市', '231085', '231000'); -INSERT INTO `area` VALUES ('755', '东宁市', '231086', '231000'); -INSERT INTO `area` VALUES ('756', '市辖区', '231101', '231100'); -INSERT INTO `area` VALUES ('757', '爱辉区', '231102', '231100'); -INSERT INTO `area` VALUES ('758', '嫩江县', '231121', '231100'); -INSERT INTO `area` VALUES ('759', '逊克县', '231123', '231100'); -INSERT INTO `area` VALUES ('760', '孙吴县', '231124', '231100'); -INSERT INTO `area` VALUES ('761', '北安市', '231181', '231100'); -INSERT INTO `area` VALUES ('762', '五大连池市', '231182', '231100'); -INSERT INTO `area` VALUES ('763', '市辖区', '231201', '231200'); -INSERT INTO `area` VALUES ('764', '北林区', '231202', '231200'); -INSERT INTO `area` VALUES ('765', '望奎县', '231221', '231200'); -INSERT INTO `area` VALUES ('766', '兰西县', '231222', '231200'); -INSERT INTO `area` VALUES ('767', '青冈县', '231223', '231200'); -INSERT INTO `area` VALUES ('768', '庆安县', '231224', '231200'); -INSERT INTO `area` VALUES ('769', '明水县', '231225', '231200'); -INSERT INTO `area` VALUES ('770', '绥棱县', '231226', '231200'); -INSERT INTO `area` VALUES ('771', '安达市', '231281', '231200'); -INSERT INTO `area` VALUES ('772', '肇东市', '231282', '231200'); -INSERT INTO `area` VALUES ('773', '海伦市', '231283', '231200'); -INSERT INTO `area` VALUES ('774', '呼玛县', '232721', '232700'); -INSERT INTO `area` VALUES ('775', '塔河县', '232722', '232700'); -INSERT INTO `area` VALUES ('776', '漠河县', '232723', '232700'); -INSERT INTO `area` VALUES ('777', '黄浦区', '310101', '310100'); -INSERT INTO `area` VALUES ('778', '徐汇区', '310104', '310100'); -INSERT INTO `area` VALUES ('779', '长宁区', '310105', '310100'); -INSERT INTO `area` VALUES ('780', '静安区', '310106', '310100'); -INSERT INTO `area` VALUES ('781', '普陀区', '310107', '310100'); -INSERT INTO `area` VALUES ('782', '虹口区', '310109', '310100'); -INSERT INTO `area` VALUES ('783', '杨浦区', '310110', '310100'); -INSERT INTO `area` VALUES ('784', '闵行区', '310112', '310100'); -INSERT INTO `area` VALUES ('785', '宝山区', '310113', '310100'); -INSERT INTO `area` VALUES ('786', '嘉定区', '310114', '310100'); -INSERT INTO `area` VALUES ('787', '浦东新区', '310115', '310100'); -INSERT INTO `area` VALUES ('788', '金山区', '310116', '310100'); -INSERT INTO `area` VALUES ('789', '松江区', '310117', '310100'); -INSERT INTO `area` VALUES ('790', '青浦区', '310118', '310100'); -INSERT INTO `area` VALUES ('791', '奉贤区', '310120', '310100'); -INSERT INTO `area` VALUES ('792', '崇明区', '310151', '310100'); -INSERT INTO `area` VALUES ('793', '市辖区', '320101', '320100'); -INSERT INTO `area` VALUES ('794', '玄武区', '320102', '320100'); -INSERT INTO `area` VALUES ('795', '秦淮区', '320104', '320100'); -INSERT INTO `area` VALUES ('796', '建邺区', '320105', '320100'); -INSERT INTO `area` VALUES ('797', '鼓楼区', '320106', '320100'); -INSERT INTO `area` VALUES ('798', '浦口区', '320111', '320100'); -INSERT INTO `area` VALUES ('799', '栖霞区', '320113', '320100'); -INSERT INTO `area` VALUES ('800', '雨花台区', '320114', '320100'); -INSERT INTO `area` VALUES ('801', '江宁区', '320115', '320100'); -INSERT INTO `area` VALUES ('802', '六合区', '320116', '320100'); -INSERT INTO `area` VALUES ('803', '溧水区', '320117', '320100'); -INSERT INTO `area` VALUES ('804', '高淳区', '320118', '320100'); -INSERT INTO `area` VALUES ('805', '市辖区', '320201', '320200'); -INSERT INTO `area` VALUES ('806', '锡山区', '320205', '320200'); -INSERT INTO `area` VALUES ('807', '惠山区', '320206', '320200'); -INSERT INTO `area` VALUES ('808', '滨湖区', '320211', '320200'); -INSERT INTO `area` VALUES ('809', '梁溪区', '320213', '320200'); -INSERT INTO `area` VALUES ('810', '新吴区', '320214', '320200'); -INSERT INTO `area` VALUES ('811', '江阴市', '320281', '320200'); -INSERT INTO `area` VALUES ('812', '宜兴市', '320282', '320200'); -INSERT INTO `area` VALUES ('813', '市辖区', '320301', '320300'); -INSERT INTO `area` VALUES ('814', '鼓楼区', '320302', '320300'); -INSERT INTO `area` VALUES ('815', '云龙区', '320303', '320300'); -INSERT INTO `area` VALUES ('816', '贾汪区', '320305', '320300'); -INSERT INTO `area` VALUES ('817', '泉山区', '320311', '320300'); -INSERT INTO `area` VALUES ('818', '铜山区', '320312', '320300'); -INSERT INTO `area` VALUES ('819', '丰县', '320321', '320300'); -INSERT INTO `area` VALUES ('820', '沛县', '320322', '320300'); -INSERT INTO `area` VALUES ('821', '睢宁县', '320324', '320300'); -INSERT INTO `area` VALUES ('822', '新沂市', '320381', '320300'); -INSERT INTO `area` VALUES ('823', '邳州市', '320382', '320300'); -INSERT INTO `area` VALUES ('824', '市辖区', '320401', '320400'); -INSERT INTO `area` VALUES ('825', '天宁区', '320402', '320400'); -INSERT INTO `area` VALUES ('826', '钟楼区', '320404', '320400'); -INSERT INTO `area` VALUES ('827', '新北区', '320411', '320400'); -INSERT INTO `area` VALUES ('828', '武进区', '320412', '320400'); -INSERT INTO `area` VALUES ('829', '金坛区', '320413', '320400'); -INSERT INTO `area` VALUES ('830', '溧阳市', '320481', '320400'); -INSERT INTO `area` VALUES ('831', '市辖区', '320501', '320500'); -INSERT INTO `area` VALUES ('832', '虎丘区', '320505', '320500'); -INSERT INTO `area` VALUES ('833', '吴中区', '320506', '320500'); -INSERT INTO `area` VALUES ('834', '相城区', '320507', '320500'); -INSERT INTO `area` VALUES ('835', '姑苏区', '320508', '320500'); -INSERT INTO `area` VALUES ('836', '吴江区', '320509', '320500'); -INSERT INTO `area` VALUES ('837', '常熟市', '320581', '320500'); -INSERT INTO `area` VALUES ('838', '张家港市', '320582', '320500'); -INSERT INTO `area` VALUES ('839', '昆山市', '320583', '320500'); -INSERT INTO `area` VALUES ('840', '太仓市', '320585', '320500'); -INSERT INTO `area` VALUES ('841', '市辖区', '320601', '320600'); -INSERT INTO `area` VALUES ('842', '崇川区', '320602', '320600'); -INSERT INTO `area` VALUES ('843', '港闸区', '320611', '320600'); -INSERT INTO `area` VALUES ('844', '通州区', '320612', '320600'); -INSERT INTO `area` VALUES ('845', '海安县', '320621', '320600'); -INSERT INTO `area` VALUES ('846', '如东县', '320623', '320600'); -INSERT INTO `area` VALUES ('847', '启东市', '320681', '320600'); -INSERT INTO `area` VALUES ('848', '如皋市', '320682', '320600'); -INSERT INTO `area` VALUES ('849', '海门市', '320684', '320600'); -INSERT INTO `area` VALUES ('850', '市辖区', '320701', '320700'); -INSERT INTO `area` VALUES ('851', '连云区', '320703', '320700'); -INSERT INTO `area` VALUES ('852', '海州区', '320706', '320700'); -INSERT INTO `area` VALUES ('853', '赣榆区', '320707', '320700'); -INSERT INTO `area` VALUES ('854', '东海县', '320722', '320700'); -INSERT INTO `area` VALUES ('855', '灌云县', '320723', '320700'); -INSERT INTO `area` VALUES ('856', '灌南县', '320724', '320700'); -INSERT INTO `area` VALUES ('857', '市辖区', '320801', '320800'); -INSERT INTO `area` VALUES ('858', '淮安区', '320803', '320800'); -INSERT INTO `area` VALUES ('859', '淮阴区', '320804', '320800'); -INSERT INTO `area` VALUES ('860', '清江浦区', '320812', '320800'); -INSERT INTO `area` VALUES ('861', '洪泽区', '320813', '320800'); -INSERT INTO `area` VALUES ('862', '涟水县', '320826', '320800'); -INSERT INTO `area` VALUES ('863', '盱眙县', '320830', '320800'); -INSERT INTO `area` VALUES ('864', '金湖县', '320831', '320800'); -INSERT INTO `area` VALUES ('865', '市辖区', '320901', '320900'); -INSERT INTO `area` VALUES ('866', '亭湖区', '320902', '320900'); -INSERT INTO `area` VALUES ('867', '盐都区', '320903', '320900'); -INSERT INTO `area` VALUES ('868', '大丰区', '320904', '320900'); -INSERT INTO `area` VALUES ('869', '响水县', '320921', '320900'); -INSERT INTO `area` VALUES ('870', '滨海县', '320922', '320900'); -INSERT INTO `area` VALUES ('871', '阜宁县', '320923', '320900'); -INSERT INTO `area` VALUES ('872', '射阳县', '320924', '320900'); -INSERT INTO `area` VALUES ('873', '建湖县', '320925', '320900'); -INSERT INTO `area` VALUES ('874', '东台市', '320981', '320900'); -INSERT INTO `area` VALUES ('875', '市辖区', '321001', '321000'); -INSERT INTO `area` VALUES ('876', '广陵区', '321002', '321000'); -INSERT INTO `area` VALUES ('877', '邗江区', '321003', '321000'); -INSERT INTO `area` VALUES ('878', '江都区', '321012', '321000'); -INSERT INTO `area` VALUES ('879', '宝应县', '321023', '321000'); -INSERT INTO `area` VALUES ('880', '仪征市', '321081', '321000'); -INSERT INTO `area` VALUES ('881', '高邮市', '321084', '321000'); -INSERT INTO `area` VALUES ('882', '市辖区', '321101', '321100'); -INSERT INTO `area` VALUES ('883', '京口区', '321102', '321100'); -INSERT INTO `area` VALUES ('884', '润州区', '321111', '321100'); -INSERT INTO `area` VALUES ('885', '丹徒区', '321112', '321100'); -INSERT INTO `area` VALUES ('886', '丹阳市', '321181', '321100'); -INSERT INTO `area` VALUES ('887', '扬中市', '321182', '321100'); -INSERT INTO `area` VALUES ('888', '句容市', '321183', '321100'); -INSERT INTO `area` VALUES ('889', '市辖区', '321201', '321200'); -INSERT INTO `area` VALUES ('890', '海陵区', '321202', '321200'); -INSERT INTO `area` VALUES ('891', '高港区', '321203', '321200'); -INSERT INTO `area` VALUES ('892', '姜堰区', '321204', '321200'); -INSERT INTO `area` VALUES ('893', '兴化市', '321281', '321200'); -INSERT INTO `area` VALUES ('894', '靖江市', '321282', '321200'); -INSERT INTO `area` VALUES ('895', '泰兴市', '321283', '321200'); -INSERT INTO `area` VALUES ('896', '市辖区', '321301', '321300'); -INSERT INTO `area` VALUES ('897', '宿城区', '321302', '321300'); -INSERT INTO `area` VALUES ('898', '宿豫区', '321311', '321300'); -INSERT INTO `area` VALUES ('899', '沭阳县', '321322', '321300'); -INSERT INTO `area` VALUES ('900', '泗阳县', '321323', '321300'); -INSERT INTO `area` VALUES ('901', '泗洪县', '321324', '321300'); -INSERT INTO `area` VALUES ('902', '市辖区', '330101', '330100'); -INSERT INTO `area` VALUES ('903', '上城区', '330102', '330100'); -INSERT INTO `area` VALUES ('904', '下城区', '330103', '330100'); -INSERT INTO `area` VALUES ('905', '江干区', '330104', '330100'); -INSERT INTO `area` VALUES ('906', '拱墅区', '330105', '330100'); -INSERT INTO `area` VALUES ('907', '西湖区', '330106', '330100'); -INSERT INTO `area` VALUES ('908', '滨江区', '330108', '330100'); -INSERT INTO `area` VALUES ('909', '萧山区', '330109', '330100'); -INSERT INTO `area` VALUES ('910', '余杭区', '330110', '330100'); -INSERT INTO `area` VALUES ('911', '富阳区', '330111', '330100'); -INSERT INTO `area` VALUES ('912', '桐庐县', '330122', '330100'); -INSERT INTO `area` VALUES ('913', '淳安县', '330127', '330100'); -INSERT INTO `area` VALUES ('914', '建德市', '330182', '330100'); -INSERT INTO `area` VALUES ('915', '临安市', '330185', '330100'); -INSERT INTO `area` VALUES ('916', '市辖区', '330201', '330200'); -INSERT INTO `area` VALUES ('917', '海曙区', '330203', '330200'); -INSERT INTO `area` VALUES ('918', '江东区', '330204', '330200'); -INSERT INTO `area` VALUES ('919', '江北区', '330205', '330200'); -INSERT INTO `area` VALUES ('920', '北仑区', '330206', '330200'); -INSERT INTO `area` VALUES ('921', '镇海区', '330211', '330200'); -INSERT INTO `area` VALUES ('922', '鄞州区', '330212', '330200'); -INSERT INTO `area` VALUES ('923', '象山县', '330225', '330200'); -INSERT INTO `area` VALUES ('924', '宁海县', '330226', '330200'); -INSERT INTO `area` VALUES ('925', '余姚市', '330281', '330200'); -INSERT INTO `area` VALUES ('926', '慈溪市', '330282', '330200'); -INSERT INTO `area` VALUES ('927', '奉化市', '330283', '330200'); -INSERT INTO `area` VALUES ('928', '市辖区', '330301', '330300'); -INSERT INTO `area` VALUES ('929', '鹿城区', '330302', '330300'); -INSERT INTO `area` VALUES ('930', '龙湾区', '330303', '330300'); -INSERT INTO `area` VALUES ('931', '瓯海区', '330304', '330300'); -INSERT INTO `area` VALUES ('932', '洞头区', '330305', '330300'); -INSERT INTO `area` VALUES ('933', '永嘉县', '330324', '330300'); -INSERT INTO `area` VALUES ('934', '平阳县', '330326', '330300'); -INSERT INTO `area` VALUES ('935', '苍南县', '330327', '330300'); -INSERT INTO `area` VALUES ('936', '文成县', '330328', '330300'); -INSERT INTO `area` VALUES ('937', '泰顺县', '330329', '330300'); -INSERT INTO `area` VALUES ('938', '瑞安市', '330381', '330300'); -INSERT INTO `area` VALUES ('939', '乐清市', '330382', '330300'); -INSERT INTO `area` VALUES ('940', '市辖区', '330401', '330400'); -INSERT INTO `area` VALUES ('941', '南湖区', '330402', '330400'); -INSERT INTO `area` VALUES ('942', '秀洲区', '330411', '330400'); -INSERT INTO `area` VALUES ('943', '嘉善县', '330421', '330400'); -INSERT INTO `area` VALUES ('944', '海盐县', '330424', '330400'); -INSERT INTO `area` VALUES ('945', '海宁市', '330481', '330400'); -INSERT INTO `area` VALUES ('946', '平湖市', '330482', '330400'); -INSERT INTO `area` VALUES ('947', '桐乡市', '330483', '330400'); -INSERT INTO `area` VALUES ('948', '市辖区', '330501', '330500'); -INSERT INTO `area` VALUES ('949', '吴兴区', '330502', '330500'); -INSERT INTO `area` VALUES ('950', '南浔区', '330503', '330500'); -INSERT INTO `area` VALUES ('951', '德清县', '330521', '330500'); -INSERT INTO `area` VALUES ('952', '长兴县', '330522', '330500'); -INSERT INTO `area` VALUES ('953', '安吉县', '330523', '330500'); -INSERT INTO `area` VALUES ('954', '市辖区', '330601', '330600'); -INSERT INTO `area` VALUES ('955', '越城区', '330602', '330600'); -INSERT INTO `area` VALUES ('956', '柯桥区', '330603', '330600'); -INSERT INTO `area` VALUES ('957', '上虞区', '330604', '330600'); -INSERT INTO `area` VALUES ('958', '新昌县', '330624', '330600'); -INSERT INTO `area` VALUES ('959', '诸暨市', '330681', '330600'); -INSERT INTO `area` VALUES ('960', '嵊州市', '330683', '330600'); -INSERT INTO `area` VALUES ('961', '市辖区', '330701', '330700'); -INSERT INTO `area` VALUES ('962', '婺城区', '330702', '330700'); -INSERT INTO `area` VALUES ('963', '金东区', '330703', '330700'); -INSERT INTO `area` VALUES ('964', '武义县', '330723', '330700'); -INSERT INTO `area` VALUES ('965', '浦江县', '330726', '330700'); -INSERT INTO `area` VALUES ('966', '磐安县', '330727', '330700'); -INSERT INTO `area` VALUES ('967', '兰溪市', '330781', '330700'); -INSERT INTO `area` VALUES ('968', '义乌市', '330782', '330700'); -INSERT INTO `area` VALUES ('969', '东阳市', '330783', '330700'); -INSERT INTO `area` VALUES ('970', '永康市', '330784', '330700'); -INSERT INTO `area` VALUES ('971', '市辖区', '330801', '330800'); -INSERT INTO `area` VALUES ('972', '柯城区', '330802', '330800'); -INSERT INTO `area` VALUES ('973', '衢江区', '330803', '330800'); -INSERT INTO `area` VALUES ('974', '常山县', '330822', '330800'); -INSERT INTO `area` VALUES ('975', '开化县', '330824', '330800'); -INSERT INTO `area` VALUES ('976', '龙游县', '330825', '330800'); -INSERT INTO `area` VALUES ('977', '江山市', '330881', '330800'); -INSERT INTO `area` VALUES ('978', '市辖区', '330901', '330900'); -INSERT INTO `area` VALUES ('979', '定海区', '330902', '330900'); -INSERT INTO `area` VALUES ('980', '普陀区', '330903', '330900'); -INSERT INTO `area` VALUES ('981', '岱山县', '330921', '330900'); -INSERT INTO `area` VALUES ('982', '嵊泗县', '330922', '330900'); -INSERT INTO `area` VALUES ('983', '市辖区', '331001', '331000'); -INSERT INTO `area` VALUES ('984', '椒江区', '331002', '331000'); -INSERT INTO `area` VALUES ('985', '黄岩区', '331003', '331000'); -INSERT INTO `area` VALUES ('986', '路桥区', '331004', '331000'); -INSERT INTO `area` VALUES ('987', '玉环县', '331021', '331000'); -INSERT INTO `area` VALUES ('988', '三门县', '331022', '331000'); -INSERT INTO `area` VALUES ('989', '天台县', '331023', '331000'); -INSERT INTO `area` VALUES ('990', '仙居县', '331024', '331000'); -INSERT INTO `area` VALUES ('991', '温岭市', '331081', '331000'); -INSERT INTO `area` VALUES ('992', '临海市', '331082', '331000'); -INSERT INTO `area` VALUES ('993', '市辖区', '331101', '331100'); -INSERT INTO `area` VALUES ('994', '莲都区', '331102', '331100'); -INSERT INTO `area` VALUES ('995', '青田县', '331121', '331100'); -INSERT INTO `area` VALUES ('996', '缙云县', '331122', '331100'); -INSERT INTO `area` VALUES ('997', '遂昌县', '331123', '331100'); -INSERT INTO `area` VALUES ('998', '松阳县', '331124', '331100'); -INSERT INTO `area` VALUES ('999', '云和县', '331125', '331100'); -INSERT INTO `area` VALUES ('1000', '庆元县', '331126', '331100'); -INSERT INTO `area` VALUES ('1001', '景宁畲族自治县', '331127', '331100'); -INSERT INTO `area` VALUES ('1002', '龙泉市', '331181', '331100'); -INSERT INTO `area` VALUES ('1003', '市辖区', '340101', '340100'); -INSERT INTO `area` VALUES ('1004', '瑶海区', '340102', '340100'); -INSERT INTO `area` VALUES ('1005', '庐阳区', '340103', '340100'); -INSERT INTO `area` VALUES ('1006', '蜀山区', '340104', '340100'); -INSERT INTO `area` VALUES ('1007', '包河区', '340111', '340100'); -INSERT INTO `area` VALUES ('1008', '长丰县', '340121', '340100'); -INSERT INTO `area` VALUES ('1009', '肥东县', '340122', '340100'); -INSERT INTO `area` VALUES ('1010', '肥西县', '340123', '340100'); -INSERT INTO `area` VALUES ('1011', '庐江县', '340124', '340100'); -INSERT INTO `area` VALUES ('1012', '巢湖市', '340181', '340100'); -INSERT INTO `area` VALUES ('1013', '市辖区', '340201', '340200'); -INSERT INTO `area` VALUES ('1014', '镜湖区', '340202', '340200'); -INSERT INTO `area` VALUES ('1015', '弋江区', '340203', '340200'); -INSERT INTO `area` VALUES ('1016', '鸠江区', '340207', '340200'); -INSERT INTO `area` VALUES ('1017', '三山区', '340208', '340200'); -INSERT INTO `area` VALUES ('1018', '芜湖县', '340221', '340200'); -INSERT INTO `area` VALUES ('1019', '繁昌县', '340222', '340200'); -INSERT INTO `area` VALUES ('1020', '南陵县', '340223', '340200'); -INSERT INTO `area` VALUES ('1021', '无为县', '340225', '340200'); -INSERT INTO `area` VALUES ('1022', '市辖区', '340301', '340300'); -INSERT INTO `area` VALUES ('1023', '龙子湖区', '340302', '340300'); -INSERT INTO `area` VALUES ('1024', '蚌山区', '340303', '340300'); -INSERT INTO `area` VALUES ('1025', '禹会区', '340304', '340300'); -INSERT INTO `area` VALUES ('1026', '淮上区', '340311', '340300'); -INSERT INTO `area` VALUES ('1027', '怀远县', '340321', '340300'); -INSERT INTO `area` VALUES ('1028', '五河县', '340322', '340300'); -INSERT INTO `area` VALUES ('1029', '固镇县', '340323', '340300'); -INSERT INTO `area` VALUES ('1030', '市辖区', '340401', '340400'); -INSERT INTO `area` VALUES ('1031', '大通区', '340402', '340400'); -INSERT INTO `area` VALUES ('1032', '田家庵区', '340403', '340400'); -INSERT INTO `area` VALUES ('1033', '谢家集区', '340404', '340400'); -INSERT INTO `area` VALUES ('1034', '八公山区', '340405', '340400'); -INSERT INTO `area` VALUES ('1035', '潘集区', '340406', '340400'); -INSERT INTO `area` VALUES ('1036', '凤台县', '340421', '340400'); -INSERT INTO `area` VALUES ('1037', '寿县', '340422', '340400'); -INSERT INTO `area` VALUES ('1038', '市辖区', '340501', '340500'); -INSERT INTO `area` VALUES ('1039', '花山区', '340503', '340500'); -INSERT INTO `area` VALUES ('1040', '雨山区', '340504', '340500'); -INSERT INTO `area` VALUES ('1041', '博望区', '340506', '340500'); -INSERT INTO `area` VALUES ('1042', '当涂县', '340521', '340500'); -INSERT INTO `area` VALUES ('1043', '含山县', '340522', '340500'); -INSERT INTO `area` VALUES ('1044', '和县', '340523', '340500'); -INSERT INTO `area` VALUES ('1045', '市辖区', '340601', '340600'); -INSERT INTO `area` VALUES ('1046', '杜集区', '340602', '340600'); -INSERT INTO `area` VALUES ('1047', '相山区', '340603', '340600'); -INSERT INTO `area` VALUES ('1048', '烈山区', '340604', '340600'); -INSERT INTO `area` VALUES ('1049', '濉溪县', '340621', '340600'); -INSERT INTO `area` VALUES ('1050', '市辖区', '340701', '340700'); -INSERT INTO `area` VALUES ('1051', '铜官区', '340705', '340700'); -INSERT INTO `area` VALUES ('1052', '义安区', '340706', '340700'); -INSERT INTO `area` VALUES ('1053', '郊区', '340711', '340700'); -INSERT INTO `area` VALUES ('1054', '枞阳县', '340722', '340700'); -INSERT INTO `area` VALUES ('1055', '市辖区', '340801', '340800'); -INSERT INTO `area` VALUES ('1056', '迎江区', '340802', '340800'); -INSERT INTO `area` VALUES ('1057', '大观区', '340803', '340800'); -INSERT INTO `area` VALUES ('1058', '宜秀区', '340811', '340800'); -INSERT INTO `area` VALUES ('1059', '怀宁县', '340822', '340800'); -INSERT INTO `area` VALUES ('1060', '潜山县', '340824', '340800'); -INSERT INTO `area` VALUES ('1061', '太湖县', '340825', '340800'); -INSERT INTO `area` VALUES ('1062', '宿松县', '340826', '340800'); -INSERT INTO `area` VALUES ('1063', '望江县', '340827', '340800'); -INSERT INTO `area` VALUES ('1064', '岳西县', '340828', '340800'); -INSERT INTO `area` VALUES ('1065', '桐城市', '340881', '340800'); -INSERT INTO `area` VALUES ('1066', '市辖区', '341001', '341000'); -INSERT INTO `area` VALUES ('1067', '屯溪区', '341002', '341000'); -INSERT INTO `area` VALUES ('1068', '黄山区', '341003', '341000'); -INSERT INTO `area` VALUES ('1069', '徽州区', '341004', '341000'); -INSERT INTO `area` VALUES ('1070', '歙县', '341021', '341000'); -INSERT INTO `area` VALUES ('1071', '休宁县', '341022', '341000'); -INSERT INTO `area` VALUES ('1072', '黟县', '341023', '341000'); -INSERT INTO `area` VALUES ('1073', '祁门县', '341024', '341000'); -INSERT INTO `area` VALUES ('1074', '市辖区', '341101', '341100'); -INSERT INTO `area` VALUES ('1075', '琅琊区', '341102', '341100'); -INSERT INTO `area` VALUES ('1076', '南谯区', '341103', '341100'); -INSERT INTO `area` VALUES ('1077', '来安县', '341122', '341100'); -INSERT INTO `area` VALUES ('1078', '全椒县', '341124', '341100'); -INSERT INTO `area` VALUES ('1079', '定远县', '341125', '341100'); -INSERT INTO `area` VALUES ('1080', '凤阳县', '341126', '341100'); -INSERT INTO `area` VALUES ('1081', '天长市', '341181', '341100'); -INSERT INTO `area` VALUES ('1082', '明光市', '341182', '341100'); -INSERT INTO `area` VALUES ('1083', '市辖区', '341201', '341200'); -INSERT INTO `area` VALUES ('1084', '颍州区', '341202', '341200'); -INSERT INTO `area` VALUES ('1085', '颍东区', '341203', '341200'); -INSERT INTO `area` VALUES ('1086', '颍泉区', '341204', '341200'); -INSERT INTO `area` VALUES ('1087', '临泉县', '341221', '341200'); -INSERT INTO `area` VALUES ('1088', '太和县', '341222', '341200'); -INSERT INTO `area` VALUES ('1089', '阜南县', '341225', '341200'); -INSERT INTO `area` VALUES ('1090', '颍上县', '341226', '341200'); -INSERT INTO `area` VALUES ('1091', '界首市', '341282', '341200'); -INSERT INTO `area` VALUES ('1092', '市辖区', '341301', '341300'); -INSERT INTO `area` VALUES ('1093', '埇桥区', '341302', '341300'); -INSERT INTO `area` VALUES ('1094', '砀山县', '341321', '341300'); -INSERT INTO `area` VALUES ('1095', '萧县', '341322', '341300'); -INSERT INTO `area` VALUES ('1096', '灵璧县', '341323', '341300'); -INSERT INTO `area` VALUES ('1097', '泗县', '341324', '341300'); -INSERT INTO `area` VALUES ('1098', '市辖区', '341501', '341500'); -INSERT INTO `area` VALUES ('1099', '金安区', '341502', '341500'); -INSERT INTO `area` VALUES ('1100', '裕安区', '341503', '341500'); -INSERT INTO `area` VALUES ('1101', '叶集区', '341504', '341500'); -INSERT INTO `area` VALUES ('1102', '霍邱县', '341522', '341500'); -INSERT INTO `area` VALUES ('1103', '舒城县', '341523', '341500'); -INSERT INTO `area` VALUES ('1104', '金寨县', '341524', '341500'); -INSERT INTO `area` VALUES ('1105', '霍山县', '341525', '341500'); -INSERT INTO `area` VALUES ('1106', '市辖区', '341601', '341600'); -INSERT INTO `area` VALUES ('1107', '谯城区', '341602', '341600'); -INSERT INTO `area` VALUES ('1108', '涡阳县', '341621', '341600'); -INSERT INTO `area` VALUES ('1109', '蒙城县', '341622', '341600'); -INSERT INTO `area` VALUES ('1110', '利辛县', '341623', '341600'); -INSERT INTO `area` VALUES ('1111', '市辖区', '341701', '341700'); -INSERT INTO `area` VALUES ('1112', '贵池区', '341702', '341700'); -INSERT INTO `area` VALUES ('1113', '东至县', '341721', '341700'); -INSERT INTO `area` VALUES ('1114', '石台县', '341722', '341700'); -INSERT INTO `area` VALUES ('1115', '青阳县', '341723', '341700'); -INSERT INTO `area` VALUES ('1116', '市辖区', '341801', '341800'); -INSERT INTO `area` VALUES ('1117', '宣州区', '341802', '341800'); -INSERT INTO `area` VALUES ('1118', '郎溪县', '341821', '341800'); -INSERT INTO `area` VALUES ('1119', '广德县', '341822', '341800'); -INSERT INTO `area` VALUES ('1120', '泾县', '341823', '341800'); -INSERT INTO `area` VALUES ('1121', '绩溪县', '341824', '341800'); -INSERT INTO `area` VALUES ('1122', '旌德县', '341825', '341800'); -INSERT INTO `area` VALUES ('1123', '宁国市', '341881', '341800'); -INSERT INTO `area` VALUES ('1124', '市辖区', '350101', '350100'); -INSERT INTO `area` VALUES ('1125', '鼓楼区', '350102', '350100'); -INSERT INTO `area` VALUES ('1126', '台江区', '350103', '350100'); -INSERT INTO `area` VALUES ('1127', '仓山区', '350104', '350100'); -INSERT INTO `area` VALUES ('1128', '马尾区', '350105', '350100'); -INSERT INTO `area` VALUES ('1129', '晋安区', '350111', '350100'); -INSERT INTO `area` VALUES ('1130', '闽侯县', '350121', '350100'); -INSERT INTO `area` VALUES ('1131', '连江县', '350122', '350100'); -INSERT INTO `area` VALUES ('1132', '罗源县', '350123', '350100'); -INSERT INTO `area` VALUES ('1133', '闽清县', '350124', '350100'); -INSERT INTO `area` VALUES ('1134', '永泰县', '350125', '350100'); -INSERT INTO `area` VALUES ('1135', '平潭县', '350128', '350100'); -INSERT INTO `area` VALUES ('1136', '福清市', '350181', '350100'); -INSERT INTO `area` VALUES ('1137', '长乐市', '350182', '350100'); -INSERT INTO `area` VALUES ('1138', '市辖区', '350201', '350200'); -INSERT INTO `area` VALUES ('1139', '思明区', '350203', '350200'); -INSERT INTO `area` VALUES ('1140', '海沧区', '350205', '350200'); -INSERT INTO `area` VALUES ('1141', '湖里区', '350206', '350200'); -INSERT INTO `area` VALUES ('1142', '集美区', '350211', '350200'); -INSERT INTO `area` VALUES ('1143', '同安区', '350212', '350200'); -INSERT INTO `area` VALUES ('1144', '翔安区', '350213', '350200'); -INSERT INTO `area` VALUES ('1145', '市辖区', '350301', '350300'); -INSERT INTO `area` VALUES ('1146', '城厢区', '350302', '350300'); -INSERT INTO `area` VALUES ('1147', '涵江区', '350303', '350300'); -INSERT INTO `area` VALUES ('1148', '荔城区', '350304', '350300'); -INSERT INTO `area` VALUES ('1149', '秀屿区', '350305', '350300'); -INSERT INTO `area` VALUES ('1150', '仙游县', '350322', '350300'); -INSERT INTO `area` VALUES ('1151', '市辖区', '350401', '350400'); -INSERT INTO `area` VALUES ('1152', '梅列区', '350402', '350400'); -INSERT INTO `area` VALUES ('1153', '三元区', '350403', '350400'); -INSERT INTO `area` VALUES ('1154', '明溪县', '350421', '350400'); -INSERT INTO `area` VALUES ('1155', '清流县', '350423', '350400'); -INSERT INTO `area` VALUES ('1156', '宁化县', '350424', '350400'); -INSERT INTO `area` VALUES ('1157', '大田县', '350425', '350400'); -INSERT INTO `area` VALUES ('1158', '尤溪县', '350426', '350400'); -INSERT INTO `area` VALUES ('1159', '沙县', '350427', '350400'); -INSERT INTO `area` VALUES ('1160', '将乐县', '350428', '350400'); -INSERT INTO `area` VALUES ('1161', '泰宁县', '350429', '350400'); -INSERT INTO `area` VALUES ('1162', '建宁县', '350430', '350400'); -INSERT INTO `area` VALUES ('1163', '永安市', '350481', '350400'); -INSERT INTO `area` VALUES ('1164', '市辖区', '350501', '350500'); -INSERT INTO `area` VALUES ('1165', '鲤城区', '350502', '350500'); -INSERT INTO `area` VALUES ('1166', '丰泽区', '350503', '350500'); -INSERT INTO `area` VALUES ('1167', '洛江区', '350504', '350500'); -INSERT INTO `area` VALUES ('1168', '泉港区', '350505', '350500'); -INSERT INTO `area` VALUES ('1169', '惠安县', '350521', '350500'); -INSERT INTO `area` VALUES ('1170', '安溪县', '350524', '350500'); -INSERT INTO `area` VALUES ('1171', '永春县', '350525', '350500'); -INSERT INTO `area` VALUES ('1172', '德化县', '350526', '350500'); -INSERT INTO `area` VALUES ('1173', '金门县', '350527', '350500'); -INSERT INTO `area` VALUES ('1174', '石狮市', '350581', '350500'); -INSERT INTO `area` VALUES ('1175', '晋江市', '350582', '350500'); -INSERT INTO `area` VALUES ('1176', '南安市', '350583', '350500'); -INSERT INTO `area` VALUES ('1177', '市辖区', '350601', '350600'); -INSERT INTO `area` VALUES ('1178', '芗城区', '350602', '350600'); -INSERT INTO `area` VALUES ('1179', '龙文区', '350603', '350600'); -INSERT INTO `area` VALUES ('1180', '云霄县', '350622', '350600'); -INSERT INTO `area` VALUES ('1181', '漳浦县', '350623', '350600'); -INSERT INTO `area` VALUES ('1182', '诏安县', '350624', '350600'); -INSERT INTO `area` VALUES ('1183', '长泰县', '350625', '350600'); -INSERT INTO `area` VALUES ('1184', '东山县', '350626', '350600'); -INSERT INTO `area` VALUES ('1185', '南靖县', '350627', '350600'); -INSERT INTO `area` VALUES ('1186', '平和县', '350628', '350600'); -INSERT INTO `area` VALUES ('1187', '华安县', '350629', '350600'); -INSERT INTO `area` VALUES ('1188', '龙海市', '350681', '350600'); -INSERT INTO `area` VALUES ('1189', '市辖区', '350701', '350700'); -INSERT INTO `area` VALUES ('1190', '延平区', '350702', '350700'); -INSERT INTO `area` VALUES ('1191', '建阳区', '350703', '350700'); -INSERT INTO `area` VALUES ('1192', '顺昌县', '350721', '350700'); -INSERT INTO `area` VALUES ('1193', '浦城县', '350722', '350700'); -INSERT INTO `area` VALUES ('1194', '光泽县', '350723', '350700'); -INSERT INTO `area` VALUES ('1195', '松溪县', '350724', '350700'); -INSERT INTO `area` VALUES ('1196', '政和县', '350725', '350700'); -INSERT INTO `area` VALUES ('1197', '邵武市', '350781', '350700'); -INSERT INTO `area` VALUES ('1198', '武夷山市', '350782', '350700'); -INSERT INTO `area` VALUES ('1199', '建瓯市', '350783', '350700'); -INSERT INTO `area` VALUES ('1200', '市辖区', '350801', '350800'); -INSERT INTO `area` VALUES ('1201', '新罗区', '350802', '350800'); -INSERT INTO `area` VALUES ('1202', '永定区', '350803', '350800'); -INSERT INTO `area` VALUES ('1203', '长汀县', '350821', '350800'); -INSERT INTO `area` VALUES ('1204', '上杭县', '350823', '350800'); -INSERT INTO `area` VALUES ('1205', '武平县', '350824', '350800'); -INSERT INTO `area` VALUES ('1206', '连城县', '350825', '350800'); -INSERT INTO `area` VALUES ('1207', '漳平市', '350881', '350800'); -INSERT INTO `area` VALUES ('1208', '市辖区', '350901', '350900'); -INSERT INTO `area` VALUES ('1209', '蕉城区', '350902', '350900'); -INSERT INTO `area` VALUES ('1210', '霞浦县', '350921', '350900'); -INSERT INTO `area` VALUES ('1211', '古田县', '350922', '350900'); -INSERT INTO `area` VALUES ('1212', '屏南县', '350923', '350900'); -INSERT INTO `area` VALUES ('1213', '寿宁县', '350924', '350900'); -INSERT INTO `area` VALUES ('1214', '周宁县', '350925', '350900'); -INSERT INTO `area` VALUES ('1215', '柘荣县', '350926', '350900'); -INSERT INTO `area` VALUES ('1216', '福安市', '350981', '350900'); -INSERT INTO `area` VALUES ('1217', '福鼎市', '350982', '350900'); -INSERT INTO `area` VALUES ('1218', '市辖区', '360101', '360100'); -INSERT INTO `area` VALUES ('1219', '东湖区', '360102', '360100'); -INSERT INTO `area` VALUES ('1220', '西湖区', '360103', '360100'); -INSERT INTO `area` VALUES ('1221', '青云谱区', '360104', '360100'); -INSERT INTO `area` VALUES ('1222', '湾里区', '360105', '360100'); -INSERT INTO `area` VALUES ('1223', '青山湖区', '360111', '360100'); -INSERT INTO `area` VALUES ('1224', '新建区', '360112', '360100'); -INSERT INTO `area` VALUES ('1225', '南昌县', '360121', '360100'); -INSERT INTO `area` VALUES ('1226', '安义县', '360123', '360100'); -INSERT INTO `area` VALUES ('1227', '进贤县', '360124', '360100'); -INSERT INTO `area` VALUES ('1228', '市辖区', '360201', '360200'); -INSERT INTO `area` VALUES ('1229', '昌江区', '360202', '360200'); -INSERT INTO `area` VALUES ('1230', '珠山区', '360203', '360200'); -INSERT INTO `area` VALUES ('1231', '浮梁县', '360222', '360200'); -INSERT INTO `area` VALUES ('1232', '乐平市', '360281', '360200'); -INSERT INTO `area` VALUES ('1233', '市辖区', '360301', '360300'); -INSERT INTO `area` VALUES ('1234', '安源区', '360302', '360300'); -INSERT INTO `area` VALUES ('1235', '湘东区', '360313', '360300'); -INSERT INTO `area` VALUES ('1236', '莲花县', '360321', '360300'); -INSERT INTO `area` VALUES ('1237', '上栗县', '360322', '360300'); -INSERT INTO `area` VALUES ('1238', '芦溪县', '360323', '360300'); -INSERT INTO `area` VALUES ('1239', '市辖区', '360401', '360400'); -INSERT INTO `area` VALUES ('1240', '濂溪区', '360402', '360400'); -INSERT INTO `area` VALUES ('1241', '浔阳区', '360403', '360400'); -INSERT INTO `area` VALUES ('1242', '九江县', '360421', '360400'); -INSERT INTO `area` VALUES ('1243', '武宁县', '360423', '360400'); -INSERT INTO `area` VALUES ('1244', '修水县', '360424', '360400'); -INSERT INTO `area` VALUES ('1245', '永修县', '360425', '360400'); -INSERT INTO `area` VALUES ('1246', '德安县', '360426', '360400'); -INSERT INTO `area` VALUES ('1247', '都昌县', '360428', '360400'); -INSERT INTO `area` VALUES ('1248', '湖口县', '360429', '360400'); -INSERT INTO `area` VALUES ('1249', '彭泽县', '360430', '360400'); -INSERT INTO `area` VALUES ('1250', '瑞昌市', '360481', '360400'); -INSERT INTO `area` VALUES ('1251', '共青城市', '360482', '360400'); -INSERT INTO `area` VALUES ('1252', '庐山市', '360483', '360400'); -INSERT INTO `area` VALUES ('1253', '市辖区', '360501', '360500'); -INSERT INTO `area` VALUES ('1254', '渝水区', '360502', '360500'); -INSERT INTO `area` VALUES ('1255', '分宜县', '360521', '360500'); -INSERT INTO `area` VALUES ('1256', '市辖区', '360601', '360600'); -INSERT INTO `area` VALUES ('1257', '月湖区', '360602', '360600'); -INSERT INTO `area` VALUES ('1258', '余江县', '360622', '360600'); -INSERT INTO `area` VALUES ('1259', '贵溪市', '360681', '360600'); -INSERT INTO `area` VALUES ('1260', '市辖区', '360701', '360700'); -INSERT INTO `area` VALUES ('1261', '章贡区', '360702', '360700'); -INSERT INTO `area` VALUES ('1262', '南康区', '360703', '360700'); -INSERT INTO `area` VALUES ('1263', '赣县', '360721', '360700'); -INSERT INTO `area` VALUES ('1264', '信丰县', '360722', '360700'); -INSERT INTO `area` VALUES ('1265', '大余县', '360723', '360700'); -INSERT INTO `area` VALUES ('1266', '上犹县', '360724', '360700'); -INSERT INTO `area` VALUES ('1267', '崇义县', '360725', '360700'); -INSERT INTO `area` VALUES ('1268', '安远县', '360726', '360700'); -INSERT INTO `area` VALUES ('1269', '龙南县', '360727', '360700'); -INSERT INTO `area` VALUES ('1270', '定南县', '360728', '360700'); -INSERT INTO `area` VALUES ('1271', '全南县', '360729', '360700'); -INSERT INTO `area` VALUES ('1272', '宁都县', '360730', '360700'); -INSERT INTO `area` VALUES ('1273', '于都县', '360731', '360700'); -INSERT INTO `area` VALUES ('1274', '兴国县', '360732', '360700'); -INSERT INTO `area` VALUES ('1275', '会昌县', '360733', '360700'); -INSERT INTO `area` VALUES ('1276', '寻乌县', '360734', '360700'); -INSERT INTO `area` VALUES ('1277', '石城县', '360735', '360700'); -INSERT INTO `area` VALUES ('1278', '瑞金市', '360781', '360700'); -INSERT INTO `area` VALUES ('1279', '市辖区', '360801', '360800'); -INSERT INTO `area` VALUES ('1280', '吉州区', '360802', '360800'); -INSERT INTO `area` VALUES ('1281', '青原区', '360803', '360800'); -INSERT INTO `area` VALUES ('1282', '吉安县', '360821', '360800'); -INSERT INTO `area` VALUES ('1283', '吉水县', '360822', '360800'); -INSERT INTO `area` VALUES ('1284', '峡江县', '360823', '360800'); -INSERT INTO `area` VALUES ('1285', '新干县', '360824', '360800'); -INSERT INTO `area` VALUES ('1286', '永丰县', '360825', '360800'); -INSERT INTO `area` VALUES ('1287', '泰和县', '360826', '360800'); -INSERT INTO `area` VALUES ('1288', '遂川县', '360827', '360800'); -INSERT INTO `area` VALUES ('1289', '万安县', '360828', '360800'); -INSERT INTO `area` VALUES ('1290', '安福县', '360829', '360800'); -INSERT INTO `area` VALUES ('1291', '永新县', '360830', '360800'); -INSERT INTO `area` VALUES ('1292', '井冈山市', '360881', '360800'); -INSERT INTO `area` VALUES ('1293', '市辖区', '360901', '360900'); -INSERT INTO `area` VALUES ('1294', '袁州区', '360902', '360900'); -INSERT INTO `area` VALUES ('1295', '奉新县', '360921', '360900'); -INSERT INTO `area` VALUES ('1296', '万载县', '360922', '360900'); -INSERT INTO `area` VALUES ('1297', '上高县', '360923', '360900'); -INSERT INTO `area` VALUES ('1298', '宜丰县', '360924', '360900'); -INSERT INTO `area` VALUES ('1299', '靖安县', '360925', '360900'); -INSERT INTO `area` VALUES ('1300', '铜鼓县', '360926', '360900'); -INSERT INTO `area` VALUES ('1301', '丰城市', '360981', '360900'); -INSERT INTO `area` VALUES ('1302', '樟树市', '360982', '360900'); -INSERT INTO `area` VALUES ('1303', '高安市', '360983', '360900'); -INSERT INTO `area` VALUES ('1304', '市辖区', '361001', '361000'); -INSERT INTO `area` VALUES ('1305', '临川区', '361002', '361000'); -INSERT INTO `area` VALUES ('1306', '南城县', '361021', '361000'); -INSERT INTO `area` VALUES ('1307', '黎川县', '361022', '361000'); -INSERT INTO `area` VALUES ('1308', '南丰县', '361023', '361000'); -INSERT INTO `area` VALUES ('1309', '崇仁县', '361024', '361000'); -INSERT INTO `area` VALUES ('1310', '乐安县', '361025', '361000'); -INSERT INTO `area` VALUES ('1311', '宜黄县', '361026', '361000'); -INSERT INTO `area` VALUES ('1312', '金溪县', '361027', '361000'); -INSERT INTO `area` VALUES ('1313', '资溪县', '361028', '361000'); -INSERT INTO `area` VALUES ('1314', '东乡县', '361029', '361000'); -INSERT INTO `area` VALUES ('1315', '广昌县', '361030', '361000'); -INSERT INTO `area` VALUES ('1316', '市辖区', '361101', '361100'); -INSERT INTO `area` VALUES ('1317', '信州区', '361102', '361100'); -INSERT INTO `area` VALUES ('1318', '广丰区', '361103', '361100'); -INSERT INTO `area` VALUES ('1319', '上饶县', '361121', '361100'); -INSERT INTO `area` VALUES ('1320', '玉山县', '361123', '361100'); -INSERT INTO `area` VALUES ('1321', '铅山县', '361124', '361100'); -INSERT INTO `area` VALUES ('1322', '横峰县', '361125', '361100'); -INSERT INTO `area` VALUES ('1323', '弋阳县', '361126', '361100'); -INSERT INTO `area` VALUES ('1324', '余干县', '361127', '361100'); -INSERT INTO `area` VALUES ('1325', '鄱阳县', '361128', '361100'); -INSERT INTO `area` VALUES ('1326', '万年县', '361129', '361100'); -INSERT INTO `area` VALUES ('1327', '婺源县', '361130', '361100'); -INSERT INTO `area` VALUES ('1328', '德兴市', '361181', '361100'); -INSERT INTO `area` VALUES ('1329', '市辖区', '370101', '370100'); -INSERT INTO `area` VALUES ('1330', '历下区', '370102', '370100'); -INSERT INTO `area` VALUES ('1331', '市中区', '370103', '370100'); -INSERT INTO `area` VALUES ('1332', '槐荫区', '370104', '370100'); -INSERT INTO `area` VALUES ('1333', '天桥区', '370105', '370100'); -INSERT INTO `area` VALUES ('1334', '历城区', '370112', '370100'); -INSERT INTO `area` VALUES ('1335', '长清区', '370113', '370100'); -INSERT INTO `area` VALUES ('1336', '平阴县', '370124', '370100'); -INSERT INTO `area` VALUES ('1337', '济阳县', '370125', '370100'); -INSERT INTO `area` VALUES ('1338', '商河县', '370126', '370100'); -INSERT INTO `area` VALUES ('1339', '章丘市', '370181', '370100'); -INSERT INTO `area` VALUES ('1340', '市辖区', '370201', '370200'); -INSERT INTO `area` VALUES ('1341', '市南区', '370202', '370200'); -INSERT INTO `area` VALUES ('1342', '市北区', '370203', '370200'); -INSERT INTO `area` VALUES ('1343', '黄岛区', '370211', '370200'); -INSERT INTO `area` VALUES ('1344', '崂山区', '370212', '370200'); -INSERT INTO `area` VALUES ('1345', '李沧区', '370213', '370200'); -INSERT INTO `area` VALUES ('1346', '城阳区', '370214', '370200'); -INSERT INTO `area` VALUES ('1347', '胶州市', '370281', '370200'); -INSERT INTO `area` VALUES ('1348', '即墨市', '370282', '370200'); -INSERT INTO `area` VALUES ('1349', '平度市', '370283', '370200'); -INSERT INTO `area` VALUES ('1350', '莱西市', '370285', '370200'); -INSERT INTO `area` VALUES ('1351', '市辖区', '370301', '370300'); -INSERT INTO `area` VALUES ('1352', '淄川区', '370302', '370300'); -INSERT INTO `area` VALUES ('1353', '张店区', '370303', '370300'); -INSERT INTO `area` VALUES ('1354', '博山区', '370304', '370300'); -INSERT INTO `area` VALUES ('1355', '临淄区', '370305', '370300'); -INSERT INTO `area` VALUES ('1356', '周村区', '370306', '370300'); -INSERT INTO `area` VALUES ('1357', '桓台县', '370321', '370300'); -INSERT INTO `area` VALUES ('1358', '高青县', '370322', '370300'); -INSERT INTO `area` VALUES ('1359', '沂源县', '370323', '370300'); -INSERT INTO `area` VALUES ('1360', '市辖区', '370401', '370400'); -INSERT INTO `area` VALUES ('1361', '市中区', '370402', '370400'); -INSERT INTO `area` VALUES ('1362', '薛城区', '370403', '370400'); -INSERT INTO `area` VALUES ('1363', '峄城区', '370404', '370400'); -INSERT INTO `area` VALUES ('1364', '台儿庄区', '370405', '370400'); -INSERT INTO `area` VALUES ('1365', '山亭区', '370406', '370400'); -INSERT INTO `area` VALUES ('1366', '滕州市', '370481', '370400'); -INSERT INTO `area` VALUES ('1367', '市辖区', '370501', '370500'); -INSERT INTO `area` VALUES ('1368', '东营区', '370502', '370500'); -INSERT INTO `area` VALUES ('1369', '河口区', '370503', '370500'); -INSERT INTO `area` VALUES ('1370', '垦利区', '370505', '370500'); -INSERT INTO `area` VALUES ('1371', '利津县', '370522', '370500'); -INSERT INTO `area` VALUES ('1372', '广饶县', '370523', '370500'); -INSERT INTO `area` VALUES ('1373', '市辖区', '370601', '370600'); -INSERT INTO `area` VALUES ('1374', '芝罘区', '370602', '370600'); -INSERT INTO `area` VALUES ('1375', '福山区', '370611', '370600'); -INSERT INTO `area` VALUES ('1376', '牟平区', '370612', '370600'); -INSERT INTO `area` VALUES ('1377', '莱山区', '370613', '370600'); -INSERT INTO `area` VALUES ('1378', '长岛县', '370634', '370600'); -INSERT INTO `area` VALUES ('1379', '龙口市', '370681', '370600'); -INSERT INTO `area` VALUES ('1380', '莱阳市', '370682', '370600'); -INSERT INTO `area` VALUES ('1381', '莱州市', '370683', '370600'); -INSERT INTO `area` VALUES ('1382', '蓬莱市', '370684', '370600'); -INSERT INTO `area` VALUES ('1383', '招远市', '370685', '370600'); -INSERT INTO `area` VALUES ('1384', '栖霞市', '370686', '370600'); -INSERT INTO `area` VALUES ('1385', '海阳市', '370687', '370600'); -INSERT INTO `area` VALUES ('1386', '市辖区', '370701', '370700'); -INSERT INTO `area` VALUES ('1387', '潍城区', '370702', '370700'); -INSERT INTO `area` VALUES ('1388', '寒亭区', '370703', '370700'); -INSERT INTO `area` VALUES ('1389', '坊子区', '370704', '370700'); -INSERT INTO `area` VALUES ('1390', '奎文区', '370705', '370700'); -INSERT INTO `area` VALUES ('1391', '临朐县', '370724', '370700'); -INSERT INTO `area` VALUES ('1392', '昌乐县', '370725', '370700'); -INSERT INTO `area` VALUES ('1393', '青州市', '370781', '370700'); -INSERT INTO `area` VALUES ('1394', '诸城市', '370782', '370700'); -INSERT INTO `area` VALUES ('1395', '寿光市', '370783', '370700'); -INSERT INTO `area` VALUES ('1396', '安丘市', '370784', '370700'); -INSERT INTO `area` VALUES ('1397', '高密市', '370785', '370700'); -INSERT INTO `area` VALUES ('1398', '昌邑市', '370786', '370700'); -INSERT INTO `area` VALUES ('1399', '市辖区', '370801', '370800'); -INSERT INTO `area` VALUES ('1400', '任城区', '370811', '370800'); -INSERT INTO `area` VALUES ('1401', '兖州区', '370812', '370800'); -INSERT INTO `area` VALUES ('1402', '微山县', '370826', '370800'); -INSERT INTO `area` VALUES ('1403', '鱼台县', '370827', '370800'); -INSERT INTO `area` VALUES ('1404', '金乡县', '370828', '370800'); -INSERT INTO `area` VALUES ('1405', '嘉祥县', '370829', '370800'); -INSERT INTO `area` VALUES ('1406', '汶上县', '370830', '370800'); -INSERT INTO `area` VALUES ('1407', '泗水县', '370831', '370800'); -INSERT INTO `area` VALUES ('1408', '梁山县', '370832', '370800'); -INSERT INTO `area` VALUES ('1409', '曲阜市', '370881', '370800'); -INSERT INTO `area` VALUES ('1410', '邹城市', '370883', '370800'); -INSERT INTO `area` VALUES ('1411', '市辖区', '370901', '370900'); -INSERT INTO `area` VALUES ('1412', '泰山区', '370902', '370900'); -INSERT INTO `area` VALUES ('1413', '岱岳区', '370911', '370900'); -INSERT INTO `area` VALUES ('1414', '宁阳县', '370921', '370900'); -INSERT INTO `area` VALUES ('1415', '东平县', '370923', '370900'); -INSERT INTO `area` VALUES ('1416', '新泰市', '370982', '370900'); -INSERT INTO `area` VALUES ('1417', '肥城市', '370983', '370900'); -INSERT INTO `area` VALUES ('1418', '市辖区', '371001', '371000'); -INSERT INTO `area` VALUES ('1419', '环翠区', '371002', '371000'); -INSERT INTO `area` VALUES ('1420', '文登区', '371003', '371000'); -INSERT INTO `area` VALUES ('1421', '荣成市', '371082', '371000'); -INSERT INTO `area` VALUES ('1422', '乳山市', '371083', '371000'); -INSERT INTO `area` VALUES ('1423', '市辖区', '371101', '371100'); -INSERT INTO `area` VALUES ('1424', '东港区', '371102', '371100'); -INSERT INTO `area` VALUES ('1425', '岚山区', '371103', '371100'); -INSERT INTO `area` VALUES ('1426', '五莲县', '371121', '371100'); -INSERT INTO `area` VALUES ('1427', '莒县', '371122', '371100'); -INSERT INTO `area` VALUES ('1428', '市辖区', '371201', '371200'); -INSERT INTO `area` VALUES ('1429', '莱城区', '371202', '371200'); -INSERT INTO `area` VALUES ('1430', '钢城区', '371203', '371200'); -INSERT INTO `area` VALUES ('1431', '市辖区', '371301', '371300'); -INSERT INTO `area` VALUES ('1432', '兰山区', '371302', '371300'); -INSERT INTO `area` VALUES ('1433', '罗庄区', '371311', '371300'); -INSERT INTO `area` VALUES ('1434', '河东区', '371312', '371300'); -INSERT INTO `area` VALUES ('1435', '沂南县', '371321', '371300'); -INSERT INTO `area` VALUES ('1436', '郯城县', '371322', '371300'); -INSERT INTO `area` VALUES ('1437', '沂水县', '371323', '371300'); -INSERT INTO `area` VALUES ('1438', '兰陵县', '371324', '371300'); -INSERT INTO `area` VALUES ('1439', '费县', '371325', '371300'); -INSERT INTO `area` VALUES ('1440', '平邑县', '371326', '371300'); -INSERT INTO `area` VALUES ('1441', '莒南县', '371327', '371300'); -INSERT INTO `area` VALUES ('1442', '蒙阴县', '371328', '371300'); -INSERT INTO `area` VALUES ('1443', '临沭县', '371329', '371300'); -INSERT INTO `area` VALUES ('1444', '市辖区', '371401', '371400'); -INSERT INTO `area` VALUES ('1445', '德城区', '371402', '371400'); -INSERT INTO `area` VALUES ('1446', '陵城区', '371403', '371400'); -INSERT INTO `area` VALUES ('1447', '宁津县', '371422', '371400'); -INSERT INTO `area` VALUES ('1448', '庆云县', '371423', '371400'); -INSERT INTO `area` VALUES ('1449', '临邑县', '371424', '371400'); -INSERT INTO `area` VALUES ('1450', '齐河县', '371425', '371400'); -INSERT INTO `area` VALUES ('1451', '平原县', '371426', '371400'); -INSERT INTO `area` VALUES ('1452', '夏津县', '371427', '371400'); -INSERT INTO `area` VALUES ('1453', '武城县', '371428', '371400'); -INSERT INTO `area` VALUES ('1454', '乐陵市', '371481', '371400'); -INSERT INTO `area` VALUES ('1455', '禹城市', '371482', '371400'); -INSERT INTO `area` VALUES ('1456', '市辖区', '371501', '371500'); -INSERT INTO `area` VALUES ('1457', '东昌府区', '371502', '371500'); -INSERT INTO `area` VALUES ('1458', '阳谷县', '371521', '371500'); -INSERT INTO `area` VALUES ('1459', '莘县', '371522', '371500'); -INSERT INTO `area` VALUES ('1460', '茌平县', '371523', '371500'); -INSERT INTO `area` VALUES ('1461', '东阿县', '371524', '371500'); -INSERT INTO `area` VALUES ('1462', '冠县', '371525', '371500'); -INSERT INTO `area` VALUES ('1463', '高唐县', '371526', '371500'); -INSERT INTO `area` VALUES ('1464', '临清市', '371581', '371500'); -INSERT INTO `area` VALUES ('1465', '市辖区', '371601', '371600'); -INSERT INTO `area` VALUES ('1466', '滨城区', '371602', '371600'); -INSERT INTO `area` VALUES ('1467', '沾化区', '371603', '371600'); -INSERT INTO `area` VALUES ('1468', '惠民县', '371621', '371600'); -INSERT INTO `area` VALUES ('1469', '阳信县', '371622', '371600'); -INSERT INTO `area` VALUES ('1470', '无棣县', '371623', '371600'); -INSERT INTO `area` VALUES ('1471', '博兴县', '371625', '371600'); -INSERT INTO `area` VALUES ('1472', '邹平县', '371626', '371600'); -INSERT INTO `area` VALUES ('1473', '市辖区', '371701', '371700'); -INSERT INTO `area` VALUES ('1474', '牡丹区', '371702', '371700'); -INSERT INTO `area` VALUES ('1475', '定陶区', '371703', '371700'); -INSERT INTO `area` VALUES ('1476', '曹县', '371721', '371700'); -INSERT INTO `area` VALUES ('1477', '单县', '371722', '371700'); -INSERT INTO `area` VALUES ('1478', '成武县', '371723', '371700'); -INSERT INTO `area` VALUES ('1479', '巨野县', '371724', '371700'); -INSERT INTO `area` VALUES ('1480', '郓城县', '371725', '371700'); -INSERT INTO `area` VALUES ('1481', '鄄城县', '371726', '371700'); -INSERT INTO `area` VALUES ('1482', '东明县', '371728', '371700'); -INSERT INTO `area` VALUES ('1483', '市辖区', '410101', '410100'); -INSERT INTO `area` VALUES ('1484', '中原区', '410102', '410100'); -INSERT INTO `area` VALUES ('1485', '二七区', '410103', '410100'); -INSERT INTO `area` VALUES ('1486', '管城回族区', '410104', '410100'); -INSERT INTO `area` VALUES ('1487', '金水区', '410105', '410100'); -INSERT INTO `area` VALUES ('1488', '上街区', '410106', '410100'); -INSERT INTO `area` VALUES ('1489', '惠济区', '410108', '410100'); -INSERT INTO `area` VALUES ('1490', '中牟县', '410122', '410100'); -INSERT INTO `area` VALUES ('1491', '巩义市', '410181', '410100'); -INSERT INTO `area` VALUES ('1492', '荥阳市', '410182', '410100'); -INSERT INTO `area` VALUES ('1493', '新密市', '410183', '410100'); -INSERT INTO `area` VALUES ('1494', '新郑市', '410184', '410100'); -INSERT INTO `area` VALUES ('1495', '登封市', '410185', '410100'); -INSERT INTO `area` VALUES ('1496', '市辖区', '410201', '410200'); -INSERT INTO `area` VALUES ('1497', '龙亭区', '410202', '410200'); -INSERT INTO `area` VALUES ('1498', '顺河回族区', '410203', '410200'); -INSERT INTO `area` VALUES ('1499', '鼓楼区', '410204', '410200'); -INSERT INTO `area` VALUES ('1500', '禹王台区', '410205', '410200'); -INSERT INTO `area` VALUES ('1501', '金明区', '410211', '410200'); -INSERT INTO `area` VALUES ('1502', '祥符区', '410212', '410200'); -INSERT INTO `area` VALUES ('1503', '杞县', '410221', '410200'); -INSERT INTO `area` VALUES ('1504', '通许县', '410222', '410200'); -INSERT INTO `area` VALUES ('1505', '尉氏县', '410223', '410200'); -INSERT INTO `area` VALUES ('1506', '兰考县', '410225', '410200'); -INSERT INTO `area` VALUES ('1507', '市辖区', '410301', '410300'); -INSERT INTO `area` VALUES ('1508', '老城区', '410302', '410300'); -INSERT INTO `area` VALUES ('1509', '西工区', '410303', '410300'); -INSERT INTO `area` VALUES ('1510', '瀍河回族区', '410304', '410300'); -INSERT INTO `area` VALUES ('1511', '涧西区', '410305', '410300'); -INSERT INTO `area` VALUES ('1512', '吉利区', '410306', '410300'); -INSERT INTO `area` VALUES ('1513', '洛龙区', '410311', '410300'); -INSERT INTO `area` VALUES ('1514', '孟津县', '410322', '410300'); -INSERT INTO `area` VALUES ('1515', '新安县', '410323', '410300'); -INSERT INTO `area` VALUES ('1516', '栾川县', '410324', '410300'); -INSERT INTO `area` VALUES ('1517', '嵩县', '410325', '410300'); -INSERT INTO `area` VALUES ('1518', '汝阳县', '410326', '410300'); -INSERT INTO `area` VALUES ('1519', '宜阳县', '410327', '410300'); -INSERT INTO `area` VALUES ('1520', '洛宁县', '410328', '410300'); -INSERT INTO `area` VALUES ('1521', '伊川县', '410329', '410300'); -INSERT INTO `area` VALUES ('1522', '偃师市', '410381', '410300'); -INSERT INTO `area` VALUES ('1523', '市辖区', '410401', '410400'); -INSERT INTO `area` VALUES ('1524', '新华区', '410402', '410400'); -INSERT INTO `area` VALUES ('1525', '卫东区', '410403', '410400'); -INSERT INTO `area` VALUES ('1526', '石龙区', '410404', '410400'); -INSERT INTO `area` VALUES ('1527', '湛河区', '410411', '410400'); -INSERT INTO `area` VALUES ('1528', '宝丰县', '410421', '410400'); -INSERT INTO `area` VALUES ('1529', '叶县', '410422', '410400'); -INSERT INTO `area` VALUES ('1530', '鲁山县', '410423', '410400'); -INSERT INTO `area` VALUES ('1531', '郏县', '410425', '410400'); -INSERT INTO `area` VALUES ('1532', '舞钢市', '410481', '410400'); -INSERT INTO `area` VALUES ('1533', '汝州市', '410482', '410400'); -INSERT INTO `area` VALUES ('1534', '市辖区', '410501', '410500'); -INSERT INTO `area` VALUES ('1535', '文峰区', '410502', '410500'); -INSERT INTO `area` VALUES ('1536', '北关区', '410503', '410500'); -INSERT INTO `area` VALUES ('1537', '殷都区', '410505', '410500'); -INSERT INTO `area` VALUES ('1538', '龙安区', '410506', '410500'); -INSERT INTO `area` VALUES ('1539', '安阳县', '410522', '410500'); -INSERT INTO `area` VALUES ('1540', '汤阴县', '410523', '410500'); -INSERT INTO `area` VALUES ('1541', '滑县', '410526', '410500'); -INSERT INTO `area` VALUES ('1542', '内黄县', '410527', '410500'); -INSERT INTO `area` VALUES ('1543', '林州市', '410581', '410500'); -INSERT INTO `area` VALUES ('1544', '市辖区', '410601', '410600'); -INSERT INTO `area` VALUES ('1545', '鹤山区', '410602', '410600'); -INSERT INTO `area` VALUES ('1546', '山城区', '410603', '410600'); -INSERT INTO `area` VALUES ('1547', '淇滨区', '410611', '410600'); -INSERT INTO `area` VALUES ('1548', '浚县', '410621', '410600'); -INSERT INTO `area` VALUES ('1549', '淇县', '410622', '410600'); -INSERT INTO `area` VALUES ('1550', '市辖区', '410701', '410700'); -INSERT INTO `area` VALUES ('1551', '红旗区', '410702', '410700'); -INSERT INTO `area` VALUES ('1552', '卫滨区', '410703', '410700'); -INSERT INTO `area` VALUES ('1553', '凤泉区', '410704', '410700'); -INSERT INTO `area` VALUES ('1554', '牧野区', '410711', '410700'); -INSERT INTO `area` VALUES ('1555', '新乡县', '410721', '410700'); -INSERT INTO `area` VALUES ('1556', '获嘉县', '410724', '410700'); -INSERT INTO `area` VALUES ('1557', '原阳县', '410725', '410700'); -INSERT INTO `area` VALUES ('1558', '延津县', '410726', '410700'); -INSERT INTO `area` VALUES ('1559', '封丘县', '410727', '410700'); -INSERT INTO `area` VALUES ('1560', '长垣县', '410728', '410700'); -INSERT INTO `area` VALUES ('1561', '卫辉市', '410781', '410700'); -INSERT INTO `area` VALUES ('1562', '辉县市', '410782', '410700'); -INSERT INTO `area` VALUES ('1563', '市辖区', '410801', '410800'); -INSERT INTO `area` VALUES ('1564', '解放区', '410802', '410800'); -INSERT INTO `area` VALUES ('1565', '中站区', '410803', '410800'); -INSERT INTO `area` VALUES ('1566', '马村区', '410804', '410800'); -INSERT INTO `area` VALUES ('1567', '山阳区', '410811', '410800'); -INSERT INTO `area` VALUES ('1568', '修武县', '410821', '410800'); -INSERT INTO `area` VALUES ('1569', '博爱县', '410822', '410800'); -INSERT INTO `area` VALUES ('1570', '武陟县', '410823', '410800'); -INSERT INTO `area` VALUES ('1571', '温县', '410825', '410800'); -INSERT INTO `area` VALUES ('1572', '沁阳市', '410882', '410800'); -INSERT INTO `area` VALUES ('1573', '孟州市', '410883', '410800'); -INSERT INTO `area` VALUES ('1574', '市辖区', '410901', '410900'); -INSERT INTO `area` VALUES ('1575', '华龙区', '410902', '410900'); -INSERT INTO `area` VALUES ('1576', '清丰县', '410922', '410900'); -INSERT INTO `area` VALUES ('1577', '南乐县', '410923', '410900'); -INSERT INTO `area` VALUES ('1578', '范县', '410926', '410900'); -INSERT INTO `area` VALUES ('1579', '台前县', '410927', '410900'); -INSERT INTO `area` VALUES ('1580', '濮阳县', '410928', '410900'); -INSERT INTO `area` VALUES ('1581', '市辖区', '411001', '411000'); -INSERT INTO `area` VALUES ('1582', '魏都区', '411002', '411000'); -INSERT INTO `area` VALUES ('1583', '许昌县', '411023', '411000'); -INSERT INTO `area` VALUES ('1584', '鄢陵县', '411024', '411000'); -INSERT INTO `area` VALUES ('1585', '襄城县', '411025', '411000'); -INSERT INTO `area` VALUES ('1586', '禹州市', '411081', '411000'); -INSERT INTO `area` VALUES ('1587', '长葛市', '411082', '411000'); -INSERT INTO `area` VALUES ('1588', '市辖区', '411101', '411100'); -INSERT INTO `area` VALUES ('1589', '源汇区', '411102', '411100'); -INSERT INTO `area` VALUES ('1590', '郾城区', '411103', '411100'); -INSERT INTO `area` VALUES ('1591', '召陵区', '411104', '411100'); -INSERT INTO `area` VALUES ('1592', '舞阳县', '411121', '411100'); -INSERT INTO `area` VALUES ('1593', '临颍县', '411122', '411100'); -INSERT INTO `area` VALUES ('1594', '市辖区', '411201', '411200'); -INSERT INTO `area` VALUES ('1595', '湖滨区', '411202', '411200'); -INSERT INTO `area` VALUES ('1596', '陕州区', '411203', '411200'); -INSERT INTO `area` VALUES ('1597', '渑池县', '411221', '411200'); -INSERT INTO `area` VALUES ('1598', '卢氏县', '411224', '411200'); -INSERT INTO `area` VALUES ('1599', '义马市', '411281', '411200'); -INSERT INTO `area` VALUES ('1600', '灵宝市', '411282', '411200'); -INSERT INTO `area` VALUES ('1601', '市辖区', '411301', '411300'); -INSERT INTO `area` VALUES ('1602', '宛城区', '411302', '411300'); -INSERT INTO `area` VALUES ('1603', '卧龙区', '411303', '411300'); -INSERT INTO `area` VALUES ('1604', '南召县', '411321', '411300'); -INSERT INTO `area` VALUES ('1605', '方城县', '411322', '411300'); -INSERT INTO `area` VALUES ('1606', '西峡县', '411323', '411300'); -INSERT INTO `area` VALUES ('1607', '镇平县', '411324', '411300'); -INSERT INTO `area` VALUES ('1608', '内乡县', '411325', '411300'); -INSERT INTO `area` VALUES ('1609', '淅川县', '411326', '411300'); -INSERT INTO `area` VALUES ('1610', '社旗县', '411327', '411300'); -INSERT INTO `area` VALUES ('1611', '唐河县', '411328', '411300'); -INSERT INTO `area` VALUES ('1612', '新野县', '411329', '411300'); -INSERT INTO `area` VALUES ('1613', '桐柏县', '411330', '411300'); -INSERT INTO `area` VALUES ('1614', '邓州市', '411381', '411300'); -INSERT INTO `area` VALUES ('1615', '市辖区', '411401', '411400'); -INSERT INTO `area` VALUES ('1616', '梁园区', '411402', '411400'); -INSERT INTO `area` VALUES ('1617', '睢阳区', '411403', '411400'); -INSERT INTO `area` VALUES ('1618', '民权县', '411421', '411400'); -INSERT INTO `area` VALUES ('1619', '睢县', '411422', '411400'); -INSERT INTO `area` VALUES ('1620', '宁陵县', '411423', '411400'); -INSERT INTO `area` VALUES ('1621', '柘城县', '411424', '411400'); -INSERT INTO `area` VALUES ('1622', '虞城县', '411425', '411400'); -INSERT INTO `area` VALUES ('1623', '夏邑县', '411426', '411400'); -INSERT INTO `area` VALUES ('1624', '永城市', '411481', '411400'); -INSERT INTO `area` VALUES ('1625', '市辖区', '411501', '411500'); -INSERT INTO `area` VALUES ('1626', '浉河区', '411502', '411500'); -INSERT INTO `area` VALUES ('1627', '平桥区', '411503', '411500'); -INSERT INTO `area` VALUES ('1628', '罗山县', '411521', '411500'); -INSERT INTO `area` VALUES ('1629', '光山县', '411522', '411500'); -INSERT INTO `area` VALUES ('1630', '新县', '411523', '411500'); -INSERT INTO `area` VALUES ('1631', '商城县', '411524', '411500'); -INSERT INTO `area` VALUES ('1632', '固始县', '411525', '411500'); -INSERT INTO `area` VALUES ('1633', '潢川县', '411526', '411500'); -INSERT INTO `area` VALUES ('1634', '淮滨县', '411527', '411500'); -INSERT INTO `area` VALUES ('1635', '息县', '411528', '411500'); -INSERT INTO `area` VALUES ('1636', '市辖区', '411601', '411600'); -INSERT INTO `area` VALUES ('1637', '川汇区', '411602', '411600'); -INSERT INTO `area` VALUES ('1638', '扶沟县', '411621', '411600'); -INSERT INTO `area` VALUES ('1639', '西华县', '411622', '411600'); -INSERT INTO `area` VALUES ('1640', '商水县', '411623', '411600'); -INSERT INTO `area` VALUES ('1641', '沈丘县', '411624', '411600'); -INSERT INTO `area` VALUES ('1642', '郸城县', '411625', '411600'); -INSERT INTO `area` VALUES ('1643', '淮阳县', '411626', '411600'); -INSERT INTO `area` VALUES ('1644', '太康县', '411627', '411600'); -INSERT INTO `area` VALUES ('1645', '鹿邑县', '411628', '411600'); -INSERT INTO `area` VALUES ('1646', '项城市', '411681', '411600'); -INSERT INTO `area` VALUES ('1647', '市辖区', '411701', '411700'); -INSERT INTO `area` VALUES ('1648', '驿城区', '411702', '411700'); -INSERT INTO `area` VALUES ('1649', '西平县', '411721', '411700'); -INSERT INTO `area` VALUES ('1650', '上蔡县', '411722', '411700'); -INSERT INTO `area` VALUES ('1651', '平舆县', '411723', '411700'); -INSERT INTO `area` VALUES ('1652', '正阳县', '411724', '411700'); -INSERT INTO `area` VALUES ('1653', '确山县', '411725', '411700'); -INSERT INTO `area` VALUES ('1654', '泌阳县', '411726', '411700'); -INSERT INTO `area` VALUES ('1655', '汝南县', '411727', '411700'); -INSERT INTO `area` VALUES ('1656', '遂平县', '411728', '411700'); -INSERT INTO `area` VALUES ('1657', '新蔡县', '411729', '411700'); -INSERT INTO `area` VALUES ('1658', '济源市', '419001', '419000'); -INSERT INTO `area` VALUES ('1659', '市辖区', '420101', '420100'); -INSERT INTO `area` VALUES ('1660', '江岸区', '420102', '420100'); -INSERT INTO `area` VALUES ('1661', '江汉区', '420103', '420100'); -INSERT INTO `area` VALUES ('1662', '硚口区', '420104', '420100'); -INSERT INTO `area` VALUES ('1663', '汉阳区', '420105', '420100'); -INSERT INTO `area` VALUES ('1664', '武昌区', '420106', '420100'); -INSERT INTO `area` VALUES ('1665', '青山区', '420107', '420100'); -INSERT INTO `area` VALUES ('1666', '洪山区', '420111', '420100'); -INSERT INTO `area` VALUES ('1667', '东西湖区', '420112', '420100'); -INSERT INTO `area` VALUES ('1668', '汉南区', '420113', '420100'); -INSERT INTO `area` VALUES ('1669', '蔡甸区', '420114', '420100'); -INSERT INTO `area` VALUES ('1670', '江夏区', '420115', '420100'); -INSERT INTO `area` VALUES ('1671', '黄陂区', '420116', '420100'); -INSERT INTO `area` VALUES ('1672', '新洲区', '420117', '420100'); -INSERT INTO `area` VALUES ('1673', '市辖区', '420201', '420200'); -INSERT INTO `area` VALUES ('1674', '黄石港区', '420202', '420200'); -INSERT INTO `area` VALUES ('1675', '西塞山区', '420203', '420200'); -INSERT INTO `area` VALUES ('1676', '下陆区', '420204', '420200'); -INSERT INTO `area` VALUES ('1677', '铁山区', '420205', '420200'); -INSERT INTO `area` VALUES ('1678', '阳新县', '420222', '420200'); -INSERT INTO `area` VALUES ('1679', '大冶市', '420281', '420200'); -INSERT INTO `area` VALUES ('1680', '市辖区', '420301', '420300'); -INSERT INTO `area` VALUES ('1681', '茅箭区', '420302', '420300'); -INSERT INTO `area` VALUES ('1682', '张湾区', '420303', '420300'); -INSERT INTO `area` VALUES ('1683', '郧阳区', '420304', '420300'); -INSERT INTO `area` VALUES ('1684', '郧西县', '420322', '420300'); -INSERT INTO `area` VALUES ('1685', '竹山县', '420323', '420300'); -INSERT INTO `area` VALUES ('1686', '竹溪县', '420324', '420300'); -INSERT INTO `area` VALUES ('1687', '房县', '420325', '420300'); -INSERT INTO `area` VALUES ('1688', '丹江口市', '420381', '420300'); -INSERT INTO `area` VALUES ('1689', '市辖区', '420501', '420500'); -INSERT INTO `area` VALUES ('1690', '西陵区', '420502', '420500'); -INSERT INTO `area` VALUES ('1691', '伍家岗区', '420503', '420500'); -INSERT INTO `area` VALUES ('1692', '点军区', '420504', '420500'); -INSERT INTO `area` VALUES ('1693', '猇亭区', '420505', '420500'); -INSERT INTO `area` VALUES ('1694', '夷陵区', '420506', '420500'); -INSERT INTO `area` VALUES ('1695', '远安县', '420525', '420500'); -INSERT INTO `area` VALUES ('1696', '兴山县', '420526', '420500'); -INSERT INTO `area` VALUES ('1697', '秭归县', '420527', '420500'); -INSERT INTO `area` VALUES ('1698', '长阳土家族自治县', '420528', '420500'); -INSERT INTO `area` VALUES ('1699', '五峰土家族自治县', '420529', '420500'); -INSERT INTO `area` VALUES ('1700', '宜都市', '420581', '420500'); -INSERT INTO `area` VALUES ('1701', '当阳市', '420582', '420500'); -INSERT INTO `area` VALUES ('1702', '枝江市', '420583', '420500'); -INSERT INTO `area` VALUES ('1703', '市辖区', '420601', '420600'); -INSERT INTO `area` VALUES ('1704', '襄城区', '420602', '420600'); -INSERT INTO `area` VALUES ('1705', '樊城区', '420606', '420600'); -INSERT INTO `area` VALUES ('1706', '襄州区', '420607', '420600'); -INSERT INTO `area` VALUES ('1707', '南漳县', '420624', '420600'); -INSERT INTO `area` VALUES ('1708', '谷城县', '420625', '420600'); -INSERT INTO `area` VALUES ('1709', '保康县', '420626', '420600'); -INSERT INTO `area` VALUES ('1710', '老河口市', '420682', '420600'); -INSERT INTO `area` VALUES ('1711', '枣阳市', '420683', '420600'); -INSERT INTO `area` VALUES ('1712', '宜城市', '420684', '420600'); -INSERT INTO `area` VALUES ('1713', '市辖区', '420701', '420700'); -INSERT INTO `area` VALUES ('1714', '梁子湖区', '420702', '420700'); -INSERT INTO `area` VALUES ('1715', '华容区', '420703', '420700'); -INSERT INTO `area` VALUES ('1716', '鄂城区', '420704', '420700'); -INSERT INTO `area` VALUES ('1717', '市辖区', '420801', '420800'); -INSERT INTO `area` VALUES ('1718', '东宝区', '420802', '420800'); -INSERT INTO `area` VALUES ('1719', '掇刀区', '420804', '420800'); -INSERT INTO `area` VALUES ('1720', '京山县', '420821', '420800'); -INSERT INTO `area` VALUES ('1721', '沙洋县', '420822', '420800'); -INSERT INTO `area` VALUES ('1722', '钟祥市', '420881', '420800'); -INSERT INTO `area` VALUES ('1723', '市辖区', '420901', '420900'); -INSERT INTO `area` VALUES ('1724', '孝南区', '420902', '420900'); -INSERT INTO `area` VALUES ('1725', '孝昌县', '420921', '420900'); -INSERT INTO `area` VALUES ('1726', '大悟县', '420922', '420900'); -INSERT INTO `area` VALUES ('1727', '云梦县', '420923', '420900'); -INSERT INTO `area` VALUES ('1728', '应城市', '420981', '420900'); -INSERT INTO `area` VALUES ('1729', '安陆市', '420982', '420900'); -INSERT INTO `area` VALUES ('1730', '汉川市', '420984', '420900'); -INSERT INTO `area` VALUES ('1731', '市辖区', '421001', '421000'); -INSERT INTO `area` VALUES ('1732', '沙市区', '421002', '421000'); -INSERT INTO `area` VALUES ('1733', '荆州区', '421003', '421000'); -INSERT INTO `area` VALUES ('1734', '公安县', '421022', '421000'); -INSERT INTO `area` VALUES ('1735', '监利县', '421023', '421000'); -INSERT INTO `area` VALUES ('1736', '江陵县', '421024', '421000'); -INSERT INTO `area` VALUES ('1737', '石首市', '421081', '421000'); -INSERT INTO `area` VALUES ('1738', '洪湖市', '421083', '421000'); -INSERT INTO `area` VALUES ('1739', '松滋市', '421087', '421000'); -INSERT INTO `area` VALUES ('1740', '市辖区', '421101', '421100'); -INSERT INTO `area` VALUES ('1741', '黄州区', '421102', '421100'); -INSERT INTO `area` VALUES ('1742', '团风县', '421121', '421100'); -INSERT INTO `area` VALUES ('1743', '红安县', '421122', '421100'); -INSERT INTO `area` VALUES ('1744', '罗田县', '421123', '421100'); -INSERT INTO `area` VALUES ('1745', '英山县', '421124', '421100'); -INSERT INTO `area` VALUES ('1746', '浠水县', '421125', '421100'); -INSERT INTO `area` VALUES ('1747', '蕲春县', '421126', '421100'); -INSERT INTO `area` VALUES ('1748', '黄梅县', '421127', '421100'); -INSERT INTO `area` VALUES ('1749', '麻城市', '421181', '421100'); -INSERT INTO `area` VALUES ('1750', '武穴市', '421182', '421100'); -INSERT INTO `area` VALUES ('1751', '市辖区', '421201', '421200'); -INSERT INTO `area` VALUES ('1752', '咸安区', '421202', '421200'); -INSERT INTO `area` VALUES ('1753', '嘉鱼县', '421221', '421200'); -INSERT INTO `area` VALUES ('1754', '通城县', '421222', '421200'); -INSERT INTO `area` VALUES ('1755', '崇阳县', '421223', '421200'); -INSERT INTO `area` VALUES ('1756', '通山县', '421224', '421200'); -INSERT INTO `area` VALUES ('1757', '赤壁市', '421281', '421200'); -INSERT INTO `area` VALUES ('1758', '市辖区', '421301', '421300'); -INSERT INTO `area` VALUES ('1759', '曾都区', '421303', '421300'); -INSERT INTO `area` VALUES ('1760', '随县', '421321', '421300'); -INSERT INTO `area` VALUES ('1761', '广水市', '421381', '421300'); -INSERT INTO `area` VALUES ('1762', '恩施市', '422801', '422800'); -INSERT INTO `area` VALUES ('1763', '利川市', '422802', '422800'); -INSERT INTO `area` VALUES ('1764', '建始县', '422822', '422800'); -INSERT INTO `area` VALUES ('1765', '巴东县', '422823', '422800'); -INSERT INTO `area` VALUES ('1766', '宣恩县', '422825', '422800'); -INSERT INTO `area` VALUES ('1767', '咸丰县', '422826', '422800'); -INSERT INTO `area` VALUES ('1768', '来凤县', '422827', '422800'); -INSERT INTO `area` VALUES ('1769', '鹤峰县', '422828', '422800'); -INSERT INTO `area` VALUES ('1770', '仙桃市', '429004', '429000'); -INSERT INTO `area` VALUES ('1771', '潜江市', '429005', '429000'); -INSERT INTO `area` VALUES ('1772', '天门市', '429006', '429000'); -INSERT INTO `area` VALUES ('1773', '神农架林区', '429021', '429000'); -INSERT INTO `area` VALUES ('1774', '市辖区', '430101', '430100'); -INSERT INTO `area` VALUES ('1775', '芙蓉区', '430102', '430100'); -INSERT INTO `area` VALUES ('1776', '天心区', '430103', '430100'); -INSERT INTO `area` VALUES ('1777', '岳麓区', '430104', '430100'); -INSERT INTO `area` VALUES ('1778', '开福区', '430105', '430100'); -INSERT INTO `area` VALUES ('1779', '雨花区', '430111', '430100'); -INSERT INTO `area` VALUES ('1780', '望城区', '430112', '430100'); -INSERT INTO `area` VALUES ('1781', '长沙县', '430121', '430100'); -INSERT INTO `area` VALUES ('1782', '宁乡县', '430124', '430100'); -INSERT INTO `area` VALUES ('1783', '浏阳市', '430181', '430100'); -INSERT INTO `area` VALUES ('1784', '市辖区', '430201', '430200'); -INSERT INTO `area` VALUES ('1785', '荷塘区', '430202', '430200'); -INSERT INTO `area` VALUES ('1786', '芦淞区', '430203', '430200'); -INSERT INTO `area` VALUES ('1787', '石峰区', '430204', '430200'); -INSERT INTO `area` VALUES ('1788', '天元区', '430211', '430200'); -INSERT INTO `area` VALUES ('1789', '株洲县', '430221', '430200'); -INSERT INTO `area` VALUES ('1790', '攸县', '430223', '430200'); -INSERT INTO `area` VALUES ('1791', '茶陵县', '430224', '430200'); -INSERT INTO `area` VALUES ('1792', '炎陵县', '430225', '430200'); -INSERT INTO `area` VALUES ('1793', '醴陵市', '430281', '430200'); -INSERT INTO `area` VALUES ('1794', '市辖区', '430301', '430300'); -INSERT INTO `area` VALUES ('1795', '雨湖区', '430302', '430300'); -INSERT INTO `area` VALUES ('1796', '岳塘区', '430304', '430300'); -INSERT INTO `area` VALUES ('1797', '湘潭县', '430321', '430300'); -INSERT INTO `area` VALUES ('1798', '湘乡市', '430381', '430300'); -INSERT INTO `area` VALUES ('1799', '韶山市', '430382', '430300'); -INSERT INTO `area` VALUES ('1800', '市辖区', '430401', '430400'); -INSERT INTO `area` VALUES ('1801', '珠晖区', '430405', '430400'); -INSERT INTO `area` VALUES ('1802', '雁峰区', '430406', '430400'); -INSERT INTO `area` VALUES ('1803', '石鼓区', '430407', '430400'); -INSERT INTO `area` VALUES ('1804', '蒸湘区', '430408', '430400'); -INSERT INTO `area` VALUES ('1805', '南岳区', '430412', '430400'); -INSERT INTO `area` VALUES ('1806', '衡阳县', '430421', '430400'); -INSERT INTO `area` VALUES ('1807', '衡南县', '430422', '430400'); -INSERT INTO `area` VALUES ('1808', '衡山县', '430423', '430400'); -INSERT INTO `area` VALUES ('1809', '衡东县', '430424', '430400'); -INSERT INTO `area` VALUES ('1810', '祁东县', '430426', '430400'); -INSERT INTO `area` VALUES ('1811', '耒阳市', '430481', '430400'); -INSERT INTO `area` VALUES ('1812', '常宁市', '430482', '430400'); -INSERT INTO `area` VALUES ('1813', '市辖区', '430501', '430500'); -INSERT INTO `area` VALUES ('1814', '双清区', '430502', '430500'); -INSERT INTO `area` VALUES ('1815', '大祥区', '430503', '430500'); -INSERT INTO `area` VALUES ('1816', '北塔区', '430511', '430500'); -INSERT INTO `area` VALUES ('1817', '邵东县', '430521', '430500'); -INSERT INTO `area` VALUES ('1818', '新邵县', '430522', '430500'); -INSERT INTO `area` VALUES ('1819', '邵阳县', '430523', '430500'); -INSERT INTO `area` VALUES ('1820', '隆回县', '430524', '430500'); -INSERT INTO `area` VALUES ('1821', '洞口县', '430525', '430500'); -INSERT INTO `area` VALUES ('1822', '绥宁县', '430527', '430500'); -INSERT INTO `area` VALUES ('1823', '新宁县', '430528', '430500'); -INSERT INTO `area` VALUES ('1824', '城步苗族自治县', '430529', '430500'); -INSERT INTO `area` VALUES ('1825', '武冈市', '430581', '430500'); -INSERT INTO `area` VALUES ('1826', '市辖区', '430601', '430600'); -INSERT INTO `area` VALUES ('1827', '岳阳楼区', '430602', '430600'); -INSERT INTO `area` VALUES ('1828', '云溪区', '430603', '430600'); -INSERT INTO `area` VALUES ('1829', '君山区', '430611', '430600'); -INSERT INTO `area` VALUES ('1830', '岳阳县', '430621', '430600'); -INSERT INTO `area` VALUES ('1831', '华容县', '430623', '430600'); -INSERT INTO `area` VALUES ('1832', '湘阴县', '430624', '430600'); -INSERT INTO `area` VALUES ('1833', '平江县', '430626', '430600'); -INSERT INTO `area` VALUES ('1834', '汨罗市', '430681', '430600'); -INSERT INTO `area` VALUES ('1835', '临湘市', '430682', '430600'); -INSERT INTO `area` VALUES ('1836', '市辖区', '430701', '430700'); -INSERT INTO `area` VALUES ('1837', '武陵区', '430702', '430700'); -INSERT INTO `area` VALUES ('1838', '鼎城区', '430703', '430700'); -INSERT INTO `area` VALUES ('1839', '安乡县', '430721', '430700'); -INSERT INTO `area` VALUES ('1840', '汉寿县', '430722', '430700'); -INSERT INTO `area` VALUES ('1841', '澧县', '430723', '430700'); -INSERT INTO `area` VALUES ('1842', '临澧县', '430724', '430700'); -INSERT INTO `area` VALUES ('1843', '桃源县', '430725', '430700'); -INSERT INTO `area` VALUES ('1844', '石门县', '430726', '430700'); -INSERT INTO `area` VALUES ('1845', '津市市', '430781', '430700'); -INSERT INTO `area` VALUES ('1846', '市辖区', '430801', '430800'); -INSERT INTO `area` VALUES ('1847', '永定区', '430802', '430800'); -INSERT INTO `area` VALUES ('1848', '武陵源区', '430811', '430800'); -INSERT INTO `area` VALUES ('1849', '慈利县', '430821', '430800'); -INSERT INTO `area` VALUES ('1850', '桑植县', '430822', '430800'); -INSERT INTO `area` VALUES ('1851', '市辖区', '430901', '430900'); -INSERT INTO `area` VALUES ('1852', '资阳区', '430902', '430900'); -INSERT INTO `area` VALUES ('1853', '赫山区', '430903', '430900'); -INSERT INTO `area` VALUES ('1854', '南县', '430921', '430900'); -INSERT INTO `area` VALUES ('1855', '桃江县', '430922', '430900'); -INSERT INTO `area` VALUES ('1856', '安化县', '430923', '430900'); -INSERT INTO `area` VALUES ('1857', '沅江市', '430981', '430900'); -INSERT INTO `area` VALUES ('1858', '市辖区', '431001', '431000'); -INSERT INTO `area` VALUES ('1859', '北湖区', '431002', '431000'); -INSERT INTO `area` VALUES ('1860', '苏仙区', '431003', '431000'); -INSERT INTO `area` VALUES ('1861', '桂阳县', '431021', '431000'); -INSERT INTO `area` VALUES ('1862', '宜章县', '431022', '431000'); -INSERT INTO `area` VALUES ('1863', '永兴县', '431023', '431000'); -INSERT INTO `area` VALUES ('1864', '嘉禾县', '431024', '431000'); -INSERT INTO `area` VALUES ('1865', '临武县', '431025', '431000'); -INSERT INTO `area` VALUES ('1866', '汝城县', '431026', '431000'); -INSERT INTO `area` VALUES ('1867', '桂东县', '431027', '431000'); -INSERT INTO `area` VALUES ('1868', '安仁县', '431028', '431000'); -INSERT INTO `area` VALUES ('1869', '资兴市', '431081', '431000'); -INSERT INTO `area` VALUES ('1870', '市辖区', '431101', '431100'); -INSERT INTO `area` VALUES ('1871', '零陵区', '431102', '431100'); -INSERT INTO `area` VALUES ('1872', '冷水滩区', '431103', '431100'); -INSERT INTO `area` VALUES ('1873', '祁阳县', '431121', '431100'); -INSERT INTO `area` VALUES ('1874', '东安县', '431122', '431100'); -INSERT INTO `area` VALUES ('1875', '双牌县', '431123', '431100'); -INSERT INTO `area` VALUES ('1876', '道县', '431124', '431100'); -INSERT INTO `area` VALUES ('1877', '江永县', '431125', '431100'); -INSERT INTO `area` VALUES ('1878', '宁远县', '431126', '431100'); -INSERT INTO `area` VALUES ('1879', '蓝山县', '431127', '431100'); -INSERT INTO `area` VALUES ('1880', '新田县', '431128', '431100'); -INSERT INTO `area` VALUES ('1881', '江华瑶族自治县', '431129', '431100'); -INSERT INTO `area` VALUES ('1882', '市辖区', '431201', '431200'); -INSERT INTO `area` VALUES ('1883', '鹤城区', '431202', '431200'); -INSERT INTO `area` VALUES ('1884', '中方县', '431221', '431200'); -INSERT INTO `area` VALUES ('1885', '沅陵县', '431222', '431200'); -INSERT INTO `area` VALUES ('1886', '辰溪县', '431223', '431200'); -INSERT INTO `area` VALUES ('1887', '溆浦县', '431224', '431200'); -INSERT INTO `area` VALUES ('1888', '会同县', '431225', '431200'); -INSERT INTO `area` VALUES ('1889', '麻阳苗族自治县', '431226', '431200'); -INSERT INTO `area` VALUES ('1890', '新晃侗族自治县', '431227', '431200'); -INSERT INTO `area` VALUES ('1891', '芷江侗族自治县', '431228', '431200'); -INSERT INTO `area` VALUES ('1892', '靖州苗族侗族自治县', '431229', '431200'); -INSERT INTO `area` VALUES ('1893', '通道侗族自治县', '431230', '431200'); -INSERT INTO `area` VALUES ('1894', '洪江市', '431281', '431200'); -INSERT INTO `area` VALUES ('1895', '市辖区', '431301', '431300'); -INSERT INTO `area` VALUES ('1896', '娄星区', '431302', '431300'); -INSERT INTO `area` VALUES ('1897', '双峰县', '431321', '431300'); -INSERT INTO `area` VALUES ('1898', '新化县', '431322', '431300'); -INSERT INTO `area` VALUES ('1899', '冷水江市', '431381', '431300'); -INSERT INTO `area` VALUES ('1900', '涟源市', '431382', '431300'); -INSERT INTO `area` VALUES ('1901', '吉首市', '433101', '433100'); -INSERT INTO `area` VALUES ('1902', '泸溪县', '433122', '433100'); -INSERT INTO `area` VALUES ('1903', '凤凰县', '433123', '433100'); -INSERT INTO `area` VALUES ('1904', '花垣县', '433124', '433100'); -INSERT INTO `area` VALUES ('1905', '保靖县', '433125', '433100'); -INSERT INTO `area` VALUES ('1906', '古丈县', '433126', '433100'); -INSERT INTO `area` VALUES ('1907', '永顺县', '433127', '433100'); -INSERT INTO `area` VALUES ('1908', '龙山县', '433130', '433100'); -INSERT INTO `area` VALUES ('1909', '市辖区', '440101', '440100'); -INSERT INTO `area` VALUES ('1910', '荔湾区', '440103', '440100'); -INSERT INTO `area` VALUES ('1911', '越秀区', '440104', '440100'); -INSERT INTO `area` VALUES ('1912', '海珠区', '440105', '440100'); -INSERT INTO `area` VALUES ('1913', '天河区', '440106', '440100'); -INSERT INTO `area` VALUES ('1914', '白云区', '440111', '440100'); -INSERT INTO `area` VALUES ('1915', '黄埔区', '440112', '440100'); -INSERT INTO `area` VALUES ('1916', '番禺区', '440113', '440100'); -INSERT INTO `area` VALUES ('1917', '花都区', '440114', '440100'); -INSERT INTO `area` VALUES ('1918', '南沙区', '440115', '440100'); -INSERT INTO `area` VALUES ('1919', '从化区', '440117', '440100'); -INSERT INTO `area` VALUES ('1920', '增城区', '440118', '440100'); -INSERT INTO `area` VALUES ('1921', '市辖区', '440201', '440200'); -INSERT INTO `area` VALUES ('1922', '武江区', '440203', '440200'); -INSERT INTO `area` VALUES ('1923', '浈江区', '440204', '440200'); -INSERT INTO `area` VALUES ('1924', '曲江区', '440205', '440200'); -INSERT INTO `area` VALUES ('1925', '始兴县', '440222', '440200'); -INSERT INTO `area` VALUES ('1926', '仁化县', '440224', '440200'); -INSERT INTO `area` VALUES ('1927', '翁源县', '440229', '440200'); -INSERT INTO `area` VALUES ('1928', '乳源瑶族自治县', '440232', '440200'); -INSERT INTO `area` VALUES ('1929', '新丰县', '440233', '440200'); -INSERT INTO `area` VALUES ('1930', '乐昌市', '440281', '440200'); -INSERT INTO `area` VALUES ('1931', '南雄市', '440282', '440200'); -INSERT INTO `area` VALUES ('1932', '市辖区', '440301', '440300'); -INSERT INTO `area` VALUES ('1933', '罗湖区', '440303', '440300'); -INSERT INTO `area` VALUES ('1934', '福田区', '440304', '440300'); -INSERT INTO `area` VALUES ('1935', '南山区', '440305', '440300'); -INSERT INTO `area` VALUES ('1936', '宝安区', '440306', '440300'); -INSERT INTO `area` VALUES ('1937', '龙岗区', '440307', '440300'); -INSERT INTO `area` VALUES ('1938', '盐田区', '440308', '440300'); -INSERT INTO `area` VALUES ('1939', '市辖区', '440401', '440400'); -INSERT INTO `area` VALUES ('1940', '香洲区', '440402', '440400'); -INSERT INTO `area` VALUES ('1941', '斗门区', '440403', '440400'); -INSERT INTO `area` VALUES ('1942', '金湾区', '440404', '440400'); -INSERT INTO `area` VALUES ('1943', '市辖区', '440501', '440500'); -INSERT INTO `area` VALUES ('1944', '龙湖区', '440507', '440500'); -INSERT INTO `area` VALUES ('1945', '金平区', '440511', '440500'); -INSERT INTO `area` VALUES ('1946', '濠江区', '440512', '440500'); -INSERT INTO `area` VALUES ('1947', '潮阳区', '440513', '440500'); -INSERT INTO `area` VALUES ('1948', '潮南区', '440514', '440500'); -INSERT INTO `area` VALUES ('1949', '澄海区', '440515', '440500'); -INSERT INTO `area` VALUES ('1950', '南澳县', '440523', '440500'); -INSERT INTO `area` VALUES ('1951', '市辖区', '440601', '440600'); -INSERT INTO `area` VALUES ('1952', '禅城区', '440604', '440600'); -INSERT INTO `area` VALUES ('1953', '南海区', '440605', '440600'); -INSERT INTO `area` VALUES ('1954', '顺德区', '440606', '440600'); -INSERT INTO `area` VALUES ('1955', '三水区', '440607', '440600'); -INSERT INTO `area` VALUES ('1956', '高明区', '440608', '440600'); -INSERT INTO `area` VALUES ('1957', '市辖区', '440701', '440700'); -INSERT INTO `area` VALUES ('1958', '蓬江区', '440703', '440700'); -INSERT INTO `area` VALUES ('1959', '江海区', '440704', '440700'); -INSERT INTO `area` VALUES ('1960', '新会区', '440705', '440700'); -INSERT INTO `area` VALUES ('1961', '台山市', '440781', '440700'); -INSERT INTO `area` VALUES ('1962', '开平市', '440783', '440700'); -INSERT INTO `area` VALUES ('1963', '鹤山市', '440784', '440700'); -INSERT INTO `area` VALUES ('1964', '恩平市', '440785', '440700'); -INSERT INTO `area` VALUES ('1965', '市辖区', '440801', '440800'); -INSERT INTO `area` VALUES ('1966', '赤坎区', '440802', '440800'); -INSERT INTO `area` VALUES ('1967', '霞山区', '440803', '440800'); -INSERT INTO `area` VALUES ('1968', '坡头区', '440804', '440800'); -INSERT INTO `area` VALUES ('1969', '麻章区', '440811', '440800'); -INSERT INTO `area` VALUES ('1970', '遂溪县', '440823', '440800'); -INSERT INTO `area` VALUES ('1971', '徐闻县', '440825', '440800'); -INSERT INTO `area` VALUES ('1972', '廉江市', '440881', '440800'); -INSERT INTO `area` VALUES ('1973', '雷州市', '440882', '440800'); -INSERT INTO `area` VALUES ('1974', '吴川市', '440883', '440800'); -INSERT INTO `area` VALUES ('1975', '市辖区', '440901', '440900'); -INSERT INTO `area` VALUES ('1976', '茂南区', '440902', '440900'); -INSERT INTO `area` VALUES ('1977', '电白区', '440904', '440900'); -INSERT INTO `area` VALUES ('1978', '高州市', '440981', '440900'); -INSERT INTO `area` VALUES ('1979', '化州市', '440982', '440900'); -INSERT INTO `area` VALUES ('1980', '信宜市', '440983', '440900'); -INSERT INTO `area` VALUES ('1981', '市辖区', '441201', '441200'); -INSERT INTO `area` VALUES ('1982', '端州区', '441202', '441200'); -INSERT INTO `area` VALUES ('1983', '鼎湖区', '441203', '441200'); -INSERT INTO `area` VALUES ('1984', '高要区', '441204', '441200'); -INSERT INTO `area` VALUES ('1985', '广宁县', '441223', '441200'); -INSERT INTO `area` VALUES ('1986', '怀集县', '441224', '441200'); -INSERT INTO `area` VALUES ('1987', '封开县', '441225', '441200'); -INSERT INTO `area` VALUES ('1988', '德庆县', '441226', '441200'); -INSERT INTO `area` VALUES ('1989', '四会市', '441284', '441200'); -INSERT INTO `area` VALUES ('1990', '市辖区', '441301', '441300'); -INSERT INTO `area` VALUES ('1991', '惠城区', '441302', '441300'); -INSERT INTO `area` VALUES ('1992', '惠阳区', '441303', '441300'); -INSERT INTO `area` VALUES ('1993', '博罗县', '441322', '441300'); -INSERT INTO `area` VALUES ('1994', '惠东县', '441323', '441300'); -INSERT INTO `area` VALUES ('1995', '龙门县', '441324', '441300'); -INSERT INTO `area` VALUES ('1996', '市辖区', '441401', '441400'); -INSERT INTO `area` VALUES ('1997', '梅江区', '441402', '441400'); -INSERT INTO `area` VALUES ('1998', '梅县区', '441403', '441400'); -INSERT INTO `area` VALUES ('1999', '大埔县', '441422', '441400'); -INSERT INTO `area` VALUES ('2000', '丰顺县', '441423', '441400'); -INSERT INTO `area` VALUES ('2001', '五华县', '441424', '441400'); -INSERT INTO `area` VALUES ('2002', '平远县', '441426', '441400'); -INSERT INTO `area` VALUES ('2003', '蕉岭县', '441427', '441400'); -INSERT INTO `area` VALUES ('2004', '兴宁市', '441481', '441400'); -INSERT INTO `area` VALUES ('2005', '市辖区', '441501', '441500'); -INSERT INTO `area` VALUES ('2006', '城区', '441502', '441500'); -INSERT INTO `area` VALUES ('2007', '海丰县', '441521', '441500'); -INSERT INTO `area` VALUES ('2008', '陆河县', '441523', '441500'); -INSERT INTO `area` VALUES ('2009', '陆丰市', '441581', '441500'); -INSERT INTO `area` VALUES ('2010', '市辖区', '441601', '441600'); -INSERT INTO `area` VALUES ('2011', '源城区', '441602', '441600'); -INSERT INTO `area` VALUES ('2012', '紫金县', '441621', '441600'); -INSERT INTO `area` VALUES ('2013', '龙川县', '441622', '441600'); -INSERT INTO `area` VALUES ('2014', '连平县', '441623', '441600'); -INSERT INTO `area` VALUES ('2015', '和平县', '441624', '441600'); -INSERT INTO `area` VALUES ('2016', '东源县', '441625', '441600'); -INSERT INTO `area` VALUES ('2017', '市辖区', '441701', '441700'); -INSERT INTO `area` VALUES ('2018', '江城区', '441702', '441700'); -INSERT INTO `area` VALUES ('2019', '阳东区', '441704', '441700'); -INSERT INTO `area` VALUES ('2020', '阳西县', '441721', '441700'); -INSERT INTO `area` VALUES ('2021', '阳春市', '441781', '441700'); -INSERT INTO `area` VALUES ('2022', '市辖区', '441801', '441800'); -INSERT INTO `area` VALUES ('2023', '清城区', '441802', '441800'); -INSERT INTO `area` VALUES ('2024', '清新区', '441803', '441800'); -INSERT INTO `area` VALUES ('2025', '佛冈县', '441821', '441800'); -INSERT INTO `area` VALUES ('2026', '阳山县', '441823', '441800'); -INSERT INTO `area` VALUES ('2027', '连山壮族瑶族自治县', '441825', '441800'); -INSERT INTO `area` VALUES ('2028', '连南瑶族自治县', '441826', '441800'); -INSERT INTO `area` VALUES ('2029', '英德市', '441881', '441800'); -INSERT INTO `area` VALUES ('2030', '连州市', '441882', '441800'); -INSERT INTO `area` VALUES ('2031', '市辖区', '445101', '445100'); -INSERT INTO `area` VALUES ('2032', '湘桥区', '445102', '445100'); -INSERT INTO `area` VALUES ('2033', '潮安区', '445103', '445100'); -INSERT INTO `area` VALUES ('2034', '饶平县', '445122', '445100'); -INSERT INTO `area` VALUES ('2035', '市辖区', '445201', '445200'); -INSERT INTO `area` VALUES ('2036', '榕城区', '445202', '445200'); -INSERT INTO `area` VALUES ('2037', '揭东区', '445203', '445200'); -INSERT INTO `area` VALUES ('2038', '揭西县', '445222', '445200'); -INSERT INTO `area` VALUES ('2039', '惠来县', '445224', '445200'); -INSERT INTO `area` VALUES ('2040', '普宁市', '445281', '445200'); -INSERT INTO `area` VALUES ('2041', '市辖区', '445301', '445300'); -INSERT INTO `area` VALUES ('2042', '云城区', '445302', '445300'); -INSERT INTO `area` VALUES ('2043', '云安区', '445303', '445300'); -INSERT INTO `area` VALUES ('2044', '新兴县', '445321', '445300'); -INSERT INTO `area` VALUES ('2045', '郁南县', '445322', '445300'); -INSERT INTO `area` VALUES ('2046', '罗定市', '445381', '445300'); -INSERT INTO `area` VALUES ('2047', '市辖区', '450101', '450100'); -INSERT INTO `area` VALUES ('2048', '兴宁区', '450102', '450100'); -INSERT INTO `area` VALUES ('2049', '青秀区', '450103', '450100'); -INSERT INTO `area` VALUES ('2050', '江南区', '450105', '450100'); -INSERT INTO `area` VALUES ('2051', '西乡塘区', '450107', '450100'); -INSERT INTO `area` VALUES ('2052', '良庆区', '450108', '450100'); -INSERT INTO `area` VALUES ('2053', '邕宁区', '450109', '450100'); -INSERT INTO `area` VALUES ('2054', '武鸣区', '450110', '450100'); -INSERT INTO `area` VALUES ('2055', '隆安县', '450123', '450100'); -INSERT INTO `area` VALUES ('2056', '马山县', '450124', '450100'); -INSERT INTO `area` VALUES ('2057', '上林县', '450125', '450100'); -INSERT INTO `area` VALUES ('2058', '宾阳县', '450126', '450100'); -INSERT INTO `area` VALUES ('2059', '横县', '450127', '450100'); -INSERT INTO `area` VALUES ('2060', '市辖区', '450201', '450200'); -INSERT INTO `area` VALUES ('2061', '城中区', '450202', '450200'); -INSERT INTO `area` VALUES ('2062', '鱼峰区', '450203', '450200'); -INSERT INTO `area` VALUES ('2063', '柳南区', '450204', '450200'); -INSERT INTO `area` VALUES ('2064', '柳北区', '450205', '450200'); -INSERT INTO `area` VALUES ('2065', '柳江区', '450206', '450200'); -INSERT INTO `area` VALUES ('2066', '柳城县', '450222', '450200'); -INSERT INTO `area` VALUES ('2067', '鹿寨县', '450223', '450200'); -INSERT INTO `area` VALUES ('2068', '融安县', '450224', '450200'); -INSERT INTO `area` VALUES ('2069', '融水苗族自治县', '450225', '450200'); -INSERT INTO `area` VALUES ('2070', '三江侗族自治县', '450226', '450200'); -INSERT INTO `area` VALUES ('2071', '市辖区', '450301', '450300'); -INSERT INTO `area` VALUES ('2072', '秀峰区', '450302', '450300'); -INSERT INTO `area` VALUES ('2073', '叠彩区', '450303', '450300'); -INSERT INTO `area` VALUES ('2074', '象山区', '450304', '450300'); -INSERT INTO `area` VALUES ('2075', '七星区', '450305', '450300'); -INSERT INTO `area` VALUES ('2076', '雁山区', '450311', '450300'); -INSERT INTO `area` VALUES ('2077', '临桂区', '450312', '450300'); -INSERT INTO `area` VALUES ('2078', '阳朔县', '450321', '450300'); -INSERT INTO `area` VALUES ('2079', '灵川县', '450323', '450300'); -INSERT INTO `area` VALUES ('2080', '全州县', '450324', '450300'); -INSERT INTO `area` VALUES ('2081', '兴安县', '450325', '450300'); -INSERT INTO `area` VALUES ('2082', '永福县', '450326', '450300'); -INSERT INTO `area` VALUES ('2083', '灌阳县', '450327', '450300'); -INSERT INTO `area` VALUES ('2084', '龙胜各族自治县', '450328', '450300'); -INSERT INTO `area` VALUES ('2085', '资源县', '450329', '450300'); -INSERT INTO `area` VALUES ('2086', '平乐县', '450330', '450300'); -INSERT INTO `area` VALUES ('2087', '荔浦县', '450331', '450300'); -INSERT INTO `area` VALUES ('2088', '恭城瑶族自治县', '450332', '450300'); -INSERT INTO `area` VALUES ('2089', '市辖区', '450401', '450400'); -INSERT INTO `area` VALUES ('2090', '万秀区', '450403', '450400'); -INSERT INTO `area` VALUES ('2091', '长洲区', '450405', '450400'); -INSERT INTO `area` VALUES ('2092', '龙圩区', '450406', '450400'); -INSERT INTO `area` VALUES ('2093', '苍梧县', '450421', '450400'); -INSERT INTO `area` VALUES ('2094', '藤县', '450422', '450400'); -INSERT INTO `area` VALUES ('2095', '蒙山县', '450423', '450400'); -INSERT INTO `area` VALUES ('2096', '岑溪市', '450481', '450400'); -INSERT INTO `area` VALUES ('2097', '市辖区', '450501', '450500'); -INSERT INTO `area` VALUES ('2098', '海城区', '450502', '450500'); -INSERT INTO `area` VALUES ('2099', '银海区', '450503', '450500'); -INSERT INTO `area` VALUES ('2100', '铁山港区', '450512', '450500'); -INSERT INTO `area` VALUES ('2101', '合浦县', '450521', '450500'); -INSERT INTO `area` VALUES ('2102', '市辖区', '450601', '450600'); -INSERT INTO `area` VALUES ('2103', '港口区', '450602', '450600'); -INSERT INTO `area` VALUES ('2104', '防城区', '450603', '450600'); -INSERT INTO `area` VALUES ('2105', '上思县', '450621', '450600'); -INSERT INTO `area` VALUES ('2106', '东兴市', '450681', '450600'); -INSERT INTO `area` VALUES ('2107', '市辖区', '450701', '450700'); -INSERT INTO `area` VALUES ('2108', '钦南区', '450702', '450700'); -INSERT INTO `area` VALUES ('2109', '钦北区', '450703', '450700'); -INSERT INTO `area` VALUES ('2110', '灵山县', '450721', '450700'); -INSERT INTO `area` VALUES ('2111', '浦北县', '450722', '450700'); -INSERT INTO `area` VALUES ('2112', '市辖区', '450801', '450800'); -INSERT INTO `area` VALUES ('2113', '港北区', '450802', '450800'); -INSERT INTO `area` VALUES ('2114', '港南区', '450803', '450800'); -INSERT INTO `area` VALUES ('2115', '覃塘区', '450804', '450800'); -INSERT INTO `area` VALUES ('2116', '平南县', '450821', '450800'); -INSERT INTO `area` VALUES ('2117', '桂平市', '450881', '450800'); -INSERT INTO `area` VALUES ('2118', '市辖区', '450901', '450900'); -INSERT INTO `area` VALUES ('2119', '玉州区', '450902', '450900'); -INSERT INTO `area` VALUES ('2120', '福绵区', '450903', '450900'); -INSERT INTO `area` VALUES ('2121', '容县', '450921', '450900'); -INSERT INTO `area` VALUES ('2122', '陆川县', '450922', '450900'); -INSERT INTO `area` VALUES ('2123', '博白县', '450923', '450900'); -INSERT INTO `area` VALUES ('2124', '兴业县', '450924', '450900'); -INSERT INTO `area` VALUES ('2125', '北流市', '450981', '450900'); -INSERT INTO `area` VALUES ('2126', '市辖区', '451001', '451000'); -INSERT INTO `area` VALUES ('2127', '右江区', '451002', '451000'); -INSERT INTO `area` VALUES ('2128', '田阳县', '451021', '451000'); -INSERT INTO `area` VALUES ('2129', '田东县', '451022', '451000'); -INSERT INTO `area` VALUES ('2130', '平果县', '451023', '451000'); -INSERT INTO `area` VALUES ('2131', '德保县', '451024', '451000'); -INSERT INTO `area` VALUES ('2132', '那坡县', '451026', '451000'); -INSERT INTO `area` VALUES ('2133', '凌云县', '451027', '451000'); -INSERT INTO `area` VALUES ('2134', '乐业县', '451028', '451000'); -INSERT INTO `area` VALUES ('2135', '田林县', '451029', '451000'); -INSERT INTO `area` VALUES ('2136', '西林县', '451030', '451000'); -INSERT INTO `area` VALUES ('2137', '隆林各族自治县', '451031', '451000'); -INSERT INTO `area` VALUES ('2138', '靖西市', '451081', '451000'); -INSERT INTO `area` VALUES ('2139', '市辖区', '451101', '451100'); -INSERT INTO `area` VALUES ('2140', '八步区', '451102', '451100'); -INSERT INTO `area` VALUES ('2141', '平桂区', '451103', '451100'); -INSERT INTO `area` VALUES ('2142', '昭平县', '451121', '451100'); -INSERT INTO `area` VALUES ('2143', '钟山县', '451122', '451100'); -INSERT INTO `area` VALUES ('2144', '富川瑶族自治县', '451123', '451100'); -INSERT INTO `area` VALUES ('2145', '市辖区', '451201', '451200'); -INSERT INTO `area` VALUES ('2146', '金城江区', '451202', '451200'); -INSERT INTO `area` VALUES ('2147', '南丹县', '451221', '451200'); -INSERT INTO `area` VALUES ('2148', '天峨县', '451222', '451200'); -INSERT INTO `area` VALUES ('2149', '凤山县', '451223', '451200'); -INSERT INTO `area` VALUES ('2150', '东兰县', '451224', '451200'); -INSERT INTO `area` VALUES ('2151', '罗城仫佬族自治县', '451225', '451200'); -INSERT INTO `area` VALUES ('2152', '环江毛南族自治县', '451226', '451200'); -INSERT INTO `area` VALUES ('2153', '巴马瑶族自治县', '451227', '451200'); -INSERT INTO `area` VALUES ('2154', '都安瑶族自治县', '451228', '451200'); -INSERT INTO `area` VALUES ('2155', '大化瑶族自治县', '451229', '451200'); -INSERT INTO `area` VALUES ('2156', '宜州市', '451281', '451200'); -INSERT INTO `area` VALUES ('2157', '市辖区', '451301', '451300'); -INSERT INTO `area` VALUES ('2158', '兴宾区', '451302', '451300'); -INSERT INTO `area` VALUES ('2159', '忻城县', '451321', '451300'); -INSERT INTO `area` VALUES ('2160', '象州县', '451322', '451300'); -INSERT INTO `area` VALUES ('2161', '武宣县', '451323', '451300'); -INSERT INTO `area` VALUES ('2162', '金秀瑶族自治县', '451324', '451300'); -INSERT INTO `area` VALUES ('2163', '合山市', '451381', '451300'); -INSERT INTO `area` VALUES ('2164', '市辖区', '451401', '451400'); -INSERT INTO `area` VALUES ('2165', '江州区', '451402', '451400'); -INSERT INTO `area` VALUES ('2166', '扶绥县', '451421', '451400'); -INSERT INTO `area` VALUES ('2167', '宁明县', '451422', '451400'); -INSERT INTO `area` VALUES ('2168', '龙州县', '451423', '451400'); -INSERT INTO `area` VALUES ('2169', '大新县', '451424', '451400'); -INSERT INTO `area` VALUES ('2170', '天等县', '451425', '451400'); -INSERT INTO `area` VALUES ('2171', '凭祥市', '451481', '451400'); -INSERT INTO `area` VALUES ('2172', '市辖区', '460101', '460100'); -INSERT INTO `area` VALUES ('2173', '秀英区', '460105', '460100'); -INSERT INTO `area` VALUES ('2174', '龙华区', '460106', '460100'); -INSERT INTO `area` VALUES ('2175', '琼山区', '460107', '460100'); -INSERT INTO `area` VALUES ('2176', '美兰区', '460108', '460100'); -INSERT INTO `area` VALUES ('2177', '市辖区', '460201', '460200'); -INSERT INTO `area` VALUES ('2178', '海棠区', '460202', '460200'); -INSERT INTO `area` VALUES ('2179', '吉阳区', '460203', '460200'); -INSERT INTO `area` VALUES ('2180', '天涯区', '460204', '460200'); -INSERT INTO `area` VALUES ('2181', '崖州区', '460205', '460200'); -INSERT INTO `area` VALUES ('2182', '五指山市', '469001', '469000'); -INSERT INTO `area` VALUES ('2183', '琼海市', '469002', '469000'); -INSERT INTO `area` VALUES ('2184', '文昌市', '469005', '469000'); -INSERT INTO `area` VALUES ('2185', '万宁市', '469006', '469000'); -INSERT INTO `area` VALUES ('2186', '东方市', '469007', '469000'); -INSERT INTO `area` VALUES ('2187', '定安县', '469021', '469000'); -INSERT INTO `area` VALUES ('2188', '屯昌县', '469022', '469000'); -INSERT INTO `area` VALUES ('2189', '澄迈县', '469023', '469000'); -INSERT INTO `area` VALUES ('2190', '临高县', '469024', '469000'); -INSERT INTO `area` VALUES ('2191', '白沙黎族自治县', '469025', '469000'); -INSERT INTO `area` VALUES ('2192', '昌江黎族自治县', '469026', '469000'); -INSERT INTO `area` VALUES ('2193', '乐东黎族自治县', '469027', '469000'); -INSERT INTO `area` VALUES ('2194', '陵水黎族自治县', '469028', '469000'); -INSERT INTO `area` VALUES ('2195', '保亭黎族苗族自治县', '469029', '469000'); -INSERT INTO `area` VALUES ('2196', '琼中黎族苗族自治县', '469030', '469000'); -INSERT INTO `area` VALUES ('2197', '万州区', '500101', '500100'); -INSERT INTO `area` VALUES ('2198', '涪陵区', '500102', '500100'); -INSERT INTO `area` VALUES ('2199', '渝中区', '500103', '500100'); -INSERT INTO `area` VALUES ('2200', '大渡口区', '500104', '500100'); -INSERT INTO `area` VALUES ('2201', '江北区', '500105', '500100'); -INSERT INTO `area` VALUES ('2202', '沙坪坝区', '500106', '500100'); -INSERT INTO `area` VALUES ('2203', '九龙坡区', '500107', '500100'); -INSERT INTO `area` VALUES ('2204', '南岸区', '500108', '500100'); -INSERT INTO `area` VALUES ('2205', '北碚区', '500109', '500100'); -INSERT INTO `area` VALUES ('2206', '綦江区', '500110', '500100'); -INSERT INTO `area` VALUES ('2207', '大足区', '500111', '500100'); -INSERT INTO `area` VALUES ('2208', '渝北区', '500112', '500100'); -INSERT INTO `area` VALUES ('2209', '巴南区', '500113', '500100'); -INSERT INTO `area` VALUES ('2210', '黔江区', '500114', '500100'); -INSERT INTO `area` VALUES ('2211', '长寿区', '500115', '500100'); -INSERT INTO `area` VALUES ('2212', '江津区', '500116', '500100'); -INSERT INTO `area` VALUES ('2213', '合川区', '500117', '500100'); -INSERT INTO `area` VALUES ('2214', '永川区', '500118', '500100'); -INSERT INTO `area` VALUES ('2215', '南川区', '500119', '500100'); -INSERT INTO `area` VALUES ('2216', '璧山区', '500120', '500100'); -INSERT INTO `area` VALUES ('2217', '铜梁区', '500151', '500100'); -INSERT INTO `area` VALUES ('2218', '潼南区', '500152', '500100'); -INSERT INTO `area` VALUES ('2219', '荣昌区', '500153', '500100'); -INSERT INTO `area` VALUES ('2220', '开州区', '500154', '500100'); -INSERT INTO `area` VALUES ('2221', '梁平县', '500228', '500200'); -INSERT INTO `area` VALUES ('2222', '城口县', '500229', '500200'); -INSERT INTO `area` VALUES ('2223', '丰都县', '500230', '500200'); -INSERT INTO `area` VALUES ('2224', '垫江县', '500231', '500200'); -INSERT INTO `area` VALUES ('2225', '武隆县', '500232', '500200'); -INSERT INTO `area` VALUES ('2226', '忠县', '500233', '500200'); -INSERT INTO `area` VALUES ('2227', '云阳县', '500235', '500200'); -INSERT INTO `area` VALUES ('2228', '奉节县', '500236', '500200'); -INSERT INTO `area` VALUES ('2229', '巫山县', '500237', '500200'); -INSERT INTO `area` VALUES ('2230', '巫溪县', '500238', '500200'); -INSERT INTO `area` VALUES ('2231', '石柱土家族自治县', '500240', '500200'); -INSERT INTO `area` VALUES ('2232', '秀山土家族苗族自治县', '500241', '500200'); -INSERT INTO `area` VALUES ('2233', '酉阳土家族苗族自治县', '500242', '500200'); -INSERT INTO `area` VALUES ('2234', '彭水苗族土家族自治县', '500243', '500200'); -INSERT INTO `area` VALUES ('2235', '市辖区', '510101', '510100'); -INSERT INTO `area` VALUES ('2236', '锦江区', '510104', '510100'); -INSERT INTO `area` VALUES ('2237', '青羊区', '510105', '510100'); -INSERT INTO `area` VALUES ('2238', '金牛区', '510106', '510100'); -INSERT INTO `area` VALUES ('2239', '武侯区', '510107', '510100'); -INSERT INTO `area` VALUES ('2240', '成华区', '510108', '510100'); -INSERT INTO `area` VALUES ('2241', '龙泉驿区', '510112', '510100'); -INSERT INTO `area` VALUES ('2242', '青白江区', '510113', '510100'); -INSERT INTO `area` VALUES ('2243', '新都区', '510114', '510100'); -INSERT INTO `area` VALUES ('2244', '温江区', '510115', '510100'); -INSERT INTO `area` VALUES ('2245', '双流区', '510116', '510100'); -INSERT INTO `area` VALUES ('2246', '金堂县', '510121', '510100'); -INSERT INTO `area` VALUES ('2247', '郫县', '510124', '510100'); -INSERT INTO `area` VALUES ('2248', '大邑县', '510129', '510100'); -INSERT INTO `area` VALUES ('2249', '蒲江县', '510131', '510100'); -INSERT INTO `area` VALUES ('2250', '新津县', '510132', '510100'); -INSERT INTO `area` VALUES ('2251', '都江堰市', '510181', '510100'); -INSERT INTO `area` VALUES ('2252', '彭州市', '510182', '510100'); -INSERT INTO `area` VALUES ('2253', '邛崃市', '510183', '510100'); -INSERT INTO `area` VALUES ('2254', '崇州市', '510184', '510100'); -INSERT INTO `area` VALUES ('2255', '简阳市', '510185', '510100'); -INSERT INTO `area` VALUES ('2256', '市辖区', '510301', '510300'); -INSERT INTO `area` VALUES ('2257', '自流井区', '510302', '510300'); -INSERT INTO `area` VALUES ('2258', '贡井区', '510303', '510300'); -INSERT INTO `area` VALUES ('2259', '大安区', '510304', '510300'); -INSERT INTO `area` VALUES ('2260', '沿滩区', '510311', '510300'); -INSERT INTO `area` VALUES ('2261', '荣县', '510321', '510300'); -INSERT INTO `area` VALUES ('2262', '富顺县', '510322', '510300'); -INSERT INTO `area` VALUES ('2263', '市辖区', '510401', '510400'); -INSERT INTO `area` VALUES ('2264', '东区', '510402', '510400'); -INSERT INTO `area` VALUES ('2265', '西区', '510403', '510400'); -INSERT INTO `area` VALUES ('2266', '仁和区', '510411', '510400'); -INSERT INTO `area` VALUES ('2267', '米易县', '510421', '510400'); -INSERT INTO `area` VALUES ('2268', '盐边县', '510422', '510400'); -INSERT INTO `area` VALUES ('2269', '市辖区', '510501', '510500'); -INSERT INTO `area` VALUES ('2270', '江阳区', '510502', '510500'); -INSERT INTO `area` VALUES ('2271', '纳溪区', '510503', '510500'); -INSERT INTO `area` VALUES ('2272', '龙马潭区', '510504', '510500'); -INSERT INTO `area` VALUES ('2273', '泸县', '510521', '510500'); -INSERT INTO `area` VALUES ('2274', '合江县', '510522', '510500'); -INSERT INTO `area` VALUES ('2275', '叙永县', '510524', '510500'); -INSERT INTO `area` VALUES ('2276', '古蔺县', '510525', '510500'); -INSERT INTO `area` VALUES ('2277', '市辖区', '510601', '510600'); -INSERT INTO `area` VALUES ('2278', '旌阳区', '510603', '510600'); -INSERT INTO `area` VALUES ('2279', '中江县', '510623', '510600'); -INSERT INTO `area` VALUES ('2280', '罗江县', '510626', '510600'); -INSERT INTO `area` VALUES ('2281', '广汉市', '510681', '510600'); -INSERT INTO `area` VALUES ('2282', '什邡市', '510682', '510600'); -INSERT INTO `area` VALUES ('2283', '绵竹市', '510683', '510600'); -INSERT INTO `area` VALUES ('2284', '市辖区', '510701', '510700'); -INSERT INTO `area` VALUES ('2285', '涪城区', '510703', '510700'); -INSERT INTO `area` VALUES ('2286', '游仙区', '510704', '510700'); -INSERT INTO `area` VALUES ('2287', '安州区', '510705', '510700'); -INSERT INTO `area` VALUES ('2288', '三台县', '510722', '510700'); -INSERT INTO `area` VALUES ('2289', '盐亭县', '510723', '510700'); -INSERT INTO `area` VALUES ('2290', '梓潼县', '510725', '510700'); -INSERT INTO `area` VALUES ('2291', '北川羌族自治县', '510726', '510700'); -INSERT INTO `area` VALUES ('2292', '平武县', '510727', '510700'); -INSERT INTO `area` VALUES ('2293', '江油市', '510781', '510700'); -INSERT INTO `area` VALUES ('2294', '市辖区', '510801', '510800'); -INSERT INTO `area` VALUES ('2295', '利州区', '510802', '510800'); -INSERT INTO `area` VALUES ('2296', '昭化区', '510811', '510800'); -INSERT INTO `area` VALUES ('2297', '朝天区', '510812', '510800'); -INSERT INTO `area` VALUES ('2298', '旺苍县', '510821', '510800'); -INSERT INTO `area` VALUES ('2299', '青川县', '510822', '510800'); -INSERT INTO `area` VALUES ('2300', '剑阁县', '510823', '510800'); -INSERT INTO `area` VALUES ('2301', '苍溪县', '510824', '510800'); -INSERT INTO `area` VALUES ('2302', '市辖区', '510901', '510900'); -INSERT INTO `area` VALUES ('2303', '船山区', '510903', '510900'); -INSERT INTO `area` VALUES ('2304', '安居区', '510904', '510900'); -INSERT INTO `area` VALUES ('2305', '蓬溪县', '510921', '510900'); -INSERT INTO `area` VALUES ('2306', '射洪县', '510922', '510900'); -INSERT INTO `area` VALUES ('2307', '大英县', '510923', '510900'); -INSERT INTO `area` VALUES ('2308', '市辖区', '511001', '511000'); -INSERT INTO `area` VALUES ('2309', '市中区', '511002', '511000'); -INSERT INTO `area` VALUES ('2310', '东兴区', '511011', '511000'); -INSERT INTO `area` VALUES ('2311', '威远县', '511024', '511000'); -INSERT INTO `area` VALUES ('2312', '资中县', '511025', '511000'); -INSERT INTO `area` VALUES ('2313', '隆昌县', '511028', '511000'); -INSERT INTO `area` VALUES ('2314', '市辖区', '511101', '511100'); -INSERT INTO `area` VALUES ('2315', '市中区', '511102', '511100'); -INSERT INTO `area` VALUES ('2316', '沙湾区', '511111', '511100'); -INSERT INTO `area` VALUES ('2317', '五通桥区', '511112', '511100'); -INSERT INTO `area` VALUES ('2318', '金口河区', '511113', '511100'); -INSERT INTO `area` VALUES ('2319', '犍为县', '511123', '511100'); -INSERT INTO `area` VALUES ('2320', '井研县', '511124', '511100'); -INSERT INTO `area` VALUES ('2321', '夹江县', '511126', '511100'); -INSERT INTO `area` VALUES ('2322', '沐川县', '511129', '511100'); -INSERT INTO `area` VALUES ('2323', '峨边彝族自治县', '511132', '511100'); -INSERT INTO `area` VALUES ('2324', '马边彝族自治县', '511133', '511100'); -INSERT INTO `area` VALUES ('2325', '峨眉山市', '511181', '511100'); -INSERT INTO `area` VALUES ('2326', '市辖区', '511301', '511300'); -INSERT INTO `area` VALUES ('2327', '顺庆区', '511302', '511300'); -INSERT INTO `area` VALUES ('2328', '高坪区', '511303', '511300'); -INSERT INTO `area` VALUES ('2329', '嘉陵区', '511304', '511300'); -INSERT INTO `area` VALUES ('2330', '南部县', '511321', '511300'); -INSERT INTO `area` VALUES ('2331', '营山县', '511322', '511300'); -INSERT INTO `area` VALUES ('2332', '蓬安县', '511323', '511300'); -INSERT INTO `area` VALUES ('2333', '仪陇县', '511324', '511300'); -INSERT INTO `area` VALUES ('2334', '西充县', '511325', '511300'); -INSERT INTO `area` VALUES ('2335', '阆中市', '511381', '511300'); -INSERT INTO `area` VALUES ('2336', '市辖区', '511401', '511400'); -INSERT INTO `area` VALUES ('2337', '东坡区', '511402', '511400'); -INSERT INTO `area` VALUES ('2338', '彭山区', '511403', '511400'); -INSERT INTO `area` VALUES ('2339', '仁寿县', '511421', '511400'); -INSERT INTO `area` VALUES ('2340', '洪雅县', '511423', '511400'); -INSERT INTO `area` VALUES ('2341', '丹棱县', '511424', '511400'); -INSERT INTO `area` VALUES ('2342', '青神县', '511425', '511400'); -INSERT INTO `area` VALUES ('2343', '市辖区', '511501', '511500'); -INSERT INTO `area` VALUES ('2344', '翠屏区', '511502', '511500'); -INSERT INTO `area` VALUES ('2345', '南溪区', '511503', '511500'); -INSERT INTO `area` VALUES ('2346', '宜宾县', '511521', '511500'); -INSERT INTO `area` VALUES ('2347', '江安县', '511523', '511500'); -INSERT INTO `area` VALUES ('2348', '长宁县', '511524', '511500'); -INSERT INTO `area` VALUES ('2349', '高县', '511525', '511500'); -INSERT INTO `area` VALUES ('2350', '珙县', '511526', '511500'); -INSERT INTO `area` VALUES ('2351', '筠连县', '511527', '511500'); -INSERT INTO `area` VALUES ('2352', '兴文县', '511528', '511500'); -INSERT INTO `area` VALUES ('2353', '屏山县', '511529', '511500'); -INSERT INTO `area` VALUES ('2354', '市辖区', '511601', '511600'); -INSERT INTO `area` VALUES ('2355', '广安区', '511602', '511600'); -INSERT INTO `area` VALUES ('2356', '前锋区', '511603', '511600'); -INSERT INTO `area` VALUES ('2357', '岳池县', '511621', '511600'); -INSERT INTO `area` VALUES ('2358', '武胜县', '511622', '511600'); -INSERT INTO `area` VALUES ('2359', '邻水县', '511623', '511600'); -INSERT INTO `area` VALUES ('2360', '华蓥市', '511681', '511600'); -INSERT INTO `area` VALUES ('2361', '市辖区', '511701', '511700'); -INSERT INTO `area` VALUES ('2362', '通川区', '511702', '511700'); -INSERT INTO `area` VALUES ('2363', '达川区', '511703', '511700'); -INSERT INTO `area` VALUES ('2364', '宣汉县', '511722', '511700'); -INSERT INTO `area` VALUES ('2365', '开江县', '511723', '511700'); -INSERT INTO `area` VALUES ('2366', '大竹县', '511724', '511700'); -INSERT INTO `area` VALUES ('2367', '渠县', '511725', '511700'); -INSERT INTO `area` VALUES ('2368', '万源市', '511781', '511700'); -INSERT INTO `area` VALUES ('2369', '市辖区', '511801', '511800'); -INSERT INTO `area` VALUES ('2370', '雨城区', '511802', '511800'); -INSERT INTO `area` VALUES ('2371', '名山区', '511803', '511800'); -INSERT INTO `area` VALUES ('2372', '荥经县', '511822', '511800'); -INSERT INTO `area` VALUES ('2373', '汉源县', '511823', '511800'); -INSERT INTO `area` VALUES ('2374', '石棉县', '511824', '511800'); -INSERT INTO `area` VALUES ('2375', '天全县', '511825', '511800'); -INSERT INTO `area` VALUES ('2376', '芦山县', '511826', '511800'); -INSERT INTO `area` VALUES ('2377', '宝兴县', '511827', '511800'); -INSERT INTO `area` VALUES ('2378', '市辖区', '511901', '511900'); -INSERT INTO `area` VALUES ('2379', '巴州区', '511902', '511900'); -INSERT INTO `area` VALUES ('2380', '恩阳区', '511903', '511900'); -INSERT INTO `area` VALUES ('2381', '通江县', '511921', '511900'); -INSERT INTO `area` VALUES ('2382', '南江县', '511922', '511900'); -INSERT INTO `area` VALUES ('2383', '平昌县', '511923', '511900'); -INSERT INTO `area` VALUES ('2384', '市辖区', '512001', '512000'); -INSERT INTO `area` VALUES ('2385', '雁江区', '512002', '512000'); -INSERT INTO `area` VALUES ('2386', '安岳县', '512021', '512000'); -INSERT INTO `area` VALUES ('2387', '乐至县', '512022', '512000'); -INSERT INTO `area` VALUES ('2388', '马尔康市', '513201', '513200'); -INSERT INTO `area` VALUES ('2389', '汶川县', '513221', '513200'); -INSERT INTO `area` VALUES ('2390', '理县', '513222', '513200'); -INSERT INTO `area` VALUES ('2391', '茂县', '513223', '513200'); -INSERT INTO `area` VALUES ('2392', '松潘县', '513224', '513200'); -INSERT INTO `area` VALUES ('2393', '九寨沟县', '513225', '513200'); -INSERT INTO `area` VALUES ('2394', '金川县', '513226', '513200'); -INSERT INTO `area` VALUES ('2395', '小金县', '513227', '513200'); -INSERT INTO `area` VALUES ('2396', '黑水县', '513228', '513200'); -INSERT INTO `area` VALUES ('2397', '壤塘县', '513230', '513200'); -INSERT INTO `area` VALUES ('2398', '阿坝县', '513231', '513200'); -INSERT INTO `area` VALUES ('2399', '若尔盖县', '513232', '513200'); -INSERT INTO `area` VALUES ('2400', '红原县', '513233', '513200'); -INSERT INTO `area` VALUES ('2401', '康定市', '513301', '513300'); -INSERT INTO `area` VALUES ('2402', '泸定县', '513322', '513300'); -INSERT INTO `area` VALUES ('2403', '丹巴县', '513323', '513300'); -INSERT INTO `area` VALUES ('2404', '九龙县', '513324', '513300'); -INSERT INTO `area` VALUES ('2405', '雅江县', '513325', '513300'); -INSERT INTO `area` VALUES ('2406', '道孚县', '513326', '513300'); -INSERT INTO `area` VALUES ('2407', '炉霍县', '513327', '513300'); -INSERT INTO `area` VALUES ('2408', '甘孜县', '513328', '513300'); -INSERT INTO `area` VALUES ('2409', '新龙县', '513329', '513300'); -INSERT INTO `area` VALUES ('2410', '德格县', '513330', '513300'); -INSERT INTO `area` VALUES ('2411', '白玉县', '513331', '513300'); -INSERT INTO `area` VALUES ('2412', '石渠县', '513332', '513300'); -INSERT INTO `area` VALUES ('2413', '色达县', '513333', '513300'); -INSERT INTO `area` VALUES ('2414', '理塘县', '513334', '513300'); -INSERT INTO `area` VALUES ('2415', '巴塘县', '513335', '513300'); -INSERT INTO `area` VALUES ('2416', '乡城县', '513336', '513300'); -INSERT INTO `area` VALUES ('2417', '稻城县', '513337', '513300'); -INSERT INTO `area` VALUES ('2418', '得荣县', '513338', '513300'); -INSERT INTO `area` VALUES ('2419', '西昌市', '513401', '513400'); -INSERT INTO `area` VALUES ('2420', '木里藏族自治县', '513422', '513400'); -INSERT INTO `area` VALUES ('2421', '盐源县', '513423', '513400'); -INSERT INTO `area` VALUES ('2422', '德昌县', '513424', '513400'); -INSERT INTO `area` VALUES ('2423', '会理县', '513425', '513400'); -INSERT INTO `area` VALUES ('2424', '会东县', '513426', '513400'); -INSERT INTO `area` VALUES ('2425', '宁南县', '513427', '513400'); -INSERT INTO `area` VALUES ('2426', '普格县', '513428', '513400'); -INSERT INTO `area` VALUES ('2427', '布拖县', '513429', '513400'); -INSERT INTO `area` VALUES ('2428', '金阳县', '513430', '513400'); -INSERT INTO `area` VALUES ('2429', '昭觉县', '513431', '513400'); -INSERT INTO `area` VALUES ('2430', '喜德县', '513432', '513400'); -INSERT INTO `area` VALUES ('2431', '冕宁县', '513433', '513400'); -INSERT INTO `area` VALUES ('2432', '越西县', '513434', '513400'); -INSERT INTO `area` VALUES ('2433', '甘洛县', '513435', '513400'); -INSERT INTO `area` VALUES ('2434', '美姑县', '513436', '513400'); -INSERT INTO `area` VALUES ('2435', '雷波县', '513437', '513400'); -INSERT INTO `area` VALUES ('2436', '市辖区', '520101', '520100'); -INSERT INTO `area` VALUES ('2437', '南明区', '520102', '520100'); -INSERT INTO `area` VALUES ('2438', '云岩区', '520103', '520100'); -INSERT INTO `area` VALUES ('2439', '花溪区', '520111', '520100'); -INSERT INTO `area` VALUES ('2440', '乌当区', '520112', '520100'); -INSERT INTO `area` VALUES ('2441', '白云区', '520113', '520100'); -INSERT INTO `area` VALUES ('2442', '观山湖区', '520115', '520100'); -INSERT INTO `area` VALUES ('2443', '开阳县', '520121', '520100'); -INSERT INTO `area` VALUES ('2444', '息烽县', '520122', '520100'); -INSERT INTO `area` VALUES ('2445', '修文县', '520123', '520100'); -INSERT INTO `area` VALUES ('2446', '清镇市', '520181', '520100'); -INSERT INTO `area` VALUES ('2447', '钟山区', '520201', '520200'); -INSERT INTO `area` VALUES ('2448', '六枝特区', '520203', '520200'); -INSERT INTO `area` VALUES ('2449', '水城县', '520221', '520200'); -INSERT INTO `area` VALUES ('2450', '盘县', '520222', '520200'); -INSERT INTO `area` VALUES ('2451', '市辖区', '520301', '520300'); -INSERT INTO `area` VALUES ('2452', '红花岗区', '520302', '520300'); -INSERT INTO `area` VALUES ('2453', '汇川区', '520303', '520300'); -INSERT INTO `area` VALUES ('2454', '播州区', '520304', '520300'); -INSERT INTO `area` VALUES ('2455', '桐梓县', '520322', '520300'); -INSERT INTO `area` VALUES ('2456', '绥阳县', '520323', '520300'); -INSERT INTO `area` VALUES ('2457', '正安县', '520324', '520300'); -INSERT INTO `area` VALUES ('2458', '道真仡佬族苗族自治县', '520325', '520300'); -INSERT INTO `area` VALUES ('2459', '务川仡佬族苗族自治县', '520326', '520300'); -INSERT INTO `area` VALUES ('2460', '凤冈县', '520327', '520300'); -INSERT INTO `area` VALUES ('2461', '湄潭县', '520328', '520300'); -INSERT INTO `area` VALUES ('2462', '余庆县', '520329', '520300'); -INSERT INTO `area` VALUES ('2463', '习水县', '520330', '520300'); -INSERT INTO `area` VALUES ('2464', '赤水市', '520381', '520300'); -INSERT INTO `area` VALUES ('2465', '仁怀市', '520382', '520300'); -INSERT INTO `area` VALUES ('2466', '市辖区', '520401', '520400'); -INSERT INTO `area` VALUES ('2467', '西秀区', '520402', '520400'); -INSERT INTO `area` VALUES ('2468', '平坝区', '520403', '520400'); -INSERT INTO `area` VALUES ('2469', '普定县', '520422', '520400'); -INSERT INTO `area` VALUES ('2470', '镇宁布依族苗族自治县', '520423', '520400'); -INSERT INTO `area` VALUES ('2471', '关岭布依族苗族自治县', '520424', '520400'); -INSERT INTO `area` VALUES ('2472', '紫云苗族布依族自治县', '520425', '520400'); -INSERT INTO `area` VALUES ('2473', '市辖区', '520501', '520500'); -INSERT INTO `area` VALUES ('2474', '七星关区', '520502', '520500'); -INSERT INTO `area` VALUES ('2475', '大方县', '520521', '520500'); -INSERT INTO `area` VALUES ('2476', '黔西县', '520522', '520500'); -INSERT INTO `area` VALUES ('2477', '金沙县', '520523', '520500'); -INSERT INTO `area` VALUES ('2478', '织金县', '520524', '520500'); -INSERT INTO `area` VALUES ('2479', '纳雍县', '520525', '520500'); -INSERT INTO `area` VALUES ('2480', '威宁彝族回族苗族自治县', '520526', '520500'); -INSERT INTO `area` VALUES ('2481', '赫章县', '520527', '520500'); -INSERT INTO `area` VALUES ('2482', '市辖区', '520601', '520600'); -INSERT INTO `area` VALUES ('2483', '碧江区', '520602', '520600'); -INSERT INTO `area` VALUES ('2484', '万山区', '520603', '520600'); -INSERT INTO `area` VALUES ('2485', '江口县', '520621', '520600'); -INSERT INTO `area` VALUES ('2486', '玉屏侗族自治县', '520622', '520600'); -INSERT INTO `area` VALUES ('2487', '石阡县', '520623', '520600'); -INSERT INTO `area` VALUES ('2488', '思南县', '520624', '520600'); -INSERT INTO `area` VALUES ('2489', '印江土家族苗族自治县', '520625', '520600'); -INSERT INTO `area` VALUES ('2490', '德江县', '520626', '520600'); -INSERT INTO `area` VALUES ('2491', '沿河土家族自治县', '520627', '520600'); -INSERT INTO `area` VALUES ('2492', '松桃苗族自治县', '520628', '520600'); -INSERT INTO `area` VALUES ('2493', '兴义市', '522301', '522300'); -INSERT INTO `area` VALUES ('2494', '兴仁县', '522322', '522300'); -INSERT INTO `area` VALUES ('2495', '普安县', '522323', '522300'); -INSERT INTO `area` VALUES ('2496', '晴隆县', '522324', '522300'); -INSERT INTO `area` VALUES ('2497', '贞丰县', '522325', '522300'); -INSERT INTO `area` VALUES ('2498', '望谟县', '522326', '522300'); -INSERT INTO `area` VALUES ('2499', '册亨县', '522327', '522300'); -INSERT INTO `area` VALUES ('2500', '安龙县', '522328', '522300'); -INSERT INTO `area` VALUES ('2501', '凯里市', '522601', '522600'); -INSERT INTO `area` VALUES ('2502', '黄平县', '522622', '522600'); -INSERT INTO `area` VALUES ('2503', '施秉县', '522623', '522600'); -INSERT INTO `area` VALUES ('2504', '三穗县', '522624', '522600'); -INSERT INTO `area` VALUES ('2505', '镇远县', '522625', '522600'); -INSERT INTO `area` VALUES ('2506', '岑巩县', '522626', '522600'); -INSERT INTO `area` VALUES ('2507', '天柱县', '522627', '522600'); -INSERT INTO `area` VALUES ('2508', '锦屏县', '522628', '522600'); -INSERT INTO `area` VALUES ('2509', '剑河县', '522629', '522600'); -INSERT INTO `area` VALUES ('2510', '台江县', '522630', '522600'); -INSERT INTO `area` VALUES ('2511', '黎平县', '522631', '522600'); -INSERT INTO `area` VALUES ('2512', '榕江县', '522632', '522600'); -INSERT INTO `area` VALUES ('2513', '从江县', '522633', '522600'); -INSERT INTO `area` VALUES ('2514', '雷山县', '522634', '522600'); -INSERT INTO `area` VALUES ('2515', '麻江县', '522635', '522600'); -INSERT INTO `area` VALUES ('2516', '丹寨县', '522636', '522600'); -INSERT INTO `area` VALUES ('2517', '都匀市', '522701', '522700'); -INSERT INTO `area` VALUES ('2518', '福泉市', '522702', '522700'); -INSERT INTO `area` VALUES ('2519', '荔波县', '522722', '522700'); -INSERT INTO `area` VALUES ('2520', '贵定县', '522723', '522700'); -INSERT INTO `area` VALUES ('2521', '瓮安县', '522725', '522700'); -INSERT INTO `area` VALUES ('2522', '独山县', '522726', '522700'); -INSERT INTO `area` VALUES ('2523', '平塘县', '522727', '522700'); -INSERT INTO `area` VALUES ('2524', '罗甸县', '522728', '522700'); -INSERT INTO `area` VALUES ('2525', '长顺县', '522729', '522700'); -INSERT INTO `area` VALUES ('2526', '龙里县', '522730', '522700'); -INSERT INTO `area` VALUES ('2527', '惠水县', '522731', '522700'); -INSERT INTO `area` VALUES ('2528', '三都水族自治县', '522732', '522700'); -INSERT INTO `area` VALUES ('2529', '市辖区', '530101', '530100'); -INSERT INTO `area` VALUES ('2530', '五华区', '530102', '530100'); -INSERT INTO `area` VALUES ('2531', '盘龙区', '530103', '530100'); -INSERT INTO `area` VALUES ('2532', '官渡区', '530111', '530100'); -INSERT INTO `area` VALUES ('2533', '西山区', '530112', '530100'); -INSERT INTO `area` VALUES ('2534', '东川区', '530113', '530100'); -INSERT INTO `area` VALUES ('2535', '呈贡区', '530114', '530100'); -INSERT INTO `area` VALUES ('2536', '晋宁县', '530122', '530100'); -INSERT INTO `area` VALUES ('2537', '富民县', '530124', '530100'); -INSERT INTO `area` VALUES ('2538', '宜良县', '530125', '530100'); -INSERT INTO `area` VALUES ('2539', '石林彝族自治县', '530126', '530100'); -INSERT INTO `area` VALUES ('2540', '嵩明县', '530127', '530100'); -INSERT INTO `area` VALUES ('2541', '禄劝彝族苗族自治县', '530128', '530100'); -INSERT INTO `area` VALUES ('2542', '寻甸回族彝族自治县', '530129', '530100'); -INSERT INTO `area` VALUES ('2543', '安宁市', '530181', '530100'); -INSERT INTO `area` VALUES ('2544', '市辖区', '530301', '530300'); -INSERT INTO `area` VALUES ('2545', '麒麟区', '530302', '530300'); -INSERT INTO `area` VALUES ('2546', '沾益区', '530303', '530300'); -INSERT INTO `area` VALUES ('2547', '马龙县', '530321', '530300'); -INSERT INTO `area` VALUES ('2548', '陆良县', '530322', '530300'); -INSERT INTO `area` VALUES ('2549', '师宗县', '530323', '530300'); -INSERT INTO `area` VALUES ('2550', '罗平县', '530324', '530300'); -INSERT INTO `area` VALUES ('2551', '富源县', '530325', '530300'); -INSERT INTO `area` VALUES ('2552', '会泽县', '530326', '530300'); -INSERT INTO `area` VALUES ('2553', '宣威市', '530381', '530300'); -INSERT INTO `area` VALUES ('2554', '市辖区', '530401', '530400'); -INSERT INTO `area` VALUES ('2555', '红塔区', '530402', '530400'); -INSERT INTO `area` VALUES ('2556', '江川区', '530403', '530400'); -INSERT INTO `area` VALUES ('2557', '澄江县', '530422', '530400'); -INSERT INTO `area` VALUES ('2558', '通海县', '530423', '530400'); -INSERT INTO `area` VALUES ('2559', '华宁县', '530424', '530400'); -INSERT INTO `area` VALUES ('2560', '易门县', '530425', '530400'); -INSERT INTO `area` VALUES ('2561', '峨山彝族自治县', '530426', '530400'); -INSERT INTO `area` VALUES ('2562', '新平彝族傣族自治县', '530427', '530400'); -INSERT INTO `area` VALUES ('2563', '元江哈尼族彝族傣族自治县', '530428', '530400'); -INSERT INTO `area` VALUES ('2564', '市辖区', '530501', '530500'); -INSERT INTO `area` VALUES ('2565', '隆阳区', '530502', '530500'); -INSERT INTO `area` VALUES ('2566', '施甸县', '530521', '530500'); -INSERT INTO `area` VALUES ('2567', '龙陵县', '530523', '530500'); -INSERT INTO `area` VALUES ('2568', '昌宁县', '530524', '530500'); -INSERT INTO `area` VALUES ('2569', '腾冲市', '530581', '530500'); -INSERT INTO `area` VALUES ('2570', '市辖区', '530601', '530600'); -INSERT INTO `area` VALUES ('2571', '昭阳区', '530602', '530600'); -INSERT INTO `area` VALUES ('2572', '鲁甸县', '530621', '530600'); -INSERT INTO `area` VALUES ('2573', '巧家县', '530622', '530600'); -INSERT INTO `area` VALUES ('2574', '盐津县', '530623', '530600'); -INSERT INTO `area` VALUES ('2575', '大关县', '530624', '530600'); -INSERT INTO `area` VALUES ('2576', '永善县', '530625', '530600'); -INSERT INTO `area` VALUES ('2577', '绥江县', '530626', '530600'); -INSERT INTO `area` VALUES ('2578', '镇雄县', '530627', '530600'); -INSERT INTO `area` VALUES ('2579', '彝良县', '530628', '530600'); -INSERT INTO `area` VALUES ('2580', '威信县', '530629', '530600'); -INSERT INTO `area` VALUES ('2581', '水富县', '530630', '530600'); -INSERT INTO `area` VALUES ('2582', '市辖区', '530701', '530700'); -INSERT INTO `area` VALUES ('2583', '古城区', '530702', '530700'); -INSERT INTO `area` VALUES ('2584', '玉龙纳西族自治县', '530721', '530700'); -INSERT INTO `area` VALUES ('2585', '永胜县', '530722', '530700'); -INSERT INTO `area` VALUES ('2586', '华坪县', '530723', '530700'); -INSERT INTO `area` VALUES ('2587', '宁蒗彝族自治县', '530724', '530700'); -INSERT INTO `area` VALUES ('2588', '市辖区', '530801', '530800'); -INSERT INTO `area` VALUES ('2589', '思茅区', '530802', '530800'); -INSERT INTO `area` VALUES ('2590', '宁洱哈尼族彝族自治县', '530821', '530800'); -INSERT INTO `area` VALUES ('2591', '墨江哈尼族自治县', '530822', '530800'); -INSERT INTO `area` VALUES ('2592', '景东彝族自治县', '530823', '530800'); -INSERT INTO `area` VALUES ('2593', '景谷傣族彝族自治县', '530824', '530800'); -INSERT INTO `area` VALUES ('2594', '镇沅彝族哈尼族拉祜族自治县', '530825', '530800'); -INSERT INTO `area` VALUES ('2595', '江城哈尼族彝族自治县', '530826', '530800'); -INSERT INTO `area` VALUES ('2596', '孟连傣族拉祜族佤族自治县', '530827', '530800'); -INSERT INTO `area` VALUES ('2597', '澜沧拉祜族自治县', '530828', '530800'); -INSERT INTO `area` VALUES ('2598', '西盟佤族自治县', '530829', '530800'); -INSERT INTO `area` VALUES ('2599', '市辖区', '530901', '530900'); -INSERT INTO `area` VALUES ('2600', '临翔区', '530902', '530900'); -INSERT INTO `area` VALUES ('2601', '凤庆县', '530921', '530900'); -INSERT INTO `area` VALUES ('2602', '云县', '530922', '530900'); -INSERT INTO `area` VALUES ('2603', '永德县', '530923', '530900'); -INSERT INTO `area` VALUES ('2604', '镇康县', '530924', '530900'); -INSERT INTO `area` VALUES ('2605', '双江拉祜族佤族布朗族傣族自治县', '530925', '530900'); -INSERT INTO `area` VALUES ('2606', '耿马傣族佤族自治县', '530926', '530900'); -INSERT INTO `area` VALUES ('2607', '沧源佤族自治县', '530927', '530900'); -INSERT INTO `area` VALUES ('2608', '楚雄市', '532301', '532300'); -INSERT INTO `area` VALUES ('2609', '双柏县', '532322', '532300'); -INSERT INTO `area` VALUES ('2610', '牟定县', '532323', '532300'); -INSERT INTO `area` VALUES ('2611', '南华县', '532324', '532300'); -INSERT INTO `area` VALUES ('2612', '姚安县', '532325', '532300'); -INSERT INTO `area` VALUES ('2613', '大姚县', '532326', '532300'); -INSERT INTO `area` VALUES ('2614', '永仁县', '532327', '532300'); -INSERT INTO `area` VALUES ('2615', '元谋县', '532328', '532300'); -INSERT INTO `area` VALUES ('2616', '武定县', '532329', '532300'); -INSERT INTO `area` VALUES ('2617', '禄丰县', '532331', '532300'); -INSERT INTO `area` VALUES ('2618', '个旧市', '532501', '532500'); -INSERT INTO `area` VALUES ('2619', '开远市', '532502', '532500'); -INSERT INTO `area` VALUES ('2620', '蒙自市', '532503', '532500'); -INSERT INTO `area` VALUES ('2621', '弥勒市', '532504', '532500'); -INSERT INTO `area` VALUES ('2622', '屏边苗族自治县', '532523', '532500'); -INSERT INTO `area` VALUES ('2623', '建水县', '532524', '532500'); -INSERT INTO `area` VALUES ('2624', '石屏县', '532525', '532500'); -INSERT INTO `area` VALUES ('2625', '泸西县', '532527', '532500'); -INSERT INTO `area` VALUES ('2626', '元阳县', '532528', '532500'); -INSERT INTO `area` VALUES ('2627', '红河县', '532529', '532500'); -INSERT INTO `area` VALUES ('2628', '金平苗族瑶族傣族自治县', '532530', '532500'); -INSERT INTO `area` VALUES ('2629', '绿春县', '532531', '532500'); -INSERT INTO `area` VALUES ('2630', '河口瑶族自治县', '532532', '532500'); -INSERT INTO `area` VALUES ('2631', '文山市', '532601', '532600'); -INSERT INTO `area` VALUES ('2632', '砚山县', '532622', '532600'); -INSERT INTO `area` VALUES ('2633', '西畴县', '532623', '532600'); -INSERT INTO `area` VALUES ('2634', '麻栗坡县', '532624', '532600'); -INSERT INTO `area` VALUES ('2635', '马关县', '532625', '532600'); -INSERT INTO `area` VALUES ('2636', '丘北县', '532626', '532600'); -INSERT INTO `area` VALUES ('2637', '广南县', '532627', '532600'); -INSERT INTO `area` VALUES ('2638', '富宁县', '532628', '532600'); -INSERT INTO `area` VALUES ('2639', '景洪市', '532801', '532800'); -INSERT INTO `area` VALUES ('2640', '勐海县', '532822', '532800'); -INSERT INTO `area` VALUES ('2641', '勐腊县', '532823', '532800'); -INSERT INTO `area` VALUES ('2642', '大理市', '532901', '532900'); -INSERT INTO `area` VALUES ('2643', '漾濞彝族自治县', '532922', '532900'); -INSERT INTO `area` VALUES ('2644', '祥云县', '532923', '532900'); -INSERT INTO `area` VALUES ('2645', '宾川县', '532924', '532900'); -INSERT INTO `area` VALUES ('2646', '弥渡县', '532925', '532900'); -INSERT INTO `area` VALUES ('2647', '南涧彝族自治县', '532926', '532900'); -INSERT INTO `area` VALUES ('2648', '巍山彝族回族自治县', '532927', '532900'); -INSERT INTO `area` VALUES ('2649', '永平县', '532928', '532900'); -INSERT INTO `area` VALUES ('2650', '云龙县', '532929', '532900'); -INSERT INTO `area` VALUES ('2651', '洱源县', '532930', '532900'); -INSERT INTO `area` VALUES ('2652', '剑川县', '532931', '532900'); -INSERT INTO `area` VALUES ('2653', '鹤庆县', '532932', '532900'); -INSERT INTO `area` VALUES ('2654', '瑞丽市', '533102', '533100'); -INSERT INTO `area` VALUES ('2655', '芒市', '533103', '533100'); -INSERT INTO `area` VALUES ('2656', '梁河县', '533122', '533100'); -INSERT INTO `area` VALUES ('2657', '盈江县', '533123', '533100'); -INSERT INTO `area` VALUES ('2658', '陇川县', '533124', '533100'); -INSERT INTO `area` VALUES ('2659', '泸水市', '533301', '533300'); -INSERT INTO `area` VALUES ('2660', '福贡县', '533323', '533300'); -INSERT INTO `area` VALUES ('2661', '贡山独龙族怒族自治县', '533324', '533300'); -INSERT INTO `area` VALUES ('2662', '兰坪白族普米族自治县', '533325', '533300'); -INSERT INTO `area` VALUES ('2663', '香格里拉市', '533401', '533400'); -INSERT INTO `area` VALUES ('2664', '德钦县', '533422', '533400'); -INSERT INTO `area` VALUES ('2665', '维西傈僳族自治县', '533423', '533400'); -INSERT INTO `area` VALUES ('2666', '市辖区', '540101', '540100'); -INSERT INTO `area` VALUES ('2667', '城关区', '540102', '540100'); -INSERT INTO `area` VALUES ('2668', '堆龙德庆区', '540103', '540100'); -INSERT INTO `area` VALUES ('2669', '林周县', '540121', '540100'); -INSERT INTO `area` VALUES ('2670', '当雄县', '540122', '540100'); -INSERT INTO `area` VALUES ('2671', '尼木县', '540123', '540100'); -INSERT INTO `area` VALUES ('2672', '曲水县', '540124', '540100'); -INSERT INTO `area` VALUES ('2673', '达孜县', '540126', '540100'); -INSERT INTO `area` VALUES ('2674', '墨竹工卡县', '540127', '540100'); -INSERT INTO `area` VALUES ('2675', '桑珠孜区', '540202', '540200'); -INSERT INTO `area` VALUES ('2676', '南木林县', '540221', '540200'); -INSERT INTO `area` VALUES ('2677', '江孜县', '540222', '540200'); -INSERT INTO `area` VALUES ('2678', '定日县', '540223', '540200'); -INSERT INTO `area` VALUES ('2679', '萨迦县', '540224', '540200'); -INSERT INTO `area` VALUES ('2680', '拉孜县', '540225', '540200'); -INSERT INTO `area` VALUES ('2681', '昂仁县', '540226', '540200'); -INSERT INTO `area` VALUES ('2682', '谢通门县', '540227', '540200'); -INSERT INTO `area` VALUES ('2683', '白朗县', '540228', '540200'); -INSERT INTO `area` VALUES ('2684', '仁布县', '540229', '540200'); -INSERT INTO `area` VALUES ('2685', '康马县', '540230', '540200'); -INSERT INTO `area` VALUES ('2686', '定结县', '540231', '540200'); -INSERT INTO `area` VALUES ('2687', '仲巴县', '540232', '540200'); -INSERT INTO `area` VALUES ('2688', '亚东县', '540233', '540200'); -INSERT INTO `area` VALUES ('2689', '吉隆县', '540234', '540200'); -INSERT INTO `area` VALUES ('2690', '聂拉木县', '540235', '540200'); -INSERT INTO `area` VALUES ('2691', '萨嘎县', '540236', '540200'); -INSERT INTO `area` VALUES ('2692', '岗巴县', '540237', '540200'); -INSERT INTO `area` VALUES ('2693', '卡若区', '540302', '540300'); -INSERT INTO `area` VALUES ('2694', '江达县', '540321', '540300'); -INSERT INTO `area` VALUES ('2695', '贡觉县', '540322', '540300'); -INSERT INTO `area` VALUES ('2696', '类乌齐县', '540323', '540300'); -INSERT INTO `area` VALUES ('2697', '丁青县', '540324', '540300'); -INSERT INTO `area` VALUES ('2698', '察雅县', '540325', '540300'); -INSERT INTO `area` VALUES ('2699', '八宿县', '540326', '540300'); -INSERT INTO `area` VALUES ('2700', '左贡县', '540327', '540300'); -INSERT INTO `area` VALUES ('2701', '芒康县', '540328', '540300'); -INSERT INTO `area` VALUES ('2702', '洛隆县', '540329', '540300'); -INSERT INTO `area` VALUES ('2703', '边坝县', '540330', '540300'); -INSERT INTO `area` VALUES ('2704', '巴宜区', '540402', '540400'); -INSERT INTO `area` VALUES ('2705', '工布江达县', '540421', '540400'); -INSERT INTO `area` VALUES ('2706', '米林县', '540422', '540400'); -INSERT INTO `area` VALUES ('2707', '墨脱县', '540423', '540400'); -INSERT INTO `area` VALUES ('2708', '波密县', '540424', '540400'); -INSERT INTO `area` VALUES ('2709', '察隅县', '540425', '540400'); -INSERT INTO `area` VALUES ('2710', '朗县', '540426', '540400'); -INSERT INTO `area` VALUES ('2711', '市辖区', '540501', '540500'); -INSERT INTO `area` VALUES ('2712', '乃东区', '540502', '540500'); -INSERT INTO `area` VALUES ('2713', '扎囊县', '540521', '540500'); -INSERT INTO `area` VALUES ('2714', '贡嘎县', '540522', '540500'); -INSERT INTO `area` VALUES ('2715', '桑日县', '540523', '540500'); -INSERT INTO `area` VALUES ('2716', '琼结县', '540524', '540500'); -INSERT INTO `area` VALUES ('2717', '曲松县', '540525', '540500'); -INSERT INTO `area` VALUES ('2718', '措美县', '540526', '540500'); -INSERT INTO `area` VALUES ('2719', '洛扎县', '540527', '540500'); -INSERT INTO `area` VALUES ('2720', '加查县', '540528', '540500'); -INSERT INTO `area` VALUES ('2721', '隆子县', '540529', '540500'); -INSERT INTO `area` VALUES ('2722', '错那县', '540530', '540500'); -INSERT INTO `area` VALUES ('2723', '浪卡子县', '540531', '540500'); -INSERT INTO `area` VALUES ('2724', '那曲县', '542421', '542400'); -INSERT INTO `area` VALUES ('2725', '嘉黎县', '542422', '542400'); -INSERT INTO `area` VALUES ('2726', '比如县', '542423', '542400'); -INSERT INTO `area` VALUES ('2727', '聂荣县', '542424', '542400'); -INSERT INTO `area` VALUES ('2728', '安多县', '542425', '542400'); -INSERT INTO `area` VALUES ('2729', '申扎县', '542426', '542400'); -INSERT INTO `area` VALUES ('2730', '索县', '542427', '542400'); -INSERT INTO `area` VALUES ('2731', '班戈县', '542428', '542400'); -INSERT INTO `area` VALUES ('2732', '巴青县', '542429', '542400'); -INSERT INTO `area` VALUES ('2733', '尼玛县', '542430', '542400'); -INSERT INTO `area` VALUES ('2734', '双湖县', '542431', '542400'); -INSERT INTO `area` VALUES ('2735', '普兰县', '542521', '542500'); -INSERT INTO `area` VALUES ('2736', '札达县', '542522', '542500'); -INSERT INTO `area` VALUES ('2737', '噶尔县', '542523', '542500'); -INSERT INTO `area` VALUES ('2738', '日土县', '542524', '542500'); -INSERT INTO `area` VALUES ('2739', '革吉县', '542525', '542500'); -INSERT INTO `area` VALUES ('2740', '改则县', '542526', '542500'); -INSERT INTO `area` VALUES ('2741', '措勤县', '542527', '542500'); -INSERT INTO `area` VALUES ('2742', '市辖区', '610101', '610100'); -INSERT INTO `area` VALUES ('2743', '新城区', '610102', '610100'); -INSERT INTO `area` VALUES ('2744', '碑林区', '610103', '610100'); -INSERT INTO `area` VALUES ('2745', '莲湖区', '610104', '610100'); -INSERT INTO `area` VALUES ('2746', '灞桥区', '610111', '610100'); -INSERT INTO `area` VALUES ('2747', '未央区', '610112', '610100'); -INSERT INTO `area` VALUES ('2748', '雁塔区', '610113', '610100'); -INSERT INTO `area` VALUES ('2749', '阎良区', '610114', '610100'); -INSERT INTO `area` VALUES ('2750', '临潼区', '610115', '610100'); -INSERT INTO `area` VALUES ('2751', '长安区', '610116', '610100'); -INSERT INTO `area` VALUES ('2752', '高陵区', '610117', '610100'); -INSERT INTO `area` VALUES ('2753', '蓝田县', '610122', '610100'); -INSERT INTO `area` VALUES ('2754', '周至县', '610124', '610100'); -INSERT INTO `area` VALUES ('2755', '户县', '610125', '610100'); -INSERT INTO `area` VALUES ('2756', '市辖区', '610201', '610200'); -INSERT INTO `area` VALUES ('2757', '王益区', '610202', '610200'); -INSERT INTO `area` VALUES ('2758', '印台区', '610203', '610200'); -INSERT INTO `area` VALUES ('2759', '耀州区', '610204', '610200'); -INSERT INTO `area` VALUES ('2760', '宜君县', '610222', '610200'); -INSERT INTO `area` VALUES ('2761', '市辖区', '610301', '610300'); -INSERT INTO `area` VALUES ('2762', '渭滨区', '610302', '610300'); -INSERT INTO `area` VALUES ('2763', '金台区', '610303', '610300'); -INSERT INTO `area` VALUES ('2764', '陈仓区', '610304', '610300'); -INSERT INTO `area` VALUES ('2765', '凤翔县', '610322', '610300'); -INSERT INTO `area` VALUES ('2766', '岐山县', '610323', '610300'); -INSERT INTO `area` VALUES ('2767', '扶风县', '610324', '610300'); -INSERT INTO `area` VALUES ('2768', '眉县', '610326', '610300'); -INSERT INTO `area` VALUES ('2769', '陇县', '610327', '610300'); -INSERT INTO `area` VALUES ('2770', '千阳县', '610328', '610300'); -INSERT INTO `area` VALUES ('2771', '麟游县', '610329', '610300'); -INSERT INTO `area` VALUES ('2772', '凤县', '610330', '610300'); -INSERT INTO `area` VALUES ('2773', '太白县', '610331', '610300'); -INSERT INTO `area` VALUES ('2774', '市辖区', '610401', '610400'); -INSERT INTO `area` VALUES ('2775', '秦都区', '610402', '610400'); -INSERT INTO `area` VALUES ('2776', '杨陵区', '610403', '610400'); -INSERT INTO `area` VALUES ('2777', '渭城区', '610404', '610400'); -INSERT INTO `area` VALUES ('2778', '三原县', '610422', '610400'); -INSERT INTO `area` VALUES ('2779', '泾阳县', '610423', '610400'); -INSERT INTO `area` VALUES ('2780', '乾县', '610424', '610400'); -INSERT INTO `area` VALUES ('2781', '礼泉县', '610425', '610400'); -INSERT INTO `area` VALUES ('2782', '永寿县', '610426', '610400'); -INSERT INTO `area` VALUES ('2783', '彬县', '610427', '610400'); -INSERT INTO `area` VALUES ('2784', '长武县', '610428', '610400'); -INSERT INTO `area` VALUES ('2785', '旬邑县', '610429', '610400'); -INSERT INTO `area` VALUES ('2786', '淳化县', '610430', '610400'); -INSERT INTO `area` VALUES ('2787', '武功县', '610431', '610400'); -INSERT INTO `area` VALUES ('2788', '兴平市', '610481', '610400'); -INSERT INTO `area` VALUES ('2789', '市辖区', '610501', '610500'); -INSERT INTO `area` VALUES ('2790', '临渭区', '610502', '610500'); -INSERT INTO `area` VALUES ('2791', '华州区', '610503', '610500'); -INSERT INTO `area` VALUES ('2792', '潼关县', '610522', '610500'); -INSERT INTO `area` VALUES ('2793', '大荔县', '610523', '610500'); -INSERT INTO `area` VALUES ('2794', '合阳县', '610524', '610500'); -INSERT INTO `area` VALUES ('2795', '澄城县', '610525', '610500'); -INSERT INTO `area` VALUES ('2796', '蒲城县', '610526', '610500'); -INSERT INTO `area` VALUES ('2797', '白水县', '610527', '610500'); -INSERT INTO `area` VALUES ('2798', '富平县', '610528', '610500'); -INSERT INTO `area` VALUES ('2799', '韩城市', '610581', '610500'); -INSERT INTO `area` VALUES ('2800', '华阴市', '610582', '610500'); -INSERT INTO `area` VALUES ('2801', '市辖区', '610601', '610600'); -INSERT INTO `area` VALUES ('2802', '宝塔区', '610602', '610600'); -INSERT INTO `area` VALUES ('2803', '安塞区', '610603', '610600'); -INSERT INTO `area` VALUES ('2804', '延长县', '610621', '610600'); -INSERT INTO `area` VALUES ('2805', '延川县', '610622', '610600'); -INSERT INTO `area` VALUES ('2806', '子长县', '610623', '610600'); -INSERT INTO `area` VALUES ('2807', '志丹县', '610625', '610600'); -INSERT INTO `area` VALUES ('2808', '吴起县', '610626', '610600'); -INSERT INTO `area` VALUES ('2809', '甘泉县', '610627', '610600'); -INSERT INTO `area` VALUES ('2810', '富县', '610628', '610600'); -INSERT INTO `area` VALUES ('2811', '洛川县', '610629', '610600'); -INSERT INTO `area` VALUES ('2812', '宜川县', '610630', '610600'); -INSERT INTO `area` VALUES ('2813', '黄龙县', '610631', '610600'); -INSERT INTO `area` VALUES ('2814', '黄陵县', '610632', '610600'); -INSERT INTO `area` VALUES ('2815', '市辖区', '610701', '610700'); -INSERT INTO `area` VALUES ('2816', '汉台区', '610702', '610700'); -INSERT INTO `area` VALUES ('2817', '南郑县', '610721', '610700'); -INSERT INTO `area` VALUES ('2818', '城固县', '610722', '610700'); -INSERT INTO `area` VALUES ('2819', '洋县', '610723', '610700'); -INSERT INTO `area` VALUES ('2820', '西乡县', '610724', '610700'); -INSERT INTO `area` VALUES ('2821', '勉县', '610725', '610700'); -INSERT INTO `area` VALUES ('2822', '宁强县', '610726', '610700'); -INSERT INTO `area` VALUES ('2823', '略阳县', '610727', '610700'); -INSERT INTO `area` VALUES ('2824', '镇巴县', '610728', '610700'); -INSERT INTO `area` VALUES ('2825', '留坝县', '610729', '610700'); -INSERT INTO `area` VALUES ('2826', '佛坪县', '610730', '610700'); -INSERT INTO `area` VALUES ('2827', '市辖区', '610801', '610800'); -INSERT INTO `area` VALUES ('2828', '榆阳区', '610802', '610800'); -INSERT INTO `area` VALUES ('2829', '横山区', '610803', '610800'); -INSERT INTO `area` VALUES ('2830', '神木县', '610821', '610800'); -INSERT INTO `area` VALUES ('2831', '府谷县', '610822', '610800'); -INSERT INTO `area` VALUES ('2832', '靖边县', '610824', '610800'); -INSERT INTO `area` VALUES ('2833', '定边县', '610825', '610800'); -INSERT INTO `area` VALUES ('2834', '绥德县', '610826', '610800'); -INSERT INTO `area` VALUES ('2835', '米脂县', '610827', '610800'); -INSERT INTO `area` VALUES ('2836', '佳县', '610828', '610800'); -INSERT INTO `area` VALUES ('2837', '吴堡县', '610829', '610800'); -INSERT INTO `area` VALUES ('2838', '清涧县', '610830', '610800'); -INSERT INTO `area` VALUES ('2839', '子洲县', '610831', '610800'); -INSERT INTO `area` VALUES ('2840', '市辖区', '610901', '610900'); -INSERT INTO `area` VALUES ('2841', '汉滨区', '610902', '610900'); -INSERT INTO `area` VALUES ('2842', '汉阴县', '610921', '610900'); -INSERT INTO `area` VALUES ('2843', '石泉县', '610922', '610900'); -INSERT INTO `area` VALUES ('2844', '宁陕县', '610923', '610900'); -INSERT INTO `area` VALUES ('2845', '紫阳县', '610924', '610900'); -INSERT INTO `area` VALUES ('2846', '岚皋县', '610925', '610900'); -INSERT INTO `area` VALUES ('2847', '平利县', '610926', '610900'); -INSERT INTO `area` VALUES ('2848', '镇坪县', '610927', '610900'); -INSERT INTO `area` VALUES ('2849', '旬阳县', '610928', '610900'); -INSERT INTO `area` VALUES ('2850', '白河县', '610929', '610900'); -INSERT INTO `area` VALUES ('2851', '市辖区', '611001', '611000'); -INSERT INTO `area` VALUES ('2852', '商州区', '611002', '611000'); -INSERT INTO `area` VALUES ('2853', '洛南县', '611021', '611000'); -INSERT INTO `area` VALUES ('2854', '丹凤县', '611022', '611000'); -INSERT INTO `area` VALUES ('2855', '商南县', '611023', '611000'); -INSERT INTO `area` VALUES ('2856', '山阳县', '611024', '611000'); -INSERT INTO `area` VALUES ('2857', '镇安县', '611025', '611000'); -INSERT INTO `area` VALUES ('2858', '柞水县', '611026', '611000'); -INSERT INTO `area` VALUES ('2859', '市辖区', '620101', '620100'); -INSERT INTO `area` VALUES ('2860', '城关区', '620102', '620100'); -INSERT INTO `area` VALUES ('2861', '七里河区', '620103', '620100'); -INSERT INTO `area` VALUES ('2862', '西固区', '620104', '620100'); -INSERT INTO `area` VALUES ('2863', '安宁区', '620105', '620100'); -INSERT INTO `area` VALUES ('2864', '红古区', '620111', '620100'); -INSERT INTO `area` VALUES ('2865', '永登县', '620121', '620100'); -INSERT INTO `area` VALUES ('2866', '皋兰县', '620122', '620100'); -INSERT INTO `area` VALUES ('2867', '榆中县', '620123', '620100'); -INSERT INTO `area` VALUES ('2868', '市辖区', '620201', '620200'); -INSERT INTO `area` VALUES ('2869', '市辖区', '620301', '620300'); -INSERT INTO `area` VALUES ('2870', '金川区', '620302', '620300'); -INSERT INTO `area` VALUES ('2871', '永昌县', '620321', '620300'); -INSERT INTO `area` VALUES ('2872', '市辖区', '620401', '620400'); -INSERT INTO `area` VALUES ('2873', '白银区', '620402', '620400'); -INSERT INTO `area` VALUES ('2874', '平川区', '620403', '620400'); -INSERT INTO `area` VALUES ('2875', '靖远县', '620421', '620400'); -INSERT INTO `area` VALUES ('2876', '会宁县', '620422', '620400'); -INSERT INTO `area` VALUES ('2877', '景泰县', '620423', '620400'); -INSERT INTO `area` VALUES ('2878', '市辖区', '620501', '620500'); -INSERT INTO `area` VALUES ('2879', '秦州区', '620502', '620500'); -INSERT INTO `area` VALUES ('2880', '麦积区', '620503', '620500'); -INSERT INTO `area` VALUES ('2881', '清水县', '620521', '620500'); -INSERT INTO `area` VALUES ('2882', '秦安县', '620522', '620500'); -INSERT INTO `area` VALUES ('2883', '甘谷县', '620523', '620500'); -INSERT INTO `area` VALUES ('2884', '武山县', '620524', '620500'); -INSERT INTO `area` VALUES ('2885', '张家川回族自治县', '620525', '620500'); -INSERT INTO `area` VALUES ('2886', '市辖区', '620601', '620600'); -INSERT INTO `area` VALUES ('2887', '凉州区', '620602', '620600'); -INSERT INTO `area` VALUES ('2888', '民勤县', '620621', '620600'); -INSERT INTO `area` VALUES ('2889', '古浪县', '620622', '620600'); -INSERT INTO `area` VALUES ('2890', '天祝藏族自治县', '620623', '620600'); -INSERT INTO `area` VALUES ('2891', '市辖区', '620701', '620700'); -INSERT INTO `area` VALUES ('2892', '甘州区', '620702', '620700'); -INSERT INTO `area` VALUES ('2893', '肃南裕固族自治县', '620721', '620700'); -INSERT INTO `area` VALUES ('2894', '民乐县', '620722', '620700'); -INSERT INTO `area` VALUES ('2895', '临泽县', '620723', '620700'); -INSERT INTO `area` VALUES ('2896', '高台县', '620724', '620700'); -INSERT INTO `area` VALUES ('2897', '山丹县', '620725', '620700'); -INSERT INTO `area` VALUES ('2898', '市辖区', '620801', '620800'); -INSERT INTO `area` VALUES ('2899', '崆峒区', '620802', '620800'); -INSERT INTO `area` VALUES ('2900', '泾川县', '620821', '620800'); -INSERT INTO `area` VALUES ('2901', '灵台县', '620822', '620800'); -INSERT INTO `area` VALUES ('2902', '崇信县', '620823', '620800'); -INSERT INTO `area` VALUES ('2903', '华亭县', '620824', '620800'); -INSERT INTO `area` VALUES ('2904', '庄浪县', '620825', '620800'); -INSERT INTO `area` VALUES ('2905', '静宁县', '620826', '620800'); -INSERT INTO `area` VALUES ('2906', '市辖区', '620901', '620900'); -INSERT INTO `area` VALUES ('2907', '肃州区', '620902', '620900'); -INSERT INTO `area` VALUES ('2908', '金塔县', '620921', '620900'); -INSERT INTO `area` VALUES ('2909', '瓜州县', '620922', '620900'); -INSERT INTO `area` VALUES ('2910', '肃北蒙古族自治县', '620923', '620900'); -INSERT INTO `area` VALUES ('2911', '阿克塞哈萨克族自治县', '620924', '620900'); -INSERT INTO `area` VALUES ('2912', '玉门市', '620981', '620900'); -INSERT INTO `area` VALUES ('2913', '敦煌市', '620982', '620900'); -INSERT INTO `area` VALUES ('2914', '市辖区', '621001', '621000'); -INSERT INTO `area` VALUES ('2915', '西峰区', '621002', '621000'); -INSERT INTO `area` VALUES ('2916', '庆城县', '621021', '621000'); -INSERT INTO `area` VALUES ('2917', '环县', '621022', '621000'); -INSERT INTO `area` VALUES ('2918', '华池县', '621023', '621000'); -INSERT INTO `area` VALUES ('2919', '合水县', '621024', '621000'); -INSERT INTO `area` VALUES ('2920', '正宁县', '621025', '621000'); -INSERT INTO `area` VALUES ('2921', '宁县', '621026', '621000'); -INSERT INTO `area` VALUES ('2922', '镇原县', '621027', '621000'); -INSERT INTO `area` VALUES ('2923', '市辖区', '621101', '621100'); -INSERT INTO `area` VALUES ('2924', '安定区', '621102', '621100'); -INSERT INTO `area` VALUES ('2925', '通渭县', '621121', '621100'); -INSERT INTO `area` VALUES ('2926', '陇西县', '621122', '621100'); -INSERT INTO `area` VALUES ('2927', '渭源县', '621123', '621100'); -INSERT INTO `area` VALUES ('2928', '临洮县', '621124', '621100'); -INSERT INTO `area` VALUES ('2929', '漳县', '621125', '621100'); -INSERT INTO `area` VALUES ('2930', '岷县', '621126', '621100'); -INSERT INTO `area` VALUES ('2931', '市辖区', '621201', '621200'); -INSERT INTO `area` VALUES ('2932', '武都区', '621202', '621200'); -INSERT INTO `area` VALUES ('2933', '成县', '621221', '621200'); -INSERT INTO `area` VALUES ('2934', '文县', '621222', '621200'); -INSERT INTO `area` VALUES ('2935', '宕昌县', '621223', '621200'); -INSERT INTO `area` VALUES ('2936', '康县', '621224', '621200'); -INSERT INTO `area` VALUES ('2937', '西和县', '621225', '621200'); -INSERT INTO `area` VALUES ('2938', '礼县', '621226', '621200'); -INSERT INTO `area` VALUES ('2939', '徽县', '621227', '621200'); -INSERT INTO `area` VALUES ('2940', '两当县', '621228', '621200'); -INSERT INTO `area` VALUES ('2941', '临夏市', '622901', '622900'); -INSERT INTO `area` VALUES ('2942', '临夏县', '622921', '622900'); -INSERT INTO `area` VALUES ('2943', '康乐县', '622922', '622900'); -INSERT INTO `area` VALUES ('2944', '永靖县', '622923', '622900'); -INSERT INTO `area` VALUES ('2945', '广河县', '622924', '622900'); -INSERT INTO `area` VALUES ('2946', '和政县', '622925', '622900'); -INSERT INTO `area` VALUES ('2947', '东乡族自治县', '622926', '622900'); -INSERT INTO `area` VALUES ('2948', '积石山保安族东乡族撒拉族自治县', '622927', '622900'); -INSERT INTO `area` VALUES ('2949', '合作市', '623001', '623000'); -INSERT INTO `area` VALUES ('2950', '临潭县', '623021', '623000'); -INSERT INTO `area` VALUES ('2951', '卓尼县', '623022', '623000'); -INSERT INTO `area` VALUES ('2952', '舟曲县', '623023', '623000'); -INSERT INTO `area` VALUES ('2953', '迭部县', '623024', '623000'); -INSERT INTO `area` VALUES ('2954', '玛曲县', '623025', '623000'); -INSERT INTO `area` VALUES ('2955', '碌曲县', '623026', '623000'); -INSERT INTO `area` VALUES ('2956', '夏河县', '623027', '623000'); -INSERT INTO `area` VALUES ('2957', '市辖区', '630101', '630100'); -INSERT INTO `area` VALUES ('2958', '城东区', '630102', '630100'); -INSERT INTO `area` VALUES ('2959', '城中区', '630103', '630100'); -INSERT INTO `area` VALUES ('2960', '城西区', '630104', '630100'); -INSERT INTO `area` VALUES ('2961', '城北区', '630105', '630100'); -INSERT INTO `area` VALUES ('2962', '大通回族土族自治县', '630121', '630100'); -INSERT INTO `area` VALUES ('2963', '湟中县', '630122', '630100'); -INSERT INTO `area` VALUES ('2964', '湟源县', '630123', '630100'); -INSERT INTO `area` VALUES ('2965', '乐都区', '630202', '630200'); -INSERT INTO `area` VALUES ('2966', '平安区', '630203', '630200'); -INSERT INTO `area` VALUES ('2967', '民和回族土族自治县', '630222', '630200'); -INSERT INTO `area` VALUES ('2968', '互助土族自治县', '630223', '630200'); -INSERT INTO `area` VALUES ('2969', '化隆回族自治县', '630224', '630200'); -INSERT INTO `area` VALUES ('2970', '循化撒拉族自治县', '630225', '630200'); -INSERT INTO `area` VALUES ('2971', '门源回族自治县', '632221', '632200'); -INSERT INTO `area` VALUES ('2972', '祁连县', '632222', '632200'); -INSERT INTO `area` VALUES ('2973', '海晏县', '632223', '632200'); -INSERT INTO `area` VALUES ('2974', '刚察县', '632224', '632200'); -INSERT INTO `area` VALUES ('2975', '同仁县', '632321', '632300'); -INSERT INTO `area` VALUES ('2976', '尖扎县', '632322', '632300'); -INSERT INTO `area` VALUES ('2977', '泽库县', '632323', '632300'); -INSERT INTO `area` VALUES ('2978', '河南蒙古族自治县', '632324', '632300'); -INSERT INTO `area` VALUES ('2979', '共和县', '632521', '632500'); -INSERT INTO `area` VALUES ('2980', '同德县', '632522', '632500'); -INSERT INTO `area` VALUES ('2981', '贵德县', '632523', '632500'); -INSERT INTO `area` VALUES ('2982', '兴海县', '632524', '632500'); -INSERT INTO `area` VALUES ('2983', '贵南县', '632525', '632500'); -INSERT INTO `area` VALUES ('2984', '玛沁县', '632621', '632600'); -INSERT INTO `area` VALUES ('2985', '班玛县', '632622', '632600'); -INSERT INTO `area` VALUES ('2986', '甘德县', '632623', '632600'); -INSERT INTO `area` VALUES ('2987', '达日县', '632624', '632600'); -INSERT INTO `area` VALUES ('2988', '久治县', '632625', '632600'); -INSERT INTO `area` VALUES ('2989', '玛多县', '632626', '632600'); -INSERT INTO `area` VALUES ('2990', '玉树市', '632701', '632700'); -INSERT INTO `area` VALUES ('2991', '杂多县', '632722', '632700'); -INSERT INTO `area` VALUES ('2992', '称多县', '632723', '632700'); -INSERT INTO `area` VALUES ('2993', '治多县', '632724', '632700'); -INSERT INTO `area` VALUES ('2994', '囊谦县', '632725', '632700'); -INSERT INTO `area` VALUES ('2995', '曲麻莱县', '632726', '632700'); -INSERT INTO `area` VALUES ('2996', '格尔木市', '632801', '632800'); -INSERT INTO `area` VALUES ('2997', '德令哈市', '632802', '632800'); -INSERT INTO `area` VALUES ('2998', '乌兰县', '632821', '632800'); -INSERT INTO `area` VALUES ('2999', '都兰县', '632822', '632800'); -INSERT INTO `area` VALUES ('3000', '天峻县', '632823', '632800'); -INSERT INTO `area` VALUES ('3001', '市辖区', '640101', '640100'); -INSERT INTO `area` VALUES ('3002', '兴庆区', '640104', '640100'); -INSERT INTO `area` VALUES ('3003', '西夏区', '640105', '640100'); -INSERT INTO `area` VALUES ('3004', '金凤区', '640106', '640100'); -INSERT INTO `area` VALUES ('3005', '永宁县', '640121', '640100'); -INSERT INTO `area` VALUES ('3006', '贺兰县', '640122', '640100'); -INSERT INTO `area` VALUES ('3007', '灵武市', '640181', '640100'); -INSERT INTO `area` VALUES ('3008', '市辖区', '640201', '640200'); -INSERT INTO `area` VALUES ('3009', '大武口区', '640202', '640200'); -INSERT INTO `area` VALUES ('3010', '惠农区', '640205', '640200'); -INSERT INTO `area` VALUES ('3011', '平罗县', '640221', '640200'); -INSERT INTO `area` VALUES ('3012', '市辖区', '640301', '640300'); -INSERT INTO `area` VALUES ('3013', '利通区', '640302', '640300'); -INSERT INTO `area` VALUES ('3014', '红寺堡区', '640303', '640300'); -INSERT INTO `area` VALUES ('3015', '盐池县', '640323', '640300'); -INSERT INTO `area` VALUES ('3016', '同心县', '640324', '640300'); -INSERT INTO `area` VALUES ('3017', '青铜峡市', '640381', '640300'); -INSERT INTO `area` VALUES ('3018', '市辖区', '640401', '640400'); -INSERT INTO `area` VALUES ('3019', '原州区', '640402', '640400'); -INSERT INTO `area` VALUES ('3020', '西吉县', '640422', '640400'); -INSERT INTO `area` VALUES ('3021', '隆德县', '640423', '640400'); -INSERT INTO `area` VALUES ('3022', '泾源县', '640424', '640400'); -INSERT INTO `area` VALUES ('3023', '彭阳县', '640425', '640400'); -INSERT INTO `area` VALUES ('3024', '市辖区', '640501', '640500'); -INSERT INTO `area` VALUES ('3025', '沙坡头区', '640502', '640500'); -INSERT INTO `area` VALUES ('3026', '中宁县', '640521', '640500'); -INSERT INTO `area` VALUES ('3027', '海原县', '640522', '640500'); -INSERT INTO `area` VALUES ('3028', '市辖区', '650101', '650100'); -INSERT INTO `area` VALUES ('3029', '天山区', '650102', '650100'); -INSERT INTO `area` VALUES ('3030', '沙依巴克区', '650103', '650100'); -INSERT INTO `area` VALUES ('3031', '新市区', '650104', '650100'); -INSERT INTO `area` VALUES ('3032', '水磨沟区', '650105', '650100'); -INSERT INTO `area` VALUES ('3033', '头屯河区', '650106', '650100'); -INSERT INTO `area` VALUES ('3034', '达坂城区', '650107', '650100'); -INSERT INTO `area` VALUES ('3035', '米东区', '650109', '650100'); -INSERT INTO `area` VALUES ('3036', '乌鲁木齐县', '650121', '650100'); -INSERT INTO `area` VALUES ('3037', '市辖区', '650201', '650200'); -INSERT INTO `area` VALUES ('3038', '独山子区', '650202', '650200'); -INSERT INTO `area` VALUES ('3039', '克拉玛依区', '650203', '650200'); -INSERT INTO `area` VALUES ('3040', '白碱滩区', '650204', '650200'); -INSERT INTO `area` VALUES ('3041', '乌尔禾区', '650205', '650200'); -INSERT INTO `area` VALUES ('3042', '高昌区', '650402', '650400'); -INSERT INTO `area` VALUES ('3043', '鄯善县', '650421', '650400'); -INSERT INTO `area` VALUES ('3044', '托克逊县', '650422', '650400'); -INSERT INTO `area` VALUES ('3045', '伊州区', '650502', '650500'); -INSERT INTO `area` VALUES ('3046', '巴里坤哈萨克自治县', '650521', '650500'); -INSERT INTO `area` VALUES ('3047', '伊吾县', '650522', '650500'); -INSERT INTO `area` VALUES ('3048', '昌吉市', '652301', '652300'); -INSERT INTO `area` VALUES ('3049', '阜康市', '652302', '652300'); -INSERT INTO `area` VALUES ('3050', '呼图壁县', '652323', '652300'); -INSERT INTO `area` VALUES ('3051', '玛纳斯县', '652324', '652300'); -INSERT INTO `area` VALUES ('3052', '奇台县', '652325', '652300'); -INSERT INTO `area` VALUES ('3053', '吉木萨尔县', '652327', '652300'); -INSERT INTO `area` VALUES ('3054', '木垒哈萨克自治县', '652328', '652300'); -INSERT INTO `area` VALUES ('3055', '博乐市', '652701', '652700'); -INSERT INTO `area` VALUES ('3056', '阿拉山口市', '652702', '652700'); -INSERT INTO `area` VALUES ('3057', '精河县', '652722', '652700'); -INSERT INTO `area` VALUES ('3058', '温泉县', '652723', '652700'); -INSERT INTO `area` VALUES ('3059', '库尔勒市', '652801', '652800'); -INSERT INTO `area` VALUES ('3060', '轮台县', '652822', '652800'); -INSERT INTO `area` VALUES ('3061', '尉犁县', '652823', '652800'); -INSERT INTO `area` VALUES ('3062', '若羌县', '652824', '652800'); -INSERT INTO `area` VALUES ('3063', '且末县', '652825', '652800'); -INSERT INTO `area` VALUES ('3064', '焉耆回族自治县', '652826', '652800'); -INSERT INTO `area` VALUES ('3065', '和静县', '652827', '652800'); -INSERT INTO `area` VALUES ('3066', '和硕县', '652828', '652800'); -INSERT INTO `area` VALUES ('3067', '博湖县', '652829', '652800'); -INSERT INTO `area` VALUES ('3068', '阿克苏市', '652901', '652900'); -INSERT INTO `area` VALUES ('3069', '温宿县', '652922', '652900'); -INSERT INTO `area` VALUES ('3070', '库车县', '652923', '652900'); -INSERT INTO `area` VALUES ('3071', '沙雅县', '652924', '652900'); -INSERT INTO `area` VALUES ('3072', '新和县', '652925', '652900'); -INSERT INTO `area` VALUES ('3073', '拜城县', '652926', '652900'); -INSERT INTO `area` VALUES ('3074', '乌什县', '652927', '652900'); -INSERT INTO `area` VALUES ('3075', '阿瓦提县', '652928', '652900'); -INSERT INTO `area` VALUES ('3076', '柯坪县', '652929', '652900'); -INSERT INTO `area` VALUES ('3077', '阿图什市', '653001', '653000'); -INSERT INTO `area` VALUES ('3078', '阿克陶县', '653022', '653000'); -INSERT INTO `area` VALUES ('3079', '阿合奇县', '653023', '653000'); -INSERT INTO `area` VALUES ('3080', '乌恰县', '653024', '653000'); -INSERT INTO `area` VALUES ('3081', '喀什市', '653101', '653100'); -INSERT INTO `area` VALUES ('3082', '疏附县', '653121', '653100'); -INSERT INTO `area` VALUES ('3083', '疏勒县', '653122', '653100'); -INSERT INTO `area` VALUES ('3084', '英吉沙县', '653123', '653100'); -INSERT INTO `area` VALUES ('3085', '泽普县', '653124', '653100'); -INSERT INTO `area` VALUES ('3086', '莎车县', '653125', '653100'); -INSERT INTO `area` VALUES ('3087', '叶城县', '653126', '653100'); -INSERT INTO `area` VALUES ('3088', '麦盖提县', '653127', '653100'); -INSERT INTO `area` VALUES ('3089', '岳普湖县', '653128', '653100'); -INSERT INTO `area` VALUES ('3090', '伽师县', '653129', '653100'); -INSERT INTO `area` VALUES ('3091', '巴楚县', '653130', '653100'); -INSERT INTO `area` VALUES ('3092', '塔什库尔干塔吉克自治县', '653131', '653100'); -INSERT INTO `area` VALUES ('3093', '和田市', '653201', '653200'); -INSERT INTO `area` VALUES ('3094', '和田县', '653221', '653200'); -INSERT INTO `area` VALUES ('3095', '墨玉县', '653222', '653200'); -INSERT INTO `area` VALUES ('3096', '皮山县', '653223', '653200'); -INSERT INTO `area` VALUES ('3097', '洛浦县', '653224', '653200'); -INSERT INTO `area` VALUES ('3098', '策勒县', '653225', '653200'); -INSERT INTO `area` VALUES ('3099', '于田县', '653226', '653200'); -INSERT INTO `area` VALUES ('3100', '民丰县', '653227', '653200'); -INSERT INTO `area` VALUES ('3101', '伊宁市', '654002', '654000'); -INSERT INTO `area` VALUES ('3102', '奎屯市', '654003', '654000'); -INSERT INTO `area` VALUES ('3103', '霍尔果斯市', '654004', '654000'); -INSERT INTO `area` VALUES ('3104', '伊宁县', '654021', '654000'); -INSERT INTO `area` VALUES ('3105', '察布查尔锡伯自治县', '654022', '654000'); -INSERT INTO `area` VALUES ('3106', '霍城县', '654023', '654000'); -INSERT INTO `area` VALUES ('3107', '巩留县', '654024', '654000'); -INSERT INTO `area` VALUES ('3108', '新源县', '654025', '654000'); -INSERT INTO `area` VALUES ('3109', '昭苏县', '654026', '654000'); -INSERT INTO `area` VALUES ('3110', '特克斯县', '654027', '654000'); -INSERT INTO `area` VALUES ('3111', '尼勒克县', '654028', '654000'); -INSERT INTO `area` VALUES ('3112', '塔城市', '654201', '654200'); -INSERT INTO `area` VALUES ('3113', '乌苏市', '654202', '654200'); -INSERT INTO `area` VALUES ('3114', '额敏县', '654221', '654200'); -INSERT INTO `area` VALUES ('3115', '沙湾县', '654223', '654200'); -INSERT INTO `area` VALUES ('3116', '托里县', '654224', '654200'); -INSERT INTO `area` VALUES ('3117', '裕民县', '654225', '654200'); -INSERT INTO `area` VALUES ('3118', '和布克赛尔蒙古自治县', '654226', '654200'); -INSERT INTO `area` VALUES ('3119', '阿勒泰市', '654301', '654300'); -INSERT INTO `area` VALUES ('3120', '布尔津县', '654321', '654300'); -INSERT INTO `area` VALUES ('3121', '富蕴县', '654322', '654300'); -INSERT INTO `area` VALUES ('3122', '福海县', '654323', '654300'); -INSERT INTO `area` VALUES ('3123', '哈巴河县', '654324', '654300'); -INSERT INTO `area` VALUES ('3124', '青河县', '654325', '654300'); -INSERT INTO `area` VALUES ('3125', '吉木乃县', '654326', '654300'); -INSERT INTO `area` VALUES ('3126', '石河子市', '659001', '659000'); -INSERT INTO `area` VALUES ('3127', '阿拉尔市', '659002', '659000'); -INSERT INTO `area` VALUES ('3128', '图木舒克市', '659003', '659000'); -INSERT INTO `area` VALUES ('3129', '五家渠市', '659004', '659000'); -INSERT INTO `area` VALUES ('3130', '铁门关市', '659006', '659000'); -INSERT INTO `area` VALUES ('3131', '中堂镇', '441901', '441900'); -INSERT INTO `area` VALUES ('3132', '南城区', '441903', '441900'); -INSERT INTO `area` VALUES ('3133', '长安镇', '441904', '441900'); -INSERT INTO `area` VALUES ('3134', '东坑镇', '441905', '441900'); -INSERT INTO `area` VALUES ('3135', '樟木头镇', '441906', '441900'); -INSERT INTO `area` VALUES ('3136', '莞城区', '441907', '441900'); -INSERT INTO `area` VALUES ('3137', '石龙镇', '441908', '441900'); -INSERT INTO `area` VALUES ('3138', '桥头镇', '441909', '441900'); -INSERT INTO `area` VALUES ('3139', '万江区', '441910', '441900'); -INSERT INTO `area` VALUES ('3140', '麻涌镇', '441911', '441900'); -INSERT INTO `area` VALUES ('3141', '虎门镇', '441912', '441900'); -INSERT INTO `area` VALUES ('3142', '谢岗镇', '441913', '441900'); -INSERT INTO `area` VALUES ('3143', '石碣镇', '441914', '441900'); -INSERT INTO `area` VALUES ('3144', '茶山镇', '441915', '441900'); -INSERT INTO `area` VALUES ('3145', '东城区', '441916', '441900'); -INSERT INTO `area` VALUES ('3146', '洪梅镇', '441917', '441900'); -INSERT INTO `area` VALUES ('3147', '道滘镇', '441918', '441900'); -INSERT INTO `area` VALUES ('3148', '高埗镇', '441919', '441900'); -INSERT INTO `area` VALUES ('3149', '企石镇', '441920', '441900'); -INSERT INTO `area` VALUES ('3150', '凤岗镇', '441921', '441900'); -INSERT INTO `area` VALUES ('3151', '大岭山镇', '441922', '441900'); -INSERT INTO `area` VALUES ('3152', '松山湖', '441923', '441900'); -INSERT INTO `area` VALUES ('3153', '清溪镇', '441924', '441900'); -INSERT INTO `area` VALUES ('3154', '望牛墩镇', '441925', '441900'); -INSERT INTO `area` VALUES ('3155', '厚街镇', '441926', '441900'); -INSERT INTO `area` VALUES ('3156', '常平镇', '441927', '441900'); -INSERT INTO `area` VALUES ('3157', '寮步镇', '441928', '441900'); -INSERT INTO `area` VALUES ('3158', '石排镇', '441929', '441900'); -INSERT INTO `area` VALUES ('3159', '横沥镇', '441930', '441900'); -INSERT INTO `area` VALUES ('3160', '塘厦镇', '441931', '441900'); -INSERT INTO `area` VALUES ('3161', '黄江镇', '441932', '441900'); -INSERT INTO `area` VALUES ('3162', '大朗镇', '441933', '441900'); -INSERT INTO `area` VALUES ('3163', '沙田镇', '441990', '441900'); -INSERT INTO `area` VALUES ('3164', '南头镇', '442001', '442000'); -INSERT INTO `area` VALUES ('3165', '神湾镇', '442002', '442000'); -INSERT INTO `area` VALUES ('3166', '东凤镇', '442003', '442000'); -INSERT INTO `area` VALUES ('3167', '五桂山镇', '442004', '442000'); -INSERT INTO `area` VALUES ('3168', '黄圃镇', '442005', '442000'); -INSERT INTO `area` VALUES ('3169', '小榄镇', '442006', '442000'); -INSERT INTO `area` VALUES ('3170', '石岐区街道', '442007', '442000'); -INSERT INTO `area` VALUES ('3171', '横栏镇', '442008', '442000'); -INSERT INTO `area` VALUES ('3172', '三角镇', '442009', '442000'); -INSERT INTO `area` VALUES ('3173', '三乡镇', '442010', '442000'); -INSERT INTO `area` VALUES ('3174', '港口镇', '442011', '442000'); -INSERT INTO `area` VALUES ('3175', '沙溪镇', '442012', '442000'); -INSERT INTO `area` VALUES ('3176', '板芙镇', '442013', '442000'); -INSERT INTO `area` VALUES ('3177', '沙朗镇', '442014', '442000'); -INSERT INTO `area` VALUES ('3178', '东升镇', '442015', '442000'); -INSERT INTO `area` VALUES ('3179', '阜沙镇', '442016', '442000'); -INSERT INTO `area` VALUES ('3180', '民众镇', '442017', '442000'); -INSERT INTO `area` VALUES ('3181', '东区街道', '442018', '442000'); -INSERT INTO `area` VALUES ('3182', '火炬开发区', '442019', '442000'); -INSERT INTO `area` VALUES ('3183', '西区街道', '442020', '442000'); -INSERT INTO `area` VALUES ('3184', '南区街道', '442021', '442000'); -INSERT INTO `area` VALUES ('3185', '古镇', '442022', '442000'); -INSERT INTO `area` VALUES ('3186', '坦洲镇', '442023', '442000'); -INSERT INTO `area` VALUES ('3187', '大涌镇', '442024', '442000'); -INSERT INTO `area` VALUES ('3188', '南朗镇', '442025', '442000'); diff --git a/backend/modules/shop/migrations/sql/city.sql b/backend/modules/shop/migrations/sql/city.sql deleted file mode 100755 index dce78d2..0000000 --- a/backend/modules/shop/migrations/sql/city.sql +++ /dev/null @@ -1,376 +0,0 @@ -/* -Navicat MySQL Data Transfer - -Source Server : phpstudy -Source Server Version : 50553 -Source Host : localhost:3306 -Source Database : kcshop - -Target Server Type : MYSQL -Target Server Version : 50553 -File Encoding : 65001 - -Date: 2018-05-24 09:32:55 -*/ - -SET FOREIGN_KEY_CHECKS=0; - --- ---------------------------- --- Table structure for city --- ---------------------------- -DROP TABLE IF EXISTS `city`; -CREATE TABLE `city` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `city_id` int(8) DEFAULT NULL, - `name` varchar(32) DEFAULT NULL, - `province_id` int(8) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=345 DEFAULT CHARSET=utf8; - --- ---------------------------- --- Records of city --- ---------------------------- -INSERT INTO `city` VALUES ('1', '110100', '市辖区', '110000'); -INSERT INTO `city` VALUES ('2', '120100', '市辖区', '120000'); -INSERT INTO `city` VALUES ('3', '130100', '石家庄市', '130000'); -INSERT INTO `city` VALUES ('4', '130200', '唐山市', '130000'); -INSERT INTO `city` VALUES ('5', '130300', '秦皇岛市', '130000'); -INSERT INTO `city` VALUES ('6', '130400', '邯郸市', '130000'); -INSERT INTO `city` VALUES ('7', '130500', '邢台市', '130000'); -INSERT INTO `city` VALUES ('8', '130600', '保定市', '130000'); -INSERT INTO `city` VALUES ('9', '130700', '张家口市', '130000'); -INSERT INTO `city` VALUES ('10', '130800', '承德市', '130000'); -INSERT INTO `city` VALUES ('11', '130900', '沧州市', '130000'); -INSERT INTO `city` VALUES ('12', '131000', '廊坊市', '130000'); -INSERT INTO `city` VALUES ('13', '131100', '衡水市', '130000'); -INSERT INTO `city` VALUES ('14', '139000', '省直辖县级行政区划', '130000'); -INSERT INTO `city` VALUES ('15', '140100', '太原市', '140000'); -INSERT INTO `city` VALUES ('16', '140200', '大同市', '140000'); -INSERT INTO `city` VALUES ('17', '140300', '阳泉市', '140000'); -INSERT INTO `city` VALUES ('18', '140400', '长治市', '140000'); -INSERT INTO `city` VALUES ('19', '140500', '晋城市', '140000'); -INSERT INTO `city` VALUES ('20', '140600', '朔州市', '140000'); -INSERT INTO `city` VALUES ('21', '140700', '晋中市', '140000'); -INSERT INTO `city` VALUES ('22', '140800', '运城市', '140000'); -INSERT INTO `city` VALUES ('23', '140900', '忻州市', '140000'); -INSERT INTO `city` VALUES ('24', '141000', '临汾市', '140000'); -INSERT INTO `city` VALUES ('25', '141100', '吕梁市', '140000'); -INSERT INTO `city` VALUES ('26', '150100', '呼和浩特市', '150000'); -INSERT INTO `city` VALUES ('27', '150200', '包头市', '150000'); -INSERT INTO `city` VALUES ('28', '150300', '乌海市', '150000'); -INSERT INTO `city` VALUES ('29', '150400', '赤峰市', '150000'); -INSERT INTO `city` VALUES ('30', '150500', '通辽市', '150000'); -INSERT INTO `city` VALUES ('31', '150600', '鄂尔多斯市', '150000'); -INSERT INTO `city` VALUES ('32', '150700', '呼伦贝尔市', '150000'); -INSERT INTO `city` VALUES ('33', '150800', '巴彦淖尔市', '150000'); -INSERT INTO `city` VALUES ('34', '150900', '乌兰察布市', '150000'); -INSERT INTO `city` VALUES ('35', '152200', '兴安盟', '150000'); -INSERT INTO `city` VALUES ('36', '152500', '锡林郭勒盟', '150000'); -INSERT INTO `city` VALUES ('37', '152900', '阿拉善盟', '150000'); -INSERT INTO `city` VALUES ('38', '210100', '沈阳市', '210000'); -INSERT INTO `city` VALUES ('39', '210200', '大连市', '210000'); -INSERT INTO `city` VALUES ('40', '210300', '鞍山市', '210000'); -INSERT INTO `city` VALUES ('41', '210400', '抚顺市', '210000'); -INSERT INTO `city` VALUES ('42', '210500', '本溪市', '210000'); -INSERT INTO `city` VALUES ('43', '210600', '丹东市', '210000'); -INSERT INTO `city` VALUES ('44', '210700', '锦州市', '210000'); -INSERT INTO `city` VALUES ('45', '210800', '营口市', '210000'); -INSERT INTO `city` VALUES ('46', '210900', '阜新市', '210000'); -INSERT INTO `city` VALUES ('47', '211000', '辽阳市', '210000'); -INSERT INTO `city` VALUES ('48', '211100', '盘锦市', '210000'); -INSERT INTO `city` VALUES ('49', '211200', '铁岭市', '210000'); -INSERT INTO `city` VALUES ('50', '211300', '朝阳市', '210000'); -INSERT INTO `city` VALUES ('51', '211400', '葫芦岛市', '210000'); -INSERT INTO `city` VALUES ('52', '220100', '长春市', '220000'); -INSERT INTO `city` VALUES ('53', '220200', '吉林市', '220000'); -INSERT INTO `city` VALUES ('54', '220300', '四平市', '220000'); -INSERT INTO `city` VALUES ('55', '220400', '辽源市', '220000'); -INSERT INTO `city` VALUES ('56', '220500', '通化市', '220000'); -INSERT INTO `city` VALUES ('57', '220600', '白山市', '220000'); -INSERT INTO `city` VALUES ('58', '220700', '松原市', '220000'); -INSERT INTO `city` VALUES ('59', '220800', '白城市', '220000'); -INSERT INTO `city` VALUES ('60', '222400', '延边朝鲜族自治州', '220000'); -INSERT INTO `city` VALUES ('61', '230100', '哈尔滨市', '230000'); -INSERT INTO `city` VALUES ('62', '230200', '齐齐哈尔市', '230000'); -INSERT INTO `city` VALUES ('63', '230300', '鸡西市', '230000'); -INSERT INTO `city` VALUES ('64', '230400', '鹤岗市', '230000'); -INSERT INTO `city` VALUES ('65', '230500', '双鸭山市', '230000'); -INSERT INTO `city` VALUES ('66', '230600', '大庆市', '230000'); -INSERT INTO `city` VALUES ('67', '230700', '伊春市', '230000'); -INSERT INTO `city` VALUES ('68', '230800', '佳木斯市', '230000'); -INSERT INTO `city` VALUES ('69', '230900', '七台河市', '230000'); -INSERT INTO `city` VALUES ('70', '231000', '牡丹江市', '230000'); -INSERT INTO `city` VALUES ('71', '231100', '黑河市', '230000'); -INSERT INTO `city` VALUES ('72', '231200', '绥化市', '230000'); -INSERT INTO `city` VALUES ('73', '232700', '大兴安岭地区', '230000'); -INSERT INTO `city` VALUES ('74', '310100', '市辖区', '310000'); -INSERT INTO `city` VALUES ('75', '320100', '南京市', '320000'); -INSERT INTO `city` VALUES ('76', '320200', '无锡市', '320000'); -INSERT INTO `city` VALUES ('77', '320300', '徐州市', '320000'); -INSERT INTO `city` VALUES ('78', '320400', '常州市', '320000'); -INSERT INTO `city` VALUES ('79', '320500', '苏州市', '320000'); -INSERT INTO `city` VALUES ('80', '320600', '南通市', '320000'); -INSERT INTO `city` VALUES ('81', '320700', '连云港市', '320000'); -INSERT INTO `city` VALUES ('82', '320800', '淮安市', '320000'); -INSERT INTO `city` VALUES ('83', '320900', '盐城市', '320000'); -INSERT INTO `city` VALUES ('84', '321000', '扬州市', '320000'); -INSERT INTO `city` VALUES ('85', '321100', '镇江市', '320000'); -INSERT INTO `city` VALUES ('86', '321200', '泰州市', '320000'); -INSERT INTO `city` VALUES ('87', '321300', '宿迁市', '320000'); -INSERT INTO `city` VALUES ('88', '330100', '杭州市', '330000'); -INSERT INTO `city` VALUES ('89', '330200', '宁波市', '330000'); -INSERT INTO `city` VALUES ('90', '330300', '温州市', '330000'); -INSERT INTO `city` VALUES ('91', '330400', '嘉兴市', '330000'); -INSERT INTO `city` VALUES ('92', '330500', '湖州市', '330000'); -INSERT INTO `city` VALUES ('93', '330600', '绍兴市', '330000'); -INSERT INTO `city` VALUES ('94', '330700', '金华市', '330000'); -INSERT INTO `city` VALUES ('95', '330800', '衢州市', '330000'); -INSERT INTO `city` VALUES ('96', '330900', '舟山市', '330000'); -INSERT INTO `city` VALUES ('97', '331000', '台州市', '330000'); -INSERT INTO `city` VALUES ('98', '331100', '丽水市', '330000'); -INSERT INTO `city` VALUES ('99', '340100', '合肥市', '340000'); -INSERT INTO `city` VALUES ('100', '340200', '芜湖市', '340000'); -INSERT INTO `city` VALUES ('101', '340300', '蚌埠市', '340000'); -INSERT INTO `city` VALUES ('102', '340400', '淮南市', '340000'); -INSERT INTO `city` VALUES ('103', '340500', '马鞍山市', '340000'); -INSERT INTO `city` VALUES ('104', '340600', '淮北市', '340000'); -INSERT INTO `city` VALUES ('105', '340700', '铜陵市', '340000'); -INSERT INTO `city` VALUES ('106', '340800', '安庆市', '340000'); -INSERT INTO `city` VALUES ('107', '341000', '黄山市', '340000'); -INSERT INTO `city` VALUES ('108', '341100', '滁州市', '340000'); -INSERT INTO `city` VALUES ('109', '341200', '阜阳市', '340000'); -INSERT INTO `city` VALUES ('110', '341300', '宿州市', '340000'); -INSERT INTO `city` VALUES ('111', '341500', '六安市', '340000'); -INSERT INTO `city` VALUES ('112', '341600', '亳州市', '340000'); -INSERT INTO `city` VALUES ('113', '341700', '池州市', '340000'); -INSERT INTO `city` VALUES ('114', '341800', '宣城市', '340000'); -INSERT INTO `city` VALUES ('115', '350100', '福州市', '350000'); -INSERT INTO `city` VALUES ('116', '350200', '厦门市', '350000'); -INSERT INTO `city` VALUES ('117', '350300', '莆田市', '350000'); -INSERT INTO `city` VALUES ('118', '350400', '三明市', '350000'); -INSERT INTO `city` VALUES ('119', '350500', '泉州市', '350000'); -INSERT INTO `city` VALUES ('120', '350600', '漳州市', '350000'); -INSERT INTO `city` VALUES ('121', '350700', '南平市', '350000'); -INSERT INTO `city` VALUES ('122', '350800', '龙岩市', '350000'); -INSERT INTO `city` VALUES ('123', '350900', '宁德市', '350000'); -INSERT INTO `city` VALUES ('124', '360100', '南昌市', '360000'); -INSERT INTO `city` VALUES ('125', '360200', '景德镇市', '360000'); -INSERT INTO `city` VALUES ('126', '360300', '萍乡市', '360000'); -INSERT INTO `city` VALUES ('127', '360400', '九江市', '360000'); -INSERT INTO `city` VALUES ('128', '360500', '新余市', '360000'); -INSERT INTO `city` VALUES ('129', '360600', '鹰潭市', '360000'); -INSERT INTO `city` VALUES ('130', '360700', '赣州市', '360000'); -INSERT INTO `city` VALUES ('131', '360800', '吉安市', '360000'); -INSERT INTO `city` VALUES ('132', '360900', '宜春市', '360000'); -INSERT INTO `city` VALUES ('133', '361000', '抚州市', '360000'); -INSERT INTO `city` VALUES ('134', '361100', '上饶市', '360000'); -INSERT INTO `city` VALUES ('135', '370100', '济南市', '370000'); -INSERT INTO `city` VALUES ('136', '370200', '青岛市', '370000'); -INSERT INTO `city` VALUES ('137', '370300', '淄博市', '370000'); -INSERT INTO `city` VALUES ('138', '370400', '枣庄市', '370000'); -INSERT INTO `city` VALUES ('139', '370500', '东营市', '370000'); -INSERT INTO `city` VALUES ('140', '370600', '烟台市', '370000'); -INSERT INTO `city` VALUES ('141', '370700', '潍坊市', '370000'); -INSERT INTO `city` VALUES ('142', '370800', '济宁市', '370000'); -INSERT INTO `city` VALUES ('143', '370900', '泰安市', '370000'); -INSERT INTO `city` VALUES ('144', '371000', '威海市', '370000'); -INSERT INTO `city` VALUES ('145', '371100', '日照市', '370000'); -INSERT INTO `city` VALUES ('146', '371200', '莱芜市', '370000'); -INSERT INTO `city` VALUES ('147', '371300', '临沂市', '370000'); -INSERT INTO `city` VALUES ('148', '371400', '德州市', '370000'); -INSERT INTO `city` VALUES ('149', '371500', '聊城市', '370000'); -INSERT INTO `city` VALUES ('150', '371600', '滨州市', '370000'); -INSERT INTO `city` VALUES ('151', '371700', '菏泽市', '370000'); -INSERT INTO `city` VALUES ('152', '410100', '郑州市', '410000'); -INSERT INTO `city` VALUES ('153', '410200', '开封市', '410000'); -INSERT INTO `city` VALUES ('154', '410300', '洛阳市', '410000'); -INSERT INTO `city` VALUES ('155', '410400', '平顶山市', '410000'); -INSERT INTO `city` VALUES ('156', '410500', '安阳市', '410000'); -INSERT INTO `city` VALUES ('157', '410600', '鹤壁市', '410000'); -INSERT INTO `city` VALUES ('158', '410700', '新乡市', '410000'); -INSERT INTO `city` VALUES ('159', '410800', '焦作市', '410000'); -INSERT INTO `city` VALUES ('160', '410900', '濮阳市', '410000'); -INSERT INTO `city` VALUES ('161', '411000', '许昌市', '410000'); -INSERT INTO `city` VALUES ('162', '411100', '漯河市', '410000'); -INSERT INTO `city` VALUES ('163', '411200', '三门峡市', '410000'); -INSERT INTO `city` VALUES ('164', '411300', '南阳市', '410000'); -INSERT INTO `city` VALUES ('165', '411400', '商丘市', '410000'); -INSERT INTO `city` VALUES ('166', '411500', '信阳市', '410000'); -INSERT INTO `city` VALUES ('167', '411600', '周口市', '410000'); -INSERT INTO `city` VALUES ('168', '411700', '驻马店市', '410000'); -INSERT INTO `city` VALUES ('169', '419000', '省直辖县级行政区划', '410000'); -INSERT INTO `city` VALUES ('170', '420100', '武汉市', '420000'); -INSERT INTO `city` VALUES ('171', '420200', '黄石市', '420000'); -INSERT INTO `city` VALUES ('172', '420300', '十堰市', '420000'); -INSERT INTO `city` VALUES ('173', '420500', '宜昌市', '420000'); -INSERT INTO `city` VALUES ('174', '420600', '襄阳市', '420000'); -INSERT INTO `city` VALUES ('175', '420700', '鄂州市', '420000'); -INSERT INTO `city` VALUES ('176', '420800', '荆门市', '420000'); -INSERT INTO `city` VALUES ('177', '420900', '孝感市', '420000'); -INSERT INTO `city` VALUES ('178', '421000', '荆州市', '420000'); -INSERT INTO `city` VALUES ('179', '421100', '黄冈市', '420000'); -INSERT INTO `city` VALUES ('180', '421200', '咸宁市', '420000'); -INSERT INTO `city` VALUES ('181', '421300', '随州市', '420000'); -INSERT INTO `city` VALUES ('182', '422800', '恩施土家族苗族自治州', '420000'); -INSERT INTO `city` VALUES ('183', '429000', '省直辖县级行政区划', '420000'); -INSERT INTO `city` VALUES ('184', '430100', '长沙市', '430000'); -INSERT INTO `city` VALUES ('185', '430200', '株洲市', '430000'); -INSERT INTO `city` VALUES ('186', '430300', '湘潭市', '430000'); -INSERT INTO `city` VALUES ('187', '430400', '衡阳市', '430000'); -INSERT INTO `city` VALUES ('188', '430500', '邵阳市', '430000'); -INSERT INTO `city` VALUES ('189', '430600', '岳阳市', '430000'); -INSERT INTO `city` VALUES ('190', '430700', '常德市', '430000'); -INSERT INTO `city` VALUES ('191', '430800', '张家界市', '430000'); -INSERT INTO `city` VALUES ('192', '430900', '益阳市', '430000'); -INSERT INTO `city` VALUES ('193', '431000', '郴州市', '430000'); -INSERT INTO `city` VALUES ('194', '431100', '永州市', '430000'); -INSERT INTO `city` VALUES ('195', '431200', '怀化市', '430000'); -INSERT INTO `city` VALUES ('196', '431300', '娄底市', '430000'); -INSERT INTO `city` VALUES ('197', '433100', '湘西土家族苗族自治州', '430000'); -INSERT INTO `city` VALUES ('198', '440100', '广州市', '440000'); -INSERT INTO `city` VALUES ('199', '440200', '韶关市', '440000'); -INSERT INTO `city` VALUES ('200', '440300', '深圳市', '440000'); -INSERT INTO `city` VALUES ('201', '440400', '珠海市', '440000'); -INSERT INTO `city` VALUES ('202', '440500', '汕头市', '440000'); -INSERT INTO `city` VALUES ('203', '440600', '佛山市', '440000'); -INSERT INTO `city` VALUES ('204', '440700', '江门市', '440000'); -INSERT INTO `city` VALUES ('205', '440800', '湛江市', '440000'); -INSERT INTO `city` VALUES ('206', '440900', '茂名市', '440000'); -INSERT INTO `city` VALUES ('207', '441200', '肇庆市', '440000'); -INSERT INTO `city` VALUES ('208', '441300', '惠州市', '440000'); -INSERT INTO `city` VALUES ('209', '441400', '梅州市', '440000'); -INSERT INTO `city` VALUES ('210', '441500', '汕尾市', '440000'); -INSERT INTO `city` VALUES ('211', '441600', '河源市', '440000'); -INSERT INTO `city` VALUES ('212', '441700', '阳江市', '440000'); -INSERT INTO `city` VALUES ('213', '441800', '清远市', '440000'); -INSERT INTO `city` VALUES ('214', '441900', '东莞市', '440000'); -INSERT INTO `city` VALUES ('215', '442000', '中山市', '440000'); -INSERT INTO `city` VALUES ('216', '445100', '潮州市', '440000'); -INSERT INTO `city` VALUES ('217', '445200', '揭阳市', '440000'); -INSERT INTO `city` VALUES ('218', '445300', '云浮市', '440000'); -INSERT INTO `city` VALUES ('219', '450100', '南宁市', '450000'); -INSERT INTO `city` VALUES ('220', '450200', '柳州市', '450000'); -INSERT INTO `city` VALUES ('221', '450300', '桂林市', '450000'); -INSERT INTO `city` VALUES ('222', '450400', '梧州市', '450000'); -INSERT INTO `city` VALUES ('223', '450500', '北海市', '450000'); -INSERT INTO `city` VALUES ('224', '450600', '防城港市', '450000'); -INSERT INTO `city` VALUES ('225', '450700', '钦州市', '450000'); -INSERT INTO `city` VALUES ('226', '450800', '贵港市', '450000'); -INSERT INTO `city` VALUES ('227', '450900', '玉林市', '450000'); -INSERT INTO `city` VALUES ('228', '451000', '百色市', '450000'); -INSERT INTO `city` VALUES ('229', '451100', '贺州市', '450000'); -INSERT INTO `city` VALUES ('230', '451200', '河池市', '450000'); -INSERT INTO `city` VALUES ('231', '451300', '来宾市', '450000'); -INSERT INTO `city` VALUES ('232', '451400', '崇左市', '450000'); -INSERT INTO `city` VALUES ('233', '460100', '海口市', '460000'); -INSERT INTO `city` VALUES ('234', '460200', '三亚市', '460000'); -INSERT INTO `city` VALUES ('235', '460300', '三沙市', '460000'); -INSERT INTO `city` VALUES ('236', '460400', '儋州市', '460000'); -INSERT INTO `city` VALUES ('237', '469000', '省直辖县级行政区划', '460000'); -INSERT INTO `city` VALUES ('238', '500100', '市辖区', '500000'); -INSERT INTO `city` VALUES ('239', '500200', '县', '500000'); -INSERT INTO `city` VALUES ('240', '510100', '成都市', '510000'); -INSERT INTO `city` VALUES ('241', '510300', '自贡市', '510000'); -INSERT INTO `city` VALUES ('242', '510400', '攀枝花市', '510000'); -INSERT INTO `city` VALUES ('243', '510500', '泸州市', '510000'); -INSERT INTO `city` VALUES ('244', '510600', '德阳市', '510000'); -INSERT INTO `city` VALUES ('245', '510700', '绵阳市', '510000'); -INSERT INTO `city` VALUES ('246', '510800', '广元市', '510000'); -INSERT INTO `city` VALUES ('247', '510900', '遂宁市', '510000'); -INSERT INTO `city` VALUES ('248', '511000', '内江市', '510000'); -INSERT INTO `city` VALUES ('249', '511100', '乐山市', '510000'); -INSERT INTO `city` VALUES ('250', '511300', '南充市', '510000'); -INSERT INTO `city` VALUES ('251', '511400', '眉山市', '510000'); -INSERT INTO `city` VALUES ('252', '511500', '宜宾市', '510000'); -INSERT INTO `city` VALUES ('253', '511600', '广安市', '510000'); -INSERT INTO `city` VALUES ('254', '511700', '达州市', '510000'); -INSERT INTO `city` VALUES ('255', '511800', '雅安市', '510000'); -INSERT INTO `city` VALUES ('256', '511900', '巴中市', '510000'); -INSERT INTO `city` VALUES ('257', '512000', '资阳市', '510000'); -INSERT INTO `city` VALUES ('258', '513200', '阿坝藏族羌族自治州', '510000'); -INSERT INTO `city` VALUES ('259', '513300', '甘孜藏族自治州', '510000'); -INSERT INTO `city` VALUES ('260', '513400', '凉山彝族自治州', '510000'); -INSERT INTO `city` VALUES ('261', '520100', '贵阳市', '520000'); -INSERT INTO `city` VALUES ('262', '520200', '六盘水市', '520000'); -INSERT INTO `city` VALUES ('263', '520300', '遵义市', '520000'); -INSERT INTO `city` VALUES ('264', '520400', '安顺市', '520000'); -INSERT INTO `city` VALUES ('265', '520500', '毕节市', '520000'); -INSERT INTO `city` VALUES ('266', '520600', '铜仁市', '520000'); -INSERT INTO `city` VALUES ('267', '522300', '黔西南布依族苗族自治州', '520000'); -INSERT INTO `city` VALUES ('268', '522600', '黔东南苗族侗族自治州', '520000'); -INSERT INTO `city` VALUES ('269', '522700', '黔南布依族苗族自治州', '520000'); -INSERT INTO `city` VALUES ('270', '530100', '昆明市', '530000'); -INSERT INTO `city` VALUES ('271', '530300', '曲靖市', '530000'); -INSERT INTO `city` VALUES ('272', '530400', '玉溪市', '530000'); -INSERT INTO `city` VALUES ('273', '530500', '保山市', '530000'); -INSERT INTO `city` VALUES ('274', '530600', '昭通市', '530000'); -INSERT INTO `city` VALUES ('275', '530700', '丽江市', '530000'); -INSERT INTO `city` VALUES ('276', '530800', '普洱市', '530000'); -INSERT INTO `city` VALUES ('277', '530900', '临沧市', '530000'); -INSERT INTO `city` VALUES ('278', '532300', '楚雄彝族自治州', '530000'); -INSERT INTO `city` VALUES ('279', '532500', '红河哈尼族彝族自治州', '530000'); -INSERT INTO `city` VALUES ('280', '532600', '文山壮族苗族自治州', '530000'); -INSERT INTO `city` VALUES ('281', '532800', '西双版纳傣族自治州', '530000'); -INSERT INTO `city` VALUES ('282', '532900', '大理白族自治州', '530000'); -INSERT INTO `city` VALUES ('283', '533100', '德宏傣族景颇族自治州', '530000'); -INSERT INTO `city` VALUES ('284', '533300', '怒江傈僳族自治州', '530000'); -INSERT INTO `city` VALUES ('285', '533400', '迪庆藏族自治州', '530000'); -INSERT INTO `city` VALUES ('286', '540100', '拉萨市', '540000'); -INSERT INTO `city` VALUES ('287', '540200', '日喀则市', '540000'); -INSERT INTO `city` VALUES ('288', '540300', '昌都市', '540000'); -INSERT INTO `city` VALUES ('289', '540400', '林芝市', '540000'); -INSERT INTO `city` VALUES ('290', '540500', '山南市', '540000'); -INSERT INTO `city` VALUES ('291', '542400', '那曲地区', '540000'); -INSERT INTO `city` VALUES ('292', '542500', '阿里地区', '540000'); -INSERT INTO `city` VALUES ('293', '610100', '西安市', '610000'); -INSERT INTO `city` VALUES ('294', '610200', '铜川市', '610000'); -INSERT INTO `city` VALUES ('295', '610300', '宝鸡市', '610000'); -INSERT INTO `city` VALUES ('296', '610400', '咸阳市', '610000'); -INSERT INTO `city` VALUES ('297', '610500', '渭南市', '610000'); -INSERT INTO `city` VALUES ('298', '610600', '延安市', '610000'); -INSERT INTO `city` VALUES ('299', '610700', '汉中市', '610000'); -INSERT INTO `city` VALUES ('300', '610800', '榆林市', '610000'); -INSERT INTO `city` VALUES ('301', '610900', '安康市', '610000'); -INSERT INTO `city` VALUES ('302', '611000', '商洛市', '610000'); -INSERT INTO `city` VALUES ('303', '620100', '兰州市', '620000'); -INSERT INTO `city` VALUES ('304', '620200', '嘉峪关市', '620000'); -INSERT INTO `city` VALUES ('305', '620300', '金昌市', '620000'); -INSERT INTO `city` VALUES ('306', '620400', '白银市', '620000'); -INSERT INTO `city` VALUES ('307', '620500', '天水市', '620000'); -INSERT INTO `city` VALUES ('308', '620600', '武威市', '620000'); -INSERT INTO `city` VALUES ('309', '620700', '张掖市', '620000'); -INSERT INTO `city` VALUES ('310', '620800', '平凉市', '620000'); -INSERT INTO `city` VALUES ('311', '620900', '酒泉市', '620000'); -INSERT INTO `city` VALUES ('312', '621000', '庆阳市', '620000'); -INSERT INTO `city` VALUES ('313', '621100', '定西市', '620000'); -INSERT INTO `city` VALUES ('314', '621200', '陇南市', '620000'); -INSERT INTO `city` VALUES ('315', '622900', '临夏回族自治州', '620000'); -INSERT INTO `city` VALUES ('316', '623000', '甘南藏族自治州', '620000'); -INSERT INTO `city` VALUES ('317', '630100', '西宁市', '630000'); -INSERT INTO `city` VALUES ('318', '630200', '海东市', '630000'); -INSERT INTO `city` VALUES ('319', '632200', '海北藏族自治州', '630000'); -INSERT INTO `city` VALUES ('320', '632300', '黄南藏族自治州', '630000'); -INSERT INTO `city` VALUES ('321', '632500', '海南藏族自治州', '630000'); -INSERT INTO `city` VALUES ('322', '632600', '果洛藏族自治州', '630000'); -INSERT INTO `city` VALUES ('323', '632700', '玉树藏族自治州', '630000'); -INSERT INTO `city` VALUES ('324', '632800', '海西蒙古族藏族自治州', '630000'); -INSERT INTO `city` VALUES ('325', '640100', '银川市', '640000'); -INSERT INTO `city` VALUES ('326', '640200', '石嘴山市', '640000'); -INSERT INTO `city` VALUES ('327', '640300', '吴忠市', '640000'); -INSERT INTO `city` VALUES ('328', '640400', '固原市', '640000'); -INSERT INTO `city` VALUES ('329', '640500', '中卫市', '640000'); -INSERT INTO `city` VALUES ('330', '650100', '乌鲁木齐市', '650000'); -INSERT INTO `city` VALUES ('331', '650200', '克拉玛依市', '650000'); -INSERT INTO `city` VALUES ('332', '650400', '吐鲁番市', '650000'); -INSERT INTO `city` VALUES ('333', '650500', '哈密市', '650000'); -INSERT INTO `city` VALUES ('334', '652300', '昌吉回族自治州', '650000'); -INSERT INTO `city` VALUES ('335', '652700', '博尔塔拉蒙古自治州', '650000'); -INSERT INTO `city` VALUES ('336', '652800', '巴音郭楞蒙古自治州', '650000'); -INSERT INTO `city` VALUES ('337', '652900', '阿克苏地区', '650000'); -INSERT INTO `city` VALUES ('338', '653000', '克孜勒苏柯尔克孜自治州', '650000'); -INSERT INTO `city` VALUES ('339', '653100', '喀什地区', '650000'); -INSERT INTO `city` VALUES ('340', '653200', '和田地区', '650000'); -INSERT INTO `city` VALUES ('341', '654000', '伊犁哈萨克自治州', '650000'); -INSERT INTO `city` VALUES ('342', '654200', '塔城地区', '650000'); -INSERT INTO `city` VALUES ('343', '654300', '阿勒泰地区', '650000'); -INSERT INTO `city` VALUES ('344', '659000', '自治区直辖县级行政区划', '650000'); diff --git a/backend/modules/shop/migrations/sql/province.sql b/backend/modules/shop/migrations/sql/province.sql deleted file mode 100755 index 2d72e55..0000000 --- a/backend/modules/shop/migrations/sql/province.sql +++ /dev/null @@ -1,65 +0,0 @@ -/* -Navicat MySQL Data Transfer - -Source Server : phpstudy -Source Server Version : 50553 -Source Host : localhost:3306 -Source Database : kcshop - -Target Server Type : MYSQL -Target Server Version : 50553 -File Encoding : 65001 - -Date: 2018-05-24 09:32:39 -*/ - -SET FOREIGN_KEY_CHECKS=0; - --- ---------------------------- --- Table structure for province --- ---------------------------- -DROP TABLE IF EXISTS `province`; -CREATE TABLE `province` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(16) DEFAULT NULL, - `province_id` int(8) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8; - --- ---------------------------- --- Records of province --- ---------------------------- -INSERT INTO `province` VALUES ('1', '北京市', '110000'); -INSERT INTO `province` VALUES ('2', '天津市', '120000'); -INSERT INTO `province` VALUES ('3', '河北省', '130000'); -INSERT INTO `province` VALUES ('4', '山西省', '140000'); -INSERT INTO `province` VALUES ('5', '内蒙古自治区', '150000'); -INSERT INTO `province` VALUES ('6', '辽宁省', '210000'); -INSERT INTO `province` VALUES ('7', '吉林省', '220000'); -INSERT INTO `province` VALUES ('8', '黑龙江省', '230000'); -INSERT INTO `province` VALUES ('9', '上海市', '310000'); -INSERT INTO `province` VALUES ('10', '江苏省', '320000'); -INSERT INTO `province` VALUES ('11', '浙江省', '330000'); -INSERT INTO `province` VALUES ('12', '安徽省', '340000'); -INSERT INTO `province` VALUES ('13', '福建省', '350000'); -INSERT INTO `province` VALUES ('14', '江西省', '360000'); -INSERT INTO `province` VALUES ('15', '山东省', '370000'); -INSERT INTO `province` VALUES ('16', '河南省', '410000'); -INSERT INTO `province` VALUES ('17', '湖北省', '420000'); -INSERT INTO `province` VALUES ('18', '湖南省', '430000'); -INSERT INTO `province` VALUES ('19', '广东省', '440000'); -INSERT INTO `province` VALUES ('20', '广西壮族自治区', '450000'); -INSERT INTO `province` VALUES ('21', '海南省', '460000'); -INSERT INTO `province` VALUES ('22', '重庆市', '500000'); -INSERT INTO `province` VALUES ('23', '四川省', '510000'); -INSERT INTO `province` VALUES ('24', '贵州省', '520000'); -INSERT INTO `province` VALUES ('25', '云南省', '530000'); -INSERT INTO `province` VALUES ('26', '西藏自治区', '540000'); -INSERT INTO `province` VALUES ('27', '陕西省', '610000'); -INSERT INTO `province` VALUES ('28', '甘肃省', '620000'); -INSERT INTO `province` VALUES ('29', '青海省', '630000'); -INSERT INTO `province` VALUES ('30', '宁夏回族自治区', '640000'); -INSERT INTO `province` VALUES ('31', '新疆维吾尔自治区', '650000'); -INSERT INTO `province` VALUES ('32', '台湾省', '710000'); -INSERT INTO `province` VALUES ('33', '香港特别行政区', '810000'); -INSERT INTO `province` VALUES ('34', '澳门特别行政区', '820000'); diff --git a/backend/modules/shop/models/.gitkeep b/backend/modules/shop/models/.gitkeep deleted file mode 100755 index 72e8ffc..0000000 --- a/backend/modules/shop/models/.gitkeep +++ /dev/null @@ -1 +0,0 @@ -* diff --git a/backend/modules/shop/models/ars/Address.php b/backend/modules/shop/models/ars/Address.php deleted file mode 100755 index b9c4401..0000000 --- a/backend/modules/shop/models/ars/Address.php +++ /dev/null @@ -1,91 +0,0 @@ - 20], - [['province', 'city', 'area'], 'string', 'max' => 10], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'consignee' => '收件人', - 'phone' => '电话', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'address' => '详细地址', - 'status' => '状态,0-默认值 1-默认地址', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function () { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/shop/models/ars/AfterSale.php b/backend/modules/shop/models/ars/AfterSale.php deleted file mode 100755 index 5b41f47..0000000 --- a/backend/modules/shop/models/ars/AfterSale.php +++ /dev/null @@ -1,122 +0,0 @@ - '全额退款', - self::REFUND_TYPE_PART => '部分退款' - ]; - public static $status = [ - self::STATUS_UNTREATED => '未处理', - self::STATUS_ACCEPT => '已同意,待买家确认', - self::STATUS_CONFIRM => '用户已确认', - self::STATUS_REJECT => '已拒绝', - self::STATUS_FINISH => '退款成功', - self::STATUS_CANCEL => '已取消' - ]; - public static $refundMode = [ - self::REFUND_MODE_MONEY => '仅退款', - self::REFUND_MODE_MONEY_GOODS => '退货退款' - ]; - public static $afterSaleReason = [ - 1 => '7天无理由退货', - 2 => '质量问题', - 3 => '买错东西', - 4 => '商品不满意', - ]; - /** - * {@inheritdoc} - */ - public static function tableName() - { - return 'ats_after_sale'; - } - - /** - * {@inheritdoc} - */ - public function rules() - { - return [ - [['user_id', 'order_goods_id', 'amount', 'count', 'apply_at', 'dealt_at', 'finish_at', 'operator_id', 'refund_type', 'status', 'reason', 'refund_mode'], 'integer'], - [['description', 'image', 'remarks'], 'string'], - [['wx_refund_id', 'after_sale_sn'], 'string', 'max' => 64], - [['take_shipping_sn'], 'string', 'max' => 50], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'wx_refund_id' => '微信退款单号', - 'after_sale_sn' => '售后单号', - 'user_id' => '用户id', - 'order_goods_id' => '订单商品', - 'amount' => '退货时实际退的金额', - 'count' => '退货的商品数量', - 'apply_at' => '申请时间', - 'dealt_at' => '处理时间', - 'finish_at' => '完成时间', - 'operator_id' => '操作者', - 'refund_type' => '退款类型', - 'description' => '描述', - 'image' => '图片', - 'status' => '处理状态', - 'reason' => '退货理由', - 'remarks' => '店家备注', - 'take_shipping_sn' => '用户发货物流单号', - 'refund_mode' => '退款方式', - ]; - } - - public function getGoods() - { - return $this->hasOne(OrderGoods::className(), ['id' => 'order_goods_id']); - } - - -} diff --git a/backend/modules/shop/models/ars/Area.php b/backend/modules/shop/models/ars/Area.php deleted file mode 100755 index c1319a1..0000000 --- a/backend/modules/shop/models/ars/Area.php +++ /dev/null @@ -1,51 +0,0 @@ - 32], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => 'name', - 'area_id' => 'area_id', - 'city_id' => 'city_id', - ]; - } - - -} diff --git a/backend/modules/shop/models/ars/Cart.php b/backend/modules/shop/models/ars/Cart.php deleted file mode 100755 index 2a2901b..0000000 --- a/backend/modules/shop/models/ars/Cart.php +++ /dev/null @@ -1,86 +0,0 @@ - 120], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'goods_id' => '商品id', - 'goods_name' => '商品名称', - 'goods_img' => '商品图片', - 'goods_price' => '商品售价', - 'sku_id' => '商品sku的id', - 'goods_count' => '商品数量', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - 'sku_value' => '商品sku', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/shop/models/ars/City.php b/backend/modules/shop/models/ars/City.php deleted file mode 100755 index 4d3feb2..0000000 --- a/backend/modules/shop/models/ars/City.php +++ /dev/null @@ -1,51 +0,0 @@ - 32], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'city_id' => 'city_id', - 'name' => 'name', - 'province_id' => 'province_id', - ]; - } - - -} diff --git a/backend/modules/shop/models/ars/Collection.php b/backend/modules/shop/models/ars/Collection.php deleted file mode 100644 index bd59665..0000000 --- a/backend/modules/shop/models/ars/Collection.php +++ /dev/null @@ -1,79 +0,0 @@ - 120], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'goods_id' => '商品id', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - 'goods_name' => '商品名称', - 'goods_img' => '商品图片', - 'goods_price' => '商品价格', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/shop/models/ars/Comment.php b/backend/modules/shop/models/ars/Comment.php deleted file mode 100644 index ffa1245..0000000 --- a/backend/modules/shop/models/ars/Comment.php +++ /dev/null @@ -1,97 +0,0 @@ - '显示', - self::STATUS_HIDE => '隐藏' - ]; - /** - * {@inheritdoc} - */ - public static function tableName() - { - return 'ats_comment'; - } - - /** - * {@inheritdoc} - */ - public function rules() - { - return [ - [['user_id', 'order_goods_id', 'star', 'status', 'avatar'], 'integer'], - [['content'], 'string'], - [['nickname'], 'string', 'max' => 120], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'order_goods_id' => '订单详情商品id', - 'star' => '星级', - 'content' => '评论内容', - 'status' => '状态:1为显示,0为不显示', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - 'nickname' => '昵称', - 'avatar' => '头像', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } - - public function getOrderGoods() - { - return $this->hasOne(OrderGoods::class,['id' => 'order_goods_id']); - } -} diff --git a/backend/modules/shop/models/ars/Config.php b/backend/modules/shop/models/ars/Config.php deleted file mode 100755 index e61581b..0000000 --- a/backend/modules/shop/models/ars/Config.php +++ /dev/null @@ -1,58 +0,0 @@ - 50], - [['shipping_id'], 'string', 'max' => 10], - [['invoice_sn'], 'string', 'max' => 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'shipping_name' => '货流名称', - 'shipping_id' => '运货单位', - 'invoice_sn' => '运单号', - 'type' => '类型', - 'goods' => '商品', - 'status' => '状态', - 'decription' => '描述', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } - - /** - * @param $column - * @param null $value - * @return bool - * 获取各状态数组 - */ - public static function dropDown($column, $value = null) - { - $dropDownList = [ - 'type' => [ - self::TYPE_SHIPMENT_ALL => '全部发货', - self::TYPE_SHIPMENT_PORTION => '部分发货', - ], - ]; - - //根据具体值显示对应的值 - if ($value !== null) - return array_key_exists($column, $dropDownList) ? $dropDownList[$column][$value] : false; - //返回关联数组,用户下拉的filter实现 - else - return array_key_exists($column, $dropDownList) ? $dropDownList[$column] : false; - } - - public function beforeSave($insert) - { - if ($insert) { - $this->shipping_name = Yii::$app->params['logistics'][$this->shipping_id]; - } - return parent::beforeSave($insert); // TODO: Change the autogenerated stub - } - -} diff --git a/backend/modules/shop/models/ars/DeliveryGoods.php b/backend/modules/shop/models/ars/DeliveryGoods.php deleted file mode 100644 index 7a93e52..0000000 --- a/backend/modules/shop/models/ars/DeliveryGoods.php +++ /dev/null @@ -1,90 +0,0 @@ - 'id', - 'delivery_id' => '物流id', - 'order_goods_id' => '订单商品id', - 'goods_id' => '商品id', - 'goods_name' => '商品名称', - 'goods_count' => '商品数量', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } - - public function getGoods() - { - return $this->hasOne(Goods::className(), ['id' => 'goods_id']); - } - - public function getOrderGoods() - { - return $this->hasOne(OrderGoods::className(), ['id' => 'order_goods_id']); - } -} diff --git a/backend/modules/shop/models/ars/ExpressArea.php b/backend/modules/shop/models/ars/ExpressArea.php deleted file mode 100644 index 259201a..0000000 --- a/backend/modules/shop/models/ars/ExpressArea.php +++ /dev/null @@ -1,101 +0,0 @@ - [ - "basic_count"=>"基本重量(KG)", - "basic_price"=>"基本运费(元)", - "extra_count"=>"续重重量(KG)", - "extra_price"=>"续重运费(元)" - ], - 2 => [ - "basic_count"=>"基本数量(件)", - "basic_price"=>"基本运费(元)", - "extra_count"=>"续重数量(件)", - "extra_price"=>"续重运费(元)" - ] - ]; - /** - * {@inheritdoc} - */ - public static function tableName() - { - return 'ats_express_area'; - } - - /** - * {@inheritdoc} - */ - public function rules() - { - return [ - [['province', 'city', 'area'], 'string'], - [['express_template'], 'integer'], - [['extra_price', 'basic_price', 'basic_count', 'extra_count'], 'safe'], - [['extra_price', 'basic_price', 'basic_count', 'extra_count'], 'number'], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'express_template' => '运费模板id', - 'extra_price' => '续重运费', - 'basic_price' => '基本运费', - 'basic_count' => '基本数量', - 'extra_count' => '续重数量', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/shop/models/ars/ExpressTemplate.php b/backend/modules/shop/models/ars/ExpressTemplate.php deleted file mode 100644 index b0ef8b7..0000000 --- a/backend/modules/shop/models/ars/ExpressTemplate.php +++ /dev/null @@ -1,91 +0,0 @@ - '按重量', - self::CALCULATION_TYPE_NUMBER => '按件数' - ]; - /** - * {@inheritdoc} - */ - public static function tableName() - { - return 'ats_express_template'; - } - - /** - * {@inheritdoc} - */ - public function rules() - { - return [ - [['name'], 'required'], - [['calculation_type'], 'integer'], - [['name'], 'string', 'max' => 255] - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '名称', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - 'calculation_type' => '计算方式', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } - - /** - * @return array - * 数据键值对 - */ - public static function modelColumn() - { - return $column = self::find()->select(['name'])->indexBy('id')->column(); - } -} diff --git a/backend/modules/shop/models/ars/Order.php b/backend/modules/shop/models/ars/Order.php deleted file mode 100755 index 59ceb5e..0000000 --- a/backend/modules/shop/models/ars/Order.php +++ /dev/null @@ -1,229 +0,0 @@ - 64], - [['consignee', 'phone'], 'string', 'max' => 20], - [['province', 'city', 'area'], 'string', 'max' => 10], - [['payment_sn'], 'string', 'max' => 120], - [['remarks'], 'string', 'max' => 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'order_sn' => '订单号', - 'invoice_id' => '发票单号', - 'status' => '状态', - 'type' => '类型', - 'goods_count' => '商品数量', - 'goods_amount' => '商品金额', - 'shipping_amount' => '物流金额', - 'shipping_type' => '物流类型', - 'consignee' => '收件人', - 'phone' => '手机号码', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'taking_site' => '自提点', - 'pay_type' => '支付方式', - 'pay_at' => '支付时间', - 'payment_sn' => '付款单号', - 'payment_amount' => '支付金额', - 'receivables' => '应收款', - 'remarks' => '备注', - 'discount_amount' => '折扣金额', - 'discount_description' => '折扣说明', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - 'address' => '详细地址', - ]; - } - - public function beforeSave($insert) - { - $address = Yii::createObject([ - 'class' => 'api\logic\AddressLogic', - ]); - if ($insert) { - $default = $address->getDefault(); - $this->province = $default['province'] ?? ''; - $this->city = $default['city'] ?? ''; - $this->area = $default['area'] ?? ''; - } - if (!$insert && $this->status == self::STATUS_UNCONFIRMED && $this->type == self::TYPE_SHOPPING) { - $express = Yii::createObject([ - 'class' => 'api\logic\ExpressLogic', - ]); - $this->shipping_amount = $express->countShippingAmount($this); - $this->receivables = $this->goods_amount + $this->shipping_amount; - $this->payment_amount = $this->receivables - $this->discount_amount; - } - return parent::beforeSave($insert); - } - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function () { - return time(); - }, - ], - ]; - } - - public function getUser() - { - return $this->hasOne(User::className(), ['id' => 'user_id']); - } - - public function getProvinceId() - { - return $this->hasOne(Province::className(), ['province_id' => 'province']); - } - - public function getCityId() - { - return $this->hasOne(City::className(), ['city_id' => 'city']); - } - public function getAreaId() - { - return $this->hasOne(Area::className(), ['area_id' => 'area']); - } - - /** - * @param $column - * @param null $value - * @return bool - * 获取各状态数组 - */ - public static function dropDown($column, $value = null) - { - $dropDownList = [ - 'shipping_type' => [ - self::SHIPPING_TYPE_VIRTUAL_GOODS => '虚拟货物', - self::SHIPPING_TYPE_PICKED_UP => '自提', - self::SHIPPING_TYPE_EXPRESS => '快递物流', - ], - 'type' => [ - self::TYPE_SHOPPING => '普通购物订单', - ], - 'status' => [ - self::STATUS_UNCONFIRMED => '待确认', - self::STATUS_NONPAYMENT => '待支付', - self::STATUS_CANCEL => '已取消', - self::STATUS_PAYMENT_TO_BE_CONFIRMED => '支付待确认', - self::STATUS_APPLY_REFUND => '申请退款', - self::STATUS_REFUND => '已退款', - self::STATUS_TO_BE_SHIPPING => '待发货', - self::STATUS_SHIPMENT_ALL => '全部发货', - self::STATUS_SHIPMENT_PORTION => '部分发货', - self::STATUS_FINISH => '已完成', - ] - ]; - - //根据具体值显示对应的值 - if ($value !== null) - return array_key_exists($column, $dropDownList) ? $dropDownList[$column][$value] : false; - //返回关联数组,用户下拉的filter实现 - else - return array_key_exists($column, $dropDownList) ? $dropDownList[$column] : false; - } - -} diff --git a/backend/modules/shop/models/ars/OrderGoods.php b/backend/modules/shop/models/ars/OrderGoods.php deleted file mode 100755 index a689ca4..0000000 --- a/backend/modules/shop/models/ars/OrderGoods.php +++ /dev/null @@ -1,98 +0,0 @@ - 120], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'goods_id' => '商品id', - 'goods_img' => '商品图片', - 'goods_name' => '商品名称', - 'goods_count' => '商品数量', - 'sku_value' => '商品sku', - 'price' => '销售价', - 'market_price' => '市场价', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - 'weight' => '重量', - 'sku_id' => 'sku_id', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } - - public function getOrder() - { - return $this->hasOne(Order::className(), ['id' => 'order_id']); - } -} diff --git a/backend/modules/shop/models/ars/PaymentLog.php b/backend/modules/shop/models/ars/PaymentLog.php deleted file mode 100755 index 8d1e662..0000000 --- a/backend/modules/shop/models/ars/PaymentLog.php +++ /dev/null @@ -1,91 +0,0 @@ - 64], - [['order_id', 'notify_url'], 'string', 'max' => 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'wx_payment_id' => '微信支付单号', - 'wx_refund_id' => '微信退款单号', - 'mch_id' => '商户号', - 'order_amount' => '订单金额', - 'payment_amount' => '支付金额', - 'notify_url' => '支付回调路径', - 'type' => '类型', - 'status' => '状态', - 'refund_account' => '退款账户', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/shop/models/ars/Province.php b/backend/modules/shop/models/ars/Province.php deleted file mode 100755 index 519704f..0000000 --- a/backend/modules/shop/models/ars/Province.php +++ /dev/null @@ -1,49 +0,0 @@ - 16], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => 'name', - 'province_id' => 'province_id', - ]; - } - - -} diff --git a/backend/modules/shop/models/ars/RefundLog.php b/backend/modules/shop/models/ars/RefundLog.php deleted file mode 100755 index d5d8d14..0000000 --- a/backend/modules/shop/models/ars/RefundLog.php +++ /dev/null @@ -1,71 +0,0 @@ - 64], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'order_id' => '订单id', - 'wx_refund_id' => '微信退款单号', - 'reason' => '理由', - 'order_amount' => '订单金额', - 'refund_amount' => '退款金额', - 'refunded_amount' => '已退款金额', - 'type' => '类型', - 'status' => '状态', - 'refund_account' => '退款账户', - 'operator_id' => '操作者', - 'applyed_at' => '申请时间', - 'confirmed_at' => '确认时间', - 'finished_at' => '完成时间', - ]; - } - - -} diff --git a/backend/modules/shop/models/ars/SearchHistory.php b/backend/modules/shop/models/ars/SearchHistory.php deleted file mode 100755 index ebb3cbc..0000000 --- a/backend/modules/shop/models/ars/SearchHistory.php +++ /dev/null @@ -1,80 +0,0 @@ - 255], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'user_id' => '用户id', - 'keyword' => '关键字', - 'count' => '次数', - 'status' => '状态', - 'type' => '类型', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/shop/models/ars/TakingSite.php b/backend/modules/shop/models/ars/TakingSite.php deleted file mode 100755 index b14c753..0000000 --- a/backend/modules/shop/models/ars/TakingSite.php +++ /dev/null @@ -1,81 +0,0 @@ - 120], - [['province', 'city', 'area'], 'string', 'max' => 64], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '名称', - 'updated_at' => '更新时间', - 'created_at' => '创建时间', - 'province' => '省份', - 'city' => '城市', - 'area' => '区域', - 'address' => '地址', - ]; - } - - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/backend/modules/shop/models/ars/WxPayConfig.php b/backend/modules/shop/models/ars/WxPayConfig.php deleted file mode 100644 index 6ff414b..0000000 --- a/backend/modules/shop/models/ars/WxPayConfig.php +++ /dev/null @@ -1,64 +0,0 @@ - TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function () { - return time(); - }, - ], - ]; - } - -} \ No newline at end of file diff --git a/backend/modules/shop/models/searchs/AfterSaleSearch.php b/backend/modules/shop/models/searchs/AfterSaleSearch.php deleted file mode 100644 index 74ecb78..0000000 --- a/backend/modules/shop/models/searchs/AfterSaleSearch.php +++ /dev/null @@ -1,188 +0,0 @@ - 'blobt\grid\CheckboxColumn', - 'width' => '2%', - 'align' => 'center' - ], - 'id', - 'after_sale_sn', - [ - 'attribute' => 'order_goods_id', - 'value' => function ($model) { - return $model->goods->goods_name; - } - ], - [ - 'attribute' => 'order_pay_amount', - 'value' => function ($model) { - return sprintf("%1\$.2f", $model->goods->order->payment_amount); - }, - 'label' => '订单支付金额' - ], - [ - 'attribute' => 'amount', - 'value' => function ($model) { - return sprintf("%1\$.2f", $model->amount); - } - ], - [ - 'attribute' => 'status', - 'value' => function ($model) { - return AfterSale::$status[$model->status]; - } - ], - 'apply_at:datetime', - 'dealt_at:datetime', - 'finish_at:datetime', - [ - 'class' => 'iron\grid\ActionColumn', - 'align' => 'center', - 'config' => [ - [ - 'name' => 'view', - 'icon' => 'list', - 'title' => '详情', - ] - ] - ], - ]; - } - /** - * @param $params - * @return ActiveDataProvider - * 不分页的所有数据 - */ - public function allData($params) - { - $query = AfterSale::find(); - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => false, - 'sort' => false - ]); - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * Creates data provider instance with search query applied - * - * @param array $params - * - * @return ActiveDataProvider - */ - public function search($params) - { - $query = AfterSale::find(); - - // add conditions that should always apply here - - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => [ - 'pageSizeLimit' => [1, 200] - ], - 'sort' => [ - 'defaultOrder' => [ - 'id' => SORT_DESC, - ] - ], - ]); - - $this->load($params); - return $this->filter($query, $dataProvider); - } - /** - * @param $query - * @param $dataProvider - * @return ActiveDataProvider - * 条件筛选 - */ - private function filter($query, $dataProvider){ - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - // grid filtering conditions - $query->andFilterWhere([ - 'id' => $this->id, - 'user_id' => $this->user_id, - 'order_goods_id' => $this->order_goods_id, - 'amount' => $this->amount, - 'count' => $this->count, - 'apply_at' => $this->apply_at, - 'dealt_at' => $this->dealt_at, - 'finish_at' => $this->finish_at, - 'operator_id' => $this->operator_id, - 'refund_type' => $this->refund_type, - 'status' => $this->status, - 'reason' => $this->reason, - 'refund_mode' => $this->refund_mode, - ]); - - $query->andFilterWhere(['like', 'wx_refund_id', $this->wx_refund_id]) - ->andFilterWhere(['like', 'after_sale_sn', $this->after_sale_sn]) - ->andFilterWhere(['like', 'description', $this->description]) - ->andFilterWhere(['like', 'image', $this->image]) - ->andFilterWhere(['like', 'remarks', $this->remarks]) - ->andFilterWhere(['like', 'take_shipping_sn', $this->take_shipping_sn]); - if ($this->created_at_range) { - $arr = explode(' ~ ', $this->created_at_range); - $start = strtotime($arr[0]); - $end = strtotime($arr[1]) + 3600 * 24; - $query->andFilterWhere(['between', 'created_at', $start, $end]); - } - return $dataProvider; - } -} diff --git a/backend/modules/shop/models/searchs/CommentSearch.php b/backend/modules/shop/models/searchs/CommentSearch.php deleted file mode 100644 index ac8e189..0000000 --- a/backend/modules/shop/models/searchs/CommentSearch.php +++ /dev/null @@ -1,186 +0,0 @@ - 'order_goods_id', - 'value' => function ($model) { - return $model->orderGoods->goods_name; - }, - 'label' => '商品名称' - ], - 'star', - 'content', - [ - 'attribute' => 'status', - 'value' => function ($model) { - return Comment::$commentStatus[$model->status]; - }, - 'label' => '状态' - ], - 'created_at:datetime', - [ - 'class' => 'iron\grid\ActionColumn', - 'align' => 'center', - 'config' => [ - [ - 'name' => 'view', - 'icon' => 'list', - 'title' => '详情', - ], - [ - 'name' => 'display', - 'icon' => 'eye', - 'title' => '显示', - 'hide' => [ - 'attributes' => [ - 'status' - ], - 'values' => [ - Comment::STATUS_DISPLAY - ] - ] - ], - [ - 'name' => 'hide', - 'icon' => 'eye', - 'title' => '隐藏', - 'hide' => [ - 'attributes' => [ - 'status' - ], - 'values' => [ - Comment::STATUS_HIDE - ] - ] - ], - ] - ], - ]; - } - /** - * @param $params - * @return ActiveDataProvider - * 不分页的所有数据 - */ - public function allData($params) - { - $query = Comment::find(); - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => false, - 'sort' => false - ]); - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * Creates data provider instance with search query applied - * - * @param array $params - * - * @return ActiveDataProvider - */ - public function search($params) - { - $query = Comment::find(); - - // add conditions that should always apply here - - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => [ - 'pageSizeLimit' => [1, 200] - ], - 'sort' => [ - 'defaultOrder' => [ - 'id' => SORT_DESC, - ] - ], - ]); - - $this->load($params); - return $this->filter($query, $dataProvider); - } - /** - * @param $query - * @param $dataProvider - * @return ActiveDataProvider - * 条件筛选 - */ - private function filter($query, $dataProvider){ - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - // grid filtering conditions - $query->andFilterWhere([ - 'id' => $this->id, - 'user_id' => $this->user_id, - 'order_goods_id' => $this->order_goods_id, - 'star' => $this->star, - 'status' => $this->status, - 'updated_at' => $this->updated_at, - 'created_at' => $this->created_at, - ]); - - $query->andFilterWhere(['like', 'content', $this->content]); - if ($this->created_at_range) { - $arr = explode(' ~ ', $this->created_at_range); - $start = strtotime($arr[0]); - $end = strtotime($arr[1]) + 3600 * 24; - $query->andFilterWhere(['between', 'created_at', $start, $end]); - } - return $dataProvider; - } -} diff --git a/backend/modules/shop/models/searchs/DeliverySearch.php b/backend/modules/shop/models/searchs/DeliverySearch.php deleted file mode 100644 index 0b1b369..0000000 --- a/backend/modules/shop/models/searchs/DeliverySearch.php +++ /dev/null @@ -1,187 +0,0 @@ - 'blobt\grid\CheckboxColumn', - 'width' => '2%', - 'align' => 'center' - ], - [ - 'attribute' => 'id', - 'width' => '7%', - ], - [ - 'attribute' => 'order_id', - 'width' => '7%', - ], - [ - 'attribute' => 'shipping_name', - 'width' => '10%', - ], - [ - 'attribute' => 'invoice_sn', - 'width' => '10%', - ], - [ - 'attribute' => 'type', - 'width' => '8%', - 'value' => function ($model) { - return Delivery::dropDown('type', $model->type); - } - ], - [ - 'attribute' => 'status', - 'width' => '7%', - ], - [ - 'attribute' => 'decription', - 'width' => '15%', - ], - [ - 'attribute' => 'created_at', - 'width' => '10%', - 'value' => function ($model) { - return date('Y-m-d H:i:s', $model->created_at); - } - ], - [ - 'class' => 'iron\grid\ActionColumn', - 'align' => 'center', - 'config' => [ - [ - 'name' => 'view', - 'icon' => 'list', - 'title' => '详情', - ], - ], - ], - - ]; - } - /** - * @param $params - * @return ActiveDataProvider - * 不分页的所有数据 - */ - public function allData($params) - { - $query = Delivery::find(); - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => false, - 'sort' => false - ]); - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * Creates data provider instance with search query applied - * - * @param array $params - * - * @return ActiveDataProvider - */ - public function search($params) - { - $query = Delivery::find(); - - // add conditions that should always apply here - - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => [ - 'pageSizeLimit' => [1, 200] - ], - 'sort' => [ - 'defaultOrder' => [ - 'id' => SORT_DESC, - ] - ], - ]); - - $this->load($params); - return $this->filter($query, $dataProvider); - } - /** - * @param $query - * @param $dataProvider - * @return ActiveDataProvider - * 条件筛选 - */ - private function filter($query, $dataProvider){ - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - // grid filtering conditions - $query->andFilterWhere([ - 'id' => $this->id, - 'order_id' => $this->order_id, - 'type' => $this->type, - 'status' => $this->status, - 'updated_at' => $this->updated_at, - 'created_at' => $this->created_at, - ]); - - $query->andFilterWhere(['like', 'shipping_name', $this->shipping_name]) - ->andFilterWhere(['like', 'shipping_id', $this->shipping_id]) - ->andFilterWhere(['like', 'goods', $this->goods]) - ->andFilterWhere(['like', 'decription', $this->decription]); - if ($this->created_at_range) { - $arr = explode(' ~ ', $this->created_at_range); - $start = strtotime($arr[0]); - $end = strtotime($arr[1]) + 3600 * 24; - $query->andFilterWhere(['between', 'created_at', $start, $end]); - } - return $dataProvider; - } -} diff --git a/backend/modules/shop/models/searchs/ExpressAreaSearch.php b/backend/modules/shop/models/searchs/ExpressAreaSearch.php deleted file mode 100644 index 0893957..0000000 --- a/backend/modules/shop/models/searchs/ExpressAreaSearch.php +++ /dev/null @@ -1,187 +0,0 @@ - 'blobt\grid\CheckboxColumn', - 'width' => '2%', - 'align' => 'center' - ], - 'id', - ['attribute' => 'city', - 'value' => function ($model) { - $expressAreas = ExpressArea::findOne($model->id); - $expressAresCityIdArr = explode(',', $expressAreas->city); - $cities = []; - $provinces = Province::find()->cache(0)->all(); - foreach ($provinces as $k => $v) { - $cityId = City::find() - ->select(['city_id']) - ->where(['province_id' => $v->province_id]) - ->column(); - if (empty(array_diff($cityId, $expressAresCityIdArr))) { - $cities[] = $v->name; - }else{ - foreach (\backend\modules\shop\models\ars\City::find()->andWhere(['in', 'city_id', array_diff($cityId, array_diff($cityId, $expressAresCityIdArr))])->all() as $city) { - $cities[] = $city->name; - } - } - } - return implode(' , ', $cities); - }, - ], - [ - 'class' => 'iron\grid\ActionColumn', - 'align' => 'center', - 'config' => [ - [ - 'name' => 'express-area-view', - 'icon' => 'list', - 'title' => '详情', - ], - [ - 'name' => 'express-area-update', - 'icon' => 'pencil', - 'title' => '修改' - ], - [ - 'name' => 'express-area-delete', - 'icon' => 'trash', - 'title' => '删除', - 'contents' => '确定删除?' - ] - ], - ], - ]; - } - /** - * @param $params - * @return ActiveDataProvider - * 不分页的所有数据 - */ - public function allData($params) - { - $query = ExpressArea::find(); - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => false, - 'sort' => false - ]); - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * Creates data provider instance with search query applied - * - * @param array $params - * - * @return ActiveDataProvider - */ - public function search($params, $expressTemplateId) - { - $query = ExpressArea::find()->where(['express_template' => $expressTemplateId]); - - // add conditions that should always apply here - - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => [ - 'pageSizeLimit' => [1, 200] - ], - 'sort' => [ - 'defaultOrder' => [ - 'id' => SORT_DESC, - ] - ], - ]); - - $this->load($params); - return $this->filter($query, $dataProvider); - } - /** - * @param $query - * @param $dataProvider - * @return ActiveDataProvider - * 条件筛选 - */ - private function filter($query, $dataProvider){ - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - // grid filtering conditions - $query->andFilterWhere([ - 'id' => $this->id, - 'express_template' => $this->express_template, - 'extra_price' => $this->extra_price, - 'basic_price' => $this->basic_price, - 'basic_count' => $this->basic_count, - 'extra_count' => $this->extra_count, - 'updated_at' => $this->updated_at, - 'created_at' => $this->created_at, - ]); - - $query->andFilterWhere(['like', 'province', $this->province]) - ->andFilterWhere(['like', 'city', $this->city]) - ->andFilterWhere(['like', 'area', $this->area]); - if ($this->created_at_range) { - $arr = explode(' ~ ', $this->created_at_range); - $start = strtotime($arr[0]); - $end = strtotime($arr[1]) + 3600 * 24; - $query->andFilterWhere(['between', 'created_at', $start, $end]); - } - return $dataProvider; - } -} diff --git a/backend/modules/shop/models/searchs/ExpressTemplateSearch.php b/backend/modules/shop/models/searchs/ExpressTemplateSearch.php deleted file mode 100755 index 09beeed..0000000 --- a/backend/modules/shop/models/searchs/ExpressTemplateSearch.php +++ /dev/null @@ -1,162 +0,0 @@ - 'blobt\grid\CheckboxColumn', - 'width' => '2%', - 'align' => 'center' - ], - 'id', - 'name', - [ - 'attribute' => 'calculation_type', - 'value' => function ($model) { - return ExpressTemplate::$calculationType[$model->calculation_type]; - } - ], - [ - 'class' => 'iron\grid\ActionColumn', - 'align' => 'center', - 'config' => [ - [ - 'name' => 'update', - 'icon' => 'pencil', - 'title' => '修改' - ], - [ - 'name' => 'express-area-list', - 'icon' => 'hard-drive', - 'title' => '配送区域' - ], - [ - 'name' => 'delete', - 'icon' => 'trash', - 'title' => '删除', - 'contents' => '确定删除?' - ] - ], - ], - ]; - } - /** - * @param $params - * @return ActiveDataProvider - * 不分页的所有数据 - */ - public function allData($params) - { - $query = ExpressTemplate::find(); - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => false, - 'sort' => false - ]); - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * Creates data provider instance with search query applied - * - * @param array $params - * - * @return ActiveDataProvider - */ - public function search($params) - { - $query = ExpressTemplate::find(); - - // add conditions that should always apply here - - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => [ - 'pageSizeLimit' => [1, 200] - ], - 'sort' => [ - 'defaultOrder' => [ - 'id' => SORT_DESC, - ] - ], - ]); - - $this->load($params); - return $this->filter($query, $dataProvider); - } - /** - * @param $query - * @param $dataProvider - * @return ActiveDataProvider - * 条件筛选 - */ - private function filter($query, $dataProvider){ - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - // grid filtering conditions - $query->andFilterWhere([ - 'id' => $this->id, - 'calculation_type' => $this->calculation_type, - 'updated_at' => $this->updated_at, - 'created_at' => $this->created_at, - ]); - - $query->andFilterWhere(['like', 'name', $this->name]); - if ($this->created_at_range) { - $arr = explode(' ~ ', $this->created_at_range); - $start = strtotime($arr[0]); - $end = strtotime($arr[1]) + 3600 * 24; - $query->andFilterWhere(['between', 'created_at', $start, $end]); - } - return $dataProvider; - } -} diff --git a/backend/modules/shop/models/searchs/OrderSearch.php b/backend/modules/shop/models/searchs/OrderSearch.php deleted file mode 100755 index 4dd4ad8..0000000 --- a/backend/modules/shop/models/searchs/OrderSearch.php +++ /dev/null @@ -1,299 +0,0 @@ - 'blobt\grid\CheckboxColumn', - 'width' => '2%', - 'align' => 'center' - ], - [ - 'attribute' => 'id', - 'width' => '5%', - ], - [ - 'attribute' => 'user_id', - 'width' => '5%', -// 'value' => function ($model) { -// return base64_decode($model->user->nickname); -// } - ], - [ - 'attribute' => 'order_sn', - 'width' => '8%', - ], -// [ -// 'attribute' => 'invoice_id', -// 'width' => '8%', -// ], - [ - 'attribute' => 'type', - 'width' => '5%', - 'value' => function ($model) { - return !empty($model->type) ? Order::dropDown('type', $model->type) : ''; - } - ], - [ - 'label' => '订单信息', - 'format' => 'raw', - 'width' => '7%', - 'value' => function ($model) { - return Yii::$app->controller->renderPartial('order_info', ['model' => $model]); - }, - ], - [ - 'label' => '物流信息', - 'format' => 'raw', - 'width' => '20%', - 'value' => function ($model) { - return Yii::$app->controller->renderPartial('shipping_info', ['model' => $model]); - }, - ], - [ - 'label' => '收货信息', - 'format' => 'raw', - 'width' => '17%', - 'value' => function ($model) { - return Yii::$app->controller->renderPartial('table_consignee_info', ['model' => $model]); - }, - ], - [ - 'attribute' => 'status', - 'width' => '5%', - 'value' => function ($model) { - return Order::dropDown('status', $model->status); - } - ], -// [ -// 'attribute' => 'updated_at', -// 'width' => '8%', -// 'value' => function ($model) { -// return date('Y-m-d H:i:s', $model->updated_at); -// } -// ], -// [ -// 'attribute' => 'created_at', -// 'value' => function ($model) { -// return date('Y-m-d H:i:s', $model->created_at); -// } -// ], - [ - 'class' => 'iron\grid\ActionColumn', - 'align' => 'center', - 'config' => [ - [ - 'name' => 'view', - 'icon' => 'list', - 'title' => '详情', - ], - [ - 'name' => 'update', - 'icon' => 'pencil', - 'title' => '修改' - ], - [ - 'name' => 'delivery', - 'icon' => 'box', - 'title' => '发货', - 'hide' => [ - 'attributes' => [ - 'status', - 'status', - 'status', - 'status', - 'status', - 'status', - 'status', - ], - 'values' => [ - Order::STATUS_UNCONFIRMED, - Order::STATUS_NONPAYMENT, - Order::STATUS_CANCEL, - Order::STATUS_PAYMENT_TO_BE_CONFIRMED, - Order::STATUS_APPLY_REFUND, - Order::STATUS_REFUND, - Order::STATUS_SHIPMENT_ALL, - Order::STATUS_FINISH - ], - 'rule' => 'or' - ] - ], - [ - 'name' => 'refund', - 'icon' => 'dollar', - 'title' => '退款', - 'hide' => [ - 'attributes' => [ - 'status', - 'status', - 'status', - 'status', - 'status', - 'status', - 'status', - ], - 'values' => [ - Order::STATUS_UNCONFIRMED, - Order::STATUS_NONPAYMENT, - Order::STATUS_CANCEL, - Order::STATUS_PAYMENT_TO_BE_CONFIRMED, - Order::STATUS_REFUND, - Order::STATUS_SHIPMENT_ALL, - Order::STATUS_FINISH - ], - 'rule' => 'or' - ] - ], - ], - ], - ]; - } - - /** - * @param $params - * @return ActiveDataProvider - * 不分页的所有数据 - */ - public function allData($params) - { - $query = Order::find(); - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => false, - 'sort' => false - ]); - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * Creates data provider instance with search query applied - * - * @param array $params - * - * @return ActiveDataProvider - */ - public function search($params) - { - $query = Order::find(); - - // add conditions that should always apply here - - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => [ - 'pageSizeLimit' => [1, 200] - ], - 'sort' => [ - 'defaultOrder' => [ - 'id' => SORT_DESC, - ] - ], - ]); - - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * @param $query - * @param $dataProvider - * @return ActiveDataProvider - * 条件筛选 - */ - private function filter($query, $dataProvider) - { - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - // grid filtering conditions - $query->andFilterWhere([ - 'id' => $this->id, - 'user_id' => $this->user_id, - 'status' => $this->status, - 'type' => $this->type, - 'goods_count' => $this->goods_count, - 'goods_amount' => $this->goods_amount, - 'shipping_amount' => $this->shipping_amount, - 'shipping_type' => $this->shipping_type, - 'taking_site' => $this->taking_site, - 'pay_type' => $this->pay_type, - 'pay_at' => $this->pay_at, - 'payment_amount' => $this->payment_amount, - 'receivables' => $this->receivables, - 'discount_amount' => $this->discount_amount, - 'updated_at' => $this->updated_at, - 'created_at' => $this->created_at, - ]); - - $query->andFilterWhere(['like', 'order_sn', $this->order_sn]) - ->andFilterWhere(['like', 'invoice_id', $this->invoice_id]) - ->andFilterWhere(['like', 'consignee', $this->consignee]) - ->andFilterWhere(['like', 'phone', $this->phone]) - ->andFilterWhere(['like', 'province', $this->province]) - ->andFilterWhere(['like', 'city', $this->city]) - ->andFilterWhere(['like', 'area', $this->area]) - ->andFilterWhere(['like', 'payment_sn', $this->payment_sn]) - ->andFilterWhere(['like', 'remarks', $this->remarks]) - ->andFilterWhere(['like', 'discount_description', $this->discount_description]); - if ($this->created_at_range) { - $arr = explode(' ~ ', $this->created_at_range); - $start = strtotime($arr[0]); - $end = strtotime($arr[1]) + 3600 * 24; - $query->andFilterWhere(['between', 'created_at', $start, $end]); - } - return $dataProvider; - } -} diff --git a/backend/modules/shop/models/searchs/TakingSiteSearch.php b/backend/modules/shop/models/searchs/TakingSiteSearch.php deleted file mode 100755 index afce08e..0000000 --- a/backend/modules/shop/models/searchs/TakingSiteSearch.php +++ /dev/null @@ -1,174 +0,0 @@ - 'blobt\grid\CheckboxColumn', - 'width' => '2%', - 'align' => 'center' - ], - 'id', - 'name', - [ - 'attribute' => 'province', - 'value' => function ($model) { - $province = Province::findOne(['province_id' => $model->province]); - if ($province) { - return $province->name; - } - } - ], - [ - 'attribute' => 'city', - 'value' => function ($model) { - $city = City::findOne(['city_id' => $model->city]); - if ($city) { - return $city->name; - } - } - ], - [ - 'attribute' => 'area', - 'value' => function ($model) { - $area = Area::findOne(['area_id' => $model->area]); - if ($area) { - return $area->name; - } - } - ], - //'address', - //'updated_at', - //'created_at', - [ - 'class' => 'iron\grid\ActionColumn', - 'align' => 'center', - ], - ]; - } - /** - * @param $params - * @return ActiveDataProvider - * 不分页的所有数据 - */ - public function allData($params) - { - $query = TakingSite::find(); - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => false, - 'sort' => false - ]); - $this->load($params); - return $this->filter($query, $dataProvider); - } - - /** - * Creates data provider instance with search query applied - * - * @param array $params - * - * @return ActiveDataProvider - */ - public function search($params) - { - $query = TakingSite::find(); - - // add conditions that should always apply here - - $dataProvider = new ActiveDataProvider([ - 'query' => $query, - 'pagination' => [ - 'pageSizeLimit' => [1, 200] - ], - 'sort' => [ - 'defaultOrder' => [ - 'id' => SORT_DESC, - ] - ], - ]); - - $this->load($params); - return $this->filter($query, $dataProvider); - } - /** - * @param $query - * @param $dataProvider - * @return ActiveDataProvider - * 条件筛选 - */ - private function filter($query, $dataProvider){ - if (!$this->validate()) { - // uncomment the following line if you do not want to return any records when validation fails - // $query->where('0=1'); - return $dataProvider; - } - - // grid filtering conditions - $query->andFilterWhere([ - 'id' => $this->id, - 'updated_at' => $this->updated_at, - 'created_at' => $this->created_at, - ]); - - $query->andFilterWhere(['like', 'name', $this->name]) - ->andFilterWhere(['like', 'province', $this->province]) - ->andFilterWhere(['like', 'city', $this->city]) - ->andFilterWhere(['like', 'area', $this->area]) - ->andFilterWhere(['like', 'address', $this->address]); - if ($this->created_at_range) { - $arr = explode(' ~ ', $this->created_at_range); - $start = strtotime($arr[0]); - $end = strtotime($arr[1]) + 3600 * 24; - $query->andFilterWhere(['between', 'created_at', $start, $end]); - } - return $dataProvider; - } -} diff --git a/backend/modules/shop/views/after-sale/_form.php b/backend/modules/shop/views/after-sale/_form.php deleted file mode 100644 index b29c73a..0000000 --- a/backend/modules/shop/views/after-sale/_form.php +++ /dev/null @@ -1,58 +0,0 @@ - - -
- - - - field($model, 'wx_refund_id')->textInput(['maxlength' => true]) ?> - - field($model, 'after_sale_sn')->textInput(['maxlength' => true]) ?> - - field($model, 'user_id')->textInput() ?> - - field($model, 'order_goods_id')->textInput() ?> - - field($model, 'amount')->textInput() ?> - - field($model, 'count')->textInput() ?> - - field($model, 'apply_at')->textInput() ?> - - field($model, 'dealt_at')->textInput() ?> - - field($model, 'finish_at')->textInput() ?> - - field($model, 'operator_id')->textInput() ?> - - field($model, 'refund_type')->textInput() ?> - - field($model, 'description')->textarea(['rows' => 6]) ?> - - field($model, 'image')->textarea(['rows' => 6]) ?> - - field($model, 'status')->textInput() ?> - - field($model, 'reason')->textInput() ?> - - field($model, 'remarks')->textarea(['rows' => 6]) ?> - - field($model, 'take_shipping_sn')->textInput(['maxlength' => true]) ?> - - field($model, 'refund_mode')->textInput() ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/shop/views/after-sale/_search.php b/backend/modules/shop/views/after-sale/_search.php deleted file mode 100644 index f84ef70..0000000 --- a/backend/modules/shop/views/after-sale/_search.php +++ /dev/null @@ -1,62 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, 'after_sale_sn', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "售后单号", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/shop/views/after-sale/create.php b/backend/modules/shop/views/after-sale/create.php deleted file mode 100644 index ddd13eb..0000000 --- a/backend/modules/shop/views/after-sale/create.php +++ /dev/null @@ -1,18 +0,0 @@ -title = '创建 After Sale'; -$this->params['breadcrumbs'][] = ['label' => 'After Sales', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/after-sale/index.php b/backend/modules/shop/views/after-sale/index.php deleted file mode 100644 index 2916aed..0000000 --- a/backend/modules/shop/views/after-sale/index.php +++ /dev/null @@ -1,31 +0,0 @@ -title = '售后管理'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "after-sale/deletes" - ], - ], - 'columns' => $columns, - 'batchTemplate' => '', - 'export' => '', - 'create' => '' - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/shop/views/after-sale/update.php b/backend/modules/shop/views/after-sale/update.php deleted file mode 100644 index a4268c5..0000000 --- a/backend/modules/shop/views/after-sale/update.php +++ /dev/null @@ -1,19 +0,0 @@ -title = '编辑 After Sale: ' . $model->id; -$this->params['breadcrumbs'][] = ['label' => 'After Sales', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update '; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/after-sale/view.php b/backend/modules/shop/views/after-sale/view.php deleted file mode 100644 index a9f2f1d..0000000 --- a/backend/modules/shop/views/after-sale/view.php +++ /dev/null @@ -1,108 +0,0 @@ -title = $model->id; -$this->params['breadcrumbs'][] = ['label' => 'After Sales', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- 'btn btn-default']) ?> - status == AfterSale::STATUS_UNTREATED) { - echo Html::a('同意', - [ - 'handle', - 'status' => AfterSale::STATUS_ACCEPT, - 'id' => $model->id - ], - [ - 'class' => 'btn btn-default', - 'data' => [ - 'confirm' => '同意用户的退货申请?', - 'method' => 'post', - ] - ] - ); - echo Html::a('拒绝', - [ - 'handle', - 'status' => AfterSale::STATUS_REJECT, - 'id' => $model->id - ], - [ - 'class' => 'btn btn-default', - 'data' => [ - 'confirm' => '拒绝用户的退货申请?', - 'method' => 'post', - ], - ] - ); - } - ?> -

- - $model, - 'attributes' => [ - 'id', - 'wx_refund_id', - 'after_sale_sn', - 'user_id', - [ - 'attribute' => 'order_goods_id', - 'value' => function ($model) { - return $model->goods->goods_name; - } - ], - [ - 'attribute' => 'amount', - 'value' => function ($model) { - return sprintf("%1\$.2f", $model->amount); - } - ], - 'count', - 'apply_at:datetime', - 'dealt_at:datetime', - 'finish_at:datetime', - 'operator_id', - [ - 'attribute' => 'refund_type', - 'value' => function ($model) { - return AfterSale::$refundType[$model->refund_type]; - } - ], - 'description:ntext', - 'image:ntext', - [ - 'attribute' => 'status', - 'value' => function ($model) { - return AfterSale::$status[$model->status]; - } - ], - [ - 'attribute' => 'reason', - 'value' => function ($model) { - return $model->reason ? AfterSale::$afterSaleReason[$model->reason] : '未设置'; - } - ], - 'remarks:ntext', - 'take_shipping_sn', - [ - 'attribute' => 'refund_mode', - 'value' => function ($model) { - return AfterSale::$refundMode[$model->refund_mode]; - } - ], - ], - ]) ?> - -
diff --git a/backend/modules/shop/views/comment/_form.php b/backend/modules/shop/views/comment/_form.php deleted file mode 100644 index 78898f8..0000000 --- a/backend/modules/shop/views/comment/_form.php +++ /dev/null @@ -1,32 +0,0 @@ - - -
- - - - field($model, 'user_id')->textInput() ?> - - field($model, 'order_goods_id')->textInput() ?> - - field($model, 'star')->textInput() ?> - - field($model, 'content')->textarea(['rows' => 6]) ?> - - field($model, 'status')->textInput() ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/shop/views/comment/_search.php b/backend/modules/shop/views/comment/_search.php deleted file mode 100644 index 54cde7b..0000000 --- a/backend/modules/shop/views/comment/_search.php +++ /dev/null @@ -1,49 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/shop/views/comment/create.php b/backend/modules/shop/views/comment/create.php deleted file mode 100644 index 2c4decc..0000000 --- a/backend/modules/shop/views/comment/create.php +++ /dev/null @@ -1,18 +0,0 @@ -title = '创建 Comment'; -$this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/comment/index.php b/backend/modules/shop/views/comment/index.php deleted file mode 100644 index 3737f47..0000000 --- a/backend/modules/shop/views/comment/index.php +++ /dev/null @@ -1,31 +0,0 @@ -title = '评论'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "comment/deletes" - ], - ], - 'columns' => $columns, - 'batchTemplate' => '', - 'create' => '', - 'export' => '', - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/shop/views/comment/update.php b/backend/modules/shop/views/comment/update.php deleted file mode 100644 index da61136..0000000 --- a/backend/modules/shop/views/comment/update.php +++ /dev/null @@ -1,19 +0,0 @@ -title = '编辑 Comment: ' . $model->id; -$this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update '; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/comment/view.php b/backend/modules/shop/views/comment/view.php deleted file mode 100644 index a57e1bb..0000000 --- a/backend/modules/shop/views/comment/view.php +++ /dev/null @@ -1,47 +0,0 @@ -title = $model->id; -$this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - 'user_id', - [ - 'attribute' => 'order_goods_id', - 'value' => function ($model) { - return $model->orderGoods->goods_name; - }, - 'label' => '商品名称' - ], - 'star', - 'content:ntext', - [ - 'attribute' => 'status', - 'value' => function ($model) { - return Comment::$commentStatus[$model->status]; - }, - 'label' => '状态' - ], - 'updated_at:datetime', - 'created_at:datetime', - ], - ]) ?> - -
diff --git a/backend/modules/shop/views/delivery/_form.php b/backend/modules/shop/views/delivery/_form.php deleted file mode 100644 index 6b8ff30..0000000 --- a/backend/modules/shop/views/delivery/_form.php +++ /dev/null @@ -1,30 +0,0 @@ - - -
- - - - field($model, 'shipping_id')->dropDownList(Yii::$app->params['logistics']) ?> - - field($model, 'invoice_sn')->textInput(['maxlength' => true]) ?> - - field($model, 'status')->textInput() ?> - - field($model, 'decription')->textarea(['rows' => 6]) ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/shop/views/delivery/_search.php b/backend/modules/shop/views/delivery/_search.php deleted file mode 100644 index 3fc8317..0000000 --- a/backend/modules/shop/views/delivery/_search.php +++ /dev/null @@ -1,49 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/shop/views/delivery/create.php b/backend/modules/shop/views/delivery/create.php deleted file mode 100644 index 293904b..0000000 --- a/backend/modules/shop/views/delivery/create.php +++ /dev/null @@ -1,18 +0,0 @@ -title = '创建 Delivery'; -$this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/delivery/delivery_goods.php b/backend/modules/shop/views/delivery/delivery_goods.php deleted file mode 100644 index 92b666a..0000000 --- a/backend/modules/shop/views/delivery/delivery_goods.php +++ /dev/null @@ -1,31 +0,0 @@ - - -
- $model->id]); - if ($deliveryGoods) { - echo ' - - - - - - - '; - foreach ($deliveryGoods as $value) { - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - } - echo '
商品图片商品ID商品名称商品数量创建时间
' . ($value->orderGoods->goods_img ? "orderGoods->goods_img />" : '') . '' . $value->goods_id . '' . $value->goods_name . '' . $value->goods_count . '' . date('Y-m-d H:i:s', $value->created_at) . '
'; - } - ?> -
diff --git a/backend/modules/shop/views/delivery/index.php b/backend/modules/shop/views/delivery/index.php deleted file mode 100644 index 9cc14e1..0000000 --- a/backend/modules/shop/views/delivery/index.php +++ /dev/null @@ -1,28 +0,0 @@ -title = '发货列表'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ -// [ -// "label" => "删除", -// "url" => "delivery/deletes" -// ], - ], - 'columns' => $columns - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/shop/views/delivery/info.php b/backend/modules/shop/views/delivery/info.php deleted file mode 100644 index 4fc3cef..0000000 --- a/backend/modules/shop/views/delivery/info.php +++ /dev/null @@ -1,37 +0,0 @@ - - - $model, - 'attributes' => [ - 'id', - 'order_id', - 'shipping_name', - 'shipping_id', - [ - 'attribute' => 'type', - 'value' => function ($model) { - return Delivery::dropDown('type', $model->type); - } - ], - 'status', - 'decription:ntext', - [ - 'attribute' => 'created_at', - 'value' => function ($model) { - return date('Y-m-d H:i:s', $model->created_at); - } - ], - [ - 'attribute' => 'updated_at', - 'value' => function ($model) { - return date('Y-m-d H:i:s', $model->updated_at); - } - ], - ], - ]); -?> \ No newline at end of file diff --git a/backend/modules/shop/views/delivery/logistics.php b/backend/modules/shop/views/delivery/logistics.php deleted file mode 100644 index 9ff636d..0000000 --- a/backend/modules/shop/views/delivery/logistics.php +++ /dev/null @@ -1,51 +0,0 @@ - - -

- 'btn btn-success']) ?> -

- -
- -
- - expTextName) ? $logistics->expTextName : ''?> -
- -
- - mailNo) ? $logistics->mailNo : ''?> -
- -
- - tel) ? $logistics->tel : ''?> -
- -
- - updateStr) ? $logistics->updateStr : '' ?> -
- -
- data)) { - foreach ($logistics->data as $value) { - echo '
' . - "
$value->time
" . - "
$value->context
" . - '
'; - } - } - ?> -
- -
diff --git a/backend/modules/shop/views/delivery/update.php b/backend/modules/shop/views/delivery/update.php deleted file mode 100644 index 9cc3935..0000000 --- a/backend/modules/shop/views/delivery/update.php +++ /dev/null @@ -1,19 +0,0 @@ -title = '编辑 Delivery: ' . $model->id; -$this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update '; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/delivery/view.php b/backend/modules/shop/views/delivery/view.php deleted file mode 100644 index b440027..0000000 --- a/backend/modules/shop/views/delivery/view.php +++ /dev/null @@ -1,52 +0,0 @@ -title = $model->id; -$this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -Yii::$app->params['bsVersion'] = '4.x'; -\yii\web\YiiAsset::register($this); - -?> -
- -

- 'btn btn-success']) ?> -

- - true, - 'items' => [ - [ - 'label' => ' 发货信息', - 'content' => $this->render('info', [ - 'model' => $model, - ]), - ], - [ - 'label' => ' 物流信息', - 'content' => $this->render('logistics', [ - 'model' => $model, - 'logistics' => $logistics - ]), - ], - [ - 'label' => ' 发货商品信息', - 'content' => $this->render('delivery_goods', [ - 'model' => $model, - ]), - ], - ], - 'position' => TabsX::POS_ABOVE, - 'encodeLabels' => false - ]); - ?> - -
diff --git a/backend/modules/shop/views/express-template/_form.php b/backend/modules/shop/views/express-template/_form.php deleted file mode 100755 index c919f92..0000000 --- a/backend/modules/shop/views/express-template/_form.php +++ /dev/null @@ -1,32 +0,0 @@ - - -
- - - - field($model, 'name')->textInput(['maxlength' => true]) ?> - - field($model, 'calculation_type')->widget(Icheck::className(), ["items" => ExpressTemplate::$calculationType, 'type' => "radio"]); - } - ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
\ No newline at end of file diff --git a/backend/modules/shop/views/express-template/_search.php b/backend/modules/shop/views/express-template/_search.php deleted file mode 100755 index 3e1b1b7..0000000 --- a/backend/modules/shop/views/express-template/_search.php +++ /dev/null @@ -1,49 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/shop/views/express-template/area.php b/backend/modules/shop/views/express-template/area.php deleted file mode 100755 index d205bfa..0000000 --- a/backend/modules/shop/views/express-template/area.php +++ /dev/null @@ -1,428 +0,0 @@ - - -
-
-

已选:

-
    -
  • -
    - {{province.province}} - - - - - - -
  • -
-
-
-
- -
-
    -
  • - -
    - - - -
  • -
-
-
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
\ No newline at end of file diff --git a/backend/modules/shop/views/express-template/create.php b/backend/modules/shop/views/express-template/create.php deleted file mode 100755 index 14ec692..0000000 --- a/backend/modules/shop/views/express-template/create.php +++ /dev/null @@ -1,22 +0,0 @@ -title = '创建运费模板'; -$this->params['breadcrumbs'][] = ['label' => '运费模板', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -Yii::$app->params['bsVersion'] = '4.x'; -?> -
- - render('_form', [ - 'model' => $model, - 'isCreate' => true - ]) ?> - -
diff --git a/backend/modules/shop/views/express-template/express_area_create.php b/backend/modules/shop/views/express-template/express_area_create.php deleted file mode 100755 index d9068a5..0000000 --- a/backend/modules/shop/views/express-template/express_area_create.php +++ /dev/null @@ -1,51 +0,0 @@ -title = '创建区域运费模板'; -$this->params['breadcrumbs'][] = ['label' => '运费区域模板', 'url' => ['express_area_list', ['id' => $expressTemplateModel->id]]]; -$this->params['breadcrumbs'][] = $this->title; -Yii::$app->params['bsVersion'] = '4.x'; -?> -
-
- - ['class' => 'container-fluid']]); - - echo TabsX::widget([ - 'bordered' => true, - 'items' => [ - [ - 'label' => ' 基本信息', - 'content' => $this->render('express_area_form', [ - 'model' => $model, - 'form' => $form, - 'expressTemplateModel' => $expressTemplateModel - ]), - ], - [ - 'label' => ' 选择配送区域', - 'content' => $this->render('area', ['data' => $data, 'form' => $form, 'cities' => [] - ]), - ], - ], - 'position' => TabsX::POS_ABOVE, - 'encodeLabels' => false - ]); - ?> - -
- 'btn btn-success']) ?> - $expressTemplateModel->id], ['class' => 'btn btn-info']) ?> -
- - - -
-
diff --git a/backend/modules/shop/views/express-template/express_area_form.php b/backend/modules/shop/views/express-template/express_area_form.php deleted file mode 100755 index d014ccf..0000000 --- a/backend/modules/shop/views/express-template/express_area_form.php +++ /dev/null @@ -1,175 +0,0 @@ - - -request->get('status'); -if ($status == 1) { - ?> - - - -field($model, 'express_template')->textInput(['maxlength' => true]) ?> - -field($model, 'basic_count')->textInput() ?> - -field($model, 'basic_price')->textInput() ?> - -field($model, 'extra_count')->textInput() ?> - -field($model, 'extra_price')->textInput() ?> - -calculation_type}-1;//初始的计算方式0:计重 1:计件 - -function updateTypeChangeCalType(type){//当切换计算方式 - - $.each(formList[type],function(index,value){ //更改文字标题 - $("." + index).children("label").html(value) - }); - - $("#expressarea-basic_count").val(udfVal[type][0])//重置初始值 - $("#expressarea-basic_price").val(udfVal[type][1]) - $("#expressarea-extra_count").val(0) - $("#expressarea-extra_price").val(udfVal[type][1]) - calType = type; -} -function changeCalType(type){//当切换计算方式 - - $.each(formList[type],function(index,value){ //更改文字标题 - $("." + index).children("label").html(value) - }); - - if(!$("#expressarea-basic_count").val()){ - $("#expressarea-basic_count").val(udfVal[type][0])//重置初始值 - } - if(!$("#expressarea-basic_price").val()){ - $("#expressarea-basic_price").val(udfVal[type][1]) - } - if(!$("#expressarea-extra_count").val()){ - $("#expressarea-extra_count").val(0) - } - if(!$("#expressarea-extra_price").val()){ - $("#expressarea-extra_price").val(udfVal[type][1]) - } - calType = type; -} -//金额补全 -function toFixeds(val, pre) { - const num = parseFloat(val); - // eslint-disable-next-line no-restricted-globals - if (isNaN(num)) { - return false; - } - const p = 10 ** pre; - const value = num * p; - let f = (Math.round(value) / p).toString(); - let rs = f.indexOf('.'); - if (rs < 0) { - rs = f.length; - f += '.'; - } - while (f.length <= rs + pre) { - f += '0'; - } - return f; -} -$(document).ready(function(){ - $("#expressarea-basic_count").blur(function(){ - if(isNaN($(this).val())){ - $(this).val(1) - } - if (calType == 0) { - if($(this).val() < 0.1){ - $(this).val(1) - } - var basiccount = $(this).val(); - $(this).val(toFixeds($(this).val(), 1)); - } else{ - if($(this).val() < 1){ - $(this).val(1) - } - var basiccount = $(this).val(); - $(this).val(Math.floor(basiccount * 1) / 1); - } - }) - $("#expressarea-basic_price").blur(function(){ - if(isNaN($(this).val())){ - $(this).val("0.00") - } - if($(this).val().indexOf('-') != -1){ - $(this).val("0.00") - } - var basicPrice = $(this).val(); - $(this).val(toFixeds($(this).val(), 2)); - }) - $("#expressarea-extra_count").blur(function(){ - if(isNaN($(this).val())){ - $(this).val(0) - } - if (calType == 0) { - if($(this).val() < 0){ - $(this).val(0) - } - var basiccount = $(this).val(); - $(this).val(toFixeds($(this).val(), 1)); - } else{ - if($(this).val() < 0){ - $(this).val(0) - } - var basiccount = $(this).val(); - $(this).val(Math.floor(basiccount * 1) / 1); - } - }) - $("#expressarea-extra_price").blur(function(){ - if(isNaN($(this).val())){ - $(this).val("0.00") - } - if($(this).val().indexOf('-') != -1){ - $(this).val("0.00") - } - var basicPrice = $(this).val(); - $(this).val(toFixeds($(this).val(), 2)); - }) - - $("input:radio[name='ExpressArea[calculation_type]']").on('ifChecked', function(event){ - updateTypeChangeCalType($(this).val()-1) - }) - changeCalType(calType) -}) -JS; -$this->registerJs($js) - -?> \ No newline at end of file diff --git a/backend/modules/shop/views/express-template/express_area_list.php b/backend/modules/shop/views/express-template/express_area_list.php deleted file mode 100644 index 1f59fb9..0000000 --- a/backend/modules/shop/views/express-template/express_area_list.php +++ /dev/null @@ -1,33 +0,0 @@ -title = '运费区域模板:'.$expressTemplate->name; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "express-area/deletes" - ], - ], - 'columns' => $columns, - 'batchTemplate' => '', - 'create' => '', - 'export' => '', - 'content' => Html::a('创建', ['express-area-create', 'expressTemplateId' => $expressTemplate->id], ['class' => 'btn btn-default']). - Html::a('返回', ['index'], ['class' => 'btn btn-default']) - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/shop/views/express-template/express_area_update.php b/backend/modules/shop/views/express-template/express_area_update.php deleted file mode 100755 index 60c0704..0000000 --- a/backend/modules/shop/views/express-template/express_area_update.php +++ /dev/null @@ -1,52 +0,0 @@ -title = '编辑区域运费模板'; -$this->params['breadcrumbs'][] = ['label' => '运费模板', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => '区域运费模板:'.$expressTemplateModel->name, 'url' => ['express-area-list', 'id' => $expressTemplateModel->id]]; -$this->params['breadcrumbs'][] = '编辑区域运费模板'; -Yii::$app->params['bsVersion'] = '4.x'; -?> -
-
- - ['class' => 'container-fluid']]); - - echo TabsX::widget([ - 'bordered' => true, - 'items' => [ - [ - 'label' => ' 基本信息', - 'content' => $this->render('express_area_form', [ - 'model' => $model, - 'form' => $form, - 'expressTemplateModel' => $expressTemplateModel - ]), - ], - [ - 'label' => ' 选择配送区域', - 'content' => $this->render('area', ['data' => $data, 'form' => $form, 'cities' => $cities - ]), - ], - ], - 'position' => TabsX::POS_ABOVE, - 'encodeLabels' => false - ]); - ?> - -
- 'btn btn-success']) ?> - $expressTemplateModel->id], ['class' => 'btn btn-info']) ?> -
- - - -
-
diff --git a/backend/modules/shop/views/express-template/express_area_view.php b/backend/modules/shop/views/express-template/express_area_view.php deleted file mode 100755 index 88bc8e4..0000000 --- a/backend/modules/shop/views/express-template/express_area_view.php +++ /dev/null @@ -1,95 +0,0 @@ -title = $model->id; -$this->params['breadcrumbs'][] = ['label' => '运费模板', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => '运费区域模板:'.$expressTemplateModel->name, 'url' => ['express-area-list?id='.$expressTemplateModel->id]]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- id], ['class' => 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - [ - 'attribute' => 'basic_count', - 'label' => ExpressArea::$formList[$expressTemplateModel->calculation_type]['basic_count'], - 'value' => function ($model) { - $expressTemplateModel = ExpressTemplate::findOne($model->express_template); - if ($expressTemplateModel->calculation_type == ExpressTemplate::CALCULATION_TYPE_WEIGHT) { - return $model->basic_count /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_WEIGHT); - } else { - return $model->basic_count; - } - } - ], - [ - 'attribute' => 'basic_price', - 'label' => ExpressArea::$formList[$expressTemplateModel->calculation_type]['basic_price'], - 'value' => function ($model) { - return $model->basic_price /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_MONEY); - } - ], - [ - 'attribute' => 'extra_count', - 'label' => ExpressArea::$formList[$expressTemplateModel->calculation_type]['extra_count'], - 'value' => function ($model) { - $expressTemplateModel = ExpressTemplate::findOne($model->express_template); - if ($expressTemplateModel->calculation_type == ExpressTemplate::CALCULATION_TYPE_WEIGHT) { - return $model->extra_count /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_WEIGHT); - } else { - return $model->extra_count; - } - } - ], - [ - 'attribute' => 'extra_price', - 'label' => ExpressArea::$formList[$expressTemplateModel->calculation_type]['extra_price'], - 'value' => function ($model) { - return $model->extra_price /= ShopManager::proportionalConversion(ShopManager::UNIT_TYPE_MONEY); - } - ], - 'updated_at:datetime', - 'created_at:datetime', - ['attribute' => 'city', - 'value' => function ($model) { - $expressAreas = ExpressArea::findOne($model->id); - $expressAresCityIdArr = explode(',', $expressAreas->city); - $cities = []; - $provinces = Province::find()->cache(0)->all(); - foreach ($provinces as $k => $v) { - $cityId = City::find() - ->select(['city_id']) - ->where(['province_id' => $v->province_id]) - ->column(); - if (empty(array_diff($cityId, $expressAresCityIdArr))) { - $cities[] = $v->name; - }else{ - foreach (\backend\modules\shop\models\ars\City::find()->andWhere(['in', 'city_id', array_diff($cityId, array_diff($cityId, $expressAresCityIdArr))])->all() as $city) { - $cities[] = $city->name; - } - } - } - return implode(' , ', $cities); - }, - ], - ], - ]) ?> - -
diff --git a/backend/modules/shop/views/express-template/index.php b/backend/modules/shop/views/express-template/index.php deleted file mode 100755 index 844a810..0000000 --- a/backend/modules/shop/views/express-template/index.php +++ /dev/null @@ -1,28 +0,0 @@ -title = '运费模板'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "express-template/deletes" - ], - ], - 'columns' => $columns - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/shop/views/express-template/update.php b/backend/modules/shop/views/express-template/update.php deleted file mode 100755 index 8e086e9..0000000 --- a/backend/modules/shop/views/express-template/update.php +++ /dev/null @@ -1,23 +0,0 @@ -title = '编辑运费模板: ' . $model->name; -$this->params['breadcrumbs'][] = ['label' => '运费模板', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update '; -Yii::$app->params['bsVersion'] = '4.x'; -?> -
- - render('_form', [ - 'model' => $model, - 'isCreate' => false - ]) ?> - -
diff --git a/backend/modules/shop/views/express-template/view.php b/backend/modules/shop/views/express-template/view.php deleted file mode 100755 index f2d6f8a..0000000 --- a/backend/modules/shop/views/express-template/view.php +++ /dev/null @@ -1,51 +0,0 @@ -title = $model->name; -$this->params['breadcrumbs'][] = ['label' => 'Express Templates', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - 'name', - [ - 'attribute' => 'calculation_type', - 'value' => function ($model) { - return ExpressTemplate::$calculationType[$model->calculation_type]; - } - ], - 'basic_price', - 'basic_count', - 'extra_price', - 'extra_count', - 'updated_at:datetime', - 'created_at:datetime', - ['attribute' => 'city', - 'value' => function ($model) { - $array = explode(',', $model->city); - $cities = []; - foreach (\backend\modules\shop\models\ars\City::find()->andWhere(['in', 'city_id', $array])->all() as $city) { - $cities[] = $city->name; - } - return implode(' // ', $cities); - }, - ], - ], - ]) ?> - -
diff --git a/backend/modules/shop/views/order/_form.php b/backend/modules/shop/views/order/_form.php deleted file mode 100755 index a630ef8..0000000 --- a/backend/modules/shop/views/order/_form.php +++ /dev/null @@ -1,52 +0,0 @@ - - -
- - - - field($model, 'invoice_id')->textInput(['maxlength' => true]) ?> - - field($model, 'goods_amount')->textInput() ?> - - field($model, 'shipping_amount')->textInput() ?> - - field($model, 'shipping_type')->textInput() ?> - - field($model, 'consignee')->textInput(['maxlength' => true]) ?> - - field($model, 'phone')->textInput(['maxlength' => true]) ?> - - field($model, 'province')->textInput(['maxlength' => true]) ?> - - field($model, 'city')->textInput(['maxlength' => true]) ?> - - field($model, 'area')->textInput(['maxlength' => true]) ?> - - field($model, 'taking_site')->textInput() ?> - - field($model, 'payment_amount')->textInput() ?> - - field($model, 'receivables')->textInput() ?> - - field($model, 'remarks')->textInput(['maxlength' => true]) ?> - - field($model, 'discount_amount')->textInput() ?> - - field($model, 'discount_description')->textarea(['rows' => 6]) ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/shop/views/order/_search.php b/backend/modules/shop/views/order/_search.php deleted file mode 100755 index e75967e..0000000 --- a/backend/modules/shop/views/order/_search.php +++ /dev/null @@ -1,73 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, 'order_sn', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "订单号", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, 'status', [ - "template" => "{input}{error}", - "inputOptions" => [ - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->dropDownList(Order::dropDown('status')) ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/shop/views/order/create.php b/backend/modules/shop/views/order/create.php deleted file mode 100755 index bcc8654..0000000 --- a/backend/modules/shop/views/order/create.php +++ /dev/null @@ -1,18 +0,0 @@ -title = '创建 Order'; -$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/order/delivery.php b/backend/modules/shop/views/order/delivery.php deleted file mode 100644 index 5ea40f5..0000000 --- a/backend/modules/shop/views/order/delivery.php +++ /dev/null @@ -1,56 +0,0 @@ -title = '订单发货:'. $order->order_sn; -$this->params['breadcrumbs'][] = ['label' => '订单列表', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -Yii::$app->params['bsVersion'] = '4.x'; -?> - -
- - ['class' => 'container-fluid']]); - - echo TabsX::widget([ - 'bordered' => true, - 'items' => [ - [ - 'label' => ' 物流信息', - 'content' => $this->render('logistics', [ - 'order' => $order, - 'delivery' => $delivery, - 'form' => $form, - ]), - ], - [ - 'label' => ' 订单商品信息', - 'content' => $this->render('delivery_goods', [ - 'form' => $form, - 'deliveryGoods' => $deliveryGoods, - ]), - ], - ], - 'position' => TabsX::POS_ABOVE, - 'encodeLabels' => false - ]); - ?> - - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/shop/views/order/delivery_goods.php b/backend/modules/shop/views/order/delivery_goods.php deleted file mode 100644 index 9eeea6e..0000000 --- a/backend/modules/shop/views/order/delivery_goods.php +++ /dev/null @@ -1,97 +0,0 @@ - - - - -
-
-

未发货商品

- - - - - - - - - - lack_number) ? $value->lack_number : $value->goods_count; - echo '' . - '' . - '' . - '' . - '' . - "" . - ''; - } - ?> -
商品ID商品名称商品sku还需发货数量发货数量
' . $value->goods_id . '' . $value->goods_name . '' . $value->sku_value . '' . $lackNumber . '
-
-
- 已发货商品'; - foreach ($deliveryGoods['shipped'] as $shipped) { - echo "
货流名称:"; - echo '【' . $shipped->shipping_name . '】'; - echo '    运单号:'; - echo '【' . '】'; - echo '    创建时间:'; - echo '【' . date('Y-m-d H:i:s', $shipped->created_at) . '】'; - echo '
'; - - echo - '' . - '' . - '' . - '' . - '' . - '' . - ''; - - foreach ($shipped->deliveryGoods as $goodsInfo) { - echo '' . - "" . - "" . - "" . - "" . - ''; - } - echo '
商品ID商品名称商品sku发货数量
{$goodsInfo->goods_id} {$goodsInfo->goods_name} {$goodsInfo->sku_value} {$goodsInfo->goods_count}
'; - } - } - ?> -
-
- - - - - - - diff --git a/backend/modules/shop/views/order/index.php b/backend/modules/shop/views/order/index.php deleted file mode 100755 index a2b1150..0000000 --- a/backend/modules/shop/views/order/index.php +++ /dev/null @@ -1,29 +0,0 @@ -title = '订单列表'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ -// [ -// "label" => "删除", -// "url" => "order/deletes" -// ], - ], - 'columns' => $columns - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/shop/views/order/logistics.php b/backend/modules/shop/views/order/logistics.php deleted file mode 100644 index d1433eb..0000000 --- a/backend/modules/shop/views/order/logistics.php +++ /dev/null @@ -1,14 +0,0 @@ - - -
- - field($delivery, 'shipping_id')->dropDownList(Yii::$app->params['logistics']) ?> - - field($delivery, 'invoice_sn')->textInput(['maxlength' => true]) ?> - - field($delivery, 'decription')->textarea(['rows' => 6]) ?> -
diff --git a/backend/modules/shop/views/order/order_info.php b/backend/modules/shop/views/order/order_info.php deleted file mode 100644 index a4a6dfd..0000000 --- a/backend/modules/shop/views/order/order_info.php +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - -
商品数量:goods_count ?>
商品金额:goods_amount ?>
diff --git a/backend/modules/shop/views/order/pay_info.php b/backend/modules/shop/views/order/pay_info.php deleted file mode 100644 index 9670e3c..0000000 --- a/backend/modules/shop/views/order/pay_info.php +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
pay_type ?>
pay_at ?>
payment_sn ?>
payment_amount ?>
receivables ?>
discount_amount ?>
discount_description ?>
diff --git a/backend/modules/shop/views/order/refund.php b/backend/modules/shop/views/order/refund.php deleted file mode 100644 index 38e313e..0000000 --- a/backend/modules/shop/views/order/refund.php +++ /dev/null @@ -1,39 +0,0 @@ -title = '退款订单:' . $model->order_id; -$this->params['breadcrumbs'][] = ['label' => '订单列表', 'url' => ['index']]; -Yii::$app->params['bsVersion'] = '4.x'; -?> - -
- - - field($model, 'wx_refund_id')->textInput(['maxlength' => true, 'readonly' => 'true']) ?> - - field($model, 'reason')->textInput(['maxlength' => true, 'readonly' => 'true']) ?> - - field($model, 'order_amount')->textInput(['maxlength' => true, 'readonly' => 'true']) ?> - - field($model, 'refund_amount')->textInput(['maxlength' => true, 'readonly' => 'true']) ?> - - field($model, 'refunded_amount')->textInput(['maxlength' => true, 'readonly' => 'true']) ?> - - field($model, 'refund_account')->textInput(['maxlength' => true, 'readonly' => 'true']) ?> - - field($model, 'type')->textInput(['maxlength' => true, 'readonly' => 'true']) ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
- diff --git a/backend/modules/shop/views/order/shipping_info.php b/backend/modules/shop/views/order/shipping_info.php deleted file mode 100644 index 7894197..0000000 --- a/backend/modules/shop/views/order/shipping_info.php +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - -
物流类型:shipping_type) ? Order::dropDown('shipping_type', $model->shipping_type) : '无' ?>
商品金额:goods_amount ?>
自提点:taking_site ?>
diff --git a/backend/modules/shop/views/order/table_consignee_info.php b/backend/modules/shop/views/order/table_consignee_info.php deleted file mode 100644 index 1fff1c4..0000000 --- a/backend/modules/shop/views/order/table_consignee_info.php +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
联系人:consignee ?>
联系电话:phone ?>
联系地址: - province) { - $info .= $model->provinceId->name . '/'; - } - if ($model->city) { - $info .= $model->cityId->name . '/'; - } - if ($model->area) { - $info .= $model->areaId->name; - } - ?> -
详细地址:address ?>
diff --git a/backend/modules/shop/views/order/update.php b/backend/modules/shop/views/order/update.php deleted file mode 100755 index 47f7f5f..0000000 --- a/backend/modules/shop/views/order/update.php +++ /dev/null @@ -1,19 +0,0 @@ -title = '编辑 Order: ' . $model->id; -$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update '; -?> -
- - render('_form', [ - 'model' => $model, - ]) ?> - -
diff --git a/backend/modules/shop/views/order/view.php b/backend/modules/shop/views/order/view.php deleted file mode 100755 index cd275c8..0000000 --- a/backend/modules/shop/views/order/view.php +++ /dev/null @@ -1,84 +0,0 @@ -title = $model->id; -$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - 'user_id', - 'order_sn', - 'invoice_id', - [ - 'attribute' => 'status', - 'value' => function ($model) { - return Order::dropDown('status', $model->status); - } - ], - [ - 'attribute' => 'type', - 'value' => function ($model) { - return Order::dropDown('type', $model->type); - } - ], - 'goods_count', - 'goods_amount', - 'shipping_amount', - [ - 'attribute' => 'shipping_type', - 'width' => '7%', - 'value' => function ($model) { - return Order::dropDown('shipping_type', $model->shipping_type); - } - ], - 'consignee', - 'phone', - 'province', - 'city', - 'area', - 'taking_site', - 'pay_type', - [ - 'attribute' => 'pay_at', - 'value' => function ($model) { - return date('Y-m-d H:i:s', $model->pay_at); - } - ], - 'payment_sn', - 'payment_amount', - 'receivables', - 'remarks', - 'discount_amount', - 'discount_description:ntext', - [ - 'attribute' => 'created_at', - 'value' => function ($model) { - return date('Y-m-d H:i:s', $model->updated_at); - } - ], - [ - 'attribute' => 'updated_at', - 'value' => function ($model) { - return date('Y-m-d H:i:s', $model->created_at); - } - ], - ], - ]) ?> - -
diff --git a/backend/modules/shop/views/taking-site/_form.php b/backend/modules/shop/views/taking-site/_form.php deleted file mode 100755 index ff02dd4..0000000 --- a/backend/modules/shop/views/taking-site/_form.php +++ /dev/null @@ -1,67 +0,0 @@ -select('province_id as id,name')->asArray()->all(); -$data = ArrayHelper::map($provinces, 'id', 'name'); -Yii::$app->params['bsVersion'] = '4.x'; -?> - -
- - - - field($model, 'name')->textInput(['maxlength' => true]) ?> - -
-
- field($model, 'province')->dropDownList($data, ['id' => 'province-id', 'prompt' => '请选择']); ?> -
-
- field($model, 'city')->widget(DepDrop::classname(), [ - 'options' => ['id' => 'city-id', 'prompt' => $model->city], - 'data' => $cityList, - 'pluginOptions' => [ - 'depends' => ['province-id'], - 'placeholder' => '请选择成市', - 'url' => Url::to(['/shop/taking-site/city']) - ], - 'pluginEvents' => [ - "depdrop:change" => "function(event, id, value, count) { log(id); log(value); log(count); }", - ] - - ]) ?> -
-
- field($model, 'area')->widget(DepDrop::classname(), [ - 'options' => ['prompt' => $model->area], - 'data' => $areaList, - 'pluginOptions' => [ - 'depends' => ['city-id'], - 'placeholder' => '请选择县区', - 'url' => Url::to(['/shop/taking-site/area']) - - ] - ]) ?> -
-
- - field($model, 'address')->textarea(['rows' => 2]) ?> - -
- 'btn btn-success']) ?> - 'btn btn-info']) ?> -
- - - -
diff --git a/backend/modules/shop/views/taking-site/_search.php b/backend/modules/shop/views/taking-site/_search.php deleted file mode 100755 index 6db10b9..0000000 --- a/backend/modules/shop/views/taking-site/_search.php +++ /dev/null @@ -1,62 +0,0 @@ - - - ['index'], - 'method' => 'get', - 'validateOnType' => true, - ]); -?> -
-
- field($model, 'id', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "检索ID", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, 'name', [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "名称", - "class" => "form-control", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ]) - ?> -
-
- field($model, "created_at_range", [ - "template" => "{input}{error}", - "inputOptions" => [ - "placeholder" => "创建时间", - ], - "errorOptions" => [ - "class" => "error-tips" - ] - ])->widget(DateRangePicker::className()); - ?> -
-
- ', ['class' => 'btn btn-default']) ?> - ', ['class' => 'btn btn-default']) ?> -
-
- \ No newline at end of file diff --git a/backend/modules/shop/views/taking-site/create.php b/backend/modules/shop/views/taking-site/create.php deleted file mode 100755 index c744c1e..0000000 --- a/backend/modules/shop/views/taking-site/create.php +++ /dev/null @@ -1,20 +0,0 @@ -title = '创建自提点'; -$this->params['breadcrumbs'][] = ['label' => '上门自提', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -?> -
- - render('_form', [ - 'model' => $model, - 'cityList'=>[], - 'areaList'=>[] - ]) ?> - -
diff --git a/backend/modules/shop/views/taking-site/index.php b/backend/modules/shop/views/taking-site/index.php deleted file mode 100755 index 5b9ae51..0000000 --- a/backend/modules/shop/views/taking-site/index.php +++ /dev/null @@ -1,28 +0,0 @@ -title = '上门自提'; -$this->params['breadcrumbs'][] = $this->title; -?> -
-
- $dataProvider, - 'filter' => $this->render("_search", ['model' => $searchModel]), - 'batch' => [ - [ - "label" => "删除", - "url" => "taking-site/deletes" - ], - ], - 'columns' => $columns - ]); - ?> -
-
\ No newline at end of file diff --git a/backend/modules/shop/views/taking-site/update.php b/backend/modules/shop/views/taking-site/update.php deleted file mode 100755 index 3409b7b..0000000 --- a/backend/modules/shop/views/taking-site/update.php +++ /dev/null @@ -1,28 +0,0 @@ -title = '编辑: ' . $model->name; -$this->params['breadcrumbs'][] = ['label' => 'Taking Sites', 'url' => ['index']]; -$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; -$this->params['breadcrumbs'][] = 'Update '; - -$cities = City::find()->select('city_id as id,name')->where(['province_id' => $model->province])->asArray()->all(); -$cityList = \yii\helpers\ArrayHelper::map($cities, 'id', 'name'); -$areas = Area::find()->select('area_id as id,name')->where(['city_id' => $model->city])->asArray()->all(); -$areaList = \yii\helpers\ArrayHelper::map($areas, 'id', 'name'); -?> -
- - render('_form', [ - 'model' => $model, - 'cityList' => $cityList, - 'areaList' => $areaList - ]) ?> - -
diff --git a/backend/modules/shop/views/taking-site/view.php b/backend/modules/shop/views/taking-site/view.php deleted file mode 100755 index 378252a..0000000 --- a/backend/modules/shop/views/taking-site/view.php +++ /dev/null @@ -1,61 +0,0 @@ -title = $model->name; -$this->params['breadcrumbs'][] = ['label' => 'Taking Sites', 'url' => ['index']]; -$this->params['breadcrumbs'][] = $this->title; -\yii\web\YiiAsset::register($this); -?> -
- -

- 'btn btn-success']) ?> -

- - $model, - 'attributes' => [ - 'id', - 'name', - [ - 'attribute' => 'province', - 'value' => function ($model) { - $province = Province::findOne(['province_id' => $model->province]); - if ($province) { - return $province->name; - } - } - ], - [ - 'attribute' => 'city', - 'value' => function ($model) { - $city = City::findOne(['city_id' => $model->city]); - if ($city) { - return $city->name; - } - } - ], - [ - 'attribute' => 'area', - 'value' => function ($model) { - $area = Area::findOne(['area_id' => $model->area]); - if ($area) { - return $area->name; - } - } - ], - 'address:ntext', - 'updated_at:datetime', - 'created_at:datetime', - ], - ]) ?> - -
diff --git a/backend/views/layouts/sidebar.php b/backend/views/layouts/sidebar.php index ed19f0a..b7e3458 100755 --- a/backend/views/layouts/sidebar.php +++ b/backend/views/layouts/sidebar.php @@ -20,29 +20,6 @@ use iron\widgets\Menu; ['label' => '基础配置', 'url' => ['config/index', 'tag' => 'new']], ] ], - ['label' => '商品管理', 'url' => '#', 'icon' => 'far fa-box', 'items' => [ - ['label' => '后台商品分类', 'url' => ['/goods/category/index']], - ['label' => '规格管理', 'url' => ['/goods/attribute/index']], - ['label' => '前端商品分类', 'url' => ['/goods/shop-category/index']], - ['label' => '品牌管理', 'url' => ['/goods/brand/index']], - ['label' => '供应商管理', 'url' => ['/goods/supplier/index']], - ['label' => '商品列表', 'url' => ['/goods/goods/index']], - ] - ], - ['label' => '订单管理', 'url' => '#', 'icon' => 'far fa-list-alt', 'items' => [ - ['label' => '订单列表', 'url' => ['/shop/order/index', 'tag' => 'new']], - ], - ], - ['label' => '配送服务', 'url' => '#', 'icon' => 'far fa-shipping-fast', 'items' => [ - ['label' => '上门自提', 'url' => ['/shop/taking-site/index']], - ['label' => '运费模板', 'url' => ['/shop/express-template/index']], - ] - ], - ['label' => '售后管理', 'url' => '#', 'icon' => 'far fa-retweet', 'items' => [ - ['label' => '售后管理', 'url' => ['/shop/after-sale/index']], - ['label' => '评论', 'url' => ['/shop/comment/index']], - ] - ], ['label' => '微信公众号管理', 'url' => '#', 'icon' => 'far fa-comments', 'items' => [ ['label' => '自定义菜单', 'url' => ['/wx-public-account/public-account/custom-menu']], ]