From 8b097af195e5b0056eaad06f199cd1d291821912 Mon Sep 17 00:00:00 2001 From: 佟明键 <tongmingjian@sinosoft.com.cn> Date: 星期四, 24 二月 2022 12:39:28 +0800 Subject: [PATCH] update 优化随机数生成方式 避免容易生成两个相同随机数的问题 --- ruoyi-demo/src/main/java/com/ruoyi/demo/domain/bo/TestDemoBo.java | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/bo/TestDemoBo.java b/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/bo/TestDemoBo.java index 63d2836..5c41204 100644 --- a/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/bo/TestDemoBo.java +++ b/ruoyi-demo/src/main/java/com/ruoyi/demo/domain/bo/TestDemoBo.java @@ -26,43 +26,43 @@ /** * 涓婚敭 */ - @ApiModelProperty("涓婚敭") - @NotNull(message = "涓婚敭涓嶈兘涓虹┖", groups = { EditGroup.class }) + @ApiModelProperty("涓婚敭") + @NotNull(message = "涓婚敭涓嶈兘涓虹┖", groups = {EditGroup.class}) private Long id; /** * 閮ㄩ棬id */ - @ApiModelProperty("閮ㄩ棬id") - @NotNull(message = "閮ㄩ棬id涓嶈兘涓虹┖", groups = { AddGroup.class, EditGroup.class }) + @ApiModelProperty("閮ㄩ棬id") + @NotNull(message = "閮ㄩ棬id涓嶈兘涓虹┖", groups = {AddGroup.class, EditGroup.class}) private Long deptId; /** * 鐢ㄦ埛id */ - @ApiModelProperty("鐢ㄦ埛id") - @NotNull(message = "鐢ㄦ埛id涓嶈兘涓虹┖", groups = { AddGroup.class, EditGroup.class }) + @ApiModelProperty("鐢ㄦ埛id") + @NotNull(message = "鐢ㄦ埛id涓嶈兘涓虹┖", groups = {AddGroup.class, EditGroup.class}) private Long userId; /** * 鎺掑簭鍙� */ - @ApiModelProperty("鎺掑簭鍙�") - @NotNull(message = "鎺掑簭鍙蜂笉鑳戒负绌�", groups = { AddGroup.class, EditGroup.class }) + @ApiModelProperty("鎺掑簭鍙�") + @NotNull(message = "鎺掑簭鍙蜂笉鑳戒负绌�", groups = {AddGroup.class, EditGroup.class}) private Long orderNum; /** * key閿� */ - @ApiModelProperty("key閿�") - @NotBlank(message = "key閿笉鑳戒负绌�", groups = { AddGroup.class, EditGroup.class }) + @ApiModelProperty("key閿�") + @NotBlank(message = "key閿笉鑳戒负绌�", groups = {AddGroup.class, EditGroup.class}) private String testKey; /** * 鍊� */ - @ApiModelProperty("鍊�") - @NotBlank(message = "鍊间笉鑳戒负绌�", groups = { AddGroup.class, EditGroup.class }) + @ApiModelProperty("鍊�") + @NotBlank(message = "鍊间笉鑳戒负绌�", groups = {AddGroup.class, EditGroup.class}) private String value; } -- Gitblit v1.9.3