v3.21.0 【新增】修改部门名称字段;【新增】修改系统版本version字段;【新增】优化代码生成前端代码;【优化】SQL

This commit is contained in:
zhuoda
2025-05-13 20:14:58 +08:00
parent ee12519797
commit 110d998dda
110 changed files with 490 additions and 411 deletions

View File

@@ -67,7 +67,7 @@ spring:
# 缓存实现类型
cache:
type: caffeine
type: redis
# tomcat 配置,主要用于 配置 访问日志(便于将来排查错误)
server:

View File

@@ -14,7 +14,7 @@
</if>
<!--关键字-->
<if test="queryForm.keyword != null and queryForm.keyword != ''">
AND ( INSTR(t_change_log.version,#{queryForm.keyword})
AND ( INSTR(t_change_log.update_version,#{queryForm.keyword})
OR INSTR(t_change_log.publish_author,#{queryForm.keyword})
OR INSTR(t_change_log.content,#{queryForm.keyword})
)
@@ -35,12 +35,12 @@
AND t_change_log.link = #{queryForm.link}
</if>
</where>
order by t_change_log.version desc
order by t_change_log.update_version desc
</select>
<select id="selectByVersion"
resultType="net.lab1024.sa.base.module.support.changelog.domain.entity.ChangeLogEntity">
select * from t_change_log where `version` = #{version}
select * from t_change_log where update_version = #{version}
</select>

View File

@@ -13,7 +13,7 @@
<if test="query.userType != null">
AND user_type = #{query.userType}
</if>
<if test="query.ip != null">
<if test="query.ip != null and query.ip != ''">
AND INSTR(login_ip,#{query.ip})
</if>
<if test="query.startDate != null and query.startDate != ''">
@@ -25,9 +25,6 @@
<if test="query.userName != null and query.userName != ''">
AND INSTR(user_name,#{query.userName})
</if>
<if test="query.ip != null">
AND INSTR(login_ip,#{query.ip})
</if>
</where>
order by create_time desc
</select>
@@ -37,9 +34,9 @@
*
from t_login_log
where
user_id = #{userId}
and user_type = #{userType}
and login_result = #{loginLogResult}
user_id = #{userId}
and user_type = #{userType}
and login_result = #{loginLogResult}
order by login_log_id desc
limit 1
</select>

View File

@@ -23,10 +23,10 @@
AND INSTR(operate_user_name,#{query.userName})
</if>
<if test="query.keywords != null and query.keywords != ''">
AND (INSTR(`module`,#{query.keywords}) OR INSTR(content,#{query.keywords}))
AND (INSTR(module,#{query.keywords}) OR INSTR(content,#{query.keywords}))
</if>
<if test="query.requestKeywords != null and query.requestKeywords != ''">
AND (INSTR(`url`,#{query.requestKeywords}) OR INSTR(`method`,#{query.requestKeywords}) OR INSTR(`param`,#{query.requestKeywords}))
AND (INSTR(url,#{query.requestKeywords}) OR INSTR(method,#{query.requestKeywords}) OR INSTR(param,#{query.requestKeywords}))
</if>
<if test="query.successFlag != null">
AND success_flag = #{query.successFlag}

View File

@@ -134,7 +134,7 @@ reload:
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: Authorization
# token 前缀 例如:Bear
# token 前缀 例如:Bearer
token-prefix: Bearer
# token 有效期(单位:秒) 默认30天2592000秒-1 代表永久有效
timeout: 2592000

View File

@@ -34,6 +34,7 @@ spring:
min-idle: 10
max-idle: 50
max-wait: 30000ms
# 邮件置以SSL的方式发送, 这个需要使用这种方式并且端口是465
mail:
host: smtp.163.com
@@ -106,7 +107,7 @@ springdoc:
knife4j:
enable: true
basic:
enable: true
enable: false
username: api # Basic认证用户名
password: 1024 # Basic认证密码
@@ -131,7 +132,7 @@ reload:
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: Authorization
# token 前缀 例如:Bear
# token 前缀 例如:Bearer
token-prefix: Bearer
# token 有效期(单位:秒) 默认30天2592000秒-1 代表永久有效
timeout: 2592000

View File

@@ -134,7 +134,7 @@ reload:
sa-token:
# token 名称(同时也是 cookie 名称)
token-name: Authorization
# token 前缀 例如:Bear
# token 前缀 例如:Bearer
token-prefix: Bearer
# token 有效期(单位:秒) 默认30天2592000秒-1 代表永久有效
timeout: 2592000