|
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
+import org.jeecg.common.system.vo.DictModel;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.modules.app.service.IDetailService;
|
|
|
import org.jeecg.modules.app.vo.CourseInfoVO;
|
|
@@ -15,6 +16,7 @@ import org.jeecg.modules.system.app.mapper.*;
|
|
|
import org.jeecg.modules.system.app.utils.TimeRangeFinder;
|
|
|
import org.jeecg.modules.system.app.vo.time.NextSevenDayVo;
|
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
|
+import org.jeecg.modules.system.mapper.SysDictMapper;
|
|
|
import org.jeecg.modules.system.mapper.SysUserMapper;
|
|
|
import org.jeecg.modules.system.util.PositionUtil;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -29,6 +31,8 @@ import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
+import static org.jeecg.modules.system.constant.DefIndexConst.FACILITY_INFO;
|
|
|
+
|
|
|
@Service
|
|
|
@Log4j2
|
|
|
public class DetailServiceImpl implements IDetailService {
|
|
@@ -52,11 +56,23 @@ public class DetailServiceImpl implements IDetailService {
|
|
|
private AppCategoryMapper appCategoryMapper;
|
|
|
@Resource
|
|
|
private SysUserMapper sysUserMapper;
|
|
|
+ @Resource
|
|
|
+ private SysDictMapper sysDictMapper;
|
|
|
|
|
|
@Override
|
|
|
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<>();
|
|
|
+ Arrays.stream(placeInfo.getFacility().split(",")).forEach(facility -> {
|
|
|
+ dictModels.forEach(dictModel -> {
|
|
|
+ if(facility.equals(dictModel.getValue())){
|
|
|
+ facilityInfo.add(dictModel.getTitle());
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+ placeInfo.setFacilityInfo(facilityInfo);
|
|
|
List<PlaceInfoVO.InstructorVO> instructorVOList = new ArrayList<>();
|
|
|
List<AppInstructor> appInstructors = appInstructorMapper.selectList(Wrappers.<AppInstructor>lambdaQuery()
|
|
|
.eq(AppInstructor::getOrgCode, appSite.getOrgCode()));
|