|
@@ -18,9 +18,11 @@
|
|
<result property="type" column="type"/>
|
|
<result property="type" column="type"/>
|
|
<result property="supermapCode" column="supermap_code"/>
|
|
<result property="supermapCode" column="supermap_code"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="createBy" column="create_by"/>
|
|
- <result property="createDate" column="create_date"/>
|
|
|
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
<result property="updateBy" column="update_by"/>
|
|
- <result property="updateDate" column="update_date"/>
|
|
|
|
|
|
+ <result property="updateTime" column="update_time"/>
|
|
|
|
+ <result property="updateName" column="update_name"/>
|
|
|
|
+ <result property="createName" column="create_name"/>
|
|
<result property="remarks" column="remarks"/>
|
|
<result property="remarks" column="remarks"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="delFlag" column="del_flag"/>
|
|
<result property="deptId" column="dept_id"/>
|
|
<result property="deptId" column="dept_id"/>
|
|
@@ -35,10 +37,13 @@
|
|
<select id="selectCenterdataTFarmLandInfoList" parameterType="CenterdataTFarmLandInfo"
|
|
<select id="selectCenterdataTFarmLandInfoList" parameterType="CenterdataTFarmLandInfo"
|
|
resultMap="CenterdataTFarmLandInfoResult">
|
|
resultMap="CenterdataTFarmLandInfoResult">
|
|
select a.id, a.name, a.code, a.attribute, a.city, a.district, a.village, a.area, a.land_calendar_years,
|
|
select a.id, a.name, a.code, a.attribute, a.city, a.district, a.village, a.area, a.land_calendar_years,
|
|
- a.land_years, a.type, a.supermap_code, a.create_by, a.create_date, a.update_by, a.update_date, a.remarks,
|
|
|
|
|
|
+ a.land_years, a.type, a.supermap_code, a.create_by, a.create_date as create_time, a.update_by, a.update_date as update_time ,u.nick_name as create_name,
|
|
|
|
+ su.nick_name as update_name, a.remarks,
|
|
a.del_flag, a.dept_id, a.dept_name
|
|
a.del_flag, a.dept_id, a.dept_name
|
|
from centerdata_t_farm_land_info a
|
|
from centerdata_t_farm_land_info a
|
|
left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
|
|
left join ${database_system}.sys_dept d on d.dept_id = a.dept_id
|
|
|
|
+ LEFT JOIN ${database_system}.sys_user u ON a.create_by = u.user_id
|
|
|
|
+ LEFT JOIN ${database_system}.sys_user su ON a.update_by = su.user_id
|
|
<where>
|
|
<where>
|
|
<if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if>
|
|
<if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if>
|
|
<if test="code != null and code != ''">and a.code = #{code}</if>
|
|
<if test="code != null and code != ''">and a.code = #{code}</if>
|
|
@@ -53,8 +58,8 @@
|
|
<if test="landYears != null and landYears != ''">and a.land_years = #{landYears}</if>
|
|
<if test="landYears != null and landYears != ''">and a.land_years = #{landYears}</if>
|
|
<if test="type != null and type != ''">and a.type = #{type}</if>
|
|
<if test="type != null and type != ''">and a.type = #{type}</if>
|
|
<if test="supermapCode != null and supermapCode != ''">and a.supermap_code = #{supermapCode}</if>
|
|
<if test="supermapCode != null and supermapCode != ''">and a.supermap_code = #{supermapCode}</if>
|
|
- <if test="createDate != null ">and a.create_date = #{createDate}</if>
|
|
|
|
- <if test="updateDate != null ">and a.update_date = #{updateDate}</if>
|
|
|
|
|
|
+ <if test="createTime != null ">and a.create_date = #{createTime}</if>
|
|
|
|
+ <if test="updateTime != null ">and a.update_date = #{updateTime}</if>
|
|
<if test="remarks != null and remarks != ''">and a.remarks = #{remarks}</if>
|
|
<if test="remarks != null and remarks != ''">and a.remarks = #{remarks}</if>
|
|
<if test="deptId != null and deptId != ''">and a.deptId = #{deptId}</if>
|
|
<if test="deptId != null and deptId != ''">and a.deptId = #{deptId}</if>
|
|
${params.dataScope}
|
|
${params.dataScope}
|