审核系统繁忙问题

zhairh
anthonyywj2 3 years ago
parent 7edab2a758
commit dfbc69cfe6

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

Loading…
Cancel
Save