Skip to content

Commit

Permalink
修复 banner 返回字段不对
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Oct 24, 2023
1 parent c11300d commit 3a9ac56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - Banner Response VO")
@Data
@ToString(callSuper = true)
Expand All @@ -12,4 +14,7 @@ public class BannerRespVO extends BannerBaseVO {
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
private Long id;

@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "2022-07-01 23:59:59")
private LocalDateTime createTime;

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import javax.annotation.Resource;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import static cn.iocoder.yudao.framework.common.util.date.LocalDateTimeUtils.addTime;
Expand Down Expand Up @@ -139,7 +138,7 @@ public void testCloseDiscountActivity() {
Long id = dbDiscountActivity.getId();

// 调用
discountActivityService.closeRewardActivity(id);
discountActivityService.closeDiscountActivity(id);
// 校验状态
DiscountActivityDO discountActivity = discountActivityMapper.selectById(id);
assertEquals(discountActivity.getStatus(), PromotionActivityStatusEnum.CLOSE.getStatus());
Expand Down

0 comments on commit 3a9ac56

Please sign in to comment.