BUGFIX:系统模特高宽默认1050 500;
This commit is contained in:
@@ -52,9 +52,6 @@ public class SysFile implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String md5;
|
private String md5;
|
||||||
|
|
||||||
private Integer high;
|
|
||||||
|
|
||||||
private Integer width;
|
|
||||||
/**
|
/**
|
||||||
* 路径 绝对路径
|
* 路径 绝对路径
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -34,8 +34,4 @@ public class SysFileVO implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private String md5;
|
private String md5;
|
||||||
|
|
||||||
private Integer high;
|
|
||||||
|
|
||||||
private Integer width;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1206,7 +1206,7 @@ public class PythonService {
|
|||||||
RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(content));
|
RequestBody body = RequestBody.create(mediaType, JSON.toJSONString(content));
|
||||||
Request request = new Request.Builder()
|
Request request = new Request.Builder()
|
||||||
// .url(accessPythonIp+":11112/aifda/api/v1.0/attribute_retrieval")
|
// .url(accessPythonIp+":11112/aifda/api/v1.0/attribute_retrieval")
|
||||||
.url(accessPythonIp+":11112/aifda/api/v1.0/attribute_retrieval")
|
.url(accessPythonIp+":9991/aifda/api/v1.0/attribute_retrieval")
|
||||||
.method("POST", body)
|
.method("POST", body)
|
||||||
.addHeader("Authorization", "Basic YWlkbGFiOjEyMw==")
|
.addHeader("Authorization", "Basic YWlkbGFiOjEyMw==")
|
||||||
.addHeader("Content-Type", "application/json")
|
.addHeader("Content-Type", "application/json")
|
||||||
|
|||||||
@@ -110,26 +110,24 @@ public class DesignServiceImpl extends ServiceImpl<DesignMapper, Design> impleme
|
|||||||
private void calculateLibraryAndSysFile(DesignCollectionDTO designDTO, ValidateElementVO elementVO, AuthPrincipalVo userInfo) {
|
private void calculateLibraryAndSysFile(DesignCollectionDTO designDTO, ValidateElementVO elementVO, AuthPrincipalVo userInfo) {
|
||||||
//查询用户 sketch library
|
//查询用户 sketch library
|
||||||
List<LibraryVo> libraryVos;
|
List<LibraryVo> libraryVos;
|
||||||
// if (CollectionUtil.isNotEmpty(designDTO.getSketchBoards())) {
|
if (CollectionUtil.isNotEmpty(designDTO.getSketchBoards())) {
|
||||||
// List<String> sketchUrlList = elementVO.getSketchBoardElements()
|
List<String> sketchUrlList = elementVO.getSketchBoardElements()
|
||||||
// .stream()
|
.stream()
|
||||||
// .map(CollectionElement::getUrl)
|
.map(CollectionElement::getUrl)
|
||||||
// .collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
// DesignAttributeRetrievalDTO designAttributeRetrievalDTO =
|
DesignAttributeRetrievalDTO designAttributeRetrievalDTO =
|
||||||
// pythonService.generateAttributeRetrieval(sketchUrlList, userInfo.getId());
|
pythonService.generateAttributeRetrieval(sketchUrlList, userInfo.getId());
|
||||||
// if (CollectionUtils.isEmpty(designAttributeRetrievalDTO.getLibraryUrls())) {
|
if (CollectionUtils.isEmpty(designAttributeRetrievalDTO.getLibraryUrls())) {
|
||||||
// libraryVos = null;
|
libraryVos = null;
|
||||||
// } else {
|
} else {
|
||||||
// libraryVos = libraryService.getByUrlList(designAttributeRetrievalDTO.getLibraryUrls(), userInfo.getId());
|
libraryVos = libraryService.getByUrlList(designAttributeRetrievalDTO.getLibraryUrls(), userInfo.getId());
|
||||||
// }
|
}
|
||||||
// List<SysFileVO> sysFileVOS = sysFileService.getByUrlList(designAttributeRetrievalDTO.getSysFileUrlS());
|
List<SysFileVO> sysFileVOS = sysFileService.getByUrlList(designAttributeRetrievalDTO.getSysFileUrlS());
|
||||||
// elementVO.setSysFileVo(sysFileVOS);
|
elementVO.setSysFileVo(sysFileVOS);
|
||||||
// } else {
|
} else {
|
||||||
// libraryVos = libraryService.selectByAccountIdAnd1TypeList(userInfo.getId(),
|
libraryVos = libraryService.selectByAccountIdAnd1TypeList(userInfo.getId(),
|
||||||
// Collections.singletonList(CollectionLevel1TypeEnum.SKETCH_BOARD.getRealName()));
|
Collections.singletonList(CollectionLevel1TypeEnum.SKETCH_BOARD.getRealName()));
|
||||||
// }
|
}
|
||||||
libraryVos = libraryService.selectByAccountIdAnd1TypeList(userInfo.getId(),
|
|
||||||
Collections.singletonList(CollectionLevel1TypeEnum.SKETCH_BOARD.getRealName()));
|
|
||||||
elementVO.setLibraryVos(libraryVos);
|
elementVO.setLibraryVos(libraryVos);
|
||||||
//校验比列
|
//校验比列
|
||||||
validateRatio(designDTO, libraryVos);
|
validateRatio(designDTO, libraryVos);
|
||||||
|
|||||||
@@ -278,8 +278,6 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
|||||||
sysFile.setUrl(filePath);
|
sysFile.setUrl(filePath);
|
||||||
sysFile.setMd5(uploadDTO.getMd5());
|
sysFile.setMd5(uploadDTO.getMd5());
|
||||||
sysFile.setCreateDate(new Date());
|
sysFile.setCreateDate(new Date());
|
||||||
sysFile.setHigh(uploadDTO.getHigh());
|
|
||||||
sysFile.setWidth(uploadDTO.getWidth());
|
|
||||||
sysFileMapper.insert(sysFile);
|
sysFileMapper.insert(sysFile);
|
||||||
Library library = new Library();
|
Library library = new Library();
|
||||||
library.setId(sysFile.getId());
|
library.setId(sysFile.getId());
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
server.port=5567
|
server.port=10086
|
||||||
|
|
||||||
#datasource
|
#datasource
|
||||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||||
@@ -42,8 +42,9 @@ spring.servlet.multipart.max-file-size = 5MB
|
|||||||
spring.servlet.multipart.max-request-size= 5MB
|
spring.servlet.multipart.max-request-size= 5MB
|
||||||
|
|
||||||
#访问python服务的ip(对应环境)
|
#访问python服务的ip(对应环境)
|
||||||
#access.python.ip=http://18.167.251.121
|
#access.python.ip=http://43.198.80.117
|
||||||
access.python.ip=http://43.198.80.117
|
access.python.ip=http://18.167.251.121
|
||||||
|
#access.python.ip=http://18.167.251.121:9991/
|
||||||
|
|
||||||
# minIO服务配置之信息
|
# minIO服务配置之信息
|
||||||
minio.endpoint=http://18.167.251.121:9000
|
minio.endpoint=http://18.167.251.121:9000
|
||||||
|
|||||||
Reference in New Issue
Block a user