| | |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.lot != null and dto.lot != ''"> |
| | | and pro.lot like CONCAT(CONCAT('%',#{dto.lot}),'%') |
| | | </if> |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and pro.build_stage like CONCAT(CONCAT('%',#{dto.buildStage}),'%') |
| | | </if> |
| | | ORDER BY pro.status desc ,pro.project_progress desc |
| | | |
| | | </select> |
| | |
| | | </if> |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and pro.project_name like CONCAT(CONCAT('%',#{dto.projectName}),'%') |
| | | </if> |
| | | <if test="dto.lot != null and dto.lot != ''"> |
| | | and pro.lot like CONCAT(CONCAT('%',#{dto.lot}),'%') |
| | | </if> |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and pro.build_stage like CONCAT(CONCAT('%',#{dto.buildStage}),'%') |
| | | </if> |
| | | </select> |
| | | <select id="getSgstatiss" resultType="cn.gistack.sm.sg.VO.SgStatisticsVO"> |
| | |
| | | a."ad_name" NAME, |
| | | SUM( CASE WHEN b.STATUS IN ( 1, 2 ) THEN 1 ELSE 0 END ) AS commenceNum, |
| | | count( b.STATUS ) projectSum, |
| | | LISTAGG(b.id, ',') as proIds |
| | | LISTAGG(b.id, ',') as proIds, |
| | | b.build_stage |
| | | FROM |
| | | ( |
| | | SELECT |
| | |
| | | att."guid" AS cityCode, |
| | | ad."ad_code" AS provinceCode, |
| | | info.STATUS, |
| | | info.id |
| | | info.id, |
| | | info.build_stage |
| | | FROM |
| | | YWXT.SG_PROJECT_INFO info |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = info.sk_id |
| | |
| | | a."p_ad_code" = #{code} |
| | | GROUP BY |
| | | a."ad_code", |
| | | a."ad_name" |
| | | a."ad_name", |
| | | b.build_stage |
| | | </select> |
| | | |
| | | <select id="getsgStatisticsZero" resultType="cn.gistack.sm.sg.VO.SgStatisProVO"> |
| | |
| | | dria."city_cd" code, dria."city_nm" name , |
| | | sum( CASE WHEN info.STATUS IN ( 1, 2 ) THEN 1 ELSE 0 END ) AS commenceNum, |
| | | count( info.STATUS ) projectSum, |
| | | LISTAGG(info.id, ',') as proIds |
| | | LISTAGG(info.id, ',') as proIds, |
| | | info.build_stage as buildStage |
| | | FROM |
| | | YWXT.SG_PROJECT_INFO info |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = info.sk_id |
| | |
| | | <if test="code != null and code != ''"> |
| | | AND info.lot =#{code} |
| | | </if> |
| | | Group By dria."city_cd",dria."city_nm" |
| | | Group By dria."city_cd",dria."city_nm",info.build_stage |
| | | HAVING |
| | | dria."city_cd" IS NOT NULL AND |
| | | dria."city_nm" IS NOT NULL |
| | |
| | | info.lot as name, |
| | | sum( CASE WHEN info.STATUS IN ( 1, 2 ) THEN 1 ELSE 0 END ) AS commenceNum, |
| | | count( info.STATUS ) AS projectSum, |
| | | LISTAGG(info.id, ',') as proIds |
| | | LISTAGG(info.id, ',') as proIds, |
| | | info.build_stage |
| | | FROM |
| | | YWXT.SG_PROJECT_INFO info |
| | | LEFT JOIN SJZT_DW."dim_res_info_a" dria ON dria."res_cd" = info.sk_id |
| | | WHERE |
| | | 1 = 1 |
| | | GROUP BY |
| | | info.lot |
| | | info.lot,info.build_stage |
| | | <!-- dria."bas_guid", dria."bas_name" --> |
| | | HAVING |
| | | <!-- dria."bas_guid" IS NOT NULL AND |
| | |
| | | pro.project_name, |
| | | pro.lon_lat, |
| | | pro.status, |
| | | pro.lot, |
| | | pro.build_stage, |
| | | dria."county_cd" AS countyCode, |
| | | att."guid" AS cityCode, |
| | | ad."ad_code" AS provinceCode |
| | |
| | | </if> |
| | | <if test="dto.projectName != null and dto.projectName != ''"> |
| | | and pro.project_name like CONCAT(CONCAT('%',#{dto.projectName}),'%') |
| | | </if> |
| | | <if test="dto.lot != null and dto.lot != ''"> |
| | | and pro.lot like CONCAT(CONCAT('%',#{dto.lot}),'%') |
| | | </if> |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and pro.build_stage like CONCAT(CONCAT('%',#{dto.buildStage}),'%') |
| | | </if> |
| | | </select> |
| | | <select id="queryStepByProject1" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |
| | |
| | | dria."county_cd" AS countyCode, |
| | | att."guid" AS cityCode, |
| | | ad."ad_code" AS provinceCode, |
| | | pro.project_progress |
| | | pro.project_progress, |
| | | pro.lot, |
| | | pro.build_stage |
| | | FROM |
| | | ywxt.sg_project_info pro |
| | | LEFT JOIN ywxt.sg_device d ON pro.id = d.program_id |
| | |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.lot != null and dto.lot != ''"> |
| | | and pro.lot like CONCAT(CONCAT('%',#{dto.lot}),'%') |
| | | </if> |
| | | <if test="dto.buildStage != null and dto.buildStage != ''"> |
| | | and pro.build_stage like CONCAT(CONCAT('%',#{dto.buildStage}),'%') |
| | | </if> |
| | | ORDER BY pro.projectStatus desc ,pro.project_progress desc |
| | | </select> |
| | | <select id="selectVOById" resultType="cn.gistack.sm.sg.VO.SgProjectInfoVO"> |