| | |
| | | <if test="updateUid != null ">update_uid,</if> |
| | | <if test="drillPlanId != null ">drill_plan_id,</if> |
| | | <if test="userUid != null ">user_uid,</if> |
| | | <if test="userName != null and userName != ''">user_name,</if> |
| | | <if test="type != null ">type</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="updateUid != null ">#{updateUid},</if> |
| | | <if test="drillPlanId != null ">#{drillPlanId},</if> |
| | | <if test="userUid != null ">#{userUid},</if> |
| | | <if test="userName != null and userName != ''">#{userName},</if> |
| | | <if test="type != null ">#{type}</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="drill_plan_id" property="drillPlanId" /> |
| | | <result column="user_uid" property="userUid" /> |
| | | <result column="user_name" property="userName" /> |
| | | <result column="type" property="type" /> |
| | | </resultMap> |
| | | |
| | | <select id="selectEmergencyDrillPlanUserByDrillPlanId" resultMap="emergencyDrillPlanUserInfoDOResult"> |
| | | select id,`drill_plan_id`,`user_uid`,`type` from emergency_drill_plan_user where del_flag = 0 and drill_plan_id = #{drillPlanId} |
| | | select id,`drill_plan_id`,`user_uid`,user_name,`type` from emergency_drill_plan_user where del_flag = 0 and drill_plan_id = #{drillPlanId} |
| | | </select> |
| | | |
| | | <update id = "deleteEmergencyDrillPlanUserByIds" > |