添加显示字段

master
bynt 1 year ago
parent 67510721a5
commit c1ad05aac7

@ -112,8 +112,6 @@ public class CustomServiceImpl extends ExtendServiceImpl<CustomMapper, CustomEnt
BeanUtils.copyProperties(customStore, customStoreVO); BeanUtils.copyProperties(customStore, customStoreVO);
if (map.containsKey(customStoreVO.getStoreId())) { if (map.containsKey(customStoreVO.getStoreId())) {
customStoreVO.setStoreName(map.get(customStoreVO.getStoreId()).get(0).getStoreName()); customStoreVO.setStoreName(map.get(customStoreVO.getStoreId()).get(0).getStoreName());
customStoreVO.setTradeStartTime(map.get(customStoreVO.getStoreId()).get(0).getTradeStartTime());
customStoreVO.setTradeEndTime(map.get(customStoreVO.getStoreId()).get(0).getTradeEndTime());
} }
customStoreVOList.add(customStoreVO); customStoreVOList.add(customStoreVO);
} }

@ -1,5 +1,7 @@
package com.baiye.modules.distribute.vo; package com.baiye.modules.distribute.vo;
import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
@ -51,6 +53,7 @@ public class CustomVO {
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "分发时间") @Schema(description = "分发时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DatePattern.NORM_DATETIME_PATTERN, timezone = "GMT+8")
private Date distributeTime; private Date distributeTime;
@Schema(title = "门店信息") @Schema(title = "门店信息")

Loading…
Cancel
Save