|
@@ -27,6 +27,7 @@
|
|
|
<result property="userId" column="user_id"/>
|
|
|
<result property="createName" column="create_name"/>
|
|
|
<result property="updateName" column="update_name"/>
|
|
|
+ <result property="num" column="num"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="UserBo" id="UserBoResult">
|
|
@@ -35,7 +36,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCenterdataTForestLinleaderVo">
|
|
|
- select id, lin_name,lin_sex,lin_duty,lin_phone,admini_strative_lin_job,lin_responsibility,create_by, create_time, update_by, update_time, data_status, lin_level, lin_job, lin_number, lin_grid_id, lin_grid_name, dept_id, dept_name,user_id, update_name , create_name
|
|
|
+ select id, lin_name,lin_sex,lin_duty,lin_phone,admini_strative_lin_job,lin_responsibility,create_by, create_time, update_by, update_time, data_status, lin_level, lin_job, lin_number, lin_grid_id, lin_grid_name, dept_id, dept_name,user_id, update_name , create_name,num
|
|
|
from centerdata_t_forest_linleader
|
|
|
</sql>
|
|
|
|
|
@@ -43,7 +44,7 @@
|
|
|
resultMap="CenterdataTForestLinleaderResult">
|
|
|
select a.id, a.lin_name,a.lin_sex,a.lin_duty,a.lin_phone,a.lin_responsibility,a.create_by, a.create_time,a.admini_strative_lin_job,
|
|
|
a.update_by, a.update_time, a.data_status, a.lin_level, a.lin_job, a.lin_number, a.lin_grid_id, a.lin_grid_name,
|
|
|
- a.dept_id, a.dept_name,a.user_id,a.update_name , a.create_name from centerdata_t_forest_linleader a
|
|
|
+ a.dept_id, a.dept_name,a.user_id,a.update_name , a.create_name,a.num from centerdata_t_forest_linleader a
|
|
|
left join ${database_system}.sys_dept d on a.dept_id=d.dept_id
|
|
|
<where>
|
|
|
<if test="dataStatus != null and dataStatus != ''">and a.data_status = #{dataStatus}</if>
|
|
@@ -66,7 +67,7 @@
|
|
|
</if>
|
|
|
${params.dataScope}
|
|
|
</where>
|
|
|
- order by a.create_time desc
|
|
|
+ order by a.num,a.create_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCenterdataTForestLinleaderById" parameterType="String"
|
|
@@ -99,6 +100,7 @@
|
|
|
<if test="deptName != null">dept_name,</if>
|
|
|
<if test="userId != null">user_id,</if>
|
|
|
<if test="createName != null and createName != ''">create_name,</if>
|
|
|
+ <if test="num != null and num != ''">num,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
@@ -122,6 +124,7 @@
|
|
|
<if test="deptName != null">#{deptName},</if>
|
|
|
<if test="userId != null">#{userId},</if>
|
|
|
<if test="createName != null and createName != ''">#{createName},</if>
|
|
|
+ <if test="num != null and num != ''">#{num},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -148,6 +151,7 @@
|
|
|
<if test="deptName != null">dept_name = #{deptName},</if>
|
|
|
<if test="userId != null">user_id = #{userId},</if>
|
|
|
<if test="updateName != null and updateName != ''">update_name = #{updateName},</if>
|
|
|
+ <if test="num != null and num != ''">num = #{num},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|