src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -185,8 +185,14 @@ p.product_name </select> <select id="selectTotal" resultType="java.math.BigDecimal"> select ifnull(sum(qualitity),0) from stock_inventory </select> <select id="selectTotalByDate" resultType="java.math.BigDecimal"> select sum(qualitity) from stock_inventory where create_time >= #{now} and create_time < DATE_ADD(#{now}, INTERVAL 1 DAY) </select> </mapper>