format code

This commit is contained in:
thinkgem
2024-03-22 14:40:40 +08:00
parent 45b8595122
commit 4df4f822bc
2 changed files with 25 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ import com.jeesite.common.mybatis.annotation.Table;
@Column(name="role_code", attrName="roleCode", label="角色编码", isPK=true), @Column(name="role_code", attrName="roleCode", label="角色编码", isPK=true),
@Column(name="post_code", attrName="postCode", label="岗位编码", isPK=true), @Column(name="post_code", attrName="postCode", label="岗位编码", isPK=true),
}, },
joinTable = { joinTable={
@JoinTable(type=JoinTable.Type.LEFT_JOIN, entity=Role.class, alias="r", lazy = true, @JoinTable(type=JoinTable.Type.LEFT_JOIN, entity=Role.class, alias="r", lazy = true,
on="a.role_code = r.role_code", attrName="role", on="a.role_code = r.role_code", attrName="role",
columns={ columns={
@@ -33,7 +33,7 @@ public class PostRole extends DataEntity<PostRole> {
private String postCode; // 岗位编码 private String postCode; // 岗位编码
private String roleCode; // 角色编码 private String roleCode; // 角色编码
private Role role; // sqlMap().loadJoinTableAlias("r")的时候返回数据 private Role role; // sqlMap().loadJoinTableAlias("r") 的时候返回数据
public PostRole() { public PostRole() {
this(null, null); this(null, null);