src/com/cms/dao/AuthDao.xml
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?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.cms.dao.AuthDao">
<resultMap id="BaseResultMap" type="com.cms.entity.Auth">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="url" jdbcType="VARCHAR" property="url" />
<result column="admin_auth" jdbcType="TINYINT" property="adminAuth" />
<result column="teacher_auth" jdbcType="TINYINT" property="teacherAuth" />
<result column="student_auth" jdbcType="TINYINT" property="studentAuth" />
</resultMap>
<sql id="Base_Column_List">
id, name, url, admin_auth, teacher_auth, student_auth
</sql>
<select id="getTotalItemsCount" parameterType="java.lang.String" resultType="java.lang.Integer">
select count(*) from t_auth
<where>
<if test="_parameter != null and _parameter != '' ">
name like CONCAT('%', #{searchKey}, '%')
</if>
</where>
</select>
<select id="getAuthList" resultMap="BaseResultMap">
select * from t_auth
<where>
<if test="param2 != null and param2 != '' ">
name like CONCAT('%', #{searchKey}, '%')
</if>
</where>
<if test="param1 != null">
limit #{param1.start}, #{param1.pageSize}
</if>
</select>
<select id="selectUrl" parameterType="java.lang.String" resultMap="BaseResultMap">
select url from t_auth where
<choose>
<when test="_parameter == 'admin'">
admin_auth = 1
</when>
<when test="_parameter == 'teacher'">
teacher_auth = 1
</when>
<when test="_parameter == 'student'">
student_auth = 1
</when>
<otherwise>
1 = 0
</otherwise>
</choose>
</select>
<select id="selectMenu" resultMap="BaseResultMap">
select name, url from t_auth where name is not null and
<choose>
<when test="_parameter == 'admin'">
后面还有 105 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。