mybatis 动态SQ
qq_36472439
奋发图强吧
展开
-
Mybatis 动态SQL
动态SQL(1)NoteDao接口中定义方法public int updateNoteByMap(Mapmap);(2)Mapper.xml文件配置update id="updateNoteByMap" parameterType="Map">update cn_notesettrim suffixOverrides=",">if test="title!=原创 2017-09-13 11:26:58 · 237 阅读 · 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 · 198 阅读 · 0 评论