pad点餐接口实现
This commit is contained in:
@@ -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<>();
|
||||
}
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user