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,a.import_excel_date,a.import_excel_user 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, import_flag, del_flag, import_excel_date, import_excel_user, #{balance}, #{integral}, #{phoneNumber}, #{cardType}, #{stationId}, #{memberGrade}, #{labelId}, #{couponIssueId}, #{importFlag}, #{delFlag}, #{importExcelDate}, #{importExcelUser}, 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}, import_flag = #{importFlag}, del_flag = #{delFlag}, where excel_id = #{excelId} update card_excel_import member_grade = null, where excel_id = #{excelId} update card_excel_import label_id = null, where excel_id = #{excelId} update card_excel_import coupon_issue_id = null, where excel_id = #{excelId} delete from card_excel_import where excel_id = #{excelId} delete from card_excel_import where excel_id in #{excelId}