|
|
@@ -133,6 +133,22 @@ public abstract class SuperService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void initEntityNoOid(SuperMain entity) {
|
|
|
+ if (entity != null) {
|
|
|
+ UserAccount account = getCurrentUserAccount();
|
|
|
+ if (account != null) {
|
|
|
+ if (StringUtils.isEmpty(entity.getCreateUserId())) {
|
|
|
+ entity.setCreateUserId(account.getUserId());
|
|
|
+ entity.setCreateUserName(account.getName());
|
|
|
+ entity.setCreatePhone(account.getPhone());
|
|
|
+ }
|
|
|
+ entity.setUpdateUserId(account.getUserId());
|
|
|
+ entity.setUpdateUserName(account.getName());
|
|
|
+ entity.setUpdatePhone(account.getPhone());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 填充当前用户和oid信息 (oid为空会抛出异常)
|
|
|
*
|