insert into inspection_task_detail( send_flag,point_end_time,latitude,inspection_time,sort_number,description,act_user_name,task_detail_id,inspection_id, inspection_state,point_start_time,inspection_name,state,community_id,act_user_id,task_id,longitude ) values ( #{sendFlag},#{pointEndTime},#{latitude},#{inspectionTime},#{sortNumber},#{description},#{actUserName},#{taskDetailId}, #{inspectionId},#{inspectionState},#{pointStartTime},#{inspectionName},#{state},#{communityId},#{actUserId},#{taskId},#{longitude} ) update inspection_task_detail t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.send_flag= #{sendFlag} , t.point_end_time= #{pointEndTime} , t.latitude= #{latitude} , t.inspection_time= #{inspectionTime} , t.sort_number= #{sortNumber} , t.description= #{description} , t.act_user_name= #{actUserName} , t.inspection_id= #{inspectionId} , t.inspection_state= #{inspectionState} , t.point_start_time= #{pointStartTime} , t.inspection_name= #{inspectionName} , t.state= #{state} , t.act_user_id= #{actUserId} , t.task_id= #{taskId} , t.longitude= #{longitude} where 1=1 and t.task_detail_id= #{taskDetailId} and t.community_id= #{communityId}