@Override public void before() { super.before(); WxAccount account = WxAccountDAO.getByUser(getUser()); if (account == null) throw LOG.err(Msgs.noAccountErr); getB().setAccount(account.getPkey()); getB().setCreatedTime(new Date()); getB().setUpdatedTime(new Date()); }
public void stAccount(WxAccount account) { if (account == null) setAccount(null); else setAccount(account.getPkey()); }