fix按照次出场空指针报错

This commit is contained in:
2024-03-02 15:39:23 +08:00
parent a83731da16
commit f5e2120b28

View File

@@ -135,8 +135,7 @@ public class ServerMessageHandlerAdapter implements MessageService {
BarcodeOrderTime lastOrder = barcodeOrderTimeMapper.findLastOrder(member.getId(), venueBarCode.getVenueId());
lastOrder.setLastOut(new Date());
// 不需要补交钱且需要退钱
if (lastOrder.getPayMoney() > 0) {
// lastOrder.setPaying(1);
if (lastOrder.getPayMoney() != null && lastOrder.getPayMoney() > 0) {
lastOrder.setModifiedTime(new Date());
}
barcodeOrderTimeMapper.updateByPrimaryKey(lastOrder);