suochencheng vor 7 Jahren
Commit
42d1f2ce07
100 geänderte Dateien mit 25476 neuen und 0 gelöschten Zeilen
  1. 6 0
      README.md
  2. 998 0
      pom.xml
  3. 10 0
      runConfigurations/Install_Dependencies.xml
  4. 75 0
      runConfigurations/Tomcat.xml
  5. 12 0
      runConfigurations/Vue_Build.xml
  6. 12 0
      runConfigurations/Vue_Server.xml
  7. 296 0
      src/main/java/com/izouma/awesomeadmin/constant/AppConstant.java
  8. 36 0
      src/main/java/com/izouma/awesomeadmin/constant/RongConstant.java
  9. 17 0
      src/main/java/com/izouma/awesomeadmin/container/DateConverter.java
  10. 26 0
      src/main/java/com/izouma/awesomeadmin/container/Lifecycle.java
  11. 70 0
      src/main/java/com/izouma/awesomeadmin/container/StartupListener.java
  12. 29 0
      src/main/java/com/izouma/awesomeadmin/dao/AccessTokenMapper.java
  13. 21 0
      src/main/java/com/izouma/awesomeadmin/dao/AccessTokenMapper.xml
  14. 36 0
      src/main/java/com/izouma/awesomeadmin/dao/AimGroupInfoMapper.java
  15. 606 0
      src/main/java/com/izouma/awesomeadmin/dao/AimGroupInfoMapper.xml
  16. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentChildMapper.java
  17. 505 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentChildMapper.xml
  18. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentMapper.java
  19. 891 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentMapper.xml
  20. 35 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlaceInfoMapper.java
  21. 1579 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlaceInfoMapper.xml
  22. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionLevelMapper.java
  23. 505 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionLevelMapper.xml
  24. 35 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionMapper.java
  25. 736 0
      src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionMapper.xml
  26. 36 0
      src/main/java/com/izouma/awesomeadmin/dao/AimTemplateAimMapper.java
  27. 706 0
      src/main/java/com/izouma/awesomeadmin/dao/AimTemplateAimMapper.xml
  28. 34 0
      src/main/java/com/izouma/awesomeadmin/dao/AimTemplateArMapper.java
  29. 482 0
      src/main/java/com/izouma/awesomeadmin/dao/AimTemplateArMapper.xml
  30. 35 0
      src/main/java/com/izouma/awesomeadmin/dao/AimTemplateMapper.java
  31. 494 0
      src/main/java/com/izouma/awesomeadmin/dao/AimTemplateMapper.xml
  32. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/AlipayTempMapper.java
  33. 527 0
      src/main/java/com/izouma/awesomeadmin/dao/AlipayTempMapper.xml
  34. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/ArContentChildMapper.java
  35. 707 0
      src/main/java/com/izouma/awesomeadmin/dao/ArContentChildMapper.xml
  36. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/ArContentMapper.java
  37. 947 0
      src/main/java/com/izouma/awesomeadmin/dao/ArContentMapper.xml
  38. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/ArContentTypeMapper.java
  39. 388 0
      src/main/java/com/izouma/awesomeadmin/dao/ArContentTypeMapper.xml
  40. 35 0
      src/main/java/com/izouma/awesomeadmin/dao/AreaInfoMapper.java
  41. 942 0
      src/main/java/com/izouma/awesomeadmin/dao/AreaInfoMapper.xml
  42. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/AreaShowPointMapper.java
  43. 544 0
      src/main/java/com/izouma/awesomeadmin/dao/AreaShowPointMapper.xml
  44. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/CityInfoMapper.java
  45. 489 0
      src/main/java/com/izouma/awesomeadmin/dao/CityInfoMapper.xml
  46. 27 0
      src/main/java/com/izouma/awesomeadmin/dao/CommonQueryMapper.java
  47. 189 0
      src/main/java/com/izouma/awesomeadmin/dao/CommonQueryMapper.xml
  48. 27 0
      src/main/java/com/izouma/awesomeadmin/dao/CommonQuerySqlServerMapper.java
  49. 182 0
      src/main/java/com/izouma/awesomeadmin/dao/CommonQuerySqlServerMapper.xml
  50. 36 0
      src/main/java/com/izouma/awesomeadmin/dao/DataSourceInfoMapper.java
  51. 327 0
      src/main/java/com/izouma/awesomeadmin/dao/DataSourceInfoMapper.xml
  52. 51 0
      src/main/java/com/izouma/awesomeadmin/dao/DepartInfoMapper.java
  53. 341 0
      src/main/java/com/izouma/awesomeadmin/dao/DepartInfoMapper.xml
  54. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/GenCodeMapper.java
  55. 265 0
      src/main/java/com/izouma/awesomeadmin/dao/GenCodeMapper.xml
  56. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/GenTestTableMapper.java
  57. 209 0
      src/main/java/com/izouma/awesomeadmin/dao/GenTestTableMapper.xml
  58. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/GuideTipImageMapper.java
  59. 390 0
      src/main/java/com/izouma/awesomeadmin/dao/GuideTipImageMapper.xml
  60. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/LandMarkLevelMapper.java
  61. 546 0
      src/main/java/com/izouma/awesomeadmin/dao/LandMarkLevelMapper.xml
  62. 38 0
      src/main/java/com/izouma/awesomeadmin/dao/LandMarkMapper.java
  63. 1254 0
      src/main/java/com/izouma/awesomeadmin/dao/LandMarkMapper.xml
  64. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/LandmarkTypeMapper.java
  65. 480 0
      src/main/java/com/izouma/awesomeadmin/dao/LandmarkTypeMapper.xml
  66. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketAimPlaceMapper.java
  67. 482 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketAimPlaceMapper.xml
  68. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxDesMapper.java
  69. 459 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxDesMapper.xml
  70. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxMapper.java
  71. 707 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxMapper.xml
  72. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketMapMapper.java
  73. 684 0
      src/main/java/com/izouma/awesomeadmin/dao/MarketMapMapper.xml
  74. 34 0
      src/main/java/com/izouma/awesomeadmin/dao/PowerInfoMapper.java
  75. 224 0
      src/main/java/com/izouma/awesomeadmin/dao/PowerInfoMapper.xml
  76. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/QueryConfigMapper.java
  77. 363 0
      src/main/java/com/izouma/awesomeadmin/dao/QueryConfigMapper.xml
  78. 26 0
      src/main/java/com/izouma/awesomeadmin/dao/RongYunTokenMapper.java
  79. 95 0
      src/main/java/com/izouma/awesomeadmin/dao/RongYunTokenMapper.xml
  80. 51 0
      src/main/java/com/izouma/awesomeadmin/dao/SuperUserMapper.java
  81. 88 0
      src/main/java/com/izouma/awesomeadmin/dao/SuperUserMapper.xml
  82. 14 0
      src/main/java/com/izouma/awesomeadmin/dao/SysAppTokenMapper.java
  83. 18 0
      src/main/java/com/izouma/awesomeadmin/dao/SysAppTokenMapper.xml
  84. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/SysDataruleMapper.java
  85. 153 0
      src/main/java/com/izouma/awesomeadmin/dao/SysDataruleMapper.xml
  86. 34 0
      src/main/java/com/izouma/awesomeadmin/dao/SysMenuMapper.java
  87. 386 0
      src/main/java/com/izouma/awesomeadmin/dao/SysMenuMapper.xml
  88. 47 0
      src/main/java/com/izouma/awesomeadmin/dao/SysRoleMapper.java
  89. 372 0
      src/main/java/com/izouma/awesomeadmin/dao/SysRoleMapper.xml
  90. 34 0
      src/main/java/com/izouma/awesomeadmin/dao/TableFieldMapper.java
  91. 494 0
      src/main/java/com/izouma/awesomeadmin/dao/TableFieldMapper.xml
  92. 36 0
      src/main/java/com/izouma/awesomeadmin/dao/ThingInfoMapper.java
  93. 950 0
      src/main/java/com/izouma/awesomeadmin/dao/ThingInfoMapper.xml
  94. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/UserFileInfoMapper.java
  95. 478 0
      src/main/java/com/izouma/awesomeadmin/dao/UserFileInfoMapper.xml
  96. 44 0
      src/main/java/com/izouma/awesomeadmin/dao/UserInfoMapper.java
  97. 708 0
      src/main/java/com/izouma/awesomeadmin/dao/UserInfoMapper.xml
  98. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/VuforiaImageGroupMapper.java
  99. 472 0
      src/main/java/com/izouma/awesomeadmin/dao/VuforiaImageGroupMapper.xml
  100. 33 0
      src/main/java/com/izouma/awesomeadmin/dao/VuforiaImageInfoMapper.java

+ 6 - 0
README.md

@@ -0,0 +1,6 @@
+# 后台项目模版
+* IDEA 直接打开项目
+* 复制 runConfigurations 文件夹至 .idea 文件夹下
+* 运行 Install Dependencies
+* 同时运行 Tomcat 和 Vue Server
+* 访问 [http://localhost:8081](http://localhost:8081)

+ 998 - 0
pom.xml

@@ -0,0 +1,998 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>com.izouma</groupId>
+    <artifactId>awesome-admin</artifactId>
+    <version>1.0.0</version>
+    <packaging>war</packaging>
+
+    <name>awesome-admin</name>
+    <url>http://www.izouma.com</url>
+
+    <!-- 项目属性 -->
+    <properties>
+        <!-- other libs -->
+        <lib.path>${basedir}/src/main/webapp/WEB-INF/lib</lib.path>
+        <!-- main version setting -->
+        <spring.version>4.3.5.RELEASE</spring.version>
+        <validator.version>5.4.0.Final</validator.version>
+        <mybatis.version>3.3.1</mybatis.version>
+        <mybatis-spring.version>1.2.2</mybatis-spring.version>
+        <druid.version>1.0.31</druid.version>
+        <ehcache.version>2.6.11</ehcache.version>
+        <ehcache-web.version>2.0.4</ehcache-web.version>
+        <shiro.version>1.4.0</shiro.version>
+        <sitemesh.version>2.4.2</sitemesh.version>
+        <activiti.version>5.22.0</activiti.version>
+
+        <!-- tools version setting -->
+        <slf4j.version>1.7.25</slf4j.version>
+        <log4j.version>1.2.17</log4j.version>
+        <commons-io.version>2.4</commons-io.version>
+        <commons-codec.version>1.9</commons-codec.version>
+        <commons-fileupload.version>1.3.1</commons-fileupload.version>
+        <commons-beanutils.version>1.9.1</commons-beanutils.version>
+        <jackson.version>2.8.6</jackson.version>
+        <fastjson.version>1.1.40</fastjson.version>
+        <xstream.version>1.4.9</xstream.version>
+        <dozer.version>5.5.1</dozer.version>
+        <poi.version>3.9</poi.version>
+        <freemarker.version>2.3.25-incubating</freemarker.version>
+        <quartz.version>2.2.3</quartz.version>
+        <ckfinder.version>2.3</ckfinder.version>
+
+        <guava.version>20.0</guava.version>
+        <commons-lang3.version>3.5</commons-lang3.version>
+        <commons-text.version>1.3</commons-text.version>
+        <commons-collections.version>4.1</commons-collections.version>
+
+        <!-- jdbc driver setting -->
+        <mysql.driver.version>5.1.30</mysql.driver.version>
+        <sqlserver.driver.version>4.0.0</sqlserver.driver.version>
+        <oracle.driver.version>10.2.0.4.0</oracle.driver.version>
+        <mssql.driver.version>1.3.1</mssql.driver.version>
+
+        <!-- environment setting -->
+        <jdk.version>1.8</jdk.version>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <downloadSources>true</downloadSources>
+
+    </properties>
+    <!-- 设定仓库 -->
+    <!--<repositories>-->
+    <!--<repository>-->
+    <!--<id>central-repos</id>-->
+    <!--<name>Central Repository</name>-->
+    <!--<url>http://maven.aliyun.com/nexus/content/groups/public/</url>-->
+    <!--<releases>-->
+    <!--<enabled>true</enabled>-->
+    <!--</releases>-->
+    <!--<snapshots>-->
+    <!--<enabled>false</enabled>-->
+    <!--</snapshots>-->
+    <!--</repository>-->
+
+    <!--<repository>-->
+    <!--<id>central-repos2</id>-->
+    <!--<name>Central Repository 2</name>-->
+    <!--<url>http://mvnrepo.code.taobao.org/nexus/content/repositories/snapshots/</url>-->
+    <!--<releases>-->
+    <!--<enabled>true</enabled>-->
+    <!--</releases>-->
+    <!--<snapshots>-->
+    <!--<enabled>false</enabled>-->
+    <!--</snapshots>-->
+    <!--</repository>-->
+
+    <!--<repository>-->
+    <!--<id>springsource-repos</id>-->
+    <!--<name>SpringSource Repository</name>-->
+    <!--<url>http://mvnrepo.code.taobao.org/nexus/content/repositories/releases/</url>-->
+    <!--<releases>-->
+    <!--<enabled>true</enabled>-->
+    <!--</releases>-->
+    <!--<snapshots>-->
+    <!--<enabled>false</enabled>-->
+    <!--</snapshots>-->
+    <!--</repository>-->
+    <!---->
+    <!--<repository>-->
+    <!--<id>bitwalker.user-agent-utils.mvn.repo</id>-->
+    <!--<url>https://nexus.jackpinetech.com/nexus/content/groups/public</url>-->
+    <!--&lt;!&ndash; use snapshot version &ndash;&gt;-->
+    <!--<snapshots>-->
+    <!--<updatePolicy>always</updatePolicy>-->
+    <!--</snapshots>-->
+    <!--</repository>-->
+    <!--</repositories>-->
+    <build>
+        <finalName>awesome-admin</finalName>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*.xml</include>
+                    <include>**/*.properties</include>
+                </includes>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+            </resource>
+        </resources>
+
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>${jdk.version}</source>
+                    <target>${jdk.version}</target>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <version>2.10</version>
+                <configuration>
+                    <skip>true</skip>
+                    <testFailureIgnore>true</testFailureIgnore>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <!-- 依赖项定义 -->
+    <dependencies>
+        <!-- SPRING begin -->
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-core</artifactId>
+            <version>${spring.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>commons-logging</groupId>
+                    <artifactId>commons-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-beans</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-context</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-context-support</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-aop</artifactId>
+            <version>${spring.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>commons-logging</groupId>
+                    <artifactId>commons-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-tx</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-expression</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+
+        <!-- spring orm -->
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-orm</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-jdbc</artifactId>
+            <version>${spring.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>c3p0</groupId>
+                    <artifactId>c3p0</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+
+        <!-- spring websocket-->
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-websocket</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-messaging</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+
+        <!-- bean validate -->
+        <dependency>
+            <groupId>org.hibernate</groupId>
+            <artifactId>hibernate-validator</artifactId>
+            <version>${validator.version}</version>
+        </dependency>
+        <!-- SPRING end -->
+
+        <!-- AOP begin -->
+        <dependency>
+            <groupId>org.aspectj</groupId>
+            <artifactId>aspectjrt</artifactId>
+            <version>1.7.4</version>
+        </dependency>
+        <dependency>
+            <groupId>org.aspectj</groupId>
+            <artifactId>aspectjweaver</artifactId>
+            <version>1.7.4</version>
+        </dependency>
+        <dependency>
+            <groupId>cglib</groupId>
+            <artifactId>cglib</artifactId>
+            <version>3.1</version>
+        </dependency>
+        <!-- AOP end -->
+
+        <!-- PERSISTENCE begin -->
+
+        <!-- MyBatis -->
+        <dependency>
+            <groupId>org.mybatis</groupId>
+            <artifactId>mybatis</artifactId>
+            <version>${mybatis.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.mybatis</groupId>
+            <artifactId>mybatis-spring</artifactId>
+            <version>${mybatis-spring.version}</version>
+        </dependency>
+
+        <!-- connection pool -->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid</artifactId>
+            <version>${druid.version}</version>
+        </dependency>
+
+        <!-- jdbc driver -->
+        <dependency>
+            <groupId>mysql</groupId>
+            <artifactId>mysql-connector-java</artifactId>
+            <version>${mysql.driver.version}</version>
+        </dependency>
+        <!--<dependency>-->
+            <!--<groupId>com.microsoft.sqlserver</groupId>-->
+            <!--<artifactId>sqljdbc4</artifactId>-->
+            <!--<version>${sqlserver.driver.version}</version>-->
+        <!--</dependency>-->
+        <!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/sqljdbc4 -->
+        <!-- https://mvnrepository.com/artifact/com.microsoft.sqlserver/mssql-jdbc -->
+        <dependency>
+            <groupId>com.microsoft.sqlserver</groupId>
+            <artifactId>mssql-jdbc</artifactId>
+            <version>6.4.0.jre8</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.mchange</groupId>
+            <artifactId>c3p0</artifactId>
+            <version>0.9.5.2</version>
+        </dependency>
+
+        <!-- WEB begin -->
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-web</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-webmvc</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-oxm</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>opensymphony</groupId>
+            <artifactId>sitemesh</artifactId>
+            <version>${sitemesh.version}</version>
+        </dependency>
+        <!--<dependency>-->
+        <!--<groupId>taglibs</groupId>-->
+        <!--<artifactId>standard</artifactId>-->
+        <!--<version>1.1.2</version>-->
+        <!--<type>jar</type>-->
+        <!--</dependency>-->
+
+
+        <dependency>
+            <groupId>javax</groupId>
+            <artifactId>javaee-api</artifactId>
+            <version>7.0</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>jstl</artifactId>
+            <version>1.2</version>
+            <type>jar</type>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.5</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet.jsp</groupId>
+            <artifactId>jsp-api</artifactId>
+            <version>2.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <!--  <dependency>
+             <groupId>javax.servlet</groupId>
+             <artifactId>javax.servlet-api</artifactId>
+             <version>3.0.1</version>
+             <scope>provided</scope>
+         </dependency>
+         <dependency>
+             <groupId>javax.servlet.jsp</groupId>
+             <artifactId>jsp-api</artifactId>
+             <version>2.2</version>
+             <scope>provided</scope>
+         </dependency>-->
+
+        <dependency>
+            <groupId>net.sf.ehcache</groupId>
+            <artifactId>ehcache-core</artifactId>
+            <version>${ehcache.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.jgroups</groupId>
+            <artifactId>jgroups</artifactId>
+            <version>3.6.6.Final</version>
+        </dependency>
+        <dependency>
+            <groupId>redis.clients</groupId>
+            <artifactId>jedis</artifactId>
+            <version>2.8.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-pool2</artifactId>
+            <version>2.4.2</version>
+        </dependency>
+        <dependency>
+            <groupId>de.ruedigermoeller</groupId>
+            <artifactId>fst</artifactId>
+            <version>2.42</version>
+        </dependency>
+        <dependency>
+            <groupId>com.esotericsoftware</groupId>
+            <artifactId>kryo-shaded</artifactId>
+            <version>3.0.0</version>
+        </dependency>
+        <!-- CACHE end -->
+
+        <!-- SECURITY begin -->
+        <dependency>
+            <groupId>org.apache.shiro</groupId>
+            <artifactId>shiro-core</artifactId>
+            <version>${shiro.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.shiro</groupId>
+            <artifactId>shiro-spring</artifactId>
+            <version>${shiro.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.shiro</groupId>
+            <artifactId>shiro-cas</artifactId>
+            <version>${shiro.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>commons-logging</groupId>
+                    <artifactId>commons-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.shiro</groupId>
+            <artifactId>shiro-web</artifactId>
+            <version>${shiro.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.shiro</groupId>
+            <artifactId>shiro-ehcache</artifactId>
+            <version>${shiro.version}</version>
+        </dependency>
+        <!-- SECURITY end -->
+
+        <!-- Activiti -->
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-engine</artifactId>
+            <version>${activiti.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-spring</artifactId>
+            <version>${activiti.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-explorer</artifactId>
+            <version>${activiti.version}</version>
+            <exclusions>
+                <exclusion>
+                    <artifactId>vaadin</artifactId>
+                    <groupId>com.vaadin</groupId>
+                </exclusion>
+                <exclusion>
+                    <artifactId>dcharts-widget</artifactId>
+                    <groupId>org.vaadin.addons</groupId>
+                </exclusion>
+                <exclusion>
+                    <artifactId>activiti-simple-workflow</artifactId>
+                    <groupId>org.activiti</groupId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-modeler</artifactId>
+            <version>${activiti.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-rest</artifactId>
+            <version>${activiti.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-diagram-rest</artifactId>
+            <version>${activiti.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-json-converter</artifactId>
+            <version>${activiti.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.activiti</groupId>
+            <artifactId>activiti-cxf</artifactId>
+            <version>${activiti.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+            <version>2.11.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-api</artifactId>
+            <version>2.7.6</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-frontend-jaxws</artifactId>
+            <version>2.7.6</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-transports-http-jetty</artifactId>
+            <version>2.7.6</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-transports-http</artifactId>
+            <version>2.7.6</version>
+        </dependency>
+        <dependency>
+            <groupId>com.sun.xml.bind</groupId>
+            <artifactId>jaxb-impl</artifactId>
+            <version>2.2.11</version>
+        </dependency>
+
+
+        <!-- LOGGING begin -->
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>${slf4j.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+            <version>${slf4j.version}</version>
+        </dependency>
+        <!-- common-logging 实际调用slf4j -->
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jcl-over-slf4j</artifactId>
+            <version>${slf4j.version}</version>
+        </dependency>
+        <!-- java.util.logging 实际调用slf4j -->
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jul-to-slf4j</artifactId>
+            <version>${slf4j.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>${log4j.version}</version>
+        </dependency>
+        <!-- LOGGING end -->
+
+        <!-- GENERAL UTILS begin -->
+        <dependency>
+            <groupId>commons-io</groupId>
+            <artifactId>commons-io</artifactId>
+            <version>${commons-io.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-codec</groupId>
+            <artifactId>commons-codec</artifactId>
+            <version>${commons-codec.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-fileupload</groupId>
+            <artifactId>commons-fileupload</artifactId>
+            <version>${commons-fileupload.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>commons-beanutils</groupId>
+            <artifactId>commons-beanutils</artifactId>
+            <version>${commons-beanutils.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>commons-logging</groupId>
+                    <artifactId>commons-logging</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-text</artifactId>
+            <version>${commons-text.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-collections4</artifactId>
+            <version>${commons-collections.version}</version>
+        </dependency>
+
+
+        <!-- jackson json -->
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-core</artifactId>
+            <version>${jackson.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+            <version>${jackson.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-annotations</artifactId>
+            <version>${jackson.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.fasterxml.jackson.module</groupId>
+            <artifactId>jackson-module-jaxb-annotations</artifactId>
+            <version>${jackson.version}</version>
+        </dependency>
+
+        <!-- fastjson json-->
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>fastjson</artifactId>
+            <version>${fastjson.version}</version>
+        </dependency>
+
+        <!-- xstream xml -->
+        <dependency>
+            <groupId>com.thoughtworks.xstream</groupId>
+            <artifactId>xstream</artifactId>
+            <version>${xstream.version}</version>
+        </dependency>
+
+        <!-- pojo copy -->
+        <dependency>
+            <groupId>net.sf.dozer</groupId>
+            <artifactId>dozer</artifactId>
+            <version>${dozer.version}</version>
+        </dependency>
+
+        <!-- https://mvnrepository.com/artifact/com.belerweb/pinyin4j -->
+        <dependency>
+            <groupId>com.belerweb</groupId>
+            <artifactId>pinyin4j</artifactId>
+            <version>2.5.1</version>
+        </dependency>
+
+
+        <!-- template engine -->
+        <dependency>
+            <groupId>org.freemarker</groupId>
+            <artifactId>freemarker</artifactId>
+            <version>${freemarker.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>com.ibeetl</groupId>
+            <artifactId>beetl</artifactId>
+            <version>2.7.5</version>
+        </dependency>
+
+        <!-- email -->
+        <dependency>
+            <groupId>javax.mail</groupId>
+            <artifactId>mail</artifactId>
+            <version>1.4.7</version>
+        </dependency>
+        <dependency>
+            <groupId>javax.activation</groupId>
+            <artifactId>activation</artifactId>
+            <version>1.1.1</version>
+        </dependency>
+
+        <!-- poi office -->
+        <dependency>
+            <groupId>org.apache.poi</groupId>
+            <artifactId>poi</artifactId>
+            <version>${poi.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.poi</groupId>
+            <artifactId>poi-ooxml</artifactId>
+            <version>${poi.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.poi</groupId>
+            <artifactId>poi-ooxml-schemas</artifactId>
+            <version>${poi.version}</version>
+        </dependency>
+
+        <!-- image util -->
+        <dependency>
+            <groupId>com.drewnoakes</groupId>
+            <artifactId>metadata-extractor</artifactId>
+            <version>2.10.1</version>
+        </dependency>
+
+        <!-- 条形码、二维码生成  -->
+        <dependency>
+            <groupId>com.google.zxing</groupId>
+            <artifactId>core</artifactId>
+            <version>3.3.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>batik</groupId>
+            <artifactId>batik-util</artifactId>
+            <version>1.6-1</version>
+        </dependency>
+
+        <!-- quartz -->
+        <dependency>
+            <groupId>org.quartz-scheduler</groupId>
+            <artifactId>quartz</artifactId>
+            <version>${quartz.version}</version>
+            <exclusions>
+                <exclusion>
+                    <groupId>c3p0</groupId>
+                    <artifactId>c3p0</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
+        <dependency>
+            <groupId>org.quartz-scheduler</groupId>
+            <artifactId>quartz-jobs</artifactId>
+            <version>${quartz.version}</version>
+        </dependency>
+
+        <!--&lt;!&ndash; 中文分词 &ndash;&gt;-->
+        <!--<dependency>-->
+        <!--<groupId>org.wltea</groupId>-->
+        <!--<artifactId>analyzer</artifactId>-->
+        <!--<version>2012_u6</version>-->
+        <!--</dependency>-->
+        <!-- GENERAL UTILS end -->
+
+        <!-- sigar -->
+        <!-- https://mvnrepository.com/artifact/org.fusesource/sigar -->
+        <dependency>
+            <groupId>org.fusesource</groupId>
+            <artifactId>sigar</artifactId>
+            <version>1.6.4</version>
+        </dependency>
+        <!-- CKFinder begin -->
+        <dependency>
+            <groupId>net.coobird</groupId>
+            <artifactId>thumbnailator</artifactId>
+            <version>0.4.8</version>
+        </dependency>
+        <!--<dependency>-->
+        <!--<groupId>com.ckfinder</groupId>-->
+        <!--<artifactId>apache-ant-zip</artifactId>-->
+        <!--<version>${ckfinder.version}</version>-->
+        <!--</dependency>-->
+        <!--<dependency>-->
+        <!--<groupId>com.ckfinder</groupId>-->
+        <!--<artifactId>ckfinder</artifactId>-->
+        <!--<version>${ckfinder.version}</version>-->
+        <!--</dependency>-->
+        <!--<dependency>-->
+        <!--<groupId>com.ckfinder</groupId>-->
+        <!--<artifactId>ckfinderplugin-fileeditor</artifactId>-->
+        <!--<version>${ckfinder.version}</version>-->
+        <!--</dependency>-->
+        <!--<dependency>-->
+        <!--<groupId>com.ckfinder</groupId>-->
+        <!--<artifactId>ckfinderplugin-imageresize</artifactId>-->
+        <!--<version>${ckfinder.version}</version>-->
+        <!--</dependency>-->
+        <!-- CKFinder end -->
+
+        <!-- Echarts图表依赖包开始 -->
+        <!-- https://mvnrepository.com/artifact/com.github.abel533/ECharts -->
+        <dependency>
+            <groupId>com.github.abel533</groupId>
+            <artifactId>ECharts</artifactId>
+            <version>3.0.0.2</version>
+        </dependency>
+        <dependency>
+            <groupId>com.google.code.gson</groupId>
+            <artifactId>gson</artifactId>
+            <version>2.6.2</version>
+        </dependency>
+        <!-- Echarts图表依赖包结束 -->
+
+        <!-- TEST begin -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.12</version>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-test</artifactId>
+            <version>${spring.version}</version>
+        </dependency>
+        <!-- TEST end -->
+        <dependency>
+            <groupId>eu.bitwalker</groupId>
+            <artifactId>UserAgentUtils</artifactId>
+            <version>1.20</version>
+        </dependency>
+
+        <!--httpcore -->
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpcore</artifactId>
+            <version>4.4.4</version>
+        </dependency>
+
+
+        <!-- swagger-springmvc -->
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger2</artifactId>
+            <version>2.7.0</version>
+        </dependency>
+        <dependency>
+            <groupId>io.springfox</groupId>
+            <artifactId>springfox-swagger-ui</artifactId>
+            <version>2.7.0</version>
+        </dependency>
+        <!-- swagger-springmvc -->
+
+        <!--httpclient -->
+        <dependency>
+            <groupId>org.apache.httpcomponents</groupId>
+            <artifactId>httpclient</artifactId>
+            <version>4.5.2</version>
+        </dependency>
+
+        <!-- UTILS begin -->
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+            <version>${guava.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-lang3</artifactId>
+            <version>${commons-lang3.version}</version>
+        </dependency>
+        <!-- UTILS end -->
+
+        <dependency>
+            <groupId>com.aliyun</groupId>
+            <artifactId>aliyun-java-sdk-core</artifactId>
+            <version>4.0.6</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.aliyun</groupId>
+            <artifactId>aliyun-java-sdk-dysmsapi</artifactId>
+            <version>1.1.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.aliyun</groupId>
+            <artifactId>aliyun-java-sdk-vod</artifactId>
+            <version>2.2.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.aliyun.oss</groupId>
+            <artifactId>aliyun-sdk-oss</artifactId>
+            <version>2.0.6</version>
+        </dependency>
+
+        <dependency>
+            <groupId>aopalliance</groupId>
+            <artifactId>aopalliance</artifactId>
+            <version>1.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>dom4j</groupId>
+            <artifactId>dom4j</artifactId>
+            <version>1.6.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>net.sf.ezmorph</groupId>
+            <artifactId>ezmorph</artifactId>
+            <version>1.0.6</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.jboss.logging</groupId>
+            <artifactId>jboss-logging</artifactId>
+            <version>3.3.0.Final</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.jboss</groupId>
+            <artifactId>jboss-vfs</artifactId>
+            <version>3.2.12.Final</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.jdom</groupId>
+            <artifactId>jdom</artifactId>
+            <version>1.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.codehaus.jettison</groupId>
+            <artifactId>jettison</artifactId>
+            <version>1.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>net.sf.json-lib</groupId>
+            <artifactId>json-lib</artifactId>
+            <classifier>jdk15</classifier>
+            <version>2.4</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.json</groupId>
+            <artifactId>json</artifactId>
+            <version>20160810</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.drewnoakes</groupId>
+            <artifactId>metadata-extractor</artifactId>
+            <version>2.10.1</version>
+        </dependency>
+
+        <dependency>
+            <groupId>net.coobird</groupId>
+            <artifactId>thumbnailator</artifactId>
+            <version>0.4.8</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.adobe.xmp</groupId>
+            <artifactId>xmpcore</artifactId>
+            <version>5.1.3</version>
+        </dependency>
+
+        <dependency>
+            <groupId>xpp3</groupId>
+            <artifactId>xpp3_min</artifactId>
+            <version>1.1.4c</version>
+        </dependency>
+
+        <!--<dependency>-->
+            <!--<groupId>org.apache.velocity</groupId>-->
+            <!--<artifactId>velocity-engine-core</artifactId>-->
+            <!--<version>2.0</version>-->
+        <!--</dependency>-->
+        <!-- https://mvnrepository.com/artifact/org.apache.velocity/velocity -->
+        <dependency>
+            <groupId>org.apache.velocity</groupId>
+            <artifactId>velocity</artifactId>
+            <version>1.7</version>
+        </dependency>
+
+
+        <dependency>
+            <groupId>org.apache.velocity</groupId>
+            <artifactId>velocity-tools</artifactId>
+            <version>2.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.fasterxml.uuid</groupId>
+            <artifactId>java-uuid-generator</artifactId>
+            <version>3.1.3</version>
+        </dependency>
+        <!--<dependency>-->
+            <!--<groupId>com.baidu</groupId>-->
+            <!--<artifactId>ueditor</artifactId>-->
+            <!--<version>1.1.2</version>-->
+            <!--<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/ueditor-1.1.2.jar</systemPath>-->
+        <!--</dependency>-->
+
+        <dependency>
+            <groupId>io.jsonwebtoken</groupId>
+            <artifactId>jjwt-api</artifactId>
+            <version>0.10.1</version>
+        </dependency>
+        <dependency>
+            <groupId>io.jsonwebtoken</groupId>
+            <artifactId>jjwt-impl</artifactId>
+            <version>0.10.1</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>io.jsonwebtoken</groupId>
+            <artifactId>jjwt-jackson</artifactId>
+            <version>0.10.1</version>
+            <scope>runtime</scope>
+        </dependency>
+
+
+        <dependency>
+            <groupId>com.alipay.sdk</groupId>
+            <artifactId>alipay-sdk-java</artifactId>
+            <version>3.3.49.ALL</version>
+        </dependency>
+
+    </dependencies>
+
+</project>

+ 10 - 0
runConfigurations/Install_Dependencies.xml

@@ -0,0 +1,10 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="Install Dependencies" type="js.build_tools.npm" factoryName="npm">
+    <package-json value="$PROJECT_DIR$/src/main/vue/package.json" />
+    <command value="install" />
+    <arguments value="-verbose" />
+    <node-interpreter value="project" />
+    <envs />
+    <method />
+  </configuration>
+</component>

+ 75 - 0
runConfigurations/Tomcat.xml

@@ -0,0 +1,75 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="Tomcat" type="#com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory" factoryName="Local" APPLICATION_SERVER_NAME="Tomcat 8.5.30" ALTERNATIVE_JRE_ENABLED="false">
+    <option name="OPEN_IN_BROWSER" value="false" />
+    <option name="UPDATE_ON_FRAME_DEACTIVATION" value="true" />
+    <option name="UPDATING_POLICY" value="redeploy-artifacts" />
+    <deployment>
+      <artifact name="awesome-admin:war exploded">
+        <settings>
+          <option name="CONTEXT_PATH" value="/" />
+        </settings>
+      </artifact>
+    </deployment>
+    <server-settings>
+      <option name="BASE_DIRECTORY_NAME" value="Unnamed_awesome-admin" />
+    </server-settings>
+    <predefined_log_file id="Tomcat" enabled="true" />
+    <predefined_log_file id="Tomcat Catalina" enabled="true" />
+    <predefined_log_file id="Tomcat Manager" enabled="false" />
+    <predefined_log_file id="Tomcat Host Manager" enabled="false" />
+    <predefined_log_file id="Tomcat Localhost Access" enabled="false" />
+    <RunnerSettings RunnerId="Debug">
+      <option name="DEBUG_PORT" value="51593" />
+    </RunnerSettings>
+    <ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Cover">
+      <option name="USE_ENV_VARIABLES" value="true" />
+      <STARTUP>
+        <option name="USE_DEFAULT" value="true" />
+        <option name="SCRIPT" value="" />
+        <option name="VM_PARAMETERS" value="" />
+        <option name="PROGRAM_PARAMETERS" value="" />
+      </STARTUP>
+      <SHUTDOWN>
+        <option name="USE_DEFAULT" value="true" />
+        <option name="SCRIPT" value="" />
+        <option name="VM_PARAMETERS" value="" />
+        <option name="PROGRAM_PARAMETERS" value="" />
+      </SHUTDOWN>
+    </ConfigurationWrapper>
+    <ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Debug">
+      <option name="USE_ENV_VARIABLES" value="true" />
+      <STARTUP>
+        <option name="USE_DEFAULT" value="true" />
+        <option name="SCRIPT" value="" />
+        <option name="VM_PARAMETERS" value="" />
+        <option name="PROGRAM_PARAMETERS" value="" />
+      </STARTUP>
+      <SHUTDOWN>
+        <option name="USE_DEFAULT" value="true" />
+        <option name="SCRIPT" value="" />
+        <option name="VM_PARAMETERS" value="" />
+        <option name="PROGRAM_PARAMETERS" value="" />
+      </SHUTDOWN>
+    </ConfigurationWrapper>
+    <ConfigurationWrapper VM_VAR="JAVA_OPTS" RunnerId="Run">
+      <option name="USE_ENV_VARIABLES" value="true" />
+      <STARTUP>
+        <option name="USE_DEFAULT" value="true" />
+        <option name="SCRIPT" value="" />
+        <option name="VM_PARAMETERS" value="" />
+        <option name="PROGRAM_PARAMETERS" value="" />
+      </STARTUP>
+      <SHUTDOWN>
+        <option name="USE_DEFAULT" value="true" />
+        <option name="SCRIPT" value="" />
+        <option name="VM_PARAMETERS" value="" />
+        <option name="PROGRAM_PARAMETERS" value="" />
+      </SHUTDOWN>
+    </ConfigurationWrapper>
+    <method>
+      <option name="BuildArtifacts" enabled="true">
+        <artifact name="awesome-admin:war exploded" />
+      </option>
+    </method>
+  </configuration>
+</component>

+ 12 - 0
runConfigurations/Vue_Build.xml

@@ -0,0 +1,12 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="Vue Build" type="js.build_tools.npm" factoryName="npm">
+    <package-json value="$PROJECT_DIR$/src/main/vue/package.json" />
+    <command value="run" />
+    <scripts>
+      <script value="build" />
+    </scripts>
+    <node-interpreter value="project" />
+    <envs />
+    <method />
+  </configuration>
+</component>

+ 12 - 0
runConfigurations/Vue_Server.xml

@@ -0,0 +1,12 @@
+<component name="ProjectRunConfigurationManager">
+  <configuration default="false" name="Vue Server" type="js.build_tools.npm" factoryName="npm">
+    <package-json value="$PROJECT_DIR$/src/main/vue/package.json" />
+    <command value="run" />
+    <scripts>
+      <script value="dev" />
+    </scripts>
+    <node-interpreter value="project" />
+    <envs />
+    <method />
+  </configuration>
+</component>

+ 296 - 0
src/main/java/com/izouma/awesomeadmin/constant/AppConstant.java

@@ -0,0 +1,296 @@
+package com.izouma.awesomeadmin.constant;
+
+/**
+ * <p>
+ * app常量
+ * </p>
+ */
+public interface AppConstant {
+
+
+//    /**
+//     * 商户号
+//     */
+//    String MCH_ID = "1379284802";
+//
+//    /**
+//     * 子商户号
+//     */
+//    String SUB_MCH_ID = "";
+//
+//    /**
+//     * 商户密钥
+//     */
+//    String MCH_SECRET = "R4q0yoo5GXh9A3CDiKJ6v7hgiE0aT0rM";
+
+    /**
+     * 货币类型
+     */
+    String FEE_TYPE = "CNY";
+
+    /**
+     * 交易类型 扫码
+     */
+    String TRADE_TYPE_NATIVE = "NATIVE";
+
+    /**
+     * 交易类型 公众号H5
+     */
+    String TRADE_TYPE_JSAPI = "JSAPI";
+
+    /**
+     * 交易类型 APP
+     */
+    String TRADE_TYPE_APP = "APP";
+
+    /**
+     * 设备号 PC网页或公众号内支付请传"WEB"
+     */
+    String DEVICE_INFO = "WEB";
+
+//    /**
+//     * 标题
+//     */
+//    String BODY = "工蜂家服产品";
+//
+//    /**
+//     * 标题
+//     */
+//    String BODY_RECHARGE = "工蜂家服充值";
+//
+//    /**
+//     * 通知地址
+//     */
+//    String NOTIFY_URL = "http://www.gfjiafu.com/wxpay/notify";
+//
+//    /**
+//     * 通知地址
+//     */
+//    String GXNOTIFY_URL = "http://www.gfjiafu.com/GXwxpay/notify";
+//
+//    /**
+//     * 通知地址
+//     */
+//    String NOTIFY_URL_RECHARGE = "http://www.gfjiafu.com/wxpay/notifyRecharge";
+//
+//    /**
+//     * 商户名称
+//     */
+//    String SEND_NAME = "工蜂家服";
+
+    String PAGE = "page";
+
+
+    public interface PayMode {
+
+        /**
+         * 支付宝
+         */
+        Integer ALIPAY = 0;
+
+        /**
+         * 微信
+         */
+        Integer WEI_XIN = 1;
+
+        /**
+         * 电子币
+         */
+        Integer COIN = 2;
+    }
+
+    public interface InergralUpdateType {
+
+        /**
+         * 产品抵扣
+         */
+        Integer DISCOUNT = 0;
+
+        /**
+         * 任务
+         */
+        Integer TASK = 1;
+
+        /**
+         * 充值
+         */
+        Integer RECHARGE = 2;
+    }
+
+    public interface OrderStatus {
+
+        /**
+         * 下单,待付款
+         */
+        Integer NO_PAY = 0;
+
+        /**
+         * 支付完成,待上传原图、代发货
+         */
+        Integer PAY_OVER = 1;
+
+        /**
+         * 待修图、已发货
+         */
+        Integer WAIT_REPAIR = 2;
+
+        /**
+         * 修图完成待验收、
+         */
+        Integer ACCEPT = 3;
+
+        /**
+         * 验收不通过,待返修
+         */
+        Integer REWORK = 4;
+
+
+        /**
+         * 验收完成待评论、已收货待评论
+         */
+        Integer FINISH = 5;
+
+        /**
+         * 结束
+         */
+        Integer END = 6;
+
+
+        /**
+         * 退款中
+         */
+        Integer REFUNDING = 7;
+
+        /**
+         * 已经取消
+         */
+        Integer CANCEL = 8;
+
+
+        /**
+         * 退款失败
+         */
+        Integer REFUND_FAIL = 9;
+
+        /**
+         * 退款成功
+         */
+        Integer REFUND_SUCCESS = 10;
+
+
+    }
+
+    /**
+     * <p>货币类型。</p>
+     *
+     * @author 姓名 <br />
+     * 更新履历 <br />
+     * 日期 : 姓名: 更新内容<br />
+     * @version 1.0
+     */
+    public interface CoinType {
+
+        /**
+         * 充值
+         */
+        Integer RECHARGE = 0;
+
+        /**
+         * 消费
+         */
+        Integer CONSUMPTION = 1;
+
+        /**
+         * 兑换
+         */
+        Integer EXCHANGE = 2;
+
+        /**
+         * 提现
+         */
+        Integer CASH = 3;
+
+        /**
+         * 税收
+         */
+        Integer TAXES = 4;
+
+
+        /**
+         * 销售
+         */
+        Integer SALE = 5;
+
+        /**
+         * 返还
+         */
+        Integer FAN_HUAN = 6;
+
+
+        /**
+         * 退款
+         */
+        Integer REFUND = 7;
+
+        /**
+         * 赠送
+         */
+        Integer SONG = 8;
+
+    }
+
+    public interface Aliapi {
+
+        /**
+         * 交易创建,等待买家付款
+         */
+        String WAIT_BUYER_PAY = "WAIT_BUYER_PAY";
+
+        /**
+         * 未付款交易超时关闭,或支付完成后全额退款
+         */
+        String TRADE_CLOSED = "TRADE_CLOSED";
+
+        /**
+         * 交易支付成功
+         */
+        String TRADE_SUCCESS = "TRADE_SUCCESS";
+
+        /**
+         * 交易结束,不可退款
+         */
+        String TRADE_FINISHED = "TRADE_FINISHED";
+
+        /**
+         * typeFlag, 购买,订单付款
+         */
+        Integer BUY = 0;
+
+        /**
+         * typeFlag,充值
+         */
+        Integer RECHARGE = 1;
+
+        /**
+         * 押金
+         */
+        Integer CASH_PLEDGE = 2;
+
+    }
+
+    /**
+     * 商品类型
+     */
+    public interface ProductType {
+
+        /**
+         * 修图
+         */
+        String IMAGE = "0";
+
+        /**
+         * 实体商品
+         */
+        String PHYSICAL = "1";
+    }
+}

+ 36 - 0
src/main/java/com/izouma/awesomeadmin/constant/RongConstant.java

@@ -0,0 +1,36 @@
+package com.izouma.awesomeadmin.constant;
+
+/**
+ * 
+ * <p>
+ * 融云常量
+ * </p>
+ */
+public interface RongConstant {
+
+    /**
+     * 验证码模板
+     */
+    String VERIFY_TEMPLATEID = "fMsDXJ0Y4pCbrtN4a66JGx";
+
+    /**
+     * 通知模板
+     */
+    String NOTIFY_TEMPLATEID = "a6ZrRkr3AKqaDMizqPhFEi";
+
+    /**
+     * 提交订单
+     */
+    String TI_JIAO_DIN_DAN   = "0Q3R5Enjk_58Ycq-XEqAQt";
+
+    /**
+     * 派送订单
+     */
+    String PAI_SONG_DIN_DAN  = "e5daKayLkqi8WJnckJguke";
+
+    /**
+     * 通用
+     */
+    String COMMON_TEMPLATEID = "e8kzeKB5Ahx9Vnm7tPESn3";
+
+}

+ 17 - 0
src/main/java/com/izouma/awesomeadmin/container/DateConverter.java

@@ -0,0 +1,17 @@
+package com.izouma.awesomeadmin.container;
+
+import org.springframework.core.convert.converter.Converter;
+
+import java.util.Date;
+
+public class DateConverter implements Converter<String, Date> {
+    @Override
+    public Date convert(String source) {
+        try {
+            return new Date(Long.valueOf(source));
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return null;
+    }
+}

+ 26 - 0
src/main/java/com/izouma/awesomeadmin/container/Lifecycle.java

@@ -0,0 +1,26 @@
+package com.izouma.awesomeadmin.container;
+
+/**
+ * 启动项,可在容器启动时加载
+ * @author Administrator
+ *
+ */
+public interface Lifecycle {
+	/**
+	 * 启动初始化
+	 * @return
+	 */
+	boolean init();
+	
+	/**
+	 * 启动项信息
+	 * @return
+	 */
+	String getItemInfo();
+	
+	/**
+	 * 关闭
+	 * @return
+	 */
+	boolean close();	
+}

+ 70 - 0
src/main/java/com/izouma/awesomeadmin/container/StartupListener.java

@@ -0,0 +1,70 @@
+package com.izouma.awesomeadmin.container;
+
+import com.izouma.awesomeadmin.util.Const;
+
+import javax.servlet.ServletContextEvent;
+import javax.servlet.ServletContextListener;
+import java.util.LinkedList;
+import java.util.List;
+
+/**
+ * 启动监听方法
+ *
+ * @author OnceMad
+ */
+public class StartupListener implements ServletContextListener {
+
+    private static List<Lifecycle> startups = new LinkedList<Lifecycle>();
+
+    static {
+        //startups.add(new PhotoCheckWorker());
+    }
+
+
+    @Override
+    public void contextInitialized(ServletContextEvent sce) {
+
+        System.out.println("==================context Initialized=====================");
+
+        for (Lifecycle lifecycle : startups) {
+            System.out.print(lifecycle.getItemInfo() + " is start ");
+            if (lifecycle.init()) {
+                System.out.println(" successfully.");
+            } else {
+                System.out.println(" fail.");
+            }
+        }
+
+        initConst();
+
+
+        System.out.println("============context Initialized successfully===============");
+    }
+
+
+    @Override
+    public void contextDestroyed(ServletContextEvent sce) {
+
+        System.out.println("==================context Destroyed=====================");
+
+        for (Lifecycle lifecycle : startups) {
+            System.out.print(lifecycle.getItemInfo() + " is close ");
+            if (lifecycle.close()) {
+                System.out.println(" successfully.");
+            } else {
+                System.out.println(" fail.");
+            }
+        }
+
+    }
+
+
+    private void initConst() {
+
+        Const con = new Const();
+        con.initData();
+        System.out.println("============init const successfully===============");
+    }
+
+
+}

+ 29 - 0
src/main/java/com/izouma/awesomeadmin/dao/AccessTokenMapper.java

@@ -0,0 +1,29 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.Map;
+
+import org.springframework.stereotype.Repository;
+
+import com.izouma.awesomeadmin.model.AccessToken;
+
+@Repository("com.izouma.awesomeadmin.dao.AccessTokenMapper")
+public interface AccessTokenMapper {
+
+    /**
+     * 
+     * <p>获取最新的accessToken。</p>
+     *
+     * @return
+     */
+    AccessToken getAccessToken();
+
+
+    /**
+     * 
+     * <p>插入新的accessToken。</p>
+     *
+     * @param parameter
+     * @return
+     */
+    int updateAccessToken(Map <String, Object> parameter);
+}

+ 21 - 0
src/main/java/com/izouma/awesomeadmin/dao/AccessTokenMapper.xml

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.izouma.awesomeadmin.dao.AccessTokenMapper">
+	<!-- 目的:为 Dao接口方法提供sql语句配置 -->
+	<select id="getAccessToken" resultType="com.izouma.awesomeadmin.model.AccessToken" >
+		SELECT
+			*
+		FROM
+			sys_access_token
+		ORDER BY
+			time_stamp DESC
+		LIMIT 1
+	</select>
+	
+	<insert id="updateAccessToken" parameterType="map">
+	    INSERT INTO sys_access_token (access_token, time_stamp)
+		VALUES (#{accessToken}, #{timeStamp})
+  	</insert>
+
+</mapper>

+ 36 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimGroupInfoMapper.java

@@ -0,0 +1,36 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimGroupInfo;
+
+
+/**
+ * Dao接口
+ */
+@Repository("com.zoumaframe.dao.AimGroupInfoMapper")
+public interface AimGroupInfoMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimGroupInfo record);
+
+    AimGroupInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimGroupInfo record);
+
+    List<AimGroupInfo> queryAllAimGroupInfo(AimGroupInfo record);
+
+    List<AimGroupInfo> queryAimGroupInfoByPage(Map<String, Object> parameter);
+
+    int delete(AimGroupInfo record);
+
+    AimGroupInfo queryAimGroupInfo(AimGroupInfo record);
+
+    AimGroupInfo queryAimGroupInfoAllInfo(AimGroupInfo record);
+
+    List<AimGroupInfo> query(AimGroupInfo record);
+}
+

+ 606 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimGroupInfoMapper.xml

@@ -0,0 +1,606 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimGroupInfoMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimGroupInfo">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="power" property="power" jdbcType="VARCHAR"/>
+        <result column="city_id" property="cityId" jdbcType="VARCHAR"/>
+        <result column="landmark_id" property="landmarkId" jdbcType="VARCHAR"/>
+        <result column="area_id" property="areaId" jdbcType="VARCHAR"/>
+        <result column="thing_id" property="thingId" jdbcType="VARCHAR"/>
+        <result column="group_name" property="groupName" jdbcType="VARCHAR"/>
+        <result column="aim_template_id" property="aimTemplateId" jdbcType="VARCHAR"/>
+        <result column="user_area" property="userArea" jdbcType="VARCHAR"/>
+        <result column="remark" property="remark" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            power,
+
+            city_id,
+
+            landmark_id,
+
+            area_id,
+
+            thing_id,
+
+            group_name,
+
+            aim_template_id,
+
+            user_area,
+
+            remark,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_group_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from aim_group_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimGroupInfo" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into aim_group_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="power!= null">
+                power,
+            </if>
+            <if test="cityId!= null">
+                city_id,
+            </if>
+            <if test="landmarkId!= null">
+                landmark_id,
+            </if>
+            <if test="areaId!= null">
+                area_id,
+            </if>
+            <if test="thingId!= null">
+                thing_id,
+            </if>
+            <if test="groupName!= null">
+                group_name,
+            </if>
+            <if test="aimTemplateId!= null">
+                aim_template_id,
+            </if>
+            <if test="userArea!= null">
+                user_area,
+            </if>
+            <if test="remark!= null">
+                remark,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="cityId != null">
+                #{cityId,jdbcType=VARCHAR},
+            </if>
+            <if test="landmarkId != null">
+                #{landmarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingId != null">
+                #{thingId,jdbcType=VARCHAR},
+            </if>
+            <if test="groupName != null">
+                #{groupName,jdbcType=VARCHAR},
+            </if>
+            <if test="aimTemplateId != null">
+                #{aimTemplateId,jdbcType=VARCHAR},
+            </if>
+            <if test="userArea != null">
+                #{userArea,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                #{remark,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimGroupInfo">
+        update aim_group_info
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                power= #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="cityId != null">
+                city_id= #{cityId,jdbcType=VARCHAR},
+            </if>
+            <if test="landmarkId != null">
+                landmark_id= #{landmarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                area_id= #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingId != null">
+                thing_id= #{thingId,jdbcType=VARCHAR},
+            </if>
+            <if test="groupName != null">
+                group_name= #{groupName,jdbcType=VARCHAR},
+            </if>
+            <if test="aimTemplateId != null">
+                aim_template_id= #{aimTemplateId,jdbcType=VARCHAR},
+            </if>
+            <if test="userArea != null">
+                user_area= #{userArea,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                remark= #{remark,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimGroupInfoByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimGroupInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_group_info
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and power = #{record.power}
+            </if>
+            <if test="record.cityId != null and !&quot;&quot;.equals(record.cityId)">
+                and city_id = #{record.cityId}
+            </if>
+            <if test="record.landmarkId != null and !&quot;&quot;.equals(record.landmarkId)">
+                and landmark_id = #{record.landmarkId}
+            </if>
+            <if test="record.areaId != null and !&quot;&quot;.equals(record.areaId)">
+                and area_id = #{record.areaId}
+            </if>
+            <if test="record.thingId != null and !&quot;&quot;.equals(record.thingId)">
+                and thing_id = #{record.thingId}
+            </if>
+            <if test="record.groupName != null and !&quot;&quot;.equals(record.groupName)">
+                and group_name = #{record.groupName}
+            </if>
+            <if test="record.aimTemplateId != null and !&quot;&quot;.equals(record.aimTemplateId)">
+                and aim_template_id = #{record.aimTemplateId}
+            </if>
+            <if test="record.userArea != null and !&quot;&quot;.equals(record.userArea)">
+                and user_area = #{record.userArea}
+            </if>
+            <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and remark = #{record.remark}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR power LIKE concat('%',#{record.searchKey},'%')
+                    OR city_id LIKE concat('%',#{record.searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{record.searchKey},'%')
+                    OR area_id LIKE concat('%',#{record.searchKey},'%')
+                    OR thing_id LIKE concat('%',#{record.searchKey},'%')
+                    OR group_name LIKE concat('%',#{record.searchKey},'%')
+                    OR aim_template_id LIKE concat('%',#{record.searchKey},'%')
+                    OR user_area LIKE concat('%',#{record.searchKey},'%')
+                    OR remark LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimGroupInfo" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimGroupInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_group_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="groupName != null and !&quot;&quot;.equals(groupName)">
+                and group_name = #{groupName}
+            </if>
+            <if test="aimTemplateId != null and !&quot;&quot;.equals(aimTemplateId)">
+                and aim_template_id = #{aimTemplateId}
+            </if>
+            <if test="userArea != null and !&quot;&quot;.equals(userArea)">
+                and user_area = #{userArea}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR power LIKE concat('%',#{searchKey},'%')
+                    OR city_id LIKE concat('%',#{searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{searchKey},'%')
+                    OR area_id LIKE concat('%',#{searchKey},'%')
+                    OR thing_id LIKE concat('%',#{searchKey},'%')
+                    OR group_name LIKE concat('%',#{searchKey},'%')
+                    OR aim_template_id LIKE concat('%',#{searchKey},'%')
+                    OR user_area LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimGroupInfo" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimGroupInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_group_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="groupName != null and !&quot;&quot;.equals(groupName)">
+                and group_name = #{groupName}
+            </if>
+            <if test="aimTemplateId != null and !&quot;&quot;.equals(aimTemplateId)">
+                and aim_template_id = #{aimTemplateId}
+            </if>
+            <if test="userArea != null and !&quot;&quot;.equals(userArea)">
+                and user_area = #{userArea}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <select id="queryAimGroupInfoAllInfo" parameterType="java.util.Map" resultMap="AllInfoResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_group_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="groupName != null and !&quot;&quot;.equals(groupName)">
+                and group_name = #{groupName}
+            </if>
+            <if test="aimTemplateId != null and !&quot;&quot;.equals(aimTemplateId)">
+                and aim_template_id = #{aimTemplateId}
+            </if>
+            <if test="userArea != null and !&quot;&quot;.equals(userArea)">
+                and user_area = #{userArea}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_group_info SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimGroupInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_group_info
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+    <resultMap id="AllInfoResultMap" type="com.izouma.awesomeadmin.model.AimGroupInfo" extends="BaseResultMap">
+
+
+        <collection property="aimPlaceInfoList" ofType="com.izouma.awesomeadmin.model.AimPlaceInfo"
+                    select="com.izouma.awesomeadmin.dao.AimPlaceInfoMapper.queryAllAimPlaceInfoAllInfo"
+                    column="{aimGroupId = id}">
+        </collection>
+
+    </resultMap>
+
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentChildMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimPlaceContentChild;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AimPlaceContentChildMapper")
+public interface AimPlaceContentChildMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimPlaceContentChild record);
+
+    AimPlaceContentChild selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimPlaceContentChild record);
+
+    List<AimPlaceContentChild> queryAllAimPlaceContentChild(AimPlaceContentChild record);
+
+    List<AimPlaceContentChild> queryAimPlaceContentChildByPage(Map<String, Object> parameter);
+
+    int delete(AimPlaceContentChild record);
+
+    AimPlaceContentChild queryAimPlaceContentChild(AimPlaceContentChild record);
+
+    List<AimPlaceContentChild> query(AimPlaceContentChild record);
+}
+

+ 505 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentChildMapper.xml

@@ -0,0 +1,505 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimPlaceContentChildMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimPlaceContentChild" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="aim_place_content_id" property="aimPlaceContentId" jdbcType="VARCHAR" />
+                                <result column="type" property="type" jdbcType="VARCHAR" />
+                                <result column="item_name" property="itemName" jdbcType="VARCHAR" />
+                                <result column="item_mess" property="itemMess" jdbcType="VARCHAR" />
+                                <result column="item_des" property="itemDes" jdbcType="VARCHAR" />
+                                <result column="remark1" property="remark1" jdbcType="VARCHAR" />
+                                <result column="remark2" property="remark2" jdbcType="VARCHAR" />
+                                <result column="remark3" property="remark3" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            aim_place_content_id,
+
+            type,
+
+            item_name,
+
+            item_mess,
+
+            item_des,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from aim_place_content_child
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from aim_place_content_child
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContentChild" useGeneratedKeys="true" keyProperty="id">
+        insert into aim_place_content_child
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="aimPlaceContentId!= null" >
+                aim_place_content_id,
+            </if>
+                <if test="type!= null" >
+                type,
+            </if>
+                <if test="itemName!= null" >
+                item_name,
+            </if>
+                <if test="itemMess!= null" >
+                item_mess,
+            </if>
+                <if test="itemDes!= null" >
+                item_des,
+            </if>
+                <if test="remark1!= null" >
+                remark1,
+            </if>
+                <if test="remark2!= null" >
+                remark2,
+            </if>
+                <if test="remark3!= null" >
+                remark3,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="aimPlaceContentId != null" >
+                #{aimPlaceContentId,jdbcType=VARCHAR},
+            </if>
+                    <if test="type != null" >
+                #{type,jdbcType=VARCHAR},
+            </if>
+                    <if test="itemName != null" >
+                #{itemName,jdbcType=VARCHAR},
+            </if>
+                    <if test="itemMess != null" >
+                #{itemMess,jdbcType=VARCHAR},
+            </if>
+                    <if test="itemDes != null" >
+                #{itemDes,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark1 != null" >
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark2 != null" >
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark3 != null" >
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContentChild" >
+        update aim_place_content_child
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="aimPlaceContentId != null" >
+               aim_place_content_id= #{aimPlaceContentId,jdbcType=VARCHAR},
+            </if>
+                     <if test="type != null" >
+               type= #{type,jdbcType=VARCHAR},
+            </if>
+                     <if test="itemName != null" >
+               item_name= #{itemName,jdbcType=VARCHAR},
+            </if>
+                     <if test="itemMess != null" >
+               item_mess= #{itemMess,jdbcType=VARCHAR},
+            </if>
+                     <if test="itemDes != null" >
+               item_des= #{itemDes,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark1 != null" >
+               remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark2 != null" >
+               remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark3 != null" >
+               remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimPlaceContentChildByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceContentChild">
+        select <include refid="Base_Column_List"/> from aim_place_content_child
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.aimPlaceContentId != null and !&quot;&quot;.equals(record.aimPlaceContentId)">
+                and  aim_place_content_id = #{record.aimPlaceContentId}
+            </if>
+                     <if test="record.type != null and !&quot;&quot;.equals(record.type)">
+                and  type = #{record.type}
+            </if>
+                     <if test="record.itemName != null and !&quot;&quot;.equals(record.itemName)">
+                and  item_name = #{record.itemName}
+            </if>
+                     <if test="record.itemMess != null and !&quot;&quot;.equals(record.itemMess)">
+                and  item_mess = #{record.itemMess}
+            </if>
+                     <if test="record.itemDes != null and !&quot;&quot;.equals(record.itemDes)">
+                and  item_des = #{record.itemDes}
+            </if>
+                     <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and  remark1 = #{record.remark1}
+            </if>
+                     <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and  remark2 = #{record.remark2}
+            </if>
+                     <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and  remark3 = #{record.remark3}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  aim_place_content_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  type LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  item_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  item_mess LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  item_des LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark1 LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark2 LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark3 LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimPlaceContentChild" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceContentChild">
+        select <include refid="Base_Column_List"/> from aim_place_content_child
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="aimPlaceContentId != null and !&quot;&quot;.equals(aimPlaceContentId)">
+                and  aim_place_content_id = #{aimPlaceContentId}
+            </if>
+                    <if test="type != null and !&quot;&quot;.equals(type)">
+                and  type = #{type}
+            </if>
+                    <if test="itemName != null and !&quot;&quot;.equals(itemName)">
+                and  item_name = #{itemName}
+            </if>
+                    <if test="itemMess != null and !&quot;&quot;.equals(itemMess)">
+                and  item_mess = #{itemMess}
+            </if>
+                    <if test="itemDes != null and !&quot;&quot;.equals(itemDes)">
+                and  item_des = #{itemDes}
+            </if>
+                    <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and  remark1 = #{remark1}
+            </if>
+                    <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and  remark2 = #{remark2}
+            </if>
+                    <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and  remark3 = #{remark3}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  aim_place_content_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  type LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  item_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  item_mess LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  item_des LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark1 LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark2 LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark3 LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimPlaceContentChild" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceContentChild">
+        select <include refid="Base_Column_List"/> from aim_place_content_child
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="aimPlaceContentId != null and !&quot;&quot;.equals(aimPlaceContentId)">
+                and aim_place_content_id = #{aimPlaceContentId}
+            </if>
+                     <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+                     <if test="itemName != null and !&quot;&quot;.equals(itemName)">
+                and item_name = #{itemName}
+            </if>
+                     <if test="itemMess != null and !&quot;&quot;.equals(itemMess)">
+                and item_mess = #{itemMess}
+            </if>
+                     <if test="itemDes != null and !&quot;&quot;.equals(itemDes)">
+                and item_des = #{itemDes}
+            </if>
+                     <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+                     <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+                     <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_place_content_child SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceContentChild">
+        select <include refid="Base_Column_List"/> from aim_place_content_child
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimPlaceContent;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AimPlaceContentMapper")
+public interface AimPlaceContentMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimPlaceContent record);
+
+    AimPlaceContent selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimPlaceContent record);
+
+    List<AimPlaceContent> queryAllAimPlaceContent(AimPlaceContent record);
+
+    List<AimPlaceContent> queryAimPlaceContentByPage(Map<String, Object> parameter);
+
+    int delete(AimPlaceContent record);
+
+    AimPlaceContent queryAimPlaceContent(AimPlaceContent record);
+
+    List<AimPlaceContent> query(AimPlaceContent record);
+}
+

+ 891 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlaceContentMapper.xml

@@ -0,0 +1,891 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimPlaceContentMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimPlaceContent">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="name" property="name" jdbcType="VARCHAR"/>
+        <result column="type" property="type" jdbcType="VARCHAR"/>
+        <result column="owned_land_mark_id" property="ownedLandMarkId" jdbcType="VARCHAR"/>
+        <result column="ar_content_group_id" property="arContentGroupId" jdbcType="VARCHAR"/>
+        <result column="ar_kit_pos_x" property="arKitPosX" jdbcType="VARCHAR"/>
+        <result column="ar_kit_pos_y" property="arKitPosY" jdbcType="VARCHAR"/>
+        <result column="ar_kit_pos_z" property="arKitPosZ" jdbcType="VARCHAR"/>
+        <result column="ar_kit_scale" property="arKitScale" jdbcType="VARCHAR"/>
+        <result column="ar_kit_angle" property="arKitAngle" jdbcType="VARCHAR"/>
+        <result column="ar_kit_show_lenth" property="arKitShowLenth" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_x" property="gyroPosX" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_y" property="gyroPosY" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_z" property="gyroPosZ" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_scale" property="gyroPosScale" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_angle" property="gyroPosAngle" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_show_lenth" property="gyroPosShowLenth" jdbcType="VARCHAR"/>
+        <result column="vuforia_image_info_area_marking" property="vuforiaImageInfoAreaMarking" jdbcType="VARCHAR"/>
+        <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
+        <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
+        <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
+        <result column="remark4" property="remark4" jdbcType="VARCHAR"/>
+        <result column="remark5" property="remark5" jdbcType="VARCHAR"/>
+        <result column="remark6" property="remark6" jdbcType="VARCHAR"/>
+        <result column="map_index" property="mapIndex" jdbcType="INTEGER"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            name,
+
+            type,
+
+            owned_land_mark_id,
+
+            ar_content_group_id,
+
+            ar_kit_pos_x,
+
+            ar_kit_pos_y,
+
+            ar_kit_pos_z,
+
+            ar_kit_scale,
+
+            ar_kit_angle,
+
+            ar_kit_show_lenth,
+
+            gyro_pos_x,
+
+            gyro_pos_y,
+
+            gyro_pos_z,
+
+            gyro_pos_scale,
+
+            gyro_pos_angle,
+
+            gyro_pos_show_lenth,
+
+            vuforia_image_info_area_marking,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            remark4,
+
+            remark5,
+
+            remark6,
+
+            map_index,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_content
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from aim_place_content
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContent" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into aim_place_content
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="name!= null">
+                name,
+            </if>
+            <if test="type!= null">
+                type,
+            </if>
+            <if test="ownedLandMarkId!= null">
+                owned_land_mark_id,
+            </if>
+            <if test="arContentGroupId!= null">
+                ar_content_group_id,
+            </if>
+            <if test="arKitPosX!= null">
+                ar_kit_pos_x,
+            </if>
+            <if test="arKitPosY!= null">
+                ar_kit_pos_y,
+            </if>
+            <if test="arKitPosZ!= null">
+                ar_kit_pos_z,
+            </if>
+            <if test="arKitScale!= null">
+                ar_kit_scale,
+            </if>
+            <if test="arKitAngle!= null">
+                ar_kit_angle,
+            </if>
+            <if test="arKitShowLenth!= null">
+                ar_kit_show_lenth,
+            </if>
+            <if test="gyroPosX!= null">
+                gyro_pos_x,
+            </if>
+            <if test="gyroPosY!= null">
+                gyro_pos_y,
+            </if>
+            <if test="gyroPosZ!= null">
+                gyro_pos_z,
+            </if>
+            <if test="gyroPosScale!= null">
+                gyro_pos_scale,
+            </if>
+            <if test="gyroPosAngle!= null">
+                gyro_pos_angle,
+            </if>
+            <if test="gyroPosShowLenth!= null">
+                gyro_pos_show_lenth,
+            </if>
+            <if test="vuforiaImageInfoAreaMarking!= null">
+                vuforia_image_info_area_marking,
+            </if>
+            <if test="remark1!= null">
+                remark1,
+            </if>
+            <if test="remark2!= null">
+                remark2,
+            </if>
+            <if test="remark3!= null">
+                remark3,
+            </if>
+            <if test="remark4!= null">
+                remark4,
+            </if>
+            <if test="remark5!= null">
+                remark5,
+            </if>
+            <if test="remark6!= null">
+                remark6,
+            </if>
+            <if test="mapIndex!= null">
+                map_index,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedLandMarkId != null">
+                #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="arContentGroupId != null">
+                #{arContentGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosX != null">
+                #{arKitPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosY != null">
+                #{arKitPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosZ != null">
+                #{arKitPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitScale != null">
+                #{arKitScale,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitAngle != null">
+                #{arKitAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitShowLenth != null">
+                #{arKitShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosX != null">
+                #{gyroPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosY != null">
+                #{gyroPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosZ != null">
+                #{gyroPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosScale != null">
+                #{gyroPosScale,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosAngle != null">
+                #{gyroPosAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosShowLenth != null">
+                #{gyroPosShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null">
+                #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="remark4 != null">
+                #{remark4,jdbcType=VARCHAR},
+            </if>
+            <if test="remark5 != null">
+                #{remark5,jdbcType=VARCHAR},
+            </if>
+            <if test="remark6 != null">
+                #{remark6,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                #{mapIndex},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceContent">
+        update aim_place_content
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                name= #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                type= #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedLandMarkId != null">
+                owned_land_mark_id= #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="arContentGroupId != null">
+                ar_content_group_id= #{arContentGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosX != null">
+                ar_kit_pos_x= #{arKitPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosY != null">
+                ar_kit_pos_y= #{arKitPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosZ != null">
+                ar_kit_pos_z= #{arKitPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitScale != null">
+                ar_kit_scale= #{arKitScale,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitAngle != null">
+                ar_kit_angle= #{arKitAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitShowLenth != null">
+                ar_kit_show_lenth= #{arKitShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosX != null">
+                gyro_pos_x= #{gyroPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosY != null">
+                gyro_pos_y= #{gyroPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosZ != null">
+                gyro_pos_z= #{gyroPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosScale != null">
+                gyro_pos_scale= #{gyroPosScale,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosAngle != null">
+                gyro_pos_angle= #{gyroPosAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosShowLenth != null">
+                gyro_pos_show_lenth= #{gyroPosShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null">
+                vuforia_image_info_area_marking= #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="remark4 != null">
+                remark4= #{remark4,jdbcType=VARCHAR},
+            </if>
+            <if test="remark5 != null">
+                remark5= #{remark5,jdbcType=VARCHAR},
+            </if>
+            <if test="remark6 != null">
+                remark6= #{remark6,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                map_index= #{mapIndex},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimPlaceContentByPage" parameterType="java.util.Map" resultMap="ChildResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_content
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.name != null and !&quot;&quot;.equals(record.name)">
+                and name = #{record.name}
+            </if>
+            <if test="record.type != null and !&quot;&quot;.equals(record.type)">
+                and type = #{record.type}
+            </if>
+            <if test="record.ownedLandMarkId != null and !&quot;&quot;.equals(record.ownedLandMarkId)">
+                and owned_land_mark_id = #{record.ownedLandMarkId}
+            </if>
+            <if test="record.arContentGroupId != null and !&quot;&quot;.equals(record.arContentGroupId)">
+                and ar_content_group_id = #{record.arContentGroupId}
+            </if>
+            <if test="record.arKitPosX != null and !&quot;&quot;.equals(record.arKitPosX)">
+                and ar_kit_pos_x = #{record.arKitPosX}
+            </if>
+            <if test="record.arKitPosY != null and !&quot;&quot;.equals(record.arKitPosY)">
+                and ar_kit_pos_y = #{record.arKitPosY}
+            </if>
+            <if test="record.arKitPosZ != null and !&quot;&quot;.equals(record.arKitPosZ)">
+                and ar_kit_pos_z = #{record.arKitPosZ}
+            </if>
+            <if test="record.arKitScale != null and !&quot;&quot;.equals(record.arKitScale)">
+                and ar_kit_scale = #{record.arKitScale}
+            </if>
+            <if test="record.arKitAngle != null and !&quot;&quot;.equals(record.arKitAngle)">
+                and ar_kit_angle = #{record.arKitAngle}
+            </if>
+            <if test="record.arKitShowLenth != null and !&quot;&quot;.equals(record.arKitShowLenth)">
+                and ar_kit_show_lenth = #{record.arKitShowLenth}
+            </if>
+            <if test="record.gyroPosX != null and !&quot;&quot;.equals(record.gyroPosX)">
+                and gyro_pos_x = #{record.gyroPosX}
+            </if>
+            <if test="record.gyroPosY != null and !&quot;&quot;.equals(record.gyroPosY)">
+                and gyro_pos_y = #{record.gyroPosY}
+            </if>
+            <if test="record.gyroPosZ != null and !&quot;&quot;.equals(record.gyroPosZ)">
+                and gyro_pos_z = #{record.gyroPosZ}
+            </if>
+            <if test="record.gyroPosScale != null and !&quot;&quot;.equals(record.gyroPosScale)">
+                and gyro_pos_scale = #{record.gyroPosScale}
+            </if>
+            <if test="record.gyroPosAngle != null and !&quot;&quot;.equals(record.gyroPosAngle)">
+                and gyro_pos_angle = #{record.gyroPosAngle}
+            </if>
+            <if test="record.gyroPosShowLenth != null and !&quot;&quot;.equals(record.gyroPosShowLenth)">
+                and gyro_pos_show_lenth = #{record.gyroPosShowLenth}
+            </if>
+            <if test="record.vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(record.vuforiaImageInfoAreaMarking)">
+                and vuforia_image_info_area_marking = #{record.vuforiaImageInfoAreaMarking}
+            </if>
+            <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and remark1 = #{record.remark1}
+            </if>
+            <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and remark2 = #{record.remark2}
+            </if>
+            <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and remark3 = #{record.remark3}
+            </if>
+            <if test="record.remark4 != null and !&quot;&quot;.equals(record.remark4)">
+                and remark4 = #{record.remark4}
+            </if>
+            <if test="record.remark5 != null and !&quot;&quot;.equals(record.remark5)">
+                and remark5 = #{record.remark5}
+            </if>
+            <if test="record.remark6 != null and !&quot;&quot;.equals(record.remark6)">
+                and remark6 = #{record.remark6}
+            </if>
+            <if test="record.mapIndex != null and !&quot;&quot;.equals(record.mapIndex)">
+                and map_index = #{record.mapIndex}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{record.searchKey},'%')
+                    OR type LIKE concat('%',#{record.searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_content_group_id LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_pos_x LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_pos_y LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_pos_z LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_scale LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_angle LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_show_lenth LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_x LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_y LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_z LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_scale LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_angle LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_show_lenth LIKE concat('%',#{record.searchKey},'%')
+                    OR vuforia_image_info_area_marking LIKE concat('%',#{record.searchKey},'%')
+                    OR remark1 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark2 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark3 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark4 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark5 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark6 LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimPlaceContent" parameterType="java.util.Map" resultMap="ChildResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_content
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="arContentGroupId != null and !&quot;&quot;.equals(arContentGroupId)">
+                and ar_content_group_id = #{arContentGroupId}
+            </if>
+            <if test="arKitPosX != null and !&quot;&quot;.equals(arKitPosX)">
+                and ar_kit_pos_x = #{arKitPosX}
+            </if>
+            <if test="arKitPosY != null and !&quot;&quot;.equals(arKitPosY)">
+                and ar_kit_pos_y = #{arKitPosY}
+            </if>
+            <if test="arKitPosZ != null and !&quot;&quot;.equals(arKitPosZ)">
+                and ar_kit_pos_z = #{arKitPosZ}
+            </if>
+            <if test="arKitScale != null and !&quot;&quot;.equals(arKitScale)">
+                and ar_kit_scale = #{arKitScale}
+            </if>
+            <if test="arKitAngle != null and !&quot;&quot;.equals(arKitAngle)">
+                and ar_kit_angle = #{arKitAngle}
+            </if>
+            <if test="arKitShowLenth != null and !&quot;&quot;.equals(arKitShowLenth)">
+                and ar_kit_show_lenth = #{arKitShowLenth}
+            </if>
+            <if test="gyroPosX != null and !&quot;&quot;.equals(gyroPosX)">
+                and gyro_pos_x = #{gyroPosX}
+            </if>
+            <if test="gyroPosY != null and !&quot;&quot;.equals(gyroPosY)">
+                and gyro_pos_y = #{gyroPosY}
+            </if>
+            <if test="gyroPosZ != null and !&quot;&quot;.equals(gyroPosZ)">
+                and gyro_pos_z = #{gyroPosZ}
+            </if>
+            <if test="gyroPosScale != null and !&quot;&quot;.equals(gyroPosScale)">
+                and gyro_pos_scale = #{gyroPosScale}
+            </if>
+            <if test="gyroPosAngle != null and !&quot;&quot;.equals(gyroPosAngle)">
+                and gyro_pos_angle = #{gyroPosAngle}
+            </if>
+            <if test="gyroPosShowLenth != null and !&quot;&quot;.equals(gyroPosShowLenth)">
+                and gyro_pos_show_lenth = #{gyroPosShowLenth}
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(vuforiaImageInfoAreaMarking)">
+                and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
+                and remark4 = #{remark4}
+            </if>
+            <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
+                and remark5 = #{remark5}
+            </if>
+            <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
+                and remark6 = #{remark6}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{searchKey},'%')
+                    OR type LIKE concat('%',#{searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{searchKey},'%')
+                    OR ar_content_group_id LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_x LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_y LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_z LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_scale LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_angle LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_show_lenth LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_x LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_y LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_z LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_scale LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_angle LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_show_lenth LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_image_info_area_marking LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR remark4 LIKE concat('%',#{searchKey},'%')
+                    OR remark5 LIKE concat('%',#{searchKey},'%')
+                    OR remark6 LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimPlaceContent" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimPlaceContent">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_content
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="arContentGroupId != null and !&quot;&quot;.equals(arContentGroupId)">
+                and ar_content_group_id = #{arContentGroupId}
+            </if>
+            <if test="arKitPosX != null and !&quot;&quot;.equals(arKitPosX)">
+                and ar_kit_pos_x = #{arKitPosX}
+            </if>
+            <if test="arKitPosY != null and !&quot;&quot;.equals(arKitPosY)">
+                and ar_kit_pos_y = #{arKitPosY}
+            </if>
+            <if test="arKitPosZ != null and !&quot;&quot;.equals(arKitPosZ)">
+                and ar_kit_pos_z = #{arKitPosZ}
+            </if>
+            <if test="arKitScale != null and !&quot;&quot;.equals(arKitScale)">
+                and ar_kit_scale = #{arKitScale}
+            </if>
+            <if test="arKitAngle != null and !&quot;&quot;.equals(arKitAngle)">
+                and ar_kit_angle = #{arKitAngle}
+            </if>
+            <if test="arKitShowLenth != null and !&quot;&quot;.equals(arKitShowLenth)">
+                and ar_kit_show_lenth = #{arKitShowLenth}
+            </if>
+            <if test="gyroPosX != null and !&quot;&quot;.equals(gyroPosX)">
+                and gyro_pos_x = #{gyroPosX}
+            </if>
+            <if test="gyroPosY != null and !&quot;&quot;.equals(gyroPosY)">
+                and gyro_pos_y = #{gyroPosY}
+            </if>
+            <if test="gyroPosZ != null and !&quot;&quot;.equals(gyroPosZ)">
+                and gyro_pos_z = #{gyroPosZ}
+            </if>
+            <if test="gyroPosScale != null and !&quot;&quot;.equals(gyroPosScale)">
+                and gyro_pos_scale = #{gyroPosScale}
+            </if>
+            <if test="gyroPosAngle != null and !&quot;&quot;.equals(gyroPosAngle)">
+                and gyro_pos_angle = #{gyroPosAngle}
+            </if>
+            <if test="gyroPosShowLenth != null and !&quot;&quot;.equals(gyroPosShowLenth)">
+                and gyro_pos_show_lenth = #{gyroPosShowLenth}
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(vuforiaImageInfoAreaMarking)">
+                and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
+                and remark4 = #{remark4}
+            </if>
+            <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
+                and remark5 = #{remark5}
+            </if>
+            <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
+                and remark6 = #{remark6}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_place_content SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceContent">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_content
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+
+    <resultMap id="ChildResultMap" type="com.izouma.awesomeadmin.model.AimPlaceContent" extends="BaseResultMap">
+
+
+        <collection property="aimPlaceContentChildList" ofType="com.izouma.awesomeadmin.model.AimPlaceContentChild"
+                    select="com.izouma.awesomeadmin.dao.AimPlaceContentChildMapper.queryAllAimPlaceContentChild"
+                    column="{aimPlaceContentId = id}">
+        </collection>
+    </resultMap>
+</mapper>
+

+ 35 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlaceInfoMapper.java

@@ -0,0 +1,35 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimPlaceInfo;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AimPlaceInfoMapper")
+public interface AimPlaceInfoMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimPlaceInfo record);
+
+    AimPlaceInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimPlaceInfo record);
+
+    List<AimPlaceInfo> queryAllAimPlaceInfo(AimPlaceInfo record);
+
+    List<AimPlaceInfo> queryAllAimPlaceInfoAllInfo(AimPlaceInfo record);
+
+    List<AimPlaceInfo> queryAimPlaceInfoByPage(Map<String, Object> parameter);
+
+    int delete(AimPlaceInfo record);
+
+    AimPlaceInfo queryAimPlaceInfo(AimPlaceInfo record);
+
+    List<AimPlaceInfo> query(AimPlaceInfo record);
+}
+

+ 1579 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlaceInfoMapper.xml

@@ -0,0 +1,1579 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimPlaceInfoMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimPlaceInfo">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="name" property="name" jdbcType="VARCHAR"/>
+        <result column="type" property="type" jdbcType="VARCHAR"/>
+        <result column="owned_land_mark_id" property="ownedLandMarkId" jdbcType="VARCHAR"/>
+        <result column="ar_content_group_id" property="arContentGroupId" jdbcType="VARCHAR"/>
+        <result column="ar_kit_pos_x" property="arKitPosX" jdbcType="VARCHAR"/>
+        <result column="ar_kit_pos_y" property="arKitPosY" jdbcType="VARCHAR"/>
+        <result column="ar_kit_pos_z" property="arKitPosZ" jdbcType="VARCHAR"/>
+        <result column="ar_kit_scale" property="arKitScale" jdbcType="VARCHAR"/>
+        <result column="ar_kit_angle" property="arKitAngle" jdbcType="VARCHAR"/>
+        <result column="ar_kit_show_lenth" property="arKitShowLenth" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_x" property="gyroPosX" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_y" property="gyroPosY" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_z" property="gyroPosZ" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_scale" property="gyroPosScale" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_angle" property="gyroPosAngle" jdbcType="VARCHAR"/>
+        <result column="gyro_pos_show_lenth" property="gyroPosShowLenth" jdbcType="VARCHAR"/>
+        <result column="vuforia_image_info_area_marking" property="vuforiaImageInfoAreaMarking" jdbcType="VARCHAR"/>
+        <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
+        <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
+        <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
+        <result column="remark4" property="remark4" jdbcType="VARCHAR"/>
+        <result column="remark5" property="remark5" jdbcType="VARCHAR"/>
+        <result column="remark6" property="remark6" jdbcType="VARCHAR"/>
+        <result column="map_index" property="mapIndex" jdbcType="INTEGER"/>
+        <result column="pos_x" property="posX" jdbcType="VARCHAR"/>
+        <result column="pos_y" property="posY" jdbcType="VARCHAR"/>
+        <result column="pos_z" property="posZ" jdbcType="VARCHAR"/>
+        <result column="remark7" property="remark7" jdbcType="VARCHAR"/>
+        <result column="remark8" property="remark8" jdbcType="VARCHAR"/>
+        <result column="remark9" property="remark9" jdbcType="VARCHAR"/>
+        <result column="front_level_id" property="frontLevelId" jdbcType="VARCHAR"/>
+        <result column="icon" property="icon" jdbcType="VARCHAR"/>
+        <result column="icon_rank" property="iconRank" jdbcType="INTEGER"/>
+        <result column="alone_flag" property="aloneFlag" jdbcType="VARCHAR"/>
+        <result column="auto_play" property="autoPlay" jdbcType="VARCHAR"/>
+        <result column="auto_display" property="autoDisplay" jdbcType="VARCHAR"/>
+        <result column="show_level" property="showLevel" jdbcType="VARCHAR"/>
+        <result column="template_id" property="templateId" jdbcType="VARCHAR"/>
+        <result column="power" property="power" jdbcType="VARCHAR"/>
+        <result column="area_id" property="areaId" jdbcType="VARCHAR"/>
+        <result column="thing_id" property="thingId" jdbcType="VARCHAR"/>
+        <result column="aim_group_id" property="aimGroupId" jdbcType="VARCHAR"/>
+        <result column="template_aim_id" property="templateAimId" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            name,
+
+            type,
+
+            owned_land_mark_id,
+
+            ar_content_group_id,
+
+            ar_kit_pos_x,
+
+            ar_kit_pos_y,
+
+            ar_kit_pos_z,
+
+            ar_kit_scale,
+
+            ar_kit_angle,
+
+            ar_kit_show_lenth,
+
+            gyro_pos_x,
+
+            gyro_pos_y,
+
+            gyro_pos_z,
+
+            gyro_pos_scale,
+
+            gyro_pos_angle,
+
+            gyro_pos_show_lenth,
+
+            vuforia_image_info_area_marking,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            remark4,
+
+            remark5,
+
+            remark6,
+
+            map_index,
+
+            pos_x,
+
+            pos_y,
+
+            pos_z,
+
+            remark7,
+
+            remark8,
+
+            remark9,
+
+            front_level_id,
+
+            icon,
+
+            icon_rank,
+
+            alone_flag,
+
+            auto_play,
+
+            auto_display,
+
+            show_level,
+
+            template_id,
+
+            power,
+
+            area_id,
+
+            thing_id,
+
+            aim_group_id,
+
+            template_aim_id,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from aim_place_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceInfo" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into aim_place_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="name!= null">
+                name,
+            </if>
+            <if test="type!= null">
+                type,
+            </if>
+            <if test="ownedLandMarkId!= null">
+                owned_land_mark_id,
+            </if>
+            <if test="arContentGroupId!= null">
+                ar_content_group_id,
+            </if>
+            <if test="arKitPosX!= null">
+                ar_kit_pos_x,
+            </if>
+            <if test="arKitPosY!= null">
+                ar_kit_pos_y,
+            </if>
+            <if test="arKitPosZ!= null">
+                ar_kit_pos_z,
+            </if>
+            <if test="arKitScale!= null">
+                ar_kit_scale,
+            </if>
+            <if test="arKitAngle!= null">
+                ar_kit_angle,
+            </if>
+            <if test="arKitShowLenth!= null">
+                ar_kit_show_lenth,
+            </if>
+            <if test="gyroPosX!= null">
+                gyro_pos_x,
+            </if>
+            <if test="gyroPosY!= null">
+                gyro_pos_y,
+            </if>
+            <if test="gyroPosZ!= null">
+                gyro_pos_z,
+            </if>
+            <if test="gyroPosScale!= null">
+                gyro_pos_scale,
+            </if>
+            <if test="gyroPosAngle!= null">
+                gyro_pos_angle,
+            </if>
+            <if test="gyroPosShowLenth!= null">
+                gyro_pos_show_lenth,
+            </if>
+            <if test="vuforiaImageInfoAreaMarking!= null">
+                vuforia_image_info_area_marking,
+            </if>
+            <if test="remark1!= null">
+                remark1,
+            </if>
+            <if test="remark2!= null">
+                remark2,
+            </if>
+            <if test="remark3!= null">
+                remark3,
+            </if>
+            <if test="remark4!= null">
+                remark4,
+            </if>
+            <if test="remark5!= null">
+                remark5,
+            </if>
+            <if test="remark6!= null">
+                remark6,
+            </if>
+            <if test="mapIndex!= null">
+                map_index,
+            </if>
+            <if test="posX!= null">
+                pos_x,
+            </if>
+            <if test="posY!= null">
+                pos_y,
+            </if>
+            <if test="posZ!= null">
+                pos_z,
+            </if>
+            <if test="remark7!= null">
+                remark7,
+            </if>
+            <if test="remark8!= null">
+                remark8,
+            </if>
+            <if test="remark9!= null">
+                remark9,
+            </if>
+            <if test="frontLevelId!= null">
+                front_level_id,
+            </if>
+            <if test="icon!= null">
+                icon,
+            </if>
+            <if test="iconRank!= null">
+                icon_rank,
+            </if>
+            <if test="aloneFlag!= null">
+                alone_flag,
+            </if>
+            <if test="autoPlay!= null">
+                auto_play,
+            </if>
+            <if test="autoDisplay!= null">
+                auto_display,
+            </if>
+            <if test="showLevel!= null">
+                show_level,
+            </if>
+            <if test="templateId!= null">
+                template_id,
+            </if>
+            <if test="power!= null">
+                power,
+            </if>
+            <if test="areaId!= null">
+                area_id,
+            </if>
+            <if test="thingId!= null">
+                thing_id,
+            </if>
+            <if test="aimGroupId!= null">
+                aim_group_id,
+            </if>
+            <if test="templateAimId!= null">
+                template_aim_id,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedLandMarkId != null">
+                #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="arContentGroupId != null">
+                #{arContentGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosX != null">
+                #{arKitPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosY != null">
+                #{arKitPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosZ != null">
+                #{arKitPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitScale != null">
+                #{arKitScale,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitAngle != null">
+                #{arKitAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitShowLenth != null">
+                #{arKitShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosX != null">
+                #{gyroPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosY != null">
+                #{gyroPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosZ != null">
+                #{gyroPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosScale != null">
+                #{gyroPosScale,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosAngle != null">
+                #{gyroPosAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosShowLenth != null">
+                #{gyroPosShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null">
+                #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="remark4 != null">
+                #{remark4,jdbcType=VARCHAR},
+            </if>
+            <if test="remark5 != null">
+                #{remark5,jdbcType=VARCHAR},
+            </if>
+            <if test="remark6 != null">
+                #{remark6,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                #{mapIndex,jdbcType=INTEGER},
+            </if>
+            <if test="posX != null">
+                #{posX,jdbcType=VARCHAR},
+            </if>
+            <if test="posY != null">
+                #{posY,jdbcType=VARCHAR},
+            </if>
+            <if test="posZ != null">
+                #{posZ,jdbcType=VARCHAR},
+            </if>
+            <if test="remark7 != null">
+                #{remark7,jdbcType=VARCHAR},
+            </if>
+            <if test="remark8 != null">
+                #{remark8,jdbcType=VARCHAR},
+            </if>
+            <if test="remark9 != null">
+                #{remark9,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="iconRank != null">
+                #{iconRank,jdbcType=INTEGER},
+            </if>
+            <if test="aloneFlag != null">
+                #{aloneFlag,jdbcType=VARCHAR},
+            </if>
+            <if test="autoPlay != null">
+                #{autoPlay,jdbcType=VARCHAR},
+            </if>
+            <if test="autoDisplay != null">
+                #{autoDisplay,jdbcType=VARCHAR},
+            </if>
+            <if test="showLevel != null">
+                #{showLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingId != null">
+                #{thingId,jdbcType=VARCHAR},
+            </if>
+            <if test="aimGroupId != null">
+                #{aimGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateAimId != null">
+                #{templateAimId,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimPlaceInfo">
+        update aim_place_info
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                name= #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                type= #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedLandMarkId != null">
+                owned_land_mark_id= #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="arContentGroupId != null">
+                ar_content_group_id= #{arContentGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosX != null">
+                ar_kit_pos_x= #{arKitPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosY != null">
+                ar_kit_pos_y= #{arKitPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitPosZ != null">
+                ar_kit_pos_z= #{arKitPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitScale != null">
+                ar_kit_scale= #{arKitScale,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitAngle != null">
+                ar_kit_angle= #{arKitAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="arKitShowLenth != null">
+                ar_kit_show_lenth= #{arKitShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosX != null">
+                gyro_pos_x= #{gyroPosX,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosY != null">
+                gyro_pos_y= #{gyroPosY,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosZ != null">
+                gyro_pos_z= #{gyroPosZ,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosScale != null">
+                gyro_pos_scale= #{gyroPosScale,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosAngle != null">
+                gyro_pos_angle= #{gyroPosAngle,jdbcType=VARCHAR},
+            </if>
+            <if test="gyroPosShowLenth != null">
+                gyro_pos_show_lenth= #{gyroPosShowLenth,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null">
+                vuforia_image_info_area_marking= #{vuforiaImageInfoAreaMarking,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="remark4 != null">
+                remark4= #{remark4,jdbcType=VARCHAR},
+            </if>
+            <if test="remark5 != null">
+                remark5= #{remark5,jdbcType=VARCHAR},
+            </if>
+            <if test="remark6 != null">
+                remark6= #{remark6,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                map_index= #{mapIndex,jdbcType=INTEGER},
+            </if>
+            <if test="posX != null">
+                pos_x= #{posX,jdbcType=VARCHAR},
+            </if>
+            <if test="posY != null">
+                pos_y= #{posY,jdbcType=VARCHAR},
+            </if>
+            <if test="posZ != null">
+                pos_z= #{posZ,jdbcType=VARCHAR},
+            </if>
+            <if test="remark7 != null">
+                remark7= #{remark7,jdbcType=VARCHAR},
+            </if>
+            <if test="remark8 != null">
+                remark8= #{remark8,jdbcType=VARCHAR},
+            </if>
+            <if test="remark9 != null">
+                remark9= #{remark9,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                front_level_id= #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                icon= #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="iconRank != null">
+                icon_rank= #{iconRank,jdbcType=INTEGER},
+            </if>
+            <if test="aloneFlag != null">
+                alone_flag= #{aloneFlag,jdbcType=VARCHAR},
+            </if>
+            <if test="autoPlay != null">
+                auto_play= #{autoPlay,jdbcType=VARCHAR},
+            </if>
+            <if test="autoDisplay != null">
+                auto_display= #{autoDisplay,jdbcType=VARCHAR},
+            </if>
+            <if test="showLevel != null">
+                show_level= #{showLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                template_id= #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                power= #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                area_id= #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingId != null">
+                thing_id= #{thingId,jdbcType=VARCHAR},
+            </if>
+            <if test="aimGroupId != null">
+                aim_group_id= #{aimGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateAimId != null">
+                template_aim_id= #{templateAimId,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimPlaceInfoByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimPlaceInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_info
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.name != null and !&quot;&quot;.equals(record.name)">
+                and name = #{record.name}
+            </if>
+            <if test="record.type != null and !&quot;&quot;.equals(record.type)">
+                and type = #{record.type}
+            </if>
+            <if test="record.ownedLandMarkId != null and !&quot;&quot;.equals(record.ownedLandMarkId)">
+                and owned_land_mark_id = #{record.ownedLandMarkId}
+            </if>
+            <if test="record.arContentGroupId != null and !&quot;&quot;.equals(record.arContentGroupId)">
+                and ar_content_group_id = #{record.arContentGroupId}
+            </if>
+            <if test="record.arKitPosX != null and !&quot;&quot;.equals(record.arKitPosX)">
+                and ar_kit_pos_x = #{record.arKitPosX}
+            </if>
+            <if test="record.arKitPosY != null and !&quot;&quot;.equals(record.arKitPosY)">
+                and ar_kit_pos_y = #{record.arKitPosY}
+            </if>
+            <if test="record.arKitPosZ != null and !&quot;&quot;.equals(record.arKitPosZ)">
+                and ar_kit_pos_z = #{record.arKitPosZ}
+            </if>
+            <if test="record.arKitScale != null and !&quot;&quot;.equals(record.arKitScale)">
+                and ar_kit_scale = #{record.arKitScale}
+            </if>
+            <if test="record.arKitAngle != null and !&quot;&quot;.equals(record.arKitAngle)">
+                and ar_kit_angle = #{record.arKitAngle}
+            </if>
+            <if test="record.arKitShowLenth != null and !&quot;&quot;.equals(record.arKitShowLenth)">
+                and ar_kit_show_lenth = #{record.arKitShowLenth}
+            </if>
+            <if test="record.gyroPosX != null and !&quot;&quot;.equals(record.gyroPosX)">
+                and gyro_pos_x = #{record.gyroPosX}
+            </if>
+            <if test="record.gyroPosY != null and !&quot;&quot;.equals(record.gyroPosY)">
+                and gyro_pos_y = #{record.gyroPosY}
+            </if>
+            <if test="record.gyroPosZ != null and !&quot;&quot;.equals(record.gyroPosZ)">
+                and gyro_pos_z = #{record.gyroPosZ}
+            </if>
+            <if test="record.gyroPosScale != null and !&quot;&quot;.equals(record.gyroPosScale)">
+                and gyro_pos_scale = #{record.gyroPosScale}
+            </if>
+            <if test="record.gyroPosAngle != null and !&quot;&quot;.equals(record.gyroPosAngle)">
+                and gyro_pos_angle = #{record.gyroPosAngle}
+            </if>
+            <if test="record.gyroPosShowLenth != null and !&quot;&quot;.equals(record.gyroPosShowLenth)">
+                and gyro_pos_show_lenth = #{record.gyroPosShowLenth}
+            </if>
+            <if test="record.vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(record.vuforiaImageInfoAreaMarking)">
+                and vuforia_image_info_area_marking = #{record.vuforiaImageInfoAreaMarking}
+            </if>
+            <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and remark1 = #{record.remark1}
+            </if>
+            <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and remark2 = #{record.remark2}
+            </if>
+            <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and remark3 = #{record.remark3}
+            </if>
+            <if test="record.remark4 != null and !&quot;&quot;.equals(record.remark4)">
+                and remark4 = #{record.remark4}
+            </if>
+            <if test="record.remark5 != null and !&quot;&quot;.equals(record.remark5)">
+                and remark5 = #{record.remark5}
+            </if>
+            <if test="record.remark6 != null and !&quot;&quot;.equals(record.remark6)">
+                and remark6 = #{record.remark6}
+            </if>
+            <if test="record.mapIndex != null and !&quot;&quot;.equals(record.mapIndex)">
+                and map_index = #{record.mapIndex}
+            </if>
+            <if test="record.posX != null and !&quot;&quot;.equals(record.posX)">
+                and pos_x = #{record.posX}
+            </if>
+            <if test="record.posY != null and !&quot;&quot;.equals(record.posY)">
+                and pos_y = #{record.posY}
+            </if>
+            <if test="record.posZ != null and !&quot;&quot;.equals(record.posZ)">
+                and pos_z = #{record.posZ}
+            </if>
+            <if test="record.remark7 != null and !&quot;&quot;.equals(record.remark7)">
+                and remark7 = #{record.remark7}
+            </if>
+            <if test="record.remark8 != null and !&quot;&quot;.equals(record.remark8)">
+                and remark8 = #{record.remark8}
+            </if>
+            <if test="record.remark9 != null and !&quot;&quot;.equals(record.remark9)">
+                and remark9 = #{record.remark9}
+            </if>
+            <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
+                and front_level_id = #{record.frontLevelId}
+            </if>
+            <if test="record.icon != null and !&quot;&quot;.equals(record.icon)">
+                and icon = #{record.icon}
+            </if>
+            <if test="record.iconRank != null and !&quot;&quot;.equals(record.iconRank)">
+                and icon_rank = #{record.iconRank}
+            </if>
+            <if test="record.aloneFlag != null and !&quot;&quot;.equals(record.aloneFlag)">
+                and alone_flag = #{record.aloneFlag}
+            </if>
+            <if test="record.autoPlay != null and !&quot;&quot;.equals(record.autoPlay)">
+                and auto_play = #{record.autoPlay}
+            </if>
+            <if test="record.autoDisplay != null and !&quot;&quot;.equals(record.autoDisplay)">
+                and auto_display = #{record.autoDisplay}
+            </if>
+            <if test="record.showLevel != null and !&quot;&quot;.equals(record.showLevel)">
+                and show_level = #{record.showLevel}
+            </if>
+            <if test="record.templateId != null and !&quot;&quot;.equals(record.templateId)">
+                and template_id = #{record.templateId}
+            </if>
+            <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and power = #{record.power}
+            </if>
+            <if test="record.areaId != null and !&quot;&quot;.equals(record.areaId)">
+                and area_id = #{record.areaId}
+            </if>
+            <if test="record.thingId != null and !&quot;&quot;.equals(record.thingId)">
+                and thing_id = #{record.thingId}
+            </if>
+            <if test="record.aimGroupId != null and !&quot;&quot;.equals(record.aimGroupId)">
+                and aim_group_id = #{record.aimGroupId}
+            </if>
+            <if test="record.templateAimId != null and !&quot;&quot;.equals(record.templateAimId)">
+                and template_aim_id = #{record.templateAimId}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{record.searchKey},'%')
+                    OR type LIKE concat('%',#{record.searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_content_group_id LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_pos_x LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_pos_y LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_pos_z LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_scale LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_angle LIKE concat('%',#{record.searchKey},'%')
+                    OR ar_kit_show_lenth LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_x LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_y LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_z LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_scale LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_angle LIKE concat('%',#{record.searchKey},'%')
+                    OR gyro_pos_show_lenth LIKE concat('%',#{record.searchKey},'%')
+                    OR vuforia_image_info_area_marking LIKE concat('%',#{record.searchKey},'%')
+                    OR remark1 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark2 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark3 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark4 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark5 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark6 LIKE concat('%',#{record.searchKey},'%')
+                    OR pos_x LIKE concat('%',#{record.searchKey},'%')
+                    OR pos_y LIKE concat('%',#{record.searchKey},'%')
+                    OR pos_z LIKE concat('%',#{record.searchKey},'%')
+                    OR remark7 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark8 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark9 LIKE concat('%',#{record.searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{record.searchKey},'%')
+                    OR icon LIKE concat('%',#{record.searchKey},'%')
+                    OR alone_flag LIKE concat('%',#{record.searchKey},'%')
+                    OR auto_play LIKE concat('%',#{record.searchKey},'%')
+                    OR auto_display LIKE concat('%',#{record.searchKey},'%')
+                    OR show_level LIKE concat('%',#{record.searchKey},'%')
+                    OR template_id LIKE concat('%',#{record.searchKey},'%')
+                    OR area_id LIKE concat('%',#{record.searchKey},'%')
+                    OR thing_id LIKE concat('%',#{record.searchKey},'%')
+                    OR aim_group_id LIKE concat('%',#{record.searchKey},'%')
+                    OR template_aim_id LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimPlaceInfo" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimPlaceInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="arContentGroupId != null and !&quot;&quot;.equals(arContentGroupId)">
+                and ar_content_group_id = #{arContentGroupId}
+            </if>
+            <if test="arKitPosX != null and !&quot;&quot;.equals(arKitPosX)">
+                and ar_kit_pos_x = #{arKitPosX}
+            </if>
+            <if test="arKitPosY != null and !&quot;&quot;.equals(arKitPosY)">
+                and ar_kit_pos_y = #{arKitPosY}
+            </if>
+            <if test="arKitPosZ != null and !&quot;&quot;.equals(arKitPosZ)">
+                and ar_kit_pos_z = #{arKitPosZ}
+            </if>
+            <if test="arKitScale != null and !&quot;&quot;.equals(arKitScale)">
+                and ar_kit_scale = #{arKitScale}
+            </if>
+            <if test="arKitAngle != null and !&quot;&quot;.equals(arKitAngle)">
+                and ar_kit_angle = #{arKitAngle}
+            </if>
+            <if test="arKitShowLenth != null and !&quot;&quot;.equals(arKitShowLenth)">
+                and ar_kit_show_lenth = #{arKitShowLenth}
+            </if>
+            <if test="gyroPosX != null and !&quot;&quot;.equals(gyroPosX)">
+                and gyro_pos_x = #{gyroPosX}
+            </if>
+            <if test="gyroPosY != null and !&quot;&quot;.equals(gyroPosY)">
+                and gyro_pos_y = #{gyroPosY}
+            </if>
+            <if test="gyroPosZ != null and !&quot;&quot;.equals(gyroPosZ)">
+                and gyro_pos_z = #{gyroPosZ}
+            </if>
+            <if test="gyroPosScale != null and !&quot;&quot;.equals(gyroPosScale)">
+                and gyro_pos_scale = #{gyroPosScale}
+            </if>
+            <if test="gyroPosAngle != null and !&quot;&quot;.equals(gyroPosAngle)">
+                and gyro_pos_angle = #{gyroPosAngle}
+            </if>
+            <if test="gyroPosShowLenth != null and !&quot;&quot;.equals(gyroPosShowLenth)">
+                and gyro_pos_show_lenth = #{gyroPosShowLenth}
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(vuforiaImageInfoAreaMarking)">
+                and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
+                and remark4 = #{remark4}
+            </if>
+            <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
+                and remark5 = #{remark5}
+            </if>
+            <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
+                and remark6 = #{remark6}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+            <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and pos_x = #{posX}
+            </if>
+            <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and pos_y = #{posY}
+            </if>
+            <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and pos_z = #{posZ}
+            </if>
+            <if test="remark7 != null and !&quot;&quot;.equals(remark7)">
+                and remark7 = #{remark7}
+            </if>
+            <if test="remark8 != null and !&quot;&quot;.equals(remark8)">
+                and remark8 = #{remark8}
+            </if>
+            <if test="remark9 != null and !&quot;&quot;.equals(remark9)">
+                and remark9 = #{remark9}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="iconRank != null and !&quot;&quot;.equals(iconRank)">
+                and icon_rank = #{iconRank}
+            </if>
+            <if test="aloneFlag != null and !&quot;&quot;.equals(aloneFlag)">
+                and alone_flag = #{aloneFlag}
+            </if>
+            <if test="autoPlay != null and !&quot;&quot;.equals(autoPlay)">
+                and auto_play = #{autoPlay}
+            </if>
+            <if test="autoDisplay != null and !&quot;&quot;.equals(autoDisplay)">
+                and auto_display = #{autoDisplay}
+            </if>
+            <if test="showLevel != null and !&quot;&quot;.equals(showLevel)">
+                and show_level = #{showLevel}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="aimGroupId != null and !&quot;&quot;.equals(aimGroupId)">
+                and aim_group_id = #{aimGroupId}
+            </if>
+            <if test="templateAimId != null and !&quot;&quot;.equals(templateAimId)">
+                and template_aim_id = #{templateAimId}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{searchKey},'%')
+                    OR type LIKE concat('%',#{searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{searchKey},'%')
+                    OR ar_content_group_id LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_x LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_y LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_z LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_scale LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_angle LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_show_lenth LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_x LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_y LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_z LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_scale LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_angle LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_show_lenth LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_image_info_area_marking LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR remark4 LIKE concat('%',#{searchKey},'%')
+                    OR remark5 LIKE concat('%',#{searchKey},'%')
+                    OR remark6 LIKE concat('%',#{searchKey},'%')
+                    OR pos_x LIKE concat('%',#{searchKey},'%')
+                    OR pos_y LIKE concat('%',#{searchKey},'%')
+                    OR pos_z LIKE concat('%',#{searchKey},'%')
+                    OR remark7 LIKE concat('%',#{searchKey},'%')
+                    OR remark8 LIKE concat('%',#{searchKey},'%')
+                    OR remark9 LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR alone_flag LIKE concat('%',#{searchKey},'%')
+                    OR auto_play LIKE concat('%',#{searchKey},'%')
+                    OR auto_display LIKE concat('%',#{searchKey},'%')
+                    OR show_level LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR area_id LIKE concat('%',#{searchKey},'%')
+                    OR thing_id LIKE concat('%',#{searchKey},'%')
+                    OR aim_group_id LIKE concat('%',#{searchKey},'%')
+                    OR template_aim_id LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAllAimPlaceInfoAllInfo" parameterType="java.util.Map" resultMap="AllInfoResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="arContentGroupId != null and !&quot;&quot;.equals(arContentGroupId)">
+                and ar_content_group_id = #{arContentGroupId}
+            </if>
+            <if test="arKitPosX != null and !&quot;&quot;.equals(arKitPosX)">
+                and ar_kit_pos_x = #{arKitPosX}
+            </if>
+            <if test="arKitPosY != null and !&quot;&quot;.equals(arKitPosY)">
+                and ar_kit_pos_y = #{arKitPosY}
+            </if>
+            <if test="arKitPosZ != null and !&quot;&quot;.equals(arKitPosZ)">
+                and ar_kit_pos_z = #{arKitPosZ}
+            </if>
+            <if test="arKitScale != null and !&quot;&quot;.equals(arKitScale)">
+                and ar_kit_scale = #{arKitScale}
+            </if>
+            <if test="arKitAngle != null and !&quot;&quot;.equals(arKitAngle)">
+                and ar_kit_angle = #{arKitAngle}
+            </if>
+            <if test="arKitShowLenth != null and !&quot;&quot;.equals(arKitShowLenth)">
+                and ar_kit_show_lenth = #{arKitShowLenth}
+            </if>
+            <if test="gyroPosX != null and !&quot;&quot;.equals(gyroPosX)">
+                and gyro_pos_x = #{gyroPosX}
+            </if>
+            <if test="gyroPosY != null and !&quot;&quot;.equals(gyroPosY)">
+                and gyro_pos_y = #{gyroPosY}
+            </if>
+            <if test="gyroPosZ != null and !&quot;&quot;.equals(gyroPosZ)">
+                and gyro_pos_z = #{gyroPosZ}
+            </if>
+            <if test="gyroPosScale != null and !&quot;&quot;.equals(gyroPosScale)">
+                and gyro_pos_scale = #{gyroPosScale}
+            </if>
+            <if test="gyroPosAngle != null and !&quot;&quot;.equals(gyroPosAngle)">
+                and gyro_pos_angle = #{gyroPosAngle}
+            </if>
+            <if test="gyroPosShowLenth != null and !&quot;&quot;.equals(gyroPosShowLenth)">
+                and gyro_pos_show_lenth = #{gyroPosShowLenth}
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(vuforiaImageInfoAreaMarking)">
+                and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
+                and remark4 = #{remark4}
+            </if>
+            <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
+                and remark5 = #{remark5}
+            </if>
+            <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
+                and remark6 = #{remark6}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+            <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and pos_x = #{posX}
+            </if>
+            <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and pos_y = #{posY}
+            </if>
+            <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and pos_z = #{posZ}
+            </if>
+            <if test="remark7 != null and !&quot;&quot;.equals(remark7)">
+                and remark7 = #{remark7}
+            </if>
+            <if test="remark8 != null and !&quot;&quot;.equals(remark8)">
+                and remark8 = #{remark8}
+            </if>
+            <if test="remark9 != null and !&quot;&quot;.equals(remark9)">
+                and remark9 = #{remark9}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="iconRank != null and !&quot;&quot;.equals(iconRank)">
+                and icon_rank = #{iconRank}
+            </if>
+            <if test="aloneFlag != null and !&quot;&quot;.equals(aloneFlag)">
+                and alone_flag = #{aloneFlag}
+            </if>
+            <if test="autoPlay != null and !&quot;&quot;.equals(autoPlay)">
+                and auto_play = #{autoPlay}
+            </if>
+            <if test="autoDisplay != null and !&quot;&quot;.equals(autoDisplay)">
+                and auto_display = #{autoDisplay}
+            </if>
+            <if test="showLevel != null and !&quot;&quot;.equals(showLevel)">
+                and show_level = #{showLevel}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="aimGroupId != null and !&quot;&quot;.equals(aimGroupId)">
+                and aim_group_id = #{aimGroupId}
+            </if>
+            <if test="templateAimId != null and !&quot;&quot;.equals(templateAimId)">
+                and template_aim_id = #{templateAimId}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{searchKey},'%')
+                    OR type LIKE concat('%',#{searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{searchKey},'%')
+                    OR ar_content_group_id LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_x LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_y LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_pos_z LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_scale LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_angle LIKE concat('%',#{searchKey},'%')
+                    OR ar_kit_show_lenth LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_x LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_y LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_z LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_scale LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_angle LIKE concat('%',#{searchKey},'%')
+                    OR gyro_pos_show_lenth LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_image_info_area_marking LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR remark4 LIKE concat('%',#{searchKey},'%')
+                    OR remark5 LIKE concat('%',#{searchKey},'%')
+                    OR remark6 LIKE concat('%',#{searchKey},'%')
+                    OR pos_x LIKE concat('%',#{searchKey},'%')
+                    OR pos_y LIKE concat('%',#{searchKey},'%')
+                    OR pos_z LIKE concat('%',#{searchKey},'%')
+                    OR remark7 LIKE concat('%',#{searchKey},'%')
+                    OR remark8 LIKE concat('%',#{searchKey},'%')
+                    OR remark9 LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR alone_flag LIKE concat('%',#{searchKey},'%')
+                    OR auto_play LIKE concat('%',#{searchKey},'%')
+                    OR auto_display LIKE concat('%',#{searchKey},'%')
+                    OR show_level LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR area_id LIKE concat('%',#{searchKey},'%')
+                    OR thing_id LIKE concat('%',#{searchKey},'%')
+                    OR aim_group_id LIKE concat('%',#{searchKey},'%')
+                    OR template_aim_id LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimPlaceInfo" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimPlaceInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="arContentGroupId != null and !&quot;&quot;.equals(arContentGroupId)">
+                and ar_content_group_id = #{arContentGroupId}
+            </if>
+            <if test="arKitPosX != null and !&quot;&quot;.equals(arKitPosX)">
+                and ar_kit_pos_x = #{arKitPosX}
+            </if>
+            <if test="arKitPosY != null and !&quot;&quot;.equals(arKitPosY)">
+                and ar_kit_pos_y = #{arKitPosY}
+            </if>
+            <if test="arKitPosZ != null and !&quot;&quot;.equals(arKitPosZ)">
+                and ar_kit_pos_z = #{arKitPosZ}
+            </if>
+            <if test="arKitScale != null and !&quot;&quot;.equals(arKitScale)">
+                and ar_kit_scale = #{arKitScale}
+            </if>
+            <if test="arKitAngle != null and !&quot;&quot;.equals(arKitAngle)">
+                and ar_kit_angle = #{arKitAngle}
+            </if>
+            <if test="arKitShowLenth != null and !&quot;&quot;.equals(arKitShowLenth)">
+                and ar_kit_show_lenth = #{arKitShowLenth}
+            </if>
+            <if test="gyroPosX != null and !&quot;&quot;.equals(gyroPosX)">
+                and gyro_pos_x = #{gyroPosX}
+            </if>
+            <if test="gyroPosY != null and !&quot;&quot;.equals(gyroPosY)">
+                and gyro_pos_y = #{gyroPosY}
+            </if>
+            <if test="gyroPosZ != null and !&quot;&quot;.equals(gyroPosZ)">
+                and gyro_pos_z = #{gyroPosZ}
+            </if>
+            <if test="gyroPosScale != null and !&quot;&quot;.equals(gyroPosScale)">
+                and gyro_pos_scale = #{gyroPosScale}
+            </if>
+            <if test="gyroPosAngle != null and !&quot;&quot;.equals(gyroPosAngle)">
+                and gyro_pos_angle = #{gyroPosAngle}
+            </if>
+            <if test="gyroPosShowLenth != null and !&quot;&quot;.equals(gyroPosShowLenth)">
+                and gyro_pos_show_lenth = #{gyroPosShowLenth}
+            </if>
+            <if test="vuforiaImageInfoAreaMarking != null and !&quot;&quot;.equals(vuforiaImageInfoAreaMarking)">
+                and vuforia_image_info_area_marking = #{vuforiaImageInfoAreaMarking}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
+                and remark4 = #{remark4}
+            </if>
+            <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
+                and remark5 = #{remark5}
+            </if>
+            <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
+                and remark6 = #{remark6}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+            <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and pos_x = #{posX}
+            </if>
+            <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and pos_y = #{posY}
+            </if>
+            <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and pos_z = #{posZ}
+            </if>
+            <if test="remark7 != null and !&quot;&quot;.equals(remark7)">
+                and remark7 = #{remark7}
+            </if>
+            <if test="remark8 != null and !&quot;&quot;.equals(remark8)">
+                and remark8 = #{remark8}
+            </if>
+            <if test="remark9 != null and !&quot;&quot;.equals(remark9)">
+                and remark9 = #{remark9}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="iconRank != null and !&quot;&quot;.equals(iconRank)">
+                and icon_rank = #{iconRank}
+            </if>
+            <if test="aloneFlag != null and !&quot;&quot;.equals(aloneFlag)">
+                and alone_flag = #{aloneFlag}
+            </if>
+            <if test="autoPlay != null and !&quot;&quot;.equals(autoPlay)">
+                and auto_play = #{autoPlay}
+            </if>
+            <if test="autoDisplay != null and !&quot;&quot;.equals(autoDisplay)">
+                and auto_display = #{autoDisplay}
+            </if>
+            <if test="showLevel != null and !&quot;&quot;.equals(showLevel)">
+                and show_level = #{showLevel}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="aimGroupId != null and !&quot;&quot;.equals(aimGroupId)">
+                and aim_group_id = #{aimGroupId}
+            </if>
+            <if test="templateAimId != null and !&quot;&quot;.equals(templateAimId)">
+                and template_aim_id = #{templateAimId}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_place_info SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlaceInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_info
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+
+    <resultMap id="AllInfoResultMap" type="com.izouma.awesomeadmin.model.AimPlaceInfo" extends="BaseResultMap">
+
+
+        <collection property="arContentList" ofType="com.izouma.awesomeadmin.model.ArContent"
+                    select="com.izouma.awesomeadmin.dao.ArContentMapper.queryAllArContent"
+                    column="{aimPlaceId = id}">
+        </collection>
+
+    </resultMap>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionLevelMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimPlacePositionLevel;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AimPlacePositionLevelMapper")
+public interface AimPlacePositionLevelMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimPlacePositionLevel record);
+
+    AimPlacePositionLevel selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimPlacePositionLevel record);
+
+    List<AimPlacePositionLevel> queryAllAimPlacePositionLevel(AimPlacePositionLevel record);
+
+    List<AimPlacePositionLevel> queryAimPlacePositionLevelByPage(Map<String, Object> parameter);
+
+    int delete(AimPlacePositionLevel record);
+
+    AimPlacePositionLevel queryAimPlacePositionLevel(AimPlacePositionLevel record);
+
+    List<AimPlacePositionLevel> query(AimPlacePositionLevel record);
+}
+

+ 505 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionLevelMapper.xml

@@ -0,0 +1,505 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimPlacePositionLevelMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimPlacePositionLevel" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="name" property="name" jdbcType="VARCHAR" />
+                                <result column="owned_land_mark_id" property="ownedLandMarkId" jdbcType="VARCHAR" />
+                                <result column="front_level_id" property="frontLevelId" jdbcType="VARCHAR" />
+                                <result column="aim_place_position_id" property="aimPlacePositionId" jdbcType="VARCHAR" />
+                                <result column="top_level" property="topLevel" jdbcType="VARCHAR" />
+                                <result column="remark1" property="remark1" jdbcType="VARCHAR" />
+                                <result column="remark2" property="remark2" jdbcType="VARCHAR" />
+                                <result column="remark3" property="remark3" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            name,
+
+            owned_land_mark_id,
+
+            front_level_id,
+
+            aim_place_position_id,
+
+            top_level,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from aim_place_position_level
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from aim_place_position_level
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimPlacePositionLevel" useGeneratedKeys="true" keyProperty="id">
+        insert into aim_place_position_level
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="name!= null" >
+                name,
+            </if>
+                <if test="ownedLandMarkId!= null" >
+                owned_land_mark_id,
+            </if>
+                <if test="frontLevelId!= null" >
+                front_level_id,
+            </if>
+                <if test="aimPlacePositionId!= null" >
+                aim_place_position_id,
+            </if>
+                <if test="topLevel!= null" >
+                top_level,
+            </if>
+                <if test="remark1!= null" >
+                remark1,
+            </if>
+                <if test="remark2!= null" >
+                remark2,
+            </if>
+                <if test="remark3!= null" >
+                remark3,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="name != null" >
+                #{name,jdbcType=VARCHAR},
+            </if>
+                    <if test="ownedLandMarkId != null" >
+                #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+                    <if test="frontLevelId != null" >
+                #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+                    <if test="aimPlacePositionId != null" >
+                #{aimPlacePositionId,jdbcType=VARCHAR},
+            </if>
+                    <if test="topLevel != null" >
+                #{topLevel,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark1 != null" >
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark2 != null" >
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark3 != null" >
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimPlacePositionLevel" >
+        update aim_place_position_level
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="name != null" >
+               name= #{name,jdbcType=VARCHAR},
+            </if>
+                     <if test="ownedLandMarkId != null" >
+               owned_land_mark_id= #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+                     <if test="frontLevelId != null" >
+               front_level_id= #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+                     <if test="aimPlacePositionId != null" >
+               aim_place_position_id= #{aimPlacePositionId,jdbcType=VARCHAR},
+            </if>
+                     <if test="topLevel != null" >
+               top_level= #{topLevel,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark1 != null" >
+               remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark2 != null" >
+               remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark3 != null" >
+               remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimPlacePositionLevelByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlacePositionLevel">
+        select <include refid="Base_Column_List"/> from aim_place_position_level
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.name != null and !&quot;&quot;.equals(record.name)">
+                and  name = #{record.name}
+            </if>
+                     <if test="record.ownedLandMarkId != null and !&quot;&quot;.equals(record.ownedLandMarkId)">
+                and  owned_land_mark_id = #{record.ownedLandMarkId}
+            </if>
+                     <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
+                and  front_level_id = #{record.frontLevelId}
+            </if>
+                     <if test="record.aimPlacePositionId != null and !&quot;&quot;.equals(record.aimPlacePositionId)">
+                and  aim_place_position_id = #{record.aimPlacePositionId}
+            </if>
+                     <if test="record.topLevel != null and !&quot;&quot;.equals(record.topLevel)">
+                and  top_level = #{record.topLevel}
+            </if>
+                     <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and  remark1 = #{record.remark1}
+            </if>
+                     <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and  remark2 = #{record.remark2}
+            </if>
+                     <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and  remark3 = #{record.remark3}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  owned_land_mark_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  front_level_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  aim_place_position_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  top_level LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark1 LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark2 LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark3 LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimPlacePositionLevel" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlacePositionLevel">
+        select <include refid="Base_Column_List"/> from aim_place_position_level
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="name != null and !&quot;&quot;.equals(name)">
+                and  name = #{name}
+            </if>
+                    <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and  owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+                    <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and  front_level_id = #{frontLevelId}
+            </if>
+                    <if test="aimPlacePositionId != null and !&quot;&quot;.equals(aimPlacePositionId)">
+                and  aim_place_position_id = #{aimPlacePositionId}
+            </if>
+                    <if test="topLevel != null and !&quot;&quot;.equals(topLevel)">
+                and  top_level = #{topLevel}
+            </if>
+                    <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and  remark1 = #{remark1}
+            </if>
+                    <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and  remark2 = #{remark2}
+            </if>
+                    <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and  remark3 = #{remark3}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  owned_land_mark_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  front_level_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  aim_place_position_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  top_level LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark1 LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark2 LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark3 LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimPlacePositionLevel" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlacePositionLevel">
+        select <include refid="Base_Column_List"/> from aim_place_position_level
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+                     <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+                     <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+                     <if test="aimPlacePositionId != null and !&quot;&quot;.equals(aimPlacePositionId)">
+                and aim_place_position_id = #{aimPlacePositionId}
+            </if>
+                     <if test="topLevel != null and !&quot;&quot;.equals(topLevel)">
+                and top_level = #{topLevel}
+            </if>
+                     <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+                     <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+                     <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_place_position_level SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlacePositionLevel">
+        select <include refid="Base_Column_List"/> from aim_place_position_level
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 35 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionMapper.java

@@ -0,0 +1,35 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimPlacePosition;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AimPlacePositionMapper")
+public interface AimPlacePositionMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimPlacePosition record);
+
+    AimPlacePosition selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimPlacePosition record);
+
+    List<AimPlacePosition> queryAllAimPlacePosition(AimPlacePosition record);
+
+    List<AimPlacePosition> queryAimPlacePositionByPage(Map<String, Object> parameter);
+
+    int delete(AimPlacePosition record);
+
+    AimPlacePosition queryAimPlacePosition(AimPlacePosition record);
+
+    List<AimPlacePosition> query(AimPlacePosition record);
+
+    List<AimPlacePosition> queryAllAimPlacePositionChild(AimPlacePosition record);
+}
+

+ 736 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimPlacePositionMapper.xml

@@ -0,0 +1,736 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimPlacePositionMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimPlacePosition">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="name" property="name" jdbcType="VARCHAR"/>
+        <result column="type" property="type" jdbcType="VARCHAR"/>
+        <result column="pos_x" property="posX" jdbcType="VARCHAR"/>
+        <result column="pos_y" property="posY" jdbcType="VARCHAR"/>
+        <result column="pos_z" property="posZ" jdbcType="VARCHAR"/>
+        <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
+        <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
+        <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
+        <result column="front_level_id" property="frontLevelId" jdbcType="VARCHAR"/>
+        <result column="owned_land_mark_id" property="ownedLandMarkId" jdbcType="VARCHAR"/>
+        <result column="map_index" property="mapIndex" jdbcType="INTEGER"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            name,
+
+            type,
+
+            pos_x,
+
+            pos_y,
+
+            pos_z,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            front_level_id,
+
+            owned_land_mark_id,
+
+            map_index,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_position
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from aim_place_position
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimPlacePosition" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into aim_place_position
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="name!= null">
+                name,
+            </if>
+            <if test="type!= null">
+                type,
+            </if>
+            <if test="posX!= null">
+                pos_x,
+            </if>
+            <if test="posY!= null">
+                pos_y,
+            </if>
+            <if test="posZ!= null">
+                pos_z,
+            </if>
+            <if test="remark1!= null">
+                remark1,
+            </if>
+            <if test="remark2!= null">
+                remark2,
+            </if>
+            <if test="remark3!= null">
+                remark3,
+            </if>
+            <if test="frontLevelId!= null">
+                front_level_id,
+            </if>
+            <if test="ownedLandMarkId!= null">
+                owned_land_mark_id,
+            </if>
+            <if test="mapIndex!= null">
+                map_index,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="posX != null">
+                #{posX,jdbcType=VARCHAR},
+            </if>
+            <if test="posY != null">
+                #{posY,jdbcType=VARCHAR},
+            </if>
+            <if test="posZ != null">
+                #{posZ,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedLandMarkId != null">
+                #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                #{mapIndex},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimPlacePosition">
+        update aim_place_position
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                name= #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                type= #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="posX != null">
+                pos_x= #{posX,jdbcType=VARCHAR},
+            </if>
+            <if test="posY != null">
+                pos_y= #{posY,jdbcType=VARCHAR},
+            </if>
+            <if test="posZ != null">
+                pos_z= #{posZ,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                front_level_id= #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedLandMarkId != null">
+                owned_land_mark_id= #{ownedLandMarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                map_index= #{mapIndex},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimPlacePositionByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimPlacePosition">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_position
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.name != null and !&quot;&quot;.equals(record.name)">
+                and name = #{record.name}
+            </if>
+            <if test="record.type != null and !&quot;&quot;.equals(record.type)">
+                and type = #{record.type}
+            </if>
+            <if test="record.posX != null and !&quot;&quot;.equals(record.posX)">
+                and pos_x = #{record.posX}
+            </if>
+            <if test="record.posY != null and !&quot;&quot;.equals(record.posY)">
+                and pos_y = #{record.posY}
+            </if>
+            <if test="record.posZ != null and !&quot;&quot;.equals(record.posZ)">
+                and pos_z = #{record.posZ}
+            </if>
+            <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and remark1 = #{record.remark1}
+            </if>
+            <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and remark2 = #{record.remark2}
+            </if>
+            <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and remark3 = #{record.remark3}
+            </if>
+            <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
+
+                and (front_level_id = #{record.frontLevelId}
+                <if test="'0'.toString()==record.frontLevelId">
+                    or (front_level_id is null or front_level_id = '')
+                </if>
+                )
+            </if>
+
+            <if test="record.ownedLandMarkId != null and !&quot;&quot;.equals(record.ownedLandMarkId)">
+                and owned_land_mark_id = #{record.ownedLandMarkId}
+            </if>
+            <if test="record.mapIndex != null and !&quot;&quot;.equals(record.mapIndex)">
+                and map_index = #{record.mapIndex}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{record.searchKey},'%')
+                    OR type LIKE concat('%',#{record.searchKey},'%')
+                    OR pos_x LIKE concat('%',#{record.searchKey},'%')
+                    OR pos_y LIKE concat('%',#{record.searchKey},'%')
+                    OR pos_z LIKE concat('%',#{record.searchKey},'%')
+                    OR remark1 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark2 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark3 LIKE concat('%',#{record.searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{record.searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimPlacePosition" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimPlacePosition">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_position
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and pos_x = #{posX}
+            </if>
+            <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and pos_y = #{posY}
+            </if>
+            <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and pos_z = #{posZ}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+
+                and (front_level_id = #{frontLevelId}
+                <if test="'0'.toString()==frontLevelId">
+                    or (front_level_id is null or front_level_id = '')
+                </if>
+                )
+            </if>
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{searchKey},'%')
+                    OR type LIKE concat('%',#{searchKey},'%')
+                    OR pos_x LIKE concat('%',#{searchKey},'%')
+                    OR pos_y LIKE concat('%',#{searchKey},'%')
+                    OR pos_z LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAllAimPlacePositionChild" parameterType="java.util.Map"
+            resultMap="AimPlacePositionChildResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_position
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and pos_x = #{posX}
+            </if>
+            <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and pos_y = #{posY}
+            </if>
+            <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and pos_z = #{posZ}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+
+                and (front_level_id = #{frontLevelId}
+                <if test="'0'.toString()==frontLevelId">
+                    or (front_level_id is null or front_level_id = '')
+                </if>
+                )
+            </if>
+
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR name LIKE concat('%',#{searchKey},'%')
+                    OR type LIKE concat('%',#{searchKey},'%')
+                    OR pos_x LIKE concat('%',#{searchKey},'%')
+                    OR pos_y LIKE concat('%',#{searchKey},'%')
+                    OR pos_z LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR owned_land_mark_id LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimPlacePosition" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimPlacePosition">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_position
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and pos_x = #{posX}
+            </if>
+            <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and pos_y = #{posY}
+            </if>
+            <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and pos_z = #{posZ}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="ownedLandMarkId != null and !&quot;&quot;.equals(ownedLandMarkId)">
+                and owned_land_mark_id = #{ownedLandMarkId}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_place_position SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimPlacePosition">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_place_position
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+    <resultMap id="AimPlacePositionChildResultMap" type="com.izouma.awesomeadmin.model.AimPlacePosition"
+               extends="BaseResultMap">
+
+
+        <collection property="aimPlacePositionChildList" ofType="com.izouma.awesomeadmin.model.AimPlacePosition"
+                    select="com.izouma.awesomeadmin.dao.AimPlacePositionMapper.queryAllAimPlacePositionChild"
+                    column="{frontLevelId = id}">
+        </collection>
+    </resultMap>
+
+</mapper>
+

+ 36 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimTemplateAimMapper.java

@@ -0,0 +1,36 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimTemplateAim;
+
+
+/**
+ * Dao接口
+ */
+@Repository("com.zoumaframe.dao.AimTemplateAimMapper")
+public interface AimTemplateAimMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimTemplateAim record);
+
+    AimTemplateAim selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimTemplateAim record);
+
+    List<AimTemplateAim> queryAllAimTemplateAim(AimTemplateAim record);
+
+    List<AimTemplateAim> queryAllAimTemplateAimAllInfo(AimTemplateAim record);
+
+    List<AimTemplateAim> queryAimTemplateAimByPage(Map<String, Object> parameter);
+
+    int delete(AimTemplateAim record);
+
+    AimTemplateAim queryAimTemplateAim(AimTemplateAim record);
+
+    List<AimTemplateAim> query(AimTemplateAim record);
+}
+

+ 706 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimTemplateAimMapper.xml

@@ -0,0 +1,706 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimTemplateAimMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimTemplateAim">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="aim_name" property="aimName" jdbcType="VARCHAR"/>
+        <result column="icon" property="icon" jdbcType="VARCHAR"/>
+        <result column="icon_rank" property="iconRank" jdbcType="INTEGER"/>
+        <result column="alone_flag" property="aloneFlag" jdbcType="VARCHAR"/>
+        <result column="auto_play" property="autoPlay" jdbcType="VARCHAR"/>
+        <result column="auto_display" property="autoDisplay" jdbcType="VARCHAR"/>
+        <result column="show_level" property="showLevel" jdbcType="VARCHAR"/>
+        <result column="remark" property="remark" jdbcType="VARCHAR"/>
+        <result column="template_id" property="templateId" jdbcType="VARCHAR"/>
+        <result column="power" property="power" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            aim_name,
+
+            icon,
+
+            icon_rank,
+
+            alone_flag,
+
+            auto_play,
+
+            auto_display,
+
+            show_level,
+
+            remark,
+
+            template_id,
+
+            power,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template_aim
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from aim_template_aim
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimTemplateAim" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into aim_template_aim
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="aimName!= null">
+                aim_name,
+            </if>
+            <if test="icon!= null">
+                icon,
+            </if>
+            <if test="iconRank!= null">
+                icon_rank,
+            </if>
+            <if test="aloneFlag!= null">
+                alone_flag,
+            </if>
+            <if test="autoPlay!= null">
+                auto_play,
+            </if>
+            <if test="autoDisplay!= null">
+                auto_display,
+            </if>
+            <if test="showLevel!= null">
+                show_level,
+            </if>
+            <if test="remark!= null">
+                remark,
+            </if>
+            <if test="templateId!= null">
+                template_id,
+            </if>
+            <if test="power!= null">
+                power,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="aimName != null">
+                #{aimName,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="iconRank != null">
+                #{iconRank,jdbcType=INTEGER},
+            </if>
+            <if test="aloneFlag != null">
+                #{aloneFlag,jdbcType=VARCHAR},
+            </if>
+            <if test="autoPlay != null">
+                #{autoPlay,jdbcType=VARCHAR},
+            </if>
+            <if test="autoDisplay != null">
+                #{autoDisplay,jdbcType=VARCHAR},
+            </if>
+            <if test="showLevel != null">
+                #{showLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                #{power,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimTemplateAim">
+        update aim_template_aim
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="aimName != null">
+                aim_name= #{aimName,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                icon= #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="iconRank != null">
+                icon_rank= #{iconRank,jdbcType=INTEGER},
+            </if>
+            <if test="aloneFlag != null">
+                alone_flag= #{aloneFlag,jdbcType=VARCHAR},
+            </if>
+            <if test="autoPlay != null">
+                auto_play= #{autoPlay,jdbcType=VARCHAR},
+            </if>
+            <if test="autoDisplay != null">
+                auto_display= #{autoDisplay,jdbcType=VARCHAR},
+            </if>
+            <if test="showLevel != null">
+                show_level= #{showLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                remark= #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                template_id= #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                power= #{power,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimTemplateAimByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimTemplateAim">
+        select
+        <include refid="Base_Column_List"/>
+        <if test="record.arNum != null and !&quot;&quot;.equals(record.arNum)">
+            , (SELECT
+            COUNT(aim_template_ar.id)
+            FROM
+            aim_template_ar
+            WHERE
+            aim_template_ar.del_flag = 'N'
+            AND aim_template_ar.template_aim_id = aim_template_aim.id) as arNum
+        </if>
+        from aim_template_aim
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.aimName != null and !&quot;&quot;.equals(record.aimName)">
+                and aim_name = #{record.aimName}
+            </if>
+            <if test="record.icon != null and !&quot;&quot;.equals(record.icon)">
+                and icon = #{record.icon}
+            </if>
+            <if test="record.iconRank != null and !&quot;&quot;.equals(record.iconRank)">
+                and icon_rank = #{record.iconRank}
+            </if>
+            <if test="record.aloneFlag != null and !&quot;&quot;.equals(record.aloneFlag)">
+                and alone_flag = #{record.aloneFlag}
+            </if>
+            <if test="record.autoPlay != null and !&quot;&quot;.equals(record.autoPlay)">
+                and auto_play = #{record.autoPlay}
+            </if>
+            <if test="record.autoDisplay != null and !&quot;&quot;.equals(record.autoDisplay)">
+                and auto_display = #{record.autoDisplay}
+            </if>
+            <if test="record.showLevel != null and !&quot;&quot;.equals(record.showLevel)">
+                and show_level = #{record.showLevel}
+            </if>
+            <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and remark = #{record.remark}
+            </if>
+            <if test="record.templateId != null and !&quot;&quot;.equals(record.templateId)">
+                and template_id = #{record.templateId}
+            </if>
+            <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and power = #{record.power}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR aim_name LIKE concat('%',#{record.searchKey},'%')
+                    OR icon LIKE concat('%',#{record.searchKey},'%')
+                    OR icon_rank LIKE concat('%',#{record.searchKey},'%')
+                    OR alone_flag LIKE concat('%',#{record.searchKey},'%')
+                    OR auto_play LIKE concat('%',#{record.searchKey},'%')
+                    OR auto_display LIKE concat('%',#{record.searchKey},'%')
+                    OR show_level LIKE concat('%',#{record.searchKey},'%')
+                    OR remark LIKE concat('%',#{record.searchKey},'%')
+                    OR template_id LIKE concat('%',#{record.searchKey},'%')
+                    OR power LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimTemplateAim" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimTemplateAim">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template_aim
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="aimName != null and !&quot;&quot;.equals(aimName)">
+                and aim_name = #{aimName}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="iconRank != null and !&quot;&quot;.equals(iconRank)">
+                and icon_rank = #{iconRank}
+            </if>
+            <if test="aloneFlag != null and !&quot;&quot;.equals(aloneFlag)">
+                and alone_flag = #{aloneFlag}
+            </if>
+            <if test="autoPlay != null and !&quot;&quot;.equals(autoPlay)">
+                and auto_play = #{autoPlay}
+            </if>
+            <if test="autoDisplay != null and !&quot;&quot;.equals(autoDisplay)">
+                and auto_display = #{autoDisplay}
+            </if>
+            <if test="showLevel != null and !&quot;&quot;.equals(showLevel)">
+                and show_level = #{showLevel}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR aim_name LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR icon_rank LIKE concat('%',#{searchKey},'%')
+                    OR alone_flag LIKE concat('%',#{searchKey},'%')
+                    OR auto_play LIKE concat('%',#{searchKey},'%')
+                    OR auto_display LIKE concat('%',#{searchKey},'%')
+                    OR show_level LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR power LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAllAimTemplateAimAllInfo" parameterType="java.util.Map" resultMap="AllInfoResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template_aim
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="aimName != null and !&quot;&quot;.equals(aimName)">
+                and aim_name = #{aimName}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="iconRank != null and !&quot;&quot;.equals(iconRank)">
+                and icon_rank = #{iconRank}
+            </if>
+            <if test="aloneFlag != null and !&quot;&quot;.equals(aloneFlag)">
+                and alone_flag = #{aloneFlag}
+            </if>
+            <if test="autoPlay != null and !&quot;&quot;.equals(autoPlay)">
+                and auto_play = #{autoPlay}
+            </if>
+            <if test="autoDisplay != null and !&quot;&quot;.equals(autoDisplay)">
+                and auto_display = #{autoDisplay}
+            </if>
+            <if test="showLevel != null and !&quot;&quot;.equals(showLevel)">
+                and show_level = #{showLevel}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR aim_name LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR icon_rank LIKE concat('%',#{searchKey},'%')
+                    OR alone_flag LIKE concat('%',#{searchKey},'%')
+                    OR auto_play LIKE concat('%',#{searchKey},'%')
+                    OR auto_display LIKE concat('%',#{searchKey},'%')
+                    OR show_level LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR power LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimTemplateAim" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimTemplateAim">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template_aim
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="aimName != null and !&quot;&quot;.equals(aimName)">
+                and aim_name = #{aimName}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="iconRank != null and !&quot;&quot;.equals(iconRank)">
+                and icon_rank = #{iconRank}
+            </if>
+            <if test="aloneFlag != null and !&quot;&quot;.equals(aloneFlag)">
+                and alone_flag = #{aloneFlag}
+            </if>
+            <if test="autoPlay != null and !&quot;&quot;.equals(autoPlay)">
+                and auto_play = #{autoPlay}
+            </if>
+            <if test="autoDisplay != null and !&quot;&quot;.equals(autoDisplay)">
+                and auto_display = #{autoDisplay}
+            </if>
+            <if test="showLevel != null and !&quot;&quot;.equals(showLevel)">
+                and show_level = #{showLevel}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_template_aim SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimTemplateAim">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template_aim
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+
+    <resultMap id="AllInfoResultMap" type="com.izouma.awesomeadmin.model.AimTemplateAim" extends="BaseResultMap">
+
+
+        <collection property="aimTemplateArList" ofType="com.izouma.awesomeadmin.model.AimTemplateAr"
+                    select="com.izouma.awesomeadmin.dao.AimTemplateArMapper.queryAllAimTemplateAr"
+                    column="{templateAimId = id}">
+        </collection>
+    </resultMap>
+
+</mapper>
+

+ 34 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimTemplateArMapper.java

@@ -0,0 +1,34 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimTemplateAr;
+
+
+/**
+ * Dao接口
+ */
+@Repository("com.zoumaframe.dao.AimTemplateArMapper")
+public interface AimTemplateArMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimTemplateAr record);
+
+    AimTemplateAr selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimTemplateAr record);
+
+    List<AimTemplateAr> queryAllAimTemplateAr(AimTemplateAr record);
+
+    List<AimTemplateAr> queryAimTemplateArByPage(Map<String, Object> parameter);
+
+    int delete(AimTemplateAr record);
+
+    AimTemplateAr queryAimTemplateAr(AimTemplateAr record);
+
+    List<AimTemplateAr> query(AimTemplateAr record);
+}
+

+ 482 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimTemplateArMapper.xml

@@ -0,0 +1,482 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimTemplateArMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimTemplateAr" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="ar_name" property="arName" jdbcType="VARCHAR" />
+                                <result column="ar_type" property="arType" jdbcType="VARCHAR" />
+                                <result column="activation_mode" property="activationMode" jdbcType="VARCHAR" />
+                                <result column="remark" property="remark" jdbcType="VARCHAR" />
+                                <result column="template_id" property="templateId" jdbcType="VARCHAR" />
+                                <result column="template_aim_id" property="templateAimId" jdbcType="VARCHAR" />
+                                <result column="power" property="power" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            ar_name,
+
+            ar_type,
+
+            activation_mode,
+
+            remark,
+
+            template_id,
+
+            template_aim_id,
+
+            power,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from aim_template_ar
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from aim_template_ar
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimTemplateAr" useGeneratedKeys="true" keyProperty="id">
+        insert into aim_template_ar
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="arName!= null" >
+                ar_name,
+            </if>
+                <if test="arType!= null" >
+                ar_type,
+            </if>
+                <if test="activationMode!= null" >
+                activation_mode,
+            </if>
+                <if test="remark!= null" >
+                remark,
+            </if>
+                <if test="templateId!= null" >
+                template_id,
+            </if>
+                <if test="templateAimId!= null" >
+                template_aim_id,
+            </if>
+                <if test="power!= null" >
+                power,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="arName != null" >
+                #{arName,jdbcType=VARCHAR},
+            </if>
+                    <if test="arType != null" >
+                #{arType,jdbcType=VARCHAR},
+            </if>
+                    <if test="activationMode != null" >
+                #{activationMode,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark != null" >
+                #{remark,jdbcType=VARCHAR},
+            </if>
+                    <if test="templateId != null" >
+                #{templateId,jdbcType=VARCHAR},
+            </if>
+                    <if test="templateAimId != null" >
+                #{templateAimId,jdbcType=VARCHAR},
+            </if>
+                    <if test="power != null" >
+                #{power,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimTemplateAr" >
+        update aim_template_ar
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="arName != null" >
+               ar_name= #{arName,jdbcType=VARCHAR},
+            </if>
+                     <if test="arType != null" >
+               ar_type= #{arType,jdbcType=VARCHAR},
+            </if>
+                     <if test="activationMode != null" >
+               activation_mode= #{activationMode,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark != null" >
+               remark= #{remark,jdbcType=VARCHAR},
+            </if>
+                     <if test="templateId != null" >
+               template_id= #{templateId,jdbcType=VARCHAR},
+            </if>
+                     <if test="templateAimId != null" >
+               template_aim_id= #{templateAimId,jdbcType=VARCHAR},
+            </if>
+                     <if test="power != null" >
+               power= #{power,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimTemplateArByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimTemplateAr">
+        select <include refid="Base_Column_List"/> from aim_template_ar
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.arName != null and !&quot;&quot;.equals(record.arName)">
+                and  ar_name = #{record.arName}
+            </if>
+                     <if test="record.arType != null and !&quot;&quot;.equals(record.arType)">
+                and  ar_type = #{record.arType}
+            </if>
+                     <if test="record.activationMode != null and !&quot;&quot;.equals(record.activationMode)">
+                and  activation_mode = #{record.activationMode}
+            </if>
+                     <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and  remark = #{record.remark}
+            </if>
+                     <if test="record.templateId != null and !&quot;&quot;.equals(record.templateId)">
+                and  template_id = #{record.templateId}
+            </if>
+                     <if test="record.templateAimId != null and !&quot;&quot;.equals(record.templateAimId)">
+                and  template_aim_id = #{record.templateAimId}
+            </if>
+                     <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and  power = #{record.power}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  ar_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  ar_type LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  activation_mode LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  template_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  template_aim_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  power LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimTemplateAr" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimTemplateAr">
+        select <include refid="Base_Column_List"/> from aim_template_ar
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="arName != null and !&quot;&quot;.equals(arName)">
+                and  ar_name = #{arName}
+            </if>
+                    <if test="arType != null and !&quot;&quot;.equals(arType)">
+                and  ar_type = #{arType}
+            </if>
+                    <if test="activationMode != null and !&quot;&quot;.equals(activationMode)">
+                and  activation_mode = #{activationMode}
+            </if>
+                    <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and  remark = #{remark}
+            </if>
+                    <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and  template_id = #{templateId}
+            </if>
+                    <if test="templateAimId != null and !&quot;&quot;.equals(templateAimId)">
+                and  template_aim_id = #{templateAimId}
+            </if>
+                    <if test="power != null and !&quot;&quot;.equals(power)">
+                and  power = #{power}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  ar_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  ar_type LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  activation_mode LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  template_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  template_aim_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  power LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimTemplateAr" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimTemplateAr">
+        select <include refid="Base_Column_List"/> from aim_template_ar
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="arName != null and !&quot;&quot;.equals(arName)">
+                and ar_name = #{arName}
+            </if>
+                     <if test="arType != null and !&quot;&quot;.equals(arType)">
+                and ar_type = #{arType}
+            </if>
+                     <if test="activationMode != null and !&quot;&quot;.equals(activationMode)">
+                and activation_mode = #{activationMode}
+            </if>
+                     <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+                     <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+                     <if test="templateAimId != null and !&quot;&quot;.equals(templateAimId)">
+                and template_aim_id = #{templateAimId}
+            </if>
+                     <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_template_ar SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimTemplateAr">
+        select <include refid="Base_Column_List"/> from aim_template_ar
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 35 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimTemplateMapper.java

@@ -0,0 +1,35 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AimTemplate;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AimTemplateMapper")
+public interface AimTemplateMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AimTemplate record);
+
+    AimTemplate selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AimTemplate record);
+
+    List<AimTemplate> queryAllAimTemplate(AimTemplate record);
+
+    List<AimTemplate> queryAimTemplateByPage(Map<String, Object> parameter);
+
+    int delete(AimTemplate record);
+
+    AimTemplate queryAimTemplate(AimTemplate record);
+
+    AimTemplate queryAimTemplateAllInfo(AimTemplate record);
+
+    List<AimTemplate> query(AimTemplate record);
+}
+

+ 494 - 0
src/main/java/com/izouma/awesomeadmin/dao/AimTemplateMapper.xml

@@ -0,0 +1,494 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AimTemplateMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AimTemplate">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="template_name" property="templateName" jdbcType="VARCHAR"/>
+        <result column="apply_to" property="applyTo" jdbcType="VARCHAR"/>
+        <result column="remark" property="remark" jdbcType="VARCHAR"/>
+        <result column="power" property="power" jdbcType="VARCHAR"/>
+        <result column="system_flag" property="systemFlag" jdbcType="CHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            template_name,
+
+            apply_to,
+
+            remark,
+
+            power,
+
+            system_flag,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from aim_template
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AimTemplate" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into aim_template
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="templateName!= null">
+                template_name,
+            </if>
+            <if test="applyTo!= null">
+                apply_to,
+            </if>
+            <if test="remark!= null">
+                remark,
+            </if>
+            <if test="power!= null">
+                power,
+            </if>
+            <if test="systemFlag!= null">
+                system_flag,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="templateName != null">
+                #{templateName,jdbcType=VARCHAR},
+            </if>
+            <if test="applyTo != null">
+                #{applyTo,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="systemFlag != null">
+                #{systemFlag,jdbcType=CHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AimTemplate">
+        update aim_template
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="templateName != null">
+                template_name= #{templateName,jdbcType=VARCHAR},
+            </if>
+            <if test="applyTo != null">
+                apply_to= #{applyTo,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                remark= #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                power= #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="systemFlag != null">
+                system_flag= #{systemFlag,jdbcType=CHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAimTemplateByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimTemplate">
+        select
+        <include refid="Base_Column_List"/>
+
+        <if test="record.aimNum != null and !&quot;&quot;.equals(record.aimNum)">
+            , (SELECT
+            COUNT(aim_template_aim.id)
+            FROM
+            aim_template_aim
+            WHERE
+            aim_template_aim.del_flag = 'N'
+            AND aim_template_aim.template_id = aim_template.id) as aimNum
+        </if>
+        from aim_template
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.templateName != null and !&quot;&quot;.equals(record.templateName)">
+                and template_name = #{record.templateName}
+            </if>
+            <if test="record.applyTo != null and !&quot;&quot;.equals(record.applyTo)">
+                and apply_to = #{record.applyTo}
+            </if>
+            <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and remark = #{record.remark}
+            </if>
+            <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and power = #{record.power}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR template_name LIKE concat('%',#{record.searchKey},'%')
+                    OR apply_to LIKE concat('%',#{record.searchKey},'%')
+                    OR remark LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAimTemplate" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.AimTemplate">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="templateName != null and !&quot;&quot;.equals(templateName)">
+                and template_name = #{templateName}
+            </if>
+            <if test="applyTo != null and !&quot;&quot;.equals(applyTo)">
+                and apply_to = #{applyTo}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR template_name LIKE concat('%',#{searchKey},'%')
+                    OR apply_to LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAimTemplate" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimTemplate">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="templateName != null and !&quot;&quot;.equals(templateName)">
+                and template_name = #{templateName}
+            </if>
+            <if test="applyTo != null and !&quot;&quot;.equals(applyTo)">
+                and apply_to = #{applyTo}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <select id="queryAimTemplateAllInfo" parameterType="java.util.Map" resultMap="AllInfoResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="templateName != null and !&quot;&quot;.equals(templateName)">
+                and template_name = #{templateName}
+            </if>
+            <if test="applyTo != null and !&quot;&quot;.equals(applyTo)">
+                and apply_to = #{applyTo}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE aim_template SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AimTemplate">
+        select
+        <include refid="Base_Column_List"/>
+        from aim_template
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+
+    <resultMap id="AllInfoResultMap" type="com.izouma.awesomeadmin.model.AimTemplate" extends="BaseResultMap">
+
+
+        <collection property="aimTemplateAimList" ofType="com.izouma.awesomeadmin.model.AimTemplateAim"
+                    select="com.izouma.awesomeadmin.dao.AimTemplateAimMapper.queryAllAimTemplateAimAllInfo"
+                    column="{templateId = id}">
+        </collection>
+    </resultMap>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/AlipayTempMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AlipayTemp;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AlipayTempMapper")
+public interface AlipayTempMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AlipayTemp record);
+
+    AlipayTemp selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AlipayTemp record);
+
+    List<AlipayTemp> queryAllAlipayTemp(AlipayTemp record);
+
+    List<AlipayTemp> queryAlipayTempByPage(Map<String, Object> parameter);
+
+    int delete(String id);
+
+    AlipayTemp queryAlipayTemp(AlipayTemp record);
+
+    List<AlipayTemp> query(AlipayTemp record);
+}
+

Datei-Diff unterdrückt, da er zu groß ist
+ 527 - 0
src/main/java/com/izouma/awesomeadmin/dao/AlipayTempMapper.xml


+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/ArContentChildMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.ArContentChild;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.ArContentChildMapper")
+public interface ArContentChildMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(ArContentChild record);
+
+    ArContentChild selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(ArContentChild record);
+
+    List<ArContentChild> queryAllArContentChild(ArContentChild record);
+
+    List<ArContentChild> queryArContentChildByPage(Map<String, Object> parameter);
+
+    int delete(ArContentChild record);
+
+    ArContentChild queryArContentChild(ArContentChild record);
+
+    List<ArContentChild> query(ArContentChild record);
+}
+

Datei-Diff unterdrückt, da er zu groß ist
+ 707 - 0
src/main/java/com/izouma/awesomeadmin/dao/ArContentChildMapper.xml


+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/ArContentMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.ArContent;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.ArContentMapper")
+public interface ArContentMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(ArContent record);
+
+    ArContent selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(ArContent record);
+
+    List<ArContent> queryAllArContent(ArContent record);
+
+    List<ArContent> queryArContentByPage(Map<String, Object> parameter);
+
+    int delete(ArContent record);
+
+    ArContent queryArContent(ArContent record);
+
+    List<ArContent> query(ArContent record);
+}
+

+ 947 - 0
src/main/java/com/izouma/awesomeadmin/dao/ArContentMapper.xml

@@ -0,0 +1,947 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.ArContentMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.ArContent">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="group_id" property="groupId" jdbcType="VARCHAR"/>
+        <result column="name" property="name" jdbcType="VARCHAR"/>
+        <result column="type" property="type" jdbcType="VARCHAR"/>
+        <result column="text" property="text" jdbcType="VARCHAR"/>
+        <result column="image" property="image" jdbcType="VARCHAR"/>
+        <result column="url" property="url" jdbcType="VARCHAR"/>
+        <result column="voice" property="voice" jdbcType="VARCHAR"/>
+        <result column="movie" property="movie" jdbcType="VARCHAR"/>
+        <result column="model" property="model" jdbcType="VARCHAR"/>
+        <result column="cfile" property="cfile" jdbcType="VARCHAR"/>
+        <result column="resource_size" property="resourceSize" jdbcType="VARCHAR"/>
+        <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
+        <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
+        <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
+        <result column="remark4" property="remark4" jdbcType="VARCHAR"/>
+        <result column="remark5" property="remark5" jdbcType="VARCHAR"/>
+        <result column="remark6" property="remark6" jdbcType="VARCHAR"/>
+        <result column="remark7" property="remark7" jdbcType="VARCHAR"/>
+        <result column="remark8" property="remark8" jdbcType="VARCHAR"/>
+        <result column="remark9" property="remark9" jdbcType="VARCHAR"/>
+        <result column="remark10" property="remark10" jdbcType="VARCHAR"/>
+        <result column="area_id" property="areaId" jdbcType="VARCHAR"/>
+        <result column="thing_id" property="thingId" jdbcType="VARCHAR"/>
+        <result column="aim_group_id" property="aimGroupId" jdbcType="VARCHAR"/>
+        <result column="template_id" property="templateId" jdbcType="VARCHAR"/>
+        <result column="template_aim_id" property="templateAimId" jdbcType="VARCHAR"/>
+        <result column="activation_mode" property="activationMode" jdbcType="VARCHAR"/>
+        <result column="aimPlaceId" property="aimPlaceId" jdbcType="VARCHAR"/>
+        <result column="template_ar_id" property="templateArId" jdbcType="VARCHAR"/>
+        <result column="modify_flag" property="modifyFlag" jdbcType="CHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            group_id,
+
+            name,
+
+            type,
+
+            text,
+
+            image,
+
+            url,
+
+            voice,
+
+            movie,
+
+            model,
+
+            cfile,
+
+            resource_size,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            remark4,
+
+            remark5,
+
+            remark6,
+            remark7,
+            remark8,
+            remark9,
+            remark10,
+            area_id,
+            thing_id,
+            aim_group_id,
+            template_id,
+            template_aim_id,
+            activation_mode,
+            aim_place_id,
+            template_ar_id,
+            modify_flag,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from ar_content
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from ar_content
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.ArContent" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into ar_content
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="groupId!= null">
+                group_id,
+            </if>
+            <if test="name!= null">
+                name,
+            </if>
+            <if test="type!= null">
+                type,
+            </if>
+            <if test="text!= null">
+                text,
+            </if>
+            <if test="image!= null">
+                image,
+            </if>
+            <if test="url!= null">
+                url,
+            </if>
+            <if test="voice!= null">
+                voice,
+            </if>
+            <if test="movie!= null">
+                movie,
+            </if>
+            <if test="model!= null">
+                model,
+            </if>
+            <if test="cfile!= null">
+                cfile,
+            </if>
+            <if test="resourceSize!= null">
+                resource_size,
+            </if>
+            <if test="remark1!= null">
+                remark1,
+            </if>
+            <if test="remark2!= null">
+                remark2,
+            </if>
+            <if test="remark3!= null">
+                remark3,
+            </if>
+            <if test="remark4!= null">
+                remark4,
+            </if>
+            <if test="remark5!= null">
+                remark5,
+            </if>
+            <if test="remark6!= null">
+                remark6,
+            </if>
+            <if test="remark7!= null">
+                remark7,
+            </if>
+            <if test="remark8!= null">
+                remark8,
+            </if>
+            <if test="remark9!= null">
+                remark9,
+            </if>
+            <if test="remark10!= null">
+                remark10,
+            </if>
+            <if test="areaId!= null">
+                area_id,
+            </if>
+            <if test="thingId!= null">
+                thing_id,
+            </if>
+            <if test="aimGroupId!= null">
+                aim_group_id,
+            </if>
+            <if test="templateId!= null">
+                template_id,
+            </if>
+            <if test="templateAimId!= null">
+                template_aim_id,
+            </if>
+            <if test="activationMode!= null">
+                activation_mode,
+            </if>
+            <if test="aimPlaceId!= null">
+                aim_place_id,
+            </if>
+            <if test="templateArId!= null">
+                template_ar_id,
+            </if>
+            <if test="modifyFlag!= null">
+                modify_flag,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="groupId != null">
+                #{groupId,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="text != null">
+                #{text,jdbcType=VARCHAR},
+            </if>
+            <if test="image != null">
+                #{image,jdbcType=VARCHAR},
+            </if>
+            <if test="url != null">
+                #{url,jdbcType=VARCHAR},
+            </if>
+            <if test="voice != null">
+                #{voice,jdbcType=VARCHAR},
+            </if>
+            <if test="movie != null">
+                #{movie,jdbcType=VARCHAR},
+            </if>
+            <if test="model != null">
+                #{model,jdbcType=VARCHAR},
+            </if>
+            <if test="cfile != null">
+                #{cfile,jdbcType=VARCHAR},
+            </if>
+            <if test="resourceSize != null">
+                #{resourceSize,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="remark4 != null">
+                #{remark4,jdbcType=VARCHAR},
+            </if>
+            <if test="remark5 != null">
+                #{remark5,jdbcType=VARCHAR},
+            </if>
+            <if test="remark6 != null">
+                #{remark6,jdbcType=VARCHAR},
+            </if>
+            <if test="remark7 != null">
+                #{remark7,jdbcType=VARCHAR},
+            </if>
+            <if test="remark8 != null">
+                #{remark8,jdbcType=VARCHAR},
+            </if>
+            <if test="remark9 != null">
+                #{remark9,jdbcType=VARCHAR},
+            </if>
+            <if test="remark10 != null">
+                #{remark10,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingId != null">
+                #{thingId,jdbcType=VARCHAR},
+            </if>
+            <if test="aimGroupId != null">
+                #{aimGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateAimId != null">
+                #{templateAimId,jdbcType=VARCHAR},
+            </if>
+            <if test="activationMode != null">
+                #{activationMode,jdbcType=VARCHAR},
+            </if>
+            <if test="aimPlaceId != null">
+                #{aimPlaceId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateArId != null">
+                #{templateArId,jdbcType=VARCHAR},
+            </if>
+            <if test="modifyFlag != null">
+                #{modifyFlag,jdbcType=CHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ArContent">
+        update ar_content
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="groupId != null">
+                group_id= #{groupId,jdbcType=VARCHAR},
+            </if>
+            <if test="name != null">
+                name= #{name,jdbcType=VARCHAR},
+            </if>
+            <if test="type != null">
+                type= #{type,jdbcType=VARCHAR},
+            </if>
+            <if test="text != null">
+                text= #{text,jdbcType=VARCHAR},
+            </if>
+            <if test="image != null">
+                image= #{image,jdbcType=VARCHAR},
+            </if>
+            <if test="url != null">
+                url= #{url,jdbcType=VARCHAR},
+            </if>
+            <if test="voice != null">
+                voice= #{voice,jdbcType=VARCHAR},
+            </if>
+            <if test="movie != null">
+                movie= #{movie,jdbcType=VARCHAR},
+            </if>
+            <if test="model != null">
+                model= #{model,jdbcType=VARCHAR},
+            </if>
+            <if test="cfile != null">
+                cfile= #{cfile,jdbcType=VARCHAR},
+            </if>
+            <if test="resourceSize != null">
+                resource_size= #{resourceSize,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="remark4 != null">
+                remark4= #{remark4,jdbcType=VARCHAR},
+            </if>
+            <if test="remark5 != null">
+                remark5= #{remark5,jdbcType=VARCHAR},
+            </if>
+            <if test="remark6 != null">
+                remark6= #{remark6,jdbcType=VARCHAR},
+            </if>
+            <if test="remark7 != null">
+                remark7= #{remark7,jdbcType=VARCHAR},
+            </if>
+            <if test="remark8 != null">
+                remark8= #{remark8,jdbcType=VARCHAR},
+            </if>
+            <if test="remark9 != null">
+                remark9= #{remark9,jdbcType=VARCHAR},
+            </if>
+            <if test="remark10 != null">
+                remark10= #{remark10,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                area_id= #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingId != null">
+                thing_id= #{thingId,jdbcType=VARCHAR},
+            </if>
+            <if test="aimGroupId != null">
+                aim_group_id= #{aimGroupId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                template_id= #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateAimId != null">
+                template_aim_id = #{templateAimId,jdbcType=VARCHAR},
+            </if>
+            <if test="activationMode != null">
+                activation_mode= #{activationMode,jdbcType=VARCHAR},
+            </if>
+            <if test="aimPlaceId != null">
+                aim_place_id= #{aimPlaceId,jdbcType=VARCHAR},
+            </if>
+            <if test="templateArId != null">
+                template_ar_id= #{templateArId,jdbcType=VARCHAR},
+            </if>
+            <if test="modifyFlag != null">
+                modify_flag= #{modifyFlag,jdbcType=CHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryArContentByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.ArContent">
+        select
+        <include refid="Base_Column_List"/>
+        from ar_content
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.groupId != null and !&quot;&quot;.equals(record.groupId)">
+                and group_id = #{record.groupId}
+            </if>
+            <if test="record.name != null and !&quot;&quot;.equals(record.name)">
+                and name = #{record.name}
+            </if>
+            <if test="record.type != null and !&quot;&quot;.equals(record.type)">
+                and type = #{record.type}
+            </if>
+            <if test="record.text != null and !&quot;&quot;.equals(record.text)">
+                and text = #{record.text}
+            </if>
+            <if test="record.image != null and !&quot;&quot;.equals(record.image)">
+                and image = #{record.image}
+            </if>
+            <if test="record.url != null and !&quot;&quot;.equals(record.url)">
+                and url = #{record.url}
+            </if>
+            <if test="record.voice != null and !&quot;&quot;.equals(record.voice)">
+                and voice = #{record.voice}
+            </if>
+            <if test="record.movie != null and !&quot;&quot;.equals(record.movie)">
+                and movie = #{record.movie}
+            </if>
+            <if test="record.model != null and !&quot;&quot;.equals(record.model)">
+                and model = #{record.model}
+            </if>
+            <if test="record.cfile != null and !&quot;&quot;.equals(record.cfile)">
+                and cfile = #{record.cfile}
+            </if>
+            <if test="record.resourceSize != null and !&quot;&quot;.equals(record.resourceSize)">
+                and resource_size = #{record.resourceSize}
+            </if>
+            <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and remark1 = #{record.remark1}
+            </if>
+            <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and remark2 = #{record.remark2}
+            </if>
+            <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and remark3 = #{record.remark3}
+            </if>
+            <if test="record.remark4 != null and !&quot;&quot;.equals(record.remark4)">
+                and remark4 = #{record.remark4}
+            </if>
+            <if test="record.remark5 != null and !&quot;&quot;.equals(record.remark5)">
+                and remark5 = #{record.remark5}
+            </if>
+            <if test="record.remark6 != null and !&quot;&quot;.equals(record.remark6)">
+                and remark6 = #{record.remark6}
+            </if>
+            <if test="record.areaId != null and !&quot;&quot;.equals(record.areaId)">
+                and area_id = #{record.areaId}
+            </if>
+            <if test="record.thingId != null and !&quot;&quot;.equals(record.thingId)">
+                and thing_id = #{record.thingId}
+            </if>
+            <if test="record.aimGroupId != null and !&quot;&quot;.equals(record.aimGroupId)">
+                and aim_group_id = #{record.aimGroupId}
+            </if>
+            <if test="record.templateId != null and !&quot;&quot;.equals(record.templateId)">
+                and template_id = #{record.templateId}
+            </if>
+            <if test="record.templateAimId != null and !&quot;&quot;.equals(record.templateAimId)">
+                and template_aim_id = #{record.templateAimId}
+            </if>
+            <if test="record.activationMode != null and !&quot;&quot;.equals(record.activationMode)">
+                and activation_mode = #{record.activationMode}
+            </if>
+            <if test="record.aimPlaceId != null and !&quot;&quot;.equals(record.aimPlaceId)">
+                and aim_place_id = #{record.aimPlaceId}
+            </if>
+            <if test="record.templateArId != null and !&quot;&quot;.equals(record.templateArId)">
+                and template_ar_id = #{record.templateArId}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR group_id LIKE concat('%',#{record.searchKey},'%')
+                    OR name LIKE concat('%',#{record.searchKey},'%')
+                    OR type LIKE concat('%',#{record.searchKey},'%')
+                    OR text LIKE concat('%',#{record.searchKey},'%')
+                    OR image LIKE concat('%',#{record.searchKey},'%')
+                    OR url LIKE concat('%',#{record.searchKey},'%')
+                    OR voice LIKE concat('%',#{record.searchKey},'%')
+                    OR movie LIKE concat('%',#{record.searchKey},'%')
+                    OR model LIKE concat('%',#{record.searchKey},'%')
+                    OR cfile LIKE concat('%',#{record.searchKey},'%')
+                    OR resource_size LIKE concat('%',#{record.searchKey},'%')
+                    OR remark1 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark2 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark3 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark4 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark5 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark6 LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllArContent" parameterType="java.util.Map" resultMap="ArContentChildResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from ar_content
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="groupId != null and !&quot;&quot;.equals(groupId)">
+                and group_id = #{groupId}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="text != null and !&quot;&quot;.equals(text)">
+                and text = #{text}
+            </if>
+            <if test="image != null and !&quot;&quot;.equals(image)">
+                and image = #{image}
+            </if>
+            <if test="url != null and !&quot;&quot;.equals(url)">
+                and url = #{url}
+            </if>
+            <if test="voice != null and !&quot;&quot;.equals(voice)">
+                and voice = #{voice}
+            </if>
+            <if test="movie != null and !&quot;&quot;.equals(movie)">
+                and movie = #{movie}
+            </if>
+            <if test="model != null and !&quot;&quot;.equals(model)">
+                and model = #{model}
+            </if>
+            <if test="cfile != null and !&quot;&quot;.equals(cfile)">
+                and cfile = #{cfile}
+            </if>
+            <if test="resourceSize != null and !&quot;&quot;.equals(resourceSize)">
+                and resource_size = #{resourceSize}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
+                and remark4 = #{remark4}
+            </if>
+            <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
+                and remark5 = #{remark5}
+            </if>
+            <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
+                and remark6 = #{remark6}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="aimGroupId != null and !&quot;&quot;.equals(aimGroupId)">
+                and aim_group_id = #{aimGroupId}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="templateAimId != null and !&quot;&quot;.equals(templateAimId)">
+                and template_aim_id = #{templateAimId}
+            </if>
+            <if test="activationMode != null and !&quot;&quot;.equals(activationMode)">
+                and activation_mode = #{activationMode}
+            </if>
+            <if test="aimPlaceId != null and !&quot;&quot;.equals(aimPlaceId)">
+                and aim_place_id = #{aimPlaceId}
+            </if>
+            <if test="templateArId != null and !&quot;&quot;.equals(templateArId)">
+                and template_ar_id = #{templateArId}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR group_id LIKE concat('%',#{searchKey},'%')
+                    OR name LIKE concat('%',#{searchKey},'%')
+                    OR type LIKE concat('%',#{searchKey},'%')
+                    OR text LIKE concat('%',#{searchKey},'%')
+                    OR image LIKE concat('%',#{searchKey},'%')
+                    OR url LIKE concat('%',#{searchKey},'%')
+                    OR voice LIKE concat('%',#{searchKey},'%')
+                    OR movie LIKE concat('%',#{searchKey},'%')
+                    OR model LIKE concat('%',#{searchKey},'%')
+                    OR cfile LIKE concat('%',#{searchKey},'%')
+                    OR resource_size LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR remark4 LIKE concat('%',#{searchKey},'%')
+                    OR remark5 LIKE concat('%',#{searchKey},'%')
+                    OR remark6 LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryArContent" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ArContent">
+        select
+        <include refid="Base_Column_List"/>
+        from ar_content
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="groupId != null and !&quot;&quot;.equals(groupId)">
+                and group_id = #{groupId}
+            </if>
+            <if test="name != null and !&quot;&quot;.equals(name)">
+                and name = #{name}
+            </if>
+            <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+            <if test="text != null and !&quot;&quot;.equals(text)">
+                and text = #{text}
+            </if>
+            <if test="image != null and !&quot;&quot;.equals(image)">
+                and image = #{image}
+            </if>
+            <if test="url != null and !&quot;&quot;.equals(url)">
+                and url = #{url}
+            </if>
+            <if test="voice != null and !&quot;&quot;.equals(voice)">
+                and voice = #{voice}
+            </if>
+            <if test="movie != null and !&quot;&quot;.equals(movie)">
+                and movie = #{movie}
+            </if>
+            <if test="model != null and !&quot;&quot;.equals(model)">
+                and model = #{model}
+            </if>
+            <if test="cfile != null and !&quot;&quot;.equals(cfile)">
+                and cfile = #{cfile}
+            </if>
+            <if test="resourceSize != null and !&quot;&quot;.equals(resourceSize)">
+                and resource_size = #{resourceSize}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="remark4 != null and !&quot;&quot;.equals(remark4)">
+                and remark4 = #{remark4}
+            </if>
+            <if test="remark5 != null and !&quot;&quot;.equals(remark5)">
+                and remark5 = #{remark5}
+            </if>
+            <if test="remark6 != null and !&quot;&quot;.equals(remark6)">
+                and remark6 = #{remark6}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="thingId != null and !&quot;&quot;.equals(thingId)">
+                and thing_id = #{thingId}
+            </if>
+            <if test="aimGroupId != null and !&quot;&quot;.equals(aimGroupId)">
+                and aim_group_id = #{aimGroupId}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="templateAimId != null and !&quot;&quot;.equals(templateAimId)">
+                and template_aim_id = #{templateAimId}
+            </if>
+            <if test="activationMode != null and !&quot;&quot;.equals(activationMode)">
+                and activation_mode = #{activationMode}
+            </if>
+            <if test="aimPlaceId != null and !&quot;&quot;.equals(aimPlaceId)">
+                and aim_place_id = #{aimPlaceId}
+            </if>
+            <if test="templateArId != null and !&quot;&quot;.equals(templateArId)">
+                and template_ar_id = #{templateArId}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE ar_content SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ArContent">
+        select
+        <include refid="Base_Column_List"/>
+        from ar_content
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+    <resultMap id="ArContentChildResultMap" type="com.izouma.awesomeadmin.model.ArContent" extends="BaseResultMap">
+
+
+        <collection property="arContentChildList" ofType="com.izouma.awesomeadmin.model.ArContentChild"
+                    select="com.izouma.awesomeadmin.dao.ArContentChildMapper.queryAllArContentChild"
+                    column="{arContentId = id}">
+        </collection>
+    </resultMap>
+
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/ArContentTypeMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.ArContentType;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.ArContentTypeMapper")
+public interface ArContentTypeMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(ArContentType record);
+
+    ArContentType selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(ArContentType record);
+
+    List<ArContentType> queryAllArContentType(ArContentType record);
+
+    List<ArContentType> queryArContentTypeByPage(Map<String, Object> parameter);
+
+    int delete(ArContentType record);
+
+    ArContentType queryArContentType(ArContentType record);
+
+    List<ArContentType> query(ArContentType record);
+}
+

+ 388 - 0
src/main/java/com/izouma/awesomeadmin/dao/ArContentTypeMapper.xml

@@ -0,0 +1,388 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.ArContentTypeMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.ArContentType" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="type_name" property="typeName" jdbcType="VARCHAR" />
+                                <result column="remark" property="remark" jdbcType="VARCHAR" />
+                                <result column="power" property="power" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            type_name,
+
+            remark,
+
+            power,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from ar_content_type
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from ar_content_type
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.ArContentType" useGeneratedKeys="true" keyProperty="id">
+        insert into ar_content_type
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="typeName!= null" >
+                type_name,
+            </if>
+                <if test="remark!= null" >
+                remark,
+            </if>
+                <if test="power!= null" >
+                power,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="typeName != null" >
+                #{typeName,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark != null" >
+                #{remark,jdbcType=VARCHAR},
+            </if>
+                    <if test="power != null" >
+                #{power,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ArContentType" >
+        update ar_content_type
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="typeName != null" >
+               type_name= #{typeName,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark != null" >
+               remark= #{remark,jdbcType=VARCHAR},
+            </if>
+                     <if test="power != null" >
+               power= #{power,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryArContentTypeByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ArContentType">
+        select <include refid="Base_Column_List"/> from ar_content_type
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.typeName != null and !&quot;&quot;.equals(record.typeName)">
+                and  type_name = #{record.typeName}
+            </if>
+                     <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and  remark = #{record.remark}
+            </if>
+                     <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and  power = #{record.power}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  type_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark LIKE concat('%',#{record.searchKey},'%')
+                                                                                                                              </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllArContentType" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ArContentType">
+        select <include refid="Base_Column_List"/> from ar_content_type
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="typeName != null and !&quot;&quot;.equals(typeName)">
+                and  type_name = #{typeName}
+            </if>
+                    <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and  remark = #{remark}
+            </if>
+                    <if test="power != null and !&quot;&quot;.equals(power)">
+                and  power = #{power}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  type_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryArContentType" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ArContentType">
+        select <include refid="Base_Column_List"/> from ar_content_type
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="typeName != null and !&quot;&quot;.equals(typeName)">
+                and type_name = #{typeName}
+            </if>
+                     <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+                     <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE ar_content_type SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ArContentType">
+        select <include refid="Base_Column_List"/> from ar_content_type
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 35 - 0
src/main/java/com/izouma/awesomeadmin/dao/AreaInfoMapper.java

@@ -0,0 +1,35 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AreaInfo;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AreaInfoMapper")
+public interface AreaInfoMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AreaInfo record);
+
+    AreaInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AreaInfo record);
+
+    List<AreaInfo> queryAllAreaInfo(AreaInfo record);
+
+    List<AreaInfo> queryAllAreaInfoAllInfo(AreaInfo record);
+
+    List<AreaInfo> queryAreaInfoByPage(Map<String, Object> parameter);
+
+    int delete(AreaInfo record);
+
+    AreaInfo queryAreaInfo(AreaInfo record);
+
+    List<AreaInfo> query(AreaInfo record);
+}
+

+ 942 - 0
src/main/java/com/izouma/awesomeadmin/dao/AreaInfoMapper.xml

@@ -0,0 +1,942 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.AreaInfoMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.AreaInfo">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="power" property="power" jdbcType="VARCHAR"/>
+        <result column="city_id" property="cityId" jdbcType="VARCHAR"/>
+        <result column="landmark_id" property="landmarkId" jdbcType="VARCHAR"/>
+        <result column="area_name" property="areaName" jdbcType="VARCHAR"/>
+        <result column="rank_level" property="rankLevel" jdbcType="VARCHAR"/>
+        <result column="allow_edit" property="allowEdit" jdbcType="VARCHAR"/>
+        <result column="allow_navigate" property="allowNavigate" jdbcType="VARCHAR"/>
+        <result column="public_area" property="publicArea" jdbcType="VARCHAR"/>
+        <result column="remark" property="remark" jdbcType="VARCHAR"/>
+        <result column="icon" property="icon" jdbcType="VARCHAR"/>
+        <result column="keyword" property="keyword" jdbcType="VARCHAR"/>
+        <result column="video" property="video" jdbcType="VARCHAR"/>
+        <result column="text_introduction" property="textIntroduction" jdbcType="VARCHAR"/>
+        <result column="url" property="url" jdbcType="VARCHAR"/>
+        <result column="show_distance" property="showDistance" jdbcType="VARCHAR"/>
+        <result column="template_id" property="templateId" jdbcType="VARCHAR"/>
+        <result column="front_level_id" property="frontLevelId" jdbcType="VARCHAR"/>
+        <result column="block_id" property="blockId" jdbcType="VARCHAR"/>
+        <result column="area_type" property="areaType" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            power,
+
+            city_id,
+
+            landmark_id,
+
+            area_name,
+
+            rank_level,
+
+            allow_edit,
+
+            allow_navigate,
+
+            public_area,
+
+            remark,
+
+            icon,
+
+            keyword,
+
+            video,
+
+            text_introduction,
+
+            url,
+
+            show_distance,
+
+            template_id,
+
+            front_level_id,
+
+            block_id,
+
+            area_type,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from area_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from area_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.AreaInfo" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into area_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="power!= null">
+                power,
+            </if>
+            <if test="cityId!= null">
+                city_id,
+            </if>
+            <if test="landmarkId!= null">
+                landmark_id,
+            </if>
+            <if test="areaName!= null">
+                area_name,
+            </if>
+            <if test="rankLevel!= null">
+                rank_level,
+            </if>
+            <if test="allowEdit!= null">
+                allow_edit,
+            </if>
+            <if test="allowNavigate!= null">
+                allow_navigate,
+            </if>
+            <if test="publicArea!= null">
+                public_area,
+            </if>
+            <if test="remark!= null">
+                remark,
+            </if>
+            <if test="icon!= null">
+                icon,
+            </if>
+            <if test="keyword!= null">
+                keyword,
+            </if>
+            <if test="video!= null">
+                video,
+            </if>
+            <if test="textIntroduction!= null">
+                text_introduction,
+            </if>
+            <if test="url!= null">
+                url,
+            </if>
+            <if test="showDistance!= null">
+                show_distance,
+            </if>
+            <if test="templateId!= null">
+                template_id,
+            </if>
+            <if test="frontLevelId!= null">
+                front_level_id,
+            </if>
+            <if test="blockId!= null">
+                block_id,
+            </if>
+            <if test="areaType!= null">
+                area_type,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="cityId != null">
+                #{cityId,jdbcType=VARCHAR},
+            </if>
+            <if test="landmarkId != null">
+                #{landmarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaName != null">
+                #{areaName,jdbcType=VARCHAR},
+            </if>
+            <if test="rankLevel != null">
+                #{rankLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="allowEdit != null">
+                #{allowEdit,jdbcType=VARCHAR},
+            </if>
+            <if test="allowNavigate != null">
+                #{allowNavigate,jdbcType=VARCHAR},
+            </if>
+            <if test="publicArea != null">
+                #{publicArea,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="keyword != null">
+                #{keyword,jdbcType=VARCHAR},
+            </if>
+            <if test="video != null">
+                #{video,jdbcType=VARCHAR},
+            </if>
+            <if test="textIntroduction != null">
+                #{textIntroduction,jdbcType=VARCHAR},
+            </if>
+            <if test="url != null">
+                #{url,jdbcType=VARCHAR},
+            </if>
+            <if test="showDistance != null">
+                #{showDistance,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="blockId != null">
+                #{blockId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaType != null">
+                #{areaType,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.AreaInfo">
+        update area_info
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                power= #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="cityId != null">
+                city_id= #{cityId,jdbcType=VARCHAR},
+            </if>
+            <if test="landmarkId != null">
+                landmark_id= #{landmarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaName != null">
+                area_name= #{areaName,jdbcType=VARCHAR},
+            </if>
+            <if test="rankLevel != null">
+                rank_level= #{rankLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="allowEdit != null">
+                allow_edit= #{allowEdit,jdbcType=VARCHAR},
+            </if>
+            <if test="allowNavigate != null">
+                allow_navigate= #{allowNavigate,jdbcType=VARCHAR},
+            </if>
+            <if test="publicArea != null">
+                public_area= #{publicArea,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                remark= #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                icon= #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="keyword != null">
+                keyword= #{keyword,jdbcType=VARCHAR},
+            </if>
+            <if test="video != null">
+                video= #{video,jdbcType=VARCHAR},
+            </if>
+            <if test="textIntroduction != null">
+                text_introduction= #{textIntroduction,jdbcType=VARCHAR},
+            </if>
+            <if test="url != null">
+                url= #{url,jdbcType=VARCHAR},
+            </if>
+            <if test="showDistance != null">
+                show_distance= #{showDistance,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                template_id= #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                front_level_id= #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="blockId != null">
+                block_id= #{blockId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaType != null">
+                area_type= #{areaType,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryAreaInfoByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AreaInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from area_info
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and power = #{record.power}
+            </if>
+            <if test="record.cityId != null and !&quot;&quot;.equals(record.cityId)">
+                and city_id = #{record.cityId}
+            </if>
+            <if test="record.landmarkId != null and !&quot;&quot;.equals(record.landmarkId)">
+                and landmark_id = #{record.landmarkId}
+            </if>
+            <if test="record.areaName != null and !&quot;&quot;.equals(record.areaName)">
+                and area_name = #{record.areaName}
+            </if>
+            <if test="record.rankLevel != null and !&quot;&quot;.equals(record.rankLevel)">
+                and rank_level = #{record.rankLevel}
+            </if>
+            <if test="record.allowEdit != null and !&quot;&quot;.equals(record.allowEdit)">
+                and allow_edit = #{record.allowEdit}
+            </if>
+            <if test="record.allowNavigate != null and !&quot;&quot;.equals(record.allowNavigate)">
+                and allow_navigate = #{record.allowNavigate}
+            </if>
+            <if test="record.publicArea != null and !&quot;&quot;.equals(record.publicArea)">
+                and public_area = #{record.publicArea}
+            </if>
+            <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and remark = #{record.remark}
+            </if>
+            <if test="record.icon != null and !&quot;&quot;.equals(record.icon)">
+                and icon = #{record.icon}
+            </if>
+            <if test="record.keyword != null and !&quot;&quot;.equals(record.keyword)">
+                and keyword = #{record.keyword}
+            </if>
+            <if test="record.video != null and !&quot;&quot;.equals(record.video)">
+                and video = #{record.video}
+            </if>
+            <if test="record.textIntroduction != null and !&quot;&quot;.equals(record.textIntroduction)">
+                and text_introduction = #{record.textIntroduction}
+            </if>
+            <if test="record.url != null and !&quot;&quot;.equals(record.url)">
+                and url = #{record.url}
+            </if>
+            <if test="record.showDistance != null and !&quot;&quot;.equals(record.showDistance)">
+                and show_distance = #{record.showDistance}
+            </if>
+            <if test="record.templateId != null and !&quot;&quot;.equals(record.templateId)">
+                and template_id = #{record.templateId}
+            </if>
+            <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
+                and front_level_id = #{record.frontLevelId}
+            </if>
+            <if test="record.blockId != null and !&quot;&quot;.equals(record.blockId)">
+                and block_id = #{record.blockId}
+            </if>
+            <if test="record.areaType != null and !&quot;&quot;.equals(record.areaType)">
+                and area_type = #{record.areaType}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR city_id LIKE concat('%',#{record.searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{record.searchKey},'%')
+                    OR area_name LIKE concat('%',#{record.searchKey},'%')
+                    OR rank_level LIKE concat('%',#{record.searchKey},'%')
+                    OR allow_edit LIKE concat('%',#{record.searchKey},'%')
+                    OR allow_navigate LIKE concat('%',#{record.searchKey},'%')
+                    OR public_area LIKE concat('%',#{record.searchKey},'%')
+                    OR remark LIKE concat('%',#{record.searchKey},'%')
+                    OR icon LIKE concat('%',#{record.searchKey},'%')
+                    OR keyword LIKE concat('%',#{record.searchKey},'%')
+                    OR video LIKE concat('%',#{record.searchKey},'%')
+                    OR text_introduction LIKE concat('%',#{record.searchKey},'%')
+                    OR url LIKE concat('%',#{record.searchKey},'%')
+                    OR show_distance LIKE concat('%',#{record.searchKey},'%')
+                    OR template_id LIKE concat('%',#{record.searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{record.searchKey},'%')
+                    OR block_id LIKE concat('%',#{record.searchKey},'%')
+                    OR area_type LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllAreaInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AreaInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from area_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="areaName != null and !&quot;&quot;.equals(areaName)">
+                and area_name = #{areaName}
+            </if>
+            <if test="rankLevel != null and !&quot;&quot;.equals(rankLevel)">
+                and rank_level = #{rankLevel}
+            </if>
+            <if test="allowEdit != null and !&quot;&quot;.equals(allowEdit)">
+                and allow_edit = #{allowEdit}
+            </if>
+            <if test="allowNavigate != null and !&quot;&quot;.equals(allowNavigate)">
+                and allow_navigate = #{allowNavigate}
+            </if>
+            <if test="publicArea != null and !&quot;&quot;.equals(publicArea)">
+                and public_area = #{publicArea}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="video != null and !&quot;&quot;.equals(video)">
+                and video = #{video}
+            </if>
+            <if test="textIntroduction != null and !&quot;&quot;.equals(textIntroduction)">
+                and text_introduction = #{textIntroduction}
+            </if>
+            <if test="url != null and !&quot;&quot;.equals(url)">
+                and url = #{url}
+            </if>
+            <if test="showDistance != null and !&quot;&quot;.equals(showDistance)">
+                and show_distance = #{showDistance}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="blockId != null and !&quot;&quot;.equals(blockId)">
+                and block_id = #{blockId}
+            </if>
+            <if test="areaType != null and !&quot;&quot;.equals(areaType)">
+                and area_type = #{areaType}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR city_id LIKE concat('%',#{searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{searchKey},'%')
+                    OR area_name LIKE concat('%',#{searchKey},'%')
+                    OR rank_level LIKE concat('%',#{searchKey},'%')
+                    OR allow_edit LIKE concat('%',#{searchKey},'%')
+                    OR allow_navigate LIKE concat('%',#{searchKey},'%')
+                    OR public_area LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR keyword LIKE concat('%',#{searchKey},'%')
+                    OR video LIKE concat('%',#{searchKey},'%')
+                    OR text_introduction LIKE concat('%',#{searchKey},'%')
+                    OR url LIKE concat('%',#{searchKey},'%')
+                    OR show_distance LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR block_id LIKE concat('%',#{searchKey},'%')
+                    OR area_type LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAllAreaInfoAllInfo" parameterType="java.util.Map" resultMap="AllInfoResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from area_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="areaName != null and !&quot;&quot;.equals(areaName)">
+                and area_name = #{areaName}
+            </if>
+            <if test="rankLevel != null and !&quot;&quot;.equals(rankLevel)">
+                and rank_level = #{rankLevel}
+            </if>
+            <if test="allowEdit != null and !&quot;&quot;.equals(allowEdit)">
+                and allow_edit = #{allowEdit}
+            </if>
+            <if test="allowNavigate != null and !&quot;&quot;.equals(allowNavigate)">
+                and allow_navigate = #{allowNavigate}
+            </if>
+            <if test="publicArea != null and !&quot;&quot;.equals(publicArea)">
+                and public_area = #{publicArea}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="video != null and !&quot;&quot;.equals(video)">
+                and video = #{video}
+            </if>
+            <if test="textIntroduction != null and !&quot;&quot;.equals(textIntroduction)">
+                and text_introduction = #{textIntroduction}
+            </if>
+            <if test="url != null and !&quot;&quot;.equals(url)">
+                and url = #{url}
+            </if>
+            <if test="showDistance != null and !&quot;&quot;.equals(showDistance)">
+                and show_distance = #{showDistance}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="blockId != null and !&quot;&quot;.equals(blockId)">
+                and block_id = #{blockId}
+            </if>
+            <if test="areaType != null and !&quot;&quot;.equals(areaType)">
+                and area_type = #{areaType}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR city_id LIKE concat('%',#{searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{searchKey},'%')
+                    OR area_name LIKE concat('%',#{searchKey},'%')
+                    OR rank_level LIKE concat('%',#{searchKey},'%')
+                    OR allow_edit LIKE concat('%',#{searchKey},'%')
+                    OR allow_navigate LIKE concat('%',#{searchKey},'%')
+                    OR public_area LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR keyword LIKE concat('%',#{searchKey},'%')
+                    OR video LIKE concat('%',#{searchKey},'%')
+                    OR text_introduction LIKE concat('%',#{searchKey},'%')
+                    OR url LIKE concat('%',#{searchKey},'%')
+                    OR show_distance LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR block_id LIKE concat('%',#{searchKey},'%')
+                    OR area_type LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAreaInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AreaInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from area_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="areaName != null and !&quot;&quot;.equals(areaName)">
+                and area_name = #{areaName}
+            </if>
+            <if test="rankLevel != null and !&quot;&quot;.equals(rankLevel)">
+                and rank_level = #{rankLevel}
+            </if>
+            <if test="allowEdit != null and !&quot;&quot;.equals(allowEdit)">
+                and allow_edit = #{allowEdit}
+            </if>
+            <if test="allowNavigate != null and !&quot;&quot;.equals(allowNavigate)">
+                and allow_navigate = #{allowNavigate}
+            </if>
+            <if test="publicArea != null and !&quot;&quot;.equals(publicArea)">
+                and public_area = #{publicArea}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="video != null and !&quot;&quot;.equals(video)">
+                and video = #{video}
+            </if>
+            <if test="textIntroduction != null and !&quot;&quot;.equals(textIntroduction)">
+                and text_introduction = #{textIntroduction}
+            </if>
+            <if test="url != null and !&quot;&quot;.equals(url)">
+                and url = #{url}
+            </if>
+            <if test="showDistance != null and !&quot;&quot;.equals(showDistance)">
+                and show_distance = #{showDistance}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="blockId != null and !&quot;&quot;.equals(blockId)">
+                and block_id = #{blockId}
+            </if>
+            <if test="areaType != null and !&quot;&quot;.equals(areaType)">
+                and area_type = #{areaType}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE area_info SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.AreaInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from area_info
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+    <resultMap id="AllInfoResultMap" type="com.izouma.awesomeadmin.model.AreaInfo" extends="BaseResultMap">
+
+
+        <association property="aimGroupInfo" javaType="com.izouma.awesomeadmin.model.AimGroupInfo"
+                     select="com.izouma.awesomeadmin.dao.AimGroupInfoMapper.queryAimGroupInfoAllInfo"
+                     column="{id = template_id}">
+        </association>
+        <collection property="areaShowPointList" ofType="com.izouma.awesomeadmin.model.AreaShowPoint"
+                    select="com.izouma.awesomeadmin.dao.AreaShowPointMapper.queryAllAreaShowPoint"
+                    column="{areaId = id}">
+        </collection>
+        <collection property="thingInfoList" ofType="com.izouma.awesomeadmin.model.ThingInfo"
+                    select="com.izouma.awesomeadmin.dao.ThingInfoMapper.queryAllThingInfoAllInfo"
+                    column="{areaId = id}">
+        </collection>
+
+    </resultMap>
+
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/AreaShowPointMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.AreaShowPoint;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.AreaShowPointMapper")
+public interface AreaShowPointMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(AreaShowPoint record);
+
+    AreaShowPoint selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(AreaShowPoint record);
+
+    List<AreaShowPoint> queryAllAreaShowPoint(AreaShowPoint record);
+
+    List<AreaShowPoint> queryAreaShowPointByPage(Map<String, Object> parameter);
+
+    int delete(AreaShowPoint record);
+
+    AreaShowPoint queryAreaShowPoint(AreaShowPoint record);
+
+    List<AreaShowPoint> query(AreaShowPoint record);
+}
+

Datei-Diff unterdrückt, da er zu groß ist
+ 544 - 0
src/main/java/com/izouma/awesomeadmin/dao/AreaShowPointMapper.xml


+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/CityInfoMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.CityInfo;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.CityInfoMapper")
+public interface CityInfoMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(CityInfo record);
+
+    CityInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(CityInfo record);
+
+    List<CityInfo> queryAllCityInfo(CityInfo record);
+
+    List<CityInfo> queryCityInfoByPage(Map<String, Object> parameter);
+
+    int delete(CityInfo record);
+
+    CityInfo queryCityInfo(CityInfo record);
+
+    List<CityInfo> query(CityInfo record);
+}
+

+ 489 - 0
src/main/java/com/izouma/awesomeadmin/dao/CityInfoMapper.xml

@@ -0,0 +1,489 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.CityInfoMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.CityInfo">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="code" property="code" jdbcType="VARCHAR"/>
+        <result column="city_name" property="cityName" jdbcType="VARCHAR"/>
+        <result column="remark" property="remark" jdbcType="VARCHAR"/>
+        <result column="rank" property="rank" jdbcType="INTEGER"/>
+        <result column="hot_flag" property="hotFlag" jdbcType="CHAR"/>
+        <result column="latest_time" property="latestTime" jdbcType="TIMESTAMP"/>
+        <result column="pin_yin" property="pinYin" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            code,
+
+            city_name,
+
+            remark,
+
+            rank,
+
+            hot_flag,
+
+            latest_time,
+
+            pin_yin,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from city_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from city_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.CityInfo" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into city_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="code!= null">
+                code,
+            </if>
+            <if test="cityName!= null">
+                city_name,
+            </if>
+            <if test="remark!= null">
+                remark,
+            </if>
+            <if test="rank!= null">
+                rank,
+            </if>
+            <if test="hotFlag!= null">
+                hot_flag,
+            </if>
+            <if test="latestTime!= null">
+                latest_time,
+            </if>
+            <if test="pinYin!= null">
+                pin_yin,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="code != null">
+                #{code,jdbcType=VARCHAR},
+            </if>
+            <if test="cityName != null">
+                #{cityName,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="rank != null">
+                #{rank,jdbcType=INTEGER},
+            </if>
+            <if test="hotFlag != null">
+                #{hotFlag,jdbcType=CHAR},
+            </if>
+            <if test="latestTime != null">
+                #{latestTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="pinYin != null">
+                #{pinYin,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.CityInfo">
+        update city_info
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="code != null">
+                code= #{code,jdbcType=VARCHAR},
+            </if>
+            <if test="cityName != null">
+                city_name= #{cityName,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                remark= #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="rank != null">
+                rank= #{rank,jdbcType=INTEGER},
+            </if>
+            <if test="hotFlag != null">
+                hot_flag= #{hotFlag,jdbcType=CHAR},
+            </if>
+            <if test="latestTime != null">
+                latest_time= #{latestTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="pinYin != null">
+                pin_yin= #{pinYin,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryCityInfoByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.CityInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from city_info
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.code != null and !&quot;&quot;.equals(record.code)">
+                and code = #{record.code}
+            </if>
+            <if test="record.cityName != null and !&quot;&quot;.equals(record.cityName)">
+                and city_name = #{record.cityName}
+            </if>
+            <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and remark = #{record.remark}
+            </if>
+            <if test="record.rank != null and !&quot;&quot;.equals(record.rank)">
+                and rank = #{record.rank}
+            </if>
+            <if test="record.hotFlag != null and !&quot;&quot;.equals(record.hotFlag)">
+                and hot_flag = #{record.hotFlag}
+            </if>
+            <if test="record.latestTime != null and !&quot;&quot;.equals(record.latestTime)">
+                and latest_time = #{record.latestTime}
+            </if>
+            <if test="record.pinYin != null and !&quot;&quot;.equals(record.pinYin)">
+                and pin_yin = #{record.pinYin}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR code LIKE concat('%',#{record.searchKey},'%')
+                    OR city_name LIKE concat('%',#{record.searchKey},'%')
+                    OR remark LIKE concat('%',#{record.searchKey},'%')
+                    OR rank LIKE concat('%',#{record.searchKey},'%')
+                    OR hot_flag LIKE concat('%',#{record.searchKey},'%')
+                    OR pin_yin LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+       rank desc, id desc
+    </select>
+    <select id="queryAllCityInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.CityInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from city_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="code != null and !&quot;&quot;.equals(code)">
+                and code = #{code}
+            </if>
+            <if test="cityName != null and !&quot;&quot;.equals(cityName)">
+                and city_name = #{cityName}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="rank != null and !&quot;&quot;.equals(rank)">
+                and rank = #{rank}
+            </if>
+            <if test="hotFlag != null and !&quot;&quot;.equals(hotFlag)">
+                and hot_flag = #{hotFlag}
+            </if>
+            <if test="latestTime != null and !&quot;&quot;.equals(latestTime)">
+                and latest_time = #{latestTime}
+            </if>
+            <if test="pinYin != null and !&quot;&quot;.equals(pinYin)">
+                and pin_yin = #{pinYin}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR code LIKE concat('%',#{searchKey},'%')
+                    OR city_name LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                    OR rank LIKE concat('%',#{searchKey},'%')
+                    OR hot_flag LIKE concat('%',#{searchKey},'%')
+                    OR pin_yin LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        rank desc,id desc
+    </select>
+    <select id="queryCityInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.CityInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from city_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="code != null and !&quot;&quot;.equals(code)">
+                and code = #{code}
+            </if>
+            <if test="cityName != null and !&quot;&quot;.equals(cityName)">
+                and city_name = #{cityName}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="rank != null and !&quot;&quot;.equals(rank)">
+                and rank = #{rank}
+            </if>
+            <if test="hotFlag != null and !&quot;&quot;.equals(hotFlag)">
+                and hot_flag = #{hotFlag}
+            </if>
+            <if test="latestTime != null and !&quot;&quot;.equals(latestTime)">
+                and latest_time = #{latestTime}
+            </if>
+            <if test="pinYin != null and !&quot;&quot;.equals(pinYin)">
+                and pin_yin = #{pinYin}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE city_info SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.CityInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from city_info
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 27 - 0
src/main/java/com/izouma/awesomeadmin/dao/CommonQueryMapper.java

@@ -0,0 +1,27 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.datasource.DataSource;
+import com.izouma.awesomeadmin.model.CommonQuery;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+@DataSource("dataSource")
+@Repository("com.izouma.awesomeadmin.dao.CommonQueryMapper")
+public interface CommonQueryMapper {
+
+
+    List<Map> getTableListByPage(Map<String, Object> parameter);
+
+    List<Map> getTableListAll(CommonQuery record);
+
+    Map selectByPrimaryKey(CommonQuery record);
+
+
+    int insertSelective(Map<String, Object> parameter);
+
+    int updateByPrimaryKeySelective(Map<String, Object> parameter);
+
+    int delete(CommonQuery record);
+}

+ 189 - 0
src/main/java/com/izouma/awesomeadmin/dao/CommonQueryMapper.xml

@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.izouma.awesomeadmin.dao.CommonQueryMapper">
+
+
+    <select id="getTableListByPage" resultType="java.util.Map">
+
+        SELECT * FROM ${record.tableName}
+        <where>
+            and (del_flag = 'N' or del_flag = '0')
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    <foreach item="item" index="index" collection="record.searchColumn.split('_,')">
+                        OR ${item} LIKE concat('%',#{record.searchKey},'%')
+                    </foreach>
+                </trim>
+            </if>
+
+
+        </where>
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+            order by
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+
+        </if>
+
+    </select>
+
+    <select id="getTableListAll" resultType="java.util.Map">
+
+        SELECT * FROM ${tableName}
+        <where>
+            and (del_flag = 'N' or del_flag = '0')
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    <foreach item="item" index="index" collection="searchColumn.split('_,')">
+                        OR ${item} LIKE concat('%',#{searchKey},'%')
+                    </foreach>
+                </trim>
+            </if>
+
+        </where>
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+            order by
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+
+        </if>
+
+    </select>
+
+
+    <select id="selectByPrimaryKey" resultType="java.util.Map" parameterType="java.util.Map">
+        select
+        *
+        from ${tableName}
+        where id = #{primaryKey,jdbcType=INTEGER}
+    </select>
+
+    <insert id="insertSelective" parameterType="java.util.Map" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into ${tableName}
+
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+
+            <foreach item="item" index="index" collection="formData.keys">
+                <if test="formData[item]!= null">
+                    ${item},
+                </if>
+            </foreach>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+
+            <foreach item="item" index="index" collection="formData.keys">
+                <if test="formData[item]!= null">
+                    #{formData[${item}]},
+                </if>
+            </foreach>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="java.util.Map">
+        update ${tableName}
+        <set>
+
+            <foreach item="item" index="index" collection="formData.keys">
+                <if test="formData[item]!= null">
+                    ${item} = #{formData[${item}]},
+                </if>
+            </foreach>
+
+        </set>
+        where id = #{primaryKey,jdbcType=INTEGER}
+    </update>
+
+    <update id="delete">
+        UPDATE ${tableName} SET del_flag = 'Y'
+        <where>
+            AND id = #{primaryKey}
+        </where>
+    </update>
+</mapper>

+ 27 - 0
src/main/java/com/izouma/awesomeadmin/dao/CommonQuerySqlServerMapper.java

@@ -0,0 +1,27 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.datasource.DataSource;
+import com.izouma.awesomeadmin.model.CommonQuery;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+@DataSource("dataSource")
+@Repository("com.izouma.awesomeadmin.dao.CommonQuerySqlServerMapper")
+public interface CommonQuerySqlServerMapper {
+
+    List<Map> getTableListByPage(Map<String, Object> parameter);
+
+    List<Map> getTableListAll(CommonQuery record);
+
+    Map selectByPrimaryKey(CommonQuery record);
+
+
+    int insertSelective(Map<String, Object> parameter);
+
+    int updateByPrimaryKeySelective(Map<String, Object> parameter);
+
+
+    int delete(CommonQuery record);
+}

+ 182 - 0
src/main/java/com/izouma/awesomeadmin/dao/CommonQuerySqlServerMapper.xml

@@ -0,0 +1,182 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.izouma.awesomeadmin.dao.CommonQuerySqlServerMapper">
+
+
+    <select id="getTableListByPage" resultType="java.util.Map">
+
+        SELECT * FROM ${record.tableName}
+        <where>
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    <foreach item="item" index="index" collection="record.searchColumn.split('_,')">
+                        OR ${item} LIKE concat('%',#{record.searchKey},'%')
+                    </foreach>
+                </trim>
+            </if>
+
+        </where>
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+            order by
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+
+        </if>
+
+    </select>
+
+    <select id="getTableListAll" resultType="java.util.Map">
+
+        SELECT * FROM ${tableName}
+        <where>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    <foreach item="item" index="index" collection="searchColumn.split('_,')">
+                        OR ${item} LIKE concat('%',#{searchKey},'%')
+                    </foreach>
+                </trim>
+            </if>
+
+        </where>
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+            order by
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+
+        </if>
+
+    </select>
+
+    <select id="selectByPrimaryKey" resultType="java.util.Map" parameterType="java.util.Map">
+        select
+        *
+        from ${tableName}
+        where id = #{primaryKey,jdbcType=INTEGER}
+    </select>
+
+    <insert id="insertSelective" parameterType="java.util.Map" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into ${tableName}
+
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+
+            <foreach item="item" index="index" collection="formData.keys">
+                <if test="formData[item]!= null">
+                    ${item},
+                </if>
+            </foreach>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+
+            <foreach item="item" index="index" collection="formData.keys">
+                <if test="formData[item]!= null">
+                    #{formData[${item}]},
+                </if>
+            </foreach>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="java.util.Map">
+        update ${tableName}
+        <set>
+
+            <foreach item="item" index="index" collection="formData.keys">
+                <if test="formData[item]!= null">
+                    ${item} = #{formData[${item}]},
+                </if>
+            </foreach>
+
+        </set>
+        where id = #{primaryKey,jdbcType=INTEGER}
+    </update>
+
+    <delete id="delete">
+        delete from ${tableName}
+        where id = #{primaryKey,jdbcType=INTEGER}
+    </delete>
+</mapper>

+ 36 - 0
src/main/java/com/izouma/awesomeadmin/dao/DataSourceInfoMapper.java

@@ -0,0 +1,36 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.model.DataSourceInfo;
+import org.springframework.stereotype.Component;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+
+/**
+ * Dao接口
+ */
+@Component
+@Repository("com.zoumaframe.dao.DataSourceInfoMapper")
+public interface DataSourceInfoMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(DataSourceInfo record);
+
+    DataSourceInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(DataSourceInfo record);
+
+    List<DataSourceInfo> queryAllDataSourceInfo(DataSourceInfo record);
+
+    List<DataSourceInfo> queryDataSourceInfoByPage(Map<String, Object> parameter);
+
+    int delete(String id);
+
+    DataSourceInfo queryDataSourceInfo(DataSourceInfo record);
+
+    List<DataSourceInfo> query(DataSourceInfo record);
+}
+

+ 327 - 0
src/main/java/com/izouma/awesomeadmin/dao/DataSourceInfoMapper.xml

@@ -0,0 +1,327 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.DataSourceInfoMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.DataSourceInfo" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="code" property="code" jdbcType="VARCHAR" />
+                                <result column="database_type" property="databaseType" jdbcType="VARCHAR" />
+                                <result column="url" property="url" jdbcType="VARCHAR" />
+                                <result column="username" property="username" jdbcType="VARCHAR" />
+                                <result column="password" property="password" jdbcType="VARCHAR" />
+                                <result column="database_name" property="databaseName" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            code,
+
+            database_type,
+
+            url,
+
+            username,
+
+            password,
+
+            database_name,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from sys_data_source_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from sys_data_source_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.DataSourceInfo" useGeneratedKeys="true" keyProperty="id">
+        insert into sys_data_source_info
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="code!= null" >
+                code,
+            </if>
+                <if test="databaseType!= null" >
+                database_type,
+            </if>
+                <if test="url!= null" >
+                url,
+            </if>
+                <if test="username!= null" >
+                username,
+            </if>
+                <if test="password!= null" >
+                password,
+            </if>
+                <if test="databaseName!= null" >
+                database_name,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="code != null" >
+                #{code,jdbcType=VARCHAR},
+            </if>
+                    <if test="databaseType != null" >
+                #{databaseType,jdbcType=VARCHAR},
+            </if>
+                    <if test="url != null" >
+                #{url,jdbcType=VARCHAR},
+            </if>
+                    <if test="username != null" >
+                #{username,jdbcType=VARCHAR},
+            </if>
+                    <if test="password != null" >
+                #{password,jdbcType=VARCHAR},
+            </if>
+                    <if test="databaseName != null" >
+                #{databaseName,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.DataSourceInfo" >
+        update sys_data_source_info
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="code != null" >
+               code= #{code,jdbcType=VARCHAR},
+            </if>
+                     <if test="databaseType != null" >
+               database_type= #{databaseType,jdbcType=VARCHAR},
+            </if>
+                     <if test="url != null" >
+               url= #{url,jdbcType=VARCHAR},
+            </if>
+                     <if test="username != null" >
+               username= #{username,jdbcType=VARCHAR},
+            </if>
+                     <if test="password != null" >
+               password= #{password,jdbcType=VARCHAR},
+            </if>
+                     <if test="databaseName != null" >
+               database_name= #{databaseName,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+    <select id="queryDataSourceInfoByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DataSourceInfo">
+        select <include refid="Base_Column_List"/> from sys_data_source_info
+        <where>
+            and del_flag = 'N'
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.code != null and !&quot;&quot;.equals(record.code)">
+                and  code = #{record.code}
+            </if>
+                     <if test="record.databaseType != null and !&quot;&quot;.equals(record.databaseType)">
+                and  database_type = #{record.databaseType}
+            </if>
+                     <if test="record.url != null and !&quot;&quot;.equals(record.url)">
+                and  url = #{record.url}
+            </if>
+                     <if test="record.username != null and !&quot;&quot;.equals(record.username)">
+                and  username = #{record.username}
+            </if>
+                     <if test="record.password != null and !&quot;&quot;.equals(record.password)">
+                and  password = #{record.password}
+            </if>
+                     <if test="record.databaseName != null and !&quot;&quot;.equals(record.databaseName)">
+                and  database_name = #{record.databaseName}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                OR  code LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  database_type LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  url LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  username LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  password LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  database_name LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by id desc
+    </select>
+    <select id="queryAllDataSourceInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DataSourceInfo">
+        select <include refid="Base_Column_List"/> from sys_data_source_info
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="code != null and !&quot;&quot;.equals(code)">
+                and  code = #{code}
+            </if>
+                    <if test="databaseType != null and !&quot;&quot;.equals(databaseType)">
+                and  database_type = #{databaseType}
+            </if>
+                    <if test="url != null and !&quot;&quot;.equals(url)">
+                and  url = #{url}
+            </if>
+                    <if test="username != null and !&quot;&quot;.equals(username)">
+                and  username = #{username}
+            </if>
+                    <if test="password != null and !&quot;&quot;.equals(password)">
+                and  password = #{password}
+            </if>
+                    <if test="databaseName != null and !&quot;&quot;.equals(databaseName)">
+                and  database_name = #{databaseName}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                OR  code LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  database_type LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  url LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  username LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  password LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  database_name LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by id desc
+    </select>
+    <select id="queryDataSourceInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DataSourceInfo">
+        select <include refid="Base_Column_List"/> from sys_data_source_info
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="code != null and !&quot;&quot;.equals(code)">
+                and code = #{code}
+            </if>
+                     <if test="databaseType != null and !&quot;&quot;.equals(databaseType)">
+                and database_type = #{databaseType}
+            </if>
+                     <if test="url != null and !&quot;&quot;.equals(url)">
+                and url = #{url}
+            </if>
+                     <if test="username != null and !&quot;&quot;.equals(username)">
+                and username = #{username}
+            </if>
+                     <if test="password != null and !&quot;&quot;.equals(password)">
+                and password = #{password}
+            </if>
+                     <if test="databaseName != null and !&quot;&quot;.equals(databaseName)">
+                and database_name = #{databaseName}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE sys_data_source_info SET del_flag = 'Y'
+        <where>
+            AND id = #{id}
+        </where>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DataSourceInfo">
+        select <include refid="Base_Column_List"/> from sys_data_source_info
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                    </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 51 - 0
src/main/java/com/izouma/awesomeadmin/dao/DepartInfoMapper.java

@@ -0,0 +1,51 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import com.izouma.awesomeadmin.model.UserInfo;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import com.izouma.awesomeadmin.model.DepartInfo;
+
+/**
+ * depart_info Dao接口
+ * Thu Apr 26 10:56:37 CST 2018  Suo Chen Cheng
+ */
+@Repository("com.izouma.awesomeadmin.dao.DepartInfoMapper")
+public interface DepartInfoMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(DepartInfo record);
+
+    DepartInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(DepartInfo record);
+
+    List<DepartInfo> queryAllDepartInfo(DepartInfo record);
+
+    List<DepartInfo> queryDepartInfosByPage(Map<String, Object> parameter);
+
+    int delete(String id);
+
+    DepartInfo queryDepartInfo(DepartInfo record);
+
+    List<DepartInfo> findPower(DepartInfo record);
+
+    List<DepartInfo> getParentList(Integer id);
+
+    List<DepartInfo> selectByPrimaryKeys(String ids);
+
+    List<DepartInfo> getUserDeparts(@Param("userId") Integer userId);
+
+    int setUserDeparts(@Param("userId") Integer userId, @Param("departs") List<String> departs);
+
+    int clearUserDeparts(@Param("userId") Integer userId);
+
+    String getUserDepartId(Integer id);
+
+    List<UserInfo> getDepartUsers(Integer departId);
+}
+

+ 341 - 0
src/main/java/com/izouma/awesomeadmin/dao/DepartInfoMapper.xml

@@ -0,0 +1,341 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.DepartInfoMapper" >
+	<resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.DepartInfo" >
+		<id column="id" property="id" jdbcType="INTEGER" />
+		<result column="depart_name" property="departName" jdbcType="VARCHAR" />
+		<result column="parent_id" property="parentId" jdbcType="INTEGER" />
+		<result column="all_parent_id" property="allParentId" jdbcType="VARCHAR" />
+		<result column="description" property="description" jdbcType="VARCHAR" />
+		<result column="depart_code" property="departCode" jdbcType="VARCHAR" />
+		<result column="org_code" property="orgCode" jdbcType="VARCHAR" />
+		<result column="type" property="type" jdbcType="INTEGER" />
+		<result column="remark" property="remark" jdbcType="VARCHAR" />
+		<result column="sort" property="sort" jdbcType="INTEGER" />
+		<result column="del_flag" property="delFlag" jdbcType="CHAR" />
+		<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+		<result column="permission" property="permission" jdbcType="VARCHAR" />
+	</resultMap>
+	<sql id="Base_Column_List" >
+		 id, depart_name, parent_id, all_parent_id, description, depart_code, org_code, type, remark, sort, del_flag, create_time, permission
+	</sql>
+	<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+		select
+		<include refid="Base_Column_List" />
+		from sys_depart
+		where id = #{id,jdbcType=INTEGER}
+	</select>
+	<select id="selectByPrimaryKeys" resultMap="BaseResultMap" parameterType="java.lang.String" >
+		select
+		<include refid="Base_Column_List" />
+		from sys_depart
+		where FIND_IN_SET(id, #{ids,jdbcType=INTEGER}) and del_flag = 'N'
+	</select>
+	<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+		delete from sys_depart
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+	<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.DepartInfo" useGeneratedKeys="true" keyProperty="id">
+		insert into sys_depart
+		<trim prefix="(" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				id,	
+			</if>
+			<if test="departName != null" >
+				depart_name,	
+			</if>
+			<if test="parentId != null" >
+				parent_id,	
+			</if>
+			<if test="allParentId != null" >
+				all_parent_id,	
+			</if>
+			<if test="description != null" >
+				description,	
+			</if>
+			<if test="departCode != null" >
+				depart_code,	
+			</if>
+			<if test="orgCode != null" >
+				org_code,	
+			</if>
+			<if test="type != null" >
+				type,	
+			</if>
+			<if test="remark != null" >
+				remark,	
+			</if>
+			<if test="sort != null" >
+				sort,
+			</if>
+			<if test="delFlag != null" >
+				del_flag,	
+			</if>
+			<if test="createTime != null" >
+				create_time,	
+			</if>
+			<if test="permission != null" >
+				permission,	
+			</if>
+		</trim>
+		<trim prefix="values (" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				#{id,jdbcType=INTEGER},	
+			</if>
+			<if test="departName != null" >
+				#{departName,jdbcType=VARCHAR},	
+			</if>
+			<if test="parentId != null" >
+				#{parentId,jdbcType=INTEGER},	
+			</if>
+			<if test="allParentId != null" >
+				#{allParentId,jdbcType=VARCHAR},	
+			</if>
+			<if test="description != null" >
+				#{description,jdbcType=VARCHAR},	
+			</if>
+			<if test="departCode != null" >
+				#{departCode,jdbcType=VARCHAR},	
+			</if>
+			<if test="orgCode != null" >
+				#{orgCode,jdbcType=VARCHAR},	
+			</if>
+			<if test="type != null" >
+				#{type,jdbcType=INTEGER},	
+			</if>
+			<if test="remark != null" >
+				#{remark,jdbcType=VARCHAR},	
+			</if>
+			<if test="sort != null" >
+				#{sort,jdbcType=INTEGER},
+			</if>
+			<if test="delFlag != null" >
+				#{delFlag,jdbcType=CHAR},	
+			</if>
+			<if test="createTime != null" >
+				#{createTime,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="permission != null" >
+				#{permission,jdbcType=VARCHAR},	
+			</if>
+		</trim>
+	</insert>
+	<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.DepartInfo" >
+		UPDATE sys_depart
+		<set >
+			<if test="departName != null" >
+				depart_name = #{departName,jdbcType=VARCHAR},	
+			</if>
+			<if test="parentId != null" >
+				parent_id = #{parentId,jdbcType=INTEGER},	
+			</if>
+			<if test="allParentId != null" >
+				all_parent_id = #{allParentId,jdbcType=VARCHAR},	
+			</if>
+			<if test="description != null" >
+				description = #{description,jdbcType=VARCHAR},	
+			</if>
+			<if test="departCode != null" >
+				depart_code = #{departCode,jdbcType=VARCHAR},	
+			</if>
+			<if test="orgCode != null" >
+				org_code = #{orgCode,jdbcType=VARCHAR},	
+			</if>
+			<if test="type != null" >
+				type = #{type,jdbcType=INTEGER},	
+			</if>
+			<if test="remark != null" >
+				remark = #{remark,jdbcType=VARCHAR},	
+			</if>
+			<if test="sort != null" >
+				sort = #{sort,jdbcType=INTEGER},
+			</if>
+			<if test="delFlag != null" >
+				del_flag = #{delFlag,jdbcType=CHAR},	
+			</if>
+			<if test="createTime != null" >
+				create_time = #{createTime,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="permission != null" >
+				permission = #{permission,jdbcType=VARCHAR},	
+			</if>
+		</set>
+		where id = #{id,jdbcType=INTEGER}
+	</update>
+	<select id="queryDepartInfosByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DepartInfo">
+		select <include refid="Base_Column_List"/> from sys_depart
+		<where>
+			and del_flag = 'N'
+			<if test="record.id != null and !&quot;&quot;.equals(record.id)">
+				and id = #{record.id}	
+			</if>
+			<if test="record.departName != null and !&quot;&quot;.equals(record.departName)">
+				and depart_name = #{record.departName}	
+			</if>
+			<if test="record.parentId != null and !&quot;&quot;.equals(record.parentId)">
+				and parent_id = #{record.parentId}	
+			</if>
+			<if test="record.allParentId != null and !&quot;&quot;.equals(record.allParentId)">
+				and all_parent_id = #{record.allParentId}	
+			</if>
+			<if test="record.description != null and !&quot;&quot;.equals(record.description)">
+				and description = #{record.description}	
+			</if>
+			<if test="record.departCode != null and !&quot;&quot;.equals(record.departCode)">
+				and depart_code = #{record.departCode}	
+			</if>
+			<if test="record.orgCode != null and !&quot;&quot;.equals(record.orgCode)">
+				and org_code = #{record.orgCode}	
+			</if>
+			<if test="record.type != null and !&quot;&quot;.equals(record.type)">
+				and type = #{record.type}	
+			</if>
+			<if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+				and remark = #{record.remark}	
+			</if>
+			<if test="record.sort != null and !&quot;&quot;.equals(record.sort)">
+				and sort = #{record.sort}
+			</if>
+			<if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+				and del_flag = #{record.delFlag}	
+			</if>
+			<if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+				and create_time = #{record.createTime}	
+			</if>
+			<if test="record.permission != null and !&quot;&quot;.equals(record.permission)">
+				and permission = #{record.permission}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryAllDepartInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DepartInfo">
+		select <include refid="Base_Column_List"/> from sys_depart
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="departName != null and !&quot;&quot;.equals(departName)">
+				and depart_name = #{departName}	
+			</if>
+			<if test="parentId != null and !&quot;&quot;.equals(parentId)">
+				and parent_id = #{parentId}	
+			</if>
+			<if test="allParentId != null and !&quot;&quot;.equals(allParentId)">
+				and all_parent_id = #{allParentId}	
+			</if>
+			<if test="description != null and !&quot;&quot;.equals(description)">
+				and description = #{description}	
+			</if>
+			<if test="departCode != null and !&quot;&quot;.equals(departCode)">
+				and depart_code = #{departCode}	
+			</if>
+			<if test="orgCode != null and !&quot;&quot;.equals(orgCode)">
+				and org_code = #{orgCode}	
+			</if>
+			<if test="type != null and !&quot;&quot;.equals(type)">
+				and type = #{type}	
+			</if>
+			<if test="remark != null and !&quot;&quot;.equals(remark)">
+				and remark = #{remark}	
+			</if>
+			<if test="sort != null and !&quot;&quot;.equals(sort)">
+				and sort = #{sort}
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="createTime != null and !&quot;&quot;.equals(createTime)">
+				and create_time = #{createTime}	
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryDepartInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DepartInfo">
+		select <include refid="Base_Column_List"/> from sys_depart
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="departName != null and !&quot;&quot;.equals(departName)">
+				and depart_name = #{departName}	
+			</if>
+			<if test="parentId != null and !&quot;&quot;.equals(parentId)">
+				and parent_id = #{parentId}	
+			</if>
+			<if test="allParentId != null and !&quot;&quot;.equals(allParentId)">
+				and all_parent_id = #{allParentId}	
+			</if>
+			<if test="description != null and !&quot;&quot;.equals(description)">
+				and description = #{description}	
+			</if>
+			<if test="departCode != null and !&quot;&quot;.equals(departCode)">
+				and depart_code = #{departCode}	
+			</if>
+			<if test="orgCode != null and !&quot;&quot;.equals(orgCode)">
+				and org_code = #{orgCode}	
+			</if>
+			<if test="type != null and !&quot;&quot;.equals(type)">
+				and type = #{type}	
+			</if>
+			<if test="remark != null and !&quot;&quot;.equals(remark)">
+				and remark = #{remark}	
+			</if>
+			<if test="sort != null and !&quot;&quot;.equals(sort)">
+				and sort = #{sort}
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="createTime != null and !&quot;&quot;.equals(createTime)">
+				and create_time = #{createTime}	
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}	
+			</if>
+		</where>
+		LIMIT 1
+	</select>
+    <select id="findPower" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.DepartInfo">
+		select * from sys_depart where all_parent_id  LIKE '${allParentId}%'  and id=  #{parentId}
+	</select>
+    <update id="delete">
+		UPDATE sys_depart SET del_flag = 'Y'
+		<where>
+			AND id = #{id}
+		</where>
+	</update>
+
+	<select id="getParentList" resultType="departInfo" parameterType="integer">
+	    SELECT * from sys_depart WHERE FIND_IN_SET(id,(SELECT all_parent_id from sys_depart WHERE id  = #{id})) AND del_flag = 'N'
+	</select>
+
+	<select id="getUserDeparts" resultType="com.izouma.awesomeadmin.model.DepartInfo">
+		select
+		<include refid="Base_Column_List" />
+		from sys_depart
+		where id in (select depart_id from sys_user_depart where user_id = #{userId})
+		and del_flag = 'N'
+	</select>
+    <insert id="setUserDeparts">
+		insert into sys_user_depart (user_id, depart_id)
+		values
+		<foreach collection="departs" item="departId" separator=",">
+			(#{userId}, #{departId})
+		</foreach>
+	</insert>
+	<delete id="clearUserDeparts">
+		delete from sys_user_depart where user_id = #{userId}
+	</delete>
+	<select id="getUserDepartId" resultType="java.lang.String">
+		SELECT group_concat(depart_id) FROM sys_user_depart WHERE user_id = #{id}
+	</select>
+	<select id="getDepartUsers" resultType="com.izouma.awesomeadmin.model.UserInfo">
+		select * from sys_user where id in (select user_id from sys_user_depart where depart_id = #{departId}) and del_flag = 'N'
+	</select>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/GenCodeMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import org.springframework.stereotype.Repository;
+
+import com.izouma.awesomeadmin.model.GenCode;
+
+/**
+ * gen_code_model Dao接口
+ * Fri May 04 15:57:06 CST 2018  Suo Chen Cheng
+ */ 
+@Repository("com.izouma.awesomeadmin.dao.GenCodeModelMapper")
+public interface GenCodeMapper {
+
+	int deleteByPrimaryKey(Integer id);
+
+	int insertSelective(GenCode record);
+
+	GenCode selectByPrimaryKey(Integer id);
+
+	int updateByPrimaryKeySelective(GenCode record);
+
+	List <GenCode> queryAllGenCode(GenCode record);
+
+	List <GenCode> queryGenCodeByPage(Map <String, Object> parameter);
+
+	int delete(String id);
+
+	GenCode queryGenCode(GenCode record);
+}
+

+ 265 - 0
src/main/java/com/izouma/awesomeadmin/dao/GenCodeMapper.xml

@@ -0,0 +1,265 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.GenCodeMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.GenCode">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="tableName" property="tableName" jdbcType="VARCHAR"/>
+        <result column="className" property="className" jdbcType="VARCHAR"/>
+        <result column="remark" property="remark" jdbcType="VARCHAR"/>
+        <result column="genTable" property="genTable" jdbcType="BIT"/>
+        <result column="genClass" property="genClass" jdbcType="BIT"/>
+        <result column="genList" property="genList" jdbcType="BIT"/>
+        <result column="genForm" property="genForm" jdbcType="BIT"/>
+        <result column="field_id" property="fieldId" jdbcType="VARCHAR"/>
+        <result column="gen_json" property="genJson" jdbcType="VARCHAR"/>
+        <result column="del_flag" property="delFlag" jdbcType="VARCHAR"/>
+        <result column="type_flag" property="typeFlag" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+		 id, tableName, className, remark, genTable, genClass,
+		 genList, genForm, field_id, gen_json, del_flag, type_flag
+	</sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_gen_code
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+		delete from sys_gen_code
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.GenCode" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into sys_gen_code
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                id,
+            </if>
+            <if test="tableName != null">
+                tableName,
+            </if>
+            <if test="className != null">
+                className,
+            </if>
+            <if test="remark != null">
+                remark,
+            </if>
+            <if test="genTable != null">
+                genTable,
+            </if>
+            <if test="genClass != null">
+                genClass,
+            </if>
+            <if test="genList != null">
+                genList,
+            </if>
+            <if test="genForm != null">
+                genForm,
+            </if>
+            <if test="fieldId != null">
+                field_id,
+            </if>
+            <if test="genJson != null">
+                gen_json,
+            </if>
+            <if test="typeFlag != null">
+                type_flag,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="tableName != null">
+                #{tableName,jdbcType=VARCHAR},
+            </if>
+            <if test="className != null">
+                #{className,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="genTable != null">
+                #{genTable,jdbcType=BIT},
+            </if>
+            <if test="genClass != null">
+                #{genClass,jdbcType=BIT},
+            </if>
+            <if test="genList != null">
+                #{genList,jdbcType=BIT},
+            </if>
+            <if test="genForm != null">
+                #{genForm,jdbcType=BIT},
+            </if>
+            <if test="fieldId != null">
+                #{fieldId,jdbcType=VARCHAR},
+            </if>
+            <if test="genJson != null">
+                #{genJson,jdbcType=VARCHAR},
+            </if>
+            <if test="typeFlag != null">
+                #{typeFlag,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.GenCode">
+        update sys_gen_code
+        <set>
+            <if test="tableName != null">
+                tableName = #{tableName,jdbcType=VARCHAR},
+            </if>
+            <if test="className != null">
+                className = #{className,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                remark = #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="genTable != null">
+                genTable = #{genTable,jdbcType=BIT},
+            </if>
+            <if test="genClass != null">
+                genClass = #{genClass,jdbcType=BIT},
+            </if>
+            <if test="genList != null">
+                genList = #{genList,jdbcType=BIT},
+            </if>
+            <if test="genForm != null">
+                genForm = #{genForm,jdbcType=BIT},
+            </if>
+            <if test="fieldId != null">
+                field_id = #{fieldId,jdbcType=VARCHAR},
+            </if>
+            <if test="genJson != null">
+                gen_json = #{genJson,jdbcType=VARCHAR},
+            </if>
+            <if test="typeFlag != null">
+                type_flag = #{typeFlag,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+    <select id="queryGenCodeByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GenCode">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_gen_code
+        <where>
+            and del_flag = 'N'
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.tableName != null and !&quot;&quot;.equals(record.tableName)">
+                and tableName = #{record.tableName}
+            </if>
+            <if test="record.className != null and !&quot;&quot;.equals(record.className)">
+                and className = #{record.className}
+            </if>
+            <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and remark = #{record.remark}
+            </if>
+            <if test="record.genTable != null and !&quot;&quot;.equals(record.genTable)">
+                and genTable = #{record.genTable}
+            </if>
+            <if test="record.genClass != null and !&quot;&quot;.equals(record.genClass)">
+                and genClass = #{record.genClass}
+            </if>
+            <if test="record.genList != null and !&quot;&quot;.equals(record.genList)">
+                and genList = #{record.genList}
+            </if>
+            <if test="record.genForm != null and !&quot;&quot;.equals(record.genForm)">
+                and genForm = #{record.genForm}
+            </if>
+            <if test="record.fieldId != null and !&quot;&quot;.equals(record.fieldId)">
+                and field_id = #{record.fieldId}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR tableName LIKE concat('%',#{record.searchKey},'%')
+                    OR className LIKE concat('%',#{record.searchKey},'%')
+                    OR remark LIKE concat('%',#{record.searchKey},'%')
+                    OR type_flag LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+        </where>
+        order by id desc
+    </select>
+    <select id="queryAllGenCode" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GenCode">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_gen_code
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="tableName != null and !&quot;&quot;.equals(tableName)">
+                and tableName = #{tableName}
+            </if>
+            <if test="className != null and !&quot;&quot;.equals(className)">
+                and className = #{className}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="genTable != null and !&quot;&quot;.equals(genTable)">
+                and genTable = #{genTable}
+            </if>
+            <if test="genClass != null and !&quot;&quot;.equals(genClass)">
+                and genClass = #{genClass}
+            </if>
+            <if test="genList != null and !&quot;&quot;.equals(genList)">
+                and genList = #{genList}
+            </if>
+            <if test="genForm != null and !&quot;&quot;.equals(genForm)">
+                and genForm = #{genForm}
+            </if>
+            <if test="fieldId != null and !&quot;&quot;.equals(fieldId)">
+                and field_id = #{fieldId}
+            </if>
+        </where>
+        order by id desc
+    </select>
+    <select id="queryGenCode" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GenCode">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_gen_code
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="tableName != null and !&quot;&quot;.equals(tableName)">
+                and tableName = #{tableName}
+            </if>
+            <if test="className != null and !&quot;&quot;.equals(className)">
+                and className = #{className}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="genTable != null and !&quot;&quot;.equals(genTable)">
+                and genTable = #{genTable}
+            </if>
+            <if test="genClass != null and !&quot;&quot;.equals(genClass)">
+                and genClass = #{genClass}
+            </if>
+            <if test="genList != null and !&quot;&quot;.equals(genList)">
+                and genList = #{genList}
+            </if>
+            <if test="genForm != null and !&quot;&quot;.equals(genForm)">
+                and genForm = #{genForm}
+            </if>
+            <if test="fieldId != null and !&quot;&quot;.equals(fieldId)">
+                and field_id = #{fieldId}
+            </if>
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE sys_gen_code SET del_flag = 'Y'
+        <where>
+            AND id = #{id}
+        </where>
+    </update>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/GenTestTableMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import org.springframework.stereotype.Repository;
+
+import com.izouma.awesomeadmin.model.GenTestTable;
+
+/**
+ * gen_test_table Dao接口
+ * Fri Apr 20 09:24:30 CST 2018  Suo Chen Cheng
+ */ 
+@Repository("com.izouma.awesomeadmin.dao.GenTestTableMapper")
+public interface GenTestTableMapper {
+
+	int deleteByPrimaryKey(Integer id);
+
+	int insertSelective(GenTestTable record);
+
+	GenTestTable selectByPrimaryKey(Integer id);
+
+	int updateByPrimaryKeySelective(GenTestTable record);
+
+	List <GenTestTable> queryAllGenTestTable(GenTestTable record);
+
+	List <GenTestTable> queryGenTestTablesByPage(Map <String, Object> parameter);
+
+	int delete(String id);
+
+	GenTestTable queryGenTestTable(GenTestTable record);
+}
+

+ 209 - 0
src/main/java/com/izouma/awesomeadmin/dao/GenTestTableMapper.xml

@@ -0,0 +1,209 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.GenTestTableMapper" >
+	<resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.GenTestTable" >
+		<id column="id" property="id" jdbcType="INTEGER" />
+		<result column="my_column" property="myColumn" jdbcType="VARCHAR" />
+		<result column="aaa_test" property="aaaTest" jdbcType="VARCHAR" />
+		<result column="bbb_flag" property="bbbFlag" jdbcType="CHAR" />
+		<result column="no_comment" property="noComment" jdbcType="VARCHAR" />
+		<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+		<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+		<result column="del_flag" property="delFlag" jdbcType="CHAR" />
+	</resultMap>
+	<sql id="Base_Column_List" >
+		 id, my_column, aaa_test, bbb_flag, no_comment, create_time, update_time, del_flag
+	</sql>
+	<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+		select
+		<include refid="Base_Column_List" />
+		from gen_test_table
+		where id = #{id,jdbcType=INTEGER}
+	</select>
+	<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+		delete from gen_test_table
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+	<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.GenTestTable" useGeneratedKeys="true" keyProperty="id">
+		insert into gen_test_table
+		<trim prefix="(" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				id,	
+			</if>
+			<if test="myColumn != null" >
+				my_column,	
+			</if>
+			<if test="aaaTest != null" >
+				aaa_test,	
+			</if>
+			<if test="bbbFlag != null" >
+				bbb_flag,	
+			</if>
+			<if test="noComment != null" >
+				no_comment,	
+			</if>
+			<if test="createTime != null" >
+				create_time,	
+			</if>
+			<if test="updateTime != null" >
+				update_time,	
+			</if>
+			<if test="delFlag != null" >
+				del_flag,	
+			</if>
+		</trim>
+		<trim prefix="values (" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				#{id,jdbcType=INTEGER},	
+			</if>
+			<if test="myColumn != null" >
+				#{myColumn,jdbcType=VARCHAR},	
+			</if>
+			<if test="aaaTest != null" >
+				#{aaaTest,jdbcType=VARCHAR},	
+			</if>
+			<if test="bbbFlag != null" >
+				#{bbbFlag,jdbcType=CHAR},	
+			</if>
+			<if test="noComment != null" >
+				#{noComment,jdbcType=VARCHAR},	
+			</if>
+			<if test="createTime != null" >
+				#{createTime,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="updateTime != null" >
+				#{updateTime,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="delFlag != null" >
+				#{delFlag,jdbcType=CHAR},	
+			</if>
+		</trim>
+	</insert>
+	<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.GenTestTable" >
+		update gen_test_table
+		<set >
+			<if test="myColumn != null" >
+				my_column = #{myColumn,jdbcType=VARCHAR},	
+			</if>
+			<if test="aaaTest != null" >
+				aaa_test = #{aaaTest,jdbcType=VARCHAR},	
+			</if>
+			<if test="bbbFlag != null" >
+				bbb_flag = #{bbbFlag,jdbcType=CHAR},	
+			</if>
+			<if test="noComment != null" >
+				no_comment = #{noComment,jdbcType=VARCHAR},	
+			</if>
+			<if test="createTime != null" >
+				create_time = #{createTime,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="updateTime != null" >
+				update_time = #{updateTime,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="delFlag != null" >
+				del_flag = #{delFlag,jdbcType=CHAR},	
+			</if>
+		</set>
+		where id = #{id,jdbcType=INTEGER}
+	</update>
+	<select id="queryGenTestTablesByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GenTestTable">
+		select <include refid="Base_Column_List"/> from gen_test_table
+		<where>
+			and del_flag = 'N'
+			<if test="record.id != null and !&quot;&quot;.equals(record.id)">
+				and id = #{record.id}	
+			</if>
+			<if test="record.myColumn != null and !&quot;&quot;.equals(record.myColumn)">
+				and my_column = #{record.myColumn}	
+			</if>
+			<if test="record.aaaTest != null and !&quot;&quot;.equals(record.aaaTest)">
+				and aaa_test = #{record.aaaTest}	
+			</if>
+			<if test="record.bbbFlag != null and !&quot;&quot;.equals(record.bbbFlag)">
+				and bbb_flag = #{record.bbbFlag}	
+			</if>
+			<if test="record.noComment != null and !&quot;&quot;.equals(record.noComment)">
+				and no_comment = #{record.noComment}	
+			</if>
+			<if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+				and create_time = #{record.createTime}	
+			</if>
+			<if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+				and update_time = #{record.updateTime}	
+			</if>
+			<if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+				and del_flag = #{record.delFlag}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryAllGenTestTable" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GenTestTable">
+		select <include refid="Base_Column_List"/> from gen_test_table
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="myColumn != null and !&quot;&quot;.equals(myColumn)">
+				and my_column = #{myColumn}	
+			</if>
+			<if test="aaaTest != null and !&quot;&quot;.equals(aaaTest)">
+				and aaa_test = #{aaaTest}	
+			</if>
+			<if test="bbbFlag != null and !&quot;&quot;.equals(bbbFlag)">
+				and bbb_flag = #{bbbFlag}	
+			</if>
+			<if test="noComment != null and !&quot;&quot;.equals(noComment)">
+				and no_comment = #{noComment}	
+			</if>
+			<if test="createTime != null and !&quot;&quot;.equals(createTime)">
+				and create_time = #{createTime}	
+			</if>
+			<if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+				and update_time = #{updateTime}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryGenTestTable" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GenTestTable">
+		select <include refid="Base_Column_List"/> from gen_test_table
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="myColumn != null and !&quot;&quot;.equals(myColumn)">
+				and my_column = #{myColumn}	
+			</if>
+			<if test="aaaTest != null and !&quot;&quot;.equals(aaaTest)">
+				and aaa_test = #{aaaTest}	
+			</if>
+			<if test="bbbFlag != null and !&quot;&quot;.equals(bbbFlag)">
+				and bbb_flag = #{bbbFlag}	
+			</if>
+			<if test="noComment != null and !&quot;&quot;.equals(noComment)">
+				and no_comment = #{noComment}	
+			</if>
+			<if test="createTime != null and !&quot;&quot;.equals(createTime)">
+				and create_time = #{createTime}	
+			</if>
+			<if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+				and update_time = #{updateTime}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+		</where>
+		LIMIT 1
+	</select>
+	<update id="delete">
+		UPDATE gen_test_table SET del_flag = 'Y'
+		<where>
+			AND id = #{id}
+		</where>
+	</update>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/GuideTipImageMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.GuideTipImage;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.GuideTipImageMapper")
+public interface GuideTipImageMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(GuideTipImage record);
+
+    GuideTipImage selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(GuideTipImage record);
+
+    List<GuideTipImage> queryAllGuideTipImage(GuideTipImage record);
+
+    List<GuideTipImage> queryGuideTipImageByPage(Map<String, Object> parameter);
+
+    int delete(GuideTipImage record);
+
+    GuideTipImage queryGuideTipImage(GuideTipImage record);
+
+    List<GuideTipImage> query(GuideTipImage record);
+}
+

+ 390 - 0
src/main/java/com/izouma/awesomeadmin/dao/GuideTipImageMapper.xml

@@ -0,0 +1,390 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.GuideTipImageMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.GuideTipImage" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="remark" property="remark" jdbcType="VARCHAR" />
+                                <result column="market_id" property="marketId" jdbcType="INTEGER" />
+                                <result column="image_name" property="imageName" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            remark,
+
+            market_id,
+
+            image_name,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from guide_tip_image
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from guide_tip_image
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.GuideTipImage" useGeneratedKeys="true" keyProperty="id">
+        insert into guide_tip_image
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="remark!= null" >
+                remark,
+            </if>
+                <if test="marketId!= null" >
+                market_id,
+            </if>
+                <if test="imageName!= null" >
+                image_name,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark != null" >
+                #{remark,jdbcType=VARCHAR},
+            </if>
+                    <if test="marketId != null" >
+                #{marketId,jdbcType=INTEGER},
+            </if>
+                    <if test="imageName != null" >
+                #{imageName,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.GuideTipImage" >
+        update guide_tip_image
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark != null" >
+               remark= #{remark,jdbcType=VARCHAR},
+            </if>
+                     <if test="marketId != null" >
+               market_id= #{marketId,jdbcType=INTEGER},
+            </if>
+                     <if test="imageName != null" >
+               image_name= #{imageName,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryGuideTipImageByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GuideTipImage">
+        select <include refid="Base_Column_List"/> from guide_tip_image
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and  remark = #{record.remark}
+            </if>
+                     <if test="record.marketId != null and !&quot;&quot;.equals(record.marketId)">
+                and  market_id = #{record.marketId}
+            </if>
+                     <if test="record.imageName != null and !&quot;&quot;.equals(record.imageName)">
+                and  image_name = #{record.imageName}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  remark LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  market_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  image_name LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllGuideTipImage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GuideTipImage">
+        select <include refid="Base_Column_List"/> from guide_tip_image
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and  remark = #{remark}
+            </if>
+                    <if test="marketId != null and !&quot;&quot;.equals(marketId)">
+                and  market_id = #{marketId}
+            </if>
+                    <if test="imageName != null and !&quot;&quot;.equals(imageName)">
+                and  image_name = #{imageName}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  remark LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  market_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  image_name LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryGuideTipImage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GuideTipImage">
+        select <include refid="Base_Column_List"/> from guide_tip_image
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+                     <if test="marketId != null and !&quot;&quot;.equals(marketId)">
+                and market_id = #{marketId}
+            </if>
+                     <if test="imageName != null and !&quot;&quot;.equals(imageName)">
+                and image_name = #{imageName}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE guide_tip_image SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.GuideTipImage">
+        select <include refid="Base_Column_List"/> from guide_tip_image
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandMarkLevelMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.LandMarkLevel;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.LandMarkLevelMapper")
+public interface LandMarkLevelMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(LandMarkLevel record);
+
+    LandMarkLevel selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(LandMarkLevel record);
+
+    List<LandMarkLevel> queryAllLandMarkLevel(LandMarkLevel record);
+
+    List<LandMarkLevel> queryLandMarkLevelByPage(Map<String, Object> parameter);
+
+    int delete(LandMarkLevel record);
+
+    LandMarkLevel queryLandMarkLevel(LandMarkLevel record);
+
+    List<LandMarkLevel> query(LandMarkLevel record);
+}
+

Datei-Diff unterdrückt, da er zu groß ist
+ 546 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandMarkLevelMapper.xml


+ 38 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandMarkMapper.java

@@ -0,0 +1,38 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.LandMark;
+
+
+/**
+ * Dao接口
+ */
+@Repository("com.zoumaframe.dao.LandMarkMapper")
+public interface LandMarkMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(LandMark record);
+
+    LandMark selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(LandMark record);
+
+    List<LandMark> queryAllLandMark(LandMark record);
+
+    List<LandMark> queryLandMarkByPage(Map<String, Object> parameter);
+
+    int delete(LandMark record);
+
+    LandMark queryLandMark(LandMark record);
+
+    List<LandMark> query(LandMark record);
+
+    LandMark queryLandMarkMapInfo(LandMark record);
+
+    List<LandMark> queryAllLandMarkChild(LandMark record);
+}
+

+ 1254 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandMarkMapper.xml

@@ -0,0 +1,1254 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.LandMarkMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.LandMark">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="map_name" property="mapName" jdbcType="VARCHAR"/>
+        <result column="owned_city_id" property="ownedCityId" jdbcType="INTEGER"/>
+        <result column="map_sprite" property="mapSprite" jdbcType="VARCHAR"/>
+        <result column="loge_sprite" property="logeSprite" jdbcType="VARCHAR"/>
+        <result column="open_describe" property="openDescribe" jdbcType="VARCHAR"/>
+        <result column="mark_describe" property="markDescribe" jdbcType="VARCHAR"/>
+        <result column="anchor_image_group_name" property="anchorImageGroupName" jdbcType="VARCHAR"/>
+        <result column="default_mode" property="defaultMode" jdbcType="INTEGER"/>
+        <result column="vuforia_image_group_id" property="vuforiaImageGroupId" jdbcType="INTEGER"/>
+        <result column="vuforia_data_name" property="vuforiaDataName" jdbcType="VARCHAR"/>
+        <result column="map_info" property="mapInfo" jdbcType="VARCHAR"/>
+        <result column="map_width" property="mapWidth" jdbcType="VARCHAR"/>
+        <result column="map_height" property="mapHeight" jdbcType="VARCHAR"/>
+        <result column="map_rate" property="mapRate" jdbcType="VARCHAR"/>
+        <result column="show_in_panel" property="showInPanel" jdbcType="VARCHAR"/>
+        <result column="longitude" property="longitude" jdbcType="VARCHAR"/>
+        <result column="latitude" property="latitude" jdbcType="VARCHAR"/>
+        <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
+        <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
+        <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
+        <result column="front_level_id" property="frontLevelId" jdbcType="VARCHAR"/>
+        <result column="type_id" property="typeId" jdbcType="INTEGER"/>
+        <result column="keyword" property="keyword" jdbcType="VARCHAR"/>
+        <result column="power" property="power" jdbcType="VARCHAR"/>
+        <result column="area_map_info" property="areaMapInfo" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            map_name,
+
+            owned_city_id,
+
+            map_sprite,
+
+            loge_sprite,
+
+            open_describe,
+
+            mark_describe,
+
+            anchor_image_group_name,
+
+            default_mode,
+
+            vuforia_image_group_id,
+
+            vuforia_data_name,
+
+            map_info,
+
+            map_width,
+
+            map_height,
+
+            map_rate,
+
+            show_in_panel,
+
+            longitude,
+
+            latitude,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            front_level_id,
+            type_id,
+            keyword,
+            power,
+            area_map_info,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from land_mark
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from land_mark
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.LandMark" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into land_mark
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="mapName!= null">
+                map_name,
+            </if>
+            <if test="ownedCityId!= null">
+                owned_city_id,
+            </if>
+            <if test="mapSprite!= null">
+                map_sprite,
+            </if>
+            <if test="logeSprite!= null">
+                loge_sprite,
+            </if>
+            <if test="openDescribe!= null">
+                open_describe,
+            </if>
+            <if test="markDescribe!= null">
+                mark_describe,
+            </if>
+            <if test="anchorImageGroupName!= null">
+                anchor_image_group_name,
+            </if>
+            <if test="defaultMode!= null">
+                default_mode,
+            </if>
+            <if test="vuforiaImageGroupId!= null">
+                vuforia_image_group_id,
+            </if>
+            <if test="vuforiaDataName!= null">
+                vuforia_data_name,
+            </if>
+            <if test="mapInfo!= null">
+                map_info,
+            </if>
+            <if test="mapWidth!= null">
+                map_width,
+            </if>
+            <if test="mapHeight!= null">
+                map_height,
+            </if>
+            <if test="mapRate!= null">
+                map_rate,
+            </if>
+            <if test="showInPanel!= null">
+                show_in_panel,
+            </if>
+            <if test="longitude!= null">
+                longitude,
+            </if>
+            <if test="latitude!= null">
+                latitude,
+            </if>
+            <if test="remark1!= null">
+                remark1,
+            </if>
+            <if test="remark2!= null">
+                remark2,
+            </if>
+            <if test="remark3!= null">
+                remark3,
+            </if>
+            <if test="frontLevelId!= null">
+                front_level_id,
+            </if>
+            <if test="typeId!= null">
+                type_id,
+            </if>
+            <if test="keyword!= null">
+                keyword,
+            </if>
+            <if test="power!= null">
+                power,
+            </if>
+            <if test="areaMapInfo!= null">
+                area_map_info,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="mapName != null">
+                #{mapName,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedCityId != null">
+                #{ownedCityId,jdbcType=INTEGER},
+            </if>
+            <if test="mapSprite != null">
+                #{mapSprite,jdbcType=VARCHAR},
+            </if>
+            <if test="logeSprite != null">
+                #{logeSprite,jdbcType=VARCHAR},
+            </if>
+            <if test="openDescribe != null">
+                #{openDescribe,jdbcType=VARCHAR},
+            </if>
+            <if test="markDescribe != null">
+                #{markDescribe,jdbcType=VARCHAR},
+            </if>
+            <if test="anchorImageGroupName != null">
+                #{anchorImageGroupName,jdbcType=VARCHAR},
+            </if>
+            <if test="defaultMode != null">
+                #{defaultMode,jdbcType=INTEGER},
+            </if>
+            <if test="vuforiaImageGroupId != null">
+                #{vuforiaImageGroupId,jdbcType=INTEGER},
+            </if>
+            <if test="vuforiaDataName != null">
+                #{vuforiaDataName,jdbcType=VARCHAR},
+            </if>
+            <if test="mapInfo != null">
+                #{mapInfo,jdbcType=VARCHAR},
+            </if>
+            <if test="mapWidth != null">
+                #{mapWidth,jdbcType=VARCHAR},
+            </if>
+            <if test="mapHeight != null">
+                #{mapHeight,jdbcType=VARCHAR},
+            </if>
+            <if test="mapRate != null">
+                #{mapRate,jdbcType=VARCHAR},
+            </if>
+            <if test="showInPanel != null">
+                #{showInPanel,jdbcType=VARCHAR},
+            </if>
+            <if test="longitude != null">
+                #{longitude,jdbcType=VARCHAR},
+            </if>
+            <if test="latitude != null">
+                #{latitude,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="typeId != null">
+                #{typeId},
+            </if>
+            <if test="keyword != null">
+                #{keyword,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="areaMapInfo != null">
+                #{areaMapInfo,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.LandMark">
+        update land_mark
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="mapName != null">
+                map_name= #{mapName,jdbcType=VARCHAR},
+            </if>
+            <if test="ownedCityId != null">
+                owned_city_id= #{ownedCityId,jdbcType=INTEGER},
+            </if>
+            <if test="mapSprite != null">
+                map_sprite= #{mapSprite,jdbcType=VARCHAR},
+            </if>
+            <if test="logeSprite != null">
+                loge_sprite= #{logeSprite,jdbcType=VARCHAR},
+            </if>
+            <if test="openDescribe != null">
+                open_describe= #{openDescribe,jdbcType=VARCHAR},
+            </if>
+            <if test="markDescribe != null">
+                mark_describe= #{markDescribe,jdbcType=VARCHAR},
+            </if>
+            <if test="anchorImageGroupName != null">
+                anchor_image_group_name= #{anchorImageGroupName,jdbcType=VARCHAR},
+            </if>
+            <if test="defaultMode != null">
+                default_mode= #{defaultMode,jdbcType=INTEGER},
+            </if>
+            <if test="vuforiaImageGroupId != null">
+                vuforia_image_group_id= #{vuforiaImageGroupId,jdbcType=INTEGER},
+            </if>
+            <if test="vuforiaDataName != null">
+                vuforia_data_name= #{vuforiaDataName,jdbcType=VARCHAR},
+            </if>
+            <if test="mapInfo != null">
+                map_info= #{mapInfo,jdbcType=VARCHAR},
+            </if>
+            <if test="mapWidth != null">
+                map_width= #{mapWidth,jdbcType=VARCHAR},
+            </if>
+            <if test="mapHeight != null">
+                map_height= #{mapHeight,jdbcType=VARCHAR},
+            </if>
+            <if test="mapRate != null">
+                map_rate= #{mapRate,jdbcType=VARCHAR},
+            </if>
+            <if test="showInPanel != null">
+                show_in_panel= #{showInPanel,jdbcType=VARCHAR},
+            </if>
+            <if test="longitude != null">
+                longitude= #{longitude,jdbcType=VARCHAR},
+            </if>
+            <if test="latitude != null">
+                latitude= #{latitude,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                front_level_id= #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="typeId != null">
+                type_id= #{typeId},
+            </if>
+            <if test="keyword != null">
+                keyword= #{keyword,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                power= #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="areaMapInfo != null">
+                area_map_info= #{areaMapInfo,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryLandMarkByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandMark">
+        select
+        <include refid="Base_Column_List"/>
+        from land_mark
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.mapName != null and !&quot;&quot;.equals(record.mapName)">
+                and map_name = #{record.mapName}
+            </if>
+            <if test="record.ownedCityId != null and !&quot;&quot;.equals(record.ownedCityId)">
+                and owned_city_id = #{record.ownedCityId}
+            </if>
+            <if test="record.mapSprite != null and !&quot;&quot;.equals(record.mapSprite)">
+                and map_sprite = #{record.mapSprite}
+            </if>
+            <if test="record.logeSprite != null and !&quot;&quot;.equals(record.logeSprite)">
+                and loge_sprite = #{record.logeSprite}
+            </if>
+            <if test="record.openDescribe != null and !&quot;&quot;.equals(record.openDescribe)">
+                and open_describe = #{record.openDescribe}
+            </if>
+            <if test="record.markDescribe != null and !&quot;&quot;.equals(record.markDescribe)">
+                and mark_describe = #{record.markDescribe}
+            </if>
+            <if test="record.anchorImageGroupName != null and !&quot;&quot;.equals(record.anchorImageGroupName)">
+                and anchor_image_group_name = #{record.anchorImageGroupName}
+            </if>
+            <if test="record.defaultMode != null and !&quot;&quot;.equals(record.defaultMode)">
+                and default_mode = #{record.defaultMode}
+            </if>
+            <if test="record.vuforiaImageGroupId != null and !&quot;&quot;.equals(record.vuforiaImageGroupId)">
+                and vuforia_image_group_id = #{record.vuforiaImageGroupId}
+            </if>
+            <if test="record.vuforiaDataName != null and !&quot;&quot;.equals(record.vuforiaDataName)">
+                and vuforia_data_name = #{record.vuforiaDataName}
+            </if>
+            <if test="record.mapInfo != null and !&quot;&quot;.equals(record.mapInfo)">
+                and map_info = #{record.mapInfo}
+            </if>
+            <if test="record.mapWidth != null and !&quot;&quot;.equals(record.mapWidth)">
+                and map_width = #{record.mapWidth}
+            </if>
+            <if test="record.mapHeight != null and !&quot;&quot;.equals(record.mapHeight)">
+                and map_height = #{record.mapHeight}
+            </if>
+            <if test="record.mapRate != null and !&quot;&quot;.equals(record.mapRate)">
+                and map_rate = #{record.mapRate}
+            </if>
+            <if test="record.showInPanel != null and !&quot;&quot;.equals(record.showInPanel)">
+                and show_in_panel = #{record.showInPanel}
+            </if>
+            <if test="record.longitude != null and !&quot;&quot;.equals(record.longitude)">
+                and longitude = #{record.longitude}
+            </if>
+            <if test="record.latitude != null and !&quot;&quot;.equals(record.latitude)">
+                and latitude = #{record.latitude}
+            </if>
+            <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and remark1 = #{record.remark1}
+            </if>
+            <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and remark2 = #{record.remark2}
+            </if>
+            <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and remark3 = #{record.remark3}
+            </if>
+            <if test="record.typeId != null and !&quot;&quot;.equals(record.typeId)">
+                and type_id = #{record.typeId}
+            </if>
+            <if test="record.keyword != null and !&quot;&quot;.equals(record.keyword)">
+                and keyword = #{record.keyword}
+            </if>
+            <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and power = #{record.power}
+            </if>
+            <if test="record.areaMapInfo != null and !&quot;&quot;.equals(record.areaMapInfo)">
+                and area_map_info = #{record.areaMapInfo}
+            </if>
+            <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
+
+                and (front_level_id = #{record.frontLevelId}
+                <if test="'0'.toString()==record.frontLevelId">
+                    or (front_level_id is null or front_level_id = '')
+                </if>
+                )
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR map_name LIKE concat('%',#{record.searchKey},'%')
+                    OR owned_city_id LIKE concat('%',#{record.searchKey},'%')
+                    OR map_sprite LIKE concat('%',#{record.searchKey},'%')
+                    OR loge_sprite LIKE concat('%',#{record.searchKey},'%')
+                    OR open_describe LIKE concat('%',#{record.searchKey},'%')
+                    OR mark_describe LIKE concat('%',#{record.searchKey},'%')
+                    OR anchor_image_group_name LIKE concat('%',#{record.searchKey},'%')
+                    OR default_mode LIKE concat('%',#{record.searchKey},'%')
+                    OR vuforia_image_group_id LIKE concat('%',#{record.searchKey},'%')
+                    OR vuforia_data_name LIKE concat('%',#{record.searchKey},'%')
+                    OR map_info LIKE concat('%',#{record.searchKey},'%')
+                    OR map_width LIKE concat('%',#{record.searchKey},'%')
+                    OR map_height LIKE concat('%',#{record.searchKey},'%')
+                    OR map_rate LIKE concat('%',#{record.searchKey},'%')
+                    OR show_in_panel LIKE concat('%',#{record.searchKey},'%')
+                    OR longitude LIKE concat('%',#{record.searchKey},'%')
+                    OR latitude LIKE concat('%',#{record.searchKey},'%')
+                    OR remark1 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark2 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark3 LIKE concat('%',#{record.searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{record.searchKey},'%')
+                    OR keyword LIKE concat('%',#{record.keyword},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+
+            <if test="record.distance != null and !&quot;&quot;.equals(record.distance)">
+
+                <![CDATA[
+                   AND ( ACOS(
+                SIN((#{record.latKey} * PI()) / 180) * SIN((latitude * PI()) / 180) +
+                COS((#{record.latKey} * PI()) / 180) * COS((latitude * PI()) / 180) * COS(
+                (#{record.lngKey} * PI()) / 180 - (longitude * PI()) / 180
+                )
+                ) * 6371.004 )  <= #{record.distance}
+                    AND longitude > #{record.lngKey} - 2
+                    AND longitude < #{record.lngKey} + 2
+                    AND latitude > #{record.latKey} - 2
+                    AND latitude < #{record.latKey} + 2
+                    ]]>
+            </if>
+
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllLandMark" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandMark">
+        select
+        <include refid="Base_Column_List"/>
+        from land_mark
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="mapName != null and !&quot;&quot;.equals(mapName)">
+                and map_name = #{mapName}
+            </if>
+            <if test="ownedCityId != null and !&quot;&quot;.equals(ownedCityId)">
+                and owned_city_id = #{ownedCityId}
+            </if>
+            <if test="mapSprite != null and !&quot;&quot;.equals(mapSprite)">
+                and map_sprite = #{mapSprite}
+            </if>
+            <if test="logeSprite != null and !&quot;&quot;.equals(logeSprite)">
+                and loge_sprite = #{logeSprite}
+            </if>
+            <if test="openDescribe != null and !&quot;&quot;.equals(openDescribe)">
+                and open_describe = #{openDescribe}
+            </if>
+            <if test="markDescribe != null and !&quot;&quot;.equals(markDescribe)">
+                and mark_describe = #{markDescribe}
+            </if>
+            <if test="anchorImageGroupName != null and !&quot;&quot;.equals(anchorImageGroupName)">
+                and anchor_image_group_name = #{anchorImageGroupName}
+            </if>
+            <if test="defaultMode != null and !&quot;&quot;.equals(defaultMode)">
+                and default_mode = #{defaultMode}
+            </if>
+            <if test="vuforiaImageGroupId != null and !&quot;&quot;.equals(vuforiaImageGroupId)">
+                and vuforia_image_group_id = #{vuforiaImageGroupId}
+            </if>
+            <if test="vuforiaDataName != null and !&quot;&quot;.equals(vuforiaDataName)">
+                and vuforia_data_name = #{vuforiaDataName}
+            </if>
+            <if test="mapInfo != null and !&quot;&quot;.equals(mapInfo)">
+                and map_info = #{mapInfo}
+            </if>
+            <if test="mapWidth != null and !&quot;&quot;.equals(mapWidth)">
+                and map_width = #{mapWidth}
+            </if>
+            <if test="mapHeight != null and !&quot;&quot;.equals(mapHeight)">
+                and map_height = #{mapHeight}
+            </if>
+            <if test="mapRate != null and !&quot;&quot;.equals(mapRate)">
+                and map_rate = #{mapRate}
+            </if>
+            <if test="showInPanel != null and !&quot;&quot;.equals(showInPanel)">
+                and show_in_panel = #{showInPanel}
+            </if>
+            <if test="longitude != null and !&quot;&quot;.equals(longitude)">
+                and longitude = #{longitude}
+            </if>
+            <if test="latitude != null and !&quot;&quot;.equals(latitude)">
+                and latitude = #{latitude}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="typeId != null and !&quot;&quot;.equals(typeId)">
+                and type_id = #{type_id}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="areaMapInfo != null and !&quot;&quot;.equals(areaMapInfo)">
+                and area_map_info = #{areaMapInfo}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+
+                and (front_level_id = #{frontLevelId}
+                <if test="'0'.toString()==frontLevelId">
+                    or (front_level_id is null or front_level_id = '')
+                </if>
+                )
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR map_name LIKE concat('%',#{searchKey},'%')
+                    OR owned_city_id LIKE concat('%',#{searchKey},'%')
+                    OR map_sprite LIKE concat('%',#{searchKey},'%')
+                    OR loge_sprite LIKE concat('%',#{searchKey},'%')
+                    OR open_describe LIKE concat('%',#{searchKey},'%')
+                    OR mark_describe LIKE concat('%',#{searchKey},'%')
+                    OR anchor_image_group_name LIKE concat('%',#{searchKey},'%')
+                    OR default_mode LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_image_group_id LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
+                    OR map_info LIKE concat('%',#{searchKey},'%')
+                    OR map_width LIKE concat('%',#{searchKey},'%')
+                    OR map_height LIKE concat('%',#{searchKey},'%')
+                    OR map_rate LIKE concat('%',#{searchKey},'%')
+                    OR show_in_panel LIKE concat('%',#{searchKey},'%')
+                    OR longitude LIKE concat('%',#{searchKey},'%')
+                    OR latitude LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR keyword LIKE concat('%',#{keyword},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAllLandMarkChild" parameterType="java.util.Map"
+            resultMap="LandMarkChildResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from land_mark
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="mapName != null and !&quot;&quot;.equals(mapName)">
+                and map_name = #{mapName}
+            </if>
+            <if test="ownedCityId != null and !&quot;&quot;.equals(ownedCityId)">
+                and owned_city_id = #{ownedCityId}
+            </if>
+            <if test="mapSprite != null and !&quot;&quot;.equals(mapSprite)">
+                and map_sprite = #{mapSprite}
+            </if>
+            <if test="logeSprite != null and !&quot;&quot;.equals(logeSprite)">
+                and loge_sprite = #{logeSprite}
+            </if>
+            <if test="openDescribe != null and !&quot;&quot;.equals(openDescribe)">
+                and open_describe = #{openDescribe}
+            </if>
+            <if test="markDescribe != null and !&quot;&quot;.equals(markDescribe)">
+                and mark_describe = #{markDescribe}
+            </if>
+            <if test="anchorImageGroupName != null and !&quot;&quot;.equals(anchorImageGroupName)">
+                and anchor_image_group_name = #{anchorImageGroupName}
+            </if>
+            <if test="defaultMode != null and !&quot;&quot;.equals(defaultMode)">
+                and default_mode = #{defaultMode}
+            </if>
+            <if test="vuforiaImageGroupId != null and !&quot;&quot;.equals(vuforiaImageGroupId)">
+                and vuforia_image_group_id = #{vuforiaImageGroupId}
+            </if>
+            <if test="vuforiaDataName != null and !&quot;&quot;.equals(vuforiaDataName)">
+                and vuforia_data_name = #{vuforiaDataName}
+            </if>
+            <if test="mapInfo != null and !&quot;&quot;.equals(mapInfo)">
+                and map_info = #{mapInfo}
+            </if>
+            <if test="mapWidth != null and !&quot;&quot;.equals(mapWidth)">
+                and map_width = #{mapWidth}
+            </if>
+            <if test="mapHeight != null and !&quot;&quot;.equals(mapHeight)">
+                and map_height = #{mapHeight}
+            </if>
+            <if test="mapRate != null and !&quot;&quot;.equals(mapRate)">
+                and map_rate = #{mapRate}
+            </if>
+            <if test="showInPanel != null and !&quot;&quot;.equals(showInPanel)">
+                and show_in_panel = #{showInPanel}
+            </if>
+            <if test="longitude != null and !&quot;&quot;.equals(longitude)">
+                and longitude = #{longitude}
+            </if>
+            <if test="latitude != null and !&quot;&quot;.equals(latitude)">
+                and latitude = #{latitude}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="typeId != null and !&quot;&quot;.equals(typeId)">
+                and type_id = #{type_id}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="areaMapInfo != null and !&quot;&quot;.equals(areaMapInfo)">
+                and area_map_info = #{areaMapInfo}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+
+                and (front_level_id = #{frontLevelId}
+                <if test="'0'.toString()==frontLevelId">
+                    or (front_level_id is null or front_level_id = '')
+                </if>
+                )
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR map_name LIKE concat('%',#{searchKey},'%')
+                    OR owned_city_id LIKE concat('%',#{searchKey},'%')
+                    OR map_sprite LIKE concat('%',#{searchKey},'%')
+                    OR loge_sprite LIKE concat('%',#{searchKey},'%')
+                    OR open_describe LIKE concat('%',#{searchKey},'%')
+                    OR mark_describe LIKE concat('%',#{searchKey},'%')
+                    OR anchor_image_group_name LIKE concat('%',#{searchKey},'%')
+                    OR default_mode LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_image_group_id LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
+                    OR map_info LIKE concat('%',#{searchKey},'%')
+                    OR map_width LIKE concat('%',#{searchKey},'%')
+                    OR map_height LIKE concat('%',#{searchKey},'%')
+                    OR map_rate LIKE concat('%',#{searchKey},'%')
+                    OR show_in_panel LIKE concat('%',#{searchKey},'%')
+                    OR longitude LIKE concat('%',#{searchKey},'%')
+                    OR latitude LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR keyword LIKE concat('%',#{keyword},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryLandMark" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandMark">
+        select
+        <include refid="Base_Column_List"/>
+        from land_mark
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="mapName != null and !&quot;&quot;.equals(mapName)">
+                and map_name = #{mapName}
+            </if>
+            <if test="ownedCityId != null and !&quot;&quot;.equals(ownedCityId)">
+                and owned_city_id = #{ownedCityId}
+            </if>
+            <if test="mapSprite != null and !&quot;&quot;.equals(mapSprite)">
+                and map_sprite = #{mapSprite}
+            </if>
+            <if test="logeSprite != null and !&quot;&quot;.equals(logeSprite)">
+                and loge_sprite = #{logeSprite}
+            </if>
+            <if test="openDescribe != null and !&quot;&quot;.equals(openDescribe)">
+                and open_describe = #{openDescribe}
+            </if>
+            <if test="markDescribe != null and !&quot;&quot;.equals(markDescribe)">
+                and mark_describe = #{markDescribe}
+            </if>
+            <if test="anchorImageGroupName != null and !&quot;&quot;.equals(anchorImageGroupName)">
+                and anchor_image_group_name = #{anchorImageGroupName}
+            </if>
+            <if test="defaultMode != null and !&quot;&quot;.equals(defaultMode)">
+                and default_mode = #{defaultMode}
+            </if>
+            <if test="vuforiaImageGroupId != null and !&quot;&quot;.equals(vuforiaImageGroupId)">
+                and vuforia_image_group_id = #{vuforiaImageGroupId}
+            </if>
+            <if test="vuforiaDataName != null and !&quot;&quot;.equals(vuforiaDataName)">
+                and vuforia_data_name = #{vuforiaDataName}
+            </if>
+            <if test="mapInfo != null and !&quot;&quot;.equals(mapInfo)">
+                and map_info = #{mapInfo}
+            </if>
+            <if test="mapWidth != null and !&quot;&quot;.equals(mapWidth)">
+                and map_width = #{mapWidth}
+            </if>
+            <if test="mapHeight != null and !&quot;&quot;.equals(mapHeight)">
+                and map_height = #{mapHeight}
+            </if>
+            <if test="mapRate != null and !&quot;&quot;.equals(mapRate)">
+                and map_rate = #{mapRate}
+            </if>
+            <if test="showInPanel != null and !&quot;&quot;.equals(showInPanel)">
+                and show_in_panel = #{showInPanel}
+            </if>
+            <if test="longitude != null and !&quot;&quot;.equals(longitude)">
+                and longitude = #{longitude}
+            </if>
+            <if test="latitude != null and !&quot;&quot;.equals(latitude)">
+                and latitude = #{latitude}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+
+            <if test="typeId != null and !&quot;&quot;.equals(typeId)">
+                and type_id = #{type_id}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="areaMapInfo != null and !&quot;&quot;.equals(areaMapInfo)">
+                and area_map_info = #{areaMapInfo}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+
+    <select id="queryLandMarkMapInfo" parameterType="java.util.Map" resultMap="MapInfoResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from land_mark
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="mapName != null and !&quot;&quot;.equals(mapName)">
+                and map_name = #{mapName}
+            </if>
+            <if test="ownedCityId != null and !&quot;&quot;.equals(ownedCityId)">
+                and owned_city_id = #{ownedCityId}
+            </if>
+            <if test="mapSprite != null and !&quot;&quot;.equals(mapSprite)">
+                and map_sprite = #{mapSprite}
+            </if>
+            <if test="logeSprite != null and !&quot;&quot;.equals(logeSprite)">
+                and loge_sprite = #{logeSprite}
+            </if>
+            <if test="openDescribe != null and !&quot;&quot;.equals(openDescribe)">
+                and open_describe = #{openDescribe}
+            </if>
+            <if test="markDescribe != null and !&quot;&quot;.equals(markDescribe)">
+                and mark_describe = #{markDescribe}
+            </if>
+            <if test="anchorImageGroupName != null and !&quot;&quot;.equals(anchorImageGroupName)">
+                and anchor_image_group_name = #{anchorImageGroupName}
+            </if>
+            <if test="defaultMode != null and !&quot;&quot;.equals(defaultMode)">
+                and default_mode = #{defaultMode}
+            </if>
+            <if test="vuforiaImageGroupId != null and !&quot;&quot;.equals(vuforiaImageGroupId)">
+                and vuforia_image_group_id = #{vuforiaImageGroupId}
+            </if>
+            <if test="vuforiaDataName != null and !&quot;&quot;.equals(vuforiaDataName)">
+                and vuforia_data_name = #{vuforiaDataName}
+            </if>
+            <if test="mapInfo != null and !&quot;&quot;.equals(mapInfo)">
+                and map_info = #{mapInfo}
+            </if>
+            <if test="mapWidth != null and !&quot;&quot;.equals(mapWidth)">
+                and map_width = #{mapWidth}
+            </if>
+            <if test="mapHeight != null and !&quot;&quot;.equals(mapHeight)">
+                and map_height = #{mapHeight}
+            </if>
+            <if test="mapRate != null and !&quot;&quot;.equals(mapRate)">
+                and map_rate = #{mapRate}
+            </if>
+            <if test="showInPanel != null and !&quot;&quot;.equals(showInPanel)">
+                and show_in_panel = #{showInPanel}
+            </if>
+            <if test="longitude != null and !&quot;&quot;.equals(longitude)">
+                and longitude = #{longitude}
+            </if>
+            <if test="latitude != null and !&quot;&quot;.equals(latitude)">
+                and latitude = #{latitude}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+
+            <if test="typeId != null and !&quot;&quot;.equals(typeId)">
+                and type_id = #{type_id}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="areaMapInfo != null and !&quot;&quot;.equals(areaMapInfo)">
+                and area_map_info = #{areaMapInfo}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE land_mark SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandMark">
+        select
+        <include refid="Base_Column_List"/>
+        from land_mark
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+
+    <resultMap id="MapInfoResultMap" type="com.izouma.awesomeadmin.model.LandMark" extends="BaseResultMap">
+
+        <association property="vuforiaImageGroup" javaType="com.izouma.awesomeadmin.model.VuforiaImageGroup"
+                     select="com.izouma.awesomeadmin.dao.VuforiaImageGroupMapper.queryVuforiaImageGroup"
+                     column="{id = vuforia_image_group_id}">
+        </association>
+
+        <collection property="vuforiaImageInfoList" ofType="com.izouma.awesomeadmin.model.VuforiaImageInfo"
+                    select="com.izouma.awesomeadmin.dao.VuforiaImageInfoMapper.queryAllVuforiaImageInfo"
+                    column="{landMarkId = id}">
+        </collection>
+        <collection property="aimPlaceContentList" ofType="com.izouma.awesomeadmin.model.AimPlaceContent"
+                    select="com.izouma.awesomeadmin.dao.AimPlaceContentMapper.queryAllAimPlaceContent"
+                    column="{ownedLandMarkId = id}">
+        </collection>
+        <collection property="aimPlacePositionList" ofType="com.izouma.awesomeadmin.model.AimPlacePosition"
+                    select="com.izouma.awesomeadmin.dao.AimPlacePositionMapper.queryAllAimPlacePosition"
+                    column="{ownedLandMarkId = id}">
+        </collection>
+        <collection property="areaInfoList" ofType="com.izouma.awesomeadmin.model.AreaInfo"
+                    select="com.izouma.awesomeadmin.dao.AreaInfoMapper.queryAllAreaInfoAllInfo"
+                    column="{landmarkId = id}">
+        </collection>
+
+    </resultMap>
+
+    <resultMap id="LandMarkChildResultMap" type="com.izouma.awesomeadmin.model.LandMark" extends="BaseResultMap">
+
+
+        <collection property="landMarkChildList" ofType="com.izouma.awesomeadmin.model.LandMark"
+                    select="com.izouma.awesomeadmin.dao.LandMarkMapper.queryAllLandMarkChild"
+                    column="{frontLevelId = id}">
+        </collection>
+    </resultMap>
+
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandmarkTypeMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.LandmarkType;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.LandmarkTypeMapper")
+public interface LandmarkTypeMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(LandmarkType record);
+
+    LandmarkType selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(LandmarkType record);
+
+    List<LandmarkType> queryAllLandmarkType(LandmarkType record);
+
+    List<LandmarkType> queryLandmarkTypeByPage(Map<String, Object> parameter);
+
+    int delete(LandmarkType record);
+
+    LandmarkType queryLandmarkType(LandmarkType record);
+
+    List<LandmarkType> query(LandmarkType record);
+}
+

+ 480 - 0
src/main/java/com/izouma/awesomeadmin/dao/LandmarkTypeMapper.xml

@@ -0,0 +1,480 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.LandmarkTypeMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.LandmarkType" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="type_flag" property="typeFlag" jdbcType="VARCHAR" />
+                                <result column="type_name" property="typeName" jdbcType="VARCHAR" />
+                                <result column="area_name" property="areaName" jdbcType="VARCHAR" />
+                                <result column="thing_name" property="thingName" jdbcType="VARCHAR" />
+                                <result column="icon" property="icon" jdbcType="VARCHAR" />
+                                <result column="remark" property="remark" jdbcType="VARCHAR" />
+                                <result column="power" property="power" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            type_flag,
+
+            type_name,
+
+            area_name,
+
+            thing_name,
+
+            icon,
+
+            remark,
+
+            power,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from landmark_type
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from landmark_type
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.LandmarkType" useGeneratedKeys="true" keyProperty="id">
+        insert into landmark_type
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="typeFlag!= null" >
+                type_flag,
+            </if>
+                <if test="typeName!= null" >
+                type_name,
+            </if>
+                <if test="areaName!= null" >
+                area_name,
+            </if>
+                <if test="thingName!= null" >
+                thing_name,
+            </if>
+                <if test="icon!= null" >
+                icon,
+            </if>
+                <if test="remark!= null" >
+                remark,
+            </if>
+                <if test="power!= null" >
+                power,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="typeFlag != null" >
+                #{typeFlag,jdbcType=VARCHAR},
+            </if>
+                    <if test="typeName != null" >
+                #{typeName,jdbcType=VARCHAR},
+            </if>
+                    <if test="areaName != null" >
+                #{areaName,jdbcType=VARCHAR},
+            </if>
+                    <if test="thingName != null" >
+                #{thingName,jdbcType=VARCHAR},
+            </if>
+                    <if test="icon != null" >
+                #{icon,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark != null" >
+                #{remark,jdbcType=VARCHAR},
+            </if>
+                    <if test="power != null" >
+                #{power,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.LandmarkType" >
+        update landmark_type
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="typeFlag != null" >
+               type_flag= #{typeFlag,jdbcType=VARCHAR},
+            </if>
+                     <if test="typeName != null" >
+               type_name= #{typeName,jdbcType=VARCHAR},
+            </if>
+                     <if test="areaName != null" >
+               area_name= #{areaName,jdbcType=VARCHAR},
+            </if>
+                     <if test="thingName != null" >
+               thing_name= #{thingName,jdbcType=VARCHAR},
+            </if>
+                     <if test="icon != null" >
+               icon= #{icon,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark != null" >
+               remark= #{remark,jdbcType=VARCHAR},
+            </if>
+                     <if test="power != null" >
+               power= #{power,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryLandmarkTypeByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandmarkType">
+        select <include refid="Base_Column_List"/> from landmark_type
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.typeFlag != null and !&quot;&quot;.equals(record.typeFlag)">
+                and  type_flag = #{record.typeFlag}
+            </if>
+                     <if test="record.typeName != null and !&quot;&quot;.equals(record.typeName)">
+                and  type_name = #{record.typeName}
+            </if>
+                     <if test="record.areaName != null and !&quot;&quot;.equals(record.areaName)">
+                and  area_name = #{record.areaName}
+            </if>
+                     <if test="record.thingName != null and !&quot;&quot;.equals(record.thingName)">
+                and  thing_name = #{record.thingName}
+            </if>
+                     <if test="record.icon != null and !&quot;&quot;.equals(record.icon)">
+                and  icon = #{record.icon}
+            </if>
+                     <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and  remark = #{record.remark}
+            </if>
+                     <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and  power = #{record.power}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  type_flag LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  type_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  area_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  thing_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  icon LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark LIKE concat('%',#{record.searchKey},'%')
+                                                                                                                              </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllLandmarkType" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandmarkType">
+        select <include refid="Base_Column_List"/> from landmark_type
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="typeFlag != null and !&quot;&quot;.equals(typeFlag)">
+                and  type_flag = #{typeFlag}
+            </if>
+                    <if test="typeName != null and !&quot;&quot;.equals(typeName)">
+                and  type_name = #{typeName}
+            </if>
+                    <if test="areaName != null and !&quot;&quot;.equals(areaName)">
+                and  area_name = #{areaName}
+            </if>
+                    <if test="thingName != null and !&quot;&quot;.equals(thingName)">
+                and  thing_name = #{thingName}
+            </if>
+                    <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and  icon = #{icon}
+            </if>
+                    <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and  remark = #{remark}
+            </if>
+                    <if test="power != null and !&quot;&quot;.equals(power)">
+                and  power = #{power}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  type_flag LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  type_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  area_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  thing_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  icon LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryLandmarkType" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandmarkType">
+        select <include refid="Base_Column_List"/> from landmark_type
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="typeFlag != null and !&quot;&quot;.equals(typeFlag)">
+                and type_flag = #{typeFlag}
+            </if>
+                     <if test="typeName != null and !&quot;&quot;.equals(typeName)">
+                and type_name = #{typeName}
+            </if>
+                     <if test="areaName != null and !&quot;&quot;.equals(areaName)">
+                and area_name = #{areaName}
+            </if>
+                     <if test="thingName != null and !&quot;&quot;.equals(thingName)">
+                and thing_name = #{thingName}
+            </if>
+                     <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+                     <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+                     <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE landmark_type SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.LandmarkType">
+        select <include refid="Base_Column_List"/> from landmark_type
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketAimPlaceMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.MarketAimPlace;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.MarketAimPlaceMapper")
+public interface MarketAimPlaceMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(MarketAimPlace record);
+
+    MarketAimPlace selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(MarketAimPlace record);
+
+    List<MarketAimPlace> queryAllMarketAimPlace(MarketAimPlace record);
+
+    List<MarketAimPlace> queryMarketAimPlaceByPage(Map<String, Object> parameter);
+
+    int delete(MarketAimPlace record);
+
+    MarketAimPlace queryMarketAimPlace(MarketAimPlace record);
+
+    List<MarketAimPlace> query(MarketAimPlace record);
+}
+

+ 482 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketAimPlaceMapper.xml

@@ -0,0 +1,482 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.MarketAimPlaceMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.MarketAimPlace" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="remark" property="remark" jdbcType="VARCHAR" />
+                                <result column="market_id" property="marketId" jdbcType="INTEGER" />
+                                <result column="place_name" property="placeName" jdbcType="VARCHAR" />
+                                <result column="pos_x" property="posX" jdbcType="INTEGER" />
+                                <result column="pos_y" property="posY" jdbcType="INTEGER" />
+                                <result column="pos_z" property="posZ" jdbcType="INTEGER" />
+                                <result column="type" property="type" jdbcType="INTEGER" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            remark,
+
+            market_id,
+
+            place_name,
+
+            pos_x,
+
+            pos_y,
+
+            pos_z,
+
+            type,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from market_aim_place
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from market_aim_place
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.MarketAimPlace" useGeneratedKeys="true" keyProperty="id">
+        insert into market_aim_place
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="remark!= null" >
+                remark,
+            </if>
+                <if test="marketId!= null" >
+                market_id,
+            </if>
+                <if test="placeName!= null" >
+                place_name,
+            </if>
+                <if test="posX!= null" >
+                pos_x,
+            </if>
+                <if test="posY!= null" >
+                pos_y,
+            </if>
+                <if test="posZ!= null" >
+                pos_z,
+            </if>
+                <if test="type!= null" >
+                type,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark != null" >
+                #{remark,jdbcType=VARCHAR},
+            </if>
+                    <if test="marketId != null" >
+                #{marketId,jdbcType=INTEGER},
+            </if>
+                    <if test="placeName != null" >
+                #{placeName,jdbcType=VARCHAR},
+            </if>
+                    <if test="posX != null" >
+                #{posX,jdbcType=INTEGER},
+            </if>
+                    <if test="posY != null" >
+                #{posY,jdbcType=INTEGER},
+            </if>
+                    <if test="posZ != null" >
+                #{posZ,jdbcType=INTEGER},
+            </if>
+                    <if test="type != null" >
+                #{type,jdbcType=INTEGER},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.MarketAimPlace" >
+        update market_aim_place
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark != null" >
+               remark= #{remark,jdbcType=VARCHAR},
+            </if>
+                     <if test="marketId != null" >
+               market_id= #{marketId,jdbcType=INTEGER},
+            </if>
+                     <if test="placeName != null" >
+               place_name= #{placeName,jdbcType=VARCHAR},
+            </if>
+                     <if test="posX != null" >
+               pos_x= #{posX,jdbcType=INTEGER},
+            </if>
+                     <if test="posY != null" >
+               pos_y= #{posY,jdbcType=INTEGER},
+            </if>
+                     <if test="posZ != null" >
+               pos_z= #{posZ,jdbcType=INTEGER},
+            </if>
+                     <if test="type != null" >
+               type= #{type,jdbcType=INTEGER},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryMarketAimPlaceByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketAimPlace">
+        select <include refid="Base_Column_List"/> from market_aim_place
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and  remark = #{record.remark}
+            </if>
+                     <if test="record.marketId != null and !&quot;&quot;.equals(record.marketId)">
+                and  market_id = #{record.marketId}
+            </if>
+                     <if test="record.placeName != null and !&quot;&quot;.equals(record.placeName)">
+                and  place_name = #{record.placeName}
+            </if>
+                     <if test="record.posX != null and !&quot;&quot;.equals(record.posX)">
+                and  pos_x = #{record.posX}
+            </if>
+                     <if test="record.posY != null and !&quot;&quot;.equals(record.posY)">
+                and  pos_y = #{record.posY}
+            </if>
+                     <if test="record.posZ != null and !&quot;&quot;.equals(record.posZ)">
+                and  pos_z = #{record.posZ}
+            </if>
+                     <if test="record.type != null and !&quot;&quot;.equals(record.type)">
+                and  type = #{record.type}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  remark LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  market_id LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  place_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  pos_x LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  pos_y LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  pos_z LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  type LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllMarketAimPlace" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketAimPlace">
+        select <include refid="Base_Column_List"/> from market_aim_place
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and  remark = #{remark}
+            </if>
+                    <if test="marketId != null and !&quot;&quot;.equals(marketId)">
+                and  market_id = #{marketId}
+            </if>
+                    <if test="placeName != null and !&quot;&quot;.equals(placeName)">
+                and  place_name = #{placeName}
+            </if>
+                    <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and  pos_x = #{posX}
+            </if>
+                    <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and  pos_y = #{posY}
+            </if>
+                    <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and  pos_z = #{posZ}
+            </if>
+                    <if test="type != null and !&quot;&quot;.equals(type)">
+                and  type = #{type}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  remark LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  market_id LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  place_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  pos_x LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  pos_y LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  pos_z LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  type LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryMarketAimPlace" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketAimPlace">
+        select <include refid="Base_Column_List"/> from market_aim_place
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+                     <if test="marketId != null and !&quot;&quot;.equals(marketId)">
+                and market_id = #{marketId}
+            </if>
+                     <if test="placeName != null and !&quot;&quot;.equals(placeName)">
+                and place_name = #{placeName}
+            </if>
+                     <if test="posX != null and !&quot;&quot;.equals(posX)">
+                and pos_x = #{posX}
+            </if>
+                     <if test="posY != null and !&quot;&quot;.equals(posY)">
+                and pos_y = #{posY}
+            </if>
+                     <if test="posZ != null and !&quot;&quot;.equals(posZ)">
+                and pos_z = #{posZ}
+            </if>
+                     <if test="type != null and !&quot;&quot;.equals(type)">
+                and type = #{type}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE market_aim_place SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketAimPlace">
+        select <include refid="Base_Column_List"/> from market_aim_place
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxDesMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.MarketMapBoxDes;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.MarketMapBoxDesMapper")
+public interface MarketMapBoxDesMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(MarketMapBoxDes record);
+
+    MarketMapBoxDes selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(MarketMapBoxDes record);
+
+    List<MarketMapBoxDes> queryAllMarketMapBoxDes(MarketMapBoxDes record);
+
+    List<MarketMapBoxDes> queryMarketMapBoxDesByPage(Map<String, Object> parameter);
+
+    int delete(MarketMapBoxDes record);
+
+    MarketMapBoxDes queryMarketMapBoxDes(MarketMapBoxDes record);
+
+    List<MarketMapBoxDes> query(MarketMapBoxDes record);
+}
+

+ 459 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxDesMapper.xml

@@ -0,0 +1,459 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.MarketMapBoxDesMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.MarketMapBoxDes" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="remark" property="remark" jdbcType="VARCHAR" />
+                                <result column="box" property="box" jdbcType="INTEGER" />
+                                <result column="item_name" property="itemName" jdbcType="VARCHAR" />
+                                <result column="item_mess" property="itemMess" jdbcType="VARCHAR" />
+                                <result column="item_des" property="itemDes" jdbcType="VARCHAR" />
+                                <result column="logo" property="logo" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            remark,
+
+            box,
+
+            item_name,
+
+            item_mess,
+
+            item_des,
+
+            logo,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from market_map_box_des
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from market_map_box_des
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.MarketMapBoxDes" useGeneratedKeys="true" keyProperty="id">
+        insert into market_map_box_des
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="remark!= null" >
+                remark,
+            </if>
+                <if test="box!= null" >
+                box,
+            </if>
+                <if test="itemName!= null" >
+                item_name,
+            </if>
+                <if test="itemMess!= null" >
+                item_mess,
+            </if>
+                <if test="itemDes!= null" >
+                item_des,
+            </if>
+                <if test="logo!= null" >
+                logo,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark != null" >
+                #{remark,jdbcType=VARCHAR},
+            </if>
+                    <if test="box != null" >
+                #{box,jdbcType=INTEGER},
+            </if>
+                    <if test="itemName != null" >
+                #{itemName,jdbcType=VARCHAR},
+            </if>
+                    <if test="itemMess != null" >
+                #{itemMess,jdbcType=VARCHAR},
+            </if>
+                    <if test="itemDes != null" >
+                #{itemDes,jdbcType=VARCHAR},
+            </if>
+                    <if test="logo != null" >
+                #{logo,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.MarketMapBoxDes" >
+        update market_map_box_des
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark != null" >
+               remark= #{remark,jdbcType=VARCHAR},
+            </if>
+                     <if test="box != null" >
+               box= #{box,jdbcType=INTEGER},
+            </if>
+                     <if test="itemName != null" >
+               item_name= #{itemName,jdbcType=VARCHAR},
+            </if>
+                     <if test="itemMess != null" >
+               item_mess= #{itemMess,jdbcType=VARCHAR},
+            </if>
+                     <if test="itemDes != null" >
+               item_des= #{itemDes,jdbcType=VARCHAR},
+            </if>
+                     <if test="logo != null" >
+               logo= #{logo,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryMarketMapBoxDesByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketMapBoxDes">
+        select <include refid="Base_Column_List"/> from market_map_box_des
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and  remark = #{record.remark}
+            </if>
+                     <if test="record.box != null and !&quot;&quot;.equals(record.box)">
+                and  box = #{record.box}
+            </if>
+                     <if test="record.itemName != null and !&quot;&quot;.equals(record.itemName)">
+                and  item_name = #{record.itemName}
+            </if>
+                     <if test="record.itemMess != null and !&quot;&quot;.equals(record.itemMess)">
+                and  item_mess = #{record.itemMess}
+            </if>
+                     <if test="record.itemDes != null and !&quot;&quot;.equals(record.itemDes)">
+                and  item_des = #{record.itemDes}
+            </if>
+                     <if test="record.logo != null and !&quot;&quot;.equals(record.logo)">
+                and  logo = #{record.logo}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                    OR  remark LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  box LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  item_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  item_mess LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  item_des LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  logo LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllMarketMapBoxDes" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketMapBoxDes">
+        select <include refid="Base_Column_List"/> from market_map_box_des
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and  remark = #{remark}
+            </if>
+                    <if test="box != null and !&quot;&quot;.equals(box)">
+                and  box = #{box}
+            </if>
+                    <if test="itemName != null and !&quot;&quot;.equals(itemName)">
+                and  item_name = #{itemName}
+            </if>
+                    <if test="itemMess != null and !&quot;&quot;.equals(itemMess)">
+                and  item_mess = #{itemMess}
+            </if>
+                    <if test="itemDes != null and !&quot;&quot;.equals(itemDes)">
+                and  item_des = #{itemDes}
+            </if>
+                    <if test="logo != null and !&quot;&quot;.equals(logo)">
+                and  logo = #{logo}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  remark LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  box LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  item_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  item_mess LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  item_des LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  logo LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryMarketMapBoxDes" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketMapBoxDes">
+        select <include refid="Base_Column_List"/> from market_map_box_des
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+                     <if test="box != null and !&quot;&quot;.equals(box)">
+                and box = #{box}
+            </if>
+                     <if test="itemName != null and !&quot;&quot;.equals(itemName)">
+                and item_name = #{itemName}
+            </if>
+                     <if test="itemMess != null and !&quot;&quot;.equals(itemMess)">
+                and item_mess = #{itemMess}
+            </if>
+                     <if test="itemDes != null and !&quot;&quot;.equals(itemDes)">
+                and item_des = #{itemDes}
+            </if>
+                     <if test="logo != null and !&quot;&quot;.equals(logo)">
+                and logo = #{logo}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE market_map_box_des SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.MarketMapBoxDes">
+        select <include refid="Base_Column_List"/> from market_map_box_des
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.MarketMapBox;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.MarketMapBoxMapper")
+public interface MarketMapBoxMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(MarketMapBox record);
+
+    MarketMapBox selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(MarketMapBox record);
+
+    List<MarketMapBox> queryAllMarketMapBox(MarketMapBox record);
+
+    List<MarketMapBox> queryMarketMapBoxByPage(Map<String, Object> parameter);
+
+    int delete(MarketMapBox record);
+
+    MarketMapBox queryMarketMapBox(MarketMapBox record);
+
+    List<MarketMapBox> query(MarketMapBox record);
+}
+

Datei-Diff unterdrückt, da er zu groß ist
+ 707 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketMapBoxMapper.xml


+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketMapMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.MarketMap;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.MarketMapMapper")
+public interface MarketMapMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(MarketMap record);
+
+    MarketMap selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(MarketMap record);
+
+    List<MarketMap> queryAllMarketMap(MarketMap record);
+
+    List<MarketMap> queryMarketMapByPage(Map<String, Object> parameter);
+
+    int delete(MarketMap record);
+
+    MarketMap queryMarketMap(MarketMap record);
+
+    List<MarketMap> query(MarketMap record);
+}
+

Datei-Diff unterdrückt, da er zu groß ist
+ 684 - 0
src/main/java/com/izouma/awesomeadmin/dao/MarketMapMapper.xml


+ 34 - 0
src/main/java/com/izouma/awesomeadmin/dao/PowerInfoMapper.java

@@ -0,0 +1,34 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.model.PowerInfo;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * power_info Dao接口
+ * Wed Apr 11 11:04:02 CST 2018  Suo Chen Cheng
+ */ 
+@Repository("com.zoumaframe.dao.PowerInfoMapper")
+public interface PowerInfoMapper {
+
+	int deleteByPrimaryKey(Integer id);
+
+	int insertSelective(PowerInfo record);
+
+	PowerInfo selectByPrimaryKey(Integer id);
+
+	int updateByPrimaryKeySelective(PowerInfo record);
+
+	List<PowerInfo> queryAllPowerInfo(PowerInfo record);
+
+	List<PowerInfo> queryPowerInfosByPage(Map<String, Object> parameter);
+
+	int delete(String id);
+
+	PowerInfo queryPowerInfo(PowerInfo record);
+
+	int deleteByRoleId(String roleId);
+}
+

+ 224 - 0
src/main/java/com/izouma/awesomeadmin/dao/PowerInfoMapper.xml

@@ -0,0 +1,224 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.PowerInfoMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.PowerInfo">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="role_id" property="roleId" jdbcType="INTEGER"/>
+        <result column="menu_id" property="menuId" jdbcType="INTEGER"/>
+        <result column="can_add" property="canAdd" jdbcType="INTEGER"/>
+        <result column="can_delete" property="canDelete" jdbcType="INTEGER"/>
+        <result column="can_update" property="canUpdate" jdbcType="INTEGER"/>
+        <result column="can_select" property="canSelect" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+		 id, role_id, menu_id, can_add, can_delete, can_update, can_select, del_flag
+	</sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_power_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+		delete from sys_power_info
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.PowerInfo" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into sys_power_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                id,
+            </if>
+            <if test="roleId != null">
+                role_id,
+            </if>
+            <if test="menuId != null">
+                menu_id,
+            </if>
+            <if test="canAdd != null">
+                can_add,
+            </if>
+            <if test="canDelete != null">
+                can_delete,
+            </if>
+            <if test="canUpdate != null">
+                can_update,
+            </if>
+            <if test="canSelect != null">
+                can_select,
+            </if>
+            <if test="delFlag != null">
+                del_flag,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="roleId != null">
+                #{roleId,jdbcType=INTEGER},
+            </if>
+            <if test="menuId != null">
+                #{menuId,jdbcType=INTEGER},
+            </if>
+            <if test="canAdd != null">
+                #{canAdd,jdbcType=INTEGER},
+            </if>
+            <if test="canDelete != null">
+                #{canDelete,jdbcType=INTEGER},
+            </if>
+            <if test="canUpdate != null">
+                #{canUpdate,jdbcType=INTEGER},
+            </if>
+            <if test="canSelect != null">
+                #{canSelect,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.PowerInfo">
+        update sys_power_info
+        <set>
+            <if test="roleId != null">
+                role_id = #{roleId,jdbcType=INTEGER},
+            </if>
+            <if test="menuId != null">
+                menu_id = #{menuId,jdbcType=INTEGER},
+            </if>
+            <if test="canAdd != null">
+                can_add = #{canAdd,jdbcType=INTEGER},
+            </if>
+            <if test="canDelete != null">
+                can_delete = #{canDelete,jdbcType=INTEGER},
+            </if>
+            <if test="canUpdate != null">
+                can_update = #{canUpdate,jdbcType=INTEGER},
+            </if>
+            <if test="canSelect != null">
+                can_select = #{canSelect,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag = #{delFlag,jdbcType=CHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+    <select id="queryPowerInfosByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.PowerInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_power_info
+        <where>
+            and del_flag = 'N'
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.roleId != null and !&quot;&quot;.equals(record.roleId)">
+                and role_id = #{record.roleId}
+            </if>
+            <if test="record.menuId != null and !&quot;&quot;.equals(record.menuId)">
+                and menu_id = #{record.menuId}
+            </if>
+            <if test="record.canAdd != null and !&quot;&quot;.equals(record.canAdd)">
+                and can_add = #{record.canAdd}
+            </if>
+            <if test="record.canDelete != null and !&quot;&quot;.equals(record.canDelete)">
+                and can_delete = #{record.canDelete}
+            </if>
+            <if test="record.canUpdate != null and !&quot;&quot;.equals(record.canUpdate)">
+                and can_update = #{record.canUpdate}
+            </if>
+            <if test="record.canSelect != null and !&quot;&quot;.equals(record.canSelect)">
+                and can_select = #{record.canSelect}
+            </if>
+        </where>
+        order by id desc
+    </select>
+    <select id="queryAllPowerInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.PowerInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_power_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="roleId != null and !&quot;&quot;.equals(roleId)">
+                and role_id = #{roleId}
+            </if>
+            <if test="menuId != null and !&quot;&quot;.equals(menuId)">
+                and menu_id = #{menuId}
+            </if>
+            <if test="canAdd != null and !&quot;&quot;.equals(canAdd)">
+                and can_add = #{canAdd}
+            </if>
+            <if test="canDelete != null and !&quot;&quot;.equals(canDelete)">
+                and can_delete = #{canDelete}
+            </if>
+            <if test="canUpdate != null and !&quot;&quot;.equals(canUpdate)">
+                and can_update = #{canUpdate}
+            </if>
+            <if test="canSelect != null and !&quot;&quot;.equals(canSelect)">
+                and can_select = #{canSelect}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="roleIdStr != null and !&quot;&quot;.equals(roleIdStr)">
+                and role_id in (${roleIdStr})
+            </if>
+        </where>
+        order by id desc
+    </select>
+    <select id="queryPowerInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.PowerInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_power_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="roleId != null and !&quot;&quot;.equals(roleId)">
+                and role_id = #{roleId}
+            </if>
+            <if test="menuId != null and !&quot;&quot;.equals(menuId)">
+                and menu_id = #{menuId}
+            </if>
+            <if test="canAdd != null and !&quot;&quot;.equals(canAdd)">
+                and can_add = #{canAdd}
+            </if>
+            <if test="canDelete != null and !&quot;&quot;.equals(canDelete)">
+                and can_delete = #{canDelete}
+            </if>
+            <if test="canUpdate != null and !&quot;&quot;.equals(canUpdate)">
+                and can_update = #{canUpdate}
+            </if>
+            <if test="canSelect != null and !&quot;&quot;.equals(canSelect)">
+                and can_select = #{canSelect}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE sys_power_info SET del_flag = 'Y'
+        <where>
+            AND id = #{id}
+        </where>
+    </update>
+
+    <update id="deleteByRoleId">
+        UPDATE sys_power_info SET del_flag = 'Y'
+        <where>
+            AND role_id = #{roleId}
+        </where>
+    </update>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/QueryConfigMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.QueryConfig;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.QueryConfigMapper")
+public interface QueryConfigMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(QueryConfig record);
+
+    QueryConfig selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(QueryConfig record);
+
+    List<QueryConfig> queryAllQueryConfig(QueryConfig record);
+
+    List<QueryConfig> queryQueryConfigByPage(Map<String, Object> parameter);
+
+    int delete(String id);
+
+    QueryConfig queryQueryConfig(QueryConfig record);
+
+    List<QueryConfig> query(QueryConfig record);
+}
+

+ 363 - 0
src/main/java/com/izouma/awesomeadmin/dao/QueryConfigMapper.xml

@@ -0,0 +1,363 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.QueryConfigMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.QueryConfig">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="code" property="code" jdbcType="VARCHAR"/>
+        <result column="table_name" property="tableName" jdbcType="VARCHAR"/>
+        <result column="tableColumns" property="tablecolumns" jdbcType="VARCHAR"/>
+        <result column="dataBaseType" property="databasetype" jdbcType="VARCHAR"/>
+        <result column="modules" property="modules" jdbcType="VARCHAR"/>
+        <result column="data_source_code" property="dataSourceCode" jdbcType="VARCHAR"/>
+        <result column="config_json" property="configJson" jdbcType="VARCHAR"/>
+        <result column="type_flag" property="typeFlag" jdbcType="VARCHAR"/>
+        <result column="sub_json" property="subJson" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            code,
+
+            table_name,
+
+            tableColumns,
+
+            dataBaseType,
+
+            modules,
+
+            data_source_code,
+
+            config_json,
+
+            type_flag,
+
+            sub_json,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_query_config
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from sys_query_config
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.QueryConfig" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into sys_query_config
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="code!= null">
+                code,
+            </if>
+            <if test="tableName!= null">
+                table_name,
+            </if>
+            <if test="tablecolumns!= null">
+                tableColumns,
+            </if>
+            <if test="databasetype!= null">
+                dataBaseType,
+            </if>
+            <if test="modules!= null">
+                modules,
+            </if>
+            <if test="dataSourceCode!= null">
+                data_source_code,
+            </if>
+            <if test="configJson!= null">
+                config_json,
+            </if>
+            <if test="typeFlag!= null">
+                type_flag,
+            </if>
+            <if test="subJson!= null">
+                sub_json,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="code != null">
+                #{code,jdbcType=VARCHAR},
+            </if>
+            <if test="tableName != null">
+                #{tableName,jdbcType=VARCHAR},
+            </if>
+            <if test="tablecolumns != null">
+                #{tablecolumns,jdbcType=VARCHAR},
+            </if>
+            <if test="databasetype != null">
+                #{databasetype,jdbcType=VARCHAR},
+            </if>
+            <if test="modules != null">
+                #{modules,jdbcType=VARCHAR},
+            </if>
+            <if test="dataSourceCode != null">
+                #{dataSourceCode,jdbcType=VARCHAR},
+            </if>
+            <if test="configJson != null">
+                #{configJson,jdbcType=VARCHAR},
+            </if>
+            <if test="typeFlag != null">
+                #{typeFlag,jdbcType=VARCHAR},
+            </if>
+            <if test="subJson != null">
+                #{subJson,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.QueryConfig">
+        update sys_query_config
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="code != null">
+                code= #{code,jdbcType=VARCHAR},
+            </if>
+            <if test="tableName != null">
+                table_name= #{tableName,jdbcType=VARCHAR},
+            </if>
+            <if test="tablecolumns != null">
+                tableColumns= #{tablecolumns,jdbcType=VARCHAR},
+            </if>
+            <if test="databasetype != null">
+                dataBaseType= #{databasetype,jdbcType=VARCHAR},
+            </if>
+            <if test="modules != null">
+                modules= #{modules,jdbcType=VARCHAR},
+            </if>
+            <if test="dataSourceCode != null">
+                data_source_code= #{dataSourceCode,jdbcType=VARCHAR},
+            </if>
+            <if test="configJson != null">
+                config_json= #{configJson,jdbcType=VARCHAR},
+            </if>
+            <if test="typeFlag != null">
+                type_flag= #{typeFlag,jdbcType=VARCHAR},
+            </if>
+            <if test="subJson != null">
+                sub_json= #{subJson,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+    <select id="queryQueryConfigByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.QueryConfig">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_query_config
+        <where>
+            and del_flag = 'N'
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.code != null and !&quot;&quot;.equals(record.code)">
+                and code = #{record.code}
+            </if>
+            <if test="record.tableName != null and !&quot;&quot;.equals(record.tableName)">
+                and table_name = #{record.tableName}
+            </if>
+            <if test="record.tablecolumns != null and !&quot;&quot;.equals(record.tablecolumns)">
+                and tableColumns = #{record.tablecolumns}
+            </if>
+            <if test="record.databasetype != null and !&quot;&quot;.equals(record.databasetype)">
+                and dataBaseType = #{record.databasetype}
+            </if>
+            <if test="record.modules != null and !&quot;&quot;.equals(record.modules)">
+                and modules = #{record.modules}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR code LIKE concat('%',#{record.searchKey},'%')
+                    OR table_name LIKE concat('%',#{record.searchKey},'%')
+                    OR tableColumns LIKE concat('%',#{record.searchKey},'%')
+                    OR dataBaseType LIKE concat('%',#{record.searchKey},'%')
+                    OR type_flag LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by id desc
+    </select>
+    <select id="queryAllQueryConfig" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.QueryConfig">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_query_config
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="code != null and !&quot;&quot;.equals(code)">
+                and code = #{code}
+            </if>
+            <if test="tableName != null and !&quot;&quot;.equals(tableName)">
+                and table_name = #{tableName}
+            </if>
+            <if test="tablecolumns != null and !&quot;&quot;.equals(tablecolumns)">
+                and tableColumns = #{tablecolumns}
+            </if>
+            <if test="databasetype != null and !&quot;&quot;.equals(databasetype)">
+                and dataBaseType = #{databasetype}
+            </if>
+            <if test="modules != null and !&quot;&quot;.equals(modules)">
+                and modules = #{modules}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR code LIKE concat('%',#{searchKey},'%')
+                    OR table_name LIKE concat('%',#{searchKey},'%')
+                    OR tableColumns LIKE concat('%',#{searchKey},'%')
+                    OR dataBaseType LIKE concat('%',#{searchKey},'%')
+                    OR type_flag LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by id desc
+    </select>
+    <select id="queryQueryConfig" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.QueryConfig">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_query_config
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="code != null and !&quot;&quot;.equals(code)">
+                and code = #{code}
+            </if>
+            <if test="tableName != null and !&quot;&quot;.equals(tableName)">
+                and table_name = #{tableName}
+            </if>
+            <if test="tablecolumns != null and !&quot;&quot;.equals(tablecolumns)">
+                and tableColumns = #{tablecolumns}
+            </if>
+            <if test="databasetype != null and !&quot;&quot;.equals(databasetype)">
+                and dataBaseType = #{databasetype}
+            </if>
+            <if test="modules != null and !&quot;&quot;.equals(modules)">
+                and modules = #{modules}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE sys_query_config SET del_flag = 'Y'
+        <where>
+            AND id = #{id}
+        </where>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.QueryConfig">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_query_config
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 26 - 0
src/main/java/com/izouma/awesomeadmin/dao/RongYunTokenMapper.java

@@ -0,0 +1,26 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.model.RongYunToken;
+
+public interface RongYunTokenMapper {
+
+    int deleteByPrimaryKey(Long id);
+
+
+    int insert(RongYunToken record);
+
+
+    int insertSelective(RongYunToken record);
+
+
+    RongYunToken selectByPrimaryKey(Long id);
+
+
+    int updateByPrimaryKeySelective(RongYunToken record);
+
+
+    int updateByPrimaryKey(RongYunToken record);
+
+
+    RongYunToken getRongToken(String rongKey);
+}

+ 95 - 0
src/main/java/com/izouma/awesomeadmin/dao/RongYunTokenMapper.xml

@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.RongYunTokenMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.RongYunToken">
+        <id column="id" property="id" jdbcType="BIGINT"/>
+        <result column="user_id" property="userId" jdbcType="VARCHAR"/>
+        <result column="token" property="token" jdbcType="VARCHAR"/>
+        <result column="type_flag" property="typeFlag" jdbcType="INTEGER"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+      id, user_id, token, type_flag
+    </sql>
+
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_rong_yun_token
+        where id = #{id,jdbcType=BIGINT}
+    </select>
+
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+        delete from sys_rong_yun_token
+        where id = #{id,jdbcType=BIGINT}
+    </delete>
+
+    <insert id="insert" parameterType="com.izouma.awesomeadmin.model.RongYunToken" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into sys_rong_yun_token (id, user_id, token)
+        values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{token,jdbcType=VARCHAR})
+    </insert>
+
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.RongYunToken" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into sys_rong_yun_token
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                id,
+            </if>
+            <if test="userId != null">
+                user_id,
+            </if>
+            <if test="token != null">
+                token,
+            </if>
+            <if test="typeFlag != null">
+                type_flag,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=BIGINT},
+            </if>
+            <if test="userId != null">
+                #{userId,jdbcType=BIGINT},
+            </if>
+            <if test="token != null">
+                #{token,jdbcType=VARCHAR},
+            </if>
+            <if test="typeFlag != null">
+                #{typeFlag,jdbcType=INTEGER},
+            </if>
+        </trim>
+    </insert>
+
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.RongYunToken">
+        update sys_rong_yun_token
+        <set>
+            <if test="userId != null">
+                user_id = #{userId,jdbcType=BIGINT},
+            </if>
+            <if test="token != null">
+                token = #{token,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where id = #{id,jdbcType=BIGINT}
+    </update>
+
+    <update id="updateByPrimaryKey" parameterType="com.izouma.awesomeadmin.model.RongYunToken">
+        update sys_rong_yun_token
+        set user_id = #{userId,jdbcType=BIGINT},
+            token = #{token,jdbcType=VARCHAR}
+        where id = #{id,jdbcType=BIGINT}
+    </update>
+
+    <select id="getRongToken" resultType="com.izouma.awesomeadmin.model.RongYunToken" parameterType="string">
+		SELECT
+		*
+		FROM sys_rong_yun_token
+		WHERE user_id = #{rongKey}
+		order by id desc
+		LIMIT 1
+	</select>
+
+</mapper>

+ 51 - 0
src/main/java/com/izouma/awesomeadmin/dao/SuperUserMapper.java

@@ -0,0 +1,51 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import org.springframework.stereotype.Repository;
+
+import com.izouma.awesomeadmin.model.SuperUser;
+
+@Repository("com.izouma.awesomeadmin.dao.SuperUserMapper")
+public interface SuperUserMapper {
+
+    /**
+     * 
+     * <p>获取用户列表。</p>
+     *
+     * @return TblUser list
+     */
+    List <SuperUser> queryAllUsers();
+
+
+    /**
+     * 
+     * <p>分页查询,需要以ByPage结尾。</p>
+     *
+     * @return
+     */
+    List <SuperUser> queryAllUsersByPage(Map <String, Object> parameter);
+
+
+    /**
+     * 
+     * <p>根据用户id获取单个用户。</p>
+     *
+     * @param id
+     * @return
+     */
+    SuperUser queryUserById(String userId);
+
+
+    int save(SuperUser superUser);
+
+
+    int updateUserInfo(Map <String, Object> parameter);
+
+
+    int delete(String userId);
+
+
+    SuperUser userLogin(Map <String, Object> parameter);
+}

+ 88 - 0
src/main/java/com/izouma/awesomeadmin/dao/SuperUserMapper.xml

@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.izouma.awesomeadmin.dao.SuperUserMapper">
+    <sql id="columns">
+        user_id, power, password, user_name, profile, del_flag
+  	</sql>
+
+    <select id="queryUserById" resultType="com.izouma.awesomeadmin.model.SuperUser" parameterType="string">
+        SELECT
+        <include refid="columns"/>
+        FROM sys_super_user
+        WHERE user_id = #{userId}
+        LIMIT 1
+    </select>
+
+    <select id="userLogin" resultType="com.izouma.awesomeadmin.model.SuperUser" parameterType="map">
+        SELECT
+        <include refid="columns"/>
+        FROM sys_super_user
+        WHERE user_name = #{username}
+        and password = #{password}
+        LIMIT 1
+    </select>
+
+    <select id="queryAllUsers" resultType="com.izouma.awesomeadmin.model.SuperUser">
+        SELECT
+        <include refid="columns"/>
+        FROM sys_super_user
+        where del_flag = 'N'
+        order by user_id
+        <!-- 为了测试只取100个 -->
+        <!-- LIMIT 100  -->
+    </select>
+
+    <select id="queryAllUsersByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SuperUser">
+        select
+        <include refid="columns"/>
+        from sys_super_user
+        <where>
+            <!--  
+            <if test="userInfo.userId != null and !&quot;&quot;.equals(userInfo.userId)">
+                and user_id=#{userInfo.userId}
+            </if>
+            <if test="userInfo.username != null and !&quot;&quot;.equals(userInfo.username.trim())">
+                and user_name like '%' #{userInfo.username} '%'
+            </if>
+            -->
+        </where>
+        order by user_id
+    </select>
+
+    <insert id="save" parameterType="com.izouma.awesomeadmin.model.SuperUser" useGeneratedKeys="true" keyProperty="id">
+	    INSERT INTO sys_super_user (user_name, power, password, profile)
+        VALUES (#{username}, #{power}, #{password}, #{profile})
+    </insert>
+
+    <update id="updateUserInfo">
+        UPDATE sys_super_user
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="userInfo.userId != null">
+                user_Id = #{userInfo.userId},
+            </if>
+            <if test="userInfo.username != null">
+                user_name = #{userInfo.username},
+            </if>
+            <if test="userInfo.password != null">
+                password = #{userInfo.password},
+            </if>
+            <if test="userInfo.profile != null">
+                profile = #{userInfo.profile},
+            </if>
+            <if test="userInfo.power != null">
+                power = #{userInfo.power},
+            </if>
+        </trim>
+        <where>
+            AND user_id = #{userId}
+        </where>
+    </update>
+
+    <update id="delete">
+        UPDATE sys_super_user SET del_flag = 'Y'
+        <where>
+            AND user_id = #{userId}
+        </where>
+    </update>
+</mapper>

+ 14 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysAppTokenMapper.java

@@ -0,0 +1,14 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.shiro.AppToken;
+import org.apache.ibatis.annotations.Param;
+
+public interface SysAppTokenMapper {
+    int saveToken(@Param("userId") Integer userId, @Param("token") String token);
+
+    AppToken getToken(String token);
+
+    int delToken(String token);
+
+    int delUserToken(Integer userId);
+}

+ 18 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysAppTokenMapper.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.izouma.awesomeadmin.dao.SysAppTokenMapper">
+    <insert id="saveToken">
+        insert into sys_app_token (user_id, token)
+        values (#{userId}, #{token})
+    </insert>
+    <delete id="delToken">
+        delete from sys_app_token where token = #{token}
+    </delete>
+    <delete id="delUserToken">
+        delete from sys_app_token where user_id = #{userId}
+    </delete>
+    <select id="getToken" resultType="com.izouma.awesomeadmin.shiro.AppToken">
+        select * from sys_app_token where token = #{token}
+    </select>
+
+</mapper>

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysDataruleMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import com.izouma.awesomeadmin.model.SysDatarule;
+import org.springframework.stereotype.Repository;
+
+
+/**
+ * sys_datarule Dao接口
+ * Tue Apr 17 10:44:06 CST 2018  Suo Chen Cheng
+ */ 
+@Repository("com.izouma.awesomeadmin.dao.SysDataruleMapper")
+public interface SysDataruleMapper {
+
+	int deleteByPrimaryKey(Integer id);
+
+	int insertSelective(SysDatarule record);
+
+	SysDatarule selectByPrimaryKey(Integer id);
+
+	int updateByPrimaryKeySelective(SysDatarule record);
+
+	List <SysDatarule> queryAllSysDatarule(SysDatarule record);
+
+	List <SysDatarule> querySysDatarulesByPage(Map <String, Object> parameter);
+
+	int delete(String id);
+
+	SysDatarule querySysDatarule(SysDatarule record);
+}
+

+ 153 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysDataruleMapper.xml

@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.SysDataruleMapper" >
+	<resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.SysDatarule" >
+		<id column="id" property="id" jdbcType="INTEGER" />
+		<result column="datarule_name" property="dataruleName" jdbcType="VARCHAR" />
+		<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
+		<result column="del_flag" property="delFlag" jdbcType="CHAR" />
+		<result column="permission" property="permission" jdbcType="VARCHAR" />
+	</resultMap>
+	<sql id="Base_Column_List" >
+		 id, datarule_name, create_date, del_flag,permission
+	</sql>
+	<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+		select
+		<include refid="Base_Column_List" />
+		from sys_datarule
+		where id = #{id,jdbcType=INTEGER}
+	</select>
+	<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+		delete from sys_datarule
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+	<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.SysDatarule" useGeneratedKeys="true" keyProperty="id">
+		insert into sys_datarule
+		<trim prefix="(" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				id,	
+			</if>
+			<if test="dataruleName != null" >
+				datarule_name,	
+			</if>
+			<if test="createDate != null" >
+				create_date,	
+			</if>
+			<if test="delFlag != null" >
+				del_flag,	
+			</if>
+			<if test="permission != null" >
+				permission,
+			</if>
+
+		</trim>
+		<trim prefix="values (" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				#{id,jdbcType=INTEGER},	
+			</if>
+			<if test="dataruleName != null" >
+				#{dataruleName,jdbcType=VARCHAR},	
+			</if>
+			<if test="createDate != null" >
+				#{createDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="delFlag != null" >
+				#{delFlag,jdbcType=CHAR},	
+			</if>
+			<if test="permission != null" >
+				#{permission,jdbcType=VARCHAR},
+			</if>
+		</trim>
+	</insert>
+	<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.SysDatarule" >
+		update sys_datarule
+		<set >
+			<if test="dataruleName != null" >
+				datarule_name = #{dataruleName,jdbcType=VARCHAR},	
+			</if>
+			<if test="createDate != null" >
+				create_date = #{createDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="delFlag != null" >
+				del_flag = #{delFlag,jdbcType=CHAR},	
+			</if>
+			<if test="permission != null" >
+				permission = #{permission,jdbcType=VARCHAR},
+			</if>
+		</set>
+		where id = #{id,jdbcType=INTEGER}
+	</update>
+	<select id="querySysDatarulesByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysDatarule">
+		select <include refid="Base_Column_List"/> from sys_datarule
+		<where>
+			and del_flag = 'N'
+			<if test="record.id != null and !&quot;&quot;.equals(record.id)">
+				and id = #{record.id}	
+			</if>
+			<if test="record.dataruleName != null and !&quot;&quot;.equals(record.dataruleName)">
+				and datarule_name = #{record.dataruleName}	
+			</if>
+			<if test="record.createDate != null and !&quot;&quot;.equals(record.createDate)">
+				and create_date = #{record.createDate}	
+			</if>
+			<if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+				and del_flag = #{record.delFlag}	
+			</if>
+			<if test="record.permission != null and !&quot;&quot;.equals(record.permission)">
+				and permission = #{record.permission}
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryAllSysDatarule" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysDatarule">
+		select <include refid="Base_Column_List"/> from sys_datarule
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="dataruleName != null and !&quot;&quot;.equals(dataruleName)">
+				and datarule_name = #{dataruleName}	
+			</if>
+			<if test="createDate != null and !&quot;&quot;.equals(createDate)">
+				and create_date = #{createDate}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="querySysDatarule" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysDatarule">
+		select <include refid="Base_Column_List"/> from sys_datarule
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="dataruleName != null and !&quot;&quot;.equals(dataruleName)">
+				and datarule_name = #{dataruleName}	
+			</if>
+			<if test="createDate != null and !&quot;&quot;.equals(createDate)">
+				and create_date = #{createDate}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}
+			</if>
+		</where>
+		LIMIT 1
+	</select>
+	<update id="delete">
+		UPDATE sys_datarule SET del_flag = 'Y'
+		<where>
+			AND id = #{id}
+		</where>
+	</update>
+</mapper>
+

+ 34 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysMenuMapper.java

@@ -0,0 +1,34 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.model.SysMenu;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * sys_menu Dao接口
+ * Tue Apr 10 18:09:44 CST 2018  Suo Chen Cheng
+ */ 
+@Repository("com.zoumaframe.dao.SysMenuMapper")
+public interface SysMenuMapper {
+
+	int deleteByPrimaryKey(Integer id);
+
+	int insertSelective(SysMenu record);
+
+	SysMenu selectByPrimaryKey(Integer id);
+
+	List<SysMenu> selectByPrimaryKeys(String ids);
+
+	int updateByPrimaryKeySelective(SysMenu record);
+
+	List<SysMenu> queryAllSysMenu(SysMenu record);
+
+	List<SysMenu> querySysMenusByPage(Map<String, Object> parameter);
+
+	int delete(String id);
+
+	SysMenu querySysMenu(SysMenu record);
+}
+

+ 386 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysMenuMapper.xml

@@ -0,0 +1,386 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.SysMenuMapper" >
+	<resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.SysMenu" >
+		<id column="id" property="id" jdbcType="INTEGER" />
+		<result column="parent_id" property="parentId" jdbcType="INTEGER" />
+		<result column="parent_ids" property="parentIds" jdbcType="VARCHAR" />
+		<result column="name" property="name" jdbcType="VARCHAR" />
+		<result column="sort" property="sort" jdbcType="DECIMAL" />
+		<result column="href" property="href" jdbcType="VARCHAR" />
+		<result column="target" property="target" jdbcType="VARCHAR" />
+		<result column="icon" property="icon" jdbcType="VARCHAR" />
+		<result column="is_show" property="isShow" jdbcType="CHAR" />
+		<result column="permission" property="permission" jdbcType="VARCHAR" />
+		<result column="create_by" property="createBy" jdbcType="VARCHAR" />
+		<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
+		<result column="update_by" property="updateBy" jdbcType="VARCHAR" />
+		<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
+		<result column="remarks" property="remarks" jdbcType="VARCHAR" />
+		<result column="del_flag" property="delFlag" jdbcType="CHAR" />
+		<result column="menu_type" property="menuType" jdbcType="CHAR" />
+	</resultMap>
+	<sql id="Base_Column_List" >
+		 id, parent_id, parent_ids, name, sort, href, target, icon, is_show, permission, create_by, create_date, update_by, update_date, remarks, del_flag, menu_type
+	</sql>
+	<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+		select
+		<include refid="Base_Column_List" />
+		from sys_menu
+		where id = #{id,jdbcType=INTEGER}
+	</select>
+	<select id="selectByPrimaryKeys" resultMap="BaseResultMap" parameterType="java.lang.String" >
+		select
+		<include refid="Base_Column_List" />
+		from sys_menu
+		where FIND_IN_SET(id, #{ids,jdbcType=INTEGER}) and del_flag = 'N'
+	</select>
+	<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+		delete from sys_menu
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+	<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.SysMenu" useGeneratedKeys="true" keyProperty="id">
+		insert into sys_menu
+		<trim prefix="(" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				id,	
+			</if>
+			<if test="parentId != null" >
+				parent_id,	
+			</if>
+			<if test="parentIds != null" >
+				parent_ids,	
+			</if>
+			<if test="name != null" >
+				name,	
+			</if>
+			<if test="sort != null" >
+				sort,	
+			</if>
+			<if test="href != null" >
+				href,	
+			</if>
+			<if test="target != null" >
+				target,	
+			</if>
+			<if test="icon != null" >
+				icon,	
+			</if>
+			<if test="isShow != null" >
+				is_show,	
+			</if>
+			<if test="permission != null" >
+				permission,	
+			</if>
+			<if test="createBy != null" >
+				create_by,	
+			</if>
+			<if test="createDate != null" >
+				create_date,	
+			</if>
+			<if test="updateBy != null" >
+				update_by,	
+			</if>
+			<if test="updateDate != null" >
+				update_date,	
+			</if>
+			<if test="remarks != null" >
+				remarks,	
+			</if>
+			<if test="delFlag != null" >
+				del_flag,	
+			</if>
+			<if test="menuType != null" >
+				menu_type,	
+			</if>
+		</trim>
+		<trim prefix="values (" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				#{id,jdbcType=INTEGER},	
+			</if>
+			<if test="parentId != null" >
+				#{parentId,jdbcType=INTEGER},	
+			</if>
+			<if test="parentIds != null" >
+				#{parentIds,jdbcType=VARCHAR},	
+			</if>
+			<if test="name != null" >
+				#{name,jdbcType=VARCHAR},	
+			</if>
+			<if test="sort != null" >
+				#{sort,jdbcType=DECIMAL},	
+			</if>
+			<if test="href != null" >
+				#{href,jdbcType=VARCHAR},	
+			</if>
+			<if test="target != null" >
+				#{target,jdbcType=VARCHAR},	
+			</if>
+			<if test="icon != null" >
+				#{icon,jdbcType=VARCHAR},	
+			</if>
+			<if test="isShow != null" >
+				#{isShow,jdbcType=CHAR},	
+			</if>
+			<if test="permission != null" >
+				#{permission,jdbcType=VARCHAR},	
+			</if>
+			<if test="createBy != null" >
+				#{createBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="createDate != null" >
+				#{createDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="updateBy != null" >
+				#{updateBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="updateDate != null" >
+				#{updateDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="remarks != null" >
+				#{remarks,jdbcType=VARCHAR},	
+			</if>
+			<if test="delFlag != null" >
+				#{delFlag,jdbcType=CHAR},	
+			</if>
+			<if test="menuType != null" >
+				#{menuType,jdbcType=CHAR},	
+			</if>
+		</trim>
+	</insert>
+	<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.SysMenu" >
+		update sys_menu
+		<set >
+			<if test="parentId != null" >
+				parent_id = #{parentId,jdbcType=INTEGER},	
+			</if>
+			<if test="parentIds != null" >
+				parent_ids = #{parentIds,jdbcType=VARCHAR},	
+			</if>
+			<if test="name != null" >
+				name = #{name,jdbcType=VARCHAR},	
+			</if>
+			<if test="sort != null" >
+				sort = #{sort,jdbcType=DECIMAL},	
+			</if>
+			<if test="href != null" >
+				href = #{href,jdbcType=VARCHAR},	
+			</if>
+			<if test="target != null" >
+				target = #{target,jdbcType=VARCHAR},	
+			</if>
+			<if test="icon != null" >
+				icon = #{icon,jdbcType=VARCHAR},	
+			</if>
+			<if test="isShow != null" >
+				is_show = #{isShow,jdbcType=CHAR},	
+			</if>
+			<if test="permission != null" >
+				permission = #{permission,jdbcType=VARCHAR},	
+			</if>
+			<if test="createBy != null" >
+				create_by = #{createBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="createDate != null" >
+				create_date = #{createDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="updateBy != null" >
+				update_by = #{updateBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="updateDate != null" >
+				update_date = #{updateDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="remarks != null" >
+				remarks = #{remarks,jdbcType=VARCHAR},	
+			</if>
+			<if test="delFlag != null" >
+				del_flag = #{delFlag,jdbcType=CHAR},	
+			</if>
+			<if test="menuType != null" >
+				menu_type = #{menuType,jdbcType=CHAR},	
+			</if>
+		</set>
+		where id = #{id,jdbcType=INTEGER}
+	</update>
+	<select id="querySysMenusByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysMenu">
+		select <include refid="Base_Column_List"/> from sys_menu
+		<where>
+			and del_flag = 'N'
+			<if test="record.id != null and !&quot;&quot;.equals(record.id)">
+				and id = #{record.id}	
+			</if>
+			<if test="record.parentId != null and !&quot;&quot;.equals(record.parentId)">
+				and parent_id = #{record.parentId}	
+			</if>
+			<if test="record.parentIds != null and !&quot;&quot;.equals(record.parentIds)">
+				and parent_ids = #{record.parentIds}	
+			</if>
+			<if test="record.name != null and !&quot;&quot;.equals(record.name)">
+				and name = #{record.name}	
+			</if>
+			<if test="record.sort != null and !&quot;&quot;.equals(record.sort)">
+				and sort = #{record.sort}	
+			</if>
+			<if test="record.href != null and !&quot;&quot;.equals(record.href)">
+				and href = #{record.href}	
+			</if>
+			<if test="record.target != null and !&quot;&quot;.equals(record.target)">
+				and target = #{record.target}	
+			</if>
+			<if test="record.icon != null and !&quot;&quot;.equals(record.icon)">
+				and icon = #{record.icon}	
+			</if>
+			<if test="record.isShow != null and !&quot;&quot;.equals(record.isShow)">
+				and is_show = #{record.isShow}	
+			</if>
+			<if test="record.permission != null and !&quot;&quot;.equals(record.permission)">
+				and permission = #{record.permission}	
+			</if>
+			<if test="record.createBy != null and !&quot;&quot;.equals(record.createBy)">
+				and create_by = #{record.createBy}	
+			</if>
+			<if test="record.createDate != null and !&quot;&quot;.equals(record.createDate)">
+				and create_date = #{record.createDate}	
+			</if>
+			<if test="record.updateBy != null and !&quot;&quot;.equals(record.updateBy)">
+				and update_by = #{record.updateBy}	
+			</if>
+			<if test="record.updateDate != null and !&quot;&quot;.equals(record.updateDate)">
+				and update_date = #{record.updateDate}	
+			</if>
+			<if test="record.remarks != null and !&quot;&quot;.equals(record.remarks)">
+				and remarks = #{record.remarks}	
+			</if>
+			<if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+				and del_flag = #{record.delFlag}	
+			</if>
+			<if test="record.menuType != null and !&quot;&quot;.equals(record.menuType)">
+				and menu_type = #{record.menuType}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryAllSysMenu" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysMenu">
+		select <include refid="Base_Column_List"/> from sys_menu
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="parentId != null and !&quot;&quot;.equals(parentId)">
+				and parent_id = #{parentId}	
+			</if>
+			<if test="parentIds != null and !&quot;&quot;.equals(parentIds)">
+				and parent_ids = #{parentIds}	
+			</if>
+			<if test="name != null and !&quot;&quot;.equals(name)">
+				and name = #{name}	
+			</if>
+			<if test="sort != null and !&quot;&quot;.equals(sort)">
+				and sort = #{sort}	
+			</if>
+			<if test="href != null and !&quot;&quot;.equals(href)">
+				and href = #{href}	
+			</if>
+			<if test="target != null and !&quot;&quot;.equals(target)">
+				and target = #{target}	
+			</if>
+			<if test="icon != null and !&quot;&quot;.equals(icon)">
+				and icon = #{icon}	
+			</if>
+			<if test="isShow != null and !&quot;&quot;.equals(isShow)">
+				and is_show = #{isShow}	
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}	
+			</if>
+			<if test="createBy != null and !&quot;&quot;.equals(createBy)">
+				and create_by = #{createBy}	
+			</if>
+			<if test="createDate != null and !&quot;&quot;.equals(createDate)">
+				and create_date = #{createDate}	
+			</if>
+			<if test="updateBy != null and !&quot;&quot;.equals(updateBy)">
+				and update_by = #{updateBy}	
+			</if>
+			<if test="updateDate != null and !&quot;&quot;.equals(updateDate)">
+				and update_date = #{updateDate}	
+			</if>
+			<if test="remarks != null and !&quot;&quot;.equals(remarks)">
+				and remarks = #{remarks}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="menuType != null and !&quot;&quot;.equals(menuType)">
+				and menu_type = #{menuType}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="querySysMenu" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysMenu">
+		select <include refid="Base_Column_List"/> from sys_menu
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="parentId != null and !&quot;&quot;.equals(parentId)">
+				and parent_id = #{parentId}	
+			</if>
+			<if test="parentIds != null and !&quot;&quot;.equals(parentIds)">
+				and parent_ids = #{parentIds}	
+			</if>
+			<if test="name != null and !&quot;&quot;.equals(name)">
+				and name = #{name}	
+			</if>
+			<if test="sort != null and !&quot;&quot;.equals(sort)">
+				and sort = #{sort}	
+			</if>
+			<if test="href != null and !&quot;&quot;.equals(href)">
+				and href = #{href}	
+			</if>
+			<if test="target != null and !&quot;&quot;.equals(target)">
+				and target = #{target}	
+			</if>
+			<if test="icon != null and !&quot;&quot;.equals(icon)">
+				and icon = #{icon}	
+			</if>
+			<if test="isShow != null and !&quot;&quot;.equals(isShow)">
+				and is_show = #{isShow}	
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}	
+			</if>
+			<if test="createBy != null and !&quot;&quot;.equals(createBy)">
+				and create_by = #{createBy}	
+			</if>
+			<if test="createDate != null and !&quot;&quot;.equals(createDate)">
+				and create_date = #{createDate}	
+			</if>
+			<if test="updateBy != null and !&quot;&quot;.equals(updateBy)">
+				and update_by = #{updateBy}	
+			</if>
+			<if test="updateDate != null and !&quot;&quot;.equals(updateDate)">
+				and update_date = #{updateDate}	
+			</if>
+			<if test="remarks != null and !&quot;&quot;.equals(remarks)">
+				and remarks = #{remarks}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="menuType != null and !&quot;&quot;.equals(menuType)">
+				and menu_type = #{menuType}	
+			</if>
+		</where>
+		LIMIT 1
+	</select>
+	<update id="delete">
+		UPDATE sys_menu SET del_flag = 'Y'
+		<where>
+			AND id = #{id}
+		</where>
+	</update>
+</mapper>
+

+ 47 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysRoleMapper.java

@@ -0,0 +1,47 @@
+package com.izouma.awesomeadmin.dao;
+
+import com.izouma.awesomeadmin.model.SysRole;
+import org.apache.ibatis.annotations.Param;
+import org.springframework.stereotype.Repository;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * sys_role Dao接口
+ * Tue Apr 10 18:09:56 CST 2018  Suo Chen Cheng
+ */
+@Repository("com.zoumaframe.dao.SysRoleMapper")
+public interface SysRoleMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(SysRole record);
+
+    SysRole selectByPrimaryKey(Integer id);
+
+    List<SysRole> selectByPrimaryKeys(@Param("ids") String ids);
+
+    int updateByPrimaryKeySelective(SysRole record);
+
+    List<SysRole> queryAllSysRole(SysRole record);
+
+    List<SysRole> querySysRolesByPage(Map<String, Object> parameter);
+
+    int delete(String id);
+
+    SysRole querySysRole(SysRole record);
+
+    List<SysRole> getUserRoles(@Param("userId") Integer userId);
+
+    int setUserRoles(@Param("userId") Integer userId, @Param("roles") List<String> roles);
+
+    int clearUserRoles(@Param("userId") Integer userId);
+
+    int addUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);
+
+    int removeUserRole(@Param("userId") Integer userId, @Param("roleId") Integer roleId);
+
+    String getUserRoleId(Integer id);
+}
+

+ 372 - 0
src/main/java/com/izouma/awesomeadmin/dao/SysRoleMapper.xml

@@ -0,0 +1,372 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.SysRoleMapper" >
+	<resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.SysRole" >
+		<id column="id" property="id" jdbcType="INTEGER" />
+		<result column="office_id" property="officeId" jdbcType="VARCHAR" />
+		<result column="name" property="name" jdbcType="VARCHAR" />
+		<result column="enname" property="enname" jdbcType="VARCHAR" />
+		<result column="role_type" property="roleType" jdbcType="VARCHAR" />
+		<result column="is_sys" property="isSys" jdbcType="VARCHAR" />
+		<result column="useable" property="useable" jdbcType="VARCHAR" />
+		<result column="create_by" property="createBy" jdbcType="VARCHAR" />
+		<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
+		<result column="update_by" property="updateBy" jdbcType="VARCHAR" />
+		<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
+		<result column="remarks" property="remarks" jdbcType="VARCHAR" />
+		<result column="del_flag" property="delFlag" jdbcType="CHAR" />
+		<result column="menu_ids" property="menuIds" jdbcType="VARCHAR" />
+		<result column="permission" property="permission" jdbcType="VARCHAR" />
+	</resultMap>
+	<sql id="Base_Column_List" >
+		 id, office_id, name, enname, role_type, is_sys, useable, create_by, create_date, update_by, update_date, remarks, del_flag,menu_ids,permission
+	</sql>
+	<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+		select
+		<include refid="Base_Column_List" />
+		from sys_role
+		where id = #{id,jdbcType=INTEGER}
+	</select>
+	<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+		delete from sys_role
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+	<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.SysRole" useGeneratedKeys="true" keyProperty="id">
+		insert into sys_role
+		<trim prefix="(" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				id,	
+			</if>
+			<if test="officeId != null" >
+				office_id,	
+			</if>
+			<if test="name != null" >
+				name,	
+			</if>
+			<if test="enname != null" >
+				enname,	
+			</if>
+			<if test="roleType != null" >
+				role_type,	
+			</if>
+			<if test="isSys != null" >
+				is_sys,	
+			</if>
+			<if test="useable != null" >
+				useable,	
+			</if>
+			<if test="createBy != null" >
+				create_by,	
+			</if>
+			<if test="createDate != null" >
+				create_date,	
+			</if>
+			<if test="updateBy != null" >
+				update_by,	
+			</if>
+			<if test="updateDate != null" >
+				update_date,	
+			</if>
+			<if test="remarks != null" >
+				remarks,	
+			</if>
+			<if test="menuIds != null" >
+				menu_ids,
+			</if>
+			<if test="permission != null" >
+				permission,
+			</if>
+		</trim>
+		<trim prefix="values (" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				#{id,jdbcType=INTEGER},	
+			</if>
+			<if test="officeId != null" >
+				#{officeId,jdbcType=VARCHAR},	
+			</if>
+			<if test="name != null" >
+				#{name,jdbcType=VARCHAR},	
+			</if>
+			<if test="enname != null" >
+				#{enname,jdbcType=VARCHAR},	
+			</if>
+			<if test="roleType != null" >
+				#{roleType,jdbcType=VARCHAR},	
+			</if>
+			<if test="isSys != null" >
+				#{isSys,jdbcType=VARCHAR},	
+			</if>
+			<if test="useable != null" >
+				#{useable,jdbcType=VARCHAR},	
+			</if>
+			<if test="createBy != null" >
+				#{createBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="createDate != null" >
+				#{createDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="updateBy != null" >
+				#{updateBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="updateDate != null" >
+				#{updateDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="remarks != null" >
+				#{remarks,jdbcType=VARCHAR},	
+			</if>
+			<if test="menuIds != null" >
+				#{menuIds,jdbcType=VARCHAR},
+			</if>
+			<if test="permission != null" >
+				#{permission,jdbcType=VARCHAR},
+			</if>
+		</trim>
+	</insert>
+	<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.SysRole" >
+		update sys_role
+		<set >
+			<if test="officeId != null" >
+				office_id = #{officeId,jdbcType=VARCHAR},	
+			</if>
+			<if test="name != null" >
+				name = #{name,jdbcType=VARCHAR},	
+			</if>
+			<if test="enname != null" >
+				enname = #{enname,jdbcType=VARCHAR},	
+			</if>
+			<if test="roleType != null" >
+				role_type = #{roleType,jdbcType=VARCHAR},	
+			</if>
+			<if test="isSys != null" >
+				is_sys = #{isSys,jdbcType=VARCHAR},	
+			</if>
+			<if test="useable != null" >
+				useable = #{useable,jdbcType=VARCHAR},	
+			</if>
+			<if test="createBy != null" >
+				create_by = #{createBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="createDate != null" >
+				create_date = #{createDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="updateBy != null" >
+				update_by = #{updateBy,jdbcType=VARCHAR},	
+			</if>
+			<if test="updateDate != null" >
+				update_date = #{updateDate,jdbcType=TIMESTAMP},	
+			</if>
+			<if test="remarks != null" >
+				remarks = #{remarks,jdbcType=VARCHAR},	
+			</if>
+			<if test="delFlag != null" >
+				del_flag = #{delFlag,jdbcType=CHAR},	
+			</if>
+			<if test="menuIds != null" >
+				menu_ids = #{menuIds,jdbcType=VARCHAR},
+			</if>
+			<if test="permission != null" >
+				permission = #{permission,jdbcType=VARCHAR},
+			</if>
+		</set>
+		where id = #{id,jdbcType=INTEGER}
+	</update>
+	<select id="querySysRolesByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysRole">
+		select <include refid="Base_Column_List"/> from sys_role
+		<where>
+			and del_flag = 'N'
+			<if test="record.id != null and !&quot;&quot;.equals(record.id)">
+				and id = #{record.id}	
+			</if>
+			<if test="record.officeId != null and !&quot;&quot;.equals(record.officeId)">
+				and office_id = #{record.officeId}	
+			</if>
+			<if test="record.name != null and !&quot;&quot;.equals(record.name)">
+				and name = #{record.name}	
+			</if>
+			<if test="record.enname != null and !&quot;&quot;.equals(record.enname)">
+				and enname = #{record.enname}	
+			</if>
+			<if test="record.roleType != null and !&quot;&quot;.equals(record.roleType)">
+				and role_type = #{record.roleType}	
+			</if>
+			<if test="record.isSys != null and !&quot;&quot;.equals(record.isSys)">
+				and is_sys = #{record.isSys}	
+			</if>
+			<if test="record.useable != null and !&quot;&quot;.equals(record.useable)">
+				and useable = #{record.useable}	
+			</if>
+			<if test="record.createBy != null and !&quot;&quot;.equals(record.createBy)">
+				and create_by = #{record.createBy}	
+			</if>
+			<if test="record.createDate != null and !&quot;&quot;.equals(record.createDate)">
+				and create_date = #{record.createDate}	
+			</if>
+			<if test="record.updateBy != null and !&quot;&quot;.equals(record.updateBy)">
+				and update_by = #{record.updateBy}	
+			</if>
+			<if test="record.updateDate != null and !&quot;&quot;.equals(record.updateDate)">
+				and update_date = #{record.updateDate}	
+			</if>
+			<if test="record.remarks != null and !&quot;&quot;.equals(record.remarks)">
+				and remarks = #{record.remarks}	
+			</if>
+			<if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+				and del_flag = #{record.delFlag}	
+			</if>
+			<if test="record.menuIds != null and !&quot;&quot;.equals(record.menuIds)">
+				and menu_ids = #{record.menuIds}
+			</if>
+			<if test="record.permission != null and !&quot;&quot;.equals(record.permission)">
+				and permission = #{record.permission}
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryAllSysRole" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysRole">
+		select <include refid="Base_Column_List"/> from sys_role
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="officeId != null and !&quot;&quot;.equals(officeId)">
+				and office_id = #{officeId}	
+			</if>
+			<if test="name != null and !&quot;&quot;.equals(name)">
+				and name = #{name}	
+			</if>
+			<if test="enname != null and !&quot;&quot;.equals(enname)">
+				and enname = #{enname}	
+			</if>
+			<if test="roleType != null and !&quot;&quot;.equals(roleType)">
+				and role_type = #{roleType}	
+			</if>
+			<if test="isSys != null and !&quot;&quot;.equals(isSys)">
+				and is_sys = #{isSys}	
+			</if>
+			<if test="useable != null and !&quot;&quot;.equals(useable)">
+				and useable = #{useable}	
+			</if>
+			<if test="createBy != null and !&quot;&quot;.equals(createBy)">
+				and create_by = #{createBy}	
+			</if>
+			<if test="createDate != null and !&quot;&quot;.equals(createDate)">
+				and create_date = #{createDate}	
+			</if>
+			<if test="updateBy != null and !&quot;&quot;.equals(updateBy)">
+				and update_by = #{updateBy}	
+			</if>
+			<if test="updateDate != null and !&quot;&quot;.equals(updateDate)">
+				and update_date = #{updateDate}	
+			</if>
+			<if test="remarks != null and !&quot;&quot;.equals(remarks)">
+				and remarks = #{remarks}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="idStr != null and !&quot;&quot;.equals(idStr)">
+				and id in  (${idStr})
+			</if>
+			<if test="menuIds != null and !&quot;&quot;.equals(menuIds)">
+				and menu_ids = #{menuIds}
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="querySysRole" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.SysRole">
+		select <include refid="Base_Column_List"/> from sys_role
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="officeId != null and !&quot;&quot;.equals(officeId)">
+				and office_id = #{officeId}	
+			</if>
+			<if test="name != null and !&quot;&quot;.equals(name)">
+				and name = #{name}	
+			</if>
+			<if test="enname != null and !&quot;&quot;.equals(enname)">
+				and enname = #{enname}	
+			</if>
+			<if test="roleType != null and !&quot;&quot;.equals(roleType)">
+				and role_type = #{roleType}	
+			</if>
+			<if test="isSys != null and !&quot;&quot;.equals(isSys)">
+				and is_sys = #{isSys}	
+			</if>
+			<if test="useable != null and !&quot;&quot;.equals(useable)">
+				and useable = #{useable}	
+			</if>
+			<if test="createBy != null and !&quot;&quot;.equals(createBy)">
+				and create_by = #{createBy}	
+			</if>
+			<if test="createDate != null and !&quot;&quot;.equals(createDate)">
+				and create_date = #{createDate}	
+			</if>
+			<if test="updateBy != null and !&quot;&quot;.equals(updateBy)">
+				and update_by = #{updateBy}	
+			</if>
+			<if test="updateDate != null and !&quot;&quot;.equals(updateDate)">
+				and update_date = #{updateDate}	
+			</if>
+			<if test="remarks != null and !&quot;&quot;.equals(remarks)">
+				and remarks = #{remarks}	
+			</if>
+			<if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+				and del_flag = #{delFlag}	
+			</if>
+			<if test="menuIds != null and !&quot;&quot;.equals(menuIds)">
+				and menu_ids = #{menuIds}
+			</if>
+			<if test="permission != null and !&quot;&quot;.equals(permission)">
+				and permission = #{permission}
+			</if>
+		</where>
+		LIMIT 1
+	</select>
+    <select id="selectByPrimaryKeys" resultType="com.izouma.awesomeadmin.model.SysRole">
+		select
+		<include refid="Base_Column_List" />
+		from sys_role
+		where id in (${ids})
+		and del_flag = 'N'
+	</select>
+    <select id="getUserRoles" resultType="com.izouma.awesomeadmin.model.SysRole">
+		select
+		<include refid="Base_Column_List" />
+		from sys_role
+		where id in (select role_id from sys_user_role where user_id = #{userId})
+		and del_flag = 'N'
+	</select>
+    <update id="delete">
+		UPDATE sys_role SET del_flag = 'Y'
+		<where>
+			AND id = #{id}
+		</where>
+	</update>
+	<insert id="setUserRoles">
+		insert into sys_user_role (user_id, role_id)
+		values
+		<foreach collection="roles" item="roleId" separator=",">
+			(#{userId}, #{roleId})
+		</foreach>
+	</insert>
+    <delete id="clearUserRoles">
+		delete from sys_user_role where user_id = #{userId}
+	</delete>
+	<insert id="addUserRole">
+		insert into sys_user_role (user_id, role_id) values (#{userId}, #{roleId})
+	</insert>
+	<delete id="removeUserRole">
+		delete from sys_user_role when user_id = #{userId} and role_id = #{roleId}
+	</delete>
+	<select id="getUserRoleId" resultType="java.lang.String">
+		SELECT group_concat(role_id) FROM sys_user_role WHERE user_id = #{id}
+	</select>
+</mapper>
+

+ 34 - 0
src/main/java/com/izouma/awesomeadmin/dao/TableFieldMapper.java

@@ -0,0 +1,34 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import org.springframework.stereotype.Repository;
+
+import com.izouma.awesomeadmin.model.TableField;
+
+/**
+ * table_field Dao接口
+ * Fri May 04 13:38:24 CST 2018  Suo Chen Cheng
+ */ 
+@Repository("com.izouma.awesomeadmin.dao.TableFieldMapper")
+public interface TableFieldMapper {
+
+	int deleteByPrimaryKey(Integer id);
+
+	int insertSelective(TableField record);
+
+	TableField selectByPrimaryKey(Integer id);
+
+	int updateByPrimaryKeySelective(TableField record);
+
+	List <TableField> queryAllTableField(TableField record);
+
+	List <TableField> queryTableFieldsByPage(Map <String, Object> parameter);
+
+	int delete(String id);
+
+	TableField queryTableField(TableField record);
+
+}
+

+ 494 - 0
src/main/java/com/izouma/awesomeadmin/dao/TableFieldMapper.xml

@@ -0,0 +1,494 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.TableFieldMapper" >
+	<resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.TableField" >
+		<id column="id" property="id" jdbcType="INTEGER" />
+		<result column="name" property="name" jdbcType="VARCHAR" />
+		<result column="remark" property="remark" jdbcType="VARCHAR" />
+		<result column="jdbcType" property="jdbcType" jdbcType="VARCHAR" />
+		<result column="javaType" property="javaType" jdbcType="VARCHAR" />
+		<result column="length" property="length" jdbcType="INTEGER" />
+		<result column="decimalPlaces" property="decimalPlaces" jdbcType="INTEGER" />
+		<result column="defaultValue" property="defaultValue" jdbcType="VARCHAR" />
+		<result column="notNull" property="notNull" jdbcType="BIT" />
+		<result column="primaryKey" property="primaryKey" jdbcType="BIT" />
+		<result column="autoIncrease" property="autoIncrease" jdbcType="BIT" />
+		<result column="showInList" property="showInList" jdbcType="BIT" />
+		<result column="showInForm" property="showInForm" jdbcType="BIT" />
+		<result column="searchable" property="searchable" jdbcType="BIT" />
+		<result column="formType" property="formType" jdbcType="VARCHAR" />
+		<result column="searchMethod" property="searchMethod" jdbcType="VARCHAR" />
+		<result column="required" property="required" jdbcType="BIT" />
+		<result column="validate" property="validate" jdbcType="BIT" />
+		<result column="minLength" property="minLength" jdbcType="INTEGER" />
+		<result column="maxLength" property="maxLength" jdbcType="INTEGER" />
+		<result column="min" property="min" jdbcType="VARCHAR" />
+		<result column="max" property="max" jdbcType="VARCHAR" />
+		<result column="validatorType" property="validatorType" jdbcType="VARCHAR" />
+	</resultMap>
+	<sql id="Base_Column_List" >
+		 id, 'name', remark, jdbcType, javaType, 'length', decimalPlaces, defaultValue, notNull, primaryKey, autoIncrease, showInList, showInForm, searchable, formType, searchMethod, required, validate, minLength, maxLength, 'min','max', validatorType
+	</sql>
+	<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+		select
+		<include refid="Base_Column_List" />
+		from sys_table_field
+		where id = #{id,jdbcType=INTEGER}
+	</select>
+	<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+		delete from sys_table_field
+		where id = #{id,jdbcType=INTEGER}
+	</delete>
+	<insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.TableField" useGeneratedKeys="true" keyProperty="id">
+		insert into sys_table_field
+		<trim prefix="(" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				id,	
+			</if>
+			<if test="name != null" >
+				name,	
+			</if>
+			<if test="remark != null" >
+				remark,	
+			</if>
+			<if test="jdbcType != null" >
+				jdbcType,	
+			</if>
+			<if test="javaType != null" >
+				javaType,	
+			</if>
+			<if test="length != null" >
+				length,	
+			</if>
+			<if test="decimalPlaces != null" >
+				decimalPlaces,	
+			</if>
+			<if test="defaultValue != null" >
+				defaultValue,	
+			</if>
+			<if test="notNull != null" >
+				notNull,	
+			</if>
+			<if test="primaryKey != null" >
+				primaryKey,	
+			</if>
+			<if test="autoIncrease != null" >
+				autoIncrease,	
+			</if>
+			<if test="showInList != null" >
+				showInList,	
+			</if>
+			<if test="showInForm != null" >
+				showInForm,	
+			</if>
+			<if test="searchable != null" >
+				searchable,	
+			</if>
+			<if test="formType != null" >
+				formType,	
+			</if>
+			<if test="searchMethod != null" >
+				searchMethod,	
+			</if>
+			<if test="required != null" >
+				required,	
+			</if>
+			<if test="validate != null" >
+				validate,	
+			</if>
+			<if test="minLength != null" >
+				minLength,	
+			</if>
+			<if test="maxLength != null" >
+				maxLength,	
+			</if>
+			<if test="min != null" >
+				min,	
+			</if>
+			<if test="max != null" >
+				max,	
+			</if>
+			<if test="validatorType != null" >
+				validatorType,	
+			</if>
+		</trim>
+		<trim prefix="values (" suffix=")" suffixOverrides="," >
+			<if test="id != null" >
+				#{id,jdbcType=INTEGER},	
+			</if>
+			<if test="name != null" >
+				#{name,jdbcType=VARCHAR},	
+			</if>
+			<if test="remark != null" >
+				#{remark,jdbcType=VARCHAR},	
+			</if>
+			<if test="jdbcType != null" >
+				#{jdbcType,jdbcType=VARCHAR},	
+			</if>
+			<if test="javaType != null" >
+				#{javaType,jdbcType=VARCHAR},	
+			</if>
+			<if test="length != null" >
+				#{length,jdbcType=INTEGER},	
+			</if>
+			<if test="decimalPlaces != null" >
+				#{decimalPlaces,jdbcType=INTEGER},	
+			</if>
+			<if test="defaultValue != null" >
+				#{defaultValue,jdbcType=VARCHAR},	
+			</if>
+			<if test="notNull != null" >
+				#{notNull,jdbcType=BIT},	
+			</if>
+			<if test="primaryKey != null" >
+				#{primaryKey,jdbcType=BIT},	
+			</if>
+			<if test="autoIncrease != null" >
+				#{autoIncrease,jdbcType=BIT},	
+			</if>
+			<if test="showInList != null" >
+				#{showInList,jdbcType=BIT},	
+			</if>
+			<if test="showInForm != null" >
+				#{showInForm,jdbcType=BIT},	
+			</if>
+			<if test="searchable != null" >
+				#{searchable,jdbcType=BIT},	
+			</if>
+			<if test="formType != null" >
+				#{formType,jdbcType=VARCHAR},	
+			</if>
+			<if test="searchMethod != null" >
+				#{searchMethod,jdbcType=VARCHAR},	
+			</if>
+			<if test="required != null" >
+				#{required,jdbcType=BIT},	
+			</if>
+			<if test="validate != null" >
+				#{validate,jdbcType=BIT},	
+			</if>
+			<if test="minLength != null" >
+				#{minLength,jdbcType=INTEGER},	
+			</if>
+			<if test="maxLength != null" >
+				#{maxLength,jdbcType=INTEGER},	
+			</if>
+			<if test="min != null" >
+				#{min,jdbcType=VARCHAR},	
+			</if>
+			<if test="max != null" >
+				#{max,jdbcType=VARCHAR},	
+			</if>
+			<if test="validatorType != null" >
+				#{validatorType,jdbcType=VARCHAR},	
+			</if>
+		</trim>
+	</insert>
+	<update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.TableField" >
+		update sys_table_field
+		<set >
+			<if test="name != null" >
+				name = #{name,jdbcType=VARCHAR},	
+			</if>
+			<if test="remark != null" >
+				remark = #{remark,jdbcType=VARCHAR},	
+			</if>
+			<if test="jdbcType != null" >
+				jdbcType = #{jdbcType,jdbcType=VARCHAR},	
+			</if>
+			<if test="javaType != null" >
+				javaType = #{javaType,jdbcType=VARCHAR},	
+			</if>
+			<if test="length != null" >
+				length = #{length,jdbcType=INTEGER},	
+			</if>
+			<if test="decimalPlaces != null" >
+				decimalPlaces = #{decimalPlaces,jdbcType=INTEGER},	
+			</if>
+			<if test="defaultValue != null" >
+				defaultValue = #{defaultValue,jdbcType=VARCHAR},	
+			</if>
+			<if test="notNull != null" >
+				notNull = #{notNull,jdbcType=BIT},	
+			</if>
+			<if test="primaryKey != null" >
+				primaryKey = #{primaryKey,jdbcType=BIT},	
+			</if>
+			<if test="autoIncrease != null" >
+				autoIncrease = #{autoIncrease,jdbcType=BIT},	
+			</if>
+			<if test="showInList != null" >
+				showInList = #{showInList,jdbcType=BIT},	
+			</if>
+			<if test="showInForm != null" >
+				showInForm = #{showInForm,jdbcType=BIT},	
+			</if>
+			<if test="searchable != null" >
+				searchable = #{searchable,jdbcType=BIT},	
+			</if>
+			<if test="formType != null" >
+				formType = #{formType,jdbcType=VARCHAR},	
+			</if>
+			<if test="searchMethod != null" >
+				searchMethod = #{searchMethod,jdbcType=VARCHAR},	
+			</if>
+			<if test="required != null" >
+				required = #{required,jdbcType=BIT},	
+			</if>
+			<if test="validate != null" >
+				validate = #{validate,jdbcType=BIT},	
+			</if>
+			<if test="minLength != null" >
+				minLength = #{minLength,jdbcType=INTEGER},	
+			</if>
+			<if test="maxLength != null" >
+				maxLength = #{maxLength,jdbcType=INTEGER},	
+			</if>
+			<if test="min != null" >
+				min = #{min,jdbcType=VARCHAR},	
+			</if>
+			<if test="max != null" >
+				max = #{max,jdbcType=VARCHAR},	
+			</if>
+			<if test="validatorType != null" >
+				validatorType = #{validatorType,jdbcType=VARCHAR},	
+			</if>
+		</set>
+		where id = #{id,jdbcType=INTEGER}
+	</update>
+	<select id="queryTableFieldsByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.TableField">
+		select <include refid="Base_Column_List"/> from sys_table_field
+		<where>
+			and del_flag = 'N'
+			<if test="record.id != null and !&quot;&quot;.equals(record.id)">
+				and id = #{record.id}	
+			</if>
+			<if test="record.name != null and !&quot;&quot;.equals(record.name)">
+				and name = #{record.name}	
+			</if>
+			<if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+				and remark = #{record.remark}	
+			</if>
+			<if test="record.jdbcType != null and !&quot;&quot;.equals(record.jdbcType)">
+				and jdbcType = #{record.jdbcType}	
+			</if>
+			<if test="record.javaType != null and !&quot;&quot;.equals(record.javaType)">
+				and javaType = #{record.javaType}	
+			</if>
+			<if test="record.length != null and !&quot;&quot;.equals(record.length)">
+				and length = #{record.length}	
+			</if>
+			<if test="record.decimalPlaces != null and !&quot;&quot;.equals(record.decimalPlaces)">
+				and decimalPlaces = #{record.decimalPlaces}	
+			</if>
+			<if test="record.defaultValue != null and !&quot;&quot;.equals(record.defaultValue)">
+				and defaultValue = #{record.defaultValue}	
+			</if>
+			<if test="record.notNull != null and !&quot;&quot;.equals(record.notNull)">
+				and notNull = #{record.notNull}	
+			</if>
+			<if test="record.primaryKey != null and !&quot;&quot;.equals(record.primaryKey)">
+				and primaryKey = #{record.primaryKey}	
+			</if>
+			<if test="record.autoIncrease != null and !&quot;&quot;.equals(record.autoIncrease)">
+				and autoIncrease = #{record.autoIncrease}	
+			</if>
+			<if test="record.showInList != null and !&quot;&quot;.equals(record.showInList)">
+				and showInList = #{record.showInList}	
+			</if>
+			<if test="record.showInForm != null and !&quot;&quot;.equals(record.showInForm)">
+				and showInForm = #{record.showInForm}	
+			</if>
+			<if test="record.searchable != null and !&quot;&quot;.equals(record.searchable)">
+				and searchable = #{record.searchable}	
+			</if>
+			<if test="record.formType != null and !&quot;&quot;.equals(record.formType)">
+				and formType = #{record.formType}	
+			</if>
+			<if test="record.searchMethod != null and !&quot;&quot;.equals(record.searchMethod)">
+				and searchMethod = #{record.searchMethod}	
+			</if>
+			<if test="record.required != null and !&quot;&quot;.equals(record.required)">
+				and required = #{record.required}	
+			</if>
+			<if test="record.validate != null and !&quot;&quot;.equals(record.validate)">
+				and validate = #{record.validate}	
+			</if>
+			<if test="record.minLength != null and !&quot;&quot;.equals(record.minLength)">
+				and minLength = #{record.minLength}	
+			</if>
+			<if test="record.maxLength != null and !&quot;&quot;.equals(record.maxLength)">
+				and maxLength = #{record.maxLength}	
+			</if>
+			<if test="record.min != null and !&quot;&quot;.equals(record.min)">
+				and min = #{record.min}	
+			</if>
+			<if test="record.max != null and !&quot;&quot;.equals(record.max)">
+				and max = #{record.max}	
+			</if>
+			<if test="record.validatorType != null and !&quot;&quot;.equals(record.validatorType)">
+				and validatorType = #{record.validatorType}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryAllTableField" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.TableField">
+		select <include refid="Base_Column_List"/> from sys_table_field
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="name != null and !&quot;&quot;.equals(name)">
+				and name = #{name}	
+			</if>
+			<if test="remark != null and !&quot;&quot;.equals(remark)">
+				and remark = #{remark}	
+			</if>
+			<if test="jdbcType != null and !&quot;&quot;.equals(jdbcType)">
+				and jdbcType = #{jdbcType}	
+			</if>
+			<if test="javaType != null and !&quot;&quot;.equals(javaType)">
+				and javaType = #{javaType}	
+			</if>
+			<if test="length != null and !&quot;&quot;.equals(length)">
+				and length = #{length}	
+			</if>
+			<if test="decimalPlaces != null and !&quot;&quot;.equals(decimalPlaces)">
+				and decimalPlaces = #{decimalPlaces}	
+			</if>
+			<if test="defaultValue != null and !&quot;&quot;.equals(defaultValue)">
+				and defaultValue = #{defaultValue}	
+			</if>
+			<if test="notNull != null and !&quot;&quot;.equals(notNull)">
+				and notNull = #{notNull}	
+			</if>
+			<if test="primaryKey != null and !&quot;&quot;.equals(primaryKey)">
+				and primaryKey = #{primaryKey}	
+			</if>
+			<if test="autoIncrease != null and !&quot;&quot;.equals(autoIncrease)">
+				and autoIncrease = #{autoIncrease}	
+			</if>
+			<if test="showInList != null and !&quot;&quot;.equals(showInList)">
+				and showInList = #{showInList}	
+			</if>
+			<if test="showInForm != null and !&quot;&quot;.equals(showInForm)">
+				and showInForm = #{showInForm}	
+			</if>
+			<if test="searchable != null and !&quot;&quot;.equals(searchable)">
+				and searchable = #{searchable}	
+			</if>
+			<if test="formType != null and !&quot;&quot;.equals(formType)">
+				and formType = #{formType}	
+			</if>
+			<if test="searchMethod != null and !&quot;&quot;.equals(searchMethod)">
+				and searchMethod = #{searchMethod}	
+			</if>
+			<if test="required != null and !&quot;&quot;.equals(required)">
+				and required = #{required}	
+			</if>
+			<if test="validate != null and !&quot;&quot;.equals(validate)">
+				and validate = #{validate}	
+			</if>
+			<if test="minLength != null and !&quot;&quot;.equals(minLength)">
+				and minLength = #{minLength}	
+			</if>
+			<if test="maxLength != null and !&quot;&quot;.equals(maxLength)">
+				and maxLength = #{maxLength}	
+			</if>
+			<if test="min != null and !&quot;&quot;.equals(min)">
+				and min = #{min}	
+			</if>
+			<if test="max != null and !&quot;&quot;.equals(max)">
+				and max = #{max}	
+			</if>
+			<if test="validatorType != null and !&quot;&quot;.equals(validatorType)">
+				and validatorType = #{validatorType}	
+			</if>
+		</where>
+		order by id desc
+	</select>
+	<select id="queryTableField" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.TableField">
+		select <include refid="Base_Column_List"/> from sys_table_field
+		<where>
+			and del_flag = 'N'
+			<if test="id != null and !&quot;&quot;.equals(id)">
+				and id = #{id}	
+			</if>
+			<if test="name != null and !&quot;&quot;.equals(name)">
+				and name = #{name}	
+			</if>
+			<if test="remark != null and !&quot;&quot;.equals(remark)">
+				and remark = #{remark}	
+			</if>
+			<if test="jdbcType != null and !&quot;&quot;.equals(jdbcType)">
+				and jdbcType = #{jdbcType}	
+			</if>
+			<if test="javaType != null and !&quot;&quot;.equals(javaType)">
+				and javaType = #{javaType}	
+			</if>
+			<if test="length != null and !&quot;&quot;.equals(length)">
+				and length = #{length}	
+			</if>
+			<if test="decimalPlaces != null and !&quot;&quot;.equals(decimalPlaces)">
+				and decimalPlaces = #{decimalPlaces}	
+			</if>
+			<if test="defaultValue != null and !&quot;&quot;.equals(defaultValue)">
+				and defaultValue = #{defaultValue}	
+			</if>
+			<if test="notNull != null and !&quot;&quot;.equals(notNull)">
+				and notNull = #{notNull}	
+			</if>
+			<if test="primaryKey != null and !&quot;&quot;.equals(primaryKey)">
+				and primaryKey = #{primaryKey}	
+			</if>
+			<if test="autoIncrease != null and !&quot;&quot;.equals(autoIncrease)">
+				and autoIncrease = #{autoIncrease}	
+			</if>
+			<if test="showInList != null and !&quot;&quot;.equals(showInList)">
+				and showInList = #{showInList}	
+			</if>
+			<if test="showInForm != null and !&quot;&quot;.equals(showInForm)">
+				and showInForm = #{showInForm}	
+			</if>
+			<if test="searchable != null and !&quot;&quot;.equals(searchable)">
+				and searchable = #{searchable}	
+			</if>
+			<if test="formType != null and !&quot;&quot;.equals(formType)">
+				and formType = #{formType}	
+			</if>
+			<if test="searchMethod != null and !&quot;&quot;.equals(searchMethod)">
+				and searchMethod = #{searchMethod}	
+			</if>
+			<if test="required != null and !&quot;&quot;.equals(required)">
+				and required = #{required}	
+			</if>
+			<if test="validate != null and !&quot;&quot;.equals(validate)">
+				and validate = #{validate}	
+			</if>
+			<if test="minLength != null and !&quot;&quot;.equals(minLength)">
+				and minLength = #{minLength}	
+			</if>
+			<if test="maxLength != null and !&quot;&quot;.equals(maxLength)">
+				and maxLength = #{maxLength}	
+			</if>
+			<if test="min != null and !&quot;&quot;.equals(min)">
+				and min = #{min}	
+			</if>
+			<if test="max != null and !&quot;&quot;.equals(max)">
+				and max = #{max}	
+			</if>
+			<if test="validatorType != null and !&quot;&quot;.equals(validatorType)">
+				and validatorType = #{validatorType}	
+			</if>
+		</where>
+		LIMIT 1
+	</select>
+	<update id="delete">
+		UPDATE sys_table_field SET del_flag = 'Y'
+		<where>
+			AND id = #{id}
+		</where>
+	</update>
+</mapper>
+

+ 36 - 0
src/main/java/com/izouma/awesomeadmin/dao/ThingInfoMapper.java

@@ -0,0 +1,36 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.ThingInfo;
+
+
+/**
+ * Dao接口
+ */
+@Repository("com.zoumaframe.dao.ThingInfoMapper")
+public interface ThingInfoMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(ThingInfo record);
+
+    ThingInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(ThingInfo record);
+
+    List<ThingInfo> queryAllThingInfo(ThingInfo record);
+
+    List<ThingInfo> queryAllThingInfoAllInfo(ThingInfo record);
+
+    List<ThingInfo> queryThingInfoByPage(Map<String, Object> parameter);
+
+    int delete(ThingInfo record);
+
+    ThingInfo queryThingInfo(ThingInfo record);
+
+    List<ThingInfo> query(ThingInfo record);
+}
+

+ 950 - 0
src/main/java/com/izouma/awesomeadmin/dao/ThingInfoMapper.xml

@@ -0,0 +1,950 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.ThingInfoMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.ThingInfo">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="power" property="power" jdbcType="VARCHAR"/>
+        <result column="landmark_id" property="landmarkId" jdbcType="VARCHAR"/>
+        <result column="thing_name" property="thingName" jdbcType="VARCHAR"/>
+        <result column="thing_type" property="thingType" jdbcType="VARCHAR"/>
+        <result column="rank_level" property="rankLevel" jdbcType="VARCHAR"/>
+        <result column="allow_navigate" property="allowNavigate" jdbcType="VARCHAR"/>
+        <result column="remark" property="remark" jdbcType="VARCHAR"/>
+        <result column="icon" property="icon" jdbcType="VARCHAR"/>
+        <result column="keyword" property="keyword" jdbcType="VARCHAR"/>
+        <result column="image" property="image" jdbcType="VARCHAR"/>
+        <result column="text_introduction" property="textIntroduction" jdbcType="VARCHAR"/>
+        <result column="show_distance" property="showDistance" jdbcType="VARCHAR"/>
+        <result column="template_id" property="templateId" jdbcType="VARCHAR"/>
+        <result column="front_level_id" property="frontLevelId" jdbcType="VARCHAR"/>
+        <result column="city_id" property="cityId" jdbcType="VARCHAR"/>
+        <result column="area_id" property="areaId" jdbcType="VARCHAR"/>
+        <result column="map_x" property="mapX" jdbcType="VARCHAR"/>
+        <result column="map_y" property="mapY" jdbcType="VARCHAR"/>
+        <result column="map_index" property="mapIndex" jdbcType="VARCHAR"/>
+        <result column="orientation" property="orientation" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            power,
+
+            landmark_id,
+
+            thing_name,
+
+            thing_type,
+
+            rank_level,
+
+            allow_navigate,
+
+            remark,
+
+            icon,
+
+            keyword,
+
+            image,
+
+            text_introduction,
+
+            show_distance,
+
+            template_id,
+
+            front_level_id,
+
+            city_id,
+
+            area_id,
+
+            map_x,
+
+            map_y,
+
+            map_index,
+
+            orientation,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from thing_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from thing_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.ThingInfo" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into thing_info
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="power!= null">
+                power,
+            </if>
+            <if test="landmarkId!= null">
+                landmark_id,
+            </if>
+            <if test="thingName!= null">
+                thing_name,
+            </if>
+            <if test="thingType!= null">
+                thing_type,
+            </if>
+            <if test="rankLevel!= null">
+                rank_level,
+            </if>
+            <if test="allowNavigate!= null">
+                allow_navigate,
+            </if>
+            <if test="remark!= null">
+                remark,
+            </if>
+            <if test="icon!= null">
+                icon,
+            </if>
+            <if test="keyword!= null">
+                keyword,
+            </if>
+            <if test="image!= null">
+                image,
+            </if>
+            <if test="textIntroduction!= null">
+                text_introduction,
+            </if>
+            <if test="showDistance!= null">
+                show_distance,
+            </if>
+            <if test="templateId!= null">
+                template_id,
+            </if>
+            <if test="frontLevelId!= null">
+                front_level_id,
+            </if>
+            <if test="cityId!= null">
+                city_id,
+            </if>
+            <if test="areaId!= null">
+                area_id,
+            </if>
+            <if test="mapX!= null">
+                map_x,
+            </if>
+            <if test="mapY!= null">
+                map_y,
+            </if>
+            <if test="mapIndex!= null">
+                map_index,
+            </if>
+            <if test="orientation!= null">
+                orientation,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="landmarkId != null">
+                #{landmarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingName != null">
+                #{thingName,jdbcType=VARCHAR},
+            </if>
+            <if test="thingType != null">
+                #{thingType,jdbcType=VARCHAR},
+            </if>
+            <if test="rankLevel != null">
+                #{rankLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="allowNavigate != null">
+                #{allowNavigate,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="keyword != null">
+                #{keyword,jdbcType=VARCHAR},
+            </if>
+            <if test="image != null">
+                #{image,jdbcType=VARCHAR},
+            </if>
+            <if test="textIntroduction != null">
+                #{textIntroduction,jdbcType=VARCHAR},
+            </if>
+            <if test="showDistance != null">
+                #{showDistance,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="cityId != null">
+                #{cityId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="mapX != null">
+                #{mapX,jdbcType=VARCHAR},
+            </if>
+            <if test="mapY != null">
+                #{mapY,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                #{mapIndex,jdbcType=VARCHAR},
+            </if>
+            <if test="orientation != null">
+                #{orientation,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.ThingInfo">
+        update thing_info
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="power != null">
+                power= #{power,jdbcType=VARCHAR},
+            </if>
+            <if test="landmarkId != null">
+                landmark_id= #{landmarkId,jdbcType=VARCHAR},
+            </if>
+            <if test="thingName != null">
+                thing_name= #{thingName,jdbcType=VARCHAR},
+            </if>
+            <if test="thingType != null">
+                thing_type= #{thingType,jdbcType=VARCHAR},
+            </if>
+            <if test="rankLevel != null">
+                rank_level= #{rankLevel,jdbcType=VARCHAR},
+            </if>
+            <if test="allowNavigate != null">
+                allow_navigate= #{allowNavigate,jdbcType=VARCHAR},
+            </if>
+            <if test="remark != null">
+                remark= #{remark,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                icon= #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="keyword != null">
+                keyword= #{keyword,jdbcType=VARCHAR},
+            </if>
+            <if test="image != null">
+                image= #{image,jdbcType=VARCHAR},
+            </if>
+            <if test="textIntroduction != null">
+                text_introduction= #{textIntroduction,jdbcType=VARCHAR},
+            </if>
+            <if test="showDistance != null">
+                show_distance= #{showDistance,jdbcType=VARCHAR},
+            </if>
+            <if test="templateId != null">
+                template_id= #{templateId,jdbcType=VARCHAR},
+            </if>
+            <if test="frontLevelId != null">
+                front_level_id= #{frontLevelId,jdbcType=VARCHAR},
+            </if>
+            <if test="cityId != null">
+                city_id= #{cityId,jdbcType=VARCHAR},
+            </if>
+            <if test="areaId != null">
+                area_id= #{areaId,jdbcType=VARCHAR},
+            </if>
+            <if test="mapX != null">
+                map_x= #{mapX,jdbcType=VARCHAR},
+            </if>
+            <if test="mapY != null">
+                map_y= #{mapY,jdbcType=VARCHAR},
+            </if>
+            <if test="mapIndex != null">
+                map_index= #{mapIndex,jdbcType=VARCHAR},
+            </if>
+            <if test="orientation != null">
+                orientation= #{orientation,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryThingInfoByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.ThingInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from thing_info
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and power = #{record.power}
+            </if>
+            <if test="record.landmarkId != null and !&quot;&quot;.equals(record.landmarkId)">
+                and landmark_id = #{record.landmarkId}
+            </if>
+            <if test="record.thingName != null and !&quot;&quot;.equals(record.thingName)">
+                and thing_name = #{record.thingName}
+            </if>
+            <if test="record.thingType != null and !&quot;&quot;.equals(record.thingType)">
+                and thing_type = #{record.thingType}
+            </if>
+            <if test="record.rankLevel != null and !&quot;&quot;.equals(record.rankLevel)">
+                and rank_level = #{record.rankLevel}
+            </if>
+            <if test="record.allowNavigate != null and !&quot;&quot;.equals(record.allowNavigate)">
+                and allow_navigate = #{record.allowNavigate}
+            </if>
+            <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and remark = #{record.remark}
+            </if>
+            <if test="record.icon != null and !&quot;&quot;.equals(record.icon)">
+                and icon = #{record.icon}
+            </if>
+            <if test="record.keyword != null and !&quot;&quot;.equals(record.keyword)">
+                and keyword = #{record.keyword}
+            </if>
+            <if test="record.image != null and !&quot;&quot;.equals(record.image)">
+                and image = #{record.image}
+            </if>
+            <if test="record.textIntroduction != null and !&quot;&quot;.equals(record.textIntroduction)">
+                and text_introduction = #{record.textIntroduction}
+            </if>
+            <if test="record.showDistance != null and !&quot;&quot;.equals(record.showDistance)">
+                and show_distance = #{record.showDistance}
+            </if>
+            <if test="record.templateId != null and !&quot;&quot;.equals(record.templateId)">
+                and template_id = #{record.templateId}
+            </if>
+            <if test="record.frontLevelId != null and !&quot;&quot;.equals(record.frontLevelId)">
+                and front_level_id = #{record.frontLevelId}
+            </if>
+            <if test="record.cityId != null and !&quot;&quot;.equals(record.cityId)">
+                and city_id = #{record.cityId}
+            </if>
+            <if test="record.areaId != null and !&quot;&quot;.equals(record.areaId)">
+                and area_id = #{record.areaId}
+            </if>
+            <if test="record.mapX != null and !&quot;&quot;.equals(record.mapX)">
+                and map_x = #{record.mapX}
+            </if>
+            <if test="record.mapY != null and !&quot;&quot;.equals(record.mapY)">
+                and map_y = #{record.mapY}
+            </if>
+            <if test="record.mapIndex != null and !&quot;&quot;.equals(record.mapIndex)">
+                and map_index = #{record.mapIndex}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR power LIKE concat('%',#{record.searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{record.searchKey},'%')
+                    OR thing_name LIKE concat('%',#{record.searchKey},'%')
+                    OR thing_type LIKE concat('%',#{record.searchKey},'%')
+                    OR rank_level LIKE concat('%',#{record.searchKey},'%')
+                    OR allow_navigate LIKE concat('%',#{record.searchKey},'%')
+                    OR remark LIKE concat('%',#{record.searchKey},'%')
+                    OR icon LIKE concat('%',#{record.searchKey},'%')
+                    OR keyword LIKE concat('%',#{record.searchKey},'%')
+                    OR image LIKE concat('%',#{record.searchKey},'%')
+                    OR text_introduction LIKE concat('%',#{record.searchKey},'%')
+                    OR show_distance LIKE concat('%',#{record.searchKey},'%')
+                    OR template_id LIKE concat('%',#{record.searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{record.searchKey},'%')
+                    OR city_id LIKE concat('%',#{record.searchKey},'%')
+                    OR area_id LIKE concat('%',#{record.searchKey},'%')
+                    OR map_x LIKE concat('%',#{record.searchKey},'%')
+                    OR map_y LIKE concat('%',#{record.searchKey},'%')
+                    OR map_index LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllThingInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ThingInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from thing_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="thingName != null and !&quot;&quot;.equals(thingName)">
+                and thing_name = #{thingName}
+            </if>
+            <if test="thingType != null and !&quot;&quot;.equals(thingType)">
+                and thing_type = #{thingType}
+            </if>
+            <if test="rankLevel != null and !&quot;&quot;.equals(rankLevel)">
+                and rank_level = #{rankLevel}
+            </if>
+            <if test="allowNavigate != null and !&quot;&quot;.equals(allowNavigate)">
+                and allow_navigate = #{allowNavigate}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="image != null and !&quot;&quot;.equals(image)">
+                and image = #{image}
+            </if>
+            <if test="textIntroduction != null and !&quot;&quot;.equals(textIntroduction)">
+                and text_introduction = #{textIntroduction}
+            </if>
+            <if test="showDistance != null and !&quot;&quot;.equals(showDistance)">
+                and show_distance = #{showDistance}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="mapX != null and !&quot;&quot;.equals(mapX)">
+                and map_x = #{mapX}
+            </if>
+            <if test="mapY != null and !&quot;&quot;.equals(mapY)">
+                and map_y = #{mapY}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR power LIKE concat('%',#{searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{searchKey},'%')
+                    OR thing_name LIKE concat('%',#{searchKey},'%')
+                    OR thing_type LIKE concat('%',#{searchKey},'%')
+                    OR rank_level LIKE concat('%',#{searchKey},'%')
+                    OR allow_navigate LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR keyword LIKE concat('%',#{searchKey},'%')
+                    OR image LIKE concat('%',#{searchKey},'%')
+                    OR text_introduction LIKE concat('%',#{searchKey},'%')
+                    OR show_distance LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR city_id LIKE concat('%',#{searchKey},'%')
+                    OR area_id LIKE concat('%',#{searchKey},'%')
+                    OR map_x LIKE concat('%',#{searchKey},'%')
+                    OR map_y LIKE concat('%',#{searchKey},'%')
+                    OR map_index LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryAllThingInfoAllInfo" parameterType="java.util.Map" resultMap="AllInfoResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from thing_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="thingName != null and !&quot;&quot;.equals(thingName)">
+                and thing_name = #{thingName}
+            </if>
+            <if test="thingType != null and !&quot;&quot;.equals(thingType)">
+                and thing_type = #{thingType}
+            </if>
+            <if test="rankLevel != null and !&quot;&quot;.equals(rankLevel)">
+                and rank_level = #{rankLevel}
+            </if>
+            <if test="allowNavigate != null and !&quot;&quot;.equals(allowNavigate)">
+                and allow_navigate = #{allowNavigate}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="image != null and !&quot;&quot;.equals(image)">
+                and image = #{image}
+            </if>
+            <if test="textIntroduction != null and !&quot;&quot;.equals(textIntroduction)">
+                and text_introduction = #{textIntroduction}
+            </if>
+            <if test="showDistance != null and !&quot;&quot;.equals(showDistance)">
+                and show_distance = #{showDistance}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="mapX != null and !&quot;&quot;.equals(mapX)">
+                and map_x = #{mapX}
+            </if>
+            <if test="mapY != null and !&quot;&quot;.equals(mapY)">
+                and map_y = #{mapY}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR power LIKE concat('%',#{searchKey},'%')
+                    OR landmark_id LIKE concat('%',#{searchKey},'%')
+                    OR thing_name LIKE concat('%',#{searchKey},'%')
+                    OR thing_type LIKE concat('%',#{searchKey},'%')
+                    OR rank_level LIKE concat('%',#{searchKey},'%')
+                    OR allow_navigate LIKE concat('%',#{searchKey},'%')
+                    OR remark LIKE concat('%',#{searchKey},'%')
+                    OR icon LIKE concat('%',#{searchKey},'%')
+                    OR keyword LIKE concat('%',#{searchKey},'%')
+                    OR image LIKE concat('%',#{searchKey},'%')
+                    OR text_introduction LIKE concat('%',#{searchKey},'%')
+                    OR show_distance LIKE concat('%',#{searchKey},'%')
+                    OR template_id LIKE concat('%',#{searchKey},'%')
+                    OR front_level_id LIKE concat('%',#{searchKey},'%')
+                    OR city_id LIKE concat('%',#{searchKey},'%')
+                    OR area_id LIKE concat('%',#{searchKey},'%')
+                    OR map_x LIKE concat('%',#{searchKey},'%')
+                    OR map_y LIKE concat('%',#{searchKey},'%')
+                    OR map_index LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryThingInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ThingInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from thing_info
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+            <if test="landmarkId != null and !&quot;&quot;.equals(landmarkId)">
+                and landmark_id = #{landmarkId}
+            </if>
+            <if test="thingName != null and !&quot;&quot;.equals(thingName)">
+                and thing_name = #{thingName}
+            </if>
+            <if test="thingType != null and !&quot;&quot;.equals(thingType)">
+                and thing_type = #{thingType}
+            </if>
+            <if test="rankLevel != null and !&quot;&quot;.equals(rankLevel)">
+                and rank_level = #{rankLevel}
+            </if>
+            <if test="allowNavigate != null and !&quot;&quot;.equals(allowNavigate)">
+                and allow_navigate = #{allowNavigate}
+            </if>
+            <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="keyword != null and !&quot;&quot;.equals(keyword)">
+                and keyword = #{keyword}
+            </if>
+            <if test="image != null and !&quot;&quot;.equals(image)">
+                and image = #{image}
+            </if>
+            <if test="textIntroduction != null and !&quot;&quot;.equals(textIntroduction)">
+                and text_introduction = #{textIntroduction}
+            </if>
+            <if test="showDistance != null and !&quot;&quot;.equals(showDistance)">
+                and show_distance = #{showDistance}
+            </if>
+            <if test="templateId != null and !&quot;&quot;.equals(templateId)">
+                and template_id = #{templateId}
+            </if>
+            <if test="frontLevelId != null and !&quot;&quot;.equals(frontLevelId)">
+                and front_level_id = #{frontLevelId}
+            </if>
+            <if test="cityId != null and !&quot;&quot;.equals(cityId)">
+                and city_id = #{cityId}
+            </if>
+            <if test="areaId != null and !&quot;&quot;.equals(areaId)">
+                and area_id = #{areaId}
+            </if>
+            <if test="mapX != null and !&quot;&quot;.equals(mapX)">
+                and map_x = #{mapX}
+            </if>
+            <if test="mapY != null and !&quot;&quot;.equals(mapY)">
+                and map_y = #{mapY}
+            </if>
+            <if test="mapIndex != null and !&quot;&quot;.equals(mapIndex)">
+                and map_index = #{mapIndex}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE thing_info SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.ThingInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from thing_info
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+
+    <resultMap id="AllInfoResultMap" type="com.izouma.awesomeadmin.model.ThingInfo" extends="BaseResultMap">
+
+
+        <association property="aimGroupInfo" javaType="com.izouma.awesomeadmin.model.AimGroupInfo"
+                     select="com.izouma.awesomeadmin.dao.AimGroupInfoMapper.queryAimGroupInfoAllInfo"
+                     column="{id = template_id}">
+        </association>
+
+    </resultMap>
+
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/UserFileInfoMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.UserFileInfo;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.UserFileInfoMapper")
+public interface UserFileInfoMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(UserFileInfo record);
+
+    UserFileInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(UserFileInfo record);
+
+    List<UserFileInfo> queryAllUserFileInfo(UserFileInfo record);
+
+    List<UserFileInfo> queryUserFileInfoByPage(Map<String, Object> parameter);
+
+    int delete(UserFileInfo record);
+
+    UserFileInfo queryUserFileInfo(UserFileInfo record);
+
+    List<UserFileInfo> query(UserFileInfo record);
+}
+

+ 478 - 0
src/main/java/com/izouma/awesomeadmin/dao/UserFileInfoMapper.xml

@@ -0,0 +1,478 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.UserFileInfoMapper" >
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.UserFileInfo" >
+                <id column="id" property="id" jdbcType="INTEGER" />
+                                        <result column="del_flag" property="delFlag" jdbcType="CHAR" />
+                                <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
+                                <result column="update_user" property="updateUser" jdbcType="VARCHAR" />
+                                <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
+                                <result column="create_user" property="createUser" jdbcType="VARCHAR" />
+                                <result column="power" property="power" jdbcType="VARCHAR" />
+                                <result column="user_id" property="userId" jdbcType="INTEGER" />
+                                <result column="type_flag" property="typeFlag" jdbcType="VARCHAR" />
+                                <result column="file_name" property="fileName" jdbcType="VARCHAR" />
+                                <result column="url" property="url" jdbcType="VARCHAR" />
+                                <result column="file_size" property="fileSize" jdbcType="VARCHAR" />
+                                <result column="remark" property="remark" jdbcType="VARCHAR" />
+            </resultMap>
+    <sql id="Base_Column_List" >
+        <trim  suffixOverrides="," >
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            power,
+
+            user_id,
+
+            type_flag,
+
+            file_name,
+
+            url,
+
+            file_size,
+
+            remark,
+
+            </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
+        select
+        <include refid="Base_Column_List" />
+        from user_file_info
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
+        delete from user_file_info
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.UserFileInfo" useGeneratedKeys="true" keyProperty="id">
+        insert into user_file_info
+        <trim prefix="(" suffix=")" suffixOverrides="," >
+                <if test="id!= null" >
+                id,
+            </if>
+                <if test="delFlag!= null" >
+                del_flag,
+            </if>
+                <if test="updateTime!= null" >
+                update_time,
+            </if>
+                <if test="updateUser!= null" >
+                update_user,
+            </if>
+                <if test="createTime!= null" >
+                create_time,
+            </if>
+                <if test="createUser!= null" >
+                create_user,
+            </if>
+                <if test="power!= null" >
+                power,
+            </if>
+                <if test="userId!= null" >
+                user_id,
+            </if>
+                <if test="typeFlag!= null" >
+                type_flag,
+            </if>
+                <if test="fileName!= null" >
+                file_name,
+            </if>
+                <if test="url!= null" >
+                url,
+            </if>
+                <if test="fileSize!= null" >
+                file_size,
+            </if>
+                <if test="remark!= null" >
+                remark,
+            </if>
+            </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides="," >
+                    <if test="id != null" >
+                #{id,jdbcType=INTEGER},
+            </if>
+                    <if test="delFlag != null" >
+                #{delFlag,jdbcType=CHAR},
+            </if>
+                    <if test="updateTime != null" >
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="updateUser != null" >
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="createTime != null" >
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                    <if test="createUser != null" >
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+                    <if test="power != null" >
+                #{power,jdbcType=VARCHAR},
+            </if>
+                    <if test="userId != null" >
+                #{userId,jdbcType=INTEGER},
+            </if>
+                    <if test="typeFlag != null" >
+                #{typeFlag,jdbcType=VARCHAR},
+            </if>
+                    <if test="fileName != null" >
+                #{fileName,jdbcType=VARCHAR},
+            </if>
+                    <if test="url != null" >
+                #{url,jdbcType=VARCHAR},
+            </if>
+                    <if test="fileSize != null" >
+                #{fileSize,jdbcType=VARCHAR},
+            </if>
+                    <if test="remark != null" >
+                #{remark,jdbcType=VARCHAR},
+            </if>
+                </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.UserFileInfo" >
+        update user_file_info
+        <set >
+                    <if test="id != null" >
+               id= #{id,jdbcType=INTEGER},
+            </if>
+                     <if test="delFlag != null" >
+               del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+                     <if test="updateTime != null" >
+               update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="updateUser != null" >
+               update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="createTime != null" >
+               create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+                     <if test="createUser != null" >
+               create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+                     <if test="power != null" >
+               power= #{power,jdbcType=VARCHAR},
+            </if>
+                     <if test="userId != null" >
+               user_id= #{userId,jdbcType=INTEGER},
+            </if>
+                     <if test="typeFlag != null" >
+               type_flag= #{typeFlag,jdbcType=VARCHAR},
+            </if>
+                     <if test="fileName != null" >
+               file_name= #{fileName,jdbcType=VARCHAR},
+            </if>
+                     <if test="url != null" >
+               url= #{url,jdbcType=VARCHAR},
+            </if>
+                     <if test="fileSize != null" >
+               file_size= #{fileSize,jdbcType=VARCHAR},
+            </if>
+                     <if test="remark != null" >
+               remark= #{remark,jdbcType=VARCHAR},
+            </if>
+                 </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryUserFileInfoByPage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.UserFileInfo">
+        select <include refid="Base_Column_List"/> from user_file_info
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+                    <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and  id = #{record.id}
+            </if>
+                     <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and  del_flag = #{record.delFlag}
+            </if>
+                     <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and  update_time = #{record.updateTime}
+            </if>
+                     <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and  update_user = #{record.updateUser}
+            </if>
+                     <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and  create_time = #{record.createTime}
+            </if>
+                     <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and  create_user = #{record.createUser}
+            </if>
+                     <if test="record.power != null and !&quot;&quot;.equals(record.power)">
+                and  power = #{record.power}
+            </if>
+                     <if test="record.userId != null and !&quot;&quot;.equals(record.userId)">
+                and  user_id = #{record.userId}
+            </if>
+                     <if test="record.typeFlag != null and !&quot;&quot;.equals(record.typeFlag)">
+                and  type_flag = #{record.typeFlag}
+            </if>
+                     <if test="record.fileName != null and !&quot;&quot;.equals(record.fileName)">
+                and  file_name = #{record.fileName}
+            </if>
+                     <if test="record.url != null and !&quot;&quot;.equals(record.url)">
+                and  url = #{record.url}
+            </if>
+                     <if test="record.fileSize != null and !&quot;&quot;.equals(record.fileSize)">
+                and  file_size = #{record.fileSize}
+            </if>
+                     <if test="record.remark != null and !&quot;&quot;.equals(record.remark)">
+                and  remark = #{record.remark}
+            </if>
+                  <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+             <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      OR  type_flag LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  file_name LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  url LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  file_size LIKE concat('%',#{record.searchKey},'%')
+                                                                                                    OR  remark LIKE concat('%',#{record.searchKey},'%')
+                                                             </trim>
+         </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllUserFileInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.UserFileInfo">
+        select <include refid="Base_Column_List"/> from user_file_info
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and  id = #{id}
+            </if>
+                    <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and  del_flag = #{delFlag}
+            </if>
+                    <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and  update_time = #{updateTime}
+            </if>
+                    <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and  update_user = #{updateUser}
+            </if>
+                    <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and  create_time = #{createTime}
+            </if>
+                    <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and  create_user = #{createUser}
+            </if>
+                    <if test="power != null and !&quot;&quot;.equals(power)">
+                and  power = #{power}
+            </if>
+                    <if test="userId != null and !&quot;&quot;.equals(userId)">
+                and  user_id = #{userId}
+            </if>
+                    <if test="typeFlag != null and !&quot;&quot;.equals(typeFlag)">
+                and  type_flag = #{typeFlag}
+            </if>
+                    <if test="fileName != null and !&quot;&quot;.equals(fileName)">
+                and  file_name = #{fileName}
+            </if>
+                    <if test="url != null and !&quot;&quot;.equals(url)">
+                and  url = #{url}
+            </if>
+                    <if test="fileSize != null and !&quot;&quot;.equals(fileSize)">
+                and  file_size = #{fileSize}
+            </if>
+                    <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and  remark = #{remark}
+            </if>
+                    <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR" >
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                OR  type_flag LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  file_name LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  url LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  file_size LIKE concat('%',#{searchKey},'%')
+                                                                                                                                                        OR  remark LIKE concat('%',#{searchKey},'%')
+                                                                                        </trim>
+            </if>
+<if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+    <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+        <choose>
+            <when test="item.indexOf('like') != -1">
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        concat('%',#{itemDetail},'%')
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </when>
+            <otherwise>
+                <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                    <if test="detailIndex == 3">
+                        #{itemDetail}
+                    </if>
+
+                    <if test="detailIndex &lt; 3">
+                        ${itemDetail}
+                    </if>
+
+                </foreach>
+            </otherwise>
+        </choose>
+
+
+    </foreach>
+
+
+</if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryUserFileInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.UserFileInfo">
+        select <include refid="Base_Column_List"/> from user_file_info
+        <where>
+            and del_flag = 'N'
+                    <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+                     <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+                     <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+                     <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+                     <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+                     <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+                     <if test="power != null and !&quot;&quot;.equals(power)">
+                and power = #{power}
+            </if>
+                     <if test="userId != null and !&quot;&quot;.equals(userId)">
+                and user_id = #{userId}
+            </if>
+                     <if test="typeFlag != null and !&quot;&quot;.equals(typeFlag)">
+                and type_flag = #{typeFlag}
+            </if>
+                     <if test="fileName != null and !&quot;&quot;.equals(fileName)">
+                and file_name = #{fileName}
+            </if>
+                     <if test="url != null and !&quot;&quot;.equals(url)">
+                and url = #{url}
+            </if>
+                     <if test="fileSize != null and !&quot;&quot;.equals(fileSize)">
+                and file_size = #{fileSize}
+            </if>
+                     <if test="remark != null and !&quot;&quot;.equals(remark)">
+                and remark = #{remark}
+            </if>
+         
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE user_file_info SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.UserFileInfo">
+        select <include refid="Base_Column_List"/> from user_file_info
+        <where>
+            and del_flag = 'N'
+                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 44 - 0
src/main/java/com/izouma/awesomeadmin/dao/UserInfoMapper.java

@@ -0,0 +1,44 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.List;
+import java.util.Map;
+
+import org.springframework.stereotype.Repository;
+
+import com.izouma.awesomeadmin.model.UserInfo;
+
+/**
+ * user_info Dao接口
+ * Tue Apr 17 10:32:49 CST 2018  Suo Chen Cheng
+ */
+@Repository("com.izouma.awesomeadmin.dao.UserInfoMapper")
+public interface UserInfoMapper {
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(UserInfo record);
+
+    UserInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(UserInfo record);
+
+    List<UserInfo> queryAllUserInfo(UserInfo record);
+
+    List<UserInfo> queryUserInfosByPage(Map<String, Object> parameter);
+
+    int delete(String id);
+
+    UserInfo queryUserInfo(UserInfo record);
+
+    UserInfo querySingleUserInfo(UserInfo record);
+
+    UserInfo login(Map<String, Object> parameter);
+
+    List<String> findDepartLeader(String userId);
+
+    List<String> findUserByRoleName(String roleName);
+
+    int updatePassword(UserInfo record);
+
+}
+

+ 708 - 0
src/main/java/com/izouma/awesomeadmin/dao/UserInfoMapper.xml

@@ -0,0 +1,708 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.UserInfoMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.UserInfo">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="username" property="username" jdbcType="VARCHAR"/>
+        <result column="nickname" property="nickname" jdbcType="VARCHAR"/>
+        <result column="password" property="password" jdbcType="VARCHAR"/>
+        <result column="icon" property="icon" jdbcType="VARCHAR"/>
+        <result column="birthday" property="birthday" jdbcType="TIMESTAMP"/>
+        <result column="sex" property="sex" jdbcType="CHAR"/>
+        <result column="open_id" property="openId" jdbcType="VARCHAR"/>
+        <result column="union_id" property="unionId" jdbcType="VARCHAR"/>
+        <result column="phone" property="phone" jdbcType="VARCHAR"/>
+        <result column="mail" property="mail" jdbcType="VARCHAR"/>
+        <result column="country" property="country" jdbcType="VARCHAR"/>
+        <result column="province" property="province" jdbcType="VARCHAR"/>
+        <result column="city" property="city" jdbcType="VARCHAR"/>
+        <result column="district" property="district" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="money_coin" property="moneyCoin" jdbcType="DECIMAL"/>
+        <result column="money_point" property="moneyPoint" jdbcType="DECIMAL"/>
+        <result column="contacter" property="contacter" jdbcType="VARCHAR"/>
+        <result column="contact_phone" property="contactPhone" jdbcType="VARCHAR"/>
+        <result column="company_name" property="companyName" jdbcType="VARCHAR"/>
+        <result column="company_type" property="companyType" jdbcType="VARCHAR"/>
+        <result column="admin_flag" property="adminFlag" jdbcType="CHAR"/>
+        <result column="cash_pledge" property="cashPledge" jdbcType="INTEGER"/>
+        <result column="approve_flag" property="approveFlag" jdbcType="CHAR"/>
+        <result column="store_flag" property="storeFlag" jdbcType="CHAR"/>
+        <result column="company_flag" property="companyFlag" jdbcType="CHAR"/>
+        <result column="approve_step" property="approveStep" jdbcType="INTEGER"/>
+        <association property="departId" javaType="string" column="id"
+                     select="com.izouma.awesomeadmin.dao.DepartInfoMapper.getUserDepartId"/>
+        <association property="roleId" javaType="string" column="id"
+                     select="com.izouma.awesomeadmin.dao.SysRoleMapper.getUserRoleId"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        id, username, nickname, icon, birthday, sex, open_id, union_id, phone, mail,
+        country, province, city, district, create_time, del_flag, money_coin, money_point,
+        contacter, contact_phone, company_name, company_type, admin_flag, cash_pledge,
+        approve_flag, store_flag, company_flag, approve_step
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_user
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete
+        from sys_user
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.UserInfo" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into sys_user
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                id,
+            </if>
+            <if test="username != null">
+                username,
+            </if>
+            <if test="nickname != null">
+                nickname,
+            </if>
+            <if test="password != null">
+                password,
+            </if>
+            <if test="icon != null">
+                icon,
+            </if>
+            <if test="birthday != null">
+                birthday,
+            </if>
+            <if test="sex != null">
+                sex,
+            </if>
+            <if test="openId != null">
+                open_id,
+            </if>
+            <if test="unionId != null">
+                union_id,
+            </if>
+            <if test="phone != null">
+                phone,
+            </if>
+            <if test="mail != null">
+                mail,
+            </if>
+            <if test="country != null">
+                country,
+            </if>
+            <if test="province != null">
+                province,
+            </if>
+            <if test="city != null">
+                city,
+            </if>
+            <if test="district != null">
+                district,
+            </if>
+            <if test="roleId != null">
+                role_id,
+            </if>
+            <if test="createTime != null">
+                create_time,
+            </if>
+            <if test="delFlag != null">
+                del_flag,
+            </if>
+            <if test="moneyCoin != null">
+                money_coin,
+            </if>
+            <if test="moneyPoint != null">
+                money_point,
+            </if>
+            <if test="contacter != null">
+                contacter,
+            </if>
+            <if test="contactPhone != null">
+                contact_phone,
+            </if>
+            <if test="companyName != null">
+                company_name,
+            </if>
+            <if test="companyType != null">
+                company_type,
+            </if>
+            <if test="adminFlag != null">
+                admin_flag,
+            </if>
+            <if test="cashPledge != null">
+                cash_pledge,
+            </if>
+            <if test="approveFlag != null">
+                approve_flag,
+            </if>
+            <if test="storeFlag != null">
+                store_flag,
+            </if>
+            <if test="companyFlag != null">
+                company_flag,
+            </if>
+            <if test="approveStep != null">
+                approve_step,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="username != null">
+                #{username,jdbcType=VARCHAR},
+            </if>
+            <if test="nickname != null">
+                #{nickname,jdbcType=VARCHAR},
+            </if>
+            <if test="password != null">
+                #{password,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="birthday != null">
+                #{birthday,jdbcType=TIMESTAMP},
+            </if>
+            <if test="sex != null">
+                #{sex,jdbcType=CHAR},
+            </if>
+            <if test="openId != null">
+                #{openId,jdbcType=VARCHAR},
+            </if>
+            <if test="unionId != null">
+                #{unionId,jdbcType=VARCHAR},
+            </if>
+            <if test="phone != null">
+                #{phone,jdbcType=VARCHAR},
+            </if>
+            <if test="mail != null">
+                #{mail,jdbcType=VARCHAR},
+            </if>
+            <if test="country != null">
+                #{country,jdbcType=VARCHAR},
+            </if>
+            <if test="province != null">
+                #{province,jdbcType=VARCHAR},
+            </if>
+            <if test="city != null">
+                #{city,jdbcType=VARCHAR},
+            </if>
+            <if test="district != null">
+                #{district,jdbcType=VARCHAR},
+            </if>
+            <if test="roleId != null">
+                #{roleId,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="moneyCoin != null">
+                #{moneyCoin},
+            </if>
+            <if test="moneyPoint != null">
+                #{moneyPoint},
+            </if>
+            <if test="contacter != null">
+                #{contacter},
+            </if>
+            <if test="contactPhone != null">
+                #{contactPhone},
+            </if>
+            <if test="companyName != null">
+                #{companyName},
+            </if>
+            <if test="companyType != null">
+                #{companyType},
+            </if>
+            <if test="adminFlag != null">
+                #{adminFlag},
+            </if>
+            <if test="cashPledge != null">
+                #{cashPledge},
+            </if>
+            <if test="approveFlag != null">
+                #{approveFlag},
+            </if>
+            <if test="storeFlag != null">
+                #{storeFlag},
+            </if>
+            <if test="companyFlag != null">
+                #{companyFlag},
+            </if>
+            <if test="approveStep != null">
+                #{approveStep},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.UserInfo">
+        update sys_user
+        <set>
+            <if test="username != null">
+                username = #{username,jdbcType=VARCHAR},
+            </if>
+            <if test="nickname != null">
+                nickname = #{nickname,jdbcType=VARCHAR},
+            </if>
+            <if test="password != null">
+                password = #{password,jdbcType=VARCHAR},
+            </if>
+            <if test="icon != null">
+                icon = #{icon,jdbcType=VARCHAR},
+            </if>
+            <if test="birthday != null">
+                birthday = #{birthday,jdbcType=TIMESTAMP},
+            </if>
+            <if test="sex != null">
+                sex = #{sex,jdbcType=CHAR},
+            </if>
+            <if test="openId != null">
+                open_id = #{openId,jdbcType=VARCHAR},
+            </if>
+            <if test="unionId != null">
+                union_id = #{unionId,jdbcType=VARCHAR},
+            </if>
+            <if test="phone != null">
+                phone = #{phone,jdbcType=VARCHAR},
+            </if>
+            <if test="mail != null">
+                mail = #{mail,jdbcType=VARCHAR},
+            </if>
+            <if test="country != null">
+                country = #{country,jdbcType=VARCHAR},
+            </if>
+            <if test="province != null">
+                province = #{province,jdbcType=VARCHAR},
+            </if>
+            <if test="city != null">
+                city = #{city,jdbcType=VARCHAR},
+            </if>
+            <if test="district != null">
+                district = #{district,jdbcType=VARCHAR},
+            </if>
+            <if test="roleId != null">
+                role_id = #{roleId,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time = #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="delFlag != null">
+                del_flag = #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="moneyCoin != null">
+                money_coin = #{moneyCoin},
+            </if>
+            <if test="moneyPoint != null">
+                money_point = #{moneyPoint},
+            </if>
+            <if test="contacter != null">
+                contacter = #{contacter},
+            </if>
+            <if test="contactPhone != null">
+                contact_phone = #{contactPhone},
+            </if>
+            <if test="companyName != null">
+                company_name = #{companyName},
+            </if>
+            <if test="companyType != null">
+                company_type = #{companyType},
+            </if>
+            <if test="adminFlag != null">
+                admin_flag = #{adminFlag},
+            </if>
+            <if test="cashPledge != null">
+                cash_pledge = #{cashPledge},
+            </if>
+            <if test="approveFlag != null">
+                approve_flag = #{approveFlag},
+            </if>
+            <if test="storeFlag != null">
+                store_flag = #{storeFlag},
+            </if>
+            <if test="companyFlag != null">
+                company_flag = #{companyFlag},
+            </if>
+            <if test="approveStep != null">
+                approve_step = #{approveStep},
+            </if>
+        </set>
+        where id = #{id,jdbcType=INTEGER}
+    </update>
+    <select id="queryUserInfosByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.UserInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_user
+        <where>
+            and del_flag = 'N'
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.username != null and !&quot;&quot;.equals(record.username)">
+                and username = #{record.username}
+            </if>
+            <if test="record.nickname != null and !&quot;&quot;.equals(record.nickname)">
+                and nickname = #{record.nickname}
+            </if>
+            <if test="record.password != null and !&quot;&quot;.equals(record.password)">
+                and password = #{record.password}
+            </if>
+            <if test="record.icon != null and !&quot;&quot;.equals(record.icon)">
+                and icon = #{record.icon}
+            </if>
+            <if test="record.birthday != null and !&quot;&quot;.equals(record.birthday)">
+                and birthday = #{record.birthday}
+            </if>
+            <if test="record.sex != null and !&quot;&quot;.equals(record.sex)">
+                and sex = #{record.sex}
+            </if>
+            <if test="record.openId != null and !&quot;&quot;.equals(record.openId)">
+                and open_id = #{record.openId}
+            </if>
+            <if test="record.unionId != null and !&quot;&quot;.equals(record.unionId)">
+                and union_id = #{record.unionId}
+            </if>
+            <if test="record.phone != null and !&quot;&quot;.equals(record.phone)">
+                and phone = #{record.phone}
+            </if>
+            <if test="record.mail != null and !&quot;&quot;.equals(record.mail)">
+                and mail = #{record.mail}
+            </if>
+            <if test="record.country != null and !&quot;&quot;.equals(record.country)">
+                and country = #{record.country}
+            </if>
+            <if test="record.province != null and !&quot;&quot;.equals(record.province)">
+                and province = #{record.province}
+            </if>
+            <if test="record.city != null and !&quot;&quot;.equals(record.city)">
+                and city = #{record.city}
+            </if>
+            <if test="record.district != null and !&quot;&quot;.equals(record.district)">
+                and district = #{record.district}
+            </if>
+            <if test="record.roleId != null and !&quot;&quot;.equals(record.roleId)">
+                and role_id = #{record.roleId}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.contacter != null and !&quot;&quot;.equals(record.contacter)">
+                and contacter = #{record.contacter}
+            </if>
+            <if test="record.contactPhone != null and !&quot;&quot;.equals(record.contactPhone)">
+                and contact_phone = #{record.contactPhone}
+            </if>
+            <if test="record.companyName != null and !&quot;&quot;.equals(record.companyName)">
+                and company_name = #{record.companyName}
+            </if>
+            <if test="record.companyType != null and !&quot;&quot;.equals(record.companyType)">
+                and company_type = #{record.companyType}
+            </if>
+            <if test="record.adminFlag != null and !&quot;&quot;.equals(record.adminFlag)">
+                and admin_flag = #{record.adminFlag}
+            </if>
+            <if test="record.cashPledge != null and !&quot;&quot;.equals(record.cashPledge)">
+                and cash_pledge = #{record.cashPledge}
+            </if>
+            <if test="record.approveFlag != null and !&quot;&quot;.equals(record.approveFlag)">
+                and approve_flag = #{record.approveFlag}
+            </if>
+            <if test="record.storeFlag != null and !&quot;&quot;.equals(record.storeFlag)">
+                and store_flag = #{record.storeFlag}
+            </if>
+            <if test="record.companyFlag != null and !&quot;&quot;.equals(record.companyFlag)">
+                and company_flag = #{record.companyFlag}
+            </if>
+            <if test="record.approveStep != null and !&quot;&quot;.equals(record.approveStep)">
+                and approve_step = #{record.approveStep}
+            </if>
+
+        </where>
+        order by id desc
+    </select>
+    <select id="queryAllUserInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.UserInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_user
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="username != null and !&quot;&quot;.equals(username)">
+                and username = #{username}
+            </if>
+            <if test="nickname != null and !&quot;&quot;.equals(nickname)">
+                and nickname = #{nickname}
+            </if>
+            <if test="password != null and !&quot;&quot;.equals(password)">
+                and password = #{password}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="birthday != null and !&quot;&quot;.equals(birthday)">
+                and birthday = #{birthday}
+            </if>
+            <if test="sex != null and !&quot;&quot;.equals(sex)">
+                and sex = #{sex}
+            </if>
+            <if test="openId != null and !&quot;&quot;.equals(openId)">
+                and open_id = #{openId}
+            </if>
+            <if test="unionId != null and !&quot;&quot;.equals(unionId)">
+                and union_id = #{unionId}
+            </if>
+            <if test="phone != null and !&quot;&quot;.equals(phone)">
+                and phone = #{phone}
+            </if>
+            <if test="mail != null and !&quot;&quot;.equals(mail)">
+                and mail = #{mail}
+            </if>
+            <if test="country != null and !&quot;&quot;.equals(country)">
+                and country = #{country}
+            </if>
+            <if test="province != null and !&quot;&quot;.equals(province)">
+                and province = #{province}
+            </if>
+            <if test="city != null and !&quot;&quot;.equals(city)">
+                and city = #{city}
+            </if>
+            <if test="district != null and !&quot;&quot;.equals(district)">
+                and district = #{district}
+            </if>
+            <if test="roleId != null and !&quot;&quot;.equals(roleId)">
+                and role_id = #{roleId}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+
+            <if test="contacter != null and !&quot;&quot;.equals(contacter)">
+                and contacter = #{contacter}
+            </if>
+            <if test="contactPhone != null and !&quot;&quot;.equals(contactPhone)">
+                and contact_phone = #{contactPhone}
+            </if>
+            <if test="companyName != null and !&quot;&quot;.equals(companyName)">
+                and company_name = #{companyName}
+            </if>
+            <if test="companyType != null and !&quot;&quot;.equals(companyType)">
+                and company_type = #{companyType}
+            </if>
+            <if test="adminFlag != null and !&quot;&quot;.equals(adminFlag)">
+                and admin_flag = #{adminFlag}
+            </if>
+            <if test="cashPledge != null and !&quot;&quot;.equals(cashPledge)">
+                and cash_pledge = #{cashPledge}
+            </if>
+            <if test="approveFlag != null and !&quot;&quot;.equals(approveFlag)">
+                and approve_flag = #{approveFlag}
+            </if>
+            <if test="storeFlag != null and !&quot;&quot;.equals(storeFlag)">
+                and store_flag = #{storeFlag}
+            </if>
+            <if test="companyFlag != null and !&quot;&quot;.equals(companyFlag)">
+                and company_flag = #{companyFlag}
+            </if>
+            <if test="approveStep != null and !&quot;&quot;.equals(approveStep)">
+                and approve_step = #{approveStep}
+            </if>
+
+        </where>
+        order by id desc
+    </select>
+    <select id="queryUserInfo" parameterType="java.util.Map" resultMap="BaseResultMap">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_user
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="username != null and !&quot;&quot;.equals(username)">
+                and username = #{username}
+            </if>
+            <if test="nickname != null and !&quot;&quot;.equals(nickname)">
+                and nickname = #{nickname}
+            </if>
+            <if test="password != null and !&quot;&quot;.equals(password)">
+                and password = #{password}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="birthday != null and !&quot;&quot;.equals(birthday)">
+                and birthday = #{birthday}
+            </if>
+            <if test="sex != null and !&quot;&quot;.equals(sex)">
+                and sex = #{sex}
+            </if>
+            <if test="openId != null and !&quot;&quot;.equals(openId)">
+                and open_id = #{openId}
+            </if>
+            <if test="unionId != null and !&quot;&quot;.equals(unionId)">
+                and union_id = #{unionId}
+            </if>
+            <if test="phone != null and !&quot;&quot;.equals(phone)">
+                and phone = #{phone}
+            </if>
+            <if test="mail != null and !&quot;&quot;.equals(mail)">
+                and mail = #{mail}
+            </if>
+            <if test="country != null and !&quot;&quot;.equals(country)">
+                and country = #{country}
+            </if>
+            <if test="province != null and !&quot;&quot;.equals(province)">
+                and province = #{province}
+            </if>
+            <if test="city != null and !&quot;&quot;.equals(city)">
+                and city = #{city}
+            </if>
+            <if test="district != null and !&quot;&quot;.equals(district)">
+                and district = #{district}
+            </if>
+            <if test="roleId != null and !&quot;&quot;.equals(roleId)">
+                and role_id = #{roleId}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+        </where>
+        LIMIT 1
+    </select>
+    <select id="querySingleUserInfo" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.UserInfo">
+        select
+        <include refid="Base_Column_List"/>
+        from sys_user
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="username != null and !&quot;&quot;.equals(username)">
+                and username = #{username}
+            </if>
+            <if test="nickname != null and !&quot;&quot;.equals(nickname)">
+                and nickname = #{nickname}
+            </if>
+            <if test="password != null and !&quot;&quot;.equals(password)">
+                and password = #{password}
+            </if>
+            <if test="icon != null and !&quot;&quot;.equals(icon)">
+                and icon = #{icon}
+            </if>
+            <if test="birthday != null and !&quot;&quot;.equals(birthday)">
+                and birthday = #{birthday}
+            </if>
+            <if test="sex != null and !&quot;&quot;.equals(sex)">
+                and sex = #{sex}
+            </if>
+            <if test="openId != null and !&quot;&quot;.equals(openId)">
+                and open_id = #{openId}
+            </if>
+            <if test="unionId != null and !&quot;&quot;.equals(unionId)">
+                and union_id = #{unionId}
+            </if>
+            <if test="phone != null and !&quot;&quot;.equals(phone)">
+                and phone = #{phone}
+            </if>
+            <if test="mail != null and !&quot;&quot;.equals(mail)">
+                and mail = #{mail}
+            </if>
+            <if test="country != null and !&quot;&quot;.equals(country)">
+                and country = #{country}
+            </if>
+            <if test="province != null and !&quot;&quot;.equals(province)">
+                and province = #{province}
+            </if>
+            <if test="city != null and !&quot;&quot;.equals(city)">
+                and city = #{city}
+            </if>
+            <if test="district != null and !&quot;&quot;.equals(district)">
+                and district = #{district}
+            </if>
+            <if test="roleId != null and !&quot;&quot;.equals(roleId)">
+                and role_id = #{roleId}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+        </where>
+        LIMIT 1
+    </select>
+    <select id="login" resultMap="BaseResultMap" parameterType="java.util.Map">
+        SELECT
+        <include refid="Base_Column_List"/>
+        from sys_user
+        WHERE (username = #{username} or phone = #{username} or mail = #{username}) AND password = #{password} AND del_flag = 'N'
+    </select>
+    <select id="findDepartLeader" resultType="java.lang.String">
+        SELECT *
+        FROM (SELECT user_id, GROUP_CONCAT(depart_id ORDER BY depart_id) AS depart_id
+              FROM sys_user_depart
+              GROUP BY user_id) AS tmp
+                 LEFT JOIN sys_user_role ON tmp.user_id = sys_user_role.user_id
+        WHERE tmp.depart_id =
+              (SELECT GROUP_CONCAT(depart_id ORDER BY depart_id) FROM sys_user_depart WHERE user_id = #{userId})
+          AND role_id = 9
+    </select>
+    <select id="findUserByRoleName" resultType="java.lang.String">
+        SELECT user_id
+        FROM sys_user_role
+        WHERE FIND_IN_SET((SELECT id FROM sys_role WHERE enname = #{roleName}
+                                                     AND sys_role.del_flag = 'N'), role_id)
+    </select>
+    <update id="delete">
+        UPDATE sys_user SET del_flag = 'Y'
+        <where>
+            AND id = #{id}
+        </where>
+    </update>
+
+    <update id="updatePassword" parameterType="com.izouma.awesomeadmin.model.UserInfo">
+        update sys_user
+        <set>
+            <if test="password != null">
+                password = #{password,jdbcType=VARCHAR},
+            </if>
+        </set>
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="username != null and !&quot;&quot;.equals(username)">
+                and username = #{username}
+            </if>
+            <if test="phone != null and !&quot;&quot;.equals(phone)">
+                and phone = #{phone}
+            </if>
+            <if test="mail != null and !&quot;&quot;.equals(mail)">
+                and mail = #{mail}
+            </if>
+        </where>
+
+    </update>
+
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/VuforiaImageGroupMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.VuforiaImageGroup;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.VuforiaImageGroupMapper")
+public interface VuforiaImageGroupMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(VuforiaImageGroup record);
+
+    VuforiaImageGroup selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(VuforiaImageGroup record);
+
+    List<VuforiaImageGroup> queryAllVuforiaImageGroup(VuforiaImageGroup record);
+
+    List<VuforiaImageGroup> queryVuforiaImageGroupByPage(Map<String, Object> parameter);
+
+    int delete(VuforiaImageGroup record);
+
+    VuforiaImageGroup queryVuforiaImageGroup(VuforiaImageGroup record);
+
+    List<VuforiaImageGroup> query(VuforiaImageGroup record);
+}
+

+ 472 - 0
src/main/java/com/izouma/awesomeadmin/dao/VuforiaImageGroupMapper.xml

@@ -0,0 +1,472 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.izouma.awesomeadmin.dao.VuforiaImageGroupMapper">
+    <resultMap id="BaseResultMap" type="com.izouma.awesomeadmin.model.VuforiaImageGroup">
+        <id column="id" property="id" jdbcType="INTEGER"/>
+        <result column="del_flag" property="delFlag" jdbcType="CHAR"/>
+        <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
+        <result column="update_user" property="updateUser" jdbcType="VARCHAR"/>
+        <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
+        <result column="create_user" property="createUser" jdbcType="VARCHAR"/>
+        <result column="vuforia_data_name" property="vuforiaDataName" jdbcType="VARCHAR"/>
+        <result column="vuforia_name" property="vuforiaName" jdbcType="VARCHAR"/>
+        <result column="remark1" property="remark1" jdbcType="VARCHAR"/>
+        <result column="remark2" property="remark2" jdbcType="VARCHAR"/>
+        <result column="remark3" property="remark3" jdbcType="VARCHAR"/>
+        <result column="access_key" property="accessKey" jdbcType="VARCHAR"/>
+        <result column="secret_key" property="secretKey" jdbcType="VARCHAR"/>
+    </resultMap>
+    <sql id="Base_Column_List">
+        <trim suffixOverrides=",">
+            id,
+
+            del_flag,
+
+            update_time,
+
+            update_user,
+
+            create_time,
+
+            create_user,
+
+            vuforia_data_name,
+
+            vuforia_name,
+
+            remark1,
+
+            remark2,
+
+            remark3,
+
+            access_key,
+
+            secret_key,
+
+        </trim>
+    </sql>
+    <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
+        select
+        <include refid="Base_Column_List"/>
+        from vuforia_image_group
+        where id = #{id,jdbcType=INTEGER}
+    </select>
+    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+        delete from vuforia_image_group
+        where id = #{id,jdbcType=INTEGER}
+    </delete>
+    <insert id="insertSelective" parameterType="com.izouma.awesomeadmin.model.VuforiaImageGroup" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into vuforia_image_group
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id!= null">
+                id,
+            </if>
+            <if test="delFlag!= null">
+                del_flag,
+            </if>
+            <if test="updateTime!= null">
+                update_time,
+            </if>
+            <if test="updateUser!= null">
+                update_user,
+            </if>
+            <if test="createTime!= null">
+                create_time,
+            </if>
+            <if test="createUser!= null">
+                create_user,
+            </if>
+            <if test="vuforiaDataName!= null">
+                vuforia_data_name,
+            </if>
+            <if test="vuforiaName!= null">
+                vuforia_name,
+            </if>
+            <if test="remark1!= null">
+                remark1,
+            </if>
+            <if test="remark2!= null">
+                remark2,
+            </if>
+            <if test="remark3!= null">
+                remark3,
+            </if>
+            <if test="accessKey!= null">
+                access_key,
+            </if>
+            <if test="secretKey!= null">
+                secret_key,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">
+                #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaDataName != null">
+                #{vuforiaDataName,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaName != null">
+                #{vuforiaName,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="accessKey != null">
+                #{accessKey,jdbcType=VARCHAR},
+            </if>
+            <if test="secretKey != null">
+                #{secretKey,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKeySelective" parameterType="com.izouma.awesomeadmin.model.VuforiaImageGroup">
+        update vuforia_image_group
+        <set>
+            <if test="id != null">
+                id= #{id,jdbcType=INTEGER},
+            </if>
+            <if test="delFlag != null">
+                del_flag= #{delFlag,jdbcType=CHAR},
+            </if>
+            <if test="updateTime != null">
+                update_time= #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUser != null">
+                update_user= #{updateUser,jdbcType=VARCHAR},
+            </if>
+            <if test="createTime != null">
+                create_time= #{createTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="createUser != null">
+                create_user= #{createUser,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaDataName != null">
+                vuforia_data_name= #{vuforiaDataName,jdbcType=VARCHAR},
+            </if>
+            <if test="vuforiaName != null">
+                vuforia_name= #{vuforiaName,jdbcType=VARCHAR},
+            </if>
+            <if test="remark1 != null">
+                remark1= #{remark1,jdbcType=VARCHAR},
+            </if>
+            <if test="remark2 != null">
+                remark2= #{remark2,jdbcType=VARCHAR},
+            </if>
+            <if test="remark3 != null">
+                remark3= #{remark3,jdbcType=VARCHAR},
+            </if>
+            <if test="accessKey != null">
+                access_key= #{accessKey,jdbcType=VARCHAR},
+            </if>
+            <if test="secretKey != null">
+                secret_key = #{secretKey,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+
+    </update>
+    <select id="queryVuforiaImageGroupByPage" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.VuforiaImageGroup">
+        select
+        <include refid="Base_Column_List"/>
+        from vuforia_image_group
+        <where>
+            and del_flag = 'N'
+            <if test="record.idStr != null and !&quot;&quot;.equals(record.idStr)">
+                and id in (${record.idStr})
+            </if>
+            <if test="record.id != null and !&quot;&quot;.equals(record.id)">
+                and id = #{record.id}
+            </if>
+            <if test="record.delFlag != null and !&quot;&quot;.equals(record.delFlag)">
+                and del_flag = #{record.delFlag}
+            </if>
+            <if test="record.updateTime != null and !&quot;&quot;.equals(record.updateTime)">
+                and update_time = #{record.updateTime}
+            </if>
+            <if test="record.updateUser != null and !&quot;&quot;.equals(record.updateUser)">
+                and update_user = #{record.updateUser}
+            </if>
+            <if test="record.createTime != null and !&quot;&quot;.equals(record.createTime)">
+                and create_time = #{record.createTime}
+            </if>
+            <if test="record.createUser != null and !&quot;&quot;.equals(record.createUser)">
+                and create_user = #{record.createUser}
+            </if>
+            <if test="record.vuforiaDataName != null and !&quot;&quot;.equals(record.vuforiaDataName)">
+                and vuforia_data_name = #{record.vuforiaDataName}
+            </if>
+            <if test="record.vuforiaName != null and !&quot;&quot;.equals(record.vuforiaName)">
+                and vuforia_name = #{record.vuforiaName}
+            </if>
+            <if test="record.remark1 != null and !&quot;&quot;.equals(record.remark1)">
+                and remark1 = #{record.remark1}
+            </if>
+            <if test="record.remark2 != null and !&quot;&quot;.equals(record.remark2)">
+                and remark2 = #{record.remark2}
+            </if>
+            <if test="record.remark3 != null and !&quot;&quot;.equals(record.remark3)">
+                and remark3 = #{record.remark3}
+            </if>
+            <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR vuforia_data_name LIKE concat('%',#{record.searchKey},'%')
+                    OR vuforia_name LIKE concat('%',#{record.searchKey},'%')
+                    OR remark1 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark2 LIKE concat('%',#{record.searchKey},'%')
+                    OR remark3 LIKE concat('%',#{record.searchKey},'%')
+                </trim>
+            </if>
+
+            <if test="record.advancedQuery != null and !&quot;&quot;.equals(record.advancedQuery)">
+                <foreach item="item" index="index" collection="record.advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+
+        </where>
+        order by
+
+        <if test="record.orderByStr != null and !&quot;&quot;.equals(record.orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="record.orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+        id desc
+    </select>
+    <select id="queryAllVuforiaImageGroup" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.VuforiaImageGroup">
+        select
+        <include refid="Base_Column_List"/>
+        from vuforia_image_group
+        <where>
+            and del_flag = 'N'
+            <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+                and id in (${idStr})
+            </if>
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="vuforiaDataName != null and !&quot;&quot;.equals(vuforiaDataName)">
+                and vuforia_data_name = #{vuforiaDataName}
+            </if>
+            <if test="vuforiaName != null and !&quot;&quot;.equals(vuforiaName)">
+                and vuforia_name = #{vuforiaName}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+            <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
+                <trim prefix="and (" suffix=")" prefixOverrides="OR">
+                    OR vuforia_data_name LIKE concat('%',#{searchKey},'%')
+                    OR vuforia_name LIKE concat('%',#{searchKey},'%')
+                    OR remark1 LIKE concat('%',#{searchKey},'%')
+                    OR remark2 LIKE concat('%',#{searchKey},'%')
+                    OR remark3 LIKE concat('%',#{searchKey},'%')
+                </trim>
+            </if>
+            <if test="advancedQuery != null and !&quot;&quot;.equals(advancedQuery)">
+                <foreach item="item" index="index" collection="advancedQuery.split('_;')">
+                    <choose>
+                        <when test="item.indexOf('like') != -1">
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    concat('%',#{itemDetail},'%')
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </when>
+                        <otherwise>
+                            <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                                <if test="detailIndex == 3">
+                                    #{itemDetail}
+                                </if>
+
+                                <if test="detailIndex &lt; 3">
+                                    ${itemDetail}
+                                </if>
+
+                            </foreach>
+                        </otherwise>
+                    </choose>
+
+
+                </foreach>
+
+
+            </if>
+        </where>
+        order by
+
+        <if test="orderByStr != null and !&quot;&quot;.equals(orderByStr)">
+
+
+            <trim suffixOverrides=",">
+                <foreach item="item" index="index" separator="," collection="orderByStr.split('_;')">
+                    <foreach item="itemDetail" index="detailIndex" collection="item.split('_,')">
+                        ${itemDetail}
+                    </foreach>
+                </foreach>
+            </trim>
+            ,
+        </if>
+
+        id desc
+    </select>
+    <select id="queryVuforiaImageGroup" parameterType="java.util.Map"
+            resultType="com.izouma.awesomeadmin.model.VuforiaImageGroup">
+        select
+        <include refid="Base_Column_List"/>
+        from vuforia_image_group
+        <where>
+            and del_flag = 'N'
+            <if test="id != null and !&quot;&quot;.equals(id)">
+                and id = #{id}
+            </if>
+            <if test="delFlag != null and !&quot;&quot;.equals(delFlag)">
+                and del_flag = #{delFlag}
+            </if>
+            <if test="updateTime != null and !&quot;&quot;.equals(updateTime)">
+                and update_time = #{updateTime}
+            </if>
+            <if test="updateUser != null and !&quot;&quot;.equals(updateUser)">
+                and update_user = #{updateUser}
+            </if>
+            <if test="createTime != null and !&quot;&quot;.equals(createTime)">
+                and create_time = #{createTime}
+            </if>
+            <if test="createUser != null and !&quot;&quot;.equals(createUser)">
+                and create_user = #{createUser}
+            </if>
+            <if test="vuforiaDataName != null and !&quot;&quot;.equals(vuforiaDataName)">
+                and vuforia_data_name = #{vuforiaDataName}
+            </if>
+            <if test="vuforiaName != null and !&quot;&quot;.equals(vuforiaName)">
+                and vuforia_name = #{vuforiaName}
+            </if>
+            <if test="remark1 != null and !&quot;&quot;.equals(remark1)">
+                and remark1 = #{remark1}
+            </if>
+            <if test="remark2 != null and !&quot;&quot;.equals(remark2)">
+                and remark2 = #{remark2}
+            </if>
+            <if test="remark3 != null and !&quot;&quot;.equals(remark3)">
+                and remark3 = #{remark3}
+            </if>
+
+        </where>
+        LIMIT 1
+    </select>
+    <update id="delete">
+        UPDATE vuforia_image_group SET del_flag = 'Y'
+        where
+        <if test="id != null and !&quot;&quot;.equals(id)">
+            id = #{id,jdbcType=INTEGER}
+        </if>
+
+        <if test="idStr != null and !&quot;&quot;.equals(idStr)">
+            id in (${idStr})
+        </if>
+    </update>
+    <select id="query" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.VuforiaImageGroup">
+        select
+        <include refid="Base_Column_List"/>
+        from vuforia_image_group
+        <where>
+            and del_flag = 'N'
+        </where>
+        order by id desc
+    </select>
+</mapper>
+

+ 33 - 0
src/main/java/com/izouma/awesomeadmin/dao/VuforiaImageInfoMapper.java

@@ -0,0 +1,33 @@
+package com.izouma.awesomeadmin.dao;
+
+import java.util.*;
+import com.izouma.awesomeadmin.datasource.DataSource;
+import org.springframework.stereotype.Repository;
+import com.izouma.awesomeadmin.model.VuforiaImageInfo;
+
+
+/**
+*  Dao接口
+*/
+@Repository("com.zoumaframe.dao.VuforiaImageInfoMapper")
+public interface VuforiaImageInfoMapper{
+
+    int deleteByPrimaryKey(Integer id);
+
+    int insertSelective(VuforiaImageInfo record);
+
+    VuforiaImageInfo selectByPrimaryKey(Integer id);
+
+    int updateByPrimaryKeySelective(VuforiaImageInfo record);
+
+    List<VuforiaImageInfo> queryAllVuforiaImageInfo(VuforiaImageInfo record);
+
+    List<VuforiaImageInfo> queryVuforiaImageInfoByPage(Map<String, Object> parameter);
+
+    int delete(VuforiaImageInfo record);
+
+    VuforiaImageInfo queryVuforiaImageInfo(VuforiaImageInfo record);
+
+    List<VuforiaImageInfo> query(VuforiaImageInfo record);
+}
+

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.