SELECT a.excel_id,a.station_id,a.phone_number, a.member_grade,a.integral,a.card_type,a.balance,b.dept_name, a.label_id,a.coupon_issue_id from card_excel_import a left join sys_dept b on a.station_id=b.dept_id insert into card_excel_import balance, integral, phone_number, card_type, station_id, member_grade, label_id, coupon_issue_id, #{balance}, #{integral}, #{phoneNumber}, #{cardType}, #{stationId}, #{memberGrade}, #{labelId}, #{couponIssueId}, update card_excel_import balance = #{balance}, integral = #{integral}, phone_number = #{phoneNumber}, card_type = #{cardType}, station_id = #{stationId}, member_grade = #{memberGrade}, label_id = #{labelId}, coupon_issue_id = #{couponIssueId}, where excel_id = #{excelId} delete from card_excel_import where excel_id = #{excelId} delete from card_excel_import where excel_id in #{excelId}