pad点餐接口实现
This commit is contained in:
@@ -17,5 +17,6 @@ public class PadDetailEditDTO {
|
|||||||
@NotNull(message = "tb_pad_product_categoryId不为空")
|
@NotNull(message = "tb_pad_product_categoryId不为空")
|
||||||
private Long id;
|
private Long id;
|
||||||
private Long padLayoutId;
|
private Long padLayoutId;
|
||||||
|
private Integer sort;
|
||||||
private List<Long> productIdList = new ArrayList<>();
|
private List<Long> productIdList = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ public class PadProdServiceImpl implements PadProdService {
|
|||||||
checkInfo(shopId, padDetailEditDTO.getPadLayoutId(), padDetailEditDTO.getProductIdList());
|
checkInfo(shopId, padDetailEditDTO.getPadLayoutId(), padDetailEditDTO.getProductIdList());
|
||||||
|
|
||||||
category.setPadLayoutId(padDetailEditDTO.getPadLayoutId());
|
category.setPadLayoutId(padDetailEditDTO.getPadLayoutId());
|
||||||
|
category.setSort(padDetailEditDTO.getSort());
|
||||||
padProductCategoryService.updateById(category);
|
padProductCategoryService.updateById(category);
|
||||||
|
|
||||||
if (padDetailEditDTO.getProductIdList() != null && !padDetailEditDTO.getProductIdList().isEmpty()) {
|
if (padDetailEditDTO.getProductIdList() != null && !padDetailEditDTO.getProductIdList().isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user