WebRoot/WEB-INF/classes/com/mapper/TiankongtiMapper.xml

(开头部分) 6KB

这里只显示每个文件的开头 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.TiankongtiMapper">
  <resultMap id="BaseResultMap" type="com.entity.Tiankongti">
    <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="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,daan,jiexi, addtime
  </sql>
  <select id="quchongTiankongti"  parameterType="java.util.Map" resultMap="BaseResultMap" >
    select 
    <include refid="Base_Column_List" />
    from tiankongti 
    where shitibianhao = #{shitibianhao,jdbcType=VARCHAR} limit 0,1
  </select>
 <select id="getCount"   resultType="int" parameterType="java.util.Map" >
    select  count(*) from tiankongti  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="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 tiankongti  where 1=1
    <if test="shitibianhao!=null">
    and shitibianhao =#{shitibianhao}
    </if>
  </select>
  
  <select id="getsytiankongti1"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from tiankongti  where 1=1
    limit 0,5
  </select>
  <select id="getsytiankongti2"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from tiankongti  where 1=1
    limit 0,5
  </select>
  <select id="getsytiankongti3"   resultMap="BaseResultMap" parameterType="java.util.Map" >
    select   <include refid="Base_Column_List" /> from tiankongti  where 1=1
    limit 0,5
  </select>
  
   <select id="getByPage" parameterType="java.util.Map" resultMap="BaseResultMap">
     select  <include refid="Base_Column_List" /> 
     from tiankongti 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="daan!=null">and daan like  concat('%',#{daan,jdbcType=VARCHAR},'%')</if>
     <if test="jiexi!=null">and jiexi like  concat('%',#{jiexi,jdbcType=VARCHAR},'%')</if>
     
后面还有 76 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。