[task] Add exception deal logic and add a getSysDate function