commit 78e24c8bfc0292401fb46c8680120c79139844a3 Author: cpf Date: Fri Jul 29 14:27:35 2022 +0800 git地址迁移 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9065afb --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk +online-taxi-public/api-passenger/target/classes/com/mashibing/apipassenger/controller/VerificationCodeController.class +online-taxi-public/api-passenger/target/classes/com/mashibing/apipassenger/request/VerificationCodeDTO.class +online-taxi-public/api-passenger/target/classes/com/mashibing/apipassenger/service/VerificationCodeService.class +online-taxi-public/service-price/target/ +online-taxi-public/internal-common/target/ +online-taxi-public/api-passenger/target/ +online-taxi-public/serice-map/target/ +online-taxi-public/service-driver-user/target/ +online-taxi-public/api-boss/target/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..dbbe355 --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..7c55513 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +飞滴出行网约车项目2022版 \ No newline at end of file diff --git a/online-taxi-public/.idea/.gitignore b/online-taxi-public/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/online-taxi-public/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/online-taxi-public/.idea/compiler.xml b/online-taxi-public/.idea/compiler.xml new file mode 100644 index 0000000..b62330b --- /dev/null +++ b/online-taxi-public/.idea/compiler.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/online-taxi-public/.idea/encodings.xml b/online-taxi-public/.idea/encodings.xml new file mode 100644 index 0000000..e250eb7 --- /dev/null +++ b/online-taxi-public/.idea/encodings.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/online-taxi-public/.idea/jarRepositories.xml b/online-taxi-public/.idea/jarRepositories.xml new file mode 100644 index 0000000..abb532a --- /dev/null +++ b/online-taxi-public/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/online-taxi-public/.idea/misc.xml b/online-taxi-public/.idea/misc.xml new file mode 100644 index 0000000..44a5b1f --- /dev/null +++ b/online-taxi-public/.idea/misc.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/online-taxi-public/.idea/uiDesigner.xml b/online-taxi-public/.idea/uiDesigner.xml new file mode 100644 index 0000000..e96534f --- /dev/null +++ b/online-taxi-public/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/online-taxi-public/.idea/vcs.xml b/online-taxi-public/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/online-taxi-public/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/online-taxi-public/api-boss/pom.xml b/online-taxi-public/api-boss/pom.xml new file mode 100644 index 0000000..4411706 --- /dev/null +++ b/online-taxi-public/api-boss/pom.xml @@ -0,0 +1,36 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + api-boss + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + org.springframework.cloud + spring-cloud-starter-loadbalancer + + + + + \ No newline at end of file diff --git a/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/ApiBossApplication.java b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/ApiBossApplication.java new file mode 100644 index 0000000..fb35937 --- /dev/null +++ b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/ApiBossApplication.java @@ -0,0 +1,14 @@ +package com.mashibing.apiBoss; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.web.bind.annotation.RestController; + +@SpringBootApplication +@EnableFeignClients +public class ApiBossApplication { + public static void main(String[] args) { + SpringApplication.run(ApiBossApplication.class); + } +} diff --git a/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/controller/DriverUserController.java b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/controller/DriverUserController.java new file mode 100644 index 0000000..fab5c63 --- /dev/null +++ b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/controller/DriverUserController.java @@ -0,0 +1,37 @@ +package com.mashibing.apiBoss.controller; + +import com.mashibing.apiBoss.service.DriverUserService; +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class DriverUserController { + + @Autowired + private DriverUserService driverUserService; + + /** + * 添加司机 + * @param driverUser + * @return + */ + @PostMapping("/driver-user") + public ResponseResult addDriverUser(@RequestBody DriverUser driverUser){ + return driverUserService.addDriverUser(driverUser); + } + + /** + * 修改司机 + * @param driverUser + * @return + */ + @PutMapping("/driver-user") + public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser){ + return driverUserService.updateDriverUser(driverUser); + } +} diff --git a/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/controller/TestController.java b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/controller/TestController.java new file mode 100644 index 0000000..37f8c52 --- /dev/null +++ b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/controller/TestController.java @@ -0,0 +1,13 @@ +package com.mashibing.apiBoss.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController { + + @GetMapping("/test") + public String test(){ + return "api-boss"; + } +} diff --git a/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/remote/ServiceDriverUserClient.java b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/remote/ServiceDriverUserClient.java new file mode 100644 index 0000000..32536b7 --- /dev/null +++ b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/remote/ServiceDriverUserClient.java @@ -0,0 +1,19 @@ +package com.mashibing.apiBoss.remote; + +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.stereotype.Service; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +@FeignClient("service-driver-user") +public interface ServiceDriverUserClient { + + @RequestMapping(method = RequestMethod.POST, value = "/user") + public ResponseResult addDriverUser(@RequestBody DriverUser driverUser); + + @RequestMapping(method = RequestMethod.PUT, value = "/user") + public ResponseResult updateDriverUser(@RequestBody DriverUser driverUser); +} diff --git a/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/service/DriverUserService.java b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/service/DriverUserService.java new file mode 100644 index 0000000..9211de5 --- /dev/null +++ b/online-taxi-public/api-boss/src/main/java/com/mashibing/apiBoss/service/DriverUserService.java @@ -0,0 +1,22 @@ +package com.mashibing.apiBoss.service; + +import com.mashibing.apiBoss.remote.ServiceDriverUserClient; +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class DriverUserService { + + @Autowired + private ServiceDriverUserClient serviceDriverUserClient; + + public ResponseResult addDriverUser(DriverUser driverUser){ + return serviceDriverUserClient.addDriverUser(driverUser); + } + + public ResponseResult updateDriverUser(DriverUser driverUser){ + return serviceDriverUserClient.updateDriverUser(driverUser); + } +} diff --git a/online-taxi-public/api-boss/src/main/resources/application.yml b/online-taxi-public/api-boss/src/main/resources/application.yml new file mode 100644 index 0000000..a31b8e5 --- /dev/null +++ b/online-taxi-public/api-boss/src/main/resources/application.yml @@ -0,0 +1,9 @@ +server: + port: 8087 +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + application: + name: api-boss diff --git a/online-taxi-public/api-driver/pom.xml b/online-taxi-public/api-driver/pom.xml new file mode 100644 index 0000000..b3b7b31 --- /dev/null +++ b/online-taxi-public/api-driver/pom.xml @@ -0,0 +1,36 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + api-driver + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + + org.springframework.cloud + spring-cloud-starter-loadbalancer + + + + \ No newline at end of file diff --git a/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/ApiDriverApplicaiton.java b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/ApiDriverApplicaiton.java new file mode 100644 index 0000000..bdfb9b4 --- /dev/null +++ b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/ApiDriverApplicaiton.java @@ -0,0 +1,23 @@ +package com.mashibing.apiDriver; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@SpringBootApplication +@RestController +@EnableDiscoveryClient +@EnableFeignClients +public class ApiDriverApplicaiton { + public static void main(String[] args) { + SpringApplication.run(ApiDriverApplicaiton.class); + } + + @GetMapping("/test") + public String test(){ + return "api-driver"; + } +} diff --git a/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/controller/UserController.java b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/controller/UserController.java new file mode 100644 index 0000000..6e0f5cf --- /dev/null +++ b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/controller/UserController.java @@ -0,0 +1,21 @@ +package com.mashibing.apiDriver.controller; + +import com.mashibing.apiDriver.service.UserService; +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class UserController { + + @Autowired + private UserService userService; + + @PutMapping("/user") + public ResponseResult updateUser(@RequestBody DriverUser driverUser){ + return userService.updateUser(driverUser); + } +} diff --git a/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/remote/ServiceDriverUserClient.java b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/remote/ServiceDriverUserClient.java new file mode 100644 index 0000000..b22105e --- /dev/null +++ b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/remote/ServiceDriverUserClient.java @@ -0,0 +1,15 @@ +package com.mashibing.apiDriver.remote; + +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +@FeignClient("service-driver-user") +public interface ServiceDriverUserClient { + + @RequestMapping(method = RequestMethod.PUT, value = "/user") + public ResponseResult updateUser(@RequestBody DriverUser driverUser); +} diff --git a/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/service/UserService.java b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/service/UserService.java new file mode 100644 index 0000000..57f6807 --- /dev/null +++ b/online-taxi-public/api-driver/src/main/java/com/mashibing/apiDriver/service/UserService.java @@ -0,0 +1,18 @@ +package com.mashibing.apiDriver.service; + +import com.mashibing.apiDriver.remote.ServiceDriverUserClient; +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class UserService { + + @Autowired + private ServiceDriverUserClient serviceDriverUserClient; + + public ResponseResult updateUser(DriverUser driverUser){ + return serviceDriverUserClient.updateUser(driverUser); + } +} diff --git a/online-taxi-public/api-driver/src/main/resources/application.yml b/online-taxi-public/api-driver/src/main/resources/application.yml new file mode 100644 index 0000000..e1c151a --- /dev/null +++ b/online-taxi-public/api-driver/src/main/resources/application.yml @@ -0,0 +1,9 @@ +server: + port: 8088 +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1 + application: + name: api-driver \ No newline at end of file diff --git a/online-taxi-public/api-driver/target/classes/application.yml b/online-taxi-public/api-driver/target/classes/application.yml new file mode 100644 index 0000000..e1c151a --- /dev/null +++ b/online-taxi-public/api-driver/target/classes/application.yml @@ -0,0 +1,9 @@ +server: + port: 8088 +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1 + application: + name: api-driver \ No newline at end of file diff --git a/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/ApiDriverApplicaiton.class b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/ApiDriverApplicaiton.class new file mode 100644 index 0000000..611f698 Binary files /dev/null and b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/ApiDriverApplicaiton.class differ diff --git a/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/controller/UserController.class b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/controller/UserController.class new file mode 100644 index 0000000..d8480b4 Binary files /dev/null and b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/controller/UserController.class differ diff --git a/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/remote/ServiceDriverUserClient.class b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/remote/ServiceDriverUserClient.class new file mode 100644 index 0000000..e8ee748 Binary files /dev/null and b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/remote/ServiceDriverUserClient.class differ diff --git a/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/service/UserService.class b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/service/UserService.class new file mode 100644 index 0000000..ae29870 Binary files /dev/null and b/online-taxi-public/api-driver/target/classes/com/mashibing/apiDriver/service/UserService.class differ diff --git a/online-taxi-public/api-passenger/pom.xml b/online-taxi-public/api-passenger/pom.xml new file mode 100644 index 0000000..732aeed --- /dev/null +++ b/online-taxi-public/api-passenger/pom.xml @@ -0,0 +1,49 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + api-passenger + + + 8 + 8 + + + + + org.springframework.boot + spring-boot-starter-web + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + + org.springframework.cloud + spring-cloud-starter-loadbalancer + + + + org.springframework.boot + spring-boot-starter-data-redis + + + + + + \ No newline at end of file diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/ApiPassengerApplication.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/ApiPassengerApplication.java new file mode 100644 index 0000000..f8db484 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/ApiPassengerApplication.java @@ -0,0 +1,16 @@ +package com.mashibing.apipassenger; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; + +@SpringBootApplication +@EnableDiscoveryClient +@EnableFeignClients +public class ApiPassengerApplication { + + public static void main(String[] args) { + SpringApplication.run(ApiPassengerApplication.class); + } +} \ No newline at end of file diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/ForecastPriceController.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/ForecastPriceController.java new file mode 100644 index 0000000..9bbc4b6 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/ForecastPriceController.java @@ -0,0 +1,31 @@ +package com.mashibing.apipassenger.controller; + +import com.mashibing.apipassenger.service.ForecastPriceService; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.ForecastPriceDTO; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@Slf4j +public class ForecastPriceController { + + @Autowired + ForecastPriceService forecastPriceService; + + @PostMapping("/forecast-price") + public ResponseResult forecastPrice(@RequestBody ForecastPriceDTO forecastPriceDTO){ + + String depLongitude = forecastPriceDTO.getDepLongitude(); + String depLatitude = forecastPriceDTO.getDepLatitude(); + String destLongitude = forecastPriceDTO.getDestLongitude(); + String destLatitude = forecastPriceDTO.getDestLatitude(); + + + return forecastPriceService.forecastPrice(depLongitude,depLatitude,destLongitude,destLatitude); + } +} \ No newline at end of file diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TestController.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TestController.java new file mode 100644 index 0000000..cb4185c --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TestController.java @@ -0,0 +1,33 @@ +package com.mashibing.apipassenger.controller; + +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController { + + @GetMapping("/test") + public String test(){ + + return "test api passenger"; + } + + /** + * 需要有token + * @return + */ + @GetMapping("/authTest") + public ResponseResult authTest(){ + return ResponseResult.success("auth test"); + } + + /** + * 没有token也能正常返回 + * @return + */ + @GetMapping("/noauthTest") + public ResponseResult noauthTest(){ + return ResponseResult.success("noauth test"); + } +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TokenController.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TokenController.java new file mode 100644 index 0000000..1673222 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/TokenController.java @@ -0,0 +1,26 @@ +package com.mashibing.apipassenger.controller; + +import com.mashibing.apipassenger.service.TokenService; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.responese.TokenResponse; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TokenController { + + @Autowired + private TokenService tokenService; + + @PostMapping("/token-refresh") + public ResponseResult refreshToken(@RequestBody TokenResponse tokenResponse){ + + String refreshTokenSrc = tokenResponse.getRefreshToken(); + System.out.println("原来的 refreshToken:"+refreshTokenSrc); + + return tokenService.refreshToken(refreshTokenSrc); + + } +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/UserController.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/UserController.java new file mode 100644 index 0000000..86b0d5f --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/UserController.java @@ -0,0 +1,26 @@ +package com.mashibing.apipassenger.controller; + +import com.mashibing.apipassenger.service.UserService; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.servlet.http.HttpServletRequest; + +@RestController +public class UserController { + + @Autowired + private UserService userService; + + @GetMapping("/users") + public ResponseResult getUser(HttpServletRequest request){ + + // 从http请求中获取 accessToken + String accessToken = request.getHeader("Authorization"); + + return userService.getUserByAccessToken(accessToken); + + } +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/VerificationCodeController.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/VerificationCodeController.java new file mode 100644 index 0000000..540a80c --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/controller/VerificationCodeController.java @@ -0,0 +1,37 @@ +package com.mashibing.apipassenger.controller; + +import com.mashibing.apipassenger.service.VerificationCodeService; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.VerificationCodeDTO; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class VerificationCodeController { + + @Autowired + private VerificationCodeService verificationCodeService; + + @GetMapping("/verification-code") + public ResponseResult verificationCode(@RequestBody VerificationCodeDTO verificationCodeDTO){ + + String passengerPhone = verificationCodeDTO.getPassengerPhone(); + return verificationCodeService.generatorCode(passengerPhone); + + } + + @PostMapping("/verification-code-check") + public ResponseResult checkVerificationCode(@RequestBody VerificationCodeDTO verificationCodeDTO){ + + String passengerPhone = verificationCodeDTO.getPassengerPhone(); + String verificationCode = verificationCodeDTO.getVerificationCode(); + + System.out.println("手机号"+passengerPhone+",验证码:"+verificationCode); + + return verificationCodeService.checkCode(passengerPhone,verificationCode); + } + +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/interceptor/InterceptorConfig.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/interceptor/InterceptorConfig.java new file mode 100644 index 0000000..847a26d --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/interceptor/InterceptorConfig.java @@ -0,0 +1,28 @@ +package com.mashibing.apipassenger.interceptor; + +import org.springframework.beans.factory.annotation.Configurable; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +@Configuration +public class InterceptorConfig implements WebMvcConfigurer { + + @Bean + public JwtInterceptor jwtInterceptor(){ + return new JwtInterceptor(); + } + + @Override + public void addInterceptors(InterceptorRegistry registry) { + registry.addInterceptor(jwtInterceptor()) + // 拦截的路径 + .addPathPatterns("/**") + // 不拦截的路径 + .excludePathPatterns("/noauthTest") + .excludePathPatterns("/verification-code") + .excludePathPatterns("/verification-code-check") + .excludePathPatterns("/token-refresh"); + } +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/interceptor/JwtInterceptor.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/interceptor/JwtInterceptor.java new file mode 100644 index 0000000..da2da51 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/interceptor/JwtInterceptor.java @@ -0,0 +1,63 @@ +package com.mashibing.apipassenger.interceptor; + +import com.auth0.jwt.exceptions.AlgorithmMismatchException; +import com.auth0.jwt.exceptions.SignatureVerificationException; +import com.auth0.jwt.exceptions.TokenExpiredException; +import com.mashibing.internalcommon.constant.TokenConstants; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.dto.TokenResult; +import com.mashibing.internalcommon.util.JwtUtils; +import com.mashibing.internalcommon.util.RedisPrefixUtils; +import net.sf.json.JSONObject; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.StringRedisTemplate; +import org.springframework.web.servlet.HandlerInterceptor; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.io.PrintWriter; + + +public class JwtInterceptor implements HandlerInterceptor { + + @Autowired + private StringRedisTemplate stringRedisTemplate; + + @Override + public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { + + boolean result = true; + String resutltString = ""; + + String token = request.getHeader("Authorization"); + // 解析token + TokenResult tokenResult = JwtUtils.checkToken(token); + + if (tokenResult == null){ + resutltString = "access token invalid"; + result = false; + }else{ + // 拼接key + String phone = tokenResult.getPhone(); + String identity = tokenResult.getIdentity(); + + String tokenKey = RedisPrefixUtils.generatorTokenKey(phone,identity, TokenConstants.ACCESS_TOKEN_TYPE); + // 从redis中取出token + String tokenRedis = stringRedisTemplate.opsForValue().get(tokenKey); + if ((StringUtils.isBlank(tokenRedis)) || (!token.trim().equals(tokenRedis.trim()))){ + resutltString = "access token invalid"; + result = false; + } + } + + if (!result){ + PrintWriter out = response.getWriter(); + out.print(JSONObject.fromObject(ResponseResult.fail(resutltString)).toString()); + } + + + + return result; + } +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServicePassengerUserClient.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServicePassengerUserClient.java new file mode 100644 index 0000000..ff6f2c6 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServicePassengerUserClient.java @@ -0,0 +1,17 @@ +package com.mashibing.apipassenger.remote; + +import com.mashibing.internalcommon.dto.PassengerUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.VerificationCodeDTO; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.*; + +@FeignClient("service-passenger-user") +public interface ServicePassengerUserClient { + + @RequestMapping(method = RequestMethod.POST, value = "/user") + public ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCodeDTO); + + @RequestMapping(method = RequestMethod.GET, value = "/user/{phone}") + public ResponseResult getUserByPhone(@PathVariable("phone") String phone); +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServicePriceClient.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServicePriceClient.java new file mode 100644 index 0000000..18bb467 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServicePriceClient.java @@ -0,0 +1,16 @@ +package com.mashibing.apipassenger.remote; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.ForecastPriceDTO; +import com.mashibing.internalcommon.responese.ForecastPriceResponse; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +@FeignClient("service-price") +public interface ServicePriceClient { + + @RequestMapping(method = RequestMethod.POST, value = "/forecast-price") + public ResponseResult forecast(@RequestBody ForecastPriceDTO forecastPriceDTO); +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServiceVefificationcodeClient.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServiceVefificationcodeClient.java new file mode 100644 index 0000000..6cfa0fe --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/remote/ServiceVefificationcodeClient.java @@ -0,0 +1,15 @@ +package com.mashibing.apipassenger.remote; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.responese.NumberCodeResponse; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +@FeignClient("service-verificationcode") +public interface ServiceVefificationcodeClient { + + @RequestMapping(method = RequestMethod.GET,value = "/numberCode/{size}") + ResponseResult getNumberCode(@PathVariable("size") int size); +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/ForecastPriceService.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/ForecastPriceService.java new file mode 100644 index 0000000..e221b77 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/ForecastPriceService.java @@ -0,0 +1,47 @@ +package com.mashibing.apipassenger.service; + +import com.google.common.annotations.VisibleForTesting; +import com.mashibing.apipassenger.remote.ServicePriceClient; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.ForecastPriceDTO; +import com.mashibing.internalcommon.responese.ForecastPriceResponse; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +@Slf4j +public class ForecastPriceService { + + @Autowired + ServicePriceClient servicePriceClient; + + /** + * 根据 出发地和目的地经纬度 计算预估价格 + * @param depLongitude + * @param depLatitude + * @param destLongitude + * @param destLatitude + * @return + */ + public ResponseResult forecastPrice(String depLongitude, String depLatitude, String destLongitude, String destLatitude){ + + log.info("出发地经度:"+depLongitude); + log.info("出发地纬度:"+depLatitude); + log.info("目的地经度:"+destLongitude); + log.info("目的地纬度:"+destLatitude); + + log.info("调用计价服务,计算价格"); + ForecastPriceDTO forecastPriceDTO = new ForecastPriceDTO(); + forecastPriceDTO.setDepLongitude(depLongitude); + forecastPriceDTO.setDepLatitude(depLatitude); + forecastPriceDTO.setDestLongitude(destLongitude); + forecastPriceDTO.setDestLatitude(destLatitude); + ResponseResult forecast = servicePriceClient.forecast(forecastPriceDTO); + double price = forecast.getData().getPrice(); + + ForecastPriceResponse forecastPriceResponse = new ForecastPriceResponse(); + forecastPriceResponse.setPrice(price); + return ResponseResult.success(forecastPriceResponse); + } +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/TokenService.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/TokenService.java new file mode 100644 index 0000000..56b04d6 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/TokenService.java @@ -0,0 +1,55 @@ +package com.mashibing.apipassenger.service; + +import com.mashibing.internalcommon.constant.CommonStatusEnum; +import com.mashibing.internalcommon.constant.TokenConstants; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.dto.TokenResult; +import com.mashibing.internalcommon.responese.TokenResponse; +import com.mashibing.internalcommon.util.JwtUtils; +import com.mashibing.internalcommon.util.RedisPrefixUtils; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.StringRedisTemplate; +import org.springframework.stereotype.Service; + +import java.util.concurrent.TimeUnit; + +@Service +public class TokenService { + @Autowired + private StringRedisTemplate stringRedisTemplate; + + public ResponseResult refreshToken(String refreshTokenSrc){ + // 解析 refreshToken + TokenResult tokenResult = JwtUtils.checkToken(refreshTokenSrc); + if (tokenResult == null){ + return ResponseResult.fail(CommonStatusEnum.TOKEN_ERROR.getCode(),CommonStatusEnum.TOKEN_ERROR.getValue()); + } + String phone = tokenResult.getPhone(); + String identity = tokenResult.getIdentity(); + + // 去读取redis中 的refreshToken + String refreshTokenKey = RedisPrefixUtils.generatorTokenKey(phone,identity, TokenConstants.REFRESH_TOKEN_TYPE); + String refreshTokenRedis = stringRedisTemplate.opsForValue().get(refreshTokenKey); + + // 校验refreshToken + if ((StringUtils.isBlank(refreshTokenRedis)) || (!refreshTokenSrc.trim().equals(refreshTokenRedis.trim()))){ + return ResponseResult.fail(CommonStatusEnum.TOKEN_ERROR.getCode(),CommonStatusEnum.TOKEN_ERROR.getValue()); + } + + // 生成双token + String refreshToken = JwtUtils.generatorToken(phone,identity,TokenConstants.REFRESH_TOKEN_TYPE); + String accessToken = JwtUtils.generatorToken(phone,identity,TokenConstants.ACCESS_TOKEN_TYPE); + + String accessTokenKey = RedisPrefixUtils.generatorTokenKey(phone,identity,TokenConstants.ACCESS_TOKEN_TYPE); + + stringRedisTemplate.opsForValue().set(accessTokenKey , accessToken , 30, TimeUnit.DAYS); + stringRedisTemplate.opsForValue().set(refreshTokenKey , refreshToken , 31, TimeUnit.DAYS); + + TokenResponse tokenResponse = new TokenResponse(); + tokenResponse.setRefreshToken(refreshToken); + tokenResponse.setAccessToken(accessToken); + + return ResponseResult.success(tokenResponse); + } +} diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/UserService.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/UserService.java new file mode 100644 index 0000000..9277c74 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/UserService.java @@ -0,0 +1,32 @@ +package com.mashibing.apipassenger.service; + +import com.mashibing.apipassenger.remote.ServicePassengerUserClient; +import com.mashibing.internalcommon.dto.PassengerUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.dto.TokenResult; +import com.mashibing.internalcommon.request.VerificationCodeDTO; +import com.mashibing.internalcommon.util.JwtUtils; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +@Slf4j +public class UserService { + + @Autowired + ServicePassengerUserClient servicePassengerUserClient; + + public ResponseResult getUserByAccessToken(String accessToken) { + log.info("accessToken:" + accessToken); + // 解析accessToken,拿到手机号 + TokenResult tokenResult = JwtUtils.checkToken(accessToken); + String phone = tokenResult.getPhone(); + log.info("手机号:" + phone); + + // 根据手机号查询用户信息 + ResponseResult userByPhone = servicePassengerUserClient.getUserByPhone(phone); + + return ResponseResult.success(userByPhone.getData()); + } +} \ No newline at end of file diff --git a/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/VerificationCodeService.java b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/VerificationCodeService.java new file mode 100644 index 0000000..c9ac9e2 --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/java/com/mashibing/apipassenger/service/VerificationCodeService.java @@ -0,0 +1,104 @@ +package com.mashibing.apipassenger.service; + +import com.mashibing.apipassenger.remote.ServicePassengerUserClient; +import com.mashibing.apipassenger.remote.ServiceVefificationcodeClient; +import com.mashibing.internalcommon.constant.CommonStatusEnum; +import com.mashibing.internalcommon.constant.IdentityConstants; +import com.mashibing.internalcommon.constant.TokenConstants; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.VerificationCodeDTO; +import com.mashibing.internalcommon.responese.NumberCodeResponse; +import com.mashibing.internalcommon.responese.TokenResponse; +import com.mashibing.internalcommon.util.JwtUtils; +import com.mashibing.internalcommon.util.RedisPrefixUtils; +import org.apache.commons.lang.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.redis.core.StringRedisTemplate; +import org.springframework.stereotype.Service; + +import java.util.concurrent.TimeUnit; + +@Service +public class VerificationCodeService { + + @Autowired + private ServiceVefificationcodeClient serviceVefificationcodeClient; + + + + @Autowired + private StringRedisTemplate stringRedisTemplate; + + /** + * 生成验证码 + * @param passengerPhone 手机号 + * @return + */ + public ResponseResult generatorCode(String passengerPhone){ + // 调用验证码服务,获取验证码 + ResponseResult numberCodeResponse = serviceVefificationcodeClient.getNumberCode(6); + int numberCode = numberCodeResponse.getData().getNumberCode(); + + // 存入redis + // key,value,过期时间 + String key = RedisPrefixUtils.generatorKeyByPhone(passengerPhone) ; + // 存入redis + stringRedisTemplate.opsForValue().set(key,numberCode+"",2, TimeUnit.MINUTES); + + // 通过短信服务商,将对应的验证码发送到手机上。阿里短信服务,腾讯短信通,华信,容联 + return ResponseResult.success(""); + + } + + + + @Autowired + private ServicePassengerUserClient servicePassengerUserClient; + + /** + * 校验验证码 + * @param passengerPhone 手机号 + * @param verificationCode 验证码 + * @return + */ + public ResponseResult checkCode(String passengerPhone , String verificationCode){ + // 根据手机号,去redis读取验证码 + // 生成key + String key = RedisPrefixUtils.generatorKeyByPhone(passengerPhone) ; + // 根据key获取value + String codeRedis = stringRedisTemplate.opsForValue().get(key); + System.out.println("redis中的value:"+codeRedis); + + // 校验验证码 + if (StringUtils.isBlank(codeRedis)){ + return ResponseResult.fail(CommonStatusEnum.VERIFICATION_CODE_ERROR.getCode(),CommonStatusEnum.VERIFICATION_CODE_ERROR.getValue()); + } + if (!verificationCode.trim().equals(codeRedis.trim())){ + return ResponseResult.fail(CommonStatusEnum.VERIFICATION_CODE_ERROR.getCode(),CommonStatusEnum.VERIFICATION_CODE_ERROR.getValue()); + } + + // 判断原来是否有用户,并进行对应的处理 + VerificationCodeDTO verificationCodeDTO = new VerificationCodeDTO(); + verificationCodeDTO.setPassengerPhone(passengerPhone); + servicePassengerUserClient.loginOrRegister(verificationCodeDTO); + + // 颁发令牌,不应该用魔法值,用常量 + String accessToken = JwtUtils.generatorToken(passengerPhone, IdentityConstants.PASSENGER_IDENTITY, TokenConstants.ACCESS_TOKEN_TYPE); + String refreshToken = JwtUtils.generatorToken(passengerPhone, IdentityConstants.PASSENGER_IDENTITY ,TokenConstants.REFRESH_TOKEN_TYPE); + + // 将token存到redis当中 + String accessTokenKey = RedisPrefixUtils.generatorTokenKey(passengerPhone , IdentityConstants.PASSENGER_IDENTITY , TokenConstants.ACCESS_TOKEN_TYPE); + stringRedisTemplate.opsForValue().set(accessTokenKey , accessToken , 30, TimeUnit.DAYS); + + String refreshTokenKey = RedisPrefixUtils.generatorTokenKey(passengerPhone , IdentityConstants.PASSENGER_IDENTITY , TokenConstants.REFRESH_TOKEN_TYPE); + stringRedisTemplate.opsForValue().set(refreshTokenKey , refreshToken , 31, TimeUnit.DAYS); + + // 响应 + TokenResponse tokenResponse = new TokenResponse(); + tokenResponse.setAccessToken(accessToken); + tokenResponse.setRefreshToken(refreshToken); + return ResponseResult.success(tokenResponse); + } + + +} \ No newline at end of file diff --git a/online-taxi-public/api-passenger/src/main/resources/application.yml b/online-taxi-public/api-passenger/src/main/resources/application.yml new file mode 100644 index 0000000..584f00c --- /dev/null +++ b/online-taxi-public/api-passenger/src/main/resources/application.yml @@ -0,0 +1,13 @@ +server: + port: 8081 +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + application: + name: api-passenger + redis: + host: 127.0.0.1 + port: 6379 + database: 0 \ No newline at end of file diff --git a/online-taxi-public/internal-common/pom.xml b/online-taxi-public/internal-common/pom.xml new file mode 100644 index 0000000..2828e87 --- /dev/null +++ b/online-taxi-public/internal-common/pom.xml @@ -0,0 +1,14 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + internal-common + + \ No newline at end of file diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/AmapConfigConstants.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/AmapConfigConstants.java new file mode 100644 index 0000000..439f1a8 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/AmapConfigConstants.java @@ -0,0 +1,36 @@ +package com.mashibing.internalcommon.constant; + +public class AmapConfigConstants { + /** + * 路径规划地址 + */ + public static final String DIRECTION_URL = "https://restapi.amap.com/v3/direction/driving"; + + /** + * 行政区域查询 + */ + public static final String DISTRICT_URL = "https://restapi.amap.com/v3/config/district"; + + /** + * 路径规划 json key值 + */ + public static final String STATUS = "status"; + + public static final String ROUTE = "route"; + + public static final String PATHS = "paths"; + + public static final String DISTANCE = "distance"; + + public static final String DURATION = "duration"; + + public static final String DISTRICTS = "districts"; + + public static final String ADCODE = "adcode"; + + public static final String NAME = "name"; + + public static final String LEVEL = "level"; + + public static final String STREET = "street"; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/CommonStatusEnum.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/CommonStatusEnum.java new file mode 100644 index 0000000..4865823 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/CommonStatusEnum.java @@ -0,0 +1,54 @@ +package com.mashibing.internalcommon.constant; + +import lombok.Data; +import lombok.Getter; + + +public enum CommonStatusEnum { + + /** + * 验证码错误提示:1000-1099 + */ + VERIFICATION_CODE_ERROR(1099,"验证码不正确"), + + /** + * Token类提示:1100-1199 + */ + TOKEN_ERROR(1199,"token错误"), + + /** + * 用户提示:1200-1299 + */ + USER_NOT_EXISTS(1200,"当前用户不存在"), + + /** + * 计价规则:1300-1399 + */ + PRICE_RULE_EMPTY(1300,"计价规则不存在"), + + /** + * 地图信息:1400-1499 + */ + MAP_DISTRICT_ERROR(1400,"请求地图错误"), + + + /** + * 成功 + */ + SUCCESS(1,"success"), + /** + * 失败 + */ + FAIL(0,"fail") + + ; + @Getter + private int code; + @Getter + private String value; + + CommonStatusEnum(int code, String value) { + this.code = code; + this.value = value; + } +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/IdentityConstants.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/IdentityConstants.java new file mode 100644 index 0000000..a05026e --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/IdentityConstants.java @@ -0,0 +1,9 @@ +package com.mashibing.internalcommon.constant; + +public class IdentityConstants { + // 乘客身份 + public static final String PASSENGER_IDENTITY = "1"; + + // 司机身份 + public static final String DRIVER_IDENTITY = "2"; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/TokenConstants.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/TokenConstants.java new file mode 100644 index 0000000..dd5d3ae --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/constant/TokenConstants.java @@ -0,0 +1,11 @@ +package com.mashibing.internalcommon.constant; + +/** + * token常量类 + */ +public class TokenConstants { + + public static final String ACCESS_TOKEN_TYPE = "accessToken"; + + public static final String REFRESH_TOKEN_TYPE = "refreshToken"; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/Car.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/Car.java new file mode 100644 index 0000000..ac65849 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/Car.java @@ -0,0 +1,181 @@ +package com.mashibing.internalcommon.dto; + +import lombok.Data; + +import java.io.Serializable; +import java.time.LocalDate; +import java.time.LocalDateTime; + +/** + *

+ * + *

+ * + * @author 晁鹏飞 + * @since 2022-07-28 + */ +@Data +public class Car implements Serializable { + + private static final long serialVersionUID = 1L; + + private Long id; + + /** + * 车辆所在城市 + */ + private String address; + + /** + * 车辆号牌 + */ + private String vehicleNo; + + /** + * 车牌颜色(1:蓝色,2:黄色,3:黑色,4:白色,5:绿色,9:其他) + */ + private String plateColor; + + /** + * 核定载客位 + */ + private Integer seats; + + /** + * 车辆厂牌 + */ + private String brand; + + /** + * 车辆型号 + */ + private String model; + + /** + * 车辆类型 + */ + private String vehicleType; + + /** + * 车辆所有人 + */ + private String ownerName; + + /** + * 车辆颜色(1:白色,2:黑色) + */ + private String vehicleColor; + + /** + * 发动机号 + */ + private String engineId; + + private String vin; + + /** + * 车辆注册日期 + */ + private LocalDate certifyDateA; + + /** + * 燃料类型(1:汽油,2:柴油,3:天然气,4:液化气,5:电动,9:其他) + */ + private String fueType; + + /** + * 发动机排量(毫升) + */ + private String engineDisplace; + + /** + * 车辆运输证发证机构 + */ + private String transAgency; + + /** + * 车辆经验区域 + */ + private String transArea; + + /** + * 车辆运输证有效期起 + */ + private LocalDate transDateStart; + + /** + * 车辆运输证有效期止 + */ + private LocalDate transDateEnd; + + /** + * 车辆初次登记日期 + */ + private LocalDate certifyDateB; + + /** + * 车辆的检修状态(0:未检修,1:已检修,2:未知) + */ + private String fixState; + + /** + * 下次年检时间 + */ + private LocalDate nextFixDate; + + /** + * 年度审验状态(0:未年审,1:年审合格,2:年审不合格) + */ + private String checkState; + + /** + * 发票打印设备序列号 + */ + private String feePrintId; + + /** + * 卫星定位装置品牌 + */ + private String gpsBrand; + + /** + * 卫星型号 + */ + private String gpsModel; + + /** + * 卫星定位设备安装日期 + */ + private LocalDate gpsInstallDate; + + /** + * 报备日期 + */ + private LocalDate registerDate; + + /** + * 服务类型:1:网络预约出租车,2:巡游出租车,3:私人小客车合乘 + */ + private Integer commercialType; + + /** + * 运价编码 关联计价规则 + */ + private String fareType; + + /** + * 状态:0:有效,1:失效 + */ + private Boolean state; + + /** + * 创建时间 + */ + private LocalDateTime gmtCreate; + + /** + * 修改时间 + */ + private LocalDateTime gmtModified; + +} \ No newline at end of file diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/DicDistrict.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/DicDistrict.java new file mode 100644 index 0000000..1abe0e8 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/DicDistrict.java @@ -0,0 +1,15 @@ +package com.mashibing.internalcommon.dto; + +import lombok.Data; + +@Data +public class DicDistrict { + + private String addressCode; + + private String addressName; + + private String parentAddressCode; + + private Integer level; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/DriverUser.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/DriverUser.java new file mode 100644 index 0000000..9b88ada --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/DriverUser.java @@ -0,0 +1,42 @@ +package com.mashibing.internalcommon.dto; + +import lombok.Data; + +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.util.Date; + +@Data +public class DriverUser { + + private Long id; + private String address; + private String driverName; + private String driverPhone; + private Integer driverGender; + private LocalDate driverBirthday; + private String driverNation; + private String driverContactAddress; + private String licenseId; + + private LocalDate getDriverLicenseDate; + private LocalDate driverLicenseOn; + private LocalDate driverLicenseOff; + private Integer taxiDriver; + private String certificateNo; + private String networkCarIssueOrganization; + private LocalDate networkCarIssueDate; + private LocalDate getNetworkCarProofDate; + private LocalDate networkCarProofOn; + private LocalDate networkCarProofOff; + private LocalDate registerDate; + private Integer commercialType; + private String contractCompany; + private LocalDate contractOn; + private LocalDate contractOff; + private Integer state; + + + private LocalDateTime gmtCreate; + private LocalDateTime gmtModified; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/PassengerUser.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/PassengerUser.java new file mode 100644 index 0000000..ab9982e --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/PassengerUser.java @@ -0,0 +1,25 @@ +package com.mashibing.internalcommon.dto; + +import lombok.Data; + +import java.time.LocalDateTime; + +@Data +public class PassengerUser { + + private Long id; + + private LocalDateTime gmtCreate; + + private LocalDateTime gmtModified; + + private String passengerPhone; + + private String passengerName; + + private byte passengerGender; + + private byte state; + + private String profilePhoto; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/PriceRule.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/PriceRule.java new file mode 100644 index 0000000..67a445c --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/PriceRule.java @@ -0,0 +1,19 @@ +package com.mashibing.internalcommon.dto; + +import lombok.Data; + +@Data +public class PriceRule { + + private String cityCode; + + private String vehicleType; + + private Double startFare; + + private Integer startMile; + + private Double unitPricePerMile; + + private Double unitPricePerMinute; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/ResponseResult.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/ResponseResult.java new file mode 100644 index 0000000..e441f6e --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/ResponseResult.java @@ -0,0 +1,69 @@ +package com.mashibing.internalcommon.dto; + + +import com.mashibing.internalcommon.constant.CommonStatusEnum; +import com.sun.javafx.logging.PulseLogger; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.awt.print.PrinterAbortException; + +@Data +@Accessors(chain = true) +public class ResponseResult { + + private int code; + private String message; + private T data; + + /** + * 成功响应的方法 + * @param + * @return + */ + public static ResponseResult success(){ + return new ResponseResult().setCode(CommonStatusEnum.SUCCESS.getCode()).setMessage(CommonStatusEnum.SUCCESS.getValue()); + } + + /** + * 成功响应的方法 + * @param data + * @param + * @return + */ + public static ResponseResult success(T data){ + return new ResponseResult().setCode(CommonStatusEnum.SUCCESS.getCode()).setMessage(CommonStatusEnum.SUCCESS.getValue()).setData(data); + } + + /** + * 失败:统一的失败 + * @param data + * @param + * @return + */ + public static ResponseResult fail(T data){ + return new ResponseResult().setData(data); + } + + /** + * 失败:自定义失败 错误码和提示信息 + * @param code + * @param message + * @return + */ + public static ResponseResult fail(int code,String message){ + return new ResponseResult().setCode(code).setMessage(message); + } + + /** + * 失败:自定义失败 错误码、提示信息、具体错误 + * @param code + * @param message + * @param data + * @return + */ + public static ResponseResult fail(int code,String message,String data){ + return new ResponseResult().setCode(code).setMessage(message).setData(data); + } + +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/TokenResult.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/TokenResult.java new file mode 100644 index 0000000..746900c --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/dto/TokenResult.java @@ -0,0 +1,11 @@ +package com.mashibing.internalcommon.dto; + +import lombok.Data; + +@Data +public class TokenResult { + + private String phone; + + private String identity; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/request/ForecastPriceDTO.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/request/ForecastPriceDTO.java new file mode 100644 index 0000000..e2ecaf7 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/request/ForecastPriceDTO.java @@ -0,0 +1,15 @@ +package com.mashibing.internalcommon.request; + +import lombok.Data; + +@Data +public class ForecastPriceDTO { + + private String depLongitude; + + private String depLatitude; + + private String destLongitude; + + private String destLatitude; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/request/VerificationCodeDTO.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/request/VerificationCodeDTO.java new file mode 100644 index 0000000..24a6f04 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/request/VerificationCodeDTO.java @@ -0,0 +1,13 @@ +package com.mashibing.internalcommon.request; + +import lombok.Data; + +@Data +public class VerificationCodeDTO { + + private String passengerPhone; + + private String verificationCode; + + +} \ No newline at end of file diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/DirectionResponse.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/DirectionResponse.java new file mode 100644 index 0000000..ca83498 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/DirectionResponse.java @@ -0,0 +1,11 @@ +package com.mashibing.internalcommon.responese; + +import lombok.Data; + +@Data +public class DirectionResponse { + + private Integer distance; + + private Integer duration; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/ForecastPriceResponse.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/ForecastPriceResponse.java new file mode 100644 index 0000000..65620f7 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/ForecastPriceResponse.java @@ -0,0 +1,8 @@ +package com.mashibing.internalcommon.responese; + +import lombok.Data; + +@Data +public class ForecastPriceResponse { + private double price; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/NumberCodeResponse.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/NumberCodeResponse.java new file mode 100644 index 0000000..e5a1a90 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/NumberCodeResponse.java @@ -0,0 +1,9 @@ +package com.mashibing.internalcommon.responese; + +import lombok.Data; + +@Data +public class NumberCodeResponse { + + private int numberCode; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/TokenResponse.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/TokenResponse.java new file mode 100644 index 0000000..b1c6968 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/responese/TokenResponse.java @@ -0,0 +1,11 @@ +package com.mashibing.internalcommon.responese; + +import lombok.Data; + +@Data +public class TokenResponse { + + private String accessToken; + + private String refreshToken; +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/BigDecimalUtils.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/BigDecimalUtils.java new file mode 100644 index 0000000..982a8f7 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/BigDecimalUtils.java @@ -0,0 +1,59 @@ +package com.mashibing.internalcommon.util; + +import java.math.BigDecimal; + +public class BigDecimalUtils { + + /** + * 加法 + * @param v1 + * @param v2 + * @return + */ + public static double add(double v1 , double v2){ + BigDecimal b1 = BigDecimal.valueOf(v1); + BigDecimal b2 = BigDecimal.valueOf(v2); + + return b1.add(b2).doubleValue(); + } + + /** + * 减法 + * @param v1 + * @param v2 + * @return + */ + public static double substract(double v1,double v2){ + BigDecimal b1 = BigDecimal.valueOf(v1); + BigDecimal b2 = BigDecimal.valueOf(v2); + return b1.subtract(b2).doubleValue(); + } + + /** + * 乘法 + * @param v1 + * @param v2 + * @return + */ + public static double multiply(double v1,double v2){ + BigDecimal b1 = BigDecimal.valueOf(v1); + BigDecimal b2 = BigDecimal.valueOf(v2); + return b1.multiply(b2).doubleValue(); + + } + /** + * 除法 + * @param v1 + * @param v2 + * @return + */ + public static double divide(int v1, int v2){ + if (v2 <= 0){ + throw new IllegalArgumentException("除数非法"); + } + + BigDecimal b1 = BigDecimal.valueOf(v1); + BigDecimal b2 = BigDecimal.valueOf(v2); + return b1.divide(b2,2,BigDecimal.ROUND_HALF_UP).doubleValue(); + } +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/JwtUtils.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/JwtUtils.java new file mode 100644 index 0000000..5d06a87 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/JwtUtils.java @@ -0,0 +1,97 @@ +package com.mashibing.internalcommon.util; + + +import com.auth0.jwt.JWT; +import com.auth0.jwt.JWTCreator; +import com.auth0.jwt.algorithms.Algorithm; +import com.auth0.jwt.exceptions.AlgorithmMismatchException; +import com.auth0.jwt.exceptions.SignatureVerificationException; +import com.auth0.jwt.exceptions.TokenExpiredException; +import com.auth0.jwt.interfaces.Claim; +import com.auth0.jwt.interfaces.DecodedJWT; +import com.mashibing.internalcommon.dto.TokenResult; + +import java.util.Calendar; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +public class JwtUtils { + + // 盐 + private static final String SIGN = "CPFmsb!@#$$"; + + private static final String JWT_KEY_PHONE = "phone"; + + // 乘客是1,司机是2 + private static final String JWT_KEY_IDENTITY = "identity"; + + // token类型 + private static final String JWT_TOKEN_TYPE = "tokenType"; + + private static final String JWT_TOKEN_TIME = "tokenTime"; + + // 生成token + public static String generatorToken(String passengerPhone , String identity , String tokenType) { + Map map = new HashMap<>(); + map.put(JWT_KEY_PHONE,passengerPhone); + map.put(JWT_KEY_IDENTITY, identity); + map.put(JWT_TOKEN_TYPE, tokenType); + // 防止每次生成的token一样。 + map.put(JWT_TOKEN_TIME, Calendar.getInstance().getTime().toString()); + + JWTCreator.Builder builder = JWT.create(); + // 整合map + map.forEach( + (k,v) -> { + builder.withClaim(k,v); + } + ); + // 整合过期时间 +// builder.withExpiresAt(date); + + // 生成 token + String sign = builder.sign(Algorithm.HMAC256(SIGN)); + + return sign; + } + + + // 解析token + public static TokenResult parseToken(String token){ + DecodedJWT verify = JWT.require(Algorithm.HMAC256(SIGN)).build().verify(token); + String phone = verify.getClaim(JWT_KEY_PHONE).asString(); + String identity = verify.getClaim(JWT_KEY_IDENTITY).asString(); + + TokenResult tokenResult = new TokenResult(); + tokenResult.setPhone(phone); + tokenResult.setIdentity(identity); + return tokenResult; + + } + + /** + * 校验token,主要判断token是否异常 + * @param token + * @return + */ + public static TokenResult checkToken(String token){ + TokenResult tokenResult = null; + try { + tokenResult = JwtUtils.parseToken(token); + }catch (Exception e){ + + } + return tokenResult; + } + + public static void main(String[] args) { + + String s = generatorToken("13910733521" , "1" , "accessToken"); + System.out.println("生成的token:"+s); + System.out.println("解析-----------------"); + TokenResult tokenResult = parseToken(s); + System.out.println("手机号:"+tokenResult.getPhone()); + System.out.println("身份:"+tokenResult.getIdentity()); + } +} diff --git a/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/RedisPrefixUtils.java b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/RedisPrefixUtils.java new file mode 100644 index 0000000..7970c48 --- /dev/null +++ b/online-taxi-public/internal-common/src/main/java/com/mashibing/internalcommon/util/RedisPrefixUtils.java @@ -0,0 +1,29 @@ +package com.mashibing.internalcommon.util; + +public class RedisPrefixUtils { + + // 乘客验证码的前缀 + public static String verificationCodePrefix = "passenger-verification-code-"; + + // token存储的前缀 + public static String tokenPrefix = "token-"; + + /** + * 根据手机号,生成key + * @param passengerPhone + * @return + */ + public static String generatorKeyByPhone(String passengerPhone){ + return verificationCodePrefix + passengerPhone; + } + + /** + * 根据手机号和身份标识,生成token + * @param phone + * @param identity + * @return + */ + public static String generatorTokenKey(String phone , String identity , String tokenType){ + return tokenPrefix + phone + "-" + identity + "-" + tokenType; + } +} diff --git a/online-taxi-public/pom.xml b/online-taxi-public/pom.xml new file mode 100644 index 0000000..249ecc4 --- /dev/null +++ b/online-taxi-public/pom.xml @@ -0,0 +1,86 @@ + + + 4.0.0 + + + org.springframework.boot + spring-boot-starter-parent + 2.4.13 + + + + com.mashibing + online-taxi-public + 1.0-SNAPSHOT + + + api-passenger + internal-common + service-passenger-user + service-price + serice-map + service-driver-user + api-boss + api-driver + + + pom + + + 8 + 8 + + + + + net.sf.json-lib + json-lib + 2.4 + jdk15 + + + + + org.projectlombok + lombok + 1.18.24 + + + + com.mashibing + internal-common + 1.0-SNAPSHOT + + + + com.auth0 + java-jwt + 3.14.0 + + + + + + + + com.alibaba.cloud + spring-cloud-alibaba-dependencies + 2021.1 + pom + import + + + + org.springframework.cloud + spring-cloud-dependencies + 2020.0.1 + pom + import + + + + + + \ No newline at end of file diff --git a/online-taxi-public/serice-map/pom.xml b/online-taxi-public/serice-map/pom.xml new file mode 100644 index 0000000..6dc0325 --- /dev/null +++ b/online-taxi-public/serice-map/pom.xml @@ -0,0 +1,36 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + serice-map + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + com.baomidou + mybatis-plus-boot-starter + 3.4.3.1 + + + + mysql + mysql-connector-java + + + \ No newline at end of file diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/ServiceMapApplication.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/ServiceMapApplication.java new file mode 100644 index 0000000..2d221f7 --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/ServiceMapApplication.java @@ -0,0 +1,22 @@ +package com.mashibing.servicemap; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.context.annotation.Bean; +import org.springframework.web.client.RestTemplate; + +@SpringBootApplication +@EnableDiscoveryClient +@MapperScan("com.mashibing.servicemap.mapper") +public class ServiceMapApplication { + public static void main(String[] args) { + SpringApplication.run(ServiceMapApplication.class); + } + + @Bean + public RestTemplate restTemplate(){ + return new RestTemplate(); + } +} diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/DicDistrictController.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/DicDistrictController.java new file mode 100644 index 0000000..03cf7f7 --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/DicDistrictController.java @@ -0,0 +1,20 @@ +package com.mashibing.servicemap.controller; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.servicemap.service.DicDistrictService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class DicDistrictController { + + @Autowired + private DicDistrictService dicDistrictService; + + @GetMapping("/dic-district") + public ResponseResult initDicDistrict(String keywords){ + + return dicDistrictService.initDicDistrict(keywords); + } +} diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/DriectionController.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/DriectionController.java new file mode 100644 index 0000000..f7ea9e8 --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/DriectionController.java @@ -0,0 +1,26 @@ +package com.mashibing.servicemap.controller; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.ForecastPriceDTO; +import com.mashibing.servicemap.service.DirectionService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("/direction") +public class DriectionController { + + @Autowired + private DirectionService directionService; + + @GetMapping("/driving") + public ResponseResult driving(@RequestBody ForecastPriceDTO forecastPriceDTO){ + + String depLongitude = forecastPriceDTO.getDepLongitude(); + String depLatitude = forecastPriceDTO.getDepLatitude(); + String destLongitude = forecastPriceDTO.getDestLongitude(); + String destLatitude = forecastPriceDTO.getDestLatitude(); + + return directionService.driving(depLongitude,depLatitude,destLongitude,destLatitude); + } +} diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/TestController.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/TestController.java new file mode 100644 index 0000000..0b0b1a7 --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/controller/TestController.java @@ -0,0 +1,34 @@ +package com.mashibing.servicemap.controller; + +import com.mashibing.internalcommon.dto.DicDistrict; +import com.mashibing.servicemap.mapper.DicDistrictMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@RestController +public class TestController { + @GetMapping("/test") + public String test(){ + return "service map"; + } + + @Autowired + DicDistrictMapper mapper; + + @GetMapping("/test-map") + public String testMap(){ + Map map = new HashMap<>(); + map.put("address_code","110000"); + List dicDistricts = mapper.selectByMap(map); + + + System.out.println(dicDistricts); + + return "test-map"; + } +} diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/mapper/DicDistrictMapper.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/mapper/DicDistrictMapper.java new file mode 100644 index 0000000..2146878 --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/mapper/DicDistrictMapper.java @@ -0,0 +1,9 @@ +package com.mashibing.servicemap.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mashibing.internalcommon.dto.DicDistrict; +import org.springframework.stereotype.Repository; + +@Repository +public interface DicDistrictMapper extends BaseMapper { +} diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/remote/MapDicDistrictClient.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/remote/MapDicDistrictClient.java new file mode 100644 index 0000000..3a54b44 --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/remote/MapDicDistrictClient.java @@ -0,0 +1,37 @@ +package com.mashibing.servicemap.remote; + +import com.mashibing.internalcommon.constant.AmapConfigConstants; +import com.mashibing.internalcommon.dto.ResponseResult; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Service; +import org.springframework.web.client.RestTemplate; + +@Service +public class MapDicDistrictClient { + + @Value("${amap.key}") + private String amapKey; + + @Autowired + private RestTemplate restTemplate; + + public String dicDistrict(String keywords){ + + // &key=<用户的key> + // 拼装请求的url + StringBuilder url = new StringBuilder(); + url.append(AmapConfigConstants.DISTRICT_URL); + url.append("?"); + url.append("keywords="+keywords); + url.append("&"); + url.append("subdistrict=3"); + url.append("&"); + url.append("key="+amapKey); + + ResponseEntity forEntity = restTemplate.getForEntity(url.toString(), String.class); + + return forEntity.getBody(); + } +} diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/remote/MapDirectionClient.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/remote/MapDirectionClient.java new file mode 100644 index 0000000..87a744f --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/remote/MapDirectionClient.java @@ -0,0 +1,82 @@ +package com.mashibing.servicemap.remote; + +import com.mashibing.internalcommon.constant.AmapConfigConstants; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.responese.DirectionResponse; +import lombok.extern.slf4j.Slf4j; +import net.sf.json.JSONArray; +import net.sf.json.JSONObject; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.http.ResponseEntity; +import org.springframework.stereotype.Service; +import org.springframework.web.client.RestTemplate; + +@Service +@Slf4j +public class MapDirectionClient { + + @Value("${amap.key}") + private String amapKey; + + @Autowired + private RestTemplate restTemplate; + + public DirectionResponse direction(String depLongitude, String depLatitude, String destLongitude, String destLatitude){ + // 组装请求调用url + StringBuilder urlBuild = new StringBuilder(); + urlBuild.append(AmapConfigConstants.DIRECTION_URL); + urlBuild.append("?"); + urlBuild.append("origin="+depLongitude+","+depLatitude); + urlBuild.append("&"); + urlBuild.append("destination="+destLongitude+","+destLatitude); + urlBuild.append("&"); + urlBuild.append("extensions=base"); + urlBuild.append("&"); + urlBuild.append("output=json"); + urlBuild.append("&"); + urlBuild.append("key="+amapKey); + log.info(urlBuild.toString()); + // 调用高德接口 + ResponseEntity directionEntity = restTemplate.getForEntity(urlBuild.toString(), String.class); + String directionString = directionEntity.getBody(); + log.info("高德地图:路径规划,返回信息:"+directionString); + // 解析接口 + DirectionResponse directionResponse = parseDirectionEntity(directionString); + + + return directionResponse; + } + + private DirectionResponse parseDirectionEntity(String directionString){ + DirectionResponse directionResponse = null; + try { + // 最外层 + JSONObject result = JSONObject.fromObject(directionString); + if(result.has(AmapConfigConstants.STATUS)) { + int status = result.getInt(AmapConfigConstants.STATUS); + if (status == 1){ + if (result.has(AmapConfigConstants.ROUTE)){ + JSONObject routeObject = result.getJSONObject(AmapConfigConstants.ROUTE); + JSONArray pathsArray = routeObject.getJSONArray(AmapConfigConstants.PATHS); + JSONObject pathObject = pathsArray.getJSONObject(0); + directionResponse = new DirectionResponse(); + + if (pathObject.has(AmapConfigConstants.DISTANCE)){ + int distance = pathObject.getInt(AmapConfigConstants.DISTANCE); + directionResponse.setDistance(distance); + } + if (pathObject.has(AmapConfigConstants.DURATION)){ + int duration = pathObject.getInt(AmapConfigConstants.DURATION); + directionResponse.setDuration(duration); + } + } + } + } + + }catch (Exception e){ + + } + return directionResponse; + } +} diff --git a/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/service/DicDistrictService.java b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/service/DicDistrictService.java new file mode 100644 index 0000000..c9e3b94 --- /dev/null +++ b/online-taxi-public/serice-map/src/main/java/com/mashibing/servicemap/service/DicDistrictService.java @@ -0,0 +1,116 @@ +package com.mashibing.servicemap.service; + +import com.mashibing.internalcommon.constant.AmapConfigConstants; +import com.mashibing.internalcommon.constant.CommonStatusEnum; +import com.mashibing.internalcommon.dto.DicDistrict; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.servicemap.mapper.DicDistrictMapper; +import com.mashibing.servicemap.remote.MapDicDistrictClient; +import net.sf.json.JSONArray; +import net.sf.json.JSONObject; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; + +@Service +public class DicDistrictService { + + @Autowired + private MapDicDistrictClient mapDicDistrictClient; + + @Autowired + private DicDistrictMapper dicDistrictMapper; + + public ResponseResult initDicDistrict(String keywords){ + + // 请求地图 + String dicDistrictResult = mapDicDistrictClient.dicDistrict(keywords); + System.out.println(dicDistrictResult); + // 解析结果 + JSONObject dicDistrictJsonObject = JSONObject.fromObject(dicDistrictResult); + int status = dicDistrictJsonObject.getInt(AmapConfigConstants.STATUS); + if (status != 1){ + return ResponseResult.fail(CommonStatusEnum.MAP_DISTRICT_ERROR.getCode(),CommonStatusEnum.MAP_DISTRICT_ERROR.getValue()); + } + JSONArray countryJsonArray = dicDistrictJsonObject.getJSONArray(AmapConfigConstants.DISTRICTS); + for (int country=0;country + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + service-driver-user + + + + org.springframework.boot + spring-boot-starter-web + + + + com.baomidou + mybatis-plus-boot-starter + 3.4.3.1 + + + + mysql + mysql-connector-java + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + com.baomidou + mybatis-plus-generator + 3.5.1 + + + + org.freemarker + freemarker + 2.3.28 + + + + + + + \ No newline at end of file diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/ServiceDriverUserApplication.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/ServiceDriverUserApplication.java new file mode 100644 index 0000000..ba454eb --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/ServiceDriverUserApplication.java @@ -0,0 +1,19 @@ +package com.mashibing.serviceDriverUser; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.web.client.RestTemplate; + +@SpringBootApplication +@EnableDiscoveryClient +@MapperScan("com.mashibing.serviceDriverUser.mapper") +public class ServiceDriverUserApplication { + public static void main(String[] args) { + SpringApplication.run(ServiceDriverUserApplication.class); + } + +} + + diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/CarController.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/CarController.java new file mode 100644 index 0000000..d647f35 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/CarController.java @@ -0,0 +1,20 @@ +package com.mashibing.serviceDriverUser.controller; + + +import org.springframework.web.bind.annotation.RequestMapping; + +import org.springframework.stereotype.Controller; + +/** + *

+ * 前端控制器 + *

+ * + * @author 晁鹏飞 + * @since 2022-07-28 + */ +@Controller +@RequestMapping("/car") +public class CarController { + +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/TestController.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/TestController.java new file mode 100644 index 0000000..f96d642 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/TestController.java @@ -0,0 +1,30 @@ +package com.mashibing.serviceDriverUser.controller; + +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.serviceDriverUser.mapper.DriverUserMapper; +import com.mashibing.serviceDriverUser.service.DriverUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController { + + @Autowired + private DriverUserService driverUserService; + + @GetMapping("/test") + public String test(){ + return "service-driver-user"; + } + + @GetMapping("/test-db") + public ResponseResult testDb(){ + return driverUserService.testGetDriverUser(); + } + + +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/UserController.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/UserController.java new file mode 100644 index 0000000..172267b --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/controller/UserController.java @@ -0,0 +1,32 @@ +package com.mashibing.serviceDriverUser.controller; + +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.serviceDriverUser.service.DriverUserService; +import lombok.extern.slf4j.Slf4j; +import net.sf.json.JSONObject; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +@Slf4j +public class UserController { + + @Autowired + private DriverUserService driverUserService; + + @PostMapping("/user") + public ResponseResult addUser(@RequestBody DriverUser driverUser){ + log.info(JSONObject.fromObject(driverUser).toString()); + return driverUserService.addDriverUser(driverUser); + } + + @PutMapping("/user") + public ResponseResult updateUser(@RequestBody DriverUser driverUser){ + log.info(JSONObject.fromObject(driverUser).toString()); + return driverUserService.updateDriverUser(driverUser); + } +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/generator/MysqlGenerator.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/generator/MysqlGenerator.java new file mode 100644 index 0000000..6e48aa2 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/generator/MysqlGenerator.java @@ -0,0 +1,31 @@ +package com.mashibing.serviceDriverUser.generator; + +import com.baomidou.mybatisplus.generator.FastAutoGenerator; +import com.baomidou.mybatisplus.generator.config.OutputFile; +import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine; + +import java.util.Collections; + +/** + * 自动生成代码工具类 + */ +public class MysqlGenerator { + public static void main(String[] args) { + + FastAutoGenerator.create("jdbc:mysql://localhost:3306/service-driver-user?characterEncoding=utf-8&serverTimezone=GMT%2B8", + "root","root") + .globalConfig(builder -> { + builder.author("晁鹏飞").fileOverride().outputDir("D:\\00-项目\\gitee\\online-taxi-2022-public\\online-taxi-public\\service-driver-user\\src\\main\\java"); + }) + .packageConfig(builder -> { + builder.parent("com.mashibing.serviceDriverUser").pathInfo(Collections.singletonMap(OutputFile.mapperXml, + "D:\\00-项目\\gitee\\online-taxi-2022-public\\online-taxi-public\\service-driver-user\\src\\main\\java\\com\\mashibing\\serviceDriverUser\\mapper")); + }) + .strategyConfig(builder -> { + builder.addInclude("car"); + + }) + .templateEngine(new FreemarkerTemplateEngine()) + .execute(); + } +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/CarMapper.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/CarMapper.java new file mode 100644 index 0000000..5681840 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/CarMapper.java @@ -0,0 +1,17 @@ +package com.mashibing.serviceDriverUser.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Repository; + +/** + *

+ * Mapper 接口 + *

+ * + * @author 晁鹏飞 + * @since 2022-07-28 + */ +@Repository +public interface CarMapper extends BaseMapper { + +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/CarMapper.xml b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/CarMapper.xml new file mode 100644 index 0000000..e40d63c --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/CarMapper.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/DriverUserMapper.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/DriverUserMapper.java new file mode 100644 index 0000000..c54751e --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/mapper/DriverUserMapper.java @@ -0,0 +1,9 @@ +package com.mashibing.serviceDriverUser.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mashibing.internalcommon.dto.DriverUser; +import org.springframework.stereotype.Repository; + +@Repository +public interface DriverUserMapper extends BaseMapper { +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/service/CarService.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/service/CarService.java new file mode 100644 index 0000000..5b72fd4 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/service/CarService.java @@ -0,0 +1,7 @@ +package com.mashibing.serviceDriverUser.service; + +import org.springframework.stereotype.Service; + +@Service +public class CarService { +} diff --git a/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/service/DriverUserService.java b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/service/DriverUserService.java new file mode 100644 index 0000000..016518a --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/java/com/mashibing/serviceDriverUser/service/DriverUserService.java @@ -0,0 +1,43 @@ +package com.mashibing.serviceDriverUser.service; + +import com.mashibing.internalcommon.dto.DriverUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.serviceDriverUser.mapper.DriverUserMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.time.LocalDate; +import java.time.LocalDateTime; + +@Service +public class DriverUserService { + + @Autowired + private DriverUserMapper driverUserMapper; + + public ResponseResult testGetDriverUser(){ + + DriverUser driverUser = driverUserMapper.selectById(1); + return ResponseResult.success(driverUser); + + } + + public ResponseResult addDriverUser(DriverUser driverUser){ + LocalDateTime now = LocalDateTime.now(); + driverUser.setGmtCreate(now); + driverUser.setGmtModified(now); + + + driverUserMapper.insert(driverUser); + + return ResponseResult.success(""); + } + + public ResponseResult updateDriverUser(DriverUser driverUser){ + LocalDateTime now = LocalDateTime.now(); + driverUser.setGmtModified(now); + driverUserMapper.updateById(driverUser); + return ResponseResult.success(""); + } + +} \ No newline at end of file diff --git a/online-taxi-public/service-driver-user/src/main/resources/application.yml b/online-taxi-public/service-driver-user/src/main/resources/application.yml new file mode 100644 index 0000000..ab21034 --- /dev/null +++ b/online-taxi-public/service-driver-user/src/main/resources/application.yml @@ -0,0 +1,16 @@ +server: + port: 8086 + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/service-driver-user?characterEncoding=utf-8&serverTimezone=GMT%2B8 + username: root + password: root + application: + name: service-driver-user + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + diff --git a/online-taxi-public/service-passenger-user/pom.xml b/online-taxi-public/service-passenger-user/pom.xml new file mode 100644 index 0000000..9e8ba6d --- /dev/null +++ b/online-taxi-public/service-passenger-user/pom.xml @@ -0,0 +1,39 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + service-passenger-user + + + + org.springframework.boot + spring-boot-starter-web + + + + + com.baomidou + mybatis-plus-boot-starter + 3.4.3.1 + + + + mysql + mysql-connector-java + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + \ No newline at end of file diff --git a/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.java b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.java new file mode 100644 index 0000000..9174276 --- /dev/null +++ b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.java @@ -0,0 +1,15 @@ +package com.mashibing.servicepassengeruser; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; + +@SpringBootApplication +@EnableDiscoveryClient +@MapperScan("com.mashibing.servicepassengeruser.mapper") +public class ServicePassengerUserApplication { + public static void main(String[] args) { + SpringApplication.run(ServicePassengerUserApplication.class); + } +} \ No newline at end of file diff --git a/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/TestController.java b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/TestController.java new file mode 100644 index 0000000..4df33da --- /dev/null +++ b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/TestController.java @@ -0,0 +1,13 @@ +package com.mashibing.servicepassengeruser.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController { + + @GetMapping + public String test(){ + return "service-passenger-user"; + } +} diff --git a/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/UserController.java b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/UserController.java new file mode 100644 index 0000000..7eae578 --- /dev/null +++ b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/controller/UserController.java @@ -0,0 +1,29 @@ +package com.mashibing.servicepassengeruser.controller; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.VerificationCodeDTO; +import com.mashibing.servicepassengeruser.service.UserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +public class UserController { + + @Autowired + private UserService userService; + + @PostMapping("/user") + public ResponseResult loginOrRegister(@RequestBody VerificationCodeDTO verificationCodeDTO){ + + String passengerPhone = verificationCodeDTO.getPassengerPhone(); + System.out.println("手机号:"+passengerPhone); + return userService.loginOrRegister(passengerPhone); + + } + + @GetMapping("/user/{phone}") + public ResponseResult getUser(@PathVariable("phone") String passengerPhone){ + System.out.println("service-passenger-user: phone:"+passengerPhone); + return userService.getUserByPhone(passengerPhone); + } +} \ No newline at end of file diff --git a/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/mapper/PassengerUserMapper.java b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/mapper/PassengerUserMapper.java new file mode 100644 index 0000000..90c5a13 --- /dev/null +++ b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/mapper/PassengerUserMapper.java @@ -0,0 +1,9 @@ +package com.mashibing.servicepassengeruser.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mashibing.internalcommon.dto.PassengerUser; +import org.springframework.stereotype.Repository; + +@Repository +public interface PassengerUserMapper extends BaseMapper { +} diff --git a/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/service/UserService.java b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/service/UserService.java new file mode 100644 index 0000000..e33d299 --- /dev/null +++ b/online-taxi-public/service-passenger-user/src/main/java/com/mashibing/servicepassengeruser/service/UserService.java @@ -0,0 +1,69 @@ +package com.mashibing.servicepassengeruser.service; + + +import com.mashibing.internalcommon.constant.CommonStatusEnum; +import com.mashibing.internalcommon.dto.PassengerUser; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.servicepassengeruser.mapper.PassengerUserMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.time.LocalDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Service +public class UserService { + + @Autowired + private PassengerUserMapper passengerUserMapper; + + public ResponseResult loginOrRegister(String passengerPhone){ + System.out.println("user service被调用,手机号:"+passengerPhone); + + // 根据手机号查询用户信息 + Map map = new HashMap<>(); + map.put("passenger_phone",passengerPhone); + List passengerUsers = passengerUserMapper.selectByMap(map); + + // 判断用户信息是否存在 + if (passengerUsers.size() == 0){ + // 如果不存在,插入用户信息 + PassengerUser passengerUser = new PassengerUser(); + passengerUser.setPassengerName("张三"); + passengerUser.setPassengerGender((byte) 0); + passengerUser.setPassengerPhone(passengerPhone); + passengerUser.setState((byte) 0); + + LocalDateTime now = LocalDateTime.now(); + passengerUser.setGmtCreate(now); + passengerUser.setGmtModified(now); + + passengerUserMapper.insert(passengerUser); + } + + + + return ResponseResult.success(); + } + + /** + * 根据手机号查询用户信息 + * @param passengerPhone + * @return + */ + public ResponseResult getUserByPhone(String passengerPhone){ + // 根据手机号查询用户信息 + Map map = new HashMap<>(); + map.put("passenger_phone",passengerPhone); + List passengerUsers = passengerUserMapper.selectByMap(map); + if (passengerUsers.size() == 0){ + return ResponseResult.fail(CommonStatusEnum.USER_NOT_EXISTS.getCode(),CommonStatusEnum.USER_NOT_EXISTS.getValue()); + } else { + PassengerUser passengerUser = passengerUsers.get(0); + return ResponseResult.success(passengerUser); + + } + } +} \ No newline at end of file diff --git a/online-taxi-public/service-passenger-user/src/main/resources/application.yml b/online-taxi-public/service-passenger-user/src/main/resources/application.yml new file mode 100644 index 0000000..f094ebc --- /dev/null +++ b/online-taxi-public/service-passenger-user/src/main/resources/application.yml @@ -0,0 +1,16 @@ +server: + port: 8083 + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/service-passenger-user?characterEncoding=utf-8&serverTimezone=GMT%2B8 + username: root + password: root + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + + application: + name: service-passenger-user \ No newline at end of file diff --git a/online-taxi-public/service-passenger-user/target/classes/application.yml b/online-taxi-public/service-passenger-user/target/classes/application.yml new file mode 100644 index 0000000..f094ebc --- /dev/null +++ b/online-taxi-public/service-passenger-user/target/classes/application.yml @@ -0,0 +1,16 @@ +server: + port: 8083 + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/service-passenger-user?characterEncoding=utf-8&serverTimezone=GMT%2B8 + username: root + password: root + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + + application: + name: service-passenger-user \ No newline at end of file diff --git a/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.class b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.class new file mode 100644 index 0000000..bc5ca67 Binary files /dev/null and b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/ServicePassengerUserApplication.class differ diff --git a/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/controller/TestController.class b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/controller/TestController.class new file mode 100644 index 0000000..fc6fdc1 Binary files /dev/null and b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/controller/TestController.class differ diff --git a/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/controller/UserController.class b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/controller/UserController.class new file mode 100644 index 0000000..1f0c9bf Binary files /dev/null and b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/controller/UserController.class differ diff --git a/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/mapper/PassengerUserMapper.class b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/mapper/PassengerUserMapper.class new file mode 100644 index 0000000..5e242cb Binary files /dev/null and b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/mapper/PassengerUserMapper.class differ diff --git a/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/service/UserService.class b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/service/UserService.class new file mode 100644 index 0000000..74d9f6f Binary files /dev/null and b/online-taxi-public/service-passenger-user/target/classes/com/mashibing/servicepassengeruser/service/UserService.class differ diff --git a/online-taxi-public/service-price/pom.xml b/online-taxi-public/service-price/pom.xml new file mode 100644 index 0000000..e9b0288 --- /dev/null +++ b/online-taxi-public/service-price/pom.xml @@ -0,0 +1,54 @@ + + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + 4.0.0 + + service-price + + + + org.springframework.boot + spring-boot-starter-web + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + org.springframework.cloud + spring-cloud-starter-openfeign + + + + org.springframework.cloud + spring-cloud-starter-loadbalancer + + + + io.github.openfeign + feign-httpclient + + + + com.baomidou + mybatis-plus-boot-starter + 3.4.3.1 + + + + mysql + mysql-connector-java + + + + + + \ No newline at end of file diff --git a/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/ServicePriceApplication.java b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/ServicePriceApplication.java new file mode 100644 index 0000000..faed864 --- /dev/null +++ b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/ServicePriceApplication.java @@ -0,0 +1,17 @@ +package com.mashibing.serviceprice; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.cloud.openfeign.EnableFeignClients; + +@SpringBootApplication +@EnableDiscoveryClient +@EnableFeignClients +@MapperScan("com.mashibing.serviceprice.mapper") +public class ServicePriceApplication { + public static void main(String[] args) { + SpringApplication.run(ServicePriceApplication.class); + } +} diff --git a/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/controller/ForecastPriceController.java b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/controller/ForecastPriceController.java new file mode 100644 index 0000000..b03a079 --- /dev/null +++ b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/controller/ForecastPriceController.java @@ -0,0 +1,27 @@ +package com.mashibing.serviceprice.controller; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.ForecastPriceDTO; +import com.mashibing.serviceprice.service.ForecastPriceService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class ForecastPriceController { + + @Autowired + private ForecastPriceService forecastPriceService; + + @PostMapping("/forecast-price") + public ResponseResult forecastPrice(@RequestBody ForecastPriceDTO forecastPriceDTO){ + + String depLongitude = forecastPriceDTO.getDepLongitude(); + String depLatitude = forecastPriceDTO.getDepLatitude(); + String destLongitude = forecastPriceDTO.getDestLongitude(); + String destLatitude = forecastPriceDTO.getDestLatitude(); + + return forecastPriceService.forecastPrice(depLongitude,depLatitude,destLongitude,destLatitude); + } +} diff --git a/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/mapper/PriceRuleMapper.java b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/mapper/PriceRuleMapper.java new file mode 100644 index 0000000..acec356 --- /dev/null +++ b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/mapper/PriceRuleMapper.java @@ -0,0 +1,11 @@ +package com.mashibing.serviceprice.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.mashibing.internalcommon.dto.PriceRule; +import org.springframework.stereotype.Repository; + +@Repository +public interface PriceRuleMapper extends BaseMapper { + + +} diff --git a/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/remote/ServiceMapClient.java b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/remote/ServiceMapClient.java new file mode 100644 index 0000000..0dfd489 --- /dev/null +++ b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/remote/ServiceMapClient.java @@ -0,0 +1,17 @@ +package com.mashibing.serviceprice.remote; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.ForecastPriceDTO; +import com.mashibing.internalcommon.responese.DirectionResponse; +import com.sun.javafx.scene.traversal.Direction; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; + +@FeignClient("service-map") +public interface ServiceMapClient { + + @RequestMapping(method = RequestMethod.GET,value = "/direction/driving") + public ResponseResult direction(@RequestBody ForecastPriceDTO forecastPriceDTO); +} diff --git a/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/service/ForecastPriceService.java b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/service/ForecastPriceService.java new file mode 100644 index 0000000..28fa7ae --- /dev/null +++ b/online-taxi-public/service-price/src/main/java/com/mashibing/serviceprice/service/ForecastPriceService.java @@ -0,0 +1,124 @@ +package com.mashibing.serviceprice.service; + +import com.mashibing.internalcommon.constant.CommonStatusEnum; +import com.mashibing.internalcommon.dto.PriceRule; +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.request.ForecastPriceDTO; +import com.mashibing.internalcommon.responese.DirectionResponse; +import com.mashibing.internalcommon.responese.ForecastPriceResponse; +import com.mashibing.internalcommon.util.BigDecimalUtils; +import com.mashibing.serviceprice.mapper.PriceRuleMapper; +import com.mashibing.serviceprice.remote.ServiceMapClient; +import jdk.nashorn.internal.runtime.regexp.joni.ast.StringNode; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.math.BigDecimal; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@Service +@Slf4j +public class ForecastPriceService { + + @Autowired + private ServiceMapClient serviceMapClient; + + @Autowired + private PriceRuleMapper priceRuleMapper; + + public ResponseResult forecastPrice(String depLongitude, String depLatitude, String destLongitude, String destLatitude){ + + log.info("出发地经度:"+depLongitude); + log.info("出发地纬度:"+depLatitude); + log.info("目的地经度:"+destLongitude); + log.info("目的地纬度:"+destLatitude); + + log.info("调用地图服务,查询距离和时长"); + ForecastPriceDTO forecastPriceDTO = new ForecastPriceDTO(); + forecastPriceDTO.setDepLongitude(depLongitude); + forecastPriceDTO.setDepLatitude(depLatitude); + forecastPriceDTO.setDestLongitude(destLongitude); + forecastPriceDTO.setDestLatitude(destLatitude); + ResponseResult direction = serviceMapClient.direction(forecastPriceDTO); + Integer distance = direction.getData().getDistance(); + Integer duration = direction.getData().getDuration(); + log.info(("距离:"+distance+",时长:"+duration)); + + log.info("读取计价规则"); + Map queryMap = new HashMap<>(); + queryMap.put("city_code","110000"); + queryMap.put("vehicle_type","1"); + List priceRules = priceRuleMapper.selectByMap(queryMap); + if (priceRules.size() == 0){ + return ResponseResult.fail(CommonStatusEnum.PRICE_RULE_EMPTY.getCode(),CommonStatusEnum.VERIFICATION_CODE_ERROR.getValue()); + } + + PriceRule priceRule = priceRules.get(0); + + log.info("根据距离、时长和计价规则,计算价格"); + + double price = getPrice(distance, duration, priceRule); + + + ForecastPriceResponse forecastPriceResponse = new ForecastPriceResponse(); + forecastPriceResponse.setPrice(price); + return ResponseResult.success(forecastPriceResponse); + } + + /** + * 根据距离、时长 和计价规则,计算最终价格 + * @param distance 距离 + * @param duration 时长 + * @param priceRule 计价规则 + * @return + */ + private double getPrice(Integer distance , Integer duration,PriceRule priceRule){ + double price = 0; + + // 起步价 + double startFare = priceRule.getStartFare(); + price = BigDecimalUtils.add(price,startFare); + + // 里程费 + // 总里程 m + double distanceMile = BigDecimalUtils.divide(distance,1000); + // 起步里程 + double startMile = (double)priceRule.getStartMile(); + double distanceSubtract = BigDecimalUtils.substract(distanceMile,startMile); + // 最终收费的里程数 km + double mile = distanceSubtract<0?0:distanceSubtract; + // 计程单价 元/km + double unitPricePerMile = priceRule.getUnitPricePerMile(); + // 里程价格 + double mileFare = BigDecimalUtils.multiply(mile,unitPricePerMile); + price = BigDecimalUtils.add(price,mileFare); + + // 时长费 + // 时长的分钟数 + double timeMinute = BigDecimalUtils.divide(duration,60); + // 计时单价 + double unitPricePerMinute = priceRule.getUnitPricePerMinute(); + + // 时长费用 + double timeFare = BigDecimalUtils.multiply(timeMinute,unitPricePerMinute); + price = BigDecimalUtils.add(price,timeFare); + + BigDecimal priceBigDecimal = new BigDecimal(price); + priceBigDecimal = priceBigDecimal.setScale(2,BigDecimal.ROUND_HALF_UP); + + return priceBigDecimal.doubleValue(); + } + +// public static void main(String[] args) { +// PriceRule priceRule = new PriceRule(); +// priceRule.setUnitPricePerMile(1.8); +// priceRule.setUnitPricePerMinute(0.5); +// priceRule.setStartFare(10.0); +// priceRule.setStartMile(3); +// +// System.out.println(getPrice(6500,1800,priceRule)); +// } +} diff --git a/online-taxi-public/service-price/src/main/resources/application.yml b/online-taxi-public/service-price/src/main/resources/application.yml new file mode 100644 index 0000000..35e2a27 --- /dev/null +++ b/online-taxi-public/service-price/src/main/resources/application.yml @@ -0,0 +1,16 @@ +server: + port: 8084 + +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/service-price?characterEncoding=utf-8&serverTimezone=GMT%2B8 + username: root + password: root + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + application: + name: service-price + diff --git a/online-taxi-public/service-verificationcode/.gitignore b/online-taxi-public/service-verificationcode/.gitignore new file mode 100644 index 0000000..549e00a --- /dev/null +++ b/online-taxi-public/service-verificationcode/.gitignore @@ -0,0 +1,33 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/**/target/ +!**/src/test/**/target/ + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ +!**/src/main/**/build/ +!**/src/test/**/build/ + +### VS Code ### +.vscode/ diff --git a/online-taxi-public/service-verificationcode/.mvn/wrapper/maven-wrapper.jar b/online-taxi-public/service-verificationcode/.mvn/wrapper/maven-wrapper.jar new file mode 100644 index 0000000..c1dd12f Binary files /dev/null and b/online-taxi-public/service-verificationcode/.mvn/wrapper/maven-wrapper.jar differ diff --git a/online-taxi-public/service-verificationcode/.mvn/wrapper/maven-wrapper.properties b/online-taxi-public/service-verificationcode/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..22f219d --- /dev/null +++ b/online-taxi-public/service-verificationcode/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1,2 @@ +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip +wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar diff --git a/online-taxi-public/service-verificationcode/mvnw b/online-taxi-public/service-verificationcode/mvnw new file mode 100644 index 0000000..8a8fb22 --- /dev/null +++ b/online-taxi-public/service-verificationcode/mvnw @@ -0,0 +1,316 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /usr/local/etc/mavenrc ] ; then + . /usr/local/etc/mavenrc + fi + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html + if [ -z "$JAVA_HOME" ]; then + if [ -x "/usr/libexec/java_home" ]; then + export JAVA_HOME="`/usr/libexec/java_home`" + else + export JAVA_HOME="/Library/Java/Home" + fi + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Mingw, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`\\unset -f command; \\command -v java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + + if [ -z "$1" ] + then + echo "Path not specified to find_maven_basedir" + return 1 + fi + + basedir="$1" + wdir="$1" + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + # workaround for JBEAP-8937 (on Solaris 10/Sparc) + if [ -d "${wdir}" ]; then + wdir=`cd "$wdir/.."; pwd` + fi + # end of workaround + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +BASE_DIR=`find_maven_basedir "$(pwd)"` +if [ -z "$BASE_DIR" ]; then + exit 1; +fi + +########################################################################################## +# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +# This allows using the maven wrapper in projects that prohibit checking in binary data. +########################################################################################## +if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found .mvn/wrapper/maven-wrapper.jar" + fi +else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." + fi + if [ -n "$MVNW_REPOURL" ]; then + jarUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + else + jarUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + fi + while IFS="=" read key value; do + case "$key" in (wrapperUrl) jarUrl="$value"; break ;; + esac + done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" + if [ "$MVNW_VERBOSE" = true ]; then + echo "Downloading from: $jarUrl" + fi + wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" + if $cygwin; then + wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` + fi + + if command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + wget "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + else + wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" + fi + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then + curl -o "$wrapperJarPath" "$jarUrl" -f + else + curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f + fi + + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + # For Cygwin, switch paths to Windows format before running javac + if $cygwin; then + javaClass=`cygpath --path --windows "$javaClass"` + fi + if [ -e "$javaClass" ]; then + if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Compiling MavenWrapperDownloader.java ..." + fi + # Compiling the Java class + ("$JAVA_HOME/bin/javac" "$javaClass") + fi + if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then + # Running the downloader + if [ "$MVNW_VERBOSE" = true ]; then + echo " - Running MavenWrapperDownloader.java ..." + fi + ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") + fi + fi + fi +fi +########################################################################################## +# End of extension +########################################################################################## + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} +if [ "$MVNW_VERBOSE" = true ]; then + echo $MAVEN_PROJECTBASEDIR +fi +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` + [ -n "$MAVEN_PROJECTBASEDIR" ] && + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` +fi + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + $MAVEN_DEBUG_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" \ + "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" diff --git a/online-taxi-public/service-verificationcode/mvnw.cmd b/online-taxi-public/service-verificationcode/mvnw.cmd new file mode 100644 index 0000000..1d8ab01 --- /dev/null +++ b/online-taxi-public/service-verificationcode/mvnw.cmd @@ -0,0 +1,188 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM https://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM set title of command window +title %0 +@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* +if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + +FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( + IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B +) + +@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central +@REM This allows using the maven wrapper in projects that prohibit checking in binary data. +if exist %WRAPPER_JAR% ( + if "%MVNW_VERBOSE%" == "true" ( + echo Found %WRAPPER_JAR% + ) +) else ( + if not "%MVNW_REPOURL%" == "" ( + SET DOWNLOAD_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar" + ) + if "%MVNW_VERBOSE%" == "true" ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + ) + + powershell -Command "&{"^ + "$webclient = new-object System.Net.WebClient;"^ + "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ + "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ + "}"^ + "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ + "}" + if "%MVNW_VERBOSE%" == "true" ( + echo Finished downloading %WRAPPER_JAR% + ) +) +@REM End of extension + +@REM Provide a "standardized" way to retrieve the CLI args that will +@REM work with both Windows and non-Windows executions. +set MAVEN_CMD_LINE_ARGS=%* + +%MAVEN_JAVA_EXE% ^ + %JVM_CONFIG_MAVEN_PROPS% ^ + %MAVEN_OPTS% ^ + %MAVEN_DEBUG_OPTS% ^ + -classpath %WRAPPER_JAR% ^ + "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ + %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" +if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%"=="on" pause + +if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% + +cmd /C exit /B %ERROR_CODE% diff --git a/online-taxi-public/service-verificationcode/pom.xml b/online-taxi-public/service-verificationcode/pom.xml new file mode 100644 index 0000000..acf2ce2 --- /dev/null +++ b/online-taxi-public/service-verificationcode/pom.xml @@ -0,0 +1,50 @@ + + + 4.0.0 + + + online-taxi-public + com.mashibing + 1.0-SNAPSHOT + + + com.mashibing + service-verificationcode + 0.0.1-SNAPSHOT + service-verificationcode + Demo project for Spring Boot + + 1.8 + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + + diff --git a/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/ServiceVerificationcodeApplication.java b/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/ServiceVerificationcodeApplication.java new file mode 100644 index 0000000..468aa06 --- /dev/null +++ b/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/ServiceVerificationcodeApplication.java @@ -0,0 +1,15 @@ +package com.mashibing.serviceverificationcode; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; + +@SpringBootApplication +@EnableDiscoveryClient +public class ServiceVerificationcodeApplication { + + public static void main(String[] args) { + SpringApplication.run(ServiceVerificationcodeApplication.class, args); + } + +} diff --git a/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/controller/NumberCodeController.java b/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/controller/NumberCodeController.java new file mode 100644 index 0000000..1b8e53a --- /dev/null +++ b/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/controller/NumberCodeController.java @@ -0,0 +1,31 @@ +package com.mashibing.serviceverificationcode.controller; + +import com.mashibing.internalcommon.dto.ResponseResult; +import com.mashibing.internalcommon.responese.NumberCodeResponse; +import net.sf.json.JSONObject; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class NumberCodeController { + + @GetMapping("/numberCode/{size}") + public ResponseResult numberCode(@PathVariable("size") int size){ + + System.out.println("size:"+size); + // 生成验证码 + double mathRandom = (Math.random()*9 + 1) * (Math.pow(10,size-1)); + System.out.println(mathRandom); + int resultInt = (int)mathRandom; + System.out.println("generator src code:"+resultInt); + + // 定义返回值 + NumberCodeResponse response = new NumberCodeResponse(); + response.setNumberCode(resultInt); + + return ResponseResult.success(response); + } + + +} diff --git a/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/controller/TestController.java b/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/controller/TestController.java new file mode 100644 index 0000000..7087c54 --- /dev/null +++ b/online-taxi-public/service-verificationcode/src/main/java/com/mashibing/serviceverificationcode/controller/TestController.java @@ -0,0 +1,13 @@ +package com.mashibing.serviceverificationcode.controller; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class TestController { + + @GetMapping("/test") + public String test(){ + return "service-verificationcode"; + } +} diff --git a/online-taxi-public/service-verificationcode/src/main/resources/application.yml b/online-taxi-public/service-verificationcode/src/main/resources/application.yml new file mode 100644 index 0000000..b62cecd --- /dev/null +++ b/online-taxi-public/service-verificationcode/src/main/resources/application.yml @@ -0,0 +1,10 @@ +server: + port: 8082 +spring: + cloud: + nacos: + discovery: + server-addr: 127.0.0.1:8848 + application: + name: service-verificationcode + diff --git a/online-taxi-public/service-verificationcode/src/test/java/com/mashibing/serviceverificationcode/ServiceVerificationcodeApplicationTests.java b/online-taxi-public/service-verificationcode/src/test/java/com/mashibing/serviceverificationcode/ServiceVerificationcodeApplicationTests.java new file mode 100644 index 0000000..4af0aaa --- /dev/null +++ b/online-taxi-public/service-verificationcode/src/test/java/com/mashibing/serviceverificationcode/ServiceVerificationcodeApplicationTests.java @@ -0,0 +1,13 @@ +package com.mashibing.serviceverificationcode; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class ServiceVerificationcodeApplicationTests { + + @Test + void contextLoads() { + } + +} diff --git a/online-taxi-public/端口管理.md b/online-taxi-public/端口管理.md new file mode 100644 index 0000000..e888bf7 --- /dev/null +++ b/online-taxi-public/端口管理.md @@ -0,0 +1,12 @@ + + +服务名|端口号 +--- | --- +api-passenger|8081 +service-verificationcode | 8082 +service-passenger-user|8083 +service-price|8084 +service-map|8085 +service-driver-user|8086 +api-boss|8087 +api-driver|8088 diff --git a/sql/dic-common.sql b/sql/dic-common.sql new file mode 100644 index 0000000..6193711 --- /dev/null +++ b/sql/dic-common.sql @@ -0,0 +1,88 @@ +/* +Navicat MySQL Data Transfer + +Source Server : 本机 +Source Server Version : 80017 +Source Host : localhost:3306 +Source Database : dic-common + +Target Server Type : MYSQL +Target Server Version : 80017 +File Encoding : 65001 + +Date: 2022-07-20 14:40:31 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for dic_nation +-- ---------------------------- +DROP TABLE IF EXISTS `dic_nation`; +CREATE TABLE `dic_nation` ( + `nation_code` char(2) NOT NULL COMMENT '民族编码', + `nation_name` varchar(64) DEFAULT NULL COMMENT '民族名称', + PRIMARY KEY (`nation_code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of dic_nation +-- ---------------------------- +INSERT INTO `dic_nation` VALUES ('01', '汉族'); +INSERT INTO `dic_nation` VALUES ('02', '蒙古族'); +INSERT INTO `dic_nation` VALUES ('03', '回族'); +INSERT INTO `dic_nation` VALUES ('04', '藏族'); +INSERT INTO `dic_nation` VALUES ('05', '维吾尔族'); +INSERT INTO `dic_nation` VALUES ('06', '苗族'); +INSERT INTO `dic_nation` VALUES ('07', '彝族'); +INSERT INTO `dic_nation` VALUES ('08', '壮族'); +INSERT INTO `dic_nation` VALUES ('09', '布依族'); +INSERT INTO `dic_nation` VALUES ('10', '朝鲜族'); +INSERT INTO `dic_nation` VALUES ('11', '满族'); +INSERT INTO `dic_nation` VALUES ('12', '侗族'); +INSERT INTO `dic_nation` VALUES ('13', '瑶族'); +INSERT INTO `dic_nation` VALUES ('14', '白族'); +INSERT INTO `dic_nation` VALUES ('15', '土家族'); +INSERT INTO `dic_nation` VALUES ('16', '哈尼族'); +INSERT INTO `dic_nation` VALUES ('17', '哈萨克族'); +INSERT INTO `dic_nation` VALUES ('18', '傣族'); +INSERT INTO `dic_nation` VALUES ('19', '黎族'); +INSERT INTO `dic_nation` VALUES ('20', '僳僳族'); +INSERT INTO `dic_nation` VALUES ('21', '佤族'); +INSERT INTO `dic_nation` VALUES ('22', '畲族'); +INSERT INTO `dic_nation` VALUES ('23', '高山族'); +INSERT INTO `dic_nation` VALUES ('24', '拉祜族'); +INSERT INTO `dic_nation` VALUES ('25', '水族'); +INSERT INTO `dic_nation` VALUES ('26', '东乡族'); +INSERT INTO `dic_nation` VALUES ('27', '纳西族'); +INSERT INTO `dic_nation` VALUES ('28', '景颇族'); +INSERT INTO `dic_nation` VALUES ('29', '柯尔克孜族'); +INSERT INTO `dic_nation` VALUES ('30', '土族'); +INSERT INTO `dic_nation` VALUES ('31', '达斡尔族'); +INSERT INTO `dic_nation` VALUES ('32', '仫佬族'); +INSERT INTO `dic_nation` VALUES ('33', '羌族'); +INSERT INTO `dic_nation` VALUES ('34', '布朗族'); +INSERT INTO `dic_nation` VALUES ('35', '撒拉族'); +INSERT INTO `dic_nation` VALUES ('36', '毛难族'); +INSERT INTO `dic_nation` VALUES ('37', '仡佬族'); +INSERT INTO `dic_nation` VALUES ('38', '锡伯族'); +INSERT INTO `dic_nation` VALUES ('39', '阿昌族'); +INSERT INTO `dic_nation` VALUES ('40', '普米族'); +INSERT INTO `dic_nation` VALUES ('41', '塔吉克族'); +INSERT INTO `dic_nation` VALUES ('42', '怒族'); +INSERT INTO `dic_nation` VALUES ('43', '乌孜别克族'); +INSERT INTO `dic_nation` VALUES ('44', '俄罗斯族'); +INSERT INTO `dic_nation` VALUES ('45', '鄂温克族'); +INSERT INTO `dic_nation` VALUES ('46', '崩龙族'); +INSERT INTO `dic_nation` VALUES ('47', '保安族'); +INSERT INTO `dic_nation` VALUES ('48', '裕固族'); +INSERT INTO `dic_nation` VALUES ('49', '京族'); +INSERT INTO `dic_nation` VALUES ('50', '塔塔尔族'); +INSERT INTO `dic_nation` VALUES ('51', '独龙族'); +INSERT INTO `dic_nation` VALUES ('52', '鄂伦春族'); +INSERT INTO `dic_nation` VALUES ('53', '赫哲族'); +INSERT INTO `dic_nation` VALUES ('54', '门巴族'); +INSERT INTO `dic_nation` VALUES ('55', '珞巴族'); +INSERT INTO `dic_nation` VALUES ('56', '基诺族'); +INSERT INTO `dic_nation` VALUES ('57', '其它'); +INSERT INTO `dic_nation` VALUES ('58', '外国血统'); diff --git a/sql/service-driver-user.sql b/sql/service-driver-user.sql new file mode 100644 index 0000000..a2885f8 --- /dev/null +++ b/sql/service-driver-user.sql @@ -0,0 +1,101 @@ +/* +Navicat MySQL Data Transfer + +Source Server : 本机 +Source Server Version : 80017 +Source Host : localhost:3306 +Source Database : service-driver-user + +Target Server Type : MYSQL +Target Server Version : 80017 +File Encoding : 65001 + +Date: 2022-07-20 14:40:42 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for car +-- ---------------------------- +DROP TABLE IF EXISTS `car`; +CREATE TABLE `car` ( + `id` bigint(32) unsigned NOT NULL AUTO_INCREMENT, + `address` char(6) DEFAULT NULL COMMENT '车辆所在城市', + `vehicle_no` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '车辆号牌', + `plate_color` char(1) DEFAULT NULL COMMENT '车牌颜色(1:蓝色,2:黄色,3:黑色,4:白色,5:绿色,9:其他)', + `seats` int(3) DEFAULT NULL COMMENT '核定载客位', + `brand` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '车辆厂牌', + `model` varchar(16) DEFAULT NULL COMMENT '车辆型号', + `vehicle_type` varchar(16) DEFAULT NULL COMMENT '车辆类型', + `owner_name` varchar(16) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '车辆所有人', + `vehicle_color` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '车辆颜色(1:白色,2:黑色)', + `engine_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '发动机号', + `vin` varchar(64) DEFAULT NULL, + `certify_date_a` date DEFAULT NULL COMMENT '车辆注册日期', + `fue_type` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '燃料类型(1:汽油,2:柴油,3:天然气,4:液化气,5:电动,9:其他)', + `engine_displace` varchar(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '发动机排量(毫升)', + `trans_agency` varchar(32) DEFAULT NULL COMMENT '车辆运输证发证机构', + `trans_area` varchar(32) DEFAULT NULL COMMENT '车辆经验区域', + `trans_date_start` date DEFAULT NULL COMMENT '车辆运输证有效期起', + `trans_date_end` date DEFAULT NULL COMMENT '车辆运输证有效期止', + `certify_date_b` date DEFAULT NULL COMMENT '车辆初次登记日期', + `fix_state` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '车辆的检修状态(0:未检修,1:已检修,2:未知)', + `next_fix_date` date DEFAULT NULL COMMENT '下次年检时间', + `check_state` char(2) DEFAULT '' COMMENT '年度审验状态(0:未年审,1:年审合格,2:年审不合格)', + `fee_print_id` varchar(64) DEFAULT NULL COMMENT '发票打印设备序列号', + `gps_brand` varchar(32) DEFAULT NULL COMMENT '卫星定位装置品牌', + `gps_model` varchar(32) DEFAULT NULL COMMENT '卫星型号', + `gps_install_date` date DEFAULT NULL COMMENT '卫星定位设备安装日期', + `register_date` date DEFAULT NULL COMMENT '报备日期', + `commercial_type` int(2) DEFAULT NULL COMMENT '服务类型:1:网络预约出租车,2:巡游出租车,3:私人小客车合乘', + `fare_type` varchar(16) DEFAULT NULL COMMENT '运价编码 关联计价规则', + `state` tinyint(1) DEFAULT NULL COMMENT '状态:0:有效,1:失效', + `gmt_create` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of car +-- ---------------------------- + +-- ---------------------------- +-- Table structure for driver_user +-- ---------------------------- +DROP TABLE IF EXISTS `driver_user`; +CREATE TABLE `driver_user` ( + `id` bigint(32) unsigned NOT NULL AUTO_INCREMENT, + `address` char(6) DEFAULT NULL COMMENT '司机注册地行政区划代码', + `driver_name` varchar(16) DEFAULT NULL COMMENT '司机姓名', + `driver_phone` varchar(16) DEFAULT NULL, + `driver_gender` tinyint(2) DEFAULT NULL COMMENT '1:男,2:女', + `driver_birthday` date DEFAULT NULL, + `driver_nation` char(2) DEFAULT NULL COMMENT '驾驶员民族', + `driver_contact_address` varchar(255) DEFAULT NULL, + `license_id` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '机动车驾驶证号', + `get_driver_license_date` date DEFAULT NULL COMMENT '初次领取驾驶证日期', + `driver_license_on` date DEFAULT NULL COMMENT '驾驶证有效期起', + `driver_license_off` date DEFAULT NULL COMMENT '驾驶证有效期止', + `taxi_driver` tinyint(2) DEFAULT NULL COMMENT '是否巡游出租汽车:1:是,0:否', + `certificate_no` varchar(255) DEFAULT NULL COMMENT '网络预约出租汽车驾驶员资格证号', + `network_car_issue_organization` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '网络预约出租汽车驾驶员发证机构', + `network_car_issue_date` date DEFAULT NULL COMMENT '资格证发证日期', + `get_network_car_proof_date` date DEFAULT NULL COMMENT '初次领取资格证日期', + `network_car_proof_on` date DEFAULT NULL COMMENT '资格证有效起始日期', + `network_car_proof_off` date DEFAULT NULL COMMENT '资格证有效截止日期', + `register_date` date DEFAULT NULL COMMENT '报备日期', + `commercial_type` tinyint(2) DEFAULT NULL COMMENT '服务类型:1:网络预约出租汽车,2:巡游出租汽车,3:私人小客车合乘', + `contract_company` varchar(255) DEFAULT NULL COMMENT '驾驶员合同(协议)签署公司', + `contract_on` date DEFAULT NULL COMMENT '合同(协议)有效期起', + `contract_off` date DEFAULT NULL COMMENT '合同有效期止', + `state` tinyint(2) DEFAULT NULL COMMENT '司机状态:0:有效,1:失效', + `gmt_create` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间', + `gmt_modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1542494575889854467 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of driver_user +-- ---------------------------- +INSERT INTO `driver_user` VALUES ('1542494575889854466', '110000', '张红', '13910733522', '1', '2020-01-03', '01', '通信地址', '机动车驾驶证号', '2019-01-05', '2019-01-01', '2025-01-01', '1', '网络预约出租汽车驾驶员资格证号', '网络预约出租汽车驾驶员发证机构', '2020-01-02', '2020-01-01', '2020-01-03', '2020-01-03', '2020-02-03', '1', '合约公司', '2022-01-05', '2022-01-06', '1', '2022-06-30 22:05:19', '2022-06-30 22:05:20'); diff --git a/sql/service-map.sql b/sql/service-map.sql new file mode 100644 index 0000000..c76b1c5 --- /dev/null +++ b/sql/service-map.sql @@ -0,0 +1,3276 @@ +/* +Navicat MySQL Data Transfer + +Source Server : 本机 +Source Server Version : 80017 +Source Host : localhost:3306 +Source Database : service-map + +Target Server Type : MYSQL +Target Server Version : 80017 +File Encoding : 65001 + +Date: 2022-07-20 14:40:49 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for dic_district +-- ---------------------------- +DROP TABLE IF EXISTS `dic_district`; +CREATE TABLE `dic_district` ( + `address_code` char(6) NOT NULL COMMENT '地区编码', + `address_name` varchar(128) DEFAULT NULL COMMENT '地区名称', + `parent_address_code` char(6) DEFAULT NULL COMMENT '父地区编码', + `level` tinyint(4) DEFAULT NULL COMMENT '级别', + PRIMARY KEY (`address_code`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of dic_district +-- ---------------------------- +INSERT INTO `dic_district` VALUES ('100000', '中华人民共和国', '0', '0'); +INSERT INTO `dic_district` VALUES ('110000', '北京市', '100000', '1'); +INSERT INTO `dic_district` VALUES ('110100', '北京城区', '110000', '2'); +INSERT INTO `dic_district` VALUES ('110101', '东城区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110102', '西城区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110105', '朝阳区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110106', '丰台区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110107', '石景山区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110108', '海淀区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110109', '门头沟区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110111', '房山区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110112', '通州区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110113', '顺义区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110114', '昌平区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110115', '大兴区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110116', '怀柔区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110117', '平谷区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110118', '密云区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('110119', '延庆区', '110100', '3'); +INSERT INTO `dic_district` VALUES ('120000', '天津市', '100000', '1'); +INSERT INTO `dic_district` VALUES ('120100', '天津城区', '120000', '2'); +INSERT INTO `dic_district` VALUES ('120101', '和平区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120102', '河东区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120103', '河西区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120104', '南开区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120105', '河北区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120106', '红桥区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120110', '东丽区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120111', '西青区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120112', '津南区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120113', '北辰区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120114', '武清区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120115', '宝坻区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120116', '滨海新区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120117', '宁河区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120118', '静海区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('120119', '蓟州区', '120100', '3'); +INSERT INTO `dic_district` VALUES ('130000', '河北省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('130100', '石家庄市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130102', '长安区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130104', '桥西区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130105', '新华区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130107', '井陉矿区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130108', '裕华区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130109', '藁城区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130110', '鹿泉区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130111', '栾城区', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130121', '井陉县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130123', '正定县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130125', '行唐县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130126', '灵寿县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130127', '高邑县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130128', '深泽县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130129', '赞皇县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130130', '无极县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130131', '平山县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130132', '元氏县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130133', '赵县', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130181', '辛集市', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130183', '晋州市', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130184', '新乐市', '130100', '3'); +INSERT INTO `dic_district` VALUES ('130200', '唐山市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130202', '路南区', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130203', '路北区', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130204', '古冶区', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130205', '开平区', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130207', '丰南区', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130208', '丰润区', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130209', '曹妃甸区', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130224', '滦南县', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130225', '乐亭县', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130227', '迁西县', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130229', '玉田县', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130281', '遵化市', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130283', '迁安市', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130284', '滦州市', '130200', '3'); +INSERT INTO `dic_district` VALUES ('130300', '秦皇岛市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130302', '海港区', '130300', '3'); +INSERT INTO `dic_district` VALUES ('130303', '山海关区', '130300', '3'); +INSERT INTO `dic_district` VALUES ('130304', '北戴河区', '130300', '3'); +INSERT INTO `dic_district` VALUES ('130306', '抚宁区', '130300', '3'); +INSERT INTO `dic_district` VALUES ('130321', '青龙满族自治县', '130300', '3'); +INSERT INTO `dic_district` VALUES ('130322', '昌黎县', '130300', '3'); +INSERT INTO `dic_district` VALUES ('130324', '卢龙县', '130300', '3'); +INSERT INTO `dic_district` VALUES ('130400', '邯郸市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130402', '邯山区', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130403', '丛台区', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130404', '复兴区', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130406', '峰峰矿区', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130407', '肥乡区', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130408', '永年区', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130423', '临漳县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130424', '成安县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130425', '大名县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130426', '涉县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130427', '磁县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130430', '邱县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130431', '鸡泽县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130432', '广平县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130433', '馆陶县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130434', '魏县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130435', '曲周县', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130481', '武安市', '130400', '3'); +INSERT INTO `dic_district` VALUES ('130500', '邢台市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130502', '襄都区', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130503', '信都区', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130505', '任泽区', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130506', '南和区', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130522', '临城县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130523', '内丘县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130524', '柏乡县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130525', '隆尧县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130528', '宁晋县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130529', '巨鹿县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130530', '新河县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130531', '广宗县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130532', '平乡县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130533', '威县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130534', '清河县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130535', '临西县', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130581', '南宫市', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130582', '沙河市', '130500', '3'); +INSERT INTO `dic_district` VALUES ('130600', '保定市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130602', '竞秀区', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130606', '莲池区', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130607', '满城区', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130608', '清苑区', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130609', '徐水区', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130623', '涞水县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130624', '阜平县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130626', '定兴县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130627', '唐县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130628', '高阳县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130629', '容城县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130630', '涞源县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130631', '望都县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130632', '安新县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130633', '易县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130634', '曲阳县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130635', '蠡县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130636', '顺平县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130637', '博野县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130638', '雄县', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130681', '涿州市', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130682', '定州市', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130683', '安国市', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130684', '高碑店市', '130600', '3'); +INSERT INTO `dic_district` VALUES ('130700', '张家口市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130702', '桥东区', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130703', '桥西区', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130705', '宣化区', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130706', '下花园区', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130708', '万全区', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130709', '崇礼区', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130722', '张北县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130723', '康保县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130724', '沽源县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130725', '尚义县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130726', '蔚县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130727', '阳原县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130728', '怀安县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130730', '怀来县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130731', '涿鹿县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130732', '赤城县', '130700', '3'); +INSERT INTO `dic_district` VALUES ('130800', '承德市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130802', '双桥区', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130803', '双滦区', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130804', '鹰手营子矿区', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130821', '承德县', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130822', '兴隆县', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130824', '滦平县', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130825', '隆化县', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130826', '丰宁满族自治县', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130827', '宽城满族自治县', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130828', '围场满族蒙古族自治县', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130881', '平泉市', '130800', '3'); +INSERT INTO `dic_district` VALUES ('130900', '沧州市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('130902', '新华区', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130903', '运河区', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130921', '沧县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130922', '青县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130923', '东光县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130924', '海兴县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130925', '盐山县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130926', '肃宁县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130927', '南皮县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130928', '吴桥县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130929', '献县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130930', '孟村回族自治县', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130981', '泊头市', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130982', '任丘市', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130983', '黄骅市', '130900', '3'); +INSERT INTO `dic_district` VALUES ('130984', '河间市', '130900', '3'); +INSERT INTO `dic_district` VALUES ('131000', '廊坊市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('131002', '安次区', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131003', '广阳区', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131022', '固安县', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131023', '永清县', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131024', '香河县', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131025', '大城县', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131026', '文安县', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131028', '大厂回族自治县', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131081', '霸州市', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131082', '三河市', '131000', '3'); +INSERT INTO `dic_district` VALUES ('131100', '衡水市', '130000', '2'); +INSERT INTO `dic_district` VALUES ('131102', '桃城区', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131103', '冀州区', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131121', '枣强县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131122', '武邑县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131123', '武强县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131124', '饶阳县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131125', '安平县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131126', '故城县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131127', '景县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131128', '阜城县', '131100', '3'); +INSERT INTO `dic_district` VALUES ('131182', '深州市', '131100', '3'); +INSERT INTO `dic_district` VALUES ('140000', '山西省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('140100', '太原市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140105', '小店区', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140106', '迎泽区', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140107', '杏花岭区', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140108', '尖草坪区', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140109', '万柏林区', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140110', '晋源区', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140121', '清徐县', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140122', '阳曲县', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140123', '娄烦县', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140181', '古交市', '140100', '3'); +INSERT INTO `dic_district` VALUES ('140200', '大同市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140212', '新荣区', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140213', '平城区', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140214', '云冈区', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140215', '云州区', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140221', '阳高县', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140222', '天镇县', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140223', '广灵县', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140224', '灵丘县', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140225', '浑源县', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140226', '左云县', '140200', '3'); +INSERT INTO `dic_district` VALUES ('140300', '阳泉市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140302', '城区', '140300', '3'); +INSERT INTO `dic_district` VALUES ('140303', '矿区', '140300', '3'); +INSERT INTO `dic_district` VALUES ('140311', '郊区', '140300', '3'); +INSERT INTO `dic_district` VALUES ('140321', '平定县', '140300', '3'); +INSERT INTO `dic_district` VALUES ('140322', '盂县', '140300', '3'); +INSERT INTO `dic_district` VALUES ('140400', '长治市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140403', '潞州区', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140404', '上党区', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140405', '屯留区', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140406', '潞城区', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140423', '襄垣县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140425', '平顺县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140426', '黎城县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140427', '壶关县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140428', '长子县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140429', '武乡县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140430', '沁县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140431', '沁源县', '140400', '3'); +INSERT INTO `dic_district` VALUES ('140500', '晋城市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140502', '城区', '140500', '3'); +INSERT INTO `dic_district` VALUES ('140521', '沁水县', '140500', '3'); +INSERT INTO `dic_district` VALUES ('140522', '阳城县', '140500', '3'); +INSERT INTO `dic_district` VALUES ('140524', '陵川县', '140500', '3'); +INSERT INTO `dic_district` VALUES ('140525', '泽州县', '140500', '3'); +INSERT INTO `dic_district` VALUES ('140581', '高平市', '140500', '3'); +INSERT INTO `dic_district` VALUES ('140600', '朔州市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140602', '朔城区', '140600', '3'); +INSERT INTO `dic_district` VALUES ('140603', '平鲁区', '140600', '3'); +INSERT INTO `dic_district` VALUES ('140621', '山阴县', '140600', '3'); +INSERT INTO `dic_district` VALUES ('140622', '应县', '140600', '3'); +INSERT INTO `dic_district` VALUES ('140623', '右玉县', '140600', '3'); +INSERT INTO `dic_district` VALUES ('140681', '怀仁市', '140600', '3'); +INSERT INTO `dic_district` VALUES ('140700', '晋中市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140702', '榆次区', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140703', '太谷区', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140721', '榆社县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140722', '左权县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140723', '和顺县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140724', '昔阳县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140725', '寿阳县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140727', '祁县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140728', '平遥县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140729', '灵石县', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140781', '介休市', '140700', '3'); +INSERT INTO `dic_district` VALUES ('140800', '运城市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140802', '盐湖区', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140821', '临猗县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140822', '万荣县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140823', '闻喜县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140824', '稷山县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140825', '新绛县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140826', '绛县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140827', '垣曲县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140828', '夏县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140829', '平陆县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140830', '芮城县', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140881', '永济市', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140882', '河津市', '140800', '3'); +INSERT INTO `dic_district` VALUES ('140900', '忻州市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('140902', '忻府区', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140921', '定襄县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140922', '五台县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140923', '代县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140924', '繁峙县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140925', '宁武县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140926', '静乐县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140927', '神池县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140928', '五寨县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140929', '岢岚县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140930', '河曲县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140931', '保德县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140932', '偏关县', '140900', '3'); +INSERT INTO `dic_district` VALUES ('140981', '原平市', '140900', '3'); +INSERT INTO `dic_district` VALUES ('141000', '临汾市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('141002', '尧都区', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141021', '曲沃县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141022', '翼城县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141023', '襄汾县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141024', '洪洞县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141025', '古县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141026', '安泽县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141027', '浮山县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141028', '吉县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141029', '乡宁县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141030', '大宁县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141031', '隰县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141032', '永和县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141033', '蒲县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141034', '汾西县', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141081', '侯马市', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141082', '霍州市', '141000', '3'); +INSERT INTO `dic_district` VALUES ('141100', '吕梁市', '140000', '2'); +INSERT INTO `dic_district` VALUES ('141102', '离石区', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141121', '文水县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141122', '交城县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141123', '兴县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141124', '临县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141125', '柳林县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141126', '石楼县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141127', '岚县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141128', '方山县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141129', '中阳县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141130', '交口县', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141181', '孝义市', '141100', '3'); +INSERT INTO `dic_district` VALUES ('141182', '汾阳市', '141100', '3'); +INSERT INTO `dic_district` VALUES ('150000', '内蒙古自治区', '100000', '1'); +INSERT INTO `dic_district` VALUES ('150100', '呼和浩特市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150102', '新城区', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150103', '回民区', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150104', '玉泉区', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150105', '赛罕区', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150121', '土默特左旗', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150122', '托克托县', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150123', '和林格尔县', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150124', '清水河县', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150125', '武川县', '150100', '3'); +INSERT INTO `dic_district` VALUES ('150200', '包头市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150202', '东河区', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150203', '昆都仑区', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150204', '青山区', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150205', '石拐区', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150206', '白云鄂博矿区', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150207', '九原区', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150221', '土默特右旗', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150222', '固阳县', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150223', '达尔罕茂明安联合旗', '150200', '3'); +INSERT INTO `dic_district` VALUES ('150300', '乌海市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150302', '海勃湾区', '150300', '3'); +INSERT INTO `dic_district` VALUES ('150303', '海南区', '150300', '3'); +INSERT INTO `dic_district` VALUES ('150304', '乌达区', '150300', '3'); +INSERT INTO `dic_district` VALUES ('150400', '赤峰市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150402', '红山区', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150403', '元宝山区', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150404', '松山区', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150421', '阿鲁科尔沁旗', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150422', '巴林左旗', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150423', '巴林右旗', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150424', '林西县', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150425', '克什克腾旗', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150426', '翁牛特旗', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150428', '喀喇沁旗', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150429', '宁城县', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150430', '敖汉旗', '150400', '3'); +INSERT INTO `dic_district` VALUES ('150500', '通辽市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150502', '科尔沁区', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150521', '科尔沁左翼中旗', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150522', '科尔沁左翼后旗', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150523', '开鲁县', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150524', '库伦旗', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150525', '奈曼旗', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150526', '扎鲁特旗', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150581', '霍林郭勒市', '150500', '3'); +INSERT INTO `dic_district` VALUES ('150600', '鄂尔多斯市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150602', '东胜区', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150603', '康巴什区', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150621', '达拉特旗', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150622', '准格尔旗', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150623', '鄂托克前旗', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150624', '鄂托克旗', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150625', '杭锦旗', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150626', '乌审旗', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150627', '伊金霍洛旗', '150600', '3'); +INSERT INTO `dic_district` VALUES ('150700', '呼伦贝尔市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150702', '海拉尔区', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150703', '扎赉诺尔区', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150721', '阿荣旗', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150722', '莫力达瓦达斡尔族自治旗', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150723', '鄂伦春自治旗', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150724', '鄂温克族自治旗', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150725', '陈巴尔虎旗', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150726', '新巴尔虎左旗', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150727', '新巴尔虎右旗', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150781', '满洲里市', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150782', '牙克石市', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150783', '扎兰屯市', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150784', '额尔古纳市', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150785', '根河市', '150700', '3'); +INSERT INTO `dic_district` VALUES ('150800', '巴彦淖尔市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150802', '临河区', '150800', '3'); +INSERT INTO `dic_district` VALUES ('150821', '五原县', '150800', '3'); +INSERT INTO `dic_district` VALUES ('150822', '磴口县', '150800', '3'); +INSERT INTO `dic_district` VALUES ('150823', '乌拉特前旗', '150800', '3'); +INSERT INTO `dic_district` VALUES ('150824', '乌拉特中旗', '150800', '3'); +INSERT INTO `dic_district` VALUES ('150825', '乌拉特后旗', '150800', '3'); +INSERT INTO `dic_district` VALUES ('150826', '杭锦后旗', '150800', '3'); +INSERT INTO `dic_district` VALUES ('150900', '乌兰察布市', '150000', '2'); +INSERT INTO `dic_district` VALUES ('150902', '集宁区', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150921', '卓资县', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150922', '化德县', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150923', '商都县', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150924', '兴和县', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150925', '凉城县', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150926', '察哈尔右翼前旗', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150927', '察哈尔右翼中旗', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150928', '察哈尔右翼后旗', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150929', '四子王旗', '150900', '3'); +INSERT INTO `dic_district` VALUES ('150981', '丰镇市', '150900', '3'); +INSERT INTO `dic_district` VALUES ('152200', '兴安盟', '150000', '2'); +INSERT INTO `dic_district` VALUES ('152201', '乌兰浩特市', '152200', '3'); +INSERT INTO `dic_district` VALUES ('152202', '阿尔山市', '152200', '3'); +INSERT INTO `dic_district` VALUES ('152221', '科尔沁右翼前旗', '152200', '3'); +INSERT INTO `dic_district` VALUES ('152222', '科尔沁右翼中旗', '152200', '3'); +INSERT INTO `dic_district` VALUES ('152223', '扎赉特旗', '152200', '3'); +INSERT INTO `dic_district` VALUES ('152224', '突泉县', '152200', '3'); +INSERT INTO `dic_district` VALUES ('152500', '锡林郭勒盟', '150000', '2'); +INSERT INTO `dic_district` VALUES ('152501', '二连浩特市', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152502', '锡林浩特市', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152522', '阿巴嘎旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152523', '苏尼特左旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152524', '苏尼特右旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152525', '东乌珠穆沁旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152526', '西乌珠穆沁旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152527', '太仆寺旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152528', '镶黄旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152529', '正镶白旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152530', '正蓝旗', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152531', '多伦县', '152500', '3'); +INSERT INTO `dic_district` VALUES ('152900', '阿拉善盟', '150000', '2'); +INSERT INTO `dic_district` VALUES ('152921', '阿拉善左旗', '152900', '3'); +INSERT INTO `dic_district` VALUES ('152922', '阿拉善右旗', '152900', '3'); +INSERT INTO `dic_district` VALUES ('152923', '额济纳旗', '152900', '3'); +INSERT INTO `dic_district` VALUES ('210000', '辽宁省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('210100', '沈阳市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210102', '和平区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210103', '沈河区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210104', '大东区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210105', '皇姑区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210106', '铁西区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210111', '苏家屯区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210112', '浑南区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210113', '沈北新区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210114', '于洪区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210115', '辽中区', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210123', '康平县', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210124', '法库县', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210181', '新民市', '210100', '3'); +INSERT INTO `dic_district` VALUES ('210200', '大连市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210202', '中山区', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210203', '西岗区', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210204', '沙河口区', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210211', '甘井子区', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210212', '旅顺口区', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210213', '金州区', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210214', '普兰店区', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210224', '长海县', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210281', '瓦房店市', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210283', '庄河市', '210200', '3'); +INSERT INTO `dic_district` VALUES ('210300', '鞍山市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210302', '铁东区', '210300', '3'); +INSERT INTO `dic_district` VALUES ('210303', '铁西区', '210300', '3'); +INSERT INTO `dic_district` VALUES ('210304', '立山区', '210300', '3'); +INSERT INTO `dic_district` VALUES ('210311', '千山区', '210300', '3'); +INSERT INTO `dic_district` VALUES ('210321', '台安县', '210300', '3'); +INSERT INTO `dic_district` VALUES ('210323', '岫岩满族自治县', '210300', '3'); +INSERT INTO `dic_district` VALUES ('210381', '海城市', '210300', '3'); +INSERT INTO `dic_district` VALUES ('210400', '抚顺市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210402', '新抚区', '210400', '3'); +INSERT INTO `dic_district` VALUES ('210403', '东洲区', '210400', '3'); +INSERT INTO `dic_district` VALUES ('210404', '望花区', '210400', '3'); +INSERT INTO `dic_district` VALUES ('210411', '顺城区', '210400', '3'); +INSERT INTO `dic_district` VALUES ('210421', '抚顺县', '210400', '3'); +INSERT INTO `dic_district` VALUES ('210422', '新宾满族自治县', '210400', '3'); +INSERT INTO `dic_district` VALUES ('210423', '清原满族自治县', '210400', '3'); +INSERT INTO `dic_district` VALUES ('210500', '本溪市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210502', '平山区', '210500', '3'); +INSERT INTO `dic_district` VALUES ('210503', '溪湖区', '210500', '3'); +INSERT INTO `dic_district` VALUES ('210504', '明山区', '210500', '3'); +INSERT INTO `dic_district` VALUES ('210505', '南芬区', '210500', '3'); +INSERT INTO `dic_district` VALUES ('210521', '本溪满族自治县', '210500', '3'); +INSERT INTO `dic_district` VALUES ('210522', '桓仁满族自治县', '210500', '3'); +INSERT INTO `dic_district` VALUES ('210600', '丹东市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210602', '元宝区', '210600', '3'); +INSERT INTO `dic_district` VALUES ('210603', '振兴区', '210600', '3'); +INSERT INTO `dic_district` VALUES ('210604', '振安区', '210600', '3'); +INSERT INTO `dic_district` VALUES ('210624', '宽甸满族自治县', '210600', '3'); +INSERT INTO `dic_district` VALUES ('210681', '东港市', '210600', '3'); +INSERT INTO `dic_district` VALUES ('210682', '凤城市', '210600', '3'); +INSERT INTO `dic_district` VALUES ('210700', '锦州市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210702', '古塔区', '210700', '3'); +INSERT INTO `dic_district` VALUES ('210703', '凌河区', '210700', '3'); +INSERT INTO `dic_district` VALUES ('210711', '太和区', '210700', '3'); +INSERT INTO `dic_district` VALUES ('210726', '黑山县', '210700', '3'); +INSERT INTO `dic_district` VALUES ('210727', '义县', '210700', '3'); +INSERT INTO `dic_district` VALUES ('210781', '凌海市', '210700', '3'); +INSERT INTO `dic_district` VALUES ('210782', '北镇市', '210700', '3'); +INSERT INTO `dic_district` VALUES ('210800', '营口市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210802', '站前区', '210800', '3'); +INSERT INTO `dic_district` VALUES ('210803', '西市区', '210800', '3'); +INSERT INTO `dic_district` VALUES ('210804', '鲅鱼圈区', '210800', '3'); +INSERT INTO `dic_district` VALUES ('210811', '老边区', '210800', '3'); +INSERT INTO `dic_district` VALUES ('210881', '盖州市', '210800', '3'); +INSERT INTO `dic_district` VALUES ('210882', '大石桥市', '210800', '3'); +INSERT INTO `dic_district` VALUES ('210900', '阜新市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('210902', '海州区', '210900', '3'); +INSERT INTO `dic_district` VALUES ('210903', '新邱区', '210900', '3'); +INSERT INTO `dic_district` VALUES ('210904', '太平区', '210900', '3'); +INSERT INTO `dic_district` VALUES ('210905', '清河门区', '210900', '3'); +INSERT INTO `dic_district` VALUES ('210911', '细河区', '210900', '3'); +INSERT INTO `dic_district` VALUES ('210921', '阜新蒙古族自治县', '210900', '3'); +INSERT INTO `dic_district` VALUES ('210922', '彰武县', '210900', '3'); +INSERT INTO `dic_district` VALUES ('211000', '辽阳市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('211002', '白塔区', '211000', '3'); +INSERT INTO `dic_district` VALUES ('211003', '文圣区', '211000', '3'); +INSERT INTO `dic_district` VALUES ('211004', '宏伟区', '211000', '3'); +INSERT INTO `dic_district` VALUES ('211005', '弓长岭区', '211000', '3'); +INSERT INTO `dic_district` VALUES ('211011', '太子河区', '211000', '3'); +INSERT INTO `dic_district` VALUES ('211021', '辽阳县', '211000', '3'); +INSERT INTO `dic_district` VALUES ('211081', '灯塔市', '211000', '3'); +INSERT INTO `dic_district` VALUES ('211100', '盘锦市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('211102', '双台子区', '211100', '3'); +INSERT INTO `dic_district` VALUES ('211103', '兴隆台区', '211100', '3'); +INSERT INTO `dic_district` VALUES ('211104', '大洼区', '211100', '3'); +INSERT INTO `dic_district` VALUES ('211122', '盘山县', '211100', '3'); +INSERT INTO `dic_district` VALUES ('211200', '铁岭市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('211202', '银州区', '211200', '3'); +INSERT INTO `dic_district` VALUES ('211204', '清河区', '211200', '3'); +INSERT INTO `dic_district` VALUES ('211221', '铁岭县', '211200', '3'); +INSERT INTO `dic_district` VALUES ('211223', '西丰县', '211200', '3'); +INSERT INTO `dic_district` VALUES ('211224', '昌图县', '211200', '3'); +INSERT INTO `dic_district` VALUES ('211281', '调兵山市', '211200', '3'); +INSERT INTO `dic_district` VALUES ('211282', '开原市', '211200', '3'); +INSERT INTO `dic_district` VALUES ('211300', '朝阳市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('211302', '双塔区', '211300', '3'); +INSERT INTO `dic_district` VALUES ('211303', '龙城区', '211300', '3'); +INSERT INTO `dic_district` VALUES ('211321', '朝阳县', '211300', '3'); +INSERT INTO `dic_district` VALUES ('211322', '建平县', '211300', '3'); +INSERT INTO `dic_district` VALUES ('211324', '喀喇沁左翼蒙古族自治县', '211300', '3'); +INSERT INTO `dic_district` VALUES ('211381', '北票市', '211300', '3'); +INSERT INTO `dic_district` VALUES ('211382', '凌源市', '211300', '3'); +INSERT INTO `dic_district` VALUES ('211400', '葫芦岛市', '210000', '2'); +INSERT INTO `dic_district` VALUES ('211402', '连山区', '211400', '3'); +INSERT INTO `dic_district` VALUES ('211403', '龙港区', '211400', '3'); +INSERT INTO `dic_district` VALUES ('211404', '南票区', '211400', '3'); +INSERT INTO `dic_district` VALUES ('211421', '绥中县', '211400', '3'); +INSERT INTO `dic_district` VALUES ('211422', '建昌县', '211400', '3'); +INSERT INTO `dic_district` VALUES ('211481', '兴城市', '211400', '3'); +INSERT INTO `dic_district` VALUES ('220000', '吉林省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('220100', '长春市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220102', '南关区', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220103', '宽城区', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220104', '朝阳区', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220105', '二道区', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220106', '绿园区', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220112', '双阳区', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220113', '九台区', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220122', '农安县', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220182', '榆树市', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220183', '德惠市', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220184', '公主岭市', '220100', '3'); +INSERT INTO `dic_district` VALUES ('220200', '吉林市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220202', '昌邑区', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220203', '龙潭区', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220204', '船营区', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220211', '丰满区', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220221', '永吉县', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220281', '蛟河市', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220282', '桦甸市', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220283', '舒兰市', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220284', '磐石市', '220200', '3'); +INSERT INTO `dic_district` VALUES ('220300', '四平市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220302', '铁西区', '220300', '3'); +INSERT INTO `dic_district` VALUES ('220303', '铁东区', '220300', '3'); +INSERT INTO `dic_district` VALUES ('220322', '梨树县', '220300', '3'); +INSERT INTO `dic_district` VALUES ('220323', '伊通满族自治县', '220300', '3'); +INSERT INTO `dic_district` VALUES ('220382', '双辽市', '220300', '3'); +INSERT INTO `dic_district` VALUES ('220400', '辽源市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220402', '龙山区', '220400', '3'); +INSERT INTO `dic_district` VALUES ('220403', '西安区', '220400', '3'); +INSERT INTO `dic_district` VALUES ('220421', '东丰县', '220400', '3'); +INSERT INTO `dic_district` VALUES ('220422', '东辽县', '220400', '3'); +INSERT INTO `dic_district` VALUES ('220500', '通化市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220502', '东昌区', '220500', '3'); +INSERT INTO `dic_district` VALUES ('220503', '二道江区', '220500', '3'); +INSERT INTO `dic_district` VALUES ('220521', '通化县', '220500', '3'); +INSERT INTO `dic_district` VALUES ('220523', '辉南县', '220500', '3'); +INSERT INTO `dic_district` VALUES ('220524', '柳河县', '220500', '3'); +INSERT INTO `dic_district` VALUES ('220581', '梅河口市', '220500', '3'); +INSERT INTO `dic_district` VALUES ('220582', '集安市', '220500', '3'); +INSERT INTO `dic_district` VALUES ('220600', '白山市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220602', '浑江区', '220600', '3'); +INSERT INTO `dic_district` VALUES ('220605', '江源区', '220600', '3'); +INSERT INTO `dic_district` VALUES ('220621', '抚松县', '220600', '3'); +INSERT INTO `dic_district` VALUES ('220622', '靖宇县', '220600', '3'); +INSERT INTO `dic_district` VALUES ('220623', '长白朝鲜族自治县', '220600', '3'); +INSERT INTO `dic_district` VALUES ('220681', '临江市', '220600', '3'); +INSERT INTO `dic_district` VALUES ('220700', '松原市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220702', '宁江区', '220700', '3'); +INSERT INTO `dic_district` VALUES ('220721', '前郭尔罗斯蒙古族自治县', '220700', '3'); +INSERT INTO `dic_district` VALUES ('220722', '长岭县', '220700', '3'); +INSERT INTO `dic_district` VALUES ('220723', '乾安县', '220700', '3'); +INSERT INTO `dic_district` VALUES ('220781', '扶余市', '220700', '3'); +INSERT INTO `dic_district` VALUES ('220800', '白城市', '220000', '2'); +INSERT INTO `dic_district` VALUES ('220802', '洮北区', '220800', '3'); +INSERT INTO `dic_district` VALUES ('220821', '镇赉县', '220800', '3'); +INSERT INTO `dic_district` VALUES ('220822', '通榆县', '220800', '3'); +INSERT INTO `dic_district` VALUES ('220881', '洮南市', '220800', '3'); +INSERT INTO `dic_district` VALUES ('220882', '大安市', '220800', '3'); +INSERT INTO `dic_district` VALUES ('222400', '延边朝鲜族自治州', '220000', '2'); +INSERT INTO `dic_district` VALUES ('222401', '延吉市', '222400', '3'); +INSERT INTO `dic_district` VALUES ('222402', '图们市', '222400', '3'); +INSERT INTO `dic_district` VALUES ('222403', '敦化市', '222400', '3'); +INSERT INTO `dic_district` VALUES ('222404', '珲春市', '222400', '3'); +INSERT INTO `dic_district` VALUES ('222405', '龙井市', '222400', '3'); +INSERT INTO `dic_district` VALUES ('222406', '和龙市', '222400', '3'); +INSERT INTO `dic_district` VALUES ('222424', '汪清县', '222400', '3'); +INSERT INTO `dic_district` VALUES ('222426', '安图县', '222400', '3'); +INSERT INTO `dic_district` VALUES ('230000', '黑龙江省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('230100', '哈尔滨市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230102', '道里区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230103', '南岗区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230104', '道外区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230108', '平房区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230109', '松北区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230110', '香坊区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230111', '呼兰区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230112', '阿城区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230113', '双城区', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230123', '依兰县', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230124', '方正县', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230125', '宾县', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230126', '巴彦县', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230127', '木兰县', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230128', '通河县', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230129', '延寿县', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230183', '尚志市', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230184', '五常市', '230100', '3'); +INSERT INTO `dic_district` VALUES ('230200', '齐齐哈尔市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230202', '龙沙区', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230203', '建华区', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230204', '铁锋区', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230205', '昂昂溪区', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230206', '富拉尔基区', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230207', '碾子山区', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230208', '梅里斯达斡尔族区', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230221', '龙江县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230223', '依安县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230224', '泰来县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230225', '甘南县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230227', '富裕县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230229', '克山县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230230', '克东县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230231', '拜泉县', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230281', '讷河市', '230200', '3'); +INSERT INTO `dic_district` VALUES ('230300', '鸡西市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230302', '鸡冠区', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230303', '恒山区', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230304', '滴道区', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230305', '梨树区', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230306', '城子河区', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230307', '麻山区', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230321', '鸡东县', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230381', '虎林市', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230382', '密山市', '230300', '3'); +INSERT INTO `dic_district` VALUES ('230400', '鹤岗市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230402', '向阳区', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230403', '工农区', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230404', '南山区', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230405', '兴安区', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230406', '东山区', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230407', '兴山区', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230421', '萝北县', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230422', '绥滨县', '230400', '3'); +INSERT INTO `dic_district` VALUES ('230500', '双鸭山市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230502', '尖山区', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230503', '岭东区', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230505', '四方台区', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230506', '宝山区', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230521', '集贤县', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230522', '友谊县', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230523', '宝清县', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230524', '饶河县', '230500', '3'); +INSERT INTO `dic_district` VALUES ('230600', '大庆市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230602', '萨尔图区', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230603', '龙凤区', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230604', '让胡路区', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230605', '红岗区', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230606', '大同区', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230621', '肇州县', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230622', '肇源县', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230623', '林甸县', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230624', '杜尔伯特蒙古族自治县', '230600', '3'); +INSERT INTO `dic_district` VALUES ('230700', '伊春市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230717', '伊美区', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230718', '乌翠区', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230719', '友好区', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230722', '嘉荫县', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230723', '汤旺县', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230724', '丰林县', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230725', '大箐山县', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230726', '南岔县', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230751', '金林区', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230781', '铁力市', '230700', '3'); +INSERT INTO `dic_district` VALUES ('230800', '佳木斯市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230803', '向阳区', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230804', '前进区', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230805', '东风区', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230811', '郊区', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230822', '桦南县', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230826', '桦川县', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230828', '汤原县', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230881', '同江市', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230882', '富锦市', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230883', '抚远市', '230800', '3'); +INSERT INTO `dic_district` VALUES ('230900', '七台河市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('230902', '新兴区', '230900', '3'); +INSERT INTO `dic_district` VALUES ('230903', '桃山区', '230900', '3'); +INSERT INTO `dic_district` VALUES ('230904', '茄子河区', '230900', '3'); +INSERT INTO `dic_district` VALUES ('230921', '勃利县', '230900', '3'); +INSERT INTO `dic_district` VALUES ('231000', '牡丹江市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('231002', '东安区', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231003', '阳明区', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231004', '爱民区', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231005', '西安区', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231025', '林口县', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231081', '绥芬河市', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231083', '海林市', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231084', '宁安市', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231085', '穆棱市', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231086', '东宁市', '231000', '3'); +INSERT INTO `dic_district` VALUES ('231100', '黑河市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('231102', '爱辉区', '231100', '3'); +INSERT INTO `dic_district` VALUES ('231123', '逊克县', '231100', '3'); +INSERT INTO `dic_district` VALUES ('231124', '孙吴县', '231100', '3'); +INSERT INTO `dic_district` VALUES ('231181', '北安市', '231100', '3'); +INSERT INTO `dic_district` VALUES ('231182', '五大连池市', '231100', '3'); +INSERT INTO `dic_district` VALUES ('231183', '嫩江市', '231100', '3'); +INSERT INTO `dic_district` VALUES ('231200', '绥化市', '230000', '2'); +INSERT INTO `dic_district` VALUES ('231202', '北林区', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231221', '望奎县', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231222', '兰西县', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231223', '青冈县', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231224', '庆安县', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231225', '明水县', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231226', '绥棱县', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231281', '安达市', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231282', '肇东市', '231200', '3'); +INSERT INTO `dic_district` VALUES ('231283', '海伦市', '231200', '3'); +INSERT INTO `dic_district` VALUES ('232700', '大兴安岭地区', '230000', '2'); +INSERT INTO `dic_district` VALUES ('232701', '漠河市', '232700', '3'); +INSERT INTO `dic_district` VALUES ('232718', '加格达奇区', '232700', '3'); +INSERT INTO `dic_district` VALUES ('232721', '呼玛县', '232700', '3'); +INSERT INTO `dic_district` VALUES ('232722', '塔河县', '232700', '3'); +INSERT INTO `dic_district` VALUES ('310000', '上海市', '100000', '1'); +INSERT INTO `dic_district` VALUES ('310100', '上海城区', '310000', '2'); +INSERT INTO `dic_district` VALUES ('310101', '黄浦区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310104', '徐汇区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310105', '长宁区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310106', '静安区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310107', '普陀区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310109', '虹口区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310110', '杨浦区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310112', '闵行区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310113', '宝山区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310114', '嘉定区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310115', '浦东新区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310116', '金山区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310117', '松江区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310118', '青浦区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310120', '奉贤区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('310151', '崇明区', '310100', '3'); +INSERT INTO `dic_district` VALUES ('320000', '江苏省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('320100', '南京市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320102', '玄武区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320104', '秦淮区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320105', '建邺区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320106', '鼓楼区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320111', '浦口区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320113', '栖霞区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320114', '雨花台区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320115', '江宁区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320116', '六合区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320117', '溧水区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320118', '高淳区', '320100', '3'); +INSERT INTO `dic_district` VALUES ('320200', '无锡市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320205', '锡山区', '320200', '3'); +INSERT INTO `dic_district` VALUES ('320206', '惠山区', '320200', '3'); +INSERT INTO `dic_district` VALUES ('320211', '滨湖区', '320200', '3'); +INSERT INTO `dic_district` VALUES ('320213', '梁溪区', '320200', '3'); +INSERT INTO `dic_district` VALUES ('320214', '新吴区', '320200', '3'); +INSERT INTO `dic_district` VALUES ('320281', '江阴市', '320200', '3'); +INSERT INTO `dic_district` VALUES ('320282', '宜兴市', '320200', '3'); +INSERT INTO `dic_district` VALUES ('320300', '徐州市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320302', '鼓楼区', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320303', '云龙区', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320305', '贾汪区', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320311', '泉山区', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320312', '铜山区', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320321', '丰县', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320322', '沛县', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320324', '睢宁县', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320381', '新沂市', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320382', '邳州市', '320300', '3'); +INSERT INTO `dic_district` VALUES ('320400', '常州市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320402', '天宁区', '320400', '3'); +INSERT INTO `dic_district` VALUES ('320404', '钟楼区', '320400', '3'); +INSERT INTO `dic_district` VALUES ('320411', '新北区', '320400', '3'); +INSERT INTO `dic_district` VALUES ('320412', '武进区', '320400', '3'); +INSERT INTO `dic_district` VALUES ('320413', '金坛区', '320400', '3'); +INSERT INTO `dic_district` VALUES ('320481', '溧阳市', '320400', '3'); +INSERT INTO `dic_district` VALUES ('320500', '苏州市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320505', '虎丘区', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320506', '吴中区', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320507', '相城区', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320508', '姑苏区', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320509', '吴江区', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320581', '常熟市', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320582', '张家港市', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320583', '昆山市', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320585', '太仓市', '320500', '3'); +INSERT INTO `dic_district` VALUES ('320600', '南通市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320612', '通州区', '320600', '3'); +INSERT INTO `dic_district` VALUES ('320613', '崇川区', '320600', '3'); +INSERT INTO `dic_district` VALUES ('320614', '海门区', '320600', '3'); +INSERT INTO `dic_district` VALUES ('320623', '如东县', '320600', '3'); +INSERT INTO `dic_district` VALUES ('320681', '启东市', '320600', '3'); +INSERT INTO `dic_district` VALUES ('320682', '如皋市', '320600', '3'); +INSERT INTO `dic_district` VALUES ('320685', '海安市', '320600', '3'); +INSERT INTO `dic_district` VALUES ('320700', '连云港市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320703', '连云区', '320700', '3'); +INSERT INTO `dic_district` VALUES ('320706', '海州区', '320700', '3'); +INSERT INTO `dic_district` VALUES ('320707', '赣榆区', '320700', '3'); +INSERT INTO `dic_district` VALUES ('320722', '东海县', '320700', '3'); +INSERT INTO `dic_district` VALUES ('320723', '灌云县', '320700', '3'); +INSERT INTO `dic_district` VALUES ('320724', '灌南县', '320700', '3'); +INSERT INTO `dic_district` VALUES ('320800', '淮安市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320803', '淮安区', '320800', '3'); +INSERT INTO `dic_district` VALUES ('320804', '淮阴区', '320800', '3'); +INSERT INTO `dic_district` VALUES ('320812', '清江浦区', '320800', '3'); +INSERT INTO `dic_district` VALUES ('320813', '洪泽区', '320800', '3'); +INSERT INTO `dic_district` VALUES ('320826', '涟水县', '320800', '3'); +INSERT INTO `dic_district` VALUES ('320830', '盱眙县', '320800', '3'); +INSERT INTO `dic_district` VALUES ('320831', '金湖县', '320800', '3'); +INSERT INTO `dic_district` VALUES ('320900', '盐城市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('320902', '亭湖区', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320903', '盐都区', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320904', '大丰区', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320921', '响水县', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320922', '滨海县', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320923', '阜宁县', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320924', '射阳县', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320925', '建湖县', '320900', '3'); +INSERT INTO `dic_district` VALUES ('320981', '东台市', '320900', '3'); +INSERT INTO `dic_district` VALUES ('321000', '扬州市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('321002', '广陵区', '321000', '3'); +INSERT INTO `dic_district` VALUES ('321003', '邗江区', '321000', '3'); +INSERT INTO `dic_district` VALUES ('321012', '江都区', '321000', '3'); +INSERT INTO `dic_district` VALUES ('321023', '宝应县', '321000', '3'); +INSERT INTO `dic_district` VALUES ('321081', '仪征市', '321000', '3'); +INSERT INTO `dic_district` VALUES ('321084', '高邮市', '321000', '3'); +INSERT INTO `dic_district` VALUES ('321100', '镇江市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('321102', '京口区', '321100', '3'); +INSERT INTO `dic_district` VALUES ('321111', '润州区', '321100', '3'); +INSERT INTO `dic_district` VALUES ('321112', '丹徒区', '321100', '3'); +INSERT INTO `dic_district` VALUES ('321181', '丹阳市', '321100', '3'); +INSERT INTO `dic_district` VALUES ('321182', '扬中市', '321100', '3'); +INSERT INTO `dic_district` VALUES ('321183', '句容市', '321100', '3'); +INSERT INTO `dic_district` VALUES ('321200', '泰州市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('321202', '海陵区', '321200', '3'); +INSERT INTO `dic_district` VALUES ('321203', '高港区', '321200', '3'); +INSERT INTO `dic_district` VALUES ('321204', '姜堰区', '321200', '3'); +INSERT INTO `dic_district` VALUES ('321281', '兴化市', '321200', '3'); +INSERT INTO `dic_district` VALUES ('321282', '靖江市', '321200', '3'); +INSERT INTO `dic_district` VALUES ('321283', '泰兴市', '321200', '3'); +INSERT INTO `dic_district` VALUES ('321300', '宿迁市', '320000', '2'); +INSERT INTO `dic_district` VALUES ('321302', '宿城区', '321300', '3'); +INSERT INTO `dic_district` VALUES ('321311', '宿豫区', '321300', '3'); +INSERT INTO `dic_district` VALUES ('321322', '沭阳县', '321300', '3'); +INSERT INTO `dic_district` VALUES ('321323', '泗阳县', '321300', '3'); +INSERT INTO `dic_district` VALUES ('321324', '泗洪县', '321300', '3'); +INSERT INTO `dic_district` VALUES ('330000', '浙江省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('330100', '杭州市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330102', '上城区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330105', '拱墅区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330106', '西湖区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330108', '滨江区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330109', '萧山区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330110', '余杭区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330111', '富阳区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330112', '临安区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330113', '临平区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330114', '钱塘区', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330122', '桐庐县', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330127', '淳安县', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330182', '建德市', '330100', '3'); +INSERT INTO `dic_district` VALUES ('330200', '宁波市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330203', '海曙区', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330205', '江北区', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330206', '北仑区', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330211', '镇海区', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330212', '鄞州区', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330213', '奉化区', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330225', '象山县', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330226', '宁海县', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330281', '余姚市', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330282', '慈溪市', '330200', '3'); +INSERT INTO `dic_district` VALUES ('330300', '温州市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330302', '鹿城区', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330303', '龙湾区', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330304', '瓯海区', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330305', '洞头区', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330324', '永嘉县', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330326', '平阳县', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330327', '苍南县', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330328', '文成县', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330329', '泰顺县', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330381', '瑞安市', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330382', '乐清市', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330383', '龙港市', '330300', '3'); +INSERT INTO `dic_district` VALUES ('330400', '嘉兴市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330402', '南湖区', '330400', '3'); +INSERT INTO `dic_district` VALUES ('330411', '秀洲区', '330400', '3'); +INSERT INTO `dic_district` VALUES ('330421', '嘉善县', '330400', '3'); +INSERT INTO `dic_district` VALUES ('330424', '海盐县', '330400', '3'); +INSERT INTO `dic_district` VALUES ('330481', '海宁市', '330400', '3'); +INSERT INTO `dic_district` VALUES ('330482', '平湖市', '330400', '3'); +INSERT INTO `dic_district` VALUES ('330483', '桐乡市', '330400', '3'); +INSERT INTO `dic_district` VALUES ('330500', '湖州市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330502', '吴兴区', '330500', '3'); +INSERT INTO `dic_district` VALUES ('330503', '南浔区', '330500', '3'); +INSERT INTO `dic_district` VALUES ('330521', '德清县', '330500', '3'); +INSERT INTO `dic_district` VALUES ('330522', '长兴县', '330500', '3'); +INSERT INTO `dic_district` VALUES ('330523', '安吉县', '330500', '3'); +INSERT INTO `dic_district` VALUES ('330600', '绍兴市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330602', '越城区', '330600', '3'); +INSERT INTO `dic_district` VALUES ('330603', '柯桥区', '330600', '3'); +INSERT INTO `dic_district` VALUES ('330604', '上虞区', '330600', '3'); +INSERT INTO `dic_district` VALUES ('330624', '新昌县', '330600', '3'); +INSERT INTO `dic_district` VALUES ('330681', '诸暨市', '330600', '3'); +INSERT INTO `dic_district` VALUES ('330683', '嵊州市', '330600', '3'); +INSERT INTO `dic_district` VALUES ('330700', '金华市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330702', '婺城区', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330703', '金东区', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330723', '武义县', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330726', '浦江县', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330727', '磐安县', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330781', '兰溪市', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330782', '义乌市', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330783', '东阳市', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330784', '永康市', '330700', '3'); +INSERT INTO `dic_district` VALUES ('330800', '衢州市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330802', '柯城区', '330800', '3'); +INSERT INTO `dic_district` VALUES ('330803', '衢江区', '330800', '3'); +INSERT INTO `dic_district` VALUES ('330822', '常山县', '330800', '3'); +INSERT INTO `dic_district` VALUES ('330824', '开化县', '330800', '3'); +INSERT INTO `dic_district` VALUES ('330825', '龙游县', '330800', '3'); +INSERT INTO `dic_district` VALUES ('330881', '江山市', '330800', '3'); +INSERT INTO `dic_district` VALUES ('330900', '舟山市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('330902', '定海区', '330900', '3'); +INSERT INTO `dic_district` VALUES ('330903', '普陀区', '330900', '3'); +INSERT INTO `dic_district` VALUES ('330921', '岱山县', '330900', '3'); +INSERT INTO `dic_district` VALUES ('330922', '嵊泗县', '330900', '3'); +INSERT INTO `dic_district` VALUES ('331000', '台州市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('331002', '椒江区', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331003', '黄岩区', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331004', '路桥区', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331022', '三门县', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331023', '天台县', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331024', '仙居县', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331081', '温岭市', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331082', '临海市', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331083', '玉环市', '331000', '3'); +INSERT INTO `dic_district` VALUES ('331100', '丽水市', '330000', '2'); +INSERT INTO `dic_district` VALUES ('331102', '莲都区', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331121', '青田县', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331122', '缙云县', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331123', '遂昌县', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331124', '松阳县', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331125', '云和县', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331126', '庆元县', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331127', '景宁畲族自治县', '331100', '3'); +INSERT INTO `dic_district` VALUES ('331181', '龙泉市', '331100', '3'); +INSERT INTO `dic_district` VALUES ('340000', '安徽省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('340100', '合肥市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340102', '瑶海区', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340103', '庐阳区', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340104', '蜀山区', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340111', '包河区', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340121', '长丰县', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340122', '肥东县', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340123', '肥西县', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340124', '庐江县', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340181', '巢湖市', '340100', '3'); +INSERT INTO `dic_district` VALUES ('340200', '芜湖市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340202', '镜湖区', '340200', '3'); +INSERT INTO `dic_district` VALUES ('340207', '鸠江区', '340200', '3'); +INSERT INTO `dic_district` VALUES ('340209', '弋江区', '340200', '3'); +INSERT INTO `dic_district` VALUES ('340210', '湾沚区', '340200', '3'); +INSERT INTO `dic_district` VALUES ('340212', '繁昌区', '340200', '3'); +INSERT INTO `dic_district` VALUES ('340223', '南陵县', '340200', '3'); +INSERT INTO `dic_district` VALUES ('340281', '无为市', '340200', '3'); +INSERT INTO `dic_district` VALUES ('340300', '蚌埠市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340302', '龙子湖区', '340300', '3'); +INSERT INTO `dic_district` VALUES ('340303', '蚌山区', '340300', '3'); +INSERT INTO `dic_district` VALUES ('340304', '禹会区', '340300', '3'); +INSERT INTO `dic_district` VALUES ('340311', '淮上区', '340300', '3'); +INSERT INTO `dic_district` VALUES ('340321', '怀远县', '340300', '3'); +INSERT INTO `dic_district` VALUES ('340322', '五河县', '340300', '3'); +INSERT INTO `dic_district` VALUES ('340323', '固镇县', '340300', '3'); +INSERT INTO `dic_district` VALUES ('340400', '淮南市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340402', '大通区', '340400', '3'); +INSERT INTO `dic_district` VALUES ('340403', '田家庵区', '340400', '3'); +INSERT INTO `dic_district` VALUES ('340404', '谢家集区', '340400', '3'); +INSERT INTO `dic_district` VALUES ('340405', '八公山区', '340400', '3'); +INSERT INTO `dic_district` VALUES ('340406', '潘集区', '340400', '3'); +INSERT INTO `dic_district` VALUES ('340421', '凤台县', '340400', '3'); +INSERT INTO `dic_district` VALUES ('340422', '寿县', '340400', '3'); +INSERT INTO `dic_district` VALUES ('340500', '马鞍山市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340503', '花山区', '340500', '3'); +INSERT INTO `dic_district` VALUES ('340504', '雨山区', '340500', '3'); +INSERT INTO `dic_district` VALUES ('340506', '博望区', '340500', '3'); +INSERT INTO `dic_district` VALUES ('340521', '当涂县', '340500', '3'); +INSERT INTO `dic_district` VALUES ('340522', '含山县', '340500', '3'); +INSERT INTO `dic_district` VALUES ('340523', '和县', '340500', '3'); +INSERT INTO `dic_district` VALUES ('340600', '淮北市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340602', '杜集区', '340600', '3'); +INSERT INTO `dic_district` VALUES ('340603', '相山区', '340600', '3'); +INSERT INTO `dic_district` VALUES ('340604', '烈山区', '340600', '3'); +INSERT INTO `dic_district` VALUES ('340621', '濉溪县', '340600', '3'); +INSERT INTO `dic_district` VALUES ('340700', '铜陵市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340705', '铜官区', '340700', '3'); +INSERT INTO `dic_district` VALUES ('340706', '义安区', '340700', '3'); +INSERT INTO `dic_district` VALUES ('340711', '郊区', '340700', '3'); +INSERT INTO `dic_district` VALUES ('340722', '枞阳县', '340700', '3'); +INSERT INTO `dic_district` VALUES ('340800', '安庆市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('340802', '迎江区', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340803', '大观区', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340811', '宜秀区', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340822', '怀宁县', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340825', '太湖县', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340826', '宿松县', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340827', '望江县', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340828', '岳西县', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340881', '桐城市', '340800', '3'); +INSERT INTO `dic_district` VALUES ('340882', '潜山市', '340800', '3'); +INSERT INTO `dic_district` VALUES ('341000', '黄山市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341002', '屯溪区', '341000', '3'); +INSERT INTO `dic_district` VALUES ('341003', '黄山区', '341000', '3'); +INSERT INTO `dic_district` VALUES ('341004', '徽州区', '341000', '3'); +INSERT INTO `dic_district` VALUES ('341021', '歙县', '341000', '3'); +INSERT INTO `dic_district` VALUES ('341022', '休宁县', '341000', '3'); +INSERT INTO `dic_district` VALUES ('341023', '黟县', '341000', '3'); +INSERT INTO `dic_district` VALUES ('341024', '祁门县', '341000', '3'); +INSERT INTO `dic_district` VALUES ('341100', '滁州市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341102', '琅琊区', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341103', '南谯区', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341122', '来安县', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341124', '全椒县', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341125', '定远县', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341126', '凤阳县', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341181', '天长市', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341182', '明光市', '341100', '3'); +INSERT INTO `dic_district` VALUES ('341200', '阜阳市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341202', '颍州区', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341203', '颍东区', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341204', '颍泉区', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341221', '临泉县', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341222', '太和县', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341225', '阜南县', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341226', '颍上县', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341282', '界首市', '341200', '3'); +INSERT INTO `dic_district` VALUES ('341300', '宿州市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341302', '埇桥区', '341300', '3'); +INSERT INTO `dic_district` VALUES ('341321', '砀山县', '341300', '3'); +INSERT INTO `dic_district` VALUES ('341322', '萧县', '341300', '3'); +INSERT INTO `dic_district` VALUES ('341323', '灵璧县', '341300', '3'); +INSERT INTO `dic_district` VALUES ('341324', '泗县', '341300', '3'); +INSERT INTO `dic_district` VALUES ('341500', '六安市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341502', '金安区', '341500', '3'); +INSERT INTO `dic_district` VALUES ('341503', '裕安区', '341500', '3'); +INSERT INTO `dic_district` VALUES ('341504', '叶集区', '341500', '3'); +INSERT INTO `dic_district` VALUES ('341522', '霍邱县', '341500', '3'); +INSERT INTO `dic_district` VALUES ('341523', '舒城县', '341500', '3'); +INSERT INTO `dic_district` VALUES ('341524', '金寨县', '341500', '3'); +INSERT INTO `dic_district` VALUES ('341525', '霍山县', '341500', '3'); +INSERT INTO `dic_district` VALUES ('341600', '亳州市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341602', '谯城区', '341600', '3'); +INSERT INTO `dic_district` VALUES ('341621', '涡阳县', '341600', '3'); +INSERT INTO `dic_district` VALUES ('341622', '蒙城县', '341600', '3'); +INSERT INTO `dic_district` VALUES ('341623', '利辛县', '341600', '3'); +INSERT INTO `dic_district` VALUES ('341700', '池州市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341702', '贵池区', '341700', '3'); +INSERT INTO `dic_district` VALUES ('341721', '东至县', '341700', '3'); +INSERT INTO `dic_district` VALUES ('341722', '石台县', '341700', '3'); +INSERT INTO `dic_district` VALUES ('341723', '青阳县', '341700', '3'); +INSERT INTO `dic_district` VALUES ('341800', '宣城市', '340000', '2'); +INSERT INTO `dic_district` VALUES ('341802', '宣州区', '341800', '3'); +INSERT INTO `dic_district` VALUES ('341821', '郎溪县', '341800', '3'); +INSERT INTO `dic_district` VALUES ('341823', '泾县', '341800', '3'); +INSERT INTO `dic_district` VALUES ('341824', '绩溪县', '341800', '3'); +INSERT INTO `dic_district` VALUES ('341825', '旌德县', '341800', '3'); +INSERT INTO `dic_district` VALUES ('341881', '宁国市', '341800', '3'); +INSERT INTO `dic_district` VALUES ('341882', '广德市', '341800', '3'); +INSERT INTO `dic_district` VALUES ('350000', '福建省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('350100', '福州市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350102', '鼓楼区', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350103', '台江区', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350104', '仓山区', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350105', '马尾区', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350111', '晋安区', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350112', '长乐区', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350121', '闽侯县', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350122', '连江县', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350123', '罗源县', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350124', '闽清县', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350125', '永泰县', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350128', '平潭县', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350181', '福清市', '350100', '3'); +INSERT INTO `dic_district` VALUES ('350200', '厦门市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350203', '思明区', '350200', '3'); +INSERT INTO `dic_district` VALUES ('350205', '海沧区', '350200', '3'); +INSERT INTO `dic_district` VALUES ('350206', '湖里区', '350200', '3'); +INSERT INTO `dic_district` VALUES ('350211', '集美区', '350200', '3'); +INSERT INTO `dic_district` VALUES ('350212', '同安区', '350200', '3'); +INSERT INTO `dic_district` VALUES ('350213', '翔安区', '350200', '3'); +INSERT INTO `dic_district` VALUES ('350300', '莆田市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350302', '城厢区', '350300', '3'); +INSERT INTO `dic_district` VALUES ('350303', '涵江区', '350300', '3'); +INSERT INTO `dic_district` VALUES ('350304', '荔城区', '350300', '3'); +INSERT INTO `dic_district` VALUES ('350305', '秀屿区', '350300', '3'); +INSERT INTO `dic_district` VALUES ('350322', '仙游县', '350300', '3'); +INSERT INTO `dic_district` VALUES ('350400', '三明市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350404', '三元区', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350405', '沙县区', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350421', '明溪县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350423', '清流县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350424', '宁化县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350425', '大田县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350426', '尤溪县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350428', '将乐县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350429', '泰宁县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350430', '建宁县', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350481', '永安市', '350400', '3'); +INSERT INTO `dic_district` VALUES ('350500', '泉州市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350502', '鲤城区', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350503', '丰泽区', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350504', '洛江区', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350505', '泉港区', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350521', '惠安县', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350524', '安溪县', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350525', '永春县', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350526', '德化县', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350527', '金门县', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350581', '石狮市', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350582', '晋江市', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350583', '南安市', '350500', '3'); +INSERT INTO `dic_district` VALUES ('350600', '漳州市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350602', '芗城区', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350603', '龙文区', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350604', '龙海区', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350605', '长泰区', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350622', '云霄县', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350623', '漳浦县', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350624', '诏安县', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350626', '东山县', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350627', '南靖县', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350628', '平和县', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350629', '华安县', '350600', '3'); +INSERT INTO `dic_district` VALUES ('350700', '南平市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350702', '延平区', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350703', '建阳区', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350721', '顺昌县', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350722', '浦城县', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350723', '光泽县', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350724', '松溪县', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350725', '政和县', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350781', '邵武市', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350782', '武夷山市', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350783', '建瓯市', '350700', '3'); +INSERT INTO `dic_district` VALUES ('350800', '龙岩市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350802', '新罗区', '350800', '3'); +INSERT INTO `dic_district` VALUES ('350803', '永定区', '350800', '3'); +INSERT INTO `dic_district` VALUES ('350821', '长汀县', '350800', '3'); +INSERT INTO `dic_district` VALUES ('350823', '上杭县', '350800', '3'); +INSERT INTO `dic_district` VALUES ('350824', '武平县', '350800', '3'); +INSERT INTO `dic_district` VALUES ('350825', '连城县', '350800', '3'); +INSERT INTO `dic_district` VALUES ('350881', '漳平市', '350800', '3'); +INSERT INTO `dic_district` VALUES ('350900', '宁德市', '350000', '2'); +INSERT INTO `dic_district` VALUES ('350902', '蕉城区', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350921', '霞浦县', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350922', '古田县', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350923', '屏南县', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350924', '寿宁县', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350925', '周宁县', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350926', '柘荣县', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350981', '福安市', '350900', '3'); +INSERT INTO `dic_district` VALUES ('350982', '福鼎市', '350900', '3'); +INSERT INTO `dic_district` VALUES ('360000', '江西省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('360100', '南昌市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360102', '东湖区', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360103', '西湖区', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360104', '青云谱区', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360111', '青山湖区', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360112', '新建区', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360113', '红谷滩区', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360121', '南昌县', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360123', '安义县', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360124', '进贤县', '360100', '3'); +INSERT INTO `dic_district` VALUES ('360200', '景德镇市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360202', '昌江区', '360200', '3'); +INSERT INTO `dic_district` VALUES ('360203', '珠山区', '360200', '3'); +INSERT INTO `dic_district` VALUES ('360222', '浮梁县', '360200', '3'); +INSERT INTO `dic_district` VALUES ('360281', '乐平市', '360200', '3'); +INSERT INTO `dic_district` VALUES ('360300', '萍乡市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360302', '安源区', '360300', '3'); +INSERT INTO `dic_district` VALUES ('360313', '湘东区', '360300', '3'); +INSERT INTO `dic_district` VALUES ('360321', '莲花县', '360300', '3'); +INSERT INTO `dic_district` VALUES ('360322', '上栗县', '360300', '3'); +INSERT INTO `dic_district` VALUES ('360323', '芦溪县', '360300', '3'); +INSERT INTO `dic_district` VALUES ('360400', '九江市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360402', '濂溪区', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360403', '浔阳区', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360404', '柴桑区', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360423', '武宁县', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360424', '修水县', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360425', '永修县', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360426', '德安县', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360428', '都昌县', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360429', '湖口县', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360430', '彭泽县', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360481', '瑞昌市', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360482', '共青城市', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360483', '庐山市', '360400', '3'); +INSERT INTO `dic_district` VALUES ('360500', '新余市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360502', '渝水区', '360500', '3'); +INSERT INTO `dic_district` VALUES ('360521', '分宜县', '360500', '3'); +INSERT INTO `dic_district` VALUES ('360600', '鹰潭市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360602', '月湖区', '360600', '3'); +INSERT INTO `dic_district` VALUES ('360603', '余江区', '360600', '3'); +INSERT INTO `dic_district` VALUES ('360681', '贵溪市', '360600', '3'); +INSERT INTO `dic_district` VALUES ('360700', '赣州市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360702', '章贡区', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360703', '南康区', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360704', '赣县区', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360722', '信丰县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360723', '大余县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360724', '上犹县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360725', '崇义县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360726', '安远县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360728', '定南县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360729', '全南县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360730', '宁都县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360731', '于都县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360732', '兴国县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360733', '会昌县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360734', '寻乌县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360735', '石城县', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360781', '瑞金市', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360783', '龙南市', '360700', '3'); +INSERT INTO `dic_district` VALUES ('360800', '吉安市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360802', '吉州区', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360803', '青原区', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360821', '吉安县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360822', '吉水县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360823', '峡江县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360824', '新干县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360825', '永丰县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360826', '泰和县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360827', '遂川县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360828', '万安县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360829', '安福县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360830', '永新县', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360881', '井冈山市', '360800', '3'); +INSERT INTO `dic_district` VALUES ('360900', '宜春市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('360902', '袁州区', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360921', '奉新县', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360922', '万载县', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360923', '上高县', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360924', '宜丰县', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360925', '靖安县', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360926', '铜鼓县', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360981', '丰城市', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360982', '樟树市', '360900', '3'); +INSERT INTO `dic_district` VALUES ('360983', '高安市', '360900', '3'); +INSERT INTO `dic_district` VALUES ('361000', '抚州市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('361002', '临川区', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361003', '东乡区', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361021', '南城县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361022', '黎川县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361023', '南丰县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361024', '崇仁县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361025', '乐安县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361026', '宜黄县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361027', '金溪县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361028', '资溪县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361030', '广昌县', '361000', '3'); +INSERT INTO `dic_district` VALUES ('361100', '上饶市', '360000', '2'); +INSERT INTO `dic_district` VALUES ('361102', '信州区', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361103', '广丰区', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361104', '广信区', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361123', '玉山县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361124', '铅山县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361125', '横峰县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361126', '弋阳县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361127', '余干县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361128', '鄱阳县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361129', '万年县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361130', '婺源县', '361100', '3'); +INSERT INTO `dic_district` VALUES ('361181', '德兴市', '361100', '3'); +INSERT INTO `dic_district` VALUES ('370000', '山东省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('370100', '济南市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370102', '历下区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370103', '市中区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370104', '槐荫区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370105', '天桥区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370112', '历城区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370113', '长清区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370114', '章丘区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370115', '济阳区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370116', '莱芜区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370117', '钢城区', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370124', '平阴县', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370126', '商河县', '370100', '3'); +INSERT INTO `dic_district` VALUES ('370200', '青岛市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370202', '市南区', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370203', '市北区', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370211', '黄岛区', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370212', '崂山区', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370213', '李沧区', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370214', '城阳区', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370215', '即墨区', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370281', '胶州市', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370283', '平度市', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370285', '莱西市', '370200', '3'); +INSERT INTO `dic_district` VALUES ('370300', '淄博市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370302', '淄川区', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370303', '张店区', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370304', '博山区', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370305', '临淄区', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370306', '周村区', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370321', '桓台县', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370322', '高青县', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370323', '沂源县', '370300', '3'); +INSERT INTO `dic_district` VALUES ('370400', '枣庄市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370402', '市中区', '370400', '3'); +INSERT INTO `dic_district` VALUES ('370403', '薛城区', '370400', '3'); +INSERT INTO `dic_district` VALUES ('370404', '峄城区', '370400', '3'); +INSERT INTO `dic_district` VALUES ('370405', '台儿庄区', '370400', '3'); +INSERT INTO `dic_district` VALUES ('370406', '山亭区', '370400', '3'); +INSERT INTO `dic_district` VALUES ('370481', '滕州市', '370400', '3'); +INSERT INTO `dic_district` VALUES ('370500', '东营市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370502', '东营区', '370500', '3'); +INSERT INTO `dic_district` VALUES ('370503', '河口区', '370500', '3'); +INSERT INTO `dic_district` VALUES ('370505', '垦利区', '370500', '3'); +INSERT INTO `dic_district` VALUES ('370522', '利津县', '370500', '3'); +INSERT INTO `dic_district` VALUES ('370523', '广饶县', '370500', '3'); +INSERT INTO `dic_district` VALUES ('370600', '烟台市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370602', '芝罘区', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370611', '福山区', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370612', '牟平区', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370613', '莱山区', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370614', '蓬莱区', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370681', '龙口市', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370682', '莱阳市', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370683', '莱州市', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370685', '招远市', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370686', '栖霞市', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370687', '海阳市', '370600', '3'); +INSERT INTO `dic_district` VALUES ('370700', '潍坊市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370702', '潍城区', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370703', '寒亭区', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370704', '坊子区', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370705', '奎文区', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370724', '临朐县', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370725', '昌乐县', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370781', '青州市', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370782', '诸城市', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370783', '寿光市', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370784', '安丘市', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370785', '高密市', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370786', '昌邑市', '370700', '3'); +INSERT INTO `dic_district` VALUES ('370800', '济宁市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370811', '任城区', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370812', '兖州区', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370826', '微山县', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370827', '鱼台县', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370828', '金乡县', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370829', '嘉祥县', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370830', '汶上县', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370831', '泗水县', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370832', '梁山县', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370881', '曲阜市', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370883', '邹城市', '370800', '3'); +INSERT INTO `dic_district` VALUES ('370900', '泰安市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('370902', '泰山区', '370900', '3'); +INSERT INTO `dic_district` VALUES ('370911', '岱岳区', '370900', '3'); +INSERT INTO `dic_district` VALUES ('370921', '宁阳县', '370900', '3'); +INSERT INTO `dic_district` VALUES ('370923', '东平县', '370900', '3'); +INSERT INTO `dic_district` VALUES ('370982', '新泰市', '370900', '3'); +INSERT INTO `dic_district` VALUES ('370983', '肥城市', '370900', '3'); +INSERT INTO `dic_district` VALUES ('371000', '威海市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('371002', '环翠区', '371000', '3'); +INSERT INTO `dic_district` VALUES ('371003', '文登区', '371000', '3'); +INSERT INTO `dic_district` VALUES ('371082', '荣成市', '371000', '3'); +INSERT INTO `dic_district` VALUES ('371083', '乳山市', '371000', '3'); +INSERT INTO `dic_district` VALUES ('371100', '日照市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('371102', '东港区', '371100', '3'); +INSERT INTO `dic_district` VALUES ('371103', '岚山区', '371100', '3'); +INSERT INTO `dic_district` VALUES ('371121', '五莲县', '371100', '3'); +INSERT INTO `dic_district` VALUES ('371122', '莒县', '371100', '3'); +INSERT INTO `dic_district` VALUES ('371300', '临沂市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('371302', '兰山区', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371311', '罗庄区', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371312', '河东区', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371321', '沂南县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371322', '郯城县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371323', '沂水县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371324', '兰陵县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371325', '费县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371326', '平邑县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371327', '莒南县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371328', '蒙阴县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371329', '临沭县', '371300', '3'); +INSERT INTO `dic_district` VALUES ('371400', '德州市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('371402', '德城区', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371403', '陵城区', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371422', '宁津县', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371423', '庆云县', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371424', '临邑县', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371425', '齐河县', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371426', '平原县', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371427', '夏津县', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371428', '武城县', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371481', '乐陵市', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371482', '禹城市', '371400', '3'); +INSERT INTO `dic_district` VALUES ('371500', '聊城市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('371502', '东昌府区', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371503', '茌平区', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371521', '阳谷县', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371522', '莘县', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371524', '东阿县', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371525', '冠县', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371526', '高唐县', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371581', '临清市', '371500', '3'); +INSERT INTO `dic_district` VALUES ('371600', '滨州市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('371602', '滨城区', '371600', '3'); +INSERT INTO `dic_district` VALUES ('371603', '沾化区', '371600', '3'); +INSERT INTO `dic_district` VALUES ('371621', '惠民县', '371600', '3'); +INSERT INTO `dic_district` VALUES ('371622', '阳信县', '371600', '3'); +INSERT INTO `dic_district` VALUES ('371623', '无棣县', '371600', '3'); +INSERT INTO `dic_district` VALUES ('371625', '博兴县', '371600', '3'); +INSERT INTO `dic_district` VALUES ('371681', '邹平市', '371600', '3'); +INSERT INTO `dic_district` VALUES ('371700', '菏泽市', '370000', '2'); +INSERT INTO `dic_district` VALUES ('371702', '牡丹区', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371703', '定陶区', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371721', '曹县', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371722', '单县', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371723', '成武县', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371724', '巨野县', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371725', '郓城县', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371726', '鄄城县', '371700', '3'); +INSERT INTO `dic_district` VALUES ('371728', '东明县', '371700', '3'); +INSERT INTO `dic_district` VALUES ('410000', '河南省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('410100', '郑州市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410102', '中原区', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410103', '二七区', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410104', '管城回族区', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410105', '金水区', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410106', '上街区', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410108', '惠济区', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410122', '中牟县', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410181', '巩义市', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410182', '荥阳市', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410183', '新密市', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410184', '新郑市', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410185', '登封市', '410100', '3'); +INSERT INTO `dic_district` VALUES ('410200', '开封市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410202', '龙亭区', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410203', '顺河回族区', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410204', '鼓楼区', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410205', '禹王台区', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410212', '祥符区', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410221', '杞县', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410222', '通许县', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410223', '尉氏县', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410225', '兰考县', '410200', '3'); +INSERT INTO `dic_district` VALUES ('410300', '洛阳市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410302', '老城区', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410303', '西工区', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410304', '瀍河回族区', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410305', '涧西区', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410307', '偃师区', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410308', '孟津区', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410311', '洛龙区', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410323', '新安县', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410324', '栾川县', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410325', '嵩县', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410326', '汝阳县', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410327', '宜阳县', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410328', '洛宁县', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410329', '伊川县', '410300', '3'); +INSERT INTO `dic_district` VALUES ('410400', '平顶山市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410402', '新华区', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410403', '卫东区', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410404', '石龙区', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410411', '湛河区', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410421', '宝丰县', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410422', '叶县', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410423', '鲁山县', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410425', '郏县', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410481', '舞钢市', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410482', '汝州市', '410400', '3'); +INSERT INTO `dic_district` VALUES ('410500', '安阳市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410502', '文峰区', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410503', '北关区', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410505', '殷都区', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410506', '龙安区', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410522', '安阳县', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410523', '汤阴县', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410526', '滑县', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410527', '内黄县', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410581', '林州市', '410500', '3'); +INSERT INTO `dic_district` VALUES ('410600', '鹤壁市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410602', '鹤山区', '410600', '3'); +INSERT INTO `dic_district` VALUES ('410603', '山城区', '410600', '3'); +INSERT INTO `dic_district` VALUES ('410611', '淇滨区', '410600', '3'); +INSERT INTO `dic_district` VALUES ('410621', '浚县', '410600', '3'); +INSERT INTO `dic_district` VALUES ('410622', '淇县', '410600', '3'); +INSERT INTO `dic_district` VALUES ('410700', '新乡市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410702', '红旗区', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410703', '卫滨区', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410704', '凤泉区', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410711', '牧野区', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410721', '新乡县', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410724', '获嘉县', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410725', '原阳县', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410726', '延津县', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410727', '封丘县', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410781', '卫辉市', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410782', '辉县市', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410783', '长垣市', '410700', '3'); +INSERT INTO `dic_district` VALUES ('410800', '焦作市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410802', '解放区', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410803', '中站区', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410804', '马村区', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410811', '山阳区', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410821', '修武县', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410822', '博爱县', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410823', '武陟县', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410825', '温县', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410882', '沁阳市', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410883', '孟州市', '410800', '3'); +INSERT INTO `dic_district` VALUES ('410900', '濮阳市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('410902', '华龙区', '410900', '3'); +INSERT INTO `dic_district` VALUES ('410922', '清丰县', '410900', '3'); +INSERT INTO `dic_district` VALUES ('410923', '南乐县', '410900', '3'); +INSERT INTO `dic_district` VALUES ('410926', '范县', '410900', '3'); +INSERT INTO `dic_district` VALUES ('410927', '台前县', '410900', '3'); +INSERT INTO `dic_district` VALUES ('410928', '濮阳县', '410900', '3'); +INSERT INTO `dic_district` VALUES ('411000', '许昌市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411002', '魏都区', '411000', '3'); +INSERT INTO `dic_district` VALUES ('411003', '建安区', '411000', '3'); +INSERT INTO `dic_district` VALUES ('411024', '鄢陵县', '411000', '3'); +INSERT INTO `dic_district` VALUES ('411025', '襄城县', '411000', '3'); +INSERT INTO `dic_district` VALUES ('411081', '禹州市', '411000', '3'); +INSERT INTO `dic_district` VALUES ('411082', '长葛市', '411000', '3'); +INSERT INTO `dic_district` VALUES ('411100', '漯河市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411102', '源汇区', '411100', '3'); +INSERT INTO `dic_district` VALUES ('411103', '郾城区', '411100', '3'); +INSERT INTO `dic_district` VALUES ('411104', '召陵区', '411100', '3'); +INSERT INTO `dic_district` VALUES ('411121', '舞阳县', '411100', '3'); +INSERT INTO `dic_district` VALUES ('411122', '临颍县', '411100', '3'); +INSERT INTO `dic_district` VALUES ('411200', '三门峡市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411202', '湖滨区', '411200', '3'); +INSERT INTO `dic_district` VALUES ('411203', '陕州区', '411200', '3'); +INSERT INTO `dic_district` VALUES ('411221', '渑池县', '411200', '3'); +INSERT INTO `dic_district` VALUES ('411224', '卢氏县', '411200', '3'); +INSERT INTO `dic_district` VALUES ('411281', '义马市', '411200', '3'); +INSERT INTO `dic_district` VALUES ('411282', '灵宝市', '411200', '3'); +INSERT INTO `dic_district` VALUES ('411300', '南阳市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411302', '宛城区', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411303', '卧龙区', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411321', '南召县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411322', '方城县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411323', '西峡县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411324', '镇平县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411325', '内乡县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411326', '淅川县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411327', '社旗县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411328', '唐河县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411329', '新野县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411330', '桐柏县', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411381', '邓州市', '411300', '3'); +INSERT INTO `dic_district` VALUES ('411400', '商丘市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411402', '梁园区', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411403', '睢阳区', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411421', '民权县', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411422', '睢县', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411423', '宁陵县', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411424', '柘城县', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411425', '虞城县', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411426', '夏邑县', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411481', '永城市', '411400', '3'); +INSERT INTO `dic_district` VALUES ('411500', '信阳市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411502', '浉河区', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411503', '平桥区', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411521', '罗山县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411522', '光山县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411523', '新县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411524', '商城县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411525', '固始县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411526', '潢川县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411527', '淮滨县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411528', '息县', '411500', '3'); +INSERT INTO `dic_district` VALUES ('411600', '周口市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411602', '川汇区', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411603', '淮阳区', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411621', '扶沟县', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411622', '西华县', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411623', '商水县', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411624', '沈丘县', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411625', '郸城县', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411627', '太康县', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411628', '鹿邑县', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411681', '项城市', '411600', '3'); +INSERT INTO `dic_district` VALUES ('411700', '驻马店市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('411702', '驿城区', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411721', '西平县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411722', '上蔡县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411723', '平舆县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411724', '正阳县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411725', '确山县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411726', '泌阳县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411727', '汝南县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411728', '遂平县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('411729', '新蔡县', '411700', '3'); +INSERT INTO `dic_district` VALUES ('419001', '济源市', '410000', '2'); +INSERT INTO `dic_district` VALUES ('420000', '湖北省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('420100', '武汉市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420102', '江岸区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420103', '江汉区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420104', '硚口区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420105', '汉阳区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420106', '武昌区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420107', '青山区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420111', '洪山区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420112', '东西湖区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420113', '汉南区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420114', '蔡甸区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420115', '江夏区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420116', '黄陂区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420117', '新洲区', '420100', '3'); +INSERT INTO `dic_district` VALUES ('420200', '黄石市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420202', '黄石港区', '420200', '3'); +INSERT INTO `dic_district` VALUES ('420203', '西塞山区', '420200', '3'); +INSERT INTO `dic_district` VALUES ('420204', '下陆区', '420200', '3'); +INSERT INTO `dic_district` VALUES ('420205', '铁山区', '420200', '3'); +INSERT INTO `dic_district` VALUES ('420222', '阳新县', '420200', '3'); +INSERT INTO `dic_district` VALUES ('420281', '大冶市', '420200', '3'); +INSERT INTO `dic_district` VALUES ('420300', '十堰市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420302', '茅箭区', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420303', '张湾区', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420304', '郧阳区', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420322', '郧西县', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420323', '竹山县', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420324', '竹溪县', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420325', '房县', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420381', '丹江口市', '420300', '3'); +INSERT INTO `dic_district` VALUES ('420500', '宜昌市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420502', '西陵区', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420503', '伍家岗区', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420504', '点军区', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420505', '猇亭区', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420506', '夷陵区', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420525', '远安县', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420526', '兴山县', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420527', '秭归县', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420528', '长阳土家族自治县', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420529', '五峰土家族自治县', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420581', '宜都市', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420582', '当阳市', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420583', '枝江市', '420500', '3'); +INSERT INTO `dic_district` VALUES ('420600', '襄阳市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420602', '襄城区', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420606', '樊城区', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420607', '襄州区', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420624', '南漳县', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420625', '谷城县', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420626', '保康县', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420682', '老河口市', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420683', '枣阳市', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420684', '宜城市', '420600', '3'); +INSERT INTO `dic_district` VALUES ('420700', '鄂州市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420702', '梁子湖区', '420700', '3'); +INSERT INTO `dic_district` VALUES ('420703', '华容区', '420700', '3'); +INSERT INTO `dic_district` VALUES ('420704', '鄂城区', '420700', '3'); +INSERT INTO `dic_district` VALUES ('420800', '荆门市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420802', '东宝区', '420800', '3'); +INSERT INTO `dic_district` VALUES ('420804', '掇刀区', '420800', '3'); +INSERT INTO `dic_district` VALUES ('420822', '沙洋县', '420800', '3'); +INSERT INTO `dic_district` VALUES ('420881', '钟祥市', '420800', '3'); +INSERT INTO `dic_district` VALUES ('420882', '京山市', '420800', '3'); +INSERT INTO `dic_district` VALUES ('420900', '孝感市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('420902', '孝南区', '420900', '3'); +INSERT INTO `dic_district` VALUES ('420921', '孝昌县', '420900', '3'); +INSERT INTO `dic_district` VALUES ('420922', '大悟县', '420900', '3'); +INSERT INTO `dic_district` VALUES ('420923', '云梦县', '420900', '3'); +INSERT INTO `dic_district` VALUES ('420981', '应城市', '420900', '3'); +INSERT INTO `dic_district` VALUES ('420982', '安陆市', '420900', '3'); +INSERT INTO `dic_district` VALUES ('420984', '汉川市', '420900', '3'); +INSERT INTO `dic_district` VALUES ('421000', '荆州市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('421002', '沙市区', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421003', '荆州区', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421022', '公安县', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421024', '江陵县', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421081', '石首市', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421083', '洪湖市', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421087', '松滋市', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421088', '监利市', '421000', '3'); +INSERT INTO `dic_district` VALUES ('421100', '黄冈市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('421102', '黄州区', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421121', '团风县', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421122', '红安县', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421123', '罗田县', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421124', '英山县', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421125', '浠水县', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421126', '蕲春县', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421127', '黄梅县', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421181', '麻城市', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421182', '武穴市', '421100', '3'); +INSERT INTO `dic_district` VALUES ('421200', '咸宁市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('421202', '咸安区', '421200', '3'); +INSERT INTO `dic_district` VALUES ('421221', '嘉鱼县', '421200', '3'); +INSERT INTO `dic_district` VALUES ('421222', '通城县', '421200', '3'); +INSERT INTO `dic_district` VALUES ('421223', '崇阳县', '421200', '3'); +INSERT INTO `dic_district` VALUES ('421224', '通山县', '421200', '3'); +INSERT INTO `dic_district` VALUES ('421281', '赤壁市', '421200', '3'); +INSERT INTO `dic_district` VALUES ('421300', '随州市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('421303', '曾都区', '421300', '3'); +INSERT INTO `dic_district` VALUES ('421321', '随县', '421300', '3'); +INSERT INTO `dic_district` VALUES ('421381', '广水市', '421300', '3'); +INSERT INTO `dic_district` VALUES ('422800', '恩施土家族苗族自治州', '420000', '2'); +INSERT INTO `dic_district` VALUES ('422801', '恩施市', '422800', '3'); +INSERT INTO `dic_district` VALUES ('422802', '利川市', '422800', '3'); +INSERT INTO `dic_district` VALUES ('422822', '建始县', '422800', '3'); +INSERT INTO `dic_district` VALUES ('422823', '巴东县', '422800', '3'); +INSERT INTO `dic_district` VALUES ('422825', '宣恩县', '422800', '3'); +INSERT INTO `dic_district` VALUES ('422826', '咸丰县', '422800', '3'); +INSERT INTO `dic_district` VALUES ('422827', '来凤县', '422800', '3'); +INSERT INTO `dic_district` VALUES ('422828', '鹤峰县', '422800', '3'); +INSERT INTO `dic_district` VALUES ('429004', '仙桃市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('429005', '潜江市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('429006', '天门市', '420000', '2'); +INSERT INTO `dic_district` VALUES ('429021', '神农架林区', '420000', '2'); +INSERT INTO `dic_district` VALUES ('430000', '湖南省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('430100', '长沙市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430102', '芙蓉区', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430103', '天心区', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430104', '岳麓区', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430105', '开福区', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430111', '雨花区', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430112', '望城区', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430121', '长沙县', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430181', '浏阳市', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430182', '宁乡市', '430100', '3'); +INSERT INTO `dic_district` VALUES ('430200', '株洲市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430202', '荷塘区', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430203', '芦淞区', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430204', '石峰区', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430211', '天元区', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430212', '渌口区', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430223', '攸县', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430224', '茶陵县', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430225', '炎陵县', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430281', '醴陵市', '430200', '3'); +INSERT INTO `dic_district` VALUES ('430300', '湘潭市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430302', '雨湖区', '430300', '3'); +INSERT INTO `dic_district` VALUES ('430304', '岳塘区', '430300', '3'); +INSERT INTO `dic_district` VALUES ('430321', '湘潭县', '430300', '3'); +INSERT INTO `dic_district` VALUES ('430381', '湘乡市', '430300', '3'); +INSERT INTO `dic_district` VALUES ('430382', '韶山市', '430300', '3'); +INSERT INTO `dic_district` VALUES ('430400', '衡阳市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430405', '珠晖区', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430406', '雁峰区', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430407', '石鼓区', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430408', '蒸湘区', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430412', '南岳区', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430421', '衡阳县', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430422', '衡南县', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430423', '衡山县', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430424', '衡东县', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430426', '祁东县', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430481', '耒阳市', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430482', '常宁市', '430400', '3'); +INSERT INTO `dic_district` VALUES ('430500', '邵阳市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430502', '双清区', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430503', '大祥区', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430511', '北塔区', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430522', '新邵县', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430523', '邵阳县', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430524', '隆回县', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430525', '洞口县', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430527', '绥宁县', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430528', '新宁县', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430529', '城步苗族自治县', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430581', '武冈市', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430582', '邵东市', '430500', '3'); +INSERT INTO `dic_district` VALUES ('430600', '岳阳市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430602', '岳阳楼区', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430603', '云溪区', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430611', '君山区', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430621', '岳阳县', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430623', '华容县', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430624', '湘阴县', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430626', '平江县', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430681', '汨罗市', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430682', '临湘市', '430600', '3'); +INSERT INTO `dic_district` VALUES ('430700', '常德市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430702', '武陵区', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430703', '鼎城区', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430721', '安乡县', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430722', '汉寿县', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430723', '澧县', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430724', '临澧县', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430725', '桃源县', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430726', '石门县', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430781', '津市市', '430700', '3'); +INSERT INTO `dic_district` VALUES ('430800', '张家界市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430802', '永定区', '430800', '3'); +INSERT INTO `dic_district` VALUES ('430811', '武陵源区', '430800', '3'); +INSERT INTO `dic_district` VALUES ('430821', '慈利县', '430800', '3'); +INSERT INTO `dic_district` VALUES ('430822', '桑植县', '430800', '3'); +INSERT INTO `dic_district` VALUES ('430900', '益阳市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('430902', '资阳区', '430900', '3'); +INSERT INTO `dic_district` VALUES ('430903', '赫山区', '430900', '3'); +INSERT INTO `dic_district` VALUES ('430921', '南县', '430900', '3'); +INSERT INTO `dic_district` VALUES ('430922', '桃江县', '430900', '3'); +INSERT INTO `dic_district` VALUES ('430923', '安化县', '430900', '3'); +INSERT INTO `dic_district` VALUES ('430981', '沅江市', '430900', '3'); +INSERT INTO `dic_district` VALUES ('431000', '郴州市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('431002', '北湖区', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431003', '苏仙区', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431021', '桂阳县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431022', '宜章县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431023', '永兴县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431024', '嘉禾县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431025', '临武县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431026', '汝城县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431027', '桂东县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431028', '安仁县', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431081', '资兴市', '431000', '3'); +INSERT INTO `dic_district` VALUES ('431100', '永州市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('431102', '零陵区', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431103', '冷水滩区', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431122', '东安县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431123', '双牌县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431124', '道县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431125', '江永县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431126', '宁远县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431127', '蓝山县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431128', '新田县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431129', '江华瑶族自治县', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431181', '祁阳市', '431100', '3'); +INSERT INTO `dic_district` VALUES ('431200', '怀化市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('431202', '鹤城区', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431221', '中方县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431222', '沅陵县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431223', '辰溪县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431224', '溆浦县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431225', '会同县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431226', '麻阳苗族自治县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431227', '新晃侗族自治县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431228', '芷江侗族自治县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431229', '靖州苗族侗族自治县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431230', '通道侗族自治县', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431281', '洪江市', '431200', '3'); +INSERT INTO `dic_district` VALUES ('431300', '娄底市', '430000', '2'); +INSERT INTO `dic_district` VALUES ('431302', '娄星区', '431300', '3'); +INSERT INTO `dic_district` VALUES ('431321', '双峰县', '431300', '3'); +INSERT INTO `dic_district` VALUES ('431322', '新化县', '431300', '3'); +INSERT INTO `dic_district` VALUES ('431381', '冷水江市', '431300', '3'); +INSERT INTO `dic_district` VALUES ('431382', '涟源市', '431300', '3'); +INSERT INTO `dic_district` VALUES ('433100', '湘西土家族苗族自治州', '430000', '2'); +INSERT INTO `dic_district` VALUES ('433101', '吉首市', '433100', '3'); +INSERT INTO `dic_district` VALUES ('433122', '泸溪县', '433100', '3'); +INSERT INTO `dic_district` VALUES ('433123', '凤凰县', '433100', '3'); +INSERT INTO `dic_district` VALUES ('433124', '花垣县', '433100', '3'); +INSERT INTO `dic_district` VALUES ('433125', '保靖县', '433100', '3'); +INSERT INTO `dic_district` VALUES ('433126', '古丈县', '433100', '3'); +INSERT INTO `dic_district` VALUES ('433127', '永顺县', '433100', '3'); +INSERT INTO `dic_district` VALUES ('433130', '龙山县', '433100', '3'); +INSERT INTO `dic_district` VALUES ('440000', '广东省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('440100', '广州市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440103', '荔湾区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440104', '越秀区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440105', '海珠区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440106', '天河区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440111', '白云区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440112', '黄埔区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440113', '番禺区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440114', '花都区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440115', '南沙区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440117', '从化区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440118', '增城区', '440100', '3'); +INSERT INTO `dic_district` VALUES ('440200', '韶关市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440203', '武江区', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440204', '浈江区', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440205', '曲江区', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440222', '始兴县', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440224', '仁化县', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440229', '翁源县', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440232', '乳源瑶族自治县', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440233', '新丰县', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440281', '乐昌市', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440282', '南雄市', '440200', '3'); +INSERT INTO `dic_district` VALUES ('440300', '深圳市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440303', '罗湖区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440304', '福田区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440305', '南山区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440306', '宝安区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440307', '龙岗区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440308', '盐田区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440309', '龙华区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440310', '坪山区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440311', '光明区', '440300', '3'); +INSERT INTO `dic_district` VALUES ('440400', '珠海市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440402', '香洲区', '440400', '3'); +INSERT INTO `dic_district` VALUES ('440403', '斗门区', '440400', '3'); +INSERT INTO `dic_district` VALUES ('440404', '金湾区', '440400', '3'); +INSERT INTO `dic_district` VALUES ('440500', '汕头市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440507', '龙湖区', '440500', '3'); +INSERT INTO `dic_district` VALUES ('440511', '金平区', '440500', '3'); +INSERT INTO `dic_district` VALUES ('440512', '濠江区', '440500', '3'); +INSERT INTO `dic_district` VALUES ('440513', '潮阳区', '440500', '3'); +INSERT INTO `dic_district` VALUES ('440514', '潮南区', '440500', '3'); +INSERT INTO `dic_district` VALUES ('440515', '澄海区', '440500', '3'); +INSERT INTO `dic_district` VALUES ('440523', '南澳县', '440500', '3'); +INSERT INTO `dic_district` VALUES ('440600', '佛山市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440604', '禅城区', '440600', '3'); +INSERT INTO `dic_district` VALUES ('440605', '南海区', '440600', '3'); +INSERT INTO `dic_district` VALUES ('440606', '顺德区', '440600', '3'); +INSERT INTO `dic_district` VALUES ('440607', '三水区', '440600', '3'); +INSERT INTO `dic_district` VALUES ('440608', '高明区', '440600', '3'); +INSERT INTO `dic_district` VALUES ('440700', '江门市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440703', '蓬江区', '440700', '3'); +INSERT INTO `dic_district` VALUES ('440704', '江海区', '440700', '3'); +INSERT INTO `dic_district` VALUES ('440705', '新会区', '440700', '3'); +INSERT INTO `dic_district` VALUES ('440781', '台山市', '440700', '3'); +INSERT INTO `dic_district` VALUES ('440783', '开平市', '440700', '3'); +INSERT INTO `dic_district` VALUES ('440784', '鹤山市', '440700', '3'); +INSERT INTO `dic_district` VALUES ('440785', '恩平市', '440700', '3'); +INSERT INTO `dic_district` VALUES ('440800', '湛江市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440802', '赤坎区', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440803', '霞山区', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440804', '坡头区', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440811', '麻章区', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440823', '遂溪县', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440825', '徐闻县', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440881', '廉江市', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440882', '雷州市', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440883', '吴川市', '440800', '3'); +INSERT INTO `dic_district` VALUES ('440900', '茂名市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('440902', '茂南区', '440900', '3'); +INSERT INTO `dic_district` VALUES ('440904', '电白区', '440900', '3'); +INSERT INTO `dic_district` VALUES ('440981', '高州市', '440900', '3'); +INSERT INTO `dic_district` VALUES ('440982', '化州市', '440900', '3'); +INSERT INTO `dic_district` VALUES ('440983', '信宜市', '440900', '3'); +INSERT INTO `dic_district` VALUES ('441200', '肇庆市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('441202', '端州区', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441203', '鼎湖区', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441204', '高要区', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441223', '广宁县', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441224', '怀集县', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441225', '封开县', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441226', '德庆县', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441284', '四会市', '441200', '3'); +INSERT INTO `dic_district` VALUES ('441300', '惠州市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('441302', '惠城区', '441300', '3'); +INSERT INTO `dic_district` VALUES ('441303', '惠阳区', '441300', '3'); +INSERT INTO `dic_district` VALUES ('441322', '博罗县', '441300', '3'); +INSERT INTO `dic_district` VALUES ('441323', '惠东县', '441300', '3'); +INSERT INTO `dic_district` VALUES ('441324', '龙门县', '441300', '3'); +INSERT INTO `dic_district` VALUES ('441400', '梅州市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('441402', '梅江区', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441403', '梅县区', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441422', '大埔县', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441423', '丰顺县', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441424', '五华县', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441426', '平远县', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441427', '蕉岭县', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441481', '兴宁市', '441400', '3'); +INSERT INTO `dic_district` VALUES ('441500', '汕尾市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('441502', '城区', '441500', '3'); +INSERT INTO `dic_district` VALUES ('441521', '海丰县', '441500', '3'); +INSERT INTO `dic_district` VALUES ('441523', '陆河县', '441500', '3'); +INSERT INTO `dic_district` VALUES ('441581', '陆丰市', '441500', '3'); +INSERT INTO `dic_district` VALUES ('441600', '河源市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('441602', '源城区', '441600', '3'); +INSERT INTO `dic_district` VALUES ('441621', '紫金县', '441600', '3'); +INSERT INTO `dic_district` VALUES ('441622', '龙川县', '441600', '3'); +INSERT INTO `dic_district` VALUES ('441623', '连平县', '441600', '3'); +INSERT INTO `dic_district` VALUES ('441624', '和平县', '441600', '3'); +INSERT INTO `dic_district` VALUES ('441625', '东源县', '441600', '3'); +INSERT INTO `dic_district` VALUES ('441700', '阳江市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('441702', '江城区', '441700', '3'); +INSERT INTO `dic_district` VALUES ('441704', '阳东区', '441700', '3'); +INSERT INTO `dic_district` VALUES ('441721', '阳西县', '441700', '3'); +INSERT INTO `dic_district` VALUES ('441781', '阳春市', '441700', '3'); +INSERT INTO `dic_district` VALUES ('441800', '清远市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('441802', '清城区', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441803', '清新区', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441821', '佛冈县', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441823', '阳山县', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441825', '连山壮族瑶族自治县', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441826', '连南瑶族自治县', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441881', '英德市', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441882', '连州市', '441800', '3'); +INSERT INTO `dic_district` VALUES ('441900', '东莞市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('442000', '中山市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('445100', '潮州市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('445102', '湘桥区', '445100', '3'); +INSERT INTO `dic_district` VALUES ('445103', '潮安区', '445100', '3'); +INSERT INTO `dic_district` VALUES ('445122', '饶平县', '445100', '3'); +INSERT INTO `dic_district` VALUES ('445200', '揭阳市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('445202', '榕城区', '445200', '3'); +INSERT INTO `dic_district` VALUES ('445203', '揭东区', '445200', '3'); +INSERT INTO `dic_district` VALUES ('445222', '揭西县', '445200', '3'); +INSERT INTO `dic_district` VALUES ('445224', '惠来县', '445200', '3'); +INSERT INTO `dic_district` VALUES ('445281', '普宁市', '445200', '3'); +INSERT INTO `dic_district` VALUES ('445300', '云浮市', '440000', '2'); +INSERT INTO `dic_district` VALUES ('445302', '云城区', '445300', '3'); +INSERT INTO `dic_district` VALUES ('445303', '云安区', '445300', '3'); +INSERT INTO `dic_district` VALUES ('445321', '新兴县', '445300', '3'); +INSERT INTO `dic_district` VALUES ('445322', '郁南县', '445300', '3'); +INSERT INTO `dic_district` VALUES ('445381', '罗定市', '445300', '3'); +INSERT INTO `dic_district` VALUES ('450000', '广西壮族自治区', '100000', '1'); +INSERT INTO `dic_district` VALUES ('450100', '南宁市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450102', '兴宁区', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450103', '青秀区', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450105', '江南区', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450107', '西乡塘区', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450108', '良庆区', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450109', '邕宁区', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450110', '武鸣区', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450123', '隆安县', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450124', '马山县', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450125', '上林县', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450126', '宾阳县', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450181', '横州市', '450100', '3'); +INSERT INTO `dic_district` VALUES ('450200', '柳州市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450202', '城中区', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450203', '鱼峰区', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450204', '柳南区', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450205', '柳北区', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450206', '柳江区', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450222', '柳城县', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450223', '鹿寨县', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450224', '融安县', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450225', '融水苗族自治县', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450226', '三江侗族自治县', '450200', '3'); +INSERT INTO `dic_district` VALUES ('450300', '桂林市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450302', '秀峰区', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450303', '叠彩区', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450304', '象山区', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450305', '七星区', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450311', '雁山区', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450312', '临桂区', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450321', '阳朔县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450323', '灵川县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450324', '全州县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450325', '兴安县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450326', '永福县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450327', '灌阳县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450328', '龙胜各族自治县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450329', '资源县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450330', '平乐县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450332', '恭城瑶族自治县', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450381', '荔浦市', '450300', '3'); +INSERT INTO `dic_district` VALUES ('450400', '梧州市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450403', '万秀区', '450400', '3'); +INSERT INTO `dic_district` VALUES ('450405', '长洲区', '450400', '3'); +INSERT INTO `dic_district` VALUES ('450406', '龙圩区', '450400', '3'); +INSERT INTO `dic_district` VALUES ('450421', '苍梧县', '450400', '3'); +INSERT INTO `dic_district` VALUES ('450422', '藤县', '450400', '3'); +INSERT INTO `dic_district` VALUES ('450423', '蒙山县', '450400', '3'); +INSERT INTO `dic_district` VALUES ('450481', '岑溪市', '450400', '3'); +INSERT INTO `dic_district` VALUES ('450500', '北海市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450502', '海城区', '450500', '3'); +INSERT INTO `dic_district` VALUES ('450503', '银海区', '450500', '3'); +INSERT INTO `dic_district` VALUES ('450512', '铁山港区', '450500', '3'); +INSERT INTO `dic_district` VALUES ('450521', '合浦县', '450500', '3'); +INSERT INTO `dic_district` VALUES ('450600', '防城港市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450602', '港口区', '450600', '3'); +INSERT INTO `dic_district` VALUES ('450603', '防城区', '450600', '3'); +INSERT INTO `dic_district` VALUES ('450621', '上思县', '450600', '3'); +INSERT INTO `dic_district` VALUES ('450681', '东兴市', '450600', '3'); +INSERT INTO `dic_district` VALUES ('450700', '钦州市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450702', '钦南区', '450700', '3'); +INSERT INTO `dic_district` VALUES ('450703', '钦北区', '450700', '3'); +INSERT INTO `dic_district` VALUES ('450721', '灵山县', '450700', '3'); +INSERT INTO `dic_district` VALUES ('450722', '浦北县', '450700', '3'); +INSERT INTO `dic_district` VALUES ('450800', '贵港市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450802', '港北区', '450800', '3'); +INSERT INTO `dic_district` VALUES ('450803', '港南区', '450800', '3'); +INSERT INTO `dic_district` VALUES ('450804', '覃塘区', '450800', '3'); +INSERT INTO `dic_district` VALUES ('450821', '平南县', '450800', '3'); +INSERT INTO `dic_district` VALUES ('450881', '桂平市', '450800', '3'); +INSERT INTO `dic_district` VALUES ('450900', '玉林市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('450902', '玉州区', '450900', '3'); +INSERT INTO `dic_district` VALUES ('450903', '福绵区', '450900', '3'); +INSERT INTO `dic_district` VALUES ('450921', '容县', '450900', '3'); +INSERT INTO `dic_district` VALUES ('450922', '陆川县', '450900', '3'); +INSERT INTO `dic_district` VALUES ('450923', '博白县', '450900', '3'); +INSERT INTO `dic_district` VALUES ('450924', '兴业县', '450900', '3'); +INSERT INTO `dic_district` VALUES ('450981', '北流市', '450900', '3'); +INSERT INTO `dic_district` VALUES ('451000', '百色市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('451002', '右江区', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451003', '田阳区', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451022', '田东县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451024', '德保县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451026', '那坡县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451027', '凌云县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451028', '乐业县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451029', '田林县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451030', '西林县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451031', '隆林各族自治县', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451081', '靖西市', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451082', '平果市', '451000', '3'); +INSERT INTO `dic_district` VALUES ('451100', '贺州市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('451102', '八步区', '451100', '3'); +INSERT INTO `dic_district` VALUES ('451103', '平桂区', '451100', '3'); +INSERT INTO `dic_district` VALUES ('451121', '昭平县', '451100', '3'); +INSERT INTO `dic_district` VALUES ('451122', '钟山县', '451100', '3'); +INSERT INTO `dic_district` VALUES ('451123', '富川瑶族自治县', '451100', '3'); +INSERT INTO `dic_district` VALUES ('451200', '河池市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('451202', '金城江区', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451203', '宜州区', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451221', '南丹县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451222', '天峨县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451223', '凤山县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451224', '东兰县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451225', '罗城仫佬族自治县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451226', '环江毛南族自治县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451227', '巴马瑶族自治县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451228', '都安瑶族自治县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451229', '大化瑶族自治县', '451200', '3'); +INSERT INTO `dic_district` VALUES ('451300', '来宾市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('451302', '兴宾区', '451300', '3'); +INSERT INTO `dic_district` VALUES ('451321', '忻城县', '451300', '3'); +INSERT INTO `dic_district` VALUES ('451322', '象州县', '451300', '3'); +INSERT INTO `dic_district` VALUES ('451323', '武宣县', '451300', '3'); +INSERT INTO `dic_district` VALUES ('451324', '金秀瑶族自治县', '451300', '3'); +INSERT INTO `dic_district` VALUES ('451381', '合山市', '451300', '3'); +INSERT INTO `dic_district` VALUES ('451400', '崇左市', '450000', '2'); +INSERT INTO `dic_district` VALUES ('451402', '江州区', '451400', '3'); +INSERT INTO `dic_district` VALUES ('451421', '扶绥县', '451400', '3'); +INSERT INTO `dic_district` VALUES ('451422', '宁明县', '451400', '3'); +INSERT INTO `dic_district` VALUES ('451423', '龙州县', '451400', '3'); +INSERT INTO `dic_district` VALUES ('451424', '大新县', '451400', '3'); +INSERT INTO `dic_district` VALUES ('451425', '天等县', '451400', '3'); +INSERT INTO `dic_district` VALUES ('451481', '凭祥市', '451400', '3'); +INSERT INTO `dic_district` VALUES ('460000', '海南省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('460100', '海口市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('460105', '秀英区', '460100', '3'); +INSERT INTO `dic_district` VALUES ('460106', '龙华区', '460100', '3'); +INSERT INTO `dic_district` VALUES ('460107', '琼山区', '460100', '3'); +INSERT INTO `dic_district` VALUES ('460108', '美兰区', '460100', '3'); +INSERT INTO `dic_district` VALUES ('460200', '三亚市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('460202', '海棠区', '460200', '3'); +INSERT INTO `dic_district` VALUES ('460203', '吉阳区', '460200', '3'); +INSERT INTO `dic_district` VALUES ('460204', '天涯区', '460200', '3'); +INSERT INTO `dic_district` VALUES ('460205', '崖州区', '460200', '3'); +INSERT INTO `dic_district` VALUES ('460300', '三沙市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('460301', '西沙区', '460300', '3'); +INSERT INTO `dic_district` VALUES ('460302', '南沙区', '460300', '3'); +INSERT INTO `dic_district` VALUES ('460400', '儋州市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469001', '五指山市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469002', '琼海市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469005', '文昌市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469006', '万宁市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469007', '东方市', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469021', '定安县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469022', '屯昌县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469023', '澄迈县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469024', '临高县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469025', '白沙黎族自治县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469026', '昌江黎族自治县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469027', '乐东黎族自治县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469028', '陵水黎族自治县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469029', '保亭黎族苗族自治县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('469030', '琼中黎族苗族自治县', '460000', '2'); +INSERT INTO `dic_district` VALUES ('500000', '重庆市', '100000', '1'); +INSERT INTO `dic_district` VALUES ('500100', '重庆城区', '500000', '2'); +INSERT INTO `dic_district` VALUES ('500101', '万州区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500102', '涪陵区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500103', '渝中区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500104', '大渡口区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500105', '江北区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500106', '沙坪坝区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500107', '九龙坡区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500108', '南岸区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500109', '北碚区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500110', '綦江区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500111', '大足区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500112', '渝北区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500113', '巴南区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500114', '黔江区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500115', '长寿区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500116', '江津区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500117', '合川区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500118', '永川区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500119', '南川区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500120', '璧山区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500151', '铜梁区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500152', '潼南区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500153', '荣昌区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500154', '开州区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500155', '梁平区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500156', '武隆区', '500100', '3'); +INSERT INTO `dic_district` VALUES ('500200', '重庆郊县', '500000', '2'); +INSERT INTO `dic_district` VALUES ('500229', '城口县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500230', '丰都县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500231', '垫江县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500233', '忠县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500235', '云阳县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500236', '奉节县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500237', '巫山县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500238', '巫溪县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500240', '石柱土家族自治县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500241', '秀山土家族苗族自治县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500242', '酉阳土家族苗族自治县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('500243', '彭水苗族土家族自治县', '500200', '3'); +INSERT INTO `dic_district` VALUES ('510000', '四川省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('510100', '成都市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510104', '锦江区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510105', '青羊区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510106', '金牛区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510107', '武侯区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510108', '成华区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510112', '龙泉驿区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510113', '青白江区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510114', '新都区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510115', '温江区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510116', '双流区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510117', '郫都区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510118', '新津区', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510121', '金堂县', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510129', '大邑县', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510131', '蒲江县', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510181', '都江堰市', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510182', '彭州市', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510183', '邛崃市', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510184', '崇州市', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510185', '简阳市', '510100', '3'); +INSERT INTO `dic_district` VALUES ('510300', '自贡市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510302', '自流井区', '510300', '3'); +INSERT INTO `dic_district` VALUES ('510303', '贡井区', '510300', '3'); +INSERT INTO `dic_district` VALUES ('510304', '大安区', '510300', '3'); +INSERT INTO `dic_district` VALUES ('510311', '沿滩区', '510300', '3'); +INSERT INTO `dic_district` VALUES ('510321', '荣县', '510300', '3'); +INSERT INTO `dic_district` VALUES ('510322', '富顺县', '510300', '3'); +INSERT INTO `dic_district` VALUES ('510400', '攀枝花市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510402', '东区', '510400', '3'); +INSERT INTO `dic_district` VALUES ('510403', '西区', '510400', '3'); +INSERT INTO `dic_district` VALUES ('510411', '仁和区', '510400', '3'); +INSERT INTO `dic_district` VALUES ('510421', '米易县', '510400', '3'); +INSERT INTO `dic_district` VALUES ('510422', '盐边县', '510400', '3'); +INSERT INTO `dic_district` VALUES ('510500', '泸州市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510502', '江阳区', '510500', '3'); +INSERT INTO `dic_district` VALUES ('510503', '纳溪区', '510500', '3'); +INSERT INTO `dic_district` VALUES ('510504', '龙马潭区', '510500', '3'); +INSERT INTO `dic_district` VALUES ('510521', '泸县', '510500', '3'); +INSERT INTO `dic_district` VALUES ('510522', '合江县', '510500', '3'); +INSERT INTO `dic_district` VALUES ('510524', '叙永县', '510500', '3'); +INSERT INTO `dic_district` VALUES ('510525', '古蔺县', '510500', '3'); +INSERT INTO `dic_district` VALUES ('510600', '德阳市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510603', '旌阳区', '510600', '3'); +INSERT INTO `dic_district` VALUES ('510604', '罗江区', '510600', '3'); +INSERT INTO `dic_district` VALUES ('510623', '中江县', '510600', '3'); +INSERT INTO `dic_district` VALUES ('510681', '广汉市', '510600', '3'); +INSERT INTO `dic_district` VALUES ('510682', '什邡市', '510600', '3'); +INSERT INTO `dic_district` VALUES ('510683', '绵竹市', '510600', '3'); +INSERT INTO `dic_district` VALUES ('510700', '绵阳市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510703', '涪城区', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510704', '游仙区', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510705', '安州区', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510722', '三台县', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510723', '盐亭县', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510725', '梓潼县', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510726', '北川羌族自治县', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510727', '平武县', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510781', '江油市', '510700', '3'); +INSERT INTO `dic_district` VALUES ('510800', '广元市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510802', '利州区', '510800', '3'); +INSERT INTO `dic_district` VALUES ('510811', '昭化区', '510800', '3'); +INSERT INTO `dic_district` VALUES ('510812', '朝天区', '510800', '3'); +INSERT INTO `dic_district` VALUES ('510821', '旺苍县', '510800', '3'); +INSERT INTO `dic_district` VALUES ('510822', '青川县', '510800', '3'); +INSERT INTO `dic_district` VALUES ('510823', '剑阁县', '510800', '3'); +INSERT INTO `dic_district` VALUES ('510824', '苍溪县', '510800', '3'); +INSERT INTO `dic_district` VALUES ('510900', '遂宁市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('510903', '船山区', '510900', '3'); +INSERT INTO `dic_district` VALUES ('510904', '安居区', '510900', '3'); +INSERT INTO `dic_district` VALUES ('510921', '蓬溪县', '510900', '3'); +INSERT INTO `dic_district` VALUES ('510923', '大英县', '510900', '3'); +INSERT INTO `dic_district` VALUES ('510981', '射洪市', '510900', '3'); +INSERT INTO `dic_district` VALUES ('511000', '内江市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511002', '市中区', '511000', '3'); +INSERT INTO `dic_district` VALUES ('511011', '东兴区', '511000', '3'); +INSERT INTO `dic_district` VALUES ('511024', '威远县', '511000', '3'); +INSERT INTO `dic_district` VALUES ('511025', '资中县', '511000', '3'); +INSERT INTO `dic_district` VALUES ('511083', '隆昌市', '511000', '3'); +INSERT INTO `dic_district` VALUES ('511100', '乐山市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511102', '市中区', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511111', '沙湾区', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511112', '五通桥区', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511113', '金口河区', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511123', '犍为县', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511124', '井研县', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511126', '夹江县', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511129', '沐川县', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511132', '峨边彝族自治县', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511133', '马边彝族自治县', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511181', '峨眉山市', '511100', '3'); +INSERT INTO `dic_district` VALUES ('511300', '南充市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511302', '顺庆区', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511303', '高坪区', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511304', '嘉陵区', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511321', '南部县', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511322', '营山县', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511323', '蓬安县', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511324', '仪陇县', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511325', '西充县', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511381', '阆中市', '511300', '3'); +INSERT INTO `dic_district` VALUES ('511400', '眉山市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511402', '东坡区', '511400', '3'); +INSERT INTO `dic_district` VALUES ('511403', '彭山区', '511400', '3'); +INSERT INTO `dic_district` VALUES ('511421', '仁寿县', '511400', '3'); +INSERT INTO `dic_district` VALUES ('511423', '洪雅县', '511400', '3'); +INSERT INTO `dic_district` VALUES ('511424', '丹棱县', '511400', '3'); +INSERT INTO `dic_district` VALUES ('511425', '青神县', '511400', '3'); +INSERT INTO `dic_district` VALUES ('511500', '宜宾市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511502', '翠屏区', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511503', '南溪区', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511504', '叙州区', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511523', '江安县', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511524', '长宁县', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511525', '高县', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511526', '珙县', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511527', '筠连县', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511528', '兴文县', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511529', '屏山县', '511500', '3'); +INSERT INTO `dic_district` VALUES ('511600', '广安市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511602', '广安区', '511600', '3'); +INSERT INTO `dic_district` VALUES ('511603', '前锋区', '511600', '3'); +INSERT INTO `dic_district` VALUES ('511621', '岳池县', '511600', '3'); +INSERT INTO `dic_district` VALUES ('511622', '武胜县', '511600', '3'); +INSERT INTO `dic_district` VALUES ('511623', '邻水县', '511600', '3'); +INSERT INTO `dic_district` VALUES ('511681', '华蓥市', '511600', '3'); +INSERT INTO `dic_district` VALUES ('511700', '达州市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511702', '通川区', '511700', '3'); +INSERT INTO `dic_district` VALUES ('511703', '达川区', '511700', '3'); +INSERT INTO `dic_district` VALUES ('511722', '宣汉县', '511700', '3'); +INSERT INTO `dic_district` VALUES ('511723', '开江县', '511700', '3'); +INSERT INTO `dic_district` VALUES ('511724', '大竹县', '511700', '3'); +INSERT INTO `dic_district` VALUES ('511725', '渠县', '511700', '3'); +INSERT INTO `dic_district` VALUES ('511781', '万源市', '511700', '3'); +INSERT INTO `dic_district` VALUES ('511800', '雅安市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511802', '雨城区', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511803', '名山区', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511822', '荥经县', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511823', '汉源县', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511824', '石棉县', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511825', '天全县', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511826', '芦山县', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511827', '宝兴县', '511800', '3'); +INSERT INTO `dic_district` VALUES ('511900', '巴中市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('511902', '巴州区', '511900', '3'); +INSERT INTO `dic_district` VALUES ('511903', '恩阳区', '511900', '3'); +INSERT INTO `dic_district` VALUES ('511921', '通江县', '511900', '3'); +INSERT INTO `dic_district` VALUES ('511922', '南江县', '511900', '3'); +INSERT INTO `dic_district` VALUES ('511923', '平昌县', '511900', '3'); +INSERT INTO `dic_district` VALUES ('512000', '资阳市', '510000', '2'); +INSERT INTO `dic_district` VALUES ('512002', '雁江区', '512000', '3'); +INSERT INTO `dic_district` VALUES ('512021', '安岳县', '512000', '3'); +INSERT INTO `dic_district` VALUES ('512022', '乐至县', '512000', '3'); +INSERT INTO `dic_district` VALUES ('513200', '阿坝藏族羌族自治州', '510000', '2'); +INSERT INTO `dic_district` VALUES ('513201', '马尔康市', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513221', '汶川县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513222', '理县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513223', '茂县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513224', '松潘县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513225', '九寨沟县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513226', '金川县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513227', '小金县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513228', '黑水县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513230', '壤塘县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513231', '阿坝县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513232', '若尔盖县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513233', '红原县', '513200', '3'); +INSERT INTO `dic_district` VALUES ('513300', '甘孜藏族自治州', '510000', '2'); +INSERT INTO `dic_district` VALUES ('513301', '康定市', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513322', '泸定县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513323', '丹巴县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513324', '九龙县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513325', '雅江县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513326', '道孚县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513327', '炉霍县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513328', '甘孜县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513329', '新龙县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513330', '德格县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513331', '白玉县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513332', '石渠县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513333', '色达县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513334', '理塘县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513335', '巴塘县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513336', '乡城县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513337', '稻城县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513338', '得荣县', '513300', '3'); +INSERT INTO `dic_district` VALUES ('513400', '凉山彝族自治州', '510000', '2'); +INSERT INTO `dic_district` VALUES ('513401', '西昌市', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513402', '会理市', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513422', '木里藏族自治县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513423', '盐源县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513424', '德昌县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513426', '会东县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513427', '宁南县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513428', '普格县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513429', '布拖县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513430', '金阳县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513431', '昭觉县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513432', '喜德县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513433', '冕宁县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513434', '越西县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513435', '甘洛县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513436', '美姑县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('513437', '雷波县', '513400', '3'); +INSERT INTO `dic_district` VALUES ('520000', '贵州省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('520100', '贵阳市', '520000', '2'); +INSERT INTO `dic_district` VALUES ('520102', '南明区', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520103', '云岩区', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520111', '花溪区', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520112', '乌当区', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520113', '白云区', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520115', '观山湖区', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520121', '开阳县', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520122', '息烽县', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520123', '修文县', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520181', '清镇市', '520100', '3'); +INSERT INTO `dic_district` VALUES ('520200', '六盘水市', '520000', '2'); +INSERT INTO `dic_district` VALUES ('520201', '钟山区', '520200', '3'); +INSERT INTO `dic_district` VALUES ('520203', '六枝特区', '520200', '3'); +INSERT INTO `dic_district` VALUES ('520204', '水城区', '520200', '3'); +INSERT INTO `dic_district` VALUES ('520281', '盘州市', '520200', '3'); +INSERT INTO `dic_district` VALUES ('520300', '遵义市', '520000', '2'); +INSERT INTO `dic_district` VALUES ('520302', '红花岗区', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520303', '汇川区', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520304', '播州区', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520322', '桐梓县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520323', '绥阳县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520324', '正安县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520325', '道真仡佬族苗族自治县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520326', '务川仡佬族苗族自治县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520327', '凤冈县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520328', '湄潭县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520329', '余庆县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520330', '习水县', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520381', '赤水市', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520382', '仁怀市', '520300', '3'); +INSERT INTO `dic_district` VALUES ('520400', '安顺市', '520000', '2'); +INSERT INTO `dic_district` VALUES ('520402', '西秀区', '520400', '3'); +INSERT INTO `dic_district` VALUES ('520403', '平坝区', '520400', '3'); +INSERT INTO `dic_district` VALUES ('520422', '普定县', '520400', '3'); +INSERT INTO `dic_district` VALUES ('520423', '镇宁布依族苗族自治县', '520400', '3'); +INSERT INTO `dic_district` VALUES ('520424', '关岭布依族苗族自治县', '520400', '3'); +INSERT INTO `dic_district` VALUES ('520425', '紫云苗族布依族自治县', '520400', '3'); +INSERT INTO `dic_district` VALUES ('520500', '毕节市', '520000', '2'); +INSERT INTO `dic_district` VALUES ('520502', '七星关区', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520521', '大方县', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520523', '金沙县', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520524', '织金县', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520525', '纳雍县', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520526', '威宁彝族回族苗族自治县', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520527', '赫章县', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520581', '黔西市', '520500', '3'); +INSERT INTO `dic_district` VALUES ('520600', '铜仁市', '520000', '2'); +INSERT INTO `dic_district` VALUES ('520602', '碧江区', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520603', '万山区', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520621', '江口县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520622', '玉屏侗族自治县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520623', '石阡县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520624', '思南县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520625', '印江土家族苗族自治县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520626', '德江县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520627', '沿河土家族自治县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('520628', '松桃苗族自治县', '520600', '3'); +INSERT INTO `dic_district` VALUES ('522300', '黔西南布依族苗族自治州', '520000', '2'); +INSERT INTO `dic_district` VALUES ('522301', '兴义市', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522302', '兴仁市', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522323', '普安县', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522324', '晴隆县', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522325', '贞丰县', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522326', '望谟县', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522327', '册亨县', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522328', '安龙县', '522300', '3'); +INSERT INTO `dic_district` VALUES ('522600', '黔东南苗族侗族自治州', '520000', '2'); +INSERT INTO `dic_district` VALUES ('522601', '凯里市', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522622', '黄平县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522623', '施秉县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522624', '三穗县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522625', '镇远县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522626', '岑巩县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522627', '天柱县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522628', '锦屏县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522629', '剑河县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522630', '台江县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522631', '黎平县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522632', '榕江县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522633', '从江县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522634', '雷山县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522635', '麻江县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522636', '丹寨县', '522600', '3'); +INSERT INTO `dic_district` VALUES ('522700', '黔南布依族苗族自治州', '520000', '2'); +INSERT INTO `dic_district` VALUES ('522701', '都匀市', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522702', '福泉市', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522722', '荔波县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522723', '贵定县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522725', '瓮安县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522726', '独山县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522727', '平塘县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522728', '罗甸县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522729', '长顺县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522730', '龙里县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522731', '惠水县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('522732', '三都水族自治县', '522700', '3'); +INSERT INTO `dic_district` VALUES ('530000', '云南省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('530100', '昆明市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530102', '五华区', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530103', '盘龙区', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530111', '官渡区', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530112', '西山区', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530113', '东川区', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530114', '呈贡区', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530115', '晋宁区', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530124', '富民县', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530125', '宜良县', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530126', '石林彝族自治县', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530127', '嵩明县', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530128', '禄劝彝族苗族自治县', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530129', '寻甸回族彝族自治县', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530181', '安宁市', '530100', '3'); +INSERT INTO `dic_district` VALUES ('530300', '曲靖市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530302', '麒麟区', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530303', '沾益区', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530304', '马龙区', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530322', '陆良县', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530323', '师宗县', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530324', '罗平县', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530325', '富源县', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530326', '会泽县', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530381', '宣威市', '530300', '3'); +INSERT INTO `dic_district` VALUES ('530400', '玉溪市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530402', '红塔区', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530403', '江川区', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530423', '通海县', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530424', '华宁县', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530425', '易门县', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530426', '峨山彝族自治县', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530427', '新平彝族傣族自治县', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530428', '元江哈尼族彝族傣族自治县', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530481', '澄江市', '530400', '3'); +INSERT INTO `dic_district` VALUES ('530500', '保山市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530502', '隆阳区', '530500', '3'); +INSERT INTO `dic_district` VALUES ('530521', '施甸县', '530500', '3'); +INSERT INTO `dic_district` VALUES ('530523', '龙陵县', '530500', '3'); +INSERT INTO `dic_district` VALUES ('530524', '昌宁县', '530500', '3'); +INSERT INTO `dic_district` VALUES ('530581', '腾冲市', '530500', '3'); +INSERT INTO `dic_district` VALUES ('530600', '昭通市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530602', '昭阳区', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530621', '鲁甸县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530622', '巧家县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530623', '盐津县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530624', '大关县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530625', '永善县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530626', '绥江县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530627', '镇雄县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530628', '彝良县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530629', '威信县', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530681', '水富市', '530600', '3'); +INSERT INTO `dic_district` VALUES ('530700', '丽江市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530702', '古城区', '530700', '3'); +INSERT INTO `dic_district` VALUES ('530721', '玉龙纳西族自治县', '530700', '3'); +INSERT INTO `dic_district` VALUES ('530722', '永胜县', '530700', '3'); +INSERT INTO `dic_district` VALUES ('530723', '华坪县', '530700', '3'); +INSERT INTO `dic_district` VALUES ('530724', '宁蒗彝族自治县', '530700', '3'); +INSERT INTO `dic_district` VALUES ('530800', '普洱市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530802', '思茅区', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530821', '宁洱哈尼族彝族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530822', '墨江哈尼族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530823', '景东彝族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530824', '景谷傣族彝族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530825', '镇沅彝族哈尼族拉祜族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530826', '江城哈尼族彝族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530827', '孟连傣族拉祜族佤族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530828', '澜沧拉祜族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530829', '西盟佤族自治县', '530800', '3'); +INSERT INTO `dic_district` VALUES ('530900', '临沧市', '530000', '2'); +INSERT INTO `dic_district` VALUES ('530902', '临翔区', '530900', '3'); +INSERT INTO `dic_district` VALUES ('530921', '凤庆县', '530900', '3'); +INSERT INTO `dic_district` VALUES ('530922', '云县', '530900', '3'); +INSERT INTO `dic_district` VALUES ('530923', '永德县', '530900', '3'); +INSERT INTO `dic_district` VALUES ('530924', '镇康县', '530900', '3'); +INSERT INTO `dic_district` VALUES ('530925', '双江拉祜族佤族布朗族傣族自治县', '530900', '3'); +INSERT INTO `dic_district` VALUES ('530926', '耿马傣族佤族自治县', '530900', '3'); +INSERT INTO `dic_district` VALUES ('530927', '沧源佤族自治县', '530900', '3'); +INSERT INTO `dic_district` VALUES ('532300', '楚雄彝族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('532301', '楚雄市', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532302', '禄丰市', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532322', '双柏县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532323', '牟定县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532324', '南华县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532325', '姚安县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532326', '大姚县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532327', '永仁县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532328', '元谋县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532329', '武定县', '532300', '3'); +INSERT INTO `dic_district` VALUES ('532500', '红河哈尼族彝族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('532501', '个旧市', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532502', '开远市', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532503', '蒙自市', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532504', '弥勒市', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532523', '屏边苗族自治县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532524', '建水县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532525', '石屏县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532527', '泸西县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532528', '元阳县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532529', '红河县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532530', '金平苗族瑶族傣族自治县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532531', '绿春县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532532', '河口瑶族自治县', '532500', '3'); +INSERT INTO `dic_district` VALUES ('532600', '文山壮族苗族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('532601', '文山市', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532622', '砚山县', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532623', '西畴县', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532624', '麻栗坡县', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532625', '马关县', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532626', '丘北县', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532627', '广南县', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532628', '富宁县', '532600', '3'); +INSERT INTO `dic_district` VALUES ('532800', '西双版纳傣族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('532801', '景洪市', '532800', '3'); +INSERT INTO `dic_district` VALUES ('532822', '勐海县', '532800', '3'); +INSERT INTO `dic_district` VALUES ('532823', '勐腊县', '532800', '3'); +INSERT INTO `dic_district` VALUES ('532900', '大理白族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('532901', '大理市', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532922', '漾濞彝族自治县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532923', '祥云县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532924', '宾川县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532925', '弥渡县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532926', '南涧彝族自治县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532927', '巍山彝族回族自治县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532928', '永平县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532929', '云龙县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532930', '洱源县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532931', '剑川县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('532932', '鹤庆县', '532900', '3'); +INSERT INTO `dic_district` VALUES ('533100', '德宏傣族景颇族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('533102', '瑞丽市', '533100', '3'); +INSERT INTO `dic_district` VALUES ('533103', '芒市', '533100', '3'); +INSERT INTO `dic_district` VALUES ('533122', '梁河县', '533100', '3'); +INSERT INTO `dic_district` VALUES ('533123', '盈江县', '533100', '3'); +INSERT INTO `dic_district` VALUES ('533124', '陇川县', '533100', '3'); +INSERT INTO `dic_district` VALUES ('533300', '怒江傈僳族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('533301', '泸水市', '533300', '3'); +INSERT INTO `dic_district` VALUES ('533323', '福贡县', '533300', '3'); +INSERT INTO `dic_district` VALUES ('533324', '贡山独龙族怒族自治县', '533300', '3'); +INSERT INTO `dic_district` VALUES ('533325', '兰坪白族普米族自治县', '533300', '3'); +INSERT INTO `dic_district` VALUES ('533400', '迪庆藏族自治州', '530000', '2'); +INSERT INTO `dic_district` VALUES ('533401', '香格里拉市', '533400', '3'); +INSERT INTO `dic_district` VALUES ('533422', '德钦县', '533400', '3'); +INSERT INTO `dic_district` VALUES ('533423', '维西傈僳族自治县', '533400', '3'); +INSERT INTO `dic_district` VALUES ('540000', '西藏自治区', '100000', '1'); +INSERT INTO `dic_district` VALUES ('540100', '拉萨市', '540000', '2'); +INSERT INTO `dic_district` VALUES ('540102', '城关区', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540103', '堆龙德庆区', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540104', '达孜区', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540121', '林周县', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540122', '当雄县', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540123', '尼木县', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540124', '曲水县', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540127', '墨竹工卡县', '540100', '3'); +INSERT INTO `dic_district` VALUES ('540200', '日喀则市', '540000', '2'); +INSERT INTO `dic_district` VALUES ('540202', '桑珠孜区', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540221', '南木林县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540222', '江孜县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540223', '定日县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540224', '萨迦县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540225', '拉孜县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540226', '昂仁县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540227', '谢通门县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540228', '白朗县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540229', '仁布县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540230', '康马县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540231', '定结县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540232', '仲巴县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540233', '亚东县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540234', '吉隆县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540235', '聂拉木县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540236', '萨嘎县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540237', '岗巴县', '540200', '3'); +INSERT INTO `dic_district` VALUES ('540300', '昌都市', '540000', '2'); +INSERT INTO `dic_district` VALUES ('540302', '卡若区', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540321', '江达县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540322', '贡觉县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540323', '类乌齐县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540324', '丁青县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540325', '察雅县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540326', '八宿县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540327', '左贡县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540328', '芒康县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540329', '洛隆县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540330', '边坝县', '540300', '3'); +INSERT INTO `dic_district` VALUES ('540400', '林芝市', '540000', '2'); +INSERT INTO `dic_district` VALUES ('540402', '巴宜区', '540400', '3'); +INSERT INTO `dic_district` VALUES ('540421', '工布江达县', '540400', '3'); +INSERT INTO `dic_district` VALUES ('540422', '米林县', '540400', '3'); +INSERT INTO `dic_district` VALUES ('540423', '墨脱县', '540400', '3'); +INSERT INTO `dic_district` VALUES ('540424', '波密县', '540400', '3'); +INSERT INTO `dic_district` VALUES ('540425', '察隅县', '540400', '3'); +INSERT INTO `dic_district` VALUES ('540426', '朗县', '540400', '3'); +INSERT INTO `dic_district` VALUES ('540500', '山南市', '540000', '2'); +INSERT INTO `dic_district` VALUES ('540502', '乃东区', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540521', '扎囊县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540522', '贡嘎县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540523', '桑日县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540524', '琼结县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540525', '曲松县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540526', '措美县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540527', '洛扎县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540528', '加查县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540529', '隆子县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540530', '错那县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540531', '浪卡子县', '540500', '3'); +INSERT INTO `dic_district` VALUES ('540600', '那曲市', '540000', '2'); +INSERT INTO `dic_district` VALUES ('540602', '色尼区', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540621', '嘉黎县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540622', '比如县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540623', '聂荣县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540624', '安多县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540625', '申扎县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540626', '索县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540627', '班戈县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540628', '巴青县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540629', '尼玛县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('540630', '双湖县', '540600', '3'); +INSERT INTO `dic_district` VALUES ('542500', '阿里地区', '540000', '2'); +INSERT INTO `dic_district` VALUES ('542521', '普兰县', '542500', '3'); +INSERT INTO `dic_district` VALUES ('542522', '札达县', '542500', '3'); +INSERT INTO `dic_district` VALUES ('542523', '噶尔县', '542500', '3'); +INSERT INTO `dic_district` VALUES ('542524', '日土县', '542500', '3'); +INSERT INTO `dic_district` VALUES ('542525', '革吉县', '542500', '3'); +INSERT INTO `dic_district` VALUES ('542526', '改则县', '542500', '3'); +INSERT INTO `dic_district` VALUES ('542527', '措勤县', '542500', '3'); +INSERT INTO `dic_district` VALUES ('610000', '陕西省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('610100', '西安市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610102', '新城区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610103', '碑林区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610104', '莲湖区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610111', '灞桥区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610112', '未央区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610113', '雁塔区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610114', '阎良区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610115', '临潼区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610116', '长安区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610117', '高陵区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610118', '鄠邑区', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610122', '蓝田县', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610124', '周至县', '610100', '3'); +INSERT INTO `dic_district` VALUES ('610200', '铜川市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610202', '王益区', '610200', '3'); +INSERT INTO `dic_district` VALUES ('610203', '印台区', '610200', '3'); +INSERT INTO `dic_district` VALUES ('610204', '耀州区', '610200', '3'); +INSERT INTO `dic_district` VALUES ('610222', '宜君县', '610200', '3'); +INSERT INTO `dic_district` VALUES ('610300', '宝鸡市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610302', '渭滨区', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610303', '金台区', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610304', '陈仓区', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610305', '凤翔区', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610323', '岐山县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610324', '扶风县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610326', '眉县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610327', '陇县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610328', '千阳县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610329', '麟游县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610330', '凤县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610331', '太白县', '610300', '3'); +INSERT INTO `dic_district` VALUES ('610400', '咸阳市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610402', '秦都区', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610403', '杨陵区', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610404', '渭城区', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610422', '三原县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610423', '泾阳县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610424', '乾县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610425', '礼泉县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610426', '永寿县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610428', '长武县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610429', '旬邑县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610430', '淳化县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610431', '武功县', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610481', '兴平市', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610482', '彬州市', '610400', '3'); +INSERT INTO `dic_district` VALUES ('610500', '渭南市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610502', '临渭区', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610503', '华州区', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610522', '潼关县', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610523', '大荔县', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610524', '合阳县', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610525', '澄城县', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610526', '蒲城县', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610527', '白水县', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610528', '富平县', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610581', '韩城市', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610582', '华阴市', '610500', '3'); +INSERT INTO `dic_district` VALUES ('610600', '延安市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610602', '宝塔区', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610603', '安塞区', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610621', '延长县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610622', '延川县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610625', '志丹县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610626', '吴起县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610627', '甘泉县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610628', '富县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610629', '洛川县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610630', '宜川县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610631', '黄龙县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610632', '黄陵县', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610681', '子长市', '610600', '3'); +INSERT INTO `dic_district` VALUES ('610700', '汉中市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610702', '汉台区', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610703', '南郑区', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610722', '城固县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610723', '洋县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610724', '西乡县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610725', '勉县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610726', '宁强县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610727', '略阳县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610728', '镇巴县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610729', '留坝县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610730', '佛坪县', '610700', '3'); +INSERT INTO `dic_district` VALUES ('610800', '榆林市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610802', '榆阳区', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610803', '横山区', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610822', '府谷县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610824', '靖边县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610825', '定边县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610826', '绥德县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610827', '米脂县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610828', '佳县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610829', '吴堡县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610830', '清涧县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610831', '子洲县', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610881', '神木市', '610800', '3'); +INSERT INTO `dic_district` VALUES ('610900', '安康市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('610902', '汉滨区', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610921', '汉阴县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610922', '石泉县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610923', '宁陕县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610924', '紫阳县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610925', '岚皋县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610926', '平利县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610927', '镇坪县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610929', '白河县', '610900', '3'); +INSERT INTO `dic_district` VALUES ('610981', '旬阳市', '610900', '3'); +INSERT INTO `dic_district` VALUES ('611000', '商洛市', '610000', '2'); +INSERT INTO `dic_district` VALUES ('611002', '商州区', '611000', '3'); +INSERT INTO `dic_district` VALUES ('611021', '洛南县', '611000', '3'); +INSERT INTO `dic_district` VALUES ('611022', '丹凤县', '611000', '3'); +INSERT INTO `dic_district` VALUES ('611023', '商南县', '611000', '3'); +INSERT INTO `dic_district` VALUES ('611024', '山阳县', '611000', '3'); +INSERT INTO `dic_district` VALUES ('611025', '镇安县', '611000', '3'); +INSERT INTO `dic_district` VALUES ('611026', '柞水县', '611000', '3'); +INSERT INTO `dic_district` VALUES ('620000', '甘肃省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('620100', '兰州市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620102', '城关区', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620103', '七里河区', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620104', '西固区', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620105', '安宁区', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620111', '红古区', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620121', '永登县', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620122', '皋兰县', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620123', '榆中县', '620100', '3'); +INSERT INTO `dic_district` VALUES ('620200', '嘉峪关市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620300', '金昌市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620302', '金川区', '620300', '3'); +INSERT INTO `dic_district` VALUES ('620321', '永昌县', '620300', '3'); +INSERT INTO `dic_district` VALUES ('620400', '白银市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620402', '白银区', '620400', '3'); +INSERT INTO `dic_district` VALUES ('620403', '平川区', '620400', '3'); +INSERT INTO `dic_district` VALUES ('620421', '靖远县', '620400', '3'); +INSERT INTO `dic_district` VALUES ('620422', '会宁县', '620400', '3'); +INSERT INTO `dic_district` VALUES ('620423', '景泰县', '620400', '3'); +INSERT INTO `dic_district` VALUES ('620500', '天水市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620502', '秦州区', '620500', '3'); +INSERT INTO `dic_district` VALUES ('620503', '麦积区', '620500', '3'); +INSERT INTO `dic_district` VALUES ('620521', '清水县', '620500', '3'); +INSERT INTO `dic_district` VALUES ('620522', '秦安县', '620500', '3'); +INSERT INTO `dic_district` VALUES ('620523', '甘谷县', '620500', '3'); +INSERT INTO `dic_district` VALUES ('620524', '武山县', '620500', '3'); +INSERT INTO `dic_district` VALUES ('620525', '张家川回族自治县', '620500', '3'); +INSERT INTO `dic_district` VALUES ('620600', '武威市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620602', '凉州区', '620600', '3'); +INSERT INTO `dic_district` VALUES ('620621', '民勤县', '620600', '3'); +INSERT INTO `dic_district` VALUES ('620622', '古浪县', '620600', '3'); +INSERT INTO `dic_district` VALUES ('620623', '天祝藏族自治县', '620600', '3'); +INSERT INTO `dic_district` VALUES ('620700', '张掖市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620702', '甘州区', '620700', '3'); +INSERT INTO `dic_district` VALUES ('620721', '肃南裕固族自治县', '620700', '3'); +INSERT INTO `dic_district` VALUES ('620722', '民乐县', '620700', '3'); +INSERT INTO `dic_district` VALUES ('620723', '临泽县', '620700', '3'); +INSERT INTO `dic_district` VALUES ('620724', '高台县', '620700', '3'); +INSERT INTO `dic_district` VALUES ('620725', '山丹县', '620700', '3'); +INSERT INTO `dic_district` VALUES ('620800', '平凉市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620802', '崆峒区', '620800', '3'); +INSERT INTO `dic_district` VALUES ('620821', '泾川县', '620800', '3'); +INSERT INTO `dic_district` VALUES ('620822', '灵台县', '620800', '3'); +INSERT INTO `dic_district` VALUES ('620823', '崇信县', '620800', '3'); +INSERT INTO `dic_district` VALUES ('620825', '庄浪县', '620800', '3'); +INSERT INTO `dic_district` VALUES ('620826', '静宁县', '620800', '3'); +INSERT INTO `dic_district` VALUES ('620881', '华亭市', '620800', '3'); +INSERT INTO `dic_district` VALUES ('620900', '酒泉市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('620902', '肃州区', '620900', '3'); +INSERT INTO `dic_district` VALUES ('620921', '金塔县', '620900', '3'); +INSERT INTO `dic_district` VALUES ('620922', '瓜州县', '620900', '3'); +INSERT INTO `dic_district` VALUES ('620923', '肃北蒙古族自治县', '620900', '3'); +INSERT INTO `dic_district` VALUES ('620924', '阿克塞哈萨克族自治县', '620900', '3'); +INSERT INTO `dic_district` VALUES ('620981', '玉门市', '620900', '3'); +INSERT INTO `dic_district` VALUES ('620982', '敦煌市', '620900', '3'); +INSERT INTO `dic_district` VALUES ('621000', '庆阳市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('621002', '西峰区', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621021', '庆城县', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621022', '环县', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621023', '华池县', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621024', '合水县', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621025', '正宁县', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621026', '宁县', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621027', '镇原县', '621000', '3'); +INSERT INTO `dic_district` VALUES ('621100', '定西市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('621102', '安定区', '621100', '3'); +INSERT INTO `dic_district` VALUES ('621121', '通渭县', '621100', '3'); +INSERT INTO `dic_district` VALUES ('621122', '陇西县', '621100', '3'); +INSERT INTO `dic_district` VALUES ('621123', '渭源县', '621100', '3'); +INSERT INTO `dic_district` VALUES ('621124', '临洮县', '621100', '3'); +INSERT INTO `dic_district` VALUES ('621125', '漳县', '621100', '3'); +INSERT INTO `dic_district` VALUES ('621126', '岷县', '621100', '3'); +INSERT INTO `dic_district` VALUES ('621200', '陇南市', '620000', '2'); +INSERT INTO `dic_district` VALUES ('621202', '武都区', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621221', '成县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621222', '文县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621223', '宕昌县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621224', '康县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621225', '西和县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621226', '礼县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621227', '徽县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('621228', '两当县', '621200', '3'); +INSERT INTO `dic_district` VALUES ('622900', '临夏回族自治州', '620000', '2'); +INSERT INTO `dic_district` VALUES ('622901', '临夏市', '622900', '3'); +INSERT INTO `dic_district` VALUES ('622921', '临夏县', '622900', '3'); +INSERT INTO `dic_district` VALUES ('622922', '康乐县', '622900', '3'); +INSERT INTO `dic_district` VALUES ('622923', '永靖县', '622900', '3'); +INSERT INTO `dic_district` VALUES ('622924', '广河县', '622900', '3'); +INSERT INTO `dic_district` VALUES ('622925', '和政县', '622900', '3'); +INSERT INTO `dic_district` VALUES ('622926', '东乡族自治县', '622900', '3'); +INSERT INTO `dic_district` VALUES ('622927', '积石山保安族东乡族撒拉族自治县', '622900', '3'); +INSERT INTO `dic_district` VALUES ('623000', '甘南藏族自治州', '620000', '2'); +INSERT INTO `dic_district` VALUES ('623001', '合作市', '623000', '3'); +INSERT INTO `dic_district` VALUES ('623021', '临潭县', '623000', '3'); +INSERT INTO `dic_district` VALUES ('623022', '卓尼县', '623000', '3'); +INSERT INTO `dic_district` VALUES ('623023', '舟曲县', '623000', '3'); +INSERT INTO `dic_district` VALUES ('623024', '迭部县', '623000', '3'); +INSERT INTO `dic_district` VALUES ('623025', '玛曲县', '623000', '3'); +INSERT INTO `dic_district` VALUES ('623026', '碌曲县', '623000', '3'); +INSERT INTO `dic_district` VALUES ('623027', '夏河县', '623000', '3'); +INSERT INTO `dic_district` VALUES ('630000', '青海省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('630100', '西宁市', '630000', '2'); +INSERT INTO `dic_district` VALUES ('630102', '城东区', '630100', '3'); +INSERT INTO `dic_district` VALUES ('630103', '城中区', '630100', '3'); +INSERT INTO `dic_district` VALUES ('630104', '城西区', '630100', '3'); +INSERT INTO `dic_district` VALUES ('630105', '城北区', '630100', '3'); +INSERT INTO `dic_district` VALUES ('630106', '湟中区', '630100', '3'); +INSERT INTO `dic_district` VALUES ('630121', '大通回族土族自治县', '630100', '3'); +INSERT INTO `dic_district` VALUES ('630123', '湟源县', '630100', '3'); +INSERT INTO `dic_district` VALUES ('630200', '海东市', '630000', '2'); +INSERT INTO `dic_district` VALUES ('630202', '乐都区', '630200', '3'); +INSERT INTO `dic_district` VALUES ('630203', '平安区', '630200', '3'); +INSERT INTO `dic_district` VALUES ('630222', '民和回族土族自治县', '630200', '3'); +INSERT INTO `dic_district` VALUES ('630223', '互助土族自治县', '630200', '3'); +INSERT INTO `dic_district` VALUES ('630224', '化隆回族自治县', '630200', '3'); +INSERT INTO `dic_district` VALUES ('630225', '循化撒拉族自治县', '630200', '3'); +INSERT INTO `dic_district` VALUES ('632200', '海北藏族自治州', '630000', '2'); +INSERT INTO `dic_district` VALUES ('632221', '门源回族自治县', '632200', '3'); +INSERT INTO `dic_district` VALUES ('632222', '祁连县', '632200', '3'); +INSERT INTO `dic_district` VALUES ('632223', '海晏县', '632200', '3'); +INSERT INTO `dic_district` VALUES ('632224', '刚察县', '632200', '3'); +INSERT INTO `dic_district` VALUES ('632300', '黄南藏族自治州', '630000', '2'); +INSERT INTO `dic_district` VALUES ('632301', '同仁市', '632300', '3'); +INSERT INTO `dic_district` VALUES ('632322', '尖扎县', '632300', '3'); +INSERT INTO `dic_district` VALUES ('632323', '泽库县', '632300', '3'); +INSERT INTO `dic_district` VALUES ('632324', '河南蒙古族自治县', '632300', '3'); +INSERT INTO `dic_district` VALUES ('632500', '海南藏族自治州', '630000', '2'); +INSERT INTO `dic_district` VALUES ('632521', '共和县', '632500', '3'); +INSERT INTO `dic_district` VALUES ('632522', '同德县', '632500', '3'); +INSERT INTO `dic_district` VALUES ('632523', '贵德县', '632500', '3'); +INSERT INTO `dic_district` VALUES ('632524', '兴海县', '632500', '3'); +INSERT INTO `dic_district` VALUES ('632525', '贵南县', '632500', '3'); +INSERT INTO `dic_district` VALUES ('632600', '果洛藏族自治州', '630000', '2'); +INSERT INTO `dic_district` VALUES ('632621', '玛沁县', '632600', '3'); +INSERT INTO `dic_district` VALUES ('632622', '班玛县', '632600', '3'); +INSERT INTO `dic_district` VALUES ('632623', '甘德县', '632600', '3'); +INSERT INTO `dic_district` VALUES ('632624', '达日县', '632600', '3'); +INSERT INTO `dic_district` VALUES ('632625', '久治县', '632600', '3'); +INSERT INTO `dic_district` VALUES ('632626', '玛多县', '632600', '3'); +INSERT INTO `dic_district` VALUES ('632700', '玉树藏族自治州', '630000', '2'); +INSERT INTO `dic_district` VALUES ('632701', '玉树市', '632700', '3'); +INSERT INTO `dic_district` VALUES ('632722', '杂多县', '632700', '3'); +INSERT INTO `dic_district` VALUES ('632723', '称多县', '632700', '3'); +INSERT INTO `dic_district` VALUES ('632724', '治多县', '632700', '3'); +INSERT INTO `dic_district` VALUES ('632725', '囊谦县', '632700', '3'); +INSERT INTO `dic_district` VALUES ('632726', '曲麻莱县', '632700', '3'); +INSERT INTO `dic_district` VALUES ('632800', '海西蒙古族藏族自治州', '630000', '2'); +INSERT INTO `dic_district` VALUES ('632801', '格尔木市', '632800', '3'); +INSERT INTO `dic_district` VALUES ('632802', '德令哈市', '632800', '3'); +INSERT INTO `dic_district` VALUES ('632803', '茫崖市', '632800', '3'); +INSERT INTO `dic_district` VALUES ('632821', '乌兰县', '632800', '3'); +INSERT INTO `dic_district` VALUES ('632822', '都兰县', '632800', '3'); +INSERT INTO `dic_district` VALUES ('632823', '天峻县', '632800', '3'); +INSERT INTO `dic_district` VALUES ('632825', '海西蒙古族藏族自治州直辖', '632800', '3'); +INSERT INTO `dic_district` VALUES ('640000', '宁夏回族自治区', '100000', '1'); +INSERT INTO `dic_district` VALUES ('640100', '银川市', '640000', '2'); +INSERT INTO `dic_district` VALUES ('640104', '兴庆区', '640100', '3'); +INSERT INTO `dic_district` VALUES ('640105', '西夏区', '640100', '3'); +INSERT INTO `dic_district` VALUES ('640106', '金凤区', '640100', '3'); +INSERT INTO `dic_district` VALUES ('640121', '永宁县', '640100', '3'); +INSERT INTO `dic_district` VALUES ('640122', '贺兰县', '640100', '3'); +INSERT INTO `dic_district` VALUES ('640181', '灵武市', '640100', '3'); +INSERT INTO `dic_district` VALUES ('640200', '石嘴山市', '640000', '2'); +INSERT INTO `dic_district` VALUES ('640202', '大武口区', '640200', '3'); +INSERT INTO `dic_district` VALUES ('640205', '惠农区', '640200', '3'); +INSERT INTO `dic_district` VALUES ('640221', '平罗县', '640200', '3'); +INSERT INTO `dic_district` VALUES ('640300', '吴忠市', '640000', '2'); +INSERT INTO `dic_district` VALUES ('640302', '利通区', '640300', '3'); +INSERT INTO `dic_district` VALUES ('640303', '红寺堡区', '640300', '3'); +INSERT INTO `dic_district` VALUES ('640323', '盐池县', '640300', '3'); +INSERT INTO `dic_district` VALUES ('640324', '同心县', '640300', '3'); +INSERT INTO `dic_district` VALUES ('640381', '青铜峡市', '640300', '3'); +INSERT INTO `dic_district` VALUES ('640400', '固原市', '640000', '2'); +INSERT INTO `dic_district` VALUES ('640402', '原州区', '640400', '3'); +INSERT INTO `dic_district` VALUES ('640422', '西吉县', '640400', '3'); +INSERT INTO `dic_district` VALUES ('640423', '隆德县', '640400', '3'); +INSERT INTO `dic_district` VALUES ('640424', '泾源县', '640400', '3'); +INSERT INTO `dic_district` VALUES ('640425', '彭阳县', '640400', '3'); +INSERT INTO `dic_district` VALUES ('640500', '中卫市', '640000', '2'); +INSERT INTO `dic_district` VALUES ('640502', '沙坡头区', '640500', '3'); +INSERT INTO `dic_district` VALUES ('640521', '中宁县', '640500', '3'); +INSERT INTO `dic_district` VALUES ('640522', '海原县', '640500', '3'); +INSERT INTO `dic_district` VALUES ('650000', '新疆维吾尔自治区', '100000', '1'); +INSERT INTO `dic_district` VALUES ('650100', '乌鲁木齐市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('650102', '天山区', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650103', '沙依巴克区', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650104', '新市区', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650105', '水磨沟区', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650106', '头屯河区', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650107', '达坂城区', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650109', '米东区', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650121', '乌鲁木齐县', '650100', '3'); +INSERT INTO `dic_district` VALUES ('650200', '克拉玛依市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('650202', '独山子区', '650200', '3'); +INSERT INTO `dic_district` VALUES ('650203', '克拉玛依区', '650200', '3'); +INSERT INTO `dic_district` VALUES ('650204', '白碱滩区', '650200', '3'); +INSERT INTO `dic_district` VALUES ('650205', '乌尔禾区', '650200', '3'); +INSERT INTO `dic_district` VALUES ('650400', '吐鲁番市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('650402', '高昌区', '650400', '3'); +INSERT INTO `dic_district` VALUES ('650421', '鄯善县', '650400', '3'); +INSERT INTO `dic_district` VALUES ('650422', '托克逊县', '650400', '3'); +INSERT INTO `dic_district` VALUES ('650500', '哈密市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('650502', '伊州区', '650500', '3'); +INSERT INTO `dic_district` VALUES ('650521', '巴里坤哈萨克自治县', '650500', '3'); +INSERT INTO `dic_district` VALUES ('650522', '伊吾县', '650500', '3'); +INSERT INTO `dic_district` VALUES ('652300', '昌吉回族自治州', '650000', '2'); +INSERT INTO `dic_district` VALUES ('652301', '昌吉市', '652300', '3'); +INSERT INTO `dic_district` VALUES ('652302', '阜康市', '652300', '3'); +INSERT INTO `dic_district` VALUES ('652323', '呼图壁县', '652300', '3'); +INSERT INTO `dic_district` VALUES ('652324', '玛纳斯县', '652300', '3'); +INSERT INTO `dic_district` VALUES ('652325', '奇台县', '652300', '3'); +INSERT INTO `dic_district` VALUES ('652327', '吉木萨尔县', '652300', '3'); +INSERT INTO `dic_district` VALUES ('652328', '木垒哈萨克自治县', '652300', '3'); +INSERT INTO `dic_district` VALUES ('652700', '博尔塔拉蒙古自治州', '650000', '2'); +INSERT INTO `dic_district` VALUES ('652701', '博乐市', '652700', '3'); +INSERT INTO `dic_district` VALUES ('652702', '阿拉山口市', '652700', '3'); +INSERT INTO `dic_district` VALUES ('652722', '精河县', '652700', '3'); +INSERT INTO `dic_district` VALUES ('652723', '温泉县', '652700', '3'); +INSERT INTO `dic_district` VALUES ('652800', '巴音郭楞蒙古自治州', '650000', '2'); +INSERT INTO `dic_district` VALUES ('652801', '库尔勒市', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652822', '轮台县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652823', '尉犁县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652824', '若羌县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652825', '且末县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652826', '焉耆回族自治县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652827', '和静县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652828', '和硕县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652829', '博湖县', '652800', '3'); +INSERT INTO `dic_district` VALUES ('652900', '阿克苏地区', '650000', '2'); +INSERT INTO `dic_district` VALUES ('652901', '阿克苏市', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652902', '库车市', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652922', '温宿县', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652924', '沙雅县', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652925', '新和县', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652926', '拜城县', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652927', '乌什县', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652928', '阿瓦提县', '652900', '3'); +INSERT INTO `dic_district` VALUES ('652929', '柯坪县', '652900', '3'); +INSERT INTO `dic_district` VALUES ('653000', '克孜勒苏柯尔克孜自治州', '650000', '2'); +INSERT INTO `dic_district` VALUES ('653001', '阿图什市', '653000', '3'); +INSERT INTO `dic_district` VALUES ('653022', '阿克陶县', '653000', '3'); +INSERT INTO `dic_district` VALUES ('653023', '阿合奇县', '653000', '3'); +INSERT INTO `dic_district` VALUES ('653024', '乌恰县', '653000', '3'); +INSERT INTO `dic_district` VALUES ('653100', '喀什地区', '650000', '2'); +INSERT INTO `dic_district` VALUES ('653101', '喀什市', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653121', '疏附县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653122', '疏勒县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653123', '英吉沙县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653124', '泽普县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653125', '莎车县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653126', '叶城县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653127', '麦盖提县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653128', '岳普湖县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653129', '伽师县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653130', '巴楚县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653131', '塔什库尔干塔吉克自治县', '653100', '3'); +INSERT INTO `dic_district` VALUES ('653200', '和田地区', '650000', '2'); +INSERT INTO `dic_district` VALUES ('653201', '和田市', '653200', '3'); +INSERT INTO `dic_district` VALUES ('653221', '和田县', '653200', '3'); +INSERT INTO `dic_district` VALUES ('653222', '墨玉县', '653200', '3'); +INSERT INTO `dic_district` VALUES ('653223', '皮山县', '653200', '3'); +INSERT INTO `dic_district` VALUES ('653224', '洛浦县', '653200', '3'); +INSERT INTO `dic_district` VALUES ('653225', '策勒县', '653200', '3'); +INSERT INTO `dic_district` VALUES ('653226', '于田县', '653200', '3'); +INSERT INTO `dic_district` VALUES ('653227', '民丰县', '653200', '3'); +INSERT INTO `dic_district` VALUES ('654000', '伊犁哈萨克自治州', '650000', '2'); +INSERT INTO `dic_district` VALUES ('654002', '伊宁市', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654003', '奎屯市', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654004', '霍尔果斯市', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654021', '伊宁县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654022', '察布查尔锡伯自治县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654023', '霍城县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654024', '巩留县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654025', '新源县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654026', '昭苏县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654027', '特克斯县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654028', '尼勒克县', '654000', '3'); +INSERT INTO `dic_district` VALUES ('654200', '塔城地区', '650000', '2'); +INSERT INTO `dic_district` VALUES ('654201', '塔城市', '654200', '3'); +INSERT INTO `dic_district` VALUES ('654202', '乌苏市', '654200', '3'); +INSERT INTO `dic_district` VALUES ('654203', '沙湾市', '654200', '3'); +INSERT INTO `dic_district` VALUES ('654221', '额敏县', '654200', '3'); +INSERT INTO `dic_district` VALUES ('654224', '托里县', '654200', '3'); +INSERT INTO `dic_district` VALUES ('654225', '裕民县', '654200', '3'); +INSERT INTO `dic_district` VALUES ('654226', '和布克赛尔蒙古自治县', '654200', '3'); +INSERT INTO `dic_district` VALUES ('654300', '阿勒泰地区', '650000', '2'); +INSERT INTO `dic_district` VALUES ('654301', '阿勒泰市', '654300', '3'); +INSERT INTO `dic_district` VALUES ('654321', '布尔津县', '654300', '3'); +INSERT INTO `dic_district` VALUES ('654322', '富蕴县', '654300', '3'); +INSERT INTO `dic_district` VALUES ('654323', '福海县', '654300', '3'); +INSERT INTO `dic_district` VALUES ('654324', '哈巴河县', '654300', '3'); +INSERT INTO `dic_district` VALUES ('654325', '青河县', '654300', '3'); +INSERT INTO `dic_district` VALUES ('654326', '吉木乃县', '654300', '3'); +INSERT INTO `dic_district` VALUES ('659001', '石河子市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659002', '阿拉尔市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659003', '图木舒克市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659004', '五家渠市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659005', '北屯市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659006', '铁门关市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659007', '双河市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659008', '可克达拉市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659009', '昆玉市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659010', '胡杨河市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('659011', '新星市', '650000', '2'); +INSERT INTO `dic_district` VALUES ('710000', '台湾省', '100000', '1'); +INSERT INTO `dic_district` VALUES ('810000', '香港特别行政区', '100000', '1'); +INSERT INTO `dic_district` VALUES ('810001', '中西区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810002', '湾仔区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810003', '东区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810004', '南区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810005', '油尖旺区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810006', '深水埗区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810007', '九龙城区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810008', '黄大仙区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810009', '观塘区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810010', '荃湾区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810011', '屯门区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810012', '元朗区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810013', '北区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810014', '大埔区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810015', '西贡区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810016', '沙田区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810017', '葵青区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('810018', '离岛区', '810000', '3'); +INSERT INTO `dic_district` VALUES ('820000', '澳门特别行政区', '100000', '1'); +INSERT INTO `dic_district` VALUES ('820001', '花地玛堂区', '820000', '3'); +INSERT INTO `dic_district` VALUES ('820002', '花王堂区', '820000', '3'); +INSERT INTO `dic_district` VALUES ('820003', '望德堂区', '820000', '3'); +INSERT INTO `dic_district` VALUES ('820004', '大堂区', '820000', '3'); +INSERT INTO `dic_district` VALUES ('820005', '风顺堂区', '820000', '3'); +INSERT INTO `dic_district` VALUES ('820006', '嘉模堂区', '820000', '3'); +INSERT INTO `dic_district` VALUES ('820007', '路凼填海区', '820000', '3'); +INSERT INTO `dic_district` VALUES ('820008', '圣方济各堂区', '820000', '3'); diff --git a/sql/service-passenger-user.sql b/sql/service-passenger-user.sql new file mode 100644 index 0000000..1dcd254 --- /dev/null +++ b/sql/service-passenger-user.sql @@ -0,0 +1,37 @@ +/* +Navicat MySQL Data Transfer + +Source Server : 本机 +Source Server Version : 80017 +Source Host : localhost:3306 +Source Database : service-passenger-user + +Target Server Type : MYSQL +Target Server Version : 80017 +File Encoding : 65001 + +Date: 2022-07-20 14:40:56 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for passenger_user +-- ---------------------------- +DROP TABLE IF EXISTS `passenger_user`; +CREATE TABLE `passenger_user` ( + `id` bigint(32) unsigned NOT NULL AUTO_INCREMENT, + `gmt_create` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + `gmt_modified` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, + `passenger_phone` varchar(16) DEFAULT NULL, + `passenger_name` varchar(16) DEFAULT NULL, + `passenger_gender` tinyint(1) DEFAULT NULL COMMENT '0:未知,1:男,2:女', + `state` tinyint(1) DEFAULT NULL COMMENT '0:有效,1:失效', + `profile_photo` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '头像图片地址的url', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1537346335930388483 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of passenger_user +-- ---------------------------- +INSERT INTO `passenger_user` VALUES ('1537346335930388482', '2022-06-21 17:17:21', '2022-06-21 17:17:21', '18178101668', '张三', '0', '0', 'pic.msb.com'); diff --git a/sql/service-price.sql b/sql/service-price.sql new file mode 100644 index 0000000..cba7b75 --- /dev/null +++ b/sql/service-price.sql @@ -0,0 +1,35 @@ +/* +Navicat MySQL Data Transfer + +Source Server : 本机 +Source Server Version : 80017 +Source Host : localhost:3306 +Source Database : service-price + +Target Server Type : MYSQL +Target Server Version : 80017 +File Encoding : 65001 + +Date: 2022-07-20 14:41:03 +*/ + +SET FOREIGN_KEY_CHECKS=0; + +-- ---------------------------- +-- Table structure for price_rule +-- ---------------------------- +DROP TABLE IF EXISTS `price_rule`; +CREATE TABLE `price_rule` ( + `city_code` char(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '城市代码', + `vehicle_type` char(8) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '车辆类型', + `start_fare` double(4,2) DEFAULT NULL COMMENT '起步价', + `start_mile` int(4) DEFAULT NULL, + `unit_price_per_mile` double(4,2) DEFAULT NULL, + `unit_price_per_minute` double(4,2) DEFAULT NULL, + PRIMARY KEY (`city_code`,`vehicle_type`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; + +-- ---------------------------- +-- Records of price_rule +-- ---------------------------- +INSERT INTO `price_rule` VALUES ('110000', '1', '10.00', '3', '1.80', '0.50');