摘要:
1、resultMap处理字段和属性的映射关系 若字段名和实体类中的属性名不一致,则可以通过resultMap设置自定义映射 <!-- resultMap:设置自定义映射 属性: id:表示自定义映射的唯一标识 type:查询的数据要映射的实体类的类型 子标签: id:设置主键的映射关系 resul 阅读全文
posted @ 2022-09-25 04:50
咖喱给给啊
阅读(55)
评论(0)
推荐(0)
摘要:
1、模糊查询 /** * 测试模糊查询 * @param mohu * @return */ List<User> testMohu(@Param("mohu") String mohu); <!--List<User> testMohu(@Param("mohu") String mohu);-- 阅读全文
posted @ 2022-09-25 02:22
咖喱给给啊
阅读(25)
评论(0)
推荐(0)
摘要:
1、查询一个实体类对象 /** * 根据用户id查询用户信息 * @param id * @return */ User getUserById(@Param("id") int id); <!--User getUserById(@Param("id") int id);--> <select i 阅读全文
posted @ 2022-09-25 00:57
咖喱给给啊
阅读(1532)
评论(0)
推荐(0)
浙公网安备 33010602011771号