| | |
| | | ORDER BY info.status desc ,info.project_progress desc |
| | | </if> |
| | | <if test="dto.projectSort ==1"> |
| | | ORDER BY info.project_progress desc |
| | | ORDER BY info.project_progress desc NULLS LAST |
| | | </if> |
| | | <if test="dto.projectSort != null and dto.projectSort ==2"> |
| | | ORDER BY info.sk_id asc |
| | |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and pro.build_stage like CONCAT(CONCAT('%',#{dto.buildStage}),'%') |
| | | </if> |
| | | ORDER BY pro.project_progress desc NULLS LAST |
| | | </select> |
| | | <select id="getSgstatiss" resultType="cn.gistack.sm.sg.VO.SgStatisticsVO"> |
| | | SELECT |
| | |
| | | select DISTINCT "bas_guid" from SJZT_DW."dim_res_info_a" where "bas_name" = #{code} |
| | | </select> |
| | | <select id="progressList1" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |
| | | select pro.id, |
| | | select DISTINCT pro.id, |
| | | pro.project_name, |
| | | pro.lon_lat, |
| | | pro.status |
| | | pro.status, |
| | | pro.project_progress |
| | | from |
| | | (SELECT |
| | | pro.id, |
| | |
| | | pro.build_stage, |
| | | dria."county_cd" AS countyCode, |
| | | att."guid" AS cityCode, |
| | | ad."ad_code" AS provinceCode |
| | | ad."ad_code" AS provinceCode, |
| | | pro.project_progress |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = pro.sk_id |
| | |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and pro.build_stage like CONCAT(CONCAT('%',#{dto.buildStage}),'%') |
| | | </if> |
| | | order by pro.project_progress desc NULLS LAST |
| | | </select> |
| | | <select id="queryStepByProject1" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |
| | | select |