src/com/mapper/DanxuantiMapper.xml
(开头部分) 8KB这里只显示每个文件的开头 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.DanxuantiMapper">
<resultMap id="BaseResultMap" type="com.entity.Danxuanti">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="shitibianhao" jdbcType="VARCHAR" property="shitibianhao" />
<result column="kecheng" jdbcType="VARCHAR" property="kecheng" />
<result column="timu" jdbcType="VARCHAR" property="timu" />
<result column="xuanxiangA" jdbcType="VARCHAR" property="xuanxiangA" />
<result column="xuanxiangB" jdbcType="VARCHAR" property="xuanxiangB" />
<result column="xuanxiangC" jdbcType="VARCHAR" property="xuanxiangC" />
<result column="xuanxiangD" jdbcType="VARCHAR" property="xuanxiangD" />
<result column="daan" jdbcType="VARCHAR" property="daan" />
<result column="jiexi" jdbcType="VARCHAR" property="jiexi" />
<result column="addtime" jdbcType="VARCHAR" property="addtime" />
</resultMap>
<sql id="Base_Column_List">
id, shitibianhao,kecheng,timu,xuanxiangA,xuanxiangB,xuanxiangC,xuanxiangD,daan,jiexi, addtime
</sql>
<select id="quchongDanxuanti" parameterType="java.util.Map" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from danxuanti
where shitibianhao = #{shitibianhao,jdbcType=VARCHAR} limit 0,1
</select>
<select id="getCount" resultType="int" parameterType="java.util.Map" >
select count(*) from danxuanti where 1=1
<if test="shitibianhao!=null">and shitibianhao like concat('%',#{shitibianhao,jdbcType=VARCHAR},'%')</if>
<if test="kecheng!=null">and kecheng like concat('%',#{kecheng,jdbcType=VARCHAR},'%')</if>
<if test="timu!=null">and timu like concat('%',#{timu,jdbcType=VARCHAR},'%')</if>
<if test="xuanxiangA!=null">and xuanxiangA like concat('%',#{xuanxiangA,jdbcType=VARCHAR},'%')</if>
<if test="xuanxiangB!=null">and xuanxiangB like concat('%',#{xuanxiangB,jdbcType=VARCHAR},'%')</if>
<if test="xuanxiangC!=null">and xuanxiangC like concat('%',#{xuanxiangC,jdbcType=VARCHAR},'%')</if>
<if test="xuanxiangD!=null">and xuanxiangD like concat('%',#{xuanxiangD,jdbcType=VARCHAR},'%')</if>
<if test="daan!=null">and daan like concat('%',#{daan,jdbcType=VARCHAR},'%')</if>
<if test="jiexi!=null">and jiexi like concat('%',#{jiexi,jdbcType=VARCHAR},'%')</if>
</select>
<select id="getAll" resultMap="BaseResultMap" parameterType="java.util.Map" >
select <include refid="Base_Column_List" /> from danxuanti where 1=1
<if test="shitibianhao!=null">
and shitibianhao =#{shitibianhao}
</if>
</select>
<select id="getsydanxuanti1" resultMap="BaseResultMap" parameterType="java.util.Map" >
select <include refid="Base_Column_List" /> from danxuanti where 1=1
limit 0,5
</select>
<select id="getsydanxuanti2" resultMap="BaseResultMap" parameterType="java.util.Map" >
select <include refid="Base_Column_List" /> from danxuanti where 1=1
limit 0,5
</select>
<select id="getsydanxuanti3" resultMap="BaseResultMap" parameterType="java.util.Map" >
select <include refid="Base_Column_List" /> from danxuanti where 1=1
limit 0,5
</select>
<select id="getByPage" parameterType="java.util.Map" resultMap="BaseResultMap">
后面还有 100 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
