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

    <!--<select id="selectAll" resultType="com.bofeng.entity.ShShop">-->
    <!--select * from sh_shop-->
    <!--</select>-->

    <!--<select id="queryById" resultType="com.bofeng.entity.ShShop">-->
    <!--select * from sh_shop where shop_id=#{shopId} and user_id=#{userId}-->
    <!--</select>-->

    <select id="queryMyShShop" resultType="com.bofeng.entity.ShShop">
        select * from sh_shop where  user_id=#{userId}
        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="updateStatusById">-->
    <!--update sh_shop set task_status=#{status} where task_id=#{taskId}-->
    <!--</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>