|
|
@@ -76,6 +76,7 @@
|
|
|
<if test="endTime != null">end_time = #{endTime},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="shapeArea != null">shape_area = #{shapeArea},</if>
|
|
|
+ <if test="shapeArea == null" >shape_area = COALESCE(shape_area, public.ST_Area(geom::public.geography)),</if>
|
|
|
<if test="geom != null">geom = ST_GeomFromEWKT(#{geom}),</if>
|
|
|
<if test="typeId != null">type_id = #{typeId},</if>
|
|
|
<if test="reportPath != null">report_path = #{reportPath},</if>
|