| | |
| | | select id ,`name`,`status`,`type`,`level`,release_date ,author_uid ,author_dept_id ,associated_danger from emergency_plan |
| | | where del_flag = 0 and id = #{id} |
| | | </select> |
| | | |
| | | <update id="updateEmergencyPlan" parameterType="com.gkhy.safePlatform.emergency.entity.EmergencyPlanInfo"> |
| | | update emergency_team |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="gmtCreate != null ">gmt_create = #{gmtCreate},</if> |
| | | <if test="gmtModitify != null ">gmt_moditify = #{gmtModitify},</if> |
| | | <if test="createUid != null ">create_uid = #{createUid},</if> |
| | | <if test="updateUid != null ">update_uid = #{updateUid},</if> |
| | | <if test="status != null ">status = #{status},</if> |
| | | <if test="releaseDate != null ">release_date = #{releaseDate},</if> |
| | | <if test="authorUid != null ">author_uid = #{authorUid},</if> |
| | | <if test="authorDeptId != null ">author_dept_id = #{authorDeptId},</if> |
| | | <if test="associatedDanger != null ">associated_danger = #{associatedDanger},</if> |
| | | <if test="type != null and type != ''">type = #{type},</if> |
| | | <if test="level != null and level != ''">level = #{level},</if> |
| | | <if test="name != null and name != ''">name = #{name},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | </mapper> |