|
@@ -73,7 +73,7 @@
|
|
|
from centerdata_t_key_projects a
|
|
|
left join ${database_system}.sys_dept d ON d.dept_id = a.dept_id
|
|
|
LEFT JOIN ${database_system}.sys_dept dd on dd.dept_id = a.park
|
|
|
- <where>
|
|
|
+ where del = 0
|
|
|
<if test="projectName != null and projectName != ''">and project_name like concat('%', #{projectName},
|
|
|
'%')
|
|
|
</if>
|
|
@@ -107,7 +107,6 @@
|
|
|
<if test="year != null">and DATE_FORMAT(start_time,'%Y') = #{year}</if>
|
|
|
<if test="month != null">and DATE_FORMAT(start_time,'%m') = #{month}</if>
|
|
|
${params.dataScope}
|
|
|
- </where>
|
|
|
order by a.order_num,a.create_time desc
|
|
|
</select>
|
|
|
|
|
@@ -356,4 +355,11 @@
|
|
|
</trim>
|
|
|
where project_id = #{projectId}
|
|
|
</update>
|
|
|
+
|
|
|
+ <update id="updateDel" parameterType="string">
|
|
|
+ update centerdata_t_key_projects SET del = 1 where project_id in
|
|
|
+ <foreach item="projectIds" collection="array" open="(" separator="," close=")">
|
|
|
+ #{projectIds}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
</mapper>
|