|
@@ -24,12 +24,8 @@
|
|
|
AND YEAR_HALF = #{half}
|
|
|
AND GOAL_GBN = #{goalGbn}
|
|
|
|
|
|
- <if test='goalGbn != null and goalGbn == "D"'>
|
|
|
- AND DETAIL_CD = #{pdeptCd}
|
|
|
- </if>
|
|
|
-
|
|
|
<if test='goalGbn != null and goalGbn == "T"'>
|
|
|
- AND DETAIL_CD like #{pdeptCd} || '%'
|
|
|
+ AND DETAIL_CD like SUBSTR(#{pdeptCd}, 1, 2) || '%'
|
|
|
</if>
|
|
|
|
|
|
ORDER BY YEAR_YY
|
|
@@ -180,7 +176,7 @@
|
|
|
</if>
|
|
|
|
|
|
<if test='searchData4 != null and searchData4 == "T"'>
|
|
|
- AND GOAL_GBN = 'D' AND #{searchData3} LIKE DETAIL_CD || '%'
|
|
|
+ AND GOAL_GBN = 'D' AND #{searchData3} LIKE SUBSTR(DETAIL_CD, 1, 2) || '%'
|
|
|
</if>
|
|
|
|
|
|
ORDER BY YEAR_YY
|