<?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.bofeng.dao.QzTaskDao">
    <select id="selectAll" resultType="com.bofeng.entity.QzTask">
    select * from qz_task
  </select>

  <select id="queryByTaskId" resultType="com.bofeng.entity.QzTask">
    select * from qz_task where task_id=#{taskId}
  </select>

  <select id="queryByHouseNumber" resultType="com.bofeng.entity.QzTask">
    select * from qz_task where task_status=#{status} and house_number like concat('%', #{houseNumber}, '%')
  </select>

  <update id="updateStatusById">
    update qz_task set task_status=#{status} where task_id=#{taskId}
  </update>

    <select id="queryQzTask" resultType="com.bofeng.entity.QzTask">
    select * from qz_task order by time_update desc
    </select>

</mapper>