TASK:上传回显;
This commit is contained in:
@@ -14,7 +14,9 @@ public enum Module implements IEnumDisplay {
|
|||||||
poseTransfer("Pose Transfer"),
|
poseTransfer("Pose Transfer"),
|
||||||
canvas("Canvas"),
|
canvas("Canvas"),
|
||||||
patternMaking3D("3D Pattern Making"),
|
patternMaking3D("3D Pattern Making"),
|
||||||
deReconstruction("De/Reconstruction");
|
deReconstruction("De/Reconstruction"),
|
||||||
|
uploadElement("UploadElement"),
|
||||||
|
;
|
||||||
|
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package com.ai.da.model.vo;
|
package com.ai.da.model.vo;
|
||||||
|
|
||||||
|
import com.ai.da.mapper.primary.entity.ToProductElement;
|
||||||
import com.ai.da.model.dto.PortfolioDTO;
|
import com.ai.da.model.dto.PortfolioDTO;
|
||||||
import com.ai.da.model.dto.ToProductImageDTO;
|
import com.ai.da.model.dto.ToProductImageDTO;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
@@ -37,4 +38,6 @@ public class ModuleChooseVO {
|
|||||||
private ThreeDModuleVO patternMaking3D;
|
private ThreeDModuleVO patternMaking3D;
|
||||||
|
|
||||||
private List<CollectionElementVO> mannequin;
|
private List<CollectionElementVO> mannequin;
|
||||||
|
|
||||||
|
private List<ToProductElement> uploadElement;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1747,6 +1747,14 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
moduleChooseVO.setMannequin(list);
|
moduleChooseVO.setMannequin(list);
|
||||||
|
}else if (module.equals(Module.uploadElement.name())) {
|
||||||
|
QueryWrapper<ToProductElement> qw = new QueryWrapper<>();
|
||||||
|
qw.lambda().eq(ToProductElement::getProjectId, projectDTO.getId());
|
||||||
|
List<ToProductElement> toProductElements = toProductElementMapper.selectList(qw);
|
||||||
|
for (ToProductElement toProductElement : toProductElements) {
|
||||||
|
toProductElement.setUrl(minioUtil.getPreSignedUrl(toProductElement.getUrl(), 24 * 60));
|
||||||
|
}
|
||||||
|
moduleChooseVO.setUploadElement(toProductElements);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return moduleChooseVO;
|
return moduleChooseVO;
|
||||||
|
|||||||
Reference in New Issue
Block a user