摘要:
例如我的bean中有以下4个字段 private int Ret; private String Msg; private Object Data; private String Sig; 引入依赖 <!-- https://mvnrepository.com/artifact/com.faster 阅读全文
posted @ 2021-01-19 17:59
(Play)
阅读(843)
评论(0)
推荐(0)
摘要:
在mybatis中拼接查询语句,偶尔会出现where后面可能一个字段的值都没有,就导致所有条件无效,导致where没有存在的意义;但也有可能这些条件会存在。 占位符 那解决这个问题的方法,最常见的就是:在where后面添加1=1 <select id="findByConnectorPrice" p 阅读全文
posted @ 2021-01-19 17:39
(Play)
阅读(1121)
评论(0)
推荐(0)
浙公网安备 33010602011771号