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

    <select id="listAll" resultType="com.huimv.receive.entity.vo.BillGoodsInventoryVo">
        SELECT
    DATE(create_date) as dateTime,
    sum(goods_nums) count
FROM
    `bill_goods_inventory`

    ${ew.customSqlSegment}
GROUP BY DATE_FORMAT(create_date,"%Y-%m-%d")
ORDER BY DATE_FORMAT(create_date,"%Y-%m-%d") asc
    </select>
</mapper>
