견문통계 분야별, 평가별 조건 수정.
parent
423c7ddc1f
commit
b1c8e7386e
|
|
@ -15,6 +15,9 @@
|
||||||
<if test='endDate != null and endDate != ""'>
|
<if test='endDate != null and endDate != ""'>
|
||||||
and wrt_dt <= #{endDate}::date+1
|
and wrt_dt <= #{endDate}::date+1
|
||||||
</if>
|
</if>
|
||||||
|
<if test='reportOrgan != null and reportOrgan != ""'>
|
||||||
|
and doc_no like '%'||#{reportOrgan}||'%'
|
||||||
|
</if>
|
||||||
<if test='rating != null and rating != "" or sangbo != null and sangbo != ""'>
|
<if test='rating != null and rating != "" or sangbo != null and sangbo != ""'>
|
||||||
and ab.affair_key in (
|
and ab.affair_key in (
|
||||||
select affair_key
|
select affair_key
|
||||||
|
|
@ -122,9 +125,9 @@
|
||||||
count(*) as cnt
|
count(*) as cnt
|
||||||
from affair_board ab,
|
from affair_board ab,
|
||||||
affair_rating ar
|
affair_rating ar
|
||||||
where ab.affair_key = ar.affair_key
|
where ab.affair_key = ar.affair_key
|
||||||
and (ar.organ_up != 'T' or ar.organ_up is null)
|
and (ar.organ_up != 'T' or ar.organ_up is null)
|
||||||
<if test='userNm != null and userNm != ""'>
|
<if test='userNm != null and userNm != ""'>
|
||||||
and wrt_user_nm like '%'||#{userNm}||'%'
|
and wrt_user_nm like '%'||#{userNm}||'%'
|
||||||
</if>
|
</if>
|
||||||
<if test='startDate != null and startDate != ""'>
|
<if test='startDate != null and startDate != ""'>
|
||||||
|
|
@ -133,12 +136,15 @@
|
||||||
<if test='endDate != null and endDate != ""'>
|
<if test='endDate != null and endDate != ""'>
|
||||||
and wrt_dt <= #{endDate}::date+1
|
and wrt_dt <= #{endDate}::date+1
|
||||||
</if>
|
</if>
|
||||||
|
<if test='reportOrgan != null and reportOrgan != ""'>
|
||||||
|
and doc_no like '%'||#{reportOrgan}||'%'
|
||||||
|
</if>
|
||||||
<if test='rating != null and rating != "" or sangbo != null and sangbo != ""'>
|
<if test='rating != null and rating != "" or sangbo != null and sangbo != ""'>
|
||||||
and ab.affair_key in (
|
and ab.affair_key in (
|
||||||
select affair_key
|
select affair_key
|
||||||
from affair_rating ar2
|
from affair_rating ar2
|
||||||
inner join organ_config oc2
|
inner join organ_config oc2
|
||||||
on ar2.rating_organ = oc2.organ_cd
|
on ar2.rating_organ = oc2.organ_cd
|
||||||
<where>
|
<where>
|
||||||
<if test='rating != null and rating != ""'>
|
<if test='rating != null and rating != ""'>
|
||||||
and ar2.affair_rate in
|
and ar2.affair_rate in
|
||||||
|
|
@ -347,6 +353,9 @@
|
||||||
<if test='endDate != null and endDate != ""'>
|
<if test='endDate != null and endDate != ""'>
|
||||||
and wrt_dt <= #{endDate}::date+1
|
and wrt_dt <= #{endDate}::date+1
|
||||||
</if>
|
</if>
|
||||||
|
<if test='reportOrgan != null and reportOrgan != ""'>
|
||||||
|
and doc_no like '%'||#{reportOrgan}||'%'
|
||||||
|
</if>
|
||||||
<if test='rating != null and rating != "" or sangbo != null and sangbo != ""'>
|
<if test='rating != null and rating != "" or sangbo != null and sangbo != ""'>
|
||||||
and ab.affair_key in (
|
and ab.affair_key in (
|
||||||
select affair_key
|
select affair_key
|
||||||
|
|
@ -424,8 +433,8 @@
|
||||||
from affair_board ab,
|
from affair_board ab,
|
||||||
affair_rating ar
|
affair_rating ar
|
||||||
where ab.affair_key = ar.affair_key
|
where ab.affair_key = ar.affair_key
|
||||||
and (ar.organ_up != 'T' or ar.organ_up is null)
|
and (ar.organ_up != 'T' or ar.organ_up is null)
|
||||||
<include refid="raitingSearch"></include>
|
<include refid="raitingSearch"></include>
|
||||||
group by ab.wrt_organ) c
|
group by ab.wrt_organ) c
|
||||||
on a.item_cd = c.wrt_organ
|
on a.item_cd = c.wrt_organ
|
||||||
order by item_cd asc
|
order by item_cd asc
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue