Bläddra i källkod

Merge remote-tracking branch 'origin/4.0' into 4.0

4.0
郑根木 2 år sedan
förälder
incheckning
d088c607fa
2 ändrade filer med 84 tillägg och 0 borttagningar
  1. +55
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userSso/UserSso.java
  2. +29
    -0
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userSso/UserSsoCache.java

+ 55
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userSso/UserSso.java Visa fil

@@ -0,0 +1,55 @@
package cc.smtweb.system.bpm.web.sys.user.userSso;

import cc.smtweb.framework.core.annotation.SwTable;
import cc.smtweb.framework.core.common.SwMap;
import cc.smtweb.framework.core.db.impl.DefaultEntity;

/**
* Created by 1 at 2022-09-05 19:53:40
* 实体【[用户单点关系](SYS_USER_SSO)】的Entity类
*/
@SwTable("SYS_USER_SSO")
public class UserSso extends DefaultEntity {
public static final String ENTITY_NAME = "SYS_USER_SSO";

public UserSso() {
super(ENTITY_NAME);
}

/** 主键 */
public long getId() {
return getLong("sso_id");
}

/** 主键 */
public void setId(long sso_id) {
put("sso_id", sso_id);
}
/** 用户ID */
public long getSurId() {
return getLong("sso_sur_id");
}

/** 用户ID */
public void setSurId(long sso_sur_id) {
put("sso_sur_id", sso_sur_id);
}
/** 单点账号 */
public String getCode() {
return getStr("sso_code");
}

/** 单点账号 */
public void setCode(String sso_code) {
put("sso_code", sso_code);
}
/** 类型 */
public String getType() {
return getStr("sso_type");
}

/** 类型 */
public void setType(String sso_type) {
put("sso_type", sso_type);
}
}

+ 29
- 0
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/sys/user/userSso/UserSsoCache.java Visa fil

@@ -0,0 +1,29 @@
package cc.smtweb.system.bpm.web.sys.user.userSso;

import cc.smtweb.framework.core.annotation.SwCache;
import cc.smtweb.framework.core.cache.AbstractEntityCache;
import cc.smtweb.framework.core.cache.CacheManager;

/**
* Created by 1 at 2022-09-05 19:53:40
* 实体【[用户单点关系](SYS_USER_SSO)】的缓存类
*/
@SwCache(ident = "SYS_USER_SSO", title = "用户单点关系")
public class UserSsoCache extends AbstractEntityCache<UserSso> {
//缓存key:按单点账号缓存
public final static String mk_c = "c";

public static UserSsoCache getInstance() {
return CacheManager.getIntance().getCache(UserSsoCache.class);
}

public UserSsoCache() {
//缓存key:按单点账号缓存
regMap(mk_c, "sso_code");
}

//缓存key:按单点账号缓存
public final UserSso getByC(String key) {
return getByKey(mk_c, key);
}
}

Laddar…
Avbryt
Spara