v1.1 后台-用户充值记录查询-货币除以100
This commit is contained in:
@@ -36,6 +36,7 @@ import org.springframework.util.StringUtils;
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -273,6 +274,7 @@ public class ChargeRecordAdminService extends BaseService {
|
||||
for (ChargeRecord chargeRecord: list){
|
||||
ChargeRecordPersonAdminVo vo = new ChargeRecordPersonAdminVo();
|
||||
BeanUtils.copyProperties(chargeRecord, vo);
|
||||
vo.setLocalAmount(new BigDecimal(chargeRecord.getLocalAmount()).divide(Constant.HUNDRED).setScale(2, RoundingMode.HALF_UP).doubleValue());
|
||||
vo.setCreateTime(DateTimeUtil.convertDate(chargeRecord.getCreateTime()));
|
||||
vo.setNewUser(false);
|
||||
vo.setFirstCharge(false);
|
||||
@@ -289,7 +291,6 @@ public class ChargeRecordAdminService extends BaseService {
|
||||
}
|
||||
vo.setNewUser(DateUtils.isSameDay(u.getCreateTime(), firstCr.getCreateTime()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
voList.add(vo);
|
||||
|
@@ -24,14 +24,14 @@ public class ChargeRecordPersonAdminVo {
|
||||
@ExcelProperty("渠道")
|
||||
public String channel;
|
||||
|
||||
@ExcelProperty("当地货币代码")
|
||||
@ExcelProperty("国家/地区")
|
||||
public String country;
|
||||
|
||||
@ExcelProperty("当地货币代码")
|
||||
public String localCurrencyCode;
|
||||
|
||||
@ExcelProperty("当地金额")
|
||||
public Long localAmount;
|
||||
public Double localAmount;
|
||||
|
||||
@ExcelProperty("钻石")
|
||||
public Long totalGold;
|
||||
|
Reference in New Issue
Block a user