h5周菜谱

This commit is contained in:
sxu 2025-06-08 12:34:33 +08:00
parent 0ee7b3ee27
commit 33b2a4aebc
1 changed files with 1 additions and 0 deletions

View File

@ -569,6 +569,7 @@ public class CookRecipeServiceImpl implements ICookRecipeService {
for (CookRecipeDishes dishesDTO : dishes) { for (CookRecipeDishes dishesDTO : dishes) {
CookRecipeDishes newRecipeDishes = new CookRecipeDishes(); CookRecipeDishes newRecipeDishes = new CookRecipeDishes();
BeanUtils.copyProperties(dishesDTO, newRecipeDishes); BeanUtils.copyProperties(dishesDTO, newRecipeDishes);
newRecipeDishes.setCreateBy("JOB");
newRecipeDishes.setCreateTime(DateUtils.getNowDate()); newRecipeDishes.setCreateTime(DateUtils.getNowDate());
long supplyNum = Objects.isNull(newRecipeDishes.getSupplyNum()) ? 0 : newRecipeDishes.getSupplyNum(); long supplyNum = Objects.isNull(newRecipeDishes.getSupplyNum()) ? 0 : newRecipeDishes.getSupplyNum();
long saleNum = Objects.isNull(newRecipeDishes.getSaleNum()) ? 0 : newRecipeDishes.getSaleNum(); long saleNum = Objects.isNull(newRecipeDishes.getSaleNum()) ? 0 : newRecipeDishes.getSaleNum();