Skip to content
Snippets Groups Projects

暂存的完成回单应该改成入账而不是完成

Merged jiangxiaoming requested to merge jiangxiaoming into dev
Compare and
2 files
+ 8
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -230,10 +230,15 @@ public class EntryCommandServiceImpl implements EntryCommandService {
voucherAggregate.setVoucherDate(date);
//3更新回单表 完成
IncomeAggregate incomeAggregate = incomeRepository.findByOutOrderNo(incomeId);
incomeAggregate.getReceiptBillVo().setIncomeSpeed(IncomeSpeedEnum.完成.getValue());
EntryBillAggregate entryBillAggregate = entryBillRepository.findByIncomeId(incomeId);
if(entryBillAggregate.getVoucherState().getValue().equals(VoucherStateEnum.暂存.getValue())){
incomeAggregate.getReceiptBillVo().setIncomeSpeed(IncomeSpeedEnum.入账.getValue());
}
if(entryBillAggregate.getVoucherState().getValue().equals(VoucherStateEnum.已入账.getValue())){
incomeAggregate.getReceiptBillVo().setIncomeSpeed(IncomeSpeedEnum.完成.getValue());
}
incomeRepository.save(incomeAggregate);
//4 更新入账过程表
EntryBillAggregate entryBillAggregate = entryBillRepository.findByIncomeId(incomeId);
entryBillAggregate = new EntryBillAggregate(
entryBillAggregate.getEntryBillId(),incomeId,null,null,
VoucherStateEnum.getByValue(VoucherStateEnum.已入账.getValue())