随笔分类 - MybatisPlus
摘要:@ApiOperation(value = "新增或者修改设备") @PostMapping("saveOrUpdateDevice") public void saveOrUpdateDevice (@RequestBody DeviceInfo deviceInfo){ deviceInfoSe
阅读全文
摘要:##一、联表查询 当从表中存在类似del_flag字段时,使用and加判断在连表后 LEFT JOIN any_fun_ticket_pocket_seat s on de.id = s.buy_ticket_id and s.del_flag = 0 ##二、条件判断 当表中存在多条件下的分存内容
阅读全文
摘要:##连表查询 所需结果,用户下的角色信息 <select id="ticketNameList" resultType="com.lekai.anybussfun.dto.RefundRespDto"> select de.id, GROUP_CONCAT( CONCAT( m.row_num, '
阅读全文
摘要:
阅读全文
摘要:##官方文档 https://mp.baomidou.com/guide/generator.html ##依赖说明 <!-- 添加 模板引擎 依赖,MyBatis-Plus 支持 Velocity(默认) --> <dependency> <groupId>org.apache.velocity<
阅读全文
摘要:##官方文档 https://mp.baomidou.com/guide/wrapper.html#abstractwrapper ##测试实现前提 完成基础使用配置 ##本文效果 1、了解Wrapper 2、自定义构造SQL 3、实现生产中设计的较为复杂的SQL ##存在条件判断时 if(Stri
阅读全文
摘要:##官方说明文档 https://mp.baomidou.com/guide/ ##简介 MyBatis-Plus (opens new window)(简称 MP)是一个 MyBatis (opens new window) 的增强工具,在 MyBatis 的基础上只做增强不做改变,为简化开发、提
阅读全文