Commit 2301d3f9 authored by xuxin's avatar xuxin

管理员界面-推广码下线查询 bug修復

parent 93583854
...@@ -21,6 +21,16 @@ public class PromotionInfoDto { ...@@ -21,6 +21,16 @@ public class PromotionInfoDto {
private Integer secondLevelCommission; private Integer secondLevelCommission;
public PromotionInfoDto(Integer firstLevelInvitedUsers, Integer firstLevelIps, Integer secondLevelIps, Integer allLevelIps, Double gift, Integer firstLevelCommission, Integer secondLevelCommission) {
this.firstLevelInvitedUsers = firstLevelInvitedUsers;
this.firstLevelIps = firstLevelIps;
this.secondLevelIps = secondLevelIps;
this.allLevelIps = allLevelIps;
this.gift = gift;
this.firstLevelCommission = firstLevelCommission;
this.secondLevelCommission = secondLevelCommission;
}
public Integer getFirstLevelInvitedUsers() { public Integer getFirstLevelInvitedUsers() {
return firstLevelInvitedUsers; return firstLevelInvitedUsers;
} }
......
...@@ -518,7 +518,7 @@ public class AdministratorServiceImpl implements AdministratorService { ...@@ -518,7 +518,7 @@ public class AdministratorServiceImpl implements AdministratorService {
List<Account> accounts = accountRepository.findAllByPromotionCodeAndParentIsNull(account.getPromotion().getCode()); List<Account> accounts = accountRepository.findAllByPromotionCodeAndParentIsNull(account.getPromotion().getCode());
// promotion 用来存储所有用户的消费信息 // promotion 用来存储所有用户的消费信息
PromotionInfoDto promotionInfoDto = new PromotionInfoDto(); PromotionInfoDto promotionInfoDto = new PromotionInfoDto(0, 0, 0, 0, 0.0, 0, 0);
try { try {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
Date beginTime = formatter.parse(beginDate); Date beginTime = formatter.parse(beginDate);
......
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