![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis 动态SQ
qq_36472439
奋发图强吧
展开
-
Mybatis 动态SQL
动态SQL (1)NoteDao接口中定义方法 public int updateNoteByMap(Map map); (2) Mapper.xml文件配置 update id="updateNoteByMap" parameterType="Map"> update cn_note set trim suffixOverrides=","> if test="title!=原创 2017-09-13 11:26:58 · 213 阅读 · 0 评论 -
mybatis多表查询
比如有两个表A和B,A关联B (1)数据库中A表中存有B表的id (2)在后端Java代码程序中,在A类的字段中加入B类属性,如: public class A implements Serializable { private Integer id; private String name; private B b; /** *实现get和se...原创 2018-08-30 11:14:11 · 171 阅读 · 0 评论