添加人像

master
GoblinsWang 2023-03-29 16:02:06 +08:00
parent a1fc93e59c
commit 6d44e9d4b7
1 changed files with 3 additions and 2 deletions

View File

@ -374,11 +374,12 @@ public class PortraitServiceImpl extends ServiceImpl<PortraitMapper, Portrait> i
public Portrait save(ImageReturnVO imageReturnVO, ImagesVO imageVO) { public Portrait save(ImageReturnVO imageReturnVO, ImagesVO imageVO) {
Portrait portrait = new Portrait(); Portrait portrait = new Portrait();
portrait.setIdPortrait(Long.parseLong(imageVO.getFaceId())); portrait.setIdPortrait(Long.parseLong(imageVO.getFaceId()));
portrait.setFeatId(imageReturnVO.getIdFaceid()); portrait.setFeatId(imageVO.getFaceId());
portrait.setFaceIds(imageReturnVO.getFaceId()); portrait.setFaceIds(imageVO.getFaceId());
portrait.setName(imageVO.getName()); portrait.setName(imageVO.getName());
portrait.setIdFactory(Long.parseLong(imageVO.getLibraryId())); portrait.setIdFactory(Long.parseLong(imageVO.getLibraryId()));
portrait.setUrl(imageVO.getUrl()); portrait.setUrl(imageVO.getUrl());
portrait.setBackgroundUrl(imageVO.getUrl());
// if (UtilValidate.isNotEmpty(imageReturnVO.getFace())) { // if (UtilValidate.isNotEmpty(imageReturnVO.getFace())) {
// /**背景地址*/ // /**背景地址*/