|
@@ -14,6 +14,7 @@ import com.jpsoft.railroad.modules.base.service.RegUserService;
|
|
|
import com.jpsoft.railroad.modules.common.dto.MessageResult;
|
|
|
import com.jpsoft.railroad.modules.common.dto.Sort;
|
|
|
import com.jpsoft.railroad.modules.common.utils.PojoUtils;
|
|
|
+import com.jpsoft.railroad.modules.sys.entity.User;
|
|
|
import com.jpsoft.railroad.modules.sys.service.DataDictionaryService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
@@ -255,6 +256,20 @@ public class OaFileInfoApi {
|
|
|
oaFileInfo.setId(UUID.randomUUID().toString());
|
|
|
oaFileInfo.setDelFlag(false);
|
|
|
oaFileInfo.setCreateBy(subject);
|
|
|
+
|
|
|
+ String phone = "";
|
|
|
+
|
|
|
+ RegUser regUser = regUserService.get(subject);
|
|
|
+
|
|
|
+ //先判断是否前端用户创建
|
|
|
+ if (regUser != null) {
|
|
|
+ phone = regUser.getPhone();
|
|
|
+ }
|
|
|
+
|
|
|
+ if(StringUtils.isNotEmpty(phone)){
|
|
|
+ oaFileInfo.setCreatePhone(phone);
|
|
|
+ }
|
|
|
+
|
|
|
oaFileInfo.setCreateTime(new Date());
|
|
|
|
|
|
JSONArray jsonArray = new JSONArray();
|