|
|
|
@ -49,33 +49,33 @@ public class SupplementVailUtil {
|
|
|
|
|
}
|
|
|
|
|
basicProductSetEntity = basicProductSetEntityMap.get("measname");
|
|
|
|
|
if (isMustFill(type, basicProductSetEntity)) {
|
|
|
|
|
if (StrUtil.isEmpty(supplementRequest.getMeasname().trim())) {
|
|
|
|
|
if (StrUtil.isEmptyIfStr(supplementRequest.getMeasname())) {
|
|
|
|
|
return "计量单位不能为空";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
basicProductSetEntity = basicProductSetEntityMap.get("manufactory");
|
|
|
|
|
if (isMustFill(type, basicProductSetEntity)) {
|
|
|
|
|
if (StrUtil.isEmpty(supplementRequest.getManufactory().trim())) {
|
|
|
|
|
if (StrUtil.isEmptyIfStr(supplementRequest.getManufactory())) {
|
|
|
|
|
return "生产厂家不能为空";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
basicProductSetEntity = basicProductSetEntityMap.get("spmc");
|
|
|
|
|
if (isMustFill(type, basicProductSetEntity)) {
|
|
|
|
|
if (StrUtil.isEmpty(supplementRequest.getSpmc().trim())) {
|
|
|
|
|
if (StrUtil.isEmptyIfStr(supplementRequest.getSpmc())) {
|
|
|
|
|
return "商品名称不能为空";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
basicProductSetEntity = basicProductSetEntityMap.get("cpms");
|
|
|
|
|
if (isMustFill(type, basicProductSetEntity)) {
|
|
|
|
|
if (StrUtil.isEmpty(supplementRequest.getCpms().trim())) {
|
|
|
|
|
if (StrUtil.isEmptyIfStr(supplementRequest.getCpms())) {
|
|
|
|
|
return "产品描述不能为空";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
basicProductSetEntity = basicProductSetEntityMap.get("price");
|
|
|
|
|
if (isMustFill(type, basicProductSetEntity)) {
|
|
|
|
|
if (StrUtil.isEmpty(supplementRequest.getPrice().trim())) {
|
|
|
|
|
if (StrUtil.isEmptyIfStr(supplementRequest.getPrice())) {
|
|
|
|
|
return "产品价格不能为空";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|