From d77171ee108ed708800d53fed174726be359b058 Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期四, 17 十一月 2022 14:54:52 +0800
Subject: [PATCH] 注册 白名单拦截 token验证
---
ycl-platform/src/main/resources/dao/NewsAdminDao.xml | 78 +++++++++++++++++++-------------------
1 files changed, 39 insertions(+), 39 deletions(-)
diff --git a/ycl-platform/src/main/resources/mapper/NewsAdminDao.xml b/ycl-platform/src/main/resources/dao/NewsAdminDao.xml
similarity index 97%
rename from ycl-platform/src/main/resources/mapper/NewsAdminDao.xml
rename to ycl-platform/src/main/resources/dao/NewsAdminDao.xml
index 235870b..cc1008e 100644
--- a/ycl-platform/src/main/resources/mapper/NewsAdminDao.xml
+++ b/ycl-platform/src/main/resources/dao/NewsAdminDao.xml
@@ -1,39 +1,39 @@
-<?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.ycl.dao.NewsAdminDao">
-
- <resultMap type="com.ycl.entity.NewsAdmin" id="NewsAdminMap">
- <result property="id" column="id" jdbcType="INTEGER"/>
- <result property="username" column="username" jdbcType="VARCHAR"/>
- <result property="password" column="password" jdbcType="VARCHAR"/>
- <result property="icon" column="icon" jdbcType="VARCHAR"/>
- <result property="email" column="email" jdbcType="VARCHAR"/>
- <result property="note" column="note" jdbcType="VARCHAR"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="status" column="status" jdbcType="INTEGER"/>
- <result property="sex" column="sex" jdbcType="INTEGER"/>
- <result property="mobile" column="mobile" jdbcType="VARCHAR"/>
- <result property="isGrid" column="is_grid" jdbcType="INTEGER"/>
- <result property="newsPoliceId" column="news_police_id" jdbcType="INTEGER"/>
- </resultMap>
-
- <!-- 鎵归噺鎻掑叆 -->
- <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
- insert into news_website.news_admin(username, password, icon, email, note, create_time, status, sex, mobile, is_grid, news_police_id)
- values
- <foreach collection="entities" item="entity" separator=",">
- (#{entity.username}, #{entity.password}, #{entity.icon}, #{entity.email}, #{entity.note}, #{entity.createTime}, #{entity.status}, #{entity.sex}, #{entity.mobile}, #{entity.isGrid}, #{entity.newsPoliceId})
- </foreach>
- </insert>
- <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 -->
- <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
- insert into news_website.news_admin(username, password, icon, email, note, create_time, status, sex, mobile, is_grid, news_police_id)
- values
- <foreach collection="entities" item="entity" separator=",">
- (#{entity.username}, #{entity.password}, #{entity.icon}, #{entity.email}, #{entity.note}, #{entity.createTime}, #{entity.status}, #{entity.sex}, #{entity.mobile}, #{entity.isGrid}, #{entity.newsPoliceId})
- </foreach>
- on duplicate key update
- username = values(username) , password = values(password) , icon = values(icon) , email = values(email) , note = values(note) , create_time = values(create_time) , status = values(status) , sex = values(sex) , mobile = values(mobile) , is_grid = values(is_grid) , news_police_id = values(news_police_id) </insert>
-
-</mapper>
-
+<?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.ycl.mapper.NewsAdminDao">
+
+ <resultMap type="com.ycl.entity.NewsAdmin" id="NewsAdminMap">
+ <result property="id" column="id" jdbcType="INTEGER"/>
+ <result property="username" column="username" jdbcType="VARCHAR"/>
+ <result property="password" column="password" jdbcType="VARCHAR"/>
+ <result property="icon" column="icon" jdbcType="VARCHAR"/>
+ <result property="email" column="email" jdbcType="VARCHAR"/>
+ <result property="note" column="note" jdbcType="VARCHAR"/>
+ <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+ <result property="status" column="status" jdbcType="INTEGER"/>
+ <result property="sex" column="sex" jdbcType="INTEGER"/>
+ <result property="mobile" column="mobile" jdbcType="VARCHAR"/>
+ <result property="isGrid" column="is_grid" jdbcType="INTEGER"/>
+ <result property="newsPoliceId" column="news_police_id" jdbcType="INTEGER"/>
+ </resultMap>
+
+ <!-- 鎵归噺鎻掑叆 -->
+ <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
+ insert into news_website.news_admin(username, password, icon, email, note, create_time, status, sex, mobile, is_grid, news_police_id)
+ values
+ <foreach collection="entities" item="entity" separator=",">
+ (#{entity.username}, #{entity.password}, #{entity.icon}, #{entity.email}, #{entity.note}, #{entity.createTime}, #{entity.status}, #{entity.sex}, #{entity.mobile}, #{entity.isGrid}, #{entity.newsPoliceId})
+ </foreach>
+ </insert>
+ <!-- 鎵归噺鎻掑叆鎴栨寜涓婚敭鏇存柊 -->
+ <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
+ insert into news_website.news_admin(username, password, icon, email, note, create_time, status, sex, mobile, is_grid, news_police_id)
+ values
+ <foreach collection="entities" item="entity" separator=",">
+ (#{entity.username}, #{entity.password}, #{entity.icon}, #{entity.email}, #{entity.note}, #{entity.createTime}, #{entity.status}, #{entity.sex}, #{entity.mobile}, #{entity.isGrid}, #{entity.newsPoliceId})
+ </foreach>
+ on duplicate key update
+ username = values(username) , password = values(password) , icon = values(icon) , email = values(email) , note = values(note) , create_time = values(create_time) , status = values(status) , sex = values(sex) , mobile = values(mobile) , is_grid = values(is_grid) , news_police_id = values(news_police_id) </insert>
+
+</mapper>
+
--
Gitblit v1.8.0