随笔分类 -  java

摘要:int a=9; int b=7;float c = (float) a / (float) b; //把整型数据 转换为 浮点型 数据System.out.println(c);System.out.println( String.format("%.2f", c));//保留小数点后2位 方法有 阅读全文
posted @ 2023-06-30 17:44 苹果芒 阅读(389) 评论(0) 推荐(0)
摘要:SELECT * FROM result co where <if test="projectId != null"> co.projectId=#{projectId} and </if> <if test="startTime!=null and endTime!=null"> modifyTi 阅读全文
posted @ 2023-06-30 17:35 苹果芒 阅读(120) 评论(0) 推荐(0)
摘要:1.正常情况下,你可能会这样写: @PostMapping("/delete") @ApiOperation("Delete list data") @ResponseStatus(HttpStatus.OK) @ResponseBody public DBUpdateStatus deleteTe 阅读全文
posted @ 2023-06-21 11:04 苹果芒 阅读(344) 评论(0) 推荐(0)