fix: bug-1333 如果没有设置对应的语言,就不返回空数据
This commit is contained in:
parent
fa8e42f08d
commit
896cfa3752
|
|
@ -1,5 +1,6 @@
|
||||||
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;
|
||||||
|
|
@ -10,9 +11,18 @@ 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;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 视频地址
|
* 视频地址
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue