Commit 16456484 authored by shiyu's avatar shiyu

保证金明细

parent 72e2ca3b
......@@ -47,7 +47,11 @@ public class EarnestRecordServiceImpl implements EarnestRecordService {
EarnestRecordVo earnestRecordVo = new EarnestRecordVo();
EntityMapper.copyAttribute(earnestRecord, earnestRecordVo);
earnestRecordVo.setTypeName(EarnestEnum.TypeEnum.getNameByCode(earnestRecord.getType()));
earnestRecordVo.setAmount(PriceUtil.convertPriceFenToYuan(earnestRecord.getAmount()));
if (earnestRecord.getEntryType() == EarnestEnum.EntryEnum.DEDUCT.getCode()) {
earnestRecordVo.setAmount("-¥" + PriceUtil.convertPriceFenToYuan(earnestRecord.getAmount()));
} else {
earnestRecordVo.setAmount("+¥" + PriceUtil.convertPriceFenToYuan(earnestRecord.getAmount()));
}
earnestRecordVos.add(earnestRecordVo);
}
return Result.success(PageSearchResult.of(pageInfo, earnestRecordVos));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment