Browse Source

添加忽略文件

ZZW 10 months ago
parent
commit
d0ac307063
87 changed files with 39 additions and 995 deletions
  1. 1 0
      .gitignore
  2. 5 0
      .idea/jarRepositories.xml
  3. 1 1
      .idea/misc.xml
  4. 29 29
      springboot/pom.xml
  5. 1 1
      springboot/src/main/resources/application-druid.yml
  6. 1 1
      springboot/src/main/resources/application.yml
  7. 0 57
      springboot/target/classes/application-druid.yml
  8. 0 31
      springboot/target/classes/application.yml
  9. BIN
      springboot/target/classes/com/example/SpringbootApplication.class
  10. BIN
      springboot/target/classes/com/example/common/Constants.class
  11. BIN
      springboot/target/classes/com/example/common/Result.class
  12. BIN
      springboot/target/classes/com/example/common/config/CorsConfig.class
  13. BIN
      springboot/target/classes/com/example/common/config/DruidConfig$1.class
  14. BIN
      springboot/target/classes/com/example/common/config/DruidConfig.class
  15. BIN
      springboot/target/classes/com/example/common/config/JwtInterceptor.class
  16. BIN
      springboot/target/classes/com/example/common/config/Properties/DruidProperties.class
  17. BIN
      springboot/target/classes/com/example/common/config/WebConfig.class
  18. BIN
      springboot/target/classes/com/example/common/enums/OrderStatusDELIVERY.class
  19. BIN
      springboot/target/classes/com/example/common/enums/OrderStatusToShop.class
  20. BIN
      springboot/target/classes/com/example/common/enums/OrderType.class
  21. BIN
      springboot/target/classes/com/example/common/enums/ResultCodeEnum.class
  22. BIN
      springboot/target/classes/com/example/common/enums/RoleEnum.class
  23. BIN
      springboot/target/classes/com/example/controller/AdminController.class
  24. BIN
      springboot/target/classes/com/example/controller/AdminstoreController.class
  25. BIN
      springboot/target/classes/com/example/controller/AuditsController.class
  26. BIN
      springboot/target/classes/com/example/controller/FileController.class
  27. BIN
      springboot/target/classes/com/example/controller/NoticeController.class
  28. BIN
      springboot/target/classes/com/example/controller/OrdersController.class
  29. BIN
      springboot/target/classes/com/example/controller/ProductController.class
  30. BIN
      springboot/target/classes/com/example/controller/ProductypeController.class
  31. BIN
      springboot/target/classes/com/example/controller/SaleStatementController.class
  32. BIN
      springboot/target/classes/com/example/controller/StoreController.class
  33. BIN
      springboot/target/classes/com/example/controller/UserController.class
  34. BIN
      springboot/target/classes/com/example/controller/WebController.class
  35. BIN
      springboot/target/classes/com/example/entity/Account.class
  36. BIN
      springboot/target/classes/com/example/entity/Admin.class
  37. BIN
      springboot/target/classes/com/example/entity/Adminstore.class
  38. BIN
      springboot/target/classes/com/example/entity/Audits.class
  39. BIN
      springboot/target/classes/com/example/entity/Notice.class
  40. BIN
      springboot/target/classes/com/example/entity/Orders.class
  41. BIN
      springboot/target/classes/com/example/entity/Product.class
  42. BIN
      springboot/target/classes/com/example/entity/Productype.class
  43. BIN
      springboot/target/classes/com/example/entity/SaleStatement.class
  44. BIN
      springboot/target/classes/com/example/entity/Store.class
  45. BIN
      springboot/target/classes/com/example/entity/User.class
  46. BIN
      springboot/target/classes/com/example/exception/CustomException.class
  47. BIN
      springboot/target/classes/com/example/exception/GlobalExceptionHandler.class
  48. BIN
      springboot/target/classes/com/example/mapper/AdminMapper.class
  49. BIN
      springboot/target/classes/com/example/mapper/AdminstoreMapper.class
  50. BIN
      springboot/target/classes/com/example/mapper/AuditsMapper.class
  51. BIN
      springboot/target/classes/com/example/mapper/NoticeMapper.class
  52. BIN
      springboot/target/classes/com/example/mapper/OrdersMapper.class
  53. BIN
      springboot/target/classes/com/example/mapper/ProductMapper.class
  54. BIN
      springboot/target/classes/com/example/mapper/ProductypeMapper.class
  55. BIN
      springboot/target/classes/com/example/mapper/SaleStatementMapper.class
  56. BIN
      springboot/target/classes/com/example/mapper/StoreMapper.class
  57. BIN
      springboot/target/classes/com/example/mapper/UserMapper.class
  58. BIN
      springboot/target/classes/com/example/service/AdminService.class
  59. BIN
      springboot/target/classes/com/example/service/AdminStoreService.class
  60. BIN
      springboot/target/classes/com/example/service/AuditsService.class
  61. BIN
      springboot/target/classes/com/example/service/NoticeService.class
  62. BIN
      springboot/target/classes/com/example/service/OrdersService.class
  63. BIN
      springboot/target/classes/com/example/service/ProductService.class
  64. BIN
      springboot/target/classes/com/example/service/ProductypeService.class
  65. BIN
      springboot/target/classes/com/example/service/SaleStatementService.class
  66. BIN
      springboot/target/classes/com/example/service/StoreService.class
  67. BIN
      springboot/target/classes/com/example/service/UserService.class
  68. BIN
      springboot/target/classes/com/example/utils/TokenUtils.class
  69. BIN
      springboot/target/classes/com/example/utils/generate/CodeGenerator.class
  70. BIN
      springboot/target/classes/com/example/utils/generate/ControllerGenerator.class
  71. BIN
      springboot/target/classes/com/example/utils/generate/EntityGenerator.class
  72. BIN
      springboot/target/classes/com/example/utils/generate/MapperGenerator.class
  73. BIN
      springboot/target/classes/com/example/utils/generate/ServiceGenerator.class
  74. BIN
      springboot/target/classes/com/example/utils/generate/Table.class
  75. BIN
      springboot/target/classes/com/example/utils/generate/TableColumn.class
  76. BIN
      springboot/target/classes/com/example/utils/generate/VueGenerator.class
  77. 0 91
      springboot/target/classes/mapper/AdminMapper.xml
  78. 0 93
      springboot/target/classes/mapper/AdminstoreMapper.xml
  79. 0 86
      springboot/target/classes/mapper/AuditsMapper.xml
  80. 0 74
      springboot/target/classes/mapper/NoticeMapper.xml
  81. 0 110
      springboot/target/classes/mapper/OrdersMapper.xml
  82. 0 86
      springboot/target/classes/mapper/ProductMapper.xml
  83. 0 56
      springboot/target/classes/mapper/ProductypeMapper.xml
  84. 0 80
      springboot/target/classes/mapper/SaleStatementMapper.xml
  85. 0 74
      springboot/target/classes/mapper/StoreMapper.xml
  86. 0 124
      springboot/target/classes/mapper/UserMapper.xml
  87. 1 1
      vue/src/views/Login.vue

