WebRoot/WEB-INF/classes/com/gssm/sqlmap/AdminMapper.xml
(开头部分) 7KB这里只显示每个文件的开头 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">
<!-- 不使用namespace的话sql搜索定位会比较方便 -->
<mapper namespace="com.gssm.entity.Admin">
<!-- 实体类与数据库映射字段部分 start -->
<resultMap id="ResultMapAdmin" type="com.gssm.entity.Admin">
<result property="id" column="id"/>
<result property="username" column="username"/>
<result property="userpwd" column="userpwd"/>
<result property="identity" column="identity"/>
</resultMap>
<!-- 实体类与数据库映射字段部分 end -->
<!-- 声明数据库字段 -->
<sql id="Admin_field">
<!--判断是否是最后一个元素,如果不是最后一个添加,-->
id,
username,
userpwd,
identity
</sql>
<!-- 实体类属性 -->
<sql id="Admin_insert">
<!--判断是否是最后一个元素,如果不是最后一个添加,-->
#{id},
#{username},
#{userpwd},
#{identity}
</sql>
<!-- 执行修改时 数据库字段和表字段比较 -->
<sql id="Admin_update">
<!--判断是否是最后一个元素,如果不是最后一个添加,-->
<if test="id != null" >
id = #{id} ,
</if>
<if test="username != null" >
username = #{username} ,
</if>
<if test="userpwd != null" >
userpwd = #{userpwd} ,
</if>
<if test="identity != null" >
identity = #{identity}
</if>
</sql>
<!-- 查询时条件 -->
<sql id="Admin_where">
<if test="id != null" >
and id = #{id}
</if>
<if test="username != null" >
and username = #{username}
</if>
<if test="userpwd != null" >
and userpwd = #{userpwd}
后面还有 224 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。