![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
1819834602
有问题可以关注我,或者加我QQ1819834602,在线解答问题
展开
-
SpringBoot+Mybatis批量插入(注解版)
人生苦短,直接上代码:实体类:@Datapublic class Vip implements Serializable { @ApiModelProperty(value="会员等级id") @Id private Integer id; @ApiModelProperty(value="会员等级临界值(人民币)") @NotNull(messag...原创 2019-11-27 15:08:05 · 3301 阅读 · 0 评论 -
SpringBoot多条件查询
多条件查询首先,在sqlProvide写sql语句和条件判断(mybatisGenerator自动生成文件) public String selectDeviceBrandBo(DeviceByCodeBo deviceByCodeBo){ /* * 1. 给出一个sql语句前半部 */ Str...原创 2019-10-22 09:14:24 · 3436 阅读 · 0 评论 -
一个对象进行添加之后能调用它的id吗?
答案是不加东西当然不能的,返回值直接返回一个null @Autowired private PriceRuleMapper priceRuleMapper; @Test public void contextLoads() { PriceRule priceRule=new PriceRule(); priceRule.setName("abc"); priceRuleMap...原创 2019-09-25 13:54:35 · 158 阅读 · 0 评论