+ 1 - 0
.gitignore

@@ -1 +1,2 @@
 /vue/node_modules/
+/springboot/src/main/resources/application-druid.yml

+ 5 - 0
.idea/jarRepositories.xml

@@ -1,6 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="RemoteRepositoriesConfiguration">
+    <remote-repository>
+      <option name="id" value="central" />
+      <option name="name" value="Central Repository" />
+      <option name="url" value="https://repo.maven.apache.org/maven2" />
+    </remote-repository>
     <remote-repository>
       <option name="id" value="spring-milestones" />
       <option name="name" value="Spring Milestones" />

+ 1 - 1
.idea/misc.xml

@@ -12,7 +12,7 @@
       </list>
     </option>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_18" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/out" />
   </component>
 </project>

+ 29 - 29
springboot/pom.xml

@@ -70,10 +70,10 @@
             <version>1.2.8</version>
         </dependency>
 <!--        openai      -->
-        <dependency>
-            <groupId>org.springframework.ai</groupId>
-            <artifactId>spring-ai-openai-spring-boot-starter</artifactId>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>org.springframework.ai</groupId>-->
+<!--            <artifactId>spring-ai-openai-spring-boot-starter</artifactId>-->
+<!--        </dependency>-->
     </dependencies>
 
     <build>
@@ -98,32 +98,32 @@
             </releases>
         </repository>
 <!--    openAi 下载仓库-->
-        <repository>
-            <id>spring-milestones</id>
-            <name>Spring Milestones</name>
-            <url>https://repo.spring.io/milestone</url>
-            <snapshots>
-                <enabled>false</enabled>
-            </snapshots>
-        </repository>
-        <repository>
-            <id>spring-snapshots</id>
-            <name>Spring Snapshots</name>
-            <url>https://repo.spring.io/snapshot</url>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-        </repository>
+<!--        <repository>-->
+<!--            <id>spring-milestones</id>-->
+<!--            <name>Spring Milestones</name>-->
+<!--            <url>https://repo.spring.io/milestone</url>-->
+<!--            <snapshots>-->
+<!--                <enabled>false</enabled>-->
+<!--            </snapshots>-->
+<!--        </repository>-->
+<!--        <repository>-->
+<!--            <id>spring-snapshots</id>-->
+<!--            <name>Spring Snapshots</name>-->
+<!--            <url>https://repo.spring.io/snapshot</url>-->
+<!--            <releases>-->
+<!--                <enabled>false</enabled>-->
+<!--            </releases>-->
+<!--        </repository>-->
     </repositories>
     <dependencyManagement>
-        <dependencies>
-            <dependency>
-                <groupId>org.springframework.ai</groupId>
-                <artifactId>spring-ai-bom</artifactId>
-                <version>0.8.1-SNAPSHOT</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
+<!--        <dependencies>-->
+<!--            <dependency>-->
+<!--                <groupId>org.springframework.ai</groupId>-->
+<!--                <artifactId>spring-ai-bom</artifactId>-->
+<!--                <version>0.8.1-SNAPSHOT</version>-->
+<!--                <type>pom</type>-->
+<!--                <scope>import</scope>-->
+<!--            </dependency>-->
+<!--        </dependencies>-->
     </dependencyManagement>
 </project>

+ 1 - 1
springboot/src/main/resources/application-druid.yml

