fix : 관리자 구독서비스 수정
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.wb.domainserver.domain.mngr.goods.subsvc.controller;
|
package com.wb.domainserver.domain.mngr.goods.subsvc.controller;
|
||||||
|
|
||||||
|
import com.google.j2objc.annotations.Property;
|
||||||
import com.wb.domainserver.common.msg.GconeMessageSource;
|
import com.wb.domainserver.common.msg.GconeMessageSource;
|
||||||
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
||||||
import com.wb.domainserver.common.prop.PaginationProperties;
|
import com.wb.domainserver.common.prop.PaginationProperties;
|
||||||
@@ -29,6 +30,7 @@ import io.micrometer.common.util.StringUtils;
|
|||||||
import jakarta.servlet.http.HttpServletRequest;
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.http.MediaType;
|
import org.springframework.http.MediaType;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
@@ -79,6 +81,8 @@ public class SubsvcController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private FileStorageService filestore;
|
private FileStorageService filestore;
|
||||||
|
|
||||||
|
@Value("${mngrfo.common.fileupload.uploaddirs.web}")
|
||||||
|
private String uploadWebFilePath;
|
||||||
@Autowired
|
@Autowired
|
||||||
private BOSubsvcService service;
|
private BOSubsvcService service;
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -192,7 +196,7 @@ public class SubsvcController {
|
|||||||
uploadFileMap = filestore.fileUpload(request);
|
uploadFileMap = filestore.fileUpload(request);
|
||||||
if(uploadFileMap.size() == 1){
|
if(uploadFileMap.size() == 1){
|
||||||
FileVo thumbNail = (FileVo) uploadFileMap.get(0).get("thumbNail");
|
FileVo thumbNail = (FileVo) uploadFileMap.get(0).get("thumbNail");
|
||||||
vo.setImg(thumbNail.getFilePath() + File.separator + thumbNail.getFileName());
|
vo.setImg( uploadFileMap.get(0).get("filePath")+ File.separator + thumbNail.getFileName());
|
||||||
}
|
}
|
||||||
} catch (WnbtRestException wre) {
|
} catch (WnbtRestException wre) {
|
||||||
log.error(wre.getMessage(), wre);
|
log.error(wre.getMessage(), wre);
|
||||||
|
|||||||
@@ -419,7 +419,6 @@
|
|||||||
console.log("file",file);
|
console.log("file",file);
|
||||||
//1개만 등록 되도록
|
//1개만 등록 되도록
|
||||||
if(index == 0){
|
if(index == 0){
|
||||||
alert();
|
|
||||||
formData.append('files',file);
|
formData.append('files',file);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user