Bläddra i källkod

feat : 推广账号指派

bilingfeng 2 år sedan
förälder
incheckning
4c1df0a484

+ 8 - 0
game-module/game-manage/src/main/java/com/zanxiang/manage/domain/vo/PromoAccountListVO.java

@@ -3,6 +3,8 @@ package com.zanxiang.manage.domain.vo;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
+import java.time.LocalDateTime;
+
 /**
  * @author : lingfeng
  * @time : 2022-11-21
@@ -77,6 +79,12 @@ public class PromoAccountListVO {
     @ApiModelProperty(notes = "推广账号类型名称")
     private String accountTypeName;
 
+    /**
+     * 开始时间
+     */
+    @ApiModelProperty(notes = "开始时间")
+    private LocalDateTime startTime;
+
     /**
      * 备注
      */

+ 6 - 0
game-module/game-manage/src/main/java/com/zanxiang/manage/service/Impl/PromoAccountServiceImpl.java

@@ -90,6 +90,12 @@ public class PromoAccountServiceImpl extends ServiceImpl<PromoAccountMapper, Pro
         if (promoMediaDTO != null) {
             promoAccountListVO.setMediaName(promoMediaDTO.getName());
         }
+        PromoAccountLog promoAccountLog = promoAccountLogService.getOne(new LambdaQueryWrapper<PromoAccountLog>()
+                .eq(PromoAccountLog::getAccountId, promoAccountListVO.getId())
+                .isNull(PromoAccountLog::getEndTime));
+        if (promoAccountLog != null) {
+            promoAccountListVO.setStartTime(promoAccountLog.getStartTime());
+        }
         promoAccountListVO.setAccountTypeName(PromoAccountTypeEnum.getNameByType(promoAccountListVO.getAccountType()));
         return promoAccountListVO;
     }