<?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.huimv.receive.mapper.BillLuggageMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.huimv.receive.entity.BillLuggage">
        <id column="id" property="id" />
        <result column="user_name" property="userName" />
        <result column="user_id" property="userId" />
        <result column="phone" property="phone" />
        <result column="luggage_date" property="luggageDate" />
        <result column="luggage_location" property="luggageLocation" />
        <result column="luggage_location_id" property="luggageLocationId" />
        <result column="article_pic_url" property="articlePicUrl" />
    </resultMap>

    <select id="list" resultType="com.huimv.receive.entity.vo.LuggageVo">
        select count(*) count,luggage_date dateTime from bill_luggage
        ${ew.customSqlSegment}
        group by DATE_FORMAT(luggage_date,"%y-%m-%d")
        order by luggage_date asc
    </select>
</mapper>
