build/classes/dao/HouselistMapper.xml

(开头部分) 1KB

这里只显示每个文件的开头 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="dao.HouselistMapper" >
  <resultMap id="BaseResultMap" type="Pojo.Houselist" >
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="houseid" property="houseid" jdbcType="VARCHAR" />
    <result column="area" property="area" jdbcType="DOUBLE" />
    <result column="price" property="price" jdbcType="DOUBLE" />
     <result column="status" property="status" jdbcType="VARCHAR" />
  </resultMap>
 <select id="selectAll" resultMap="BaseResultMap">
   select *
    from houselist where status!='已租赁'
    <!-- <where>
		
		<if test="houseid!=null and houseid!=''">
		and houseid=#{houseid}
		</if>
		<if test="address!=null and address!=''">
		and address=#{address}
		</if>
		<if test="area!=null and area!=''">
		and area=#{area}
		</if>
		<if test="price!=null and price!=''">
		and price=#{price}
		</if>
		<if test="status!=null and status!=''">
		and status=#{status}
		</if>
		</where> -->
		
  </select>
  
  <select id="selects" resultMap="BaseResultMap" parameterType="String">
   select *
    from houselist
    <where>
        and status!='已租赁'
		<if test="price!=null and price!=''">
		and price between #{price} and #{price2}
		</if>
		<if test="area!=null and area!=''">
		and area between #{area} and #{area2}
		</if>
		
		<if test="address!=null and address!=''">
		and address like "%"#{address}"%"
		</if>
		</where>
		
  </select>
  
  <select id="selects1" resultMap="BaseResultMap" parameterType="String">
   select *
    from houselist
    <where>
		and status!='已租赁'
		<if test="address!=null and address!=''">
		and address like "%"#{address}"%"

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

AI 解读 AI

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

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