| | |
| | | <result property="county_nm" column="county_nm"/> |
| | | <result property="city_cd" column="city_cd"/> |
| | | <result property="city_nm" column="city_nm"/> |
| | | <result property="type" column="type"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="getSyLackAlertList" resultMap="vo"> |
| | | SELECT * FROM ( |
| | | SELECT |
| | | info.res_cd, |
| | | info.res_nm, |
| | | info.town_cd, |
| | | info.town_nm, |
| | | info.county_cd, |
| | | info.county_nm, |
| | | info.city_cd, |
| | | info.city_nm, |
| | | info.typeList as type |
| | | |
| | | FROM ( |
| | | SELECT |
| | | basic."guid" res_cd, |
| | | basic."name" res_nm, |
| | |
| | | LEFT JOIN SJZT_MD."att_ad_base" city ON city."ad_code" = county."p_ad_code" |
| | | LEFT JOIN YWXT.SM_TEXTUAL_RESEARCH_ATTACH STRA ON STRA.RES_GUID = arb."guid" and stra.type = 1 |
| | | where stra.type != 1 or stra.type is null |
| | | |
| | | </select> |
| | | |
| | | </mapper> |