select id, xxdm, school_name, name_short, type, parent_id, province, provincename, regionid, regionname, area, areaname, address, mastername, tel, em_man, em_tel, status, scale, create_time, create_user, approval_user, approval_time, remark, location, is_demonstr, businesslicenseimg, open_book, fee_status, open_deadline, dqxn, dqxq, is_del from by_school insert into by_school xxdm, school_name, name_short, type, parent_id, province, provincename, regionid, regionname, area, areaname, address, mastername, tel, em_man, em_tel, status, scale, create_time, create_user, approval_user, approval_time, remark, location, is_demonstr, businesslicenseimg, open_book, fee_status, open_deadline, dqxn, dqxq, #{xxdm}, #{schoolName}, #{nameShort}, #{type}, #{parentId}, #{province}, #{provincename}, #{regionid}, #{regionname}, #{area}, #{areaname}, #{address}, #{mastername}, #{tel}, #{emMan}, #{emTel}, #{status}, #{scale}, #{createTime}, #{createUser}, #{approvalUser}, #{approvalTime}, #{remark}, #{location}, #{isDemonstr}, #{businesslicenseimg}, #{openBook}, #{feeStatus}, #{openDeadline}, #{dqxn}, #{dqxq}, update by_school xxdm = #{xxdm}, school_name = #{schoolName}, name_short = #{nameShort}, type = #{type}, parent_id = #{parentId}, province = #{province}, provincename = #{provincename}, regionid = #{regionid}, regionname = #{regionname}, area = #{area}, areaname = #{areaname}, address = #{address}, mastername = #{mastername}, tel = #{tel}, em_man = #{emMan}, em_tel = #{emTel}, status = #{status}, scale = #{scale}, create_time = #{createTime}, create_user = #{createUser}, approval_user = #{approvalUser}, approval_time = #{approvalTime}, remark = #{remark}, location = #{location}, is_demonstr = #{isDemonstr}, businesslicenseimg = #{businesslicenseimg}, open_book = #{openBook}, fee_status = #{feeStatus}, open_deadline = #{openDeadline}, dqxn = #{dqxn}, dqxq = #{dqxq}, where id = #{id} delete from by_school where id = #{id} update by_school set is_del = '2' where id in #{id}