在artery中进行这些获取还是比较简单的。话不多说,咱们直接上代码
/**
* 获取当前时间
*
* @return Timestamp
*/
public static Timestamp getCurrentDt() {
return new Timestamp(System.currentTimeMillis());
}
/**
* 获取当前登录人
*
* @return String
*/
public static String getCurrentUser() {
return ArteryOrganUtil.getCurrUserInfo().getName();
}
创建一个类,放上以上两个方法,哪里想用哪里调是不是很方便呢?