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