diff --git a/src/main/java/com/chaozhanggui/system/cashierservice/service/DutyService.java b/src/main/java/com/chaozhanggui/system/cashierservice/service/DutyService.java index ab6e510..bc88c1f 100644 --- a/src/main/java/com/chaozhanggui/system/cashierservice/service/DutyService.java +++ b/src/main/java/com/chaozhanggui/system/cashierservice/service/DutyService.java @@ -267,7 +267,7 @@ public class DutyService { } List list = orderDetailMapper.selectAllByOrderId(orderId); BigDecimal cashAmount = BigDecimal.ZERO; - if (orderInfo.getPayType().equals("cash")) { + if ("cash".equals(orderInfo.getPayType())) { cashAmount = orderInfo.getPayAmount(); } ShopUserDuty shopUserDuty = shopUserDutyMapper.selectByShopIdAndStatus(Integer.valueOf(orderInfo.getShopId()), "0");