|
@@ -26,7 +26,7 @@
|
|
|
AND stat_date >=#{startDate}
|
|
|
AND stat_date <=#{endDate}
|
|
|
</if>
|
|
|
- union
|
|
|
+ union all
|
|
|
SELECT *, 2 as 'flag' FROM ctop_reimburse_apply
|
|
|
where 1=1
|
|
|
<if test="financialReview == 1">
|
|
@@ -52,7 +52,7 @@
|
|
|
AND stat_date >=#{startDate}
|
|
|
AND stat_date <=#{endDate}
|
|
|
</if>
|
|
|
- union
|
|
|
+ union all
|
|
|
SELECT t1.*, 3 as 'flag' FROM ctop_reimburse_apply t1
|
|
|
left join ctop_reimburse_apply_leader_rel t2 on t1.id = t2.apply_id
|
|
|
where
|