@@ -8,7 +8,7 @@ spring:
       master:
         url: jdbc:mysql://localhost:3306/fruit_farmer?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
         username: root
-        password: 0714@Xhy
+        password: 425605
       # 从库数据源
       slave:
         # 从数据源开关/默认关闭

+ 1 - 1
springboot/src/main/resources/application.yml

@@ -7,7 +7,7 @@ spring:
     active: druid # 使用druid这个配置文件的配置
     url: jdbc:mysql://localhost:3306/fruit_farmer?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
     username: root
-    password: 0714@Xhy
+    password: 1234
   servlet:
     multipart:
       max-file-size: 100MB

+ 0 - 57
springboot/target/classes/application-druid.yml

@@ -1,57 +0,0 @@
-# 数据源配置
-spring:
-  datasource:
-    type: com.alibaba.druid.pool.DruidDataSource
-    driverClassName: com.mysql.cj.jdbc.Driver
-    druid:
-      # 主库数据源
-      master:
-        url: jdbc:mysql://localhost:3306/fruit_farmer?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
-        username: root
-        password: 0714@Xhy
-      # 从库数据源
-      slave:
-        # 从数据源开关/默认关闭
-        enabled: false
-        url:
-        username:
-        password:
-      # 初始连接数
-      initialSize: 5
-      # 最小连接池数量
-      minIdle: 10
-      # 最大连接池数量
-      maxActive: 20
-      # 配置获取连接等待超时的时间
-      maxWait: 60000
-      # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
-      timeBetweenEvictionRunsMillis: 60000
-      # 配置一个连接在池中最小生存的时间,单位是毫秒
-      minEvictableIdleTimeMillis: 300000
-      # 配置一个连接在池中最大生存的时间,单位是毫秒
-      maxEvictableIdleTimeMillis: 900000
-      # 配置检测连接是否有效
-      validationQuery: SELECT 1 FROM DUAL
-      testWhileIdle: true
-      testOnBorrow: false
-      testOnReturn: false
-      webStatFilter:
-        enabled: true
-      statViewServlet:
-        enabled: true
-        # 设置白名单,不填则允许所有访问
-        allow:
-        url-pattern: /druid/*
-        # 控制台管理用户名和密码
-        login-username: xhy
-        login-password: 123456
-      filter:
-        stat:
-          enabled: true
-          # 慢SQL记录
-          log-slow-sql: true
-          slow-sql-millis: 1000
-          merge-sql: true
-        wall:
-          config:
-            multi-statement-allow: true

+ 0 - 31
springboot/target/classes/application.yml

@@ -1,31 +0,0 @@
-server:
-  port: 2441
-
-# 数据库配置
-spring:
-  profiles:
-    active: druid # 使用druid这个配置文件的配置
-    url: jdbc:mysql://localhost:3306/fruit_farmer?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
-    username: root
-    password: 0714@Xhy
-  servlet:
-    multipart:
-      max-file-size: 100MB
-      max-request-size: 100MB
-
-# 配置mybatis实体和xml映射
-mybatis:
-  mapper-locations: classpath:mapper/*.xml
-  type-aliases-package: com.example.entity
-  configuration:
-    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-    map-underscore-to-camel-case: true
-
-# 分页
-pagehelper:
-  helper-dialect: mysql
-  reasonable: true
-  support-methods-arguments: true
-  params: count=countSql
-
-ip: localhost

BIN
springboot/target/classes/com/example/SpringbootApplication.class


BIN
springboot/target/classes/com/example/common/Constants.class


BIN
springboot/target/classes/com/example/common/Result.class


BIN
springboot/target/classes/com/example/common/config/CorsConfig.class


BIN
springboot/target/classes/com/example/common/config/DruidConfig$1.class


BIN
springboot/target/classes/com/example/common/config/DruidConfig.class


BIN
springboot/target/classes/com/example/common/config/JwtInterceptor.class


BIN
springboot/target/classes/com/example/common/config/Properties/DruidProperties.class


BIN
springboot/target/classes/com/example/common/config/WebConfig.class


BIN
springboot/target/classes/com/example/common/enums/OrderStatusDELIVERY.class


BIN
springboot/target/classes/com/example/common/enums/OrderStatusToShop.class


BIN
springboot/target/classes/com/example/common/enums/OrderType.class


BIN
springboot/target/classes/com/example/common/enums/ResultCodeEnum.class


BIN
springboot/target/classes/com/example/common/enums/RoleEnum.class


BIN
springboot/target/classes/com/example/controller/AdminController.class


BIN
springboot/target/classes/com/example/controller/AdminstoreController.class


BIN
springboot/target/classes/com/example/controller/AuditsController.class


BIN
springboot/target/classes/com/example/controller/FileController.class


BIN
springboot/target/classes/com/example/controller/NoticeController.class


BIN
springboot/target/classes/com/example/controller/OrdersController.class


BIN
springboot/target/classes/com/example/controller/ProductController.class


BIN
springboot/target/classes/com/example/controller/ProductypeController.class


BIN
springboot/target/classes/com/example/controller/SaleStatementController.class


BIN
springboot/target/classes/com/example/controller/StoreController.class


BIN
springboot/target/classes/com/example/controller/UserController.class


BIN
springboot/target/classes/com/example/controller/WebController.class


BIN
springboot/target/classes/com/example/entity/Account.class


BIN
springboot/target/classes/com/example/entity/Admin.class


BIN
springboot/target/classes/com/example/entity/Adminstore.class


BIN
springboot/target/classes/com/example/entity/Audits.class


BIN
springboot/target/classes/com/example/entity/Notice.class


BIN
springboot/target/classes/com/example/entity/Orders.class


BIN
springboot/target/classes/com/example/entity/Product.class


BIN
springboot/target/classes/com/example/entity/Productype.class


BIN
springboot/target/classes/com/example/entity/SaleStatement.class


BIN
springboot/target/classes/com/example/entity/Store.class


BIN
springboot/target/classes/com/example/entity/User.class


BIN
springboot/target/classes/com/example/exception/CustomException.class


BIN
springboot/target/classes/com/example/exception/GlobalExceptionHandler.class


BIN
springboot/target/classes/com/example/mapper/AdminMapper.class


BIN
springboot/target/classes/com/example/mapper/AdminstoreMapper.class


BIN
springboot/target/classes/com/example/mapper/AuditsMapper.class


BIN
springboot/target/classes/com/example/mapper/NoticeMapper.class


BIN
springboot/target/classes/com/example/mapper/OrdersMapper.class


BIN
springboot/target/classes/com/example/mapper/ProductMapper.class


BIN
springboot/target/classes/com/example/mapper/ProductypeMapper.class


BIN
springboot/target/classes/com/example/mapper/SaleStatementMapper.class


BIN
springboot/target/classes/com/example/mapper/StoreMapper.class


BIN
springboot/target/classes/com/example/mapper/UserMapper.class


BIN
springboot/target/classes/com/example/service/AdminService.class


BIN
springboot/target/classes/com/example/service/AdminStoreService.class


BIN
springboot/target/classes/com/example/service/AuditsService.class


BIN
springboot/target/classes/com/example/service/NoticeService.class


BIN
springboot/target/classes/com/example/service/OrdersService.class


BIN
springboot/target/classes/com/example/service/ProductService.class


BIN
springboot/target/classes/com/example/service/ProductypeService.class


BIN
springboot/target/classes/com/example/service/SaleStatementService.class


BIN
springboot/target/classes/com/example/service/StoreService.class


BIN
springboot/target/classes/com/example/service/UserService.class


BIN
springboot/target/classes/com/example/utils/TokenUtils.class


BIN
springboot/target/classes/com/example/utils/generate/CodeGenerator.class


BIN
springboot/target/classes/com/example/utils/generate/ControllerGenerator.class


BIN
springboot/target/classes/com/example/utils/generate/EntityGenerator.class


BIN
springboot/target/classes/com/example/utils/generate/MapperGenerator.class


BIN
springboot/target/classes/com/example/utils/generate/ServiceGenerator.class


BIN
springboot/target/classes/com/example/utils/generate/Table.class


BIN
springboot/target/classes/com/example/utils/generate/TableColumn.class


BIN
springboot/target/classes/com/example/utils/generate/VueGenerator.class


+ 0 - 91
springboot/target/classes/mapper/AdminMapper.xml

@@ -1,91 +0,0 @@
-<?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.example.mapper.AdminMapper">
-
-    <sql id="Base_Column_List">
-        id,username,password,name,phone,email,avatar,role
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Admin">
-        select
-        <include refid="Base_Column_List" />
-        from admin
-        <where>
-            <if test="id != null"> and id= #{id}</if>
-            <if test="username != null"> and username like concat('%', #{username}, '%')</if>
-            <if test="password != null"> and password= #{password}</if>
-            <if test="name != null"> and name= #{name}</if>
-            <if test="phone != null"> and phone= #{phone}</if>
-            <if test="email != null"> and email= #{email}</if>
-            <if test="avatar != null"> and avatar= #{avatar}</if>
-            <if test="role != null"> and role= #{role}</if>
-        </where>
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Admin">
-        select
-        <include refid="Base_Column_List" />
-        from admin
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from admin
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Admin" useGeneratedKeys="true">
-        insert into admin
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-                <if test="id != null">id,</if>
-                <if test="username != null">username,</if>
-                <if test="password != null">password,</if>
-                <if test="name != null">name,</if>
-                <if test="phone != null">phone,</if>
-                <if test="email != null">email,</if>
-                <if test="avatar != null">avatar,</if>
-                <if test="role != null">role,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-                <if test="id != null">#{id},</if>
-                <if test="username != null">#{username},</if>
-                <if test="password != null">#{password},</if>
-                <if test="name != null">#{name},</if>
-                <if test="phone != null">#{phone},</if>
-                <if test="email != null">#{email},</if>
-                <if test="avatar != null">#{avatar},</if>
-                <if test="role != null">#{role},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Admin">
-        update admin
-        <set>
-            <if test="username != null">
-                username = #{username},
-            </if>
-            <if test="password != null">
-                password = #{password},
-            </if>
-            <if test="name != null">
-                name = #{name},
-            </if>
-            <if test="phone != null">
-                phone = #{phone},
-            </if>
-            <if test="email != null">
-                email = #{email},
-            </if>
-            <if test="avatar != null">
-                avatar = #{avatar},
-            </if>
-            <if test="role != null">
-                role = #{role},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 93
springboot/target/classes/mapper/AdminstoreMapper.xml

@@ -1,93 +0,0 @@
-<?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.example.mapper.AdminstoreMapper">
-
-    <sql id="Base_Column_List">
-        id,username,password,name,avatar,role,phone,email
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Adminstore">
-        select
-        <include refid="Base_Column_List" />
-        from adminstore
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="username != null"> and username like concat('%', #{username}, '%')</if>
-            <if test="password != null"> and password like concat('%', #{password}, '%')</if>
-            <if test="name != null"> and name like concat('%', #{name}, '%')</if>
-            <if test="avatar != null"> and avatar like concat('%', #{avatar}, '%')</if>
-            <if test="role != null"> and role like concat('%', #{role}, '%')</if>
-            <if test="phone != null"> and phone like concat('%', #{phone}, '%')</if>
-            <if test="email != null"> and email like concat('%', #{email}, '%')</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Adminstore">
-        select
-        <include refid="Base_Column_List" />
-        from adminstore
-        where id = #{id}
-    </select>
-
-
-    <delete id="deleteById">
-        delete from adminstore
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Adminstore" useGeneratedKeys="true">
-        insert into adminstore
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="username != null">username,</if>
-            <if test="password != null">password,</if>
-            <if test="name != null">name,</if>
-            <if test="avatar != null">avatar,</if>
-            <if test="role != null">role,</if>
-            <if test="phone != null">phone,</if>
-            <if test="email != null">email,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="username != null">#{username},</if>
-            <if test="password != null">#{password},</if>
-            <if test="name != null">#{name},</if>
-            <if test="avatar != null">#{avatar},</if>
-            <if test="role != null">#{role},</if>
-            <if test="phone != null">#{phone},</if>
-            <if test="email != null">#{email},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Adminstore">
-        update adminstore
-        <set>
-            <if test="username != null">
-                username = #{username},
-            </if>
-            <if test="password != null">
-                password = #{password},
-            </if>
-            <if test="name != null">
-                name = #{name},
-            </if>
-            <if test="avatar != null">
-                avatar = #{avatar},
-            </if>
-            <if test="role != null">
-                role = #{role},
-            </if>
-            <if test="phone != null">
-                phone = #{phone},
-            </if>
-            <if test="email != null">
-                email = #{email},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 86
springboot/target/classes/mapper/AuditsMapper.xml

@@ -1,86 +0,0 @@
-<?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.example.mapper.AuditsMapper">
-
-    <sql id="Base_Column_List">
-        id,idcard,business_license,reason,pics_url,camera_url,store_id
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Audits">
-        select
-        <include refid="Base_Column_List" />
-        from audits
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="idcard != null"> and idcard like concat('%', #{idcard}, '%')</if>
-            <if test="businessLicense != null"> and business_license like concat('%', #{businessLicense}, '%')</if>
-            <if test="reason != null"> and reason like concat('%', #{reason}, '%')</if>
-            <if test="picsUrl != null"> and pics_url like concat('%', #{picsUrl}, '%')</if>
-            <if test="cameraUrl != null"> and camera_url like concat('%', #{cameraUrl}, '%')</if>
-            <if test="storeId != null"> and store_id = #{storeId}</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Audits">
-        select
-        <include refid="Base_Column_List" />
-        from audits
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from audits
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Audits" useGeneratedKeys="true">
-        insert into audits
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="idcard != null">idcard,</if>
-            <if test="businessLicense != null">business_license,</if>
-            <if test="reason != null">reason,</if>
-            <if test="picsUrl != null">pics_url,</if>
-            <if test="cameraUrl != null">camera_url,</if>
-            <if test="storeId != null">store_id,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="idcard != null">#{idcard},</if>
-            <if test="businessLicense != null">#{businessLicense},</if>
-            <if test="reason != null">#{reason},</if>
-            <if test="picsUrl != null">#{picsUrl},</if>
-            <if test="cameraUrl != null">#{cameraUrl},</if>
-            <if test="storeId != null">#{storeId},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Audits">
-        update audits
-        <set>
-            <if test="idcard != null">
-                idcard = #{idcard},
-            </if>
-            <if test="businessLicense != null">
-                business_license = #{businessLicense},
-            </if>
-            <if test="reason != null">
-                reason = #{reason},
-            </if>
-            <if test="picsUrl != null">
-                pics_url = #{picsUrl},
-            </if>
-            <if test="cameraUrl != null">
-                camera_url = #{cameraUrl},
-            </if>
-            <if test="storeId != null">
-                store_id = #{storeId},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 74
springboot/target/classes/mapper/NoticeMapper.xml

@@ -1,74 +0,0 @@
-<?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.example.mapper.NoticeMapper">
-
-    <sql id="Base_Column_List">
-        id,title,content,time,user
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Notice">
-        select
-        <include refid="Base_Column_List" />
-        from notice
-        <where>
-            <if test="id != null"> and id= #{id}</if>
-            <if test="title != null"> and title like concat('%', #{title}, '%')</if>
-            <if test="content != null"> and content= #{content}</if>
-            <if test="time != null"> and time= #{time}</if>
-            <if test="user != null"> and user= #{user}</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Notice">
-        select
-        <include refid="Base_Column_List" />
-        from notice
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from notice
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Notice" useGeneratedKeys="true">
-        insert into notice
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-                <if test="id != null">id,</if>
-                <if test="title != null">title,</if>
-                <if test="content != null">content,</if>
-                <if test="time != null">time,</if>
-                <if test="user != null">user,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-                <if test="id != null">#{id},</if>
-                <if test="title != null">#{title},</if>
-                <if test="content != null">#{content},</if>
-                <if test="time != null">#{time},</if>
-                <if test="user != null">#{user},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Notice">
-        update notice
-        <set>
-            <if test="title != null">
-                title = #{title},
-            </if>
-            <if test="content != null">
-                content = #{content},
-            </if>
-            <if test="time != null">
-                time = #{time},
-            </if>
-            <if test="user != null">
-                user = #{user},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 110
springboot/target/classes/mapper/OrdersMapper.xml

@@ -1,110 +0,0 @@
-<?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.example.mapper.OrdersMapper">
-
-    <sql id="Base_Column_List">
-        id,bit_pay,origin_pay,user_id,address_id,time_pre,time_order,order_state,order_remark,trans_code,order_type_id
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Orders">
-        select
-        <include refid="Base_Column_List" />
-        from orders
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="bitPay != null"> and bit_pay = #{bitPay}</if>
-            <if test="originPay != null"> and origin_pay = #{originPay}</if>
-            <if test="userId != null"> and user_id = #{userId}</if>
-            <if test="addressId != null"> and address_id = #{addressId}</if>
-            <if test="timePre != null"> and time_pre like concat('%', #{timePre}, '%')</if>
-            <if test="timeOrder != null"> and time_order like concat('%', #{timeOrder}, '%')</if>
-            <if test="orderState != null"> and order_state like concat('%', #{orderState}, '%')</if>
-            <if test="orderRemark != null"> and order_remark like concat('%', #{orderRemark}, '%')</if>
-            <if test="transCode != null"> and trans_code like concat('%', #{transCode}, '%')</if>
-            <if test="orderTypeId != null"> and order_type_id = #{orderTypeId}</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Orders">
-        select
-        <include refid="Base_Column_List" />
-        from orders
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from orders
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Orders" useGeneratedKeys="true">
-        insert into orders
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="bitPay != null">bit_pay,</if>
-            <if test="originPay != null">origin_pay,</if>
-            <if test="userId != null">user_id,</if>
-            <if test="addressId != null">address_id,</if>
-            <if test="timePre != null">time_pre,</if>
-            <if test="timeOrder != null">time_order,</if>
-            <if test="orderState != null">order_state,</if>
-            <if test="orderRemark != null">order_remark,</if>
-            <if test="transCode != null">trans_code,</if>
-            <if test="orderTypeId != null">order_type_id,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="bitPay != null">#{bitPay},</if>
-            <if test="originPay != null">#{originPay},</if>
-            <if test="userId != null">#{userId},</if>
-            <if test="addressId != null">#{addressId},</if>
-            <if test="timePre != null">#{timePre},</if>
-            <if test="timeOrder != null">#{timeOrder},</if>
-            <if test="orderState != null">#{orderState},</if>
-            <if test="orderRemark != null">#{orderRemark},</if>
-            <if test="transCode != null">#{transCode},</if>
-            <if test="orderTypeId != null">#{orderTypeId},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Orders">
-        update orders
-        <set>
-            <if test="bitPay != null">
-                bit_pay = #{bitPay},
-            </if>
-            <if test="originPay != null">
-                origin_pay = #{originPay},
-            </if>
-            <if test="userId != null">
-                user_id = #{userId},
-            </if>
-            <if test="addressId != null">
-                address_id = #{addressId},
-            </if>
-            <if test="timePre != null">
-                time_pre = #{timePre},
-            </if>
-            <if test="timeOrder != null">
-                time_order = #{timeOrder},
-            </if>
-            <if test="orderState != null">
-                order_state = #{orderState},
-            </if>
-            <if test="orderRemark != null">
-                order_remark = #{orderRemark},
-            </if>
-            <if test="transCode != null">
-                trans_code = #{transCode},
-            </if>
-            <if test="orderTypeId != null">
-                order_type_id = #{orderTypeId},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 86
springboot/target/classes/mapper/ProductMapper.xml

@@ -1,86 +0,0 @@
-<?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.example.mapper.ProductMapper">
-
-    <sql id="Base_Column_List">
-        id,product_state,product_name,product_icons,product_ids,product_bid_price,product_sell_price
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Product">
-        select
-        <include refid="Base_Column_List" />
-        from product
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="productState != null"> and product_state like concat('%', #{productState}, '%')</if>
-            <if test="productName != null"> and product_name like concat('%', #{productName}, '%')</if>
-            <if test="productIcons != null"> and product_icons like concat('%', #{productIcons}, '%')</if>
-            <if test="productTypeIds != null"> and product_type_ids like concat('%', #{productIds}, '%')</if>
-            <if test="productBidPrice != null"> and product_bid_price = #{productBidPrice}</if>
-            <if test="productSellPrice != null"> and product_sell_price = #{productSellPrice}</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Product">
-        select
-        <include refid="Base_Column_List" />
-        from product
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from product
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Product" useGeneratedKeys="true">
-        insert into product
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="productState != null">product_state,</if>
-            <if test="productName != null">product_name,</if>
-            <if test="productIcons != null">product_icons,</if>
-            <if test="productTypeIds != null">product_type_ids,</if>
-            <if test="productBidPrice != null">product_bid_price,</if>
-            <if test="productSellPrice != null">product_sell_price,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="productState != null">#{productState},</if>
-            <if test="productName != null">#{productName},</if>
-            <if test="productIcons != null">#{productIcons},</if>
-            <if test="productTypeIds != null">#{productTypeIds},</if>
-            <if test="productBidPrice != null">#{productBidPrice},</if>
-            <if test="productSellPrice != null">#{productSellPrice},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Product">
-        update product
-        <set>
-            <if test="productState != null">
-                product_state = #{productState},
-            </if>
-            <if test="productName != null">
-                product_name = #{productName},
-            </if>
-            <if test="productIcons != null">
-                product_icons = #{productIcons},
-            </if>
-            <if test="productIds != null">
-                product_type_ids = #{productTypeIds},
-            </if>
-            <if test="productBidPrice != null">
-                product_bid_price = #{productBidPrice},
-            </if>
-            <if test="productSellPrice != null">
-                product_sell_price = #{productSellPrice},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 56
springboot/target/classes/mapper/ProductypeMapper.xml

@@ -1,56 +0,0 @@
-<?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.example.mapper.ProductypeMapper">
-
-    <sql id="Base_Column_List">
-        id,product_name
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Productype">
-        select
-        <include refid="Base_Column_List" />
-        from product_type
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="productName != null"> and product_name like concat('%', #{productName}, '%')</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Productype">
-        select
-        <include refid="Base_Column_List" />
-        from product_type
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from product_type
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Productype" useGeneratedKeys="true">
-        insert into product_type
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="productName != null">product_name,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="productName != null">#{productName},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Productype">
-        update product_type
-        <set>
-            <if test="productName != null">
-                product_name = #{productName},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 80
springboot/target/classes/mapper/SaleStatementMapper.xml

@@ -1,80 +0,0 @@
-<?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.example.mapper.SaleStatementMapper">
-
-    <sql id="Base_Column_List">
-        id,shop_id,count,time_over,product_id,amount
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.SaleStatement">
-        select
-        <include refid="Base_Column_List" />
-        from sale_statement
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="shopId != null"> and shop_id = #{shopId}</if>
-            <if test="count != null"> and count = #{count}</if>
-            <if test="timeOver != null"> and time_over like concat('%', #{timeOver}, '%')</if>
-            <if test="productId != null"> and product_id = #{productId}</if>
-            <if test="amount != null"> and amount = #{amount}</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.SaleStatement">
-        select
-        <include refid="Base_Column_List" />
-        from sale_statement
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from sale_statement
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.SaleStatement" useGeneratedKeys="true">
-        insert into sale_statement
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="shopId != null">shop_id,</if>
-            <if test="count != null">count,</if>
-            <if test="timeOver != null">time_over,</if>
-            <if test="productId != null">product_id,</if>
-            <if test="amount != null">amount,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="shopId != null">#{shopId},</if>
-            <if test="count != null">#{count},</if>
-            <if test="timeOver != null">#{timeOver},</if>
-            <if test="productId != null">#{productId},</if>
-            <if test="amount != null">#{amount},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.SaleStatement">
-        update sale_statement
-        <set>
-            <if test="shopId != null">
-                shop_id = #{shopId},
-            </if>
-            <if test="count != null">
-                count = #{count},
-            </if>
-            <if test="timeOver != null">
-                time_over = #{timeOver},
-            </if>
-            <if test="productId != null">
-                product_id = #{productId},
-            </if>
-            <if test="amount != null">
-                amount = #{amount},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 74
springboot/target/classes/mapper/StoreMapper.xml

@@ -1,74 +0,0 @@
-<?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.example.mapper.StoreMapper">
-
-    <sql id="Base_Column_List">
-        id,owner_id,products_ids,address_ids,product_type_ids
-    </sql>
-
-    <select id="selectAll" resultType="com.example.entity.Store">
-        select
-        <include refid="Base_Column_List" />
-        from store
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="ownerId != null"> and owner_id = #{ownerId}</if>
-            <if test="productsIds != null"> and products_ids like concat('%', #{productsIds}, '%')</if>
-            <if test="addressIds != null"> and address_ids like concat('%', #{addressIds}, '%')</if>
-            <if test="productTypeIds != null"> and product_type_ids like concat('%', #{productTypeIds}, '%')</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.Store">
-        select
-        <include refid="Base_Column_List" />
-        from store
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from store
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.Store" useGeneratedKeys="true">
-        insert into store
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="ownerId != null">owner_id,</if>
-            <if test="productsIds != null">products_ids,</if>
-            <if test="addressIds != null">address_ids,</if>
-            <if test="productTypeIds != null">product_type_ids,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="ownerId != null">#{ownerId},</if>
-            <if test="productsIds != null">#{productsIds},</if>
-            <if test="addressIds != null">#{addressIds},</if>
-            <if test="productTypeIds != null">#{productTypeIds},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.Store">
-        update store
-        <set>
-            <if test="ownerId != null">
-                owner_id = #{ownerId},
-            </if>
-            <if test="productsIds != null">
-                products_ids = #{productsIds},
-            </if>
-            <if test="addressIds != null">
-                address_ids = #{addressIds},
-            </if>
-            <if test="productTypeIds != null">
-                product_type_ids = #{productTypeIds},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 0 - 124
springboot/target/classes/mapper/UserMapper.xml

@@ -1,124 +0,0 @@
-<?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.example.mapper.UserMapper">
-
-    <sql id="Base_Column_List">
-        id,username,password,name,avatar,role,sex,phone,account,openid,address_ids
-    </sql>
-
-    <!--    用户名查询 -->
-    <select id="selectByUserName" resultType="com.example.entity.Account">
-        select
-        <include refid="Base_Column_List" />
-        from user
-        where username = #{username}
-    </select>
-    <!--    根据openid查找查找用户信息 -->
-    <select id="selectByOpenid" resultType="com.example.entity.User">
-        select
-        <include refid="Base_Column_List" />
-        from user
-        where openid = #{openid}
-    </select>
-    <select id="selectAll" resultType="com.example.entity.User">
-        select
-        <include refid="Base_Column_List" />
-        from user
-        <where>
-            <if test="id != null"> and id = #{id}</if>
-            <if test="username != null"> and username like concat('%', #{username}, '%')</if>
-            <if test="password != null"> and password like concat('%', #{password}, '%')</if>
-            <if test="name != null"> and name like concat('%', #{name}, '%')</if>
-            <if test="avatar != null"> and avatar like concat('%', #{avatar}, '%')</if>
-            <if test="role != null"> and role like concat('%', #{role}, '%')</if>
-            <if test="sex != null"> and sex like concat('%', #{sex}, '%')</if>
-            <if test="phone != null"> and phone like concat('%', #{phone}, '%')</if>
-            <if test="account != null"> and account = #{account}</if>
-            <if test="openid != null"> and openid like concat('%', #{openid}, '%')</if>
-            <if test="addressIds != null"> and address_ids like concat('%', #{addressIds}, '%')</if>
-        </where>
-        order by id desc
-    </select>
-
-    <select id="selectById" resultType="com.example.entity.User">
-        select
-        <include refid="Base_Column_List" />
-        from user
-        where id = #{id}
-    </select>
-
-    <delete id="deleteById">
-        delete from user
-        where  id = #{id}
-    </delete>
-
-    <insert id="insert" parameterType="com.example.entity.User" useGeneratedKeys="true">
-        insert into user
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">id,</if>
-            <if test="username != null">username,</if>
-            <if test="password != null">password,</if>
-            <if test="name != null">name,</if>
-            <if test="avatar != null">avatar,</if>
-            <if test="role != null">role,</if>
-            <if test="sex != null">sex,</if>
-            <if test="phone != null">phone,</if>
-            <if test="account != null">account,</if>
-            <if test="openid != null">openid,</if>
-            <if test="addressIds != null">address_ids,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">#{id},</if>
-            <if test="username != null">#{username},</if>
-            <if test="password != null">#{password},</if>
-            <if test="name != null">#{name},</if>
-            <if test="avatar != null">#{avatar},</if>
-            <if test="role != null">#{role},</if>
-            <if test="sex != null">#{sex},</if>
-            <if test="phone != null">#{phone},</if>
-            <if test="account != null">#{account},</if>
-            <if test="openid != null">#{openid},</if>
-            <if test="addressIds != null">#{addressIds},</if>
-        </trim>
-    </insert>
-
-    <update id="updateById" parameterType="com.example.entity.User">
-        update user
-        <set>
-            <if test="username != null">
-                username = #{username},
-            </if>
-            <if test="password != null">
-                password = #{password},
-            </if>
-            <if test="name != null">
-                name = #{name},
-            </if>
-            <if test="avatar != null">
-                avatar = #{avatar},
-            </if>
-            <if test="role != null">
-                role = #{role},
-            </if>
-            <if test="sex != null">
-                sex = #{sex},
-            </if>
-            <if test="phone != null">
-                phone = #{phone},
-            </if>
-            <if test="account != null">
-                account = #{account},
-            </if>
-            <if test="openid != null">
-                openid = #{openid},
-            </if>
-            <if test="addressIds != null">
-                address_ids = #{addressIds},
-            </if>
-        </set>
-        where id = #{id} 
-    </update>
-
-</mapper>

+ 1 - 1
vue/src/views/Login.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="container">
     <div style="width: 400px; padding: 30px; background-color: white; border-radius: 5px;">
-      <div style="text-align: center; font-size: 20px; margin-bottom: 20px; color: #333">欢迎使用</div>
+      <div style="text-align: center; font-size: 20px; margin-bottom: 20px; color: #333">欢迎使用123</div>
       <el-form :model="form" :rules="rules" ref="formRef">
         <el-form-item prop="username">
           <el-input prefix-icon="el-icon-user" placeholder="请输入账号" v-model="form.username"></el-input>