src/main/java/com/mty/cc/mapper/NoticeMapper.xml
(开头部分) 2KB这里只显示每个文件的开头 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.mty.cc.mapper.NoticeMapper">
<resultMap id="BaseResultMap" type="com.mty.cc.po.Notice">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="content" jdbcType="VARCHAR" property="content" />
<result column="push" jdbcType="VARCHAR" property="push" />
<result column="time" jdbcType="VARCHAR" property="time" />
</resultMap>
<sql id="Base_Column_List">
id,
title,
content,
push,
time
</sql>
<select id="queryById" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from notice
where id = #{id,jdbcType=VARCHAR}
</select>
<select id="queryByAll" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from notice
</select>
<delete id="deleteById" parameterType="java.lang.String">
delete from notice
where id = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.mty.cc.po.Notice">
insert into notice (
<if test="id != null">
id,
</if>
<if test="title != null">
title,
</if>
<if test="content != null">
content,
</if>
<if test="push != null">
push,
</if>
time
)values(
<if test="id != null">
#{id},
</if>
<if test="title != null">
#{title},
</if>
<if test="content != null">
后面还有 29 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
