|
@@ -22,15 +22,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="confirmNotse" column="confirm_notse" />
|
|
<result property="confirmNotse" column="confirm_notse" />
|
|
|
<result property="confirmTime" column="confirm_time" />
|
|
<result property="confirmTime" column="confirm_time" />
|
|
|
<result property="auditflow" column="auditflow" />
|
|
<result property="auditflow" column="auditflow" />
|
|
|
|
|
+ <result property="lzb" column="lzb" />
|
|
|
|
|
+ <result property="bzb" column="bzb" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectTDkFieldworkVo">
|
|
<sql id="selectTDkFieldworkVo">
|
|
|
select id, dkjdxx_id, step_state, end_time, fieldwork_id, fieldwork_by,
|
|
select id, dkjdxx_id, step_state, end_time, fieldwork_id, fieldwork_by,
|
|
|
create_by, create_time, notes, dkbh, dkmj, public.st_asewkt(geom) geom,
|
|
create_by, create_time, notes, dkbh, dkmj, public.st_asewkt(geom) geom,
|
|
|
|
|
+ public.ST_Centroid(geom) centroid,
|
|
|
confirm_state, confirm_type, confirm_notse, confirm_time,auditflow from t_dk_fieldwork
|
|
confirm_state, confirm_type, confirm_notse, confirm_time,auditflow from t_dk_fieldwork
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectTDkFieldworkList" parameterType="TDkFieldwork" resultMap="TDkFieldworkResult">
|
|
<select id="selectTDkFieldworkList" parameterType="TDkFieldwork" resultMap="TDkFieldworkResult">
|
|
|
|
|
+ select t1.*,public.ST_X(centroid) lzb,public.ST_Y(centroid) bzb from (
|
|
|
<include refid="selectTDkFieldworkVo"/>
|
|
<include refid="selectTDkFieldworkVo"/>
|
|
|
<where>
|
|
<where>
|
|
|
<if test="dkbh != null and dkbh != ''"> and dkbh = #{dkbh}</if>
|
|
<if test="dkbh != null and dkbh != ''"> and dkbh = #{dkbh}</if>
|
|
@@ -47,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="fieldworkId != null and fieldworkId != ''"> and fieldwork_id = #{fieldworkId}</if>
|
|
<if test="fieldworkId != null and fieldworkId != ''"> and fieldwork_id = #{fieldworkId}</if>
|
|
|
<if test="fieldworkBy != null and fieldworkBy != ''"> and fieldwork_by = #{fieldworkBy}</if>
|
|
<if test="fieldworkBy != null and fieldworkBy != ''"> and fieldwork_by = #{fieldworkBy}</if>
|
|
|
<if test="notes != null and notes != ''"> and notes = #{notes}</if>
|
|
<if test="notes != null and notes != ''"> and notes = #{notes}</if>
|
|
|
- </where>
|
|
|
|
|
|
|
+ </where>)t1
|
|
|
order by create_time desc
|
|
order by create_time desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|