去掉supermarket_material表
This commit is contained in:
parent
7efee531b8
commit
f768672f35
|
|
@ -62,7 +62,7 @@ public class CookMaterialServiceImpl implements ICookMaterialService {
|
||||||
if (StringUtils.isNull(cookMaterial.getMaterialTypeId()) || cookMaterial.getMaterialTypeId() == 0L){
|
if (StringUtils.isNull(cookMaterial.getMaterialTypeId()) || cookMaterial.getMaterialTypeId() == 0L){
|
||||||
throw new ServiceException("请选择原料类别");
|
throw new ServiceException("请选择原料类别");
|
||||||
}
|
}
|
||||||
if (StringUtils.isNull(cookMaterial.getNutritionId()) || cookMaterial.getNutritionId() == 0L){
|
if (cookMaterial.getGoodsType().equals(1L) && (StringUtils.isNull(cookMaterial.getNutritionId()) || cookMaterial.getNutritionId() == 0L)){
|
||||||
throw new ServiceException("请选择营养信息名称");
|
throw new ServiceException("请选择营养信息名称");
|
||||||
}
|
}
|
||||||
if (cookMaterialMapper.checkIsExistByCode(cookMaterial.getMaterialCode(), null) > 0) {
|
if (cookMaterialMapper.checkIsExistByCode(cookMaterial.getMaterialCode(), null) > 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue