|
@@ -378,7 +378,7 @@
|
|
|
SUM(CASE WHEN hc.human_cost_type_ = 'STUDENT_MANAGEMENT_FEE_ADJUSTMENT' THEN hc.amount_ ELSE 0 END) AS studentManagementFeeAdjustment
|
|
|
FROM
|
|
|
organization o
|
|
|
- left join financial_expenditure fe ON o.id_ = fe.organ_id_ AND fe.process_id_ = 28 AND DATE_FORMAT(fe.aproval_time_, '%Y-%m') = #{month} AND fe.del_flag_ = 0
|
|
|
+ left join financial_expenditure fe ON o.id_ = fe.organ_id_ AND fe.process_id_ = 28 AND effective_time_= #{month} AND fe.del_flag_ = 0
|
|
|
left join human_cost hc ON hc.organ_id_ = o.id_ AND hc.month_ = #{month}
|
|
|
WHERE
|
|
|
o.tenant_id_ = 1 AND o.del_flag_ = 0
|
|
@@ -404,7 +404,7 @@
|
|
|
from financial_expenditure fe
|
|
|
left join organization o ON o.id_ = fe.organ_id_
|
|
|
left join cooperation_organ co ON co.id_ = fe.cooperation_organ_id_
|
|
|
- where fe.process_id_ IN (19,22,28,51) AND fee_project_ NOT IN (1,2,13,14) AND fe.del_flag_ = 0 AND DATE_FORMAT(fe.aproval_time_, '%Y-%m') = #{month}
|
|
|
+ where fe.process_id_ IN (19,22,28,51) AND fee_project_ NOT IN (1,2,13,14) AND fe.del_flag_ = 0 AND fe.effective_time_ = #{month}
|
|
|
order by fe.id_ DESC
|
|
|
</select>
|
|
|
<select id="sumHumanCost" resultType="com.ym.mec.biz.dal.dto.HumanTypeDto">
|