Compare commits

...

2 Commits

Author SHA1 Message Date
曹鹏飞 48e3bdb11c Merge branch 'feature/bug-1333' into feature/quotation 2026-02-26 19:08:54 +08:00
曹鹏飞 896cfa3752 fix: bug-1333 如果没有设置对应的语言,就不返回空数据 2026-02-26 19:08:32 +08:00
1 changed files with 12 additions and 2 deletions

View File

@ -1,18 +1,28 @@
package com.nflg.mobilebroken.common.pojo.vo; package com.nflg.mobilebroken.common.pojo.vo;
import cn.hutool.core.util.StrUtil;
import lombok.Data; import lombok.Data;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
@Data @Data
public class ProductVideoVO extends ProductImageVO{ public class ProductVideoVO extends ProductImageVO {
/** /**
* 类型0-视频1图片 * 类型0-视频1图片
*/ */
@NotNull
private Integer type; private Integer type;
public Integer getType() {
if (StrUtil.isNotBlank(video)) {
return 0;
}
if (StrUtil.isNotBlank(getImage())) {
return 1;
}
return null;
}
/** /**
* 视频地址 * 视频地址
*/ */