|
@@ -350,16 +350,32 @@ WHERE
|
|
|
|
|
|
<select id="getAnalyseDetailQx" resultType="com.onemap.spotoverlap.domain.yzt.AnalyseDetailQx"
|
|
|
parameterType="java.lang.String">
|
|
|
- SELECT
|
|
|
- T.overlaparea ,T.overlapzb||'%' "overlapzb", replace(T."result",'#','') "fxjg",
|
|
|
- d.sourcename "layername",
|
|
|
- (select "value" from t_analyse_type p where p.name = d.relationship)||relationshipkey||relationshipvalue||'%' "fxyj"
|
|
|
- FROM
|
|
|
- t_analyse_result T
|
|
|
- left join t_model_detail d on d.id = T.detailid
|
|
|
+ select fff.*,
|
|
|
+(select type from t_assessment_config c where name = fff.fxjg) as ypqx from (SELECT
|
|
|
+CASE
|
|
|
+
|
|
|
+ WHEN T
|
|
|
+ .overlaparea IS NULL THEN
|
|
|
+ '0' ELSE T.overlaparea
|
|
|
+ END AS "overlaparea",
|
|
|
+ CASE
|
|
|
+
|
|
|
+ WHEN T.overlapzb IS NULL THEN
|
|
|
+ '0%' ELSE T.overlapzb || '%'
|
|
|
+ END AS "overlapzb",
|
|
|
+ CASE
|
|
|
+
|
|
|
+ WHEN ( T."result" IS NULL OR T."result" = '#' ) THEN
|
|
|
+ '--' ELSE ( REPLACE ( T."result", '#', '' ) )
|
|
|
+ END AS "fxjg",
|
|
|
+ d.sourcename "layername",
|
|
|
+ ( SELECT "value" FROM t_analyse_type P WHERE P.NAME = d.relationship ) || relationshipkey || relationshipvalue || '%' "fxyj"
|
|
|
+ FROM
|
|
|
+ t_analyse_result
|
|
|
+ T LEFT JOIN t_model_detail d ON d.ID = T.detailid
|
|
|
WHERE
|
|
|
T.tablename = #{tablename}
|
|
|
- AND T.swid = #{swid}
|
|
|
+ AND T.swid = #{swid} ) fff
|
|
|
</select>
|
|
|
|
|
|
<select id="getJctbtjXzq" resultType="com.onemap.spotoverlap.domain.yzt.AnalyseResult"
|