|
@@ -3,6 +3,7 @@ package com.persagy.adm.server.custom.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
+import com.persagy.adm.server.auth.service.AdmAuthService;
|
|
|
import com.persagy.adm.server.custom.dto.CadFiles;
|
|
|
import com.persagy.adm.server.custom.entity.CadFileQueryParam;
|
|
|
import com.persagy.adm.server.custom.entity.db.AdmCad;
|
|
@@ -31,6 +32,9 @@ public class AdmFileController {
|
|
|
@Autowired
|
|
|
IAdmCadService iAdmCadService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private AdmAuthService admAuthService;
|
|
|
+
|
|
|
/**
|
|
|
* CAD文件查询接口
|
|
|
*/
|
|
@@ -66,6 +70,7 @@ public class AdmFileController {
|
|
|
admCad.setCheckStatus(false);
|
|
|
admCad.setFileKey(file.getFileKey());
|
|
|
admCad.setFileName(file.getFileName());
|
|
|
+ admCad.setCreator(admAuthService.loginInfo().getName());
|
|
|
admFiles.add(admCad);
|
|
|
});
|
|
|
iAdmCadService.saveOrUpdateBatch(admFiles);
|