|
|
@@ -540,7 +540,7 @@ public class SubsidyQueueServiceImpl implements ISubsidyQueueService {
|
|
|
*/
|
|
|
private BigDecimal sharedSubsidyHandle(OnlineOrder order, SubsidyMode currentMode, BigDecimal sharedSubsidy) {
|
|
|
if (currentMode.getImmediateArrival()) {
|
|
|
- if (sharedSubsidy.compareTo(BigDecimal.ZERO) == 0) {
|
|
|
+ if (sharedSubsidy.compareTo(BigDecimal.ZERO) <= 0) {
|
|
|
return BigDecimal.ZERO;
|
|
|
}
|
|
|
Long businessId = order.getBusinessId();
|
|
|
@@ -557,7 +557,7 @@ public class SubsidyQueueServiceImpl implements ISubsidyQueueService {
|
|
|
public BigDecimal sharedSubsidyCompute(Long businessId, BigDecimal sharedSubsidy) {
|
|
|
String businessName = businessService.queryNameById(businessId);
|
|
|
while (true) {
|
|
|
- if (sharedSubsidy.compareTo(BigDecimal.ZERO) == 0) {
|
|
|
+ if (sharedSubsidy.compareTo(BigDecimal.ZERO) <= 0) {
|
|
|
return BigDecimal.ZERO;
|
|
|
}
|
|
|
|