4 小时以前 dd930102c5f6832e8ed52aa76645bd46c38d2f32
src/main/resources/mapper/production/ProductionProductOutputMapper.xml
@@ -48,14 +48,14 @@
    </select>
    <select id="selectDailyOutputStats" resultType="java.util.Map">
        select date(create_time) as statDate,
        select date(create_time) as date,
               sum(ifnull(quantity, 0)) as quantity,
               sum(ifnull(scrap_qty, 0)) as scrapQty
        from production_product_output
        where create_time &gt;= #{startDate}
          and create_time &lt;= #{endDate}
        group by date(create_time)
        order by statDate asc
        order by date asc
    </select>
</mapper>