src/main/resources/mapper/sales/SalesLedgerProductMapper.xml
@@ -196,11 +196,15 @@ </select> <select id="selectProductCountByTypeAndDate" resultType="int"> SELECT COUNT(*) SELECT IFNULL(COUNT(*), 0) FROM sales_ledger_product WHERE type = #{type} <if test="startDate != null"> AND register_date >= #{startDate} </if> <if test="endDate != null"> AND register_date <= #{endDate} </if> </select> <select id="selectRawMaterialExpense" resultType="java.math.BigDecimal">