For those who need more related information, please see the profile on the homepage!
Select element label input method
Basic data type
String type
Map type
Java bean type
Case actual operation
Input parameter classification
Basic type, string, java bean, map, array (reflected when deleting operation), List (reflecting when adding), etc. Each case is defined as follows
Basic data type
Statement definition
CustomerDao method definition
Customer queryCustomerById(int id);
String type
Statement definition
Dao method definition
Customer queryCustomerById(int id);
Map type
Statement definition
Dao method definition
Customer queryCustomerByName(Map<String,Object> userName);
Java bean type
Statement definition
Dao method definition
Customer queryCustomerByParams(Customer customer);
Extended
result type classification
Basic data type, string, JavaBean, Map, List, etc.
Basic data type
Statement definition
Dao method definition and corresponding implementation
int queryCustomerAccount();
Statement definition of string type
Dao method definition
String queryCustomerNameById(int id);
Java Bean
Statement definition
select id,user_name as userName,user_pwd as userPwd from user where id=#{id}
List
Statement definition
id,user_name,user_pwd select from user where user_name like concat("%",#{userName},"%")
Map type data
Statement definition