Browse Source

设备环境展示 & 支持userId查广告详情

master
nili 5 months ago
parent
commit
babbc91486
  1. 1
      game-service/src/main/java/awesome/group/game/service/bo/AdvRecordQuery.java
  2. 5
      game-service/src/main/java/awesome/group/game/service/bo/citrus/UserBo.java
  3. 3
      game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java

1
game-service/src/main/java/awesome/group/game/service/bo/AdvRecordQuery.java

@ -9,4 +9,5 @@ public class AdvRecordQuery extends PageParam {
public String code; public String code;
public List<String> createdAt; public List<String> createdAt;
public Integer adminId; public Integer adminId;
public Integer userId;
} }

5
game-service/src/main/java/awesome/group/game/service/bo/citrus/UserBo.java

@ -17,6 +17,8 @@ public class UserBo {
public String inviteCode; public String inviteCode;
public String inviteUrl; public String inviteUrl;
public Integer env;
public String wxOpenId;//微信openId public String wxOpenId;//微信openId
public long createdAt; public long createdAt;
@ -37,9 +39,10 @@ public class UserBo {
this.realMoney = u.getRealMoney(); this.realMoney = u.getRealMoney();
this.goldCoin = u.getIncome() - (u.getMoney() * 1000); this.goldCoin = u.getIncome() - (u.getMoney() * 1000);
this.wxOpenId = u.getWxOpenId(); this.wxOpenId = u.getWxOpenId();
this.env = u.getEnv();
this.createdAt = u.getCreatedAt().getTime(); this.createdAt = u.getCreatedAt().getTime();
if(!StringUtils.hasText(nickname)) { if (!StringUtils.hasText(nickname)) {
this.nickname = replaceWithX(this.mobile); this.nickname = replaceWithX(this.mobile);
} }

3
game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java

@ -119,6 +119,9 @@ public class AdminService {
if (StringUtils.hasText(param.deviceId)) { if (StringUtils.hasText(param.deviceId)) {
wrapper.eq("device_id", param.deviceId); wrapper.eq("device_id", param.deviceId);
} }
if(param.userId != null) {
wrapper.eq("user_id", param.userId);
}
if (!CollectionUtils.isEmpty(param.createdAt)) { if (!CollectionUtils.isEmpty(param.createdAt)) {
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
try { try {

Loading…
Cancel
Save