build/classes/dao/ApplyMapper.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="dao.ApplyMapper" >
<resultMap id="ApplyUserlistResultMap" type="Pojo.Apply" >
<id column="apply_id" property="id" jdbcType="INTEGER" />
<result column="house_id" property="house_id" jdbcType="VARCHAR" />
<result column="address" property="address" jdbcType="VARCHAR" />
<result column="area" property="area" jdbcType="DOUBLE" />
<result column="price" property="price" jdbcType="DOUBLE" />
<result column="status" property="status" jdbcType="VARCHAR" />
<result column="userlist_id" property="userlist_id" jdbcType="INTEGER" />
<association property="userlist" javaType="Pojo.Userlist">
<!-- column:userlist表的主键对应的列 property:userlist对象中id属性-->
<id column="id" property="id"/>
<result column="name" property="name" jdbcType="VARCHAR" />
<result column="idcard" property="idcard" jdbcType="VARCHAR" />
<result column="phone" property="phone" jdbcType="VARCHAR" />
<result column="user_id" property="user_id" jdbcType="INTEGER" />
</association>
</resultMap>
<insert id="insertapply" parameterType="Pojo.Apply">
insert into apply(house_id,address,price,area,status,userlist_id)
values(#{house_id},#{address},#{price},#{area},#{status},#{userlist_id})
</insert>
<update id="updateapplystatus" parameterType="Pojo.Apply">
update apply set status=#{status} where house_id=#{house_id}
</update>
<select id="findapplylist" resultMap="ApplyUserlistResultMap">
SELECT
a.*,
u.*
FROM
apply a
JOIN `userlist` u ON u.id = a.userlist_id and status='申请中'
</select>
<select id="findallapplyout" resultMap="ApplyUserlistResultMap">
SELECT
u.*, a.*
FROM
`userlist` u
, apply a WHERE u.id = a.userlist_id AND STATUS='已拒绝'
</select>
<select id="findbyhouse_id" parameterType="string" resultType="Pojo.Apply">
select * from apply where house_id=#{house_id}
</select>
<delete id="deletebyhouse_id" parameterType="String" >
delete from apply where house_id=#{house_id}
</delete>
</mapper>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。