gongchunyi
4 天以前 f7649c532163847914e3591236e77c99fb68e1a8
src/main/resources/mapper/production/SalesLedgerProductionAccountingMapper.xml
@@ -88,4 +88,18 @@
    </select>
    <select id="selectDailyWagesStats" resultType="java.util.Map">
        SELECT
            DATE_FORMAT(scheduling_date, '%Y-%m-%d') as date,
            SUM(finished_num * work_hours) as wages
        FROM
            sales_ledger_production_accounting
        WHERE
            scheduling_date &gt;= #{startDate}
            AND scheduling_date &lt;= #{endDate}
        GROUP BY
            scheduling_date
    </select>
</mapper>