pad点餐接口实现

This commit is contained in:
张松
2025-02-20 14:33:10 +08:00
parent 5b587995ba
commit 6d990e5a72
2 changed files with 2 additions and 0 deletions

View File

@@ -17,5 +17,6 @@ public class PadDetailEditDTO {
@NotNull(message = "tb_pad_product_categoryId不为空")
private Long id;
private Long padLayoutId;
private Integer sort;
private List<Long> productIdList = new ArrayList<>();
}

View File

@@ -100,6 +100,7 @@ public class PadProdServiceImpl implements PadProdService {
checkInfo(shopId, padDetailEditDTO.getPadLayoutId(), padDetailEditDTO.getProductIdList());
category.setPadLayoutId(padDetailEditDTO.getPadLayoutId());
category.setSort(padDetailEditDTO.getSort());
padProductCategoryService.updateById(category);
if (padDetailEditDTO.getProductIdList() != null && !padDetailEditDTO.getProductIdList().isEmpty()) {