|
|
|
@ -32,9 +32,9 @@
|
|
|
|
|
|
|
|
|
|
<select id="expenseDispatchDetailMonthJob" resultType="com.logpm.statistics.entity.ExpenseDispatchWarehouseMonthEntity"> |
|
|
|
|
select t.destination_warehouse destinationWarehouse, |
|
|
|
|
t.settlement_month settlementMonth, |
|
|
|
|
t.settlement_year settlementYear, |
|
|
|
|
concat(t.settlement_year,'年',t.settlement_month,'月') settlementTime, |
|
|
|
|
t.train_completion_month settlementMonth, |
|
|
|
|
t.train_completion_year settlementYear, |
|
|
|
|
concat(t.train_completion_year,'年',t.train_completion_month,'月') settlementTime, |
|
|
|
|
count(*) totalTrainService, |
|
|
|
|
sum(t.planned_total_quantity) plannedTotalQuantity, |
|
|
|
|
sum(t.inventory_item_count) inventoryItemCount, |
|
|
|
@ -57,9 +57,9 @@
|
|
|
|
|
sum(t.change_amount) changeAmount, |
|
|
|
|
sum(t.settlement_amount) settlementAmount |
|
|
|
|
from logpm_expense_dispatch_train_detail t |
|
|
|
|
where t.settlement_year = #{year} |
|
|
|
|
and t.settlement_month = #{month} |
|
|
|
|
group by t.settlement_month,t.settlement_year,t.destination_warehouse |
|
|
|
|
where t.train_completion_year = #{year} |
|
|
|
|
and t.train_completion_month = #{month} |
|
|
|
|
group by t.train_completion_month,t.train_completion_year,t.destination_warehouse |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|