| | |
| | | <result column="type" property="type"/> |
| | | <result column="level" property="level"/> |
| | | <result column="release_date" property="releaseDate"/> |
| | | <result column="author_name" property="authorName"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectEmergencyPlanList" resultMap="emergencyPlanInfoPageDOResult"> |
| | | select id,`name`,`status`,`type`,`level`,release_date 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 |
| | | FROM |
| | | emergency_plan a |
| | | 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" |