|
|
@@ -749,7 +749,11 @@ public class VoyageApiImpl implements VoyageApi{
|
|
|
// 减可售房间数
|
|
|
item.setNum(item.getNum().subtract(useNum));
|
|
|
// 加预定房间数
|
|
|
- item.setBookNum(item.getBookNum().add(useNum));
|
|
|
+ if(item.getBookNum()!=null) {
|
|
|
+ item.setBookNum(item.getBookNum().add(useNum));
|
|
|
+ }else {
|
|
|
+ item.setBookNum(useNum);
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
voyageStockDistributeNewMapper.updateBatch(list);
|