@@ -37,8 +37,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time" />
</resultMap>
<resultMap type="TResourceLandMap" id="TResourceLandMapResult">
<result property="fid" column="fid" />
<result property="dkbm" column="DKBM" />
<result property="dkmc" column="DKMC" />
<result property="scmjm" column="SCMJM" />
<result property="theGeom" column="the_geom" />
<result property="theGeomText" column="the_geom_text"/>
<result property="importCode" column="import_code" />
<result property="surveyStatus" column="survey_status" />
</resultMap>
<sql id="selectTResourceLandVo">
select fid, BSM, YSDM, DKBM, DKMC, SYQXZ, DKLB, TDLYLX, DLDJ, TDYT, SFJBNT, DKDZ, DKXZ, DKNZ, DKBZ, DKBZXX, ZJRXM, TXMJ, SCMJM, QSDWDM, QSDWMC, SFZWD, the_geom, survey_status, import_code, dept_name, create_by, create_time, update_by, update_time from t_resource_land
select fid, BSM, YSDM, DKBM, DKMC, SYQXZ, DKLB, TDLYLX, DLDJ, TDYT, SFJBNT, DKDZ, DKXZ, DKNZ, DKBZ, DKBZXX, ZJRXM, TXMJ, SCMJM, QSDWDM, QSDWMC, SFZWD, survey_status, import_code, dept_name, create_by, create_time, update_by, update_time from t_resource_land
</sql>
<sql id="selectTResourceLandMap">
select fid, DKBM, DKMC, SCMJM, ST_AsGeoJSON(the_geom) as the_geom, ST_AsText(the_geom) as the_geom_text, survey_status, import_code from t_resource_land
</sql>
<select id="selectTResourceLandList" parameterType="TResourceLand" resultMap="TResourceLandResult">
@@ -59,6 +74,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectTResourceLandQuery" parameterType="TResourceLand" resultMap="TResourceLandMapResult">
<include refid="selectTResourceLandMap"/>
<where>
<if test="dkbm != null and dkbm != ''"> and DKBM = #{dkbm}</if>
<if test="dkmc != null and dkmc != ''"> and DKMC like concat('%', #{dkmc}, '%')</if>
<if test="surveyStatus != null and surveyStatus != ''"> and survey_status = #{surveyStatus}</if>
<if test="importCode != null and importCode != ''"> and import_code like concat(#{importCode}, '%')</if>
</where>
</select>
<select id="selectTResourceLandByFid" parameterType="Long" resultMap="TResourceLandResult">
<include refid="selectTResourceLandVo"/>
where fid = #{fid}