public void stInvited1(WxUser invited1) { if (invited1 == null) setInvited1(null); else setInvited1(invited1.getPkey()); }
public void stInvited2(WxUser invited2) { if (invited2 == null) setInvited2(null); else setInvited2(invited2.getPkey()); }
public enum T implements IEnumFld { // @formatter:off PKEY(TB.crtIntPkey()), // 主键 STATUS(TB.crt(Wx.OStatus.DEFAULT)), OPEN_ID(SYS.STR__100, "粉丝ID"), UNION_ID(SYS.STR__100_NULL, "唯一ID"), NICKNAME(SYS.STR__200_NULL, "昵称"), SEX(SYS.SEX, true), CITY(SYS.STR__100_NULL, "城市"), PROVINCE(SYS.STR__100_NULL, "省份"), COUNTRY(SYS.STR__100_NULL, "国家"), IMAGE_URL(SYS.PHOTO__NULL, "头像"), REM(SYS.STR__200_NULL, "备注"), USER_GROUP(WxUserGroup.fldOutKey()), SUBSCRIBE_TIME(SYS.TIME__NULL, "关注时间"), INVITED1(WxUser.fldOutKey("invited1", "一级邀请人").setNull()), INVITED2(WxUser.fldOutKey("invited2", "二级邀请人").setNull()), IS_MEMBER(SYS.NY, "是否会员"), QRCODE(SYS.PHOTO__NULL, "专属二维码"), QRCODE_EXPIRE_TIME(SYS.TIME__NULL, "二维码到期时间"), HISTORY_COMMISSION(SYS.AMT, "历史佣金"), CASHABLE_COMMISSION(SYS.AMT, "可提现佣金"), ACCOUNT(WxAccount.fldOutKey()), // 公众账号 SYNC_TIME(SYS.TIME__NULL, "同步时间"), SYNC_STATUS(SYS.YN, "是否同步"), ROW_VERSION(SYS.ROW_VERSION), // >>>以下是自动产生的源代码行--内嵌字段定义--请保留此行用于识别>>> // <<<以上是自动产生的源代码行--内嵌字段定义--请保留此行用于识别<<< ; // >>>以下是自动产生的源代码行--自动建立的索引定义--请保留此行用于识别>>> // <<<以上是自动产生的源代码行--自动建立的索引定义--请保留此行用于识别<<< // 索引 public static final Index IDX_INVITED1_ACCOUNT = TB.addIndex("invited1Account", false, T.INVITED1, T.ACCOUNT); public static final Index IDX_INVITED2_ACCOUNT = TB.addIndex("invited2Account", false, T.INVITED2, T.ACCOUNT); public static final Index IDX_OPEN_ID_ACCOUNT = TB.addIndex("openIdAccount", true, T.OPEN_ID, T.ACCOUNT); public static final Index IDX_UNION_ID_ACCOUNT = TB.addIndex("unionIdAccount", true, T.UNION_ID, T.ACCOUNT); public static final Index IDX_NICKNAME_ACCOUNT = TB.addIndex("nicknameAccount", false, T.NICKNAME, T.ACCOUNT); public static final Index IDX_REM_ACCOUNT = TB.addIndex("remAccount", false, T.REM, T.ACCOUNT); public static final Index IDX_ACCOUNT = TB.addIndex("account", false, T.ACCOUNT); private Fld _fld; private T(Class clazz, String name, boolean... isnull) { _fld = TB.addOutKey(clazz, this, name, isnull); } private T(IEnumFld fld, boolean... isnull) { this(fld, null, isnull); } private T(IEnumFld fld, String name, boolean... null1) { _fld = TB.add(fld, this, name, null1); } private T(IEnumFld fld, String name, int strLen) { _fld = TB.add(fld, this, name, strLen); } private T(Fld fld) { _fld = TB.add(fld, this); } public Fld getFld() { return _fld; } }