startDate 格式修改

This commit is contained in:
苏竹红
2023-12-20 13:38:25 +08:00
parent 8e0e41672d
commit e109a752ba
7 changed files with 22 additions and 5 deletions

View File

@@ -68,6 +68,7 @@ public class CommonConstants {
public static final String SQUAREBRACKETSRIGHT = "]";
public static final String PATH_SPILT = "/";
public static final String PATH_BAR = "-";
public static final String ROOT_REGION_PATH = "/1/";
/**

View File

@@ -322,6 +322,8 @@
start_date as startDate,
close_time as closeTime,
location as location,
closed_type as closedType,
creator as creator,
exhibition_name as exhibitionName,
collaborators as collaboratorStr
from hy_exhibition

View File

@@ -27,6 +27,10 @@ public class ExhibitionDTO {
private String collaboratorStr;
private String creator;
private Integer closedType;
private List<CollaboratorDTO> collaborators;
}

View File

@@ -18,6 +18,10 @@ public class ExhibitionVO {
private String startDate;
private Integer closedType;
private String createId;
private Integer id;
private List<CollaboratorVO> collaborators;

View File

@@ -330,7 +330,9 @@ public class ExhibitionServiceImpl implements ExhibitionService {
list.forEach(exhibitionDTO->{
ExhibitionVO exhibitionVO = new ExhibitionVO();
exhibitionVO.setExhibitionName(exhibitionDTO.getExhibitionName());
exhibitionVO.setStartDate(exhibitionDTO.getStartDate());
exhibitionVO.setCreateId(exhibitionDTO.getCreator());
exhibitionVO.setClosedType(exhibitionDTO.getClosedType());
exhibitionVO.setStartDate(exhibitionDTO.getStartDate().replace(CommonConstants.PATH_BAR,CommonConstants.PATH_SPILT));
exhibitionVO.setId(exhibitionDTO.getId());
exhibitionVOS.add(exhibitionVO);
});
@@ -368,7 +370,7 @@ public class ExhibitionServiceImpl implements ExhibitionService {
exhibitionDTOS.forEach(exhibitionDTO->{
ExhibitionVO exhibitionVO = new ExhibitionVO();
exhibitionVO.setExhibitionName(exhibitionDTO.getExhibitionName());
exhibitionVO.setStartDate(exhibitionDTO.getStartDate());
exhibitionVO.setStartDate(exhibitionDTO.getStartDate().replace(CommonConstants.PATH_BAR,CommonConstants.PATH_SPILT));
exhibitionVO.setLocation(exhibitionDTO.getLocation());
exhibitionVO.setId(exhibitionDTO.getId());
//需要加载协作人才加载 不需要的时候 不加载

View File

@@ -1,4 +1,8 @@
spring.cloud.nacos.discovery.server-addr=10.0.0.192:8848
spring.cloud.nacos.config.server-addr=10.0.0.192:8848
#spring.cloud.nacos.discovery.server-addr=10.0.0.192:8848
#spring.cloud.nacos.config.server-addr=10.0.0.192:8848
#spring.cloud.nacos.config.file-extension=properties
#spring.cloud.nacos.config.namespace=ca99b6a9-b48c-4575-9d07-fc50132b3122
spring.cloud.nacos.discovery.server-addr=120.92.151.10:8848
spring.cloud.nacos.config.server-addr=120.92.151.10:8848
spring.cloud.nacos.config.file-extension=properties
spring.cloud.nacos.config.namespace=ca99b6a9-b48c-4575-9d07-fc50132b3122

View File

@@ -1,5 +1,5 @@
spring.application.name=hsay-partner-webb
spring.profiles.active=dev
spring.profiles.active=pre
server.port=31000
server.servlet.context-path=/partner/pc