ludc
2023-03-24 0baeb5d2b147bf29add1e5373652ae70dd749b69
Source/BladeX/blade-service-api/blade-system-api/src/main/java/org/springblade/system/entity/UserPwdstrategy.java
@@ -1,6 +1,7 @@
package org.springblade.system.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@@ -26,15 +27,15 @@
@ApiModel(value = "UserPwdStrtategy", description = "UserPwdStrtategy")
public class UserPwdstrategy implements Serializable {
   private static final long serialVersionUID = -556926788101426521L;
   private static final long serialVersionUid = -556926788101426521L;
   /**
    * 主键
    */
   @JsonSerialize(using = ToStringSerializer.class)
   @ApiModelProperty(value = "主键")
   @TableId(value = "id", type = IdType.ASSIGN_ID)
   private Long Id;
   @TableId(value = "ID", type = IdType.ASSIGN_ID)
   private Long id;
   /**
    * 用户id
@@ -46,6 +47,7 @@
    * 密码策略id
    */
   @ApiModelProperty(value = "密码策略id")
   @TableField(value = "PWDSTRATEGY_ID")
   private Long pwdstrategyId;
   public UserPwdstrategy(Long userId, Long pwdStrategyId) {
@@ -62,11 +64,14 @@
         return false;
      }
      UserPwdstrategy that = (UserPwdstrategy) o;
      return Objects.equals(Id, that.Id) && Objects.equals(userId, that.userId) && Objects.equals(pwdstrategyId, that.pwdstrategyId);
      return Objects.equals(id, that.id) && Objects.equals(userId, that.userId) && Objects.equals(pwdstrategyId, that.pwdstrategyId);
   }
   @Override
   public int hashCode() {
      return Objects.hash(Id, userId, pwdstrategyId);
      return Objects.hash(id, userId, pwdstrategyId);
   }
}