|
@@ -22,6 +22,7 @@
|
|
|
<result property="cameraSystem" column="camera_system"/>
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
<result property="deptName" column="dept_name"/>
|
|
|
+ <result property="orderNum" column="order_num"/>
|
|
|
<result property="introduction" column="introduction"/>
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
<result property="createName" column="create_name"/>
|
|
@@ -48,8 +49,9 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCenterdataTKeyProjectsVo">
|
|
|
- select id, project_name, project_target, project_type, project_level, construction_unit, principal, phone, construction_site, construction_area, longitude, latitude, camera_system, dept_id, dept_name, introduction,photo_id,create_time,create_by,create_name,update_time,update_by,update_name,
|
|
|
- territoriality,park,park_longitude,park_latitude,environment,legal_unit,start_time,end_time,nature,total_invest,year_invest,industry_type,secretary,secretary_duties,secretary_phone from centerdata_t_key_projects
|
|
|
+ select id, project_name, project_target, project_type, project_level, construction_unit, principal, phone, construction_site, construction_area, longitude, latitude, camera_system, dept_id, dept_name, order_num, introduction,
|
|
|
+ photo_id, create_time, create_by, create_name, update_time, update_by, update_name, territoriality, park, park_longitude, park_latitude, environment, legal_unit, start_time, end_time, nature, total_invest, year_invest, industry_type,
|
|
|
+ secretary, secretary_duties, secretary_phone from centerdata_t_key_projects
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCenterdataTKeyProjectsList" parameterType="CenterdataTKeyProjects"
|
|
@@ -84,7 +86,7 @@
|
|
|
<if test="park != null and park != ''">and park = #{park}</if>
|
|
|
${params.dataScope}
|
|
|
</where>
|
|
|
- order by a.create_time desc
|
|
|
+ order by a.order_num,a.create_time desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCenterdataTKeyProjectsById" parameterType="String" resultMap="CenterdataTKeyProjectsResult">
|
|
@@ -110,6 +112,7 @@
|
|
|
<if test="cameraSystem != null">camera_system,</if>
|
|
|
<if test="deptId != null and deptId != ''">dept_id,</if>
|
|
|
<if test="deptName != null and deptName != ''">dept_name,</if>
|
|
|
+ <if test="orderNum != null">order_num,</if>
|
|
|
<if test="introduction != null">introduction,</if>
|
|
|
<if test="photoId != null">photo_id,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -150,6 +153,7 @@
|
|
|
<if test="cameraSystem != null">#{cameraSystem},</if>
|
|
|
<if test="deptId != null and deptId != ''">#{deptId},</if>
|
|
|
<if test="deptName != null and deptName != ''">#{deptName},</if>
|
|
|
+ <if test="orderNum != null">#{orderNum},</if>
|
|
|
<if test="introduction != null">#{introduction},</if>
|
|
|
<if test="photoId != null">#{photoId},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -194,6 +198,7 @@
|
|
|
<if test="deptId != null and deptId != ''">dept_id = #{deptId},</if>
|
|
|
<if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>
|
|
|
<if test="photoId != null">photo_id = #{photoId},</if>
|
|
|
+ <if test="orderNum != null">order_num = #{orderNum},</if>
|
|
|
<if test="introduction != null">introduction = #{introduction},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createName != null">create_name = #{createName},</if>
|