|
@@ -78,6 +78,7 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
public PlaceInfoVO getPlaceInfo(String id) {
|
|
|
AppSite appSite = appSiteMapper.selectById(id);
|
|
|
PlaceInfoVO placeInfo = appSiteMapper.getPlaceInfo(id);
|
|
|
+
|
|
|
List<DictModel> dictModels = sysDictMapper.queryDictItemsByCode(FACILITY_INFO);
|
|
|
List<String> facilityInfo = new ArrayList<>();
|
|
|
if(null != placeInfo.getFacility()){
|
|
@@ -109,6 +110,15 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
}
|
|
|
}
|
|
|
placeInfo.setInstructorVOList(instructorVOList);
|
|
|
+ placeInfo.setRunStatus((appSite.getRunStatus() == 0) && (
|
|
|
+ (appSite.getRunType() == 0) ||
|
|
|
+ (appSite.getRunType() == 1 &&
|
|
|
+ appSite.getStartTime() != null &&
|
|
|
+ appSite.getEndTime() != null &&
|
|
|
+ new Date().after(appSite.getStartTime()) &&
|
|
|
+ new Date().before(appSite.getEndTime()))
|
|
|
+ ));
|
|
|
+
|
|
|
if(appSite.getType() == 0){
|
|
|
List<PlaceInfoVO.PlaceInfoMsgVO> placeInfoMsgVOS = new ArrayList<>();
|
|
|
appSitePlaceMapper.selectList(Wrappers.<AppSitePlace>lambdaQuery().eq(AppSitePlace::getSiteId, id)
|