Chinese maritime agency records show that safety violations were found two years ago on the cruise ship which capsized on Monday.