支付优化
This commit is contained in:
@ -453,8 +453,10 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
|
||||
if(!"0".equals(money)){
|
||||
DishOrderDO dishOrderDO = dishOrderMapper.selectById(diningPlatesDO.getOrderId());
|
||||
deductionService.deduction(dishOrderDO);
|
||||
dishOrderMapper.updateById(dishOrderDO);
|
||||
}else {
|
||||
dishOrderMapper.deleteById(diningPlatesDO.getOrderId());
|
||||
}
|
||||
diningPlatesMapper.update(Wrappers.<DiningPlatesDO>lambdaUpdate()
|
||||
.set(DiningPlatesDO::getPayFlag, DiningPlatesDO.TO_PAY)
|
||||
.set(DiningPlatesDO::getStatus, DiningPlatesDO.FREE)
|
||||
@ -463,7 +465,6 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
|
||||
.set(DiningPlatesDO::getOrderId, null)
|
||||
.eq(DiningPlatesDO::getId,diningPlatesDO.getId()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AppUserInfo getMoney(String diningPlatesNum,Long dishId,Long storeId) {
|
||||
|
Reference in New Issue
Block a user