|
@@ -111,10 +111,10 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
|
|
if (StringUtils.isNotEmpty(lifeGroupBuyThali.getDetailId())) {
|
|
if (StringUtils.isNotEmpty(lifeGroupBuyThali.getDetailId())) {
|
|
StoreMenuVo menuInfo = storeMenuMapper.getMenuInfo(Integer.parseInt(lifeGroupBuyThali.getDetailId()));
|
|
StoreMenuVo menuInfo = storeMenuMapper.getMenuInfo(Integer.parseInt(lifeGroupBuyThali.getDetailId()));
|
|
if (ObjectUtils.isNotEmpty(menuInfo)) {
|
|
if (ObjectUtils.isNotEmpty(menuInfo)) {
|
|
- lifeGroupBuyThali.setDetailName(menuInfo.getDishName());
|
|
|
|
- lifeGroupBuyThali.setDetailImg(menuInfo.getImgUrl());
|
|
|
|
- lifeGroupBuyThali.setDetailPrice(menuInfo.getDishPrice().toString());
|
|
|
|
- lifeGroupBuyThali.setDetailUnit(menuInfo.getDishesUnit());
|
|
|
|
|
|
+ lifeGroupBuyThali.setDishName(menuInfo.getDishName());
|
|
|
|
+ lifeGroupBuyThali.setDishImg(menuInfo.getImgUrl());
|
|
|
|
+ lifeGroupBuyThali.setDishPrice(menuInfo.getDishPrice().toString());
|
|
|
|
+ lifeGroupBuyThali.setDishesUnit(menuInfo.getDishesUnit());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -149,6 +149,12 @@ public class LifeGroupBuyServiceImpl extends ServiceImpl<LifeGroupBuyMainMapper,
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public boolean updateNum(String id, String num) {
|
|
|
|
+ lifeGroupBuyMainMapper.update(null, new LambdaUpdateWrapper<LifeGroupBuyMain>().eq(LifeGroupBuyMain::getId, id).set(LifeGroupBuyMain::getInventoryNum, num));
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+
|
|
private void getMainImgAndDisableDate(LifeGroupBuyThaliVo record) {
|
|
private void getMainImgAndDisableDate(LifeGroupBuyThaliVo record) {
|
|
//图片
|
|
//图片
|
|
if (StringUtils.isNotEmpty(record.getImageId())) {
|
|
if (StringUtils.isNotEmpty(record.getImageId())) {
|