Authored by LUOXC

format

... ... @@ -60,9 +60,9 @@ public class InviterServiceImpl implements InviterService {
LocalDateTime paidTime = LocalDateTime.ofEpochSecond(inviteSettlement.getPaidTime().longValue(), 0, zoneOffset);
InviteSettlementListVO.InviteSettlementVO item = new InviteSettlementListVO.InviteSettlementVO();
item.setSettleCode(String.format("%s%010d", createTime.format(DateTimeFormatter.ofPattern("yyyyMMdd")), inviteSettlement.getId()));
item.setSettleAmount("+" + inviteSettlement.getSettleAmount().setScale(1, RoundingMode.HALF_EVEN));
item.setSettleTime(settleTime.format(DateTimeFormatter.ofPattern("yyyyMMdd HH:mm:ss")));
item.setPaidTime(paidTime.format(DateTimeFormatter.ofPattern("yyyyMMdd HH:mm:ss")));
item.setSettleAmount("+" + inviteSettlement.getSettleAmount().setScale(1, RoundingMode.FLOOR));
item.setSettleTime(settleTime.format(DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm:ss")));
item.setPaidTime(paidTime.format(DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm:ss")));
return item;
})
.collect(Collectors.toList());
... ...