| | |
| | | </resultMap> |
| | | |
| | | <select id="selectEmergencyPlanList" resultMap="emergencyPlanInfoPageDOResult"> |
| | | select id,`name`,`status`,`type`,`level`,release_date,author_name from emergency_plan |
| | | where del_flag = 0 and abolish_status = #{query.abolishStatus} |
| | | <if test="query.name != null and query.name != ''">and `name` like concat('%', #{query.name}, '%')</if> |
| | | <if test="query.type != null and query.type != ''">and `type` = #{query.type}</if> |
| | | SELECT |
| | | a.id, |
| | | a.`name`, |
| | | a.`status`, |
| | | a.`type`, |
| | | a.`level`, |
| | | a.release_date, |
| | | a.author_name, |
| | | b.approve_status AS approveStatus, |
| | | b.approve_person_id AS approvePersonId |
| | | FROM |
| | | emergency_plan a |
| | | LEFT JOIN emergency_work_approve b ON a.id = b.relate_id |
| | | AND b.relate_type = 1 |
| | | WHERE |
| | | a.del_flag = 0 |
| | | AND a.abolish_status = #{query.abolishStatus} |
| | | <if test="query.name != null and query.name != ''">and a.name like concat('%', #{query.name}, '%')</if> |
| | | <if test="query.type != null and query.type != ''">and a.type = #{query.type}</if> |
| | | </select> |
| | | |
| | | <insert id="addEmergencyPlan" parameterType="com.gkhy.safePlatform.emergency.entity.EmergencyPlanInfo" |