11/24
This commit is contained in:
@@ -37,13 +37,13 @@ public class LpkReserveOrderGoodsService extends MybatisBaseService<LpkReserveOr
|
|||||||
goods.setCardSid(dto.getSid());
|
goods.setCardSid(dto.getSid());
|
||||||
for (GoodsVo goods1:dto.getGoodsVos()){
|
for (GoodsVo goods1:dto.getGoodsVos()){
|
||||||
if(goods1.getSelect()!=0){
|
if(goods1.getSelect()!=0){
|
||||||
goods.setCardSid(dto.getCardSid());
|
goods.setCardSid(dto.getSid());
|
||||||
goods.setGoodsSid(goods1.getGoodsSid());
|
goods.setGoodsSid(goods1.getGoodsSid());
|
||||||
goods.setGoodsNumber(goods1.getSelect());
|
goods.setGoodsNumber(goods1.getSelect());
|
||||||
baseMapper.insert(goods);
|
baseMapper.insert(goods);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AppletVo vo=lpkGiftCardService.getGifCardBySid(dto.getCardSid()).getData();
|
AppletVo vo=lpkGiftCardService.getGifCardBySid(dto.getSid()).getData();
|
||||||
int i=0;
|
int i=0;
|
||||||
for (GoodsVo vo1:vo.getGoodsVos()){
|
for (GoodsVo vo1:vo.getGoodsVos()){
|
||||||
LpkReserveOrderGoods goods1=baseMapper.getReserveByCardSid(dto.getCardSid(), vo1.getGoodsSid());
|
LpkReserveOrderGoods goods1=baseMapper.getReserveByCardSid(dto.getCardSid(), vo1.getGoodsSid());
|
||||||
@@ -53,9 +53,9 @@ public class LpkReserveOrderGoodsService extends MybatisBaseService<LpkReserveOr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(vo.getGoodsVos().size()==i){
|
if(vo.getGoodsVos().size()==i){
|
||||||
lpkGiftCardService.changState(dto.getCardSid(),"5");
|
lpkGiftCardService.changState(dto.getSid(),"5");
|
||||||
}else{
|
}else{
|
||||||
lpkGiftCardService.changState(dto.getCardSid(),"4");
|
lpkGiftCardService.changState(dto.getSid(),"4");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rb.success().setData("预约成功");
|
return rb.success().setData("预约成功");
|
||||||
|
|||||||
Reference in New Issue
Block a user