The front-end transmits time, and the back-end processing is careful

Under normal circumstances, the time fields of the database are all datetime types, and the back-end entity class corresponds to the Date type, and the data we query from the front-end according to time conditions is json, which is a string type. At this time, we had better Write a vo class to handle it. The time type in the vo class can be String, and then pass MybatisPlus(queryWrapper.eq("start", the time field in vo)). Find out the data, and finally encapsulate the data into the back-end entity class.
1. Backend entity class EduTeacher:
insert image description here
2. vo entity class TeacherQuery
insert image description here
3.
insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/weixin_46266624/article/details/130526879