Exemplo n.º 1
0
 @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());
 }
Exemplo n.º 2
0
 public void stAccount(WxAccount account) {
   if (account == null) setAccount(null);
   else setAccount(account.getPkey());
 }