Bladeren bron

feat : 推广账号指派调试修改

bilingfeng 2 jaren geleden
bovenliggende
commit
fa5472ef69

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

@@ -3,7 +3,7 @@ package com.zanxiang.manage.domain.vo;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
-import java.time.LocalDateTime;
+import java.time.LocalDate;
 
 /**
  * @author : lingfeng
@@ -83,7 +83,7 @@ public class PromoAccountListVO {
      * 开始时间
      */
     @ApiModelProperty(notes = "开始时间")
-    private LocalDateTime startTime;
+    private LocalDate startTime;
 
     /**
      * 备注

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

@@ -94,7 +94,7 @@ public class PromoAccountServiceImpl extends ServiceImpl<PromoAccountMapper, Pro
                 .eq(PromoAccountLog::getAccountId, promoAccountListVO.getId())
                 .isNull(PromoAccountLog::getEndTime));
         if (promoAccountLog != null) {
-            promoAccountListVO.setStartTime(promoAccountLog.getStartTime());
+            promoAccountListVO.setStartTime(promoAccountLog.getStartTime() == null ? null : promoAccountLog.getStartTime().toLocalDate());
         }
         promoAccountListVO.setAccountTypeName(PromoAccountTypeEnum.getNameByType(promoAccountListVO.getAccountType()));
         return promoAccountListVO;