|
@@ -6,12 +6,12 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
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;
|
|
|
+import com.persagy.adm.server.custom.enums.MajorEnum;
|
|
|
import com.persagy.adm.server.custom.service.IAdmCadService;
|
|
|
import com.persagy.dmp.common.context.AppContext;
|
|
|
import com.persagy.dmp.common.model.response.CommonResult;
|
|
|
import com.persagy.dmp.common.utils.ResultHelper;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -62,7 +62,7 @@ public class AdmFileController {
|
|
|
admCad.setBuildingId(cadFiles.getBuildingId());
|
|
|
admCad.setFloorId(cadFiles.getFloorId());
|
|
|
admCad.setMajorCode(cadFiles.getMajorCode());
|
|
|
- admCad.setMajorName(cadFiles.getMajorName());
|
|
|
+ admCad.setMajorName(MajorEnum.getComment(cadFiles.getMajorCode()));
|
|
|
admCad.setCheckStatus(false);
|
|
|
admCad.setFileKey(file.getFileKey());
|
|
|
admCad.setFileName(file.getFileName());
|