| | |
| | | <if test="dto.deptId != null and dto.deptId !=''"> |
| | | and (info.control_unit = #{dto.deptId} or info.construction_unit = #{dto.deptId}) |
| | | </if> |
| | | <if test="dto.adCode != null and dto.adCode !=''"> |
| | | and dria."county_cd" = #{dto.adCode} |
| | | </if> |
| | | <if test="dto.projectSort == null"> |
| | | ORDER BY TO_NUMBER(info.project_progress) desc NULLS LAST,info.status desc |
| | | </if> |
| | |
| | | ORDER BY info.sk_id asc |
| | | </if>--> |
| | | <if test="dto.projectSort != null and dto.projectSort ==3"> |
| | | ORDER BY info.surface_progress desc NULLS LAST |
| | | ORDER BY TO_NUMBER(SUBSTR(info.surface_progress, 1, LENGTH(info.surface_progress) - 1)) desc NULLS LAST |
| | | </if> |
| | | <if test="dto.projectSort != null and dto.projectSort ==4"> |
| | | ORDER BY info.video_progress desc NULLS LAST |
| | | ORDER BY TO_NUMBER(SUBSTR(info.video_progress, 1, LENGTH(info.video_progress) - 1)) desc NULLS LAST |
| | | </if> |
| | | <if test="dto.projectSort != null and dto.projectSort ==5"> |
| | | ORDER BY info.trans_progress desc NULLS LAST |
| | | ORDER BY TO_NUMBER(SUBSTR(info.trans_progress, 1, LENGTH(info.trans_progress) - 1)) desc NULLS LAST |
| | | </if> |
| | | <if test="dto.projectSort != null and dto.projectSort ==6"> |
| | | ORDER BY info.seepage_progress desc NULLS LAST |
| | | ORDER BY TO_NUMBER(SUBSTR(info.seepage_progress , 1, LENGTH(info.seepage_progress ) - 1)) desc NULLS LAST |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | </select> |
| | | <select id="projectTree" resultType="cn.gistack.sm.sg.VO.SgProjectTreeVO"> |
| | | SELECT |
| | | <!-- TOP 200 --> |
| | | <!-- TOP 200 --> |
| | | info.id, |
| | | info.lot, |
| | | dria."province_nm", |
| | |
| | | #{id} |
| | | </foreach>) |
| | | </if> |
| | | <if test="dto.adCode != null and dto.adCode !=''"> |
| | | and dria."county_cd" = #{dto.adCode} |
| | | </if> |
| | | </select> |
| | | <select id="getUserS" resultType="java.lang.String"> |
| | | |
| | |
| | | <if test="dto.adCode != null and dto.adCode != ''"> |
| | | and (dria."province_cd" = #{dto.adCode} or dria."city_cd" = #{dto.adCode} or dria."county_cd" = #{dto.adCode}) |
| | | </if> |
| | | <if test="dto.skName != null and dto.skName != ''"> |
| | | and dria."res_nm" like CONCAT(CONCAT('%', #{dto.skName}), '%') |
| | | </if> |
| | | <include refid="queryBySgCodeS"></include> |
| | | </select> |
| | | </mapper> |