| | |
| | | AND tbd.dept_area_code = #{areaCode} |
| | | AND tbsc.id = #{dataScreenConfigId} |
| | | <if test="yearType==1"> |
| | | AND YEAR(tbd.reporting_time) = YEAR(CURDATE()) |
| | | AND YEAR(tbd.reporting_time) = SUBSTRING(tbd.quarter, 1, 4) |
| | | </if> |
| | | <if test="yearType==2"> |
| | | AND YEAR(tbd.reporting_time) = YEAR(CURDATE())-1 |
| | | AND YEAR(tbd.reporting_time) = SUBSTRING(tbd.quarter, 1, 4)-1 |
| | | </if> |
| | | </select> |
| | | <select id="selectIndicators" |
| | |
| | | AND tbd.dept_area_code = #{areaCode} |
| | | AND tbsc.type = #{dataScreenConfigEnum} |
| | | <if test="yearType!=null and yearType==1"> |
| | | AND YEAR(tbd.reporting_time) = YEAR(CURDATE()) |
| | | AND YEAR(tbd.reporting_time) = SUBSTRING(#{nowQuarter}, 1, 4) |
| | | </if> |
| | | <if test="yearType!=null and yearType==2"> |
| | | AND YEAR(tbd.reporting_time) = YEAR(CURDATE())-1 |
| | | AND YEAR(tbd.reporting_time) = SUBSTRING(#{nowQuarter}, 1, 4) -1 |
| | | </if> |
| | | <if test="nowQuarter!=null and nowQuarter != ''"> |
| | | AND tbd.quarter = #{nowQuarter} |