This commit is contained in:
chenhaodong
2026-06-17 23:34:20 +08:00
parent 707c71f7a0
commit 51d8827315
110 changed files with 1388 additions and 2388 deletions
@@ -4,9 +4,9 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/jyt?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: root
password: qq755141
url: jdbc:mysql://110.42.189.169:3306/chdtushu?useSSL=false&serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username: chdtushu
password: chdtushu
filters: stat
max-active: 5000
initial-size: 20
@@ -21,15 +21,6 @@ spring:
max-open-prepared-statements: 1000
async-init: true
# 文件上传配置
conf:
upload:
# 物理文件存储位置,以/结束,windows已正斜杠,如:d:/exam-upload/
dir: /Users/van/Documents/work/upload/
# 访问地址,注意不要去除/upload/file/,此节点为虚拟标识符
# 如:http://localhost:8101/upload/file/exam.jpg,对应物理文件为:/data/upload/exam.jpg
url: http://localhost:8111/upload/file/
# 开启文档
swagger:
enable: true
@@ -1,41 +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.bc.exam.modules.depart.mapper.SysDepartMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.bc.exam.modules.depart.entity.SysDepart">
<id column="id" property="id" />
<result column="dept_type" property="deptType" />
<result column="parent_id" property="parentId" />
<result column="dept_name" property="deptName" />
<result column="dept_code" property="deptCode" />
<result column="sort" property="sort" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
`id`,`dept_type`,`parent_id`,`dept_name`,`dept_code`,`sort`
</sql>
<resultMap id="TreeResultMap"
type="com.bc.exam.modules.depart.dto.response.SysDepartTreeDTO"
extends="BaseResultMap">
<collection property="children" column="id" select="findChildren"></collection>
</resultMap>
<select id="findChildren" resultMap="TreeResultMap">
SELECT * FROM sys_depart WHERE parent_id=#{id}
</select>
<select id="paging" resultMap="TreeResultMap">
SELECT * FROM sys_depart WHERE parent_id='0'
<if test="query!=null">
<if test="query.deptName!=null and query.deptName!=''">
AND dept_name LIKE '%${query.deptName}%'
</if>
</if>
</select>
</mapper>