WebRoot/WEB-INF/classes/com/marry/dao/UserMapper.xml
(开头部分) 5KB这里只显示每个文件的开头 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.marry.dao.UserMapper">
<resultMap id="BaseResultMap" type="com.marry.entity.User" autoMapping="true">
<id column="uid" property="uid"/>
</resultMap>
<select id="select" parameterType="java.util.Map" resultMap="BaseResultMap">
select *
from user
<where>
<if test="userName != null">
and userName = #{userName,jdbcType=VARCHAR}
</if>
<if test="password != null">
and password = #{password,jdbcType=VARCHAR}
</if>
<if test="tel != null">
and tel = #{tel,jdbcType=VARCHAR}
</if>
<if test="address != null">
and address = #{address,jdbcType=VARCHAR}
</if>
<if test="email != null">
and email = #{email,jdbcType=VARCHAR}
</if>
<if test="age != null">
and age = #{age,jdbcType=INTEGER}
</if>
<if test="role != null">
and role = #{role,jdbcType=INTEGER}
</if>
<if test="isDel != null">
and isDel = #{isDel,jdbcType=INTEGER}
</if>
<if test="uid != null">
and uid = #{uid,jdbcType=INTEGER}
</if>
<if test="name != null">
and name = #{name,jdbcType=INTEGER}
</if>
</where>
</select>
<select id="selectList" parameterType="java.util.Map" resultMap="BaseResultMap">
select *
from user
<where>
<if test="userName != null">
and userName = #{userName,jdbcType=VARCHAR}
</if>
<if test="password != null">
and password = #{password,jdbcType=VARCHAR}
</if>
<if test="tel != null">
and tel = #{tel,jdbcType=VARCHAR}
</if>
<if test="address != null">
and address = #{address,jdbcType=VARCHAR}
</if>
<if test="email != null">
and email = #{email,jdbcType=VARCHAR}
后面还有 119 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。