try
parent
d111931433
commit
87d1d92cb0
|
@ -0,0 +1,91 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ehcache name="ruoyi" updateCheck="false">
|
||||
|
||||
<!-- 磁盘缓存位置 -->
|
||||
<diskStore path="java.io.tmpdir"/>
|
||||
|
||||
<!-- maxEntriesLocalHeap:堆内存中最大缓存对象数,0没有限制 -->
|
||||
<!-- maxElementsInMemory: 在内存中缓存的element的最大数目。-->
|
||||
<!-- eternal:elements是否永久有效,如果为true,timeouts将被忽略,element将永不过期 -->
|
||||
<!-- timeToIdleSeconds:失效前的空闲秒数,当eternal为false时,这个属性才有效,0为不限制 -->
|
||||
<!-- timeToLiveSeconds:失效前的存活秒数,创建时间到失效时间的间隔为存活时间,当eternal为false时,这个属性才有效,0为不限制 -->
|
||||
<!-- overflowToDisk: 如果内存中数据超过内存限制,是否要缓存到磁盘上 -->
|
||||
<!-- statistics:是否收集统计信息。如果需要监控缓存使用情况,应该打开这个选项。默认为关闭(统计会影响性能)。设置statistics="true"开启统计 -->
|
||||
|
||||
<!-- 默认缓存 -->
|
||||
<defaultCache
|
||||
maxEntriesLocalHeap="1000"
|
||||
eternal="false"
|
||||
timeToIdleSeconds="3600"
|
||||
timeToLiveSeconds="3600"
|
||||
overflowToDisk="false">
|
||||
</defaultCache>
|
||||
|
||||
<!-- 登录记录缓存 锁定10分钟 -->
|
||||
<cache name="loginRecordCache"
|
||||
maxEntriesLocalHeap="2000"
|
||||
eternal="false"
|
||||
timeToIdleSeconds="600"
|
||||
timeToLiveSeconds="0"
|
||||
overflowToDisk="false"
|
||||
statistics="false">
|
||||
</cache>
|
||||
|
||||
<!-- 系统活跃用户缓存 -->
|
||||
<cache name="sys-userCache"
|
||||
maxEntriesLocalHeap="10000"
|
||||
overflowToDisk="false"
|
||||
eternal="false"
|
||||
diskPersistent="false"
|
||||
timeToLiveSeconds="0"
|
||||
timeToIdleSeconds="0"
|
||||
statistics="false">
|
||||
</cache>
|
||||
|
||||
<!-- 系统用户授权缓存 没必要过期 -->
|
||||
<cache name="sys-authCache"
|
||||
maxEntriesLocalHeap="10000"
|
||||
overflowToDisk="false"
|
||||
eternal="false"
|
||||
diskPersistent="false"
|
||||
timeToLiveSeconds="0"
|
||||
timeToIdleSeconds="0"
|
||||
memoryStoreEvictionPolicy="LRU"
|
||||
statistics="false"/>
|
||||
|
||||
<!-- 系统缓存 -->
|
||||
<cache name="sys-cache"
|
||||
maxEntriesLocalHeap="1000"
|
||||
eternal="true"
|
||||
overflowToDisk="true"
|
||||
statistics="false">
|
||||
</cache>
|
||||
|
||||
<!-- 系统参数缓存 -->
|
||||
<cache name="sys-config"
|
||||
maxEntriesLocalHeap="1000"
|
||||
eternal="true"
|
||||
overflowToDisk="true"
|
||||
statistics="false">
|
||||
</cache>
|
||||
|
||||
<!-- 系统字典缓存 -->
|
||||
<cache name="sys-dict"
|
||||
maxEntriesLocalHeap="1000"
|
||||
eternal="true"
|
||||
overflowToDisk="true"
|
||||
statistics="false">
|
||||
</cache>
|
||||
|
||||
<!-- 系统会话缓存 -->
|
||||
<cache name="shiro-activeSessionCache"
|
||||
maxEntriesLocalHeap="10000"
|
||||
overflowToDisk="false"
|
||||
eternal="false"
|
||||
diskPersistent="false"
|
||||
timeToLiveSeconds="0"
|
||||
timeToIdleSeconds="0"
|
||||
statistics="false"/>
|
||||
|
||||
</ehcache>
|
||||
|
|
@ -0,0 +1,116 @@
|
|||
<?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.ruoyi.index.mapper.IndexSMapper">
|
||||
|
||||
<resultMap type="IndexS" id="IndexSResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="squery" column="squery" />
|
||||
<result property="sumcol" column="sumcol" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="sort" column="sort" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="sample" column="sample" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectIndexSVo">
|
||||
select id, name, squery, sumcol,unit, del_flag, sort,
|
||||
sample, create_by,
|
||||
create_time, update_by, update_time, remark from
|
||||
index_s
|
||||
</sql>
|
||||
|
||||
<select id="selectIndexSList" parameterType="IndexS"
|
||||
resultMap="IndexSResult">
|
||||
<include refid="selectIndexSVo" />
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
</where>
|
||||
order by create_time
|
||||
</select>
|
||||
|
||||
<select id="selectIndexSById" parameterType="Long"
|
||||
resultMap="IndexSResult">
|
||||
<include refid="selectIndexSVo" />
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectIndexSByName" parameterType="String"
|
||||
resultMap="IndexSResult">
|
||||
<include refid="selectIndexSVo" />
|
||||
where name = #{name}
|
||||
</select>
|
||||
|
||||
<insert id="insertIndexS" parameterType="IndexS"
|
||||
useGeneratedKeys="true" keyProperty="id">
|
||||
insert into index_s
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="squery != null">squery,</if>
|
||||
<if test="sumcol != null">sumcol,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="sort != null">sort,</if>
|
||||
<if test="sample != null">sample,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="squery != null">#{squery},</if>
|
||||
<if test="sumcol != null">#{sumcol},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="sort != null">#{sort},</if>
|
||||
<if test="sample != null">#{sample},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateIndexS" parameterType="IndexS">
|
||||
update index_s
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="squery != null">squery = #{squery},</if>
|
||||
<if test="sumcol != null">sumcol = #{sumcol},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="sort != null">sort = #{sort},</if>
|
||||
<if test="sample != null">sample = #{sample},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteIndexSById" parameterType="Long">
|
||||
delete from index_s
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteIndexSByIds" parameterType="String">
|
||||
delete from index_s where id in
|
||||
<foreach item="id" collection="array" open="(" separator=","
|
||||
close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,119 @@
|
|||
<?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.ruoyi.index.mapper.IndexVMapper">
|
||||
|
||||
<resultMap type="IndexV" id="IndexVResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="formula" column="formula" />
|
||||
<result property="formula0" column="formula0" />
|
||||
<result property="others" column="others" />
|
||||
<result property="year" column="year" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="illustration" column="illustration" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectIndexVVo">
|
||||
select id, name, formula, formula0, year, unit,
|
||||
illustration,others,
|
||||
remark,
|
||||
del_flag, create_by,
|
||||
create_time, update_by,
|
||||
update_time from
|
||||
index_v
|
||||
</sql>
|
||||
|
||||
<select id="selectIndexVList" parameterType="IndexV"
|
||||
resultMap="IndexVResult">
|
||||
<include refid="selectIndexVVo" />
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="formula != null and formula != ''"> and formula like concat('%', #{formula}, '%')</if>
|
||||
<if test="illustration != null and illustration != ''"> and illustration like concat('%', #{illustration}, '%')</if>
|
||||
</where>
|
||||
order by create_time
|
||||
</select>
|
||||
|
||||
<select id="selectIndexVById" parameterType="Long"
|
||||
resultMap="IndexVResult">
|
||||
<include refid="selectIndexVVo" />
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertIndexV" parameterType="IndexV"
|
||||
useGeneratedKeys="true" keyProperty="id">
|
||||
insert into index_v
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">name,</if>
|
||||
<if test="formula != null">formula,</if>
|
||||
<if test="formula0 != null">formula0,</if>
|
||||
<if test="year != null">year,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="others != null">others,</if>
|
||||
<if test="illustration != null">illustration,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="formula != null">#{formula},</if>
|
||||
<if test="formula0 != null">#{formula0},</if>
|
||||
<if test="year != null">#{year},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="others != null">#{others},</if>
|
||||
<if test="illustration != null">#{illustration},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateIndexV" parameterType="IndexV">
|
||||
update index_v
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">name = #{name},</if>
|
||||
<if test="formula != null">formula = #{formula},</if>
|
||||
<if test="formula0 != null">formula0 = #{formula0},</if>
|
||||
<if test="year != null">year = #{year},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="others != null">others = #{others},</if>
|
||||
<if test="illustration != null">illustration = #{illustration},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteIndexVById" parameterType="Long">
|
||||
delete from index_v
|
||||
where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteIndexVByIds" parameterType="String">
|
||||
delete from index_v where id in
|
||||
<foreach item="id" collection="array" open="(" separator=","
|
||||
close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,84 @@
|
|||
<?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.ruoyi.system.mapper.LoginUserDeptMapper">
|
||||
|
||||
<resultMap type="LoginUserDept" id="LoginUserDeptResult">
|
||||
<result property="loginName" column="login_name" />
|
||||
<result property="displayName" column="display_name" />
|
||||
<result property="dept" column="dept" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectLoginUserDeptVo">
|
||||
select login_name, display_name, dept, create_by, create_time, update_by, update_time, remark from login_user_dept
|
||||
</sql>
|
||||
|
||||
<select id="selectLoginUserDeptList" parameterType="LoginUserDept" resultMap="LoginUserDeptResult">
|
||||
<include refid="selectLoginUserDeptVo"/>
|
||||
<where>
|
||||
<if test="loginName != null and loginName != ''"> and login_name like concat('%', #{loginName}, '%')</if>
|
||||
<if test="displayName != null and displayName != ''"> and display_name like concat('%', #{displayName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectLoginUserDeptByLoginName" parameterType="String" resultMap="LoginUserDeptResult">
|
||||
<include refid="selectLoginUserDeptVo"/>
|
||||
where login_name = #{loginName}
|
||||
</select>
|
||||
|
||||
<insert id="insertLoginUserDept" parameterType="LoginUserDept">
|
||||
insert into login_user_dept
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="loginName != null">login_name,</if>
|
||||
<if test="displayName != null">display_name,</if>
|
||||
<if test="dept != null">dept,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="loginName != null">#{loginName},</if>
|
||||
<if test="displayName != null">#{displayName},</if>
|
||||
<if test="dept != null">#{dept},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateLoginUserDept" parameterType="LoginUserDept">
|
||||
update login_user_dept
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="displayName != null">display_name = #{displayName},</if>
|
||||
<if test="dept != null">dept = #{dept},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where login_name = #{loginName}
|
||||
</update>
|
||||
|
||||
<delete id="deleteLoginUserDeptByLoginName" parameterType="String">
|
||||
delete from login_user_dept where login_name = #{loginName}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteLoginUserDeptByLoginNames" parameterType="String">
|
||||
delete from login_user_dept where login_name in
|
||||
<foreach item="loginName" collection="array" open="(" separator="," close=")">
|
||||
#{loginName}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue