02 2022 档案

摘要:BigDecimal的加减乘除 加法:add 减法:subtract 乘法:multiply 除法:divide 可参考下面代码: BigDecimal bignum1 = new BigDecimal("10"); BigDecimal bignum2 = new BigDecimal("5"); 阅读全文
posted @ 2022-02-21 14:39 chelsey3tsf 阅读(464) 评论(0) 推荐(0) 编辑
摘要:SpringBoot + mybatis 多字段更新(不为空判断)的解决办法 需求:在多个字段需要更新时,需要判断字段是否为空,为空的字段无需更新 解决办法: 在Mapper文件中使用trim 代替 if,如下 <update id="updateUserById" parameterType="c 阅读全文
posted @ 2022-02-10 14:48 chelsey3tsf 阅读(901) 评论(0) 推荐(0) 编辑
摘要:进行时间段的查询时,在mapper文件中直接使用">","<"等关系运算符是无法解析的 <if test="executeStartDate != null and executeStartDate != ''"> and execute_time >= to_date(#{executeStart 阅读全文
posted @ 2022-02-10 14:43 chelsey3tsf 阅读(380) 评论(0) 推荐(0) 编辑
摘要:List<Book> list = Lists.newArrayList(); list.add(new Book("1", "sql基础大全", 200)); list.add(new Book("2", "Java基础", 500)); System.out.println(list); Lis 阅读全文
posted @ 2022-02-10 14:36 chelsey3tsf 阅读(2318) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示