insert into business_inspection_point (inspection_id,operate,remark,inspection_name,community_id,b_id,point_obj_type,point_obj_id,point_obj_name) values (#{inspectionId},#{operate},#{remark},#{inspectionName},#{communityId},#{bId},#{pointObjType},#{pointObjId},#{pointObjName}) insert into inspection_point( inspection_id,remark,status_cd,inspection_name,community_id,b_id, point_obj_type,point_obj_id,point_obj_name ) select t.inspection_id,t.remark,'0',t.inspection_name,t.community_id,t.b_id, t.point_obj_type,t.point_obj_id,t.point_obj_name from business_inspection_point t where 1=1 and t.inspection_id= #{inspectionId} and t.operate= 'ADD' and t.remark= #{remark} and t.inspection_name= #{inspectionName} and t.community_id= #{communityId} and t.b_id= #{bId} update inspection_point t set t.status_cd = #{statusCd} ,t.b_id = #{newBId} , t.point_obj_type= #{pointObjType} , t.point_obj_id= #{pointObjId} , t.point_obj_name= #{pointObjName} , t.remark= #{remark} , t.inspection_name= #{inspectionName} , t.community_id= #{communityId} where 1=1 and t.inspection_id= #{inspectionId} and t.b_id= #{bId}