<?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.ShShopMatMapper">


    <select id="queryMyShShopMat" resultType="com.bofeng.entity.ShShopMat">
      select * from sh_shop_mat where  shop_id=#{shopId}
      order by status, time_update desc
    </select>

    <select id="queryAllShShopMat" resultType="com.bofeng.entity.ShShopMat">
      select * from sh_shop_mat
      order by time_update desc
    </select>


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

    <!--<update id="cancelMyShopMat">-->
    <!--update sh_shop_mat set status=#{status} where mat_id=#{matId}-->
    <!--</update>-->

    <!--<select id="queryShShop" resultType="com.bofeng.entity.ShShop">-->
    <!--select * from sh_shop-->
    <!--<where>-->
    <!--<if test="taskStatus!=null and taskStatus!=''">-->
    <!--task_status=#{taskStatus}-->
    <!--</if>-->
    <!--</where>-->
    <!--order by time_update desc-->
    <!--</select>-->

</mapper>