| | |
| | | <if test="userId != null">user_id,</if> |
| | | <if test="recordTime != null">record_time,</if> |
| | | <if test="appPatrolpointsId != null">app_patrolpoints_id,</if> |
| | | <if test="planId != null">plan_id,</if> |
| | | <if test="planName != null">plan_name,</if> |
| | | <if test="recordImg != null">record_img,</if> |
| | | <if test="userName != null">user_name,</if> |
| | | <if test="appPatrolpointsName != null">app_patrolpoints_name,</if> |
| | | <if test="pointsNum != null">points_num,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="userId != null">#{userId},</if> |
| | | <if test="recordTime != null">#{recordTime},</if> |
| | | <if test="appPatrolpointsId != null">#{appPatrolpointsId},</if> |
| | | </trim> |
| | | <if test="planId != null">#{planId},</if> |
| | | <if test="planName != null">#{planName},</if> |
| | | <if test="recordImg != null">#{recordImg},</if> |
| | | <if test="userName != null">#{userName},</if> |
| | | <if test="appPatrolpointsName != null">#{appPatrolpointsName},</if> |
| | | <if test="pointsNum != null">#{pointsNum},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateArdAppPatrolpointRecord" parameterType="ArdAppPatrolpointRecord"> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <!-- <select id="maxNum">--> |
| | | <!-- select user_id,user_name,max(points_num) pointsNum from ard_app_patrolpoint_record GROUP BY user_id,user_name--> |
| | | <!-- </select>--> |
| | | |
| | | |
| | | </mapper> |