05 2024 档案

摘要:public static double CreateDouble(int min, int max) { double a = Math.random() * (max - min) + min; DecimalFormat df = new DecimalFormat("#.00"); doub 阅读全文
posted @ 2024-05-27 13:38 Lee597 阅读(42) 评论(0) 推荐(0) 编辑
摘要:/** * 查询对象 */@GetMapping("/getImage")@ApiOperationSupport(order = 1)@ApiOperation(value = "上传图片", notes = "保存本地")public R getImg(String jobId, HttpSer 阅读全文
posted @ 2024-05-22 09:56 Lee597 阅读(31) 评论(0) 推荐(0) 编辑
摘要:/** * 获取上传图片 */@PostMapping("/getImage")@ApiOperationSupport(order = 1)@ApiOperation(value = "获取图片", notes = "保存本地")public R Stringuploadtaskpic(Multi 阅读全文
posted @ 2024-05-22 09:53 Lee597 阅读(69) 评论(0) 推荐(0) 编辑
摘要:SELECT a.id , substring_index(substring_index('切割字段', ',', b.help_topic_id + 1), ',', - 1) AS '新名称'FROM 查询原始表 a INNER JOIN mysql.help_topic b ON b.hel 阅读全文
posted @ 2024-05-14 10:42 Lee597 阅读(184) 评论(0) 推荐(0) 编辑
摘要:/** * 借助Map来获取listA、listB的不同元素集合 * 注意: 集合A尽量不要使用空集合 * @param listA 集合A * @param listB 集合B * @return list<String> 不同元素集合 */public static List<String> g 阅读全文
posted @ 2024-05-13 10:43 Lee597 阅读(254) 评论(0) 推荐(0) 编辑
摘要:public static int randomNumber(int min, int max) { int i = (int) ((Math.random() * min) * (Math.random() * max)); while (i < 4) i = (int) (Math.random 阅读全文
posted @ 2024-05-09 10:29 Lee597 阅读(3) 评论(0) 推荐(0) 编辑
摘要:public static Boolean checkPassword(String password) { //数字 final String REG_NUMBER = ".*\\d+.*"; //大写字母 final String REG_UPPERCASE = ".*[A-Z]+.*"; // 阅读全文
posted @ 2024-05-08 16:27 Lee597 阅读(106) 评论(0) 推荐(0) 编辑
摘要://计算两个时间相差的秒数public static long getTime(String startTime, String endTime) throws ParseException { SimpleDateFormat df = new SimpleDateFormat("yyyy-MM- 阅读全文
posted @ 2024-05-08 16:26 Lee597 阅读(170) 评论(0) 推荐(0) 编辑

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