|
@@ -668,10 +668,12 @@
|
|
AND (a.account_checking_user_id = #{accountCheckingUserId} or sua.name like concat('%',#{accountCheckingUserName},'%'))
|
|
AND (a.account_checking_user_id = #{accountCheckingUserId} or sua.name like concat('%',#{accountCheckingUserName},'%'))
|
|
</if>
|
|
</if>
|
|
<if test="area != null and area.id != null and area.id != ''">
|
|
<if test="area != null and area.id != null and area.id != ''">
|
|
- AND a.area_parent_id LIKE
|
|
|
|
|
|
+ AND (a.area_parent_id LIKE
|
|
<if test="dbName == 'oracle'">'%'||#{area.id}||'%'</if>
|
|
<if test="dbName == 'oracle'">'%'||#{area.id}||'%'</if>
|
|
<if test="dbName == 'mssql'">'%'+#{area.id}+'%'</if>
|
|
<if test="dbName == 'mssql'">'%'+#{area.id}+'%'</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{area.id},'%')</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{area.id},'%')</if>
|
|
|
|
+ or a.area_id = #{area.id}
|
|
|
|
+ )
|
|
</if>
|
|
</if>
|
|
<if test="number != null and number != ''">
|
|
<if test="number != null and number != ''">
|
|
AND a.number LIKE
|
|
AND a.number LIKE
|
|
@@ -895,6 +897,7 @@
|
|
a.actual_drawer_id as "actualDrawerId"
|
|
a.actual_drawer_id as "actualDrawerId"
|
|
,wid.number as "widNumber"
|
|
,wid.number as "widNumber"
|
|
,wid.total_money as "widTotalMoney",
|
|
,wid.total_money as "widTotalMoney",
|
|
|
|
+ wid.total_money as "widTotalMoneyD",
|
|
(select
|
|
(select
|
|
CASE
|
|
CASE
|
|
WHEN RIGHT( GROUP_CONCAT(is_project),1) =2 THEN GROUP_CONCAT(concat('其他:',wipr1.details))
|
|
WHEN RIGHT( GROUP_CONCAT(is_project),1) =2 THEN GROUP_CONCAT(concat('其他:',wipr1.details))
|
|
@@ -935,10 +938,12 @@
|
|
AND (a.account_checking_user_id = #{accountCheckingUserId} or sua.name like concat('%',#{accountCheckingUserName},'%'))
|
|
AND (a.account_checking_user_id = #{accountCheckingUserId} or sua.name like concat('%',#{accountCheckingUserName},'%'))
|
|
</if>
|
|
</if>
|
|
<if test="area != null and area.id != null and area.id != ''">
|
|
<if test="area != null and area.id != null and area.id != ''">
|
|
- AND a.area_parent_id LIKE
|
|
|
|
|
|
+ AND (a.area_parent_id LIKE
|
|
<if test="dbName == 'oracle'">'%'||#{area.id}||'%'</if>
|
|
<if test="dbName == 'oracle'">'%'||#{area.id}||'%'</if>
|
|
<if test="dbName == 'mssql'">'%'+#{area.id}+'%'</if>
|
|
<if test="dbName == 'mssql'">'%'+#{area.id}+'%'</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{area.id},'%')</if>
|
|
<if test="dbName == 'mysql'">concat('%',#{area.id},'%')</if>
|
|
|
|
+ or a.area_id = #{area.id}
|
|
|
|
+ )
|
|
</if>
|
|
</if>
|
|
<if test="number != null and number != ''">
|
|
<if test="number != null and number != ''">
|
|
AND a.number LIKE
|
|
AND a.number LIKE
|