提交 bcfb2c5b authored 作者: huyufan's avatar huyufan

修改枚举值

上级 dee96058
...@@ -67,8 +67,8 @@ public enum OwnerAccountEnum { ...@@ -67,8 +67,8 @@ public enum OwnerAccountEnum {
@Getter @Getter
@AllArgsConstructor @AllArgsConstructor
public enum OrderChildTypeStatus { public enum OrderChildTypeStatus {
ORDINARY(1, "普通单"), NETWORK(1, "网运单"),
NETWORK(2, "网运单"), ORDINARY(2, "普通单"),
; ;
private final Integer code; private final Integer code;
private final String msg; private final String msg;
......
...@@ -95,11 +95,15 @@ public class SettlementServiceImpl implements SettlementService { ...@@ -95,11 +95,15 @@ public class SettlementServiceImpl implements SettlementService {
invoiceType = SettlementOwnerEnum.InvoiceType.ONLINE.getCode(); invoiceType = SettlementOwnerEnum.InvoiceType.ONLINE.getCode();
List<OwnerRunningWaterRecord> runningWaterRecordList = ownerRunningWaterRecordDao.getOwnerRunningWaterRecord(orderChild.getOrderNo()); List<OwnerRunningWaterRecord> runningWaterRecordList = ownerRunningWaterRecordDao.getOwnerRunningWaterRecord(orderChild.getOrderNo());
BigDecimal frozen = runningWaterRecordList.stream().filter(item -> { BigDecimal frozen = runningWaterRecordList.stream().filter(item -> {
return item.getRunningWaterType().equals(OwnerAccountEnum.RunningWaterStatus.FROZEN.getCode()); return item.getRunningWaterType().equals(OwnerAccountEnum.RunningWaterStatus.FROZEN.getCode())
&& item.getAccountType().equals(OwnerAccountEnum.AccountTypeStatus.PREPAID_FREIGHT_ACCOUNT.getCode())
;
}).map(OwnerRunningWaterRecord::getAlterationBalance).reduce(BigDecimal.ZERO, BigDecimal::add); }).map(OwnerRunningWaterRecord::getAlterationBalance).reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal takeOut = runningWaterRecordList.stream().filter(item -> { BigDecimal takeOut = runningWaterRecordList.stream().filter(item -> {
return item.getRunningWaterType().equals(OwnerAccountEnum.RunningWaterStatus.TAKE_OUT.getCode()); return item.getRunningWaterType().equals(OwnerAccountEnum.RunningWaterStatus.TAKE_OUT.getCode())
&& item.getAccountType().equals(OwnerAccountEnum.AccountTypeStatus.PREPAID_FREIGHT_ACCOUNT.getCode())
;
}).map(OwnerRunningWaterRecord::getAlterationBalance).reduce(BigDecimal.ZERO, BigDecimal::add); }).map(OwnerRunningWaterRecord::getAlterationBalance).reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal subtract = frozen.subtract(takeOut); BigDecimal subtract = frozen.subtract(takeOut);
if (subtract.compareTo(BigDecimal.ZERO) <= 0) { if (subtract.compareTo(BigDecimal.ZERO) <= 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论