| | |
| | | <if test="updateUid != null ">update_uid,</if> |
| | | <if test="drillEvaluationId != null ">drill_evaluation_id,</if> |
| | | <if test="userUid != null ">user_uid,</if> |
| | | <if test="userName != null and userName != ''">user_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null ">#{id},</if> |
| | |
| | | <if test="updateUid != null ">#{updateUid},</if> |
| | | <if test="drillEvaluationId != null ">#{drillEvaluationId},</if> |
| | | <if test="userUid != null ">#{userUid},</if> |
| | | <if test="userName != null and userName != ''">#{userName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <id column="id" property="id" jdbcType="BIGINT"/> |
| | | <result column="drill_evaluation_id" property="drillEvaluationId" /> |
| | | <result column="user_uid" property="userUid" /> |
| | | <result column="user_name" property="userName" /> |
| | | </resultMap> |
| | | |
| | | <select id="selectEmergencyDrillEvaluationUserByDrillEvaluationId" resultMap="emergencyDrillEvaluationUserInfoDOResult"> |
| | | select id,`drill_evaluation_id`,`user_uid` from emergency_drill_evaluation_user where del_flag = 0 and drill_evaluation_id = #{drillEvaluationId} |
| | | select id,`drill_evaluation_id`,`user_uid`,user_name from emergency_drill_evaluation_user where del_flag = 0 and drill_evaluation_id = #{drillEvaluationId} |
| | | </select> |
| | | |
| | | <update id = "deleteEmergencyDrillEvaluationUserByIds" > |