src/com/mapper/DanganxinxiMapper.xml
(开头部分) 10KB这里只显示每个文件的开头 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.dao.DanganxinxiMapper">
<resultMap id="BaseResultMap" type="com.entity.Danganxinxi">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="danganleibie" jdbcType="VARCHAR" property="danganleibie" />
<result column="bumen" jdbcType="VARCHAR" property="bumen" />
<result column="danganjibie" jdbcType="VARCHAR" property="danganjibie" />
<result column="bianhao" jdbcType="VARCHAR" property="bianhao" />
<result column="wenhao" jdbcType="VARCHAR" property="wenhao" />
<result column="zerenzhe" jdbcType="VARCHAR" property="zerenzhe" />
<result column="timing" jdbcType="VARCHAR" property="timing" />
<result column="riqi" jdbcType="VARCHAR" property="riqi" />
<result column="yeshu" jdbcType="VARCHAR" property="yeshu" />
<result column="cunfangdidian" jdbcType="VARCHAR" property="cunfangdidian" />
<result column="qixian" jdbcType="VARCHAR" property="qixian" />
<result column="beizhu" jdbcType="VARCHAR" property="beizhu" />
<result column="addtime" jdbcType="VARCHAR" property="addtime" />
</resultMap>
<sql id="Base_Column_List">
id, danganleibie,bumen,danganjibie,bianhao,wenhao,zerenzhe,timing,riqi,yeshu,cunfangdidian,qixian,beizhu, addtime
</sql>
<select id="quchongDanganxinxi" parameterType="java.util.Map" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from danganxinxi
where danganleibie = #{danganleibie,jdbcType=VARCHAR} limit 0,1
</select>
<select id="getCount" resultType="int" parameterType="java.util.Map" >
select count(*) from danganxinxi where 1=1
<if test="danganleibie!=null">and danganleibie like concat('%',#{danganleibie,jdbcType=VARCHAR},'%')</if>
<if test="bumen!=null">and bumen like concat('%',#{bumen,jdbcType=VARCHAR},'%')</if>
<if test="danganjibie!=null">and danganjibie like concat('%',#{danganjibie,jdbcType=VARCHAR},'%')</if>
<if test="bianhao!=null">and bianhao like concat('%',#{bianhao,jdbcType=VARCHAR},'%')</if>
<if test="wenhao!=null">and wenhao like concat('%',#{wenhao,jdbcType=VARCHAR},'%')</if>
<if test="zerenzhe!=null">and zerenzhe like concat('%',#{zerenzhe,jdbcType=VARCHAR},'%')</if>
<if test="timing!=null">and timing like concat('%',#{timing,jdbcType=VARCHAR},'%')</if>
<if test="riqi1!=null">and riqi >= concat('',#{riqi1,jdbcType=VARCHAR},'')</if>
<if test="riqi2!=null">and riqi <= concat('',#{riqi2,jdbcType=VARCHAR},'')</if>
<if test="yeshu!=null">and yeshu like concat('%',#{yeshu,jdbcType=VARCHAR},'%')</if>
<if test="cunfangdidian!=null">and cunfangdidian like concat('%',#{cunfangdidian,jdbcType=VARCHAR},'%')</if>
<if test="qixian!=null">and qixian like concat('%',#{qixian,jdbcType=VARCHAR},'%')</if>
<if test="beizhu!=null">and beizhu like concat('%',#{beizhu,jdbcType=VARCHAR},'%')</if>
</select>
<select id="getAll" resultMap="BaseResultMap" parameterType="java.util.Map" >
select <include refid="Base_Column_List" /> from danganxinxi where 1=1
<if test="danganleibie!=null">
and danganleibie =#{danganleibie}
</if>
</select>
<select id="getsydanganxinxi1" resultMap="BaseResultMap" parameterType="java.util.Map" >
select <include refid="Base_Column_List" /> from danganxinxi where 1=1
limit 0,5
</select>
<select id="getsydanganxinxi2" resultMap="BaseResultMap" parameterType="java.util.Map" >
select <include refid="Base_Column_List" /> from danganxinxi where 1=1
limit 0,5
后面还有 120 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。