| | |
| | | <version>2.8.2.RELEASE</version> |
| | | |
| | | <properties> |
| | | <bladex.project.id>blade-api</bladex.project.id> |
| | | <bladex.project.id>zhxy</bladex.project.id> |
| | | <bladex.project.version>2.8.2.RELEASE</bladex.project.version> |
| | | |
| | | <java.version>1.8</java.version> |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectArchALL") |
| | | public R selectArchALL() { |
| | | return R.data(architectureService.selectArchALL()); |
| | | public R selectArchALL(ArchitectureVO architecture) { |
| | | return R.data(architectureService.selectArchALL(architecture)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * 校园搜索 |
| | | * |
| | | * @param mechanismName 名称模糊查询 |
| | | * @param campus 所属校区 |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectLook") |
| | | public R selectLook(String mechanismName) { |
| | | public R selectLook(String mechanismName,String campus) { |
| | | List list = new ArrayList(); |
| | | List<Map<Object, Object>> maps = architectureService.selectLook(mechanismName); |
| | | List<Map<Object, Object>> maps = architectureService.selectLook(mechanismName,campus); |
| | | //排除为null的数据 |
| | | List<Map<Object, Object>> list2 = maps.parallelStream().filter(Objects::nonNull).collect(Collectors.toList()); |
| | | // for (int i = 0; i < list2.size(); i++) { |
| | |
| | | */ |
| | | @GetMapping("/url") |
| | | public void url() throws IOException, ServerException, InsufficientDataException, NoSuchAlgorithmException, InternalException, InvalidResponseException, XmlParserException, InvalidKeyException, ErrorResponseException { |
| | | List<Architecture> list = architectureService.selectArchALL(); |
| | | List<Architecture> list = architectureService.selectArchALL(null); |
| | | for (Architecture architecture : list) { |
| | | int index = architecture.getCodeurl().lastIndexOf(",") +1; |
| | | String substring = architecture.getCodeurl().substring(index); |
| | |
| | | */ |
| | | @GetMapping("/refreshCode") |
| | | public void refreshCode() throws IOException, ServerException, InsufficientDataException, NoSuchAlgorithmException, InternalException, InvalidResponseException, XmlParserException, InvalidKeyException, ErrorResponseException { |
| | | List<Architecture> list = architectureService.selectArchALL(); |
| | | List<Architecture> list = architectureService.selectArchALL(null); |
| | | for (Architecture architecture : list) { |
| | | int index = architecture.getCodeurl().lastIndexOf(",") +1; |
| | | String substring = architecture.getCodeurl().substring(index); |
| | |
| | | */ |
| | | package org.springblade.modules.architecture.mapper; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.architecture.entity.Architecture; |
| | | import org.springblade.modules.architecture.vo.ArchitectureVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | Map<Object,Object> selectInArchite(String id); |
| | | |
| | | List selectArch(); |
| | | List<Architecture> selectArchALL(); |
| | | List<Architecture> selectArchALL(@Param("architecture") ArchitectureVO architecture); |
| | | String selectIns(String id); |
| | | List<Map<Object,Object>> selectAll(String mechanismName); |
| | | List<Map<Object,Object>> selectLook(String mechanismName); |
| | | /** |
| | | * 校园搜索 |
| | | * |
| | | * @param mechanismName 名称模糊查询 |
| | | * @param campus 所属校区 |
| | | * @return |
| | | */ |
| | | List<Map<Object,Object>> selectLook(String mechanismName,@Param("campus") String campus); |
| | | |
| | | List<Map<Object,Object>> selectVideo(); |
| | | |
| | | } |
| | |
| | | SELECT id,jd, wd, mechanismName AS mechanismname, tpUrl AS tpurl, codeUrl AS codeurl, introduce, panoramaurl,x |
| | | FROM sys_architecture |
| | | WHERE is_deleted = 0 |
| | | -- UNION |
| | | -- SELECT jd, wd, mechanismName AS mechanismname, tpUrl AS tpurl, codeUrl AS codeurl, introduce, panoramaurl |
| | | -- FROM sys_mechanism |
| | | -- WHERE is_deleted = 0 |
| | | <if test="architecture.campus!=null and architecture.campus!=''"> |
| | | and campus = #{architecture.campus} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectIns" resultType="java.lang.String"> |
| | |
| | | panoramaurl |
| | | FROM sys_architecture |
| | | WHERE mechanismName LIKE '%${mechanismName}%' |
| | | and campus = #{campus} |
| | | AND is_deleted = 0 |
| | | UNION |
| | | SELECT mechanismName AS mechanismname, |
| | |
| | | panoramaurl |
| | | FROM sys_mechanism |
| | | WHERE mechanismName LIKE '%${mechanismName}%' |
| | | and campus = #{campus} |
| | | AND is_deleted = 0 |
| | | UNION |
| | | SELECT mechanismName AS mechanismname, |
| | |
| | | panoramaurl |
| | | FROM sys_life |
| | | WHERE mechanismName LIKE '%${mechanismName}%' |
| | | and campus = #{campus} |
| | | AND is_deleted = 0 |
| | | </select> |
| | | </mapper> |
| | |
| | | */ |
| | | Map<Object,Object> selectInArchite(String id); |
| | | List selectArch(); |
| | | List<Architecture> selectArchALL(); |
| | | List<Architecture> selectArchALL(ArchitectureVO architecture); |
| | | String selectIns(String id); |
| | | List<Map<Object,Object>> selectAll(String mechanismName); |
| | | List<Map<Object,Object>> selectLook(String mechanismName); |
| | | /** |
| | | * 校园搜索 |
| | | * |
| | | * @param mechanismName 名称模糊查询 |
| | | * @param campus 所属校区 |
| | | * @return |
| | | */ |
| | | List<Map<Object,Object>> selectLook(String mechanismName,String campus); |
| | | List<Map<Object,Object>> selectVideo(); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Architecture> selectArchALL() { |
| | | return baseMapper.selectArchALL(); |
| | | public List<Architecture> selectArchALL(ArchitectureVO architecture) { |
| | | return baseMapper.selectArchALL(architecture); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return baseMapper.selectAll(mechanismName); |
| | | } |
| | | |
| | | /** |
| | | * 校园搜索 |
| | | * |
| | | * @param mechanismName 名称模糊查询 |
| | | * @param campus 所属校区 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map<Object, Object>> selectLook(String mechanismName) { |
| | | return baseMapper.selectLook(mechanismName); |
| | | public List<Map<Object, Object>> selectLook(String mechanismName,String campus) { |
| | | return baseMapper.selectLook(mechanismName,campus); |
| | | } |
| | | |
| | | @Override |
| | |
| | | private String url; |
| | | private String mapname; |
| | | |
| | | /** |
| | | * 所属校区 |
| | | */ |
| | | @ApiModelProperty(value = "所属校区") |
| | | private String campus; |
| | | |
| | | |
| | | } |
| | |
| | | /** |
| | | * 标签 |
| | | * |
| | | * @param lifetype 生活设施类型 |
| | | * @param life 生活设施类型 |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectList") |
| | | public R selectList(String lifetype) { |
| | | return R.data(lifeService.selectList(lifetype)); |
| | | public R selectList(LifeVO life) { |
| | | return R.data(lifeService.selectList(life)); |
| | | } |
| | | |
| | | } |
| | |
| | | */ |
| | | package org.springblade.modules.life.mapper; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.life.entity.Life; |
| | | import org.springblade.modules.life.vo.LifeVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | * @return |
| | | */ |
| | | List<LifeVO> selectLifePage(IPage page, LifeVO life); |
| | | List selectList(String lifetype); |
| | | |
| | | |
| | | List selectList(@Param("life") LifeVO life); |
| | | |
| | | } |
| | |
| | | select * from sys_life where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <!--查询设施集合--> |
| | | <select id="selectList" resultType="java.util.HashMap"> |
| | | select jd,wd,mechanismName as mechanismname,tpUrl as tpurl,codeUrl as codeurl,introduce,x from sys_life where lifetype=#{lifetype} and is_deleted = 0 |
| | | select |
| | | jd,wd,mechanismName as mechanismname,tpUrl as tpurl,codeUrl as codeurl,introduce,x from |
| | | sys_life |
| | | where is_deleted = 0 |
| | | and lifetype=#{life.lifetype} |
| | | <if test="life.campus!=null and life.campus!=''"> |
| | | and campus = #{life.campus} |
| | | </if> |
| | | </select> |
| | | </mapper> |
| | |
| | | * @return |
| | | */ |
| | | IPage<LifeVO> selectLifePage(IPage<LifeVO> page, LifeVO life); |
| | | List selectList(String lifetype); |
| | | |
| | | /** |
| | | * 查询生活设施 |
| | | * @param life |
| | | * @return |
| | | */ |
| | | List selectList(LifeVO life); |
| | | } |
| | |
| | | return page.setRecords(baseMapper.selectLifePage(page, life)); |
| | | } |
| | | |
| | | /** |
| | | * 查询生活设施 |
| | | * @param life |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List selectList(String lifetype) { |
| | | return baseMapper.selectList(lifetype); |
| | | public List selectList(LifeVO life) { |
| | | return baseMapper.selectList(life); |
| | | } |
| | | |
| | | } |
| | |
| | | String type = URLEncoder.encode(mechanism.getType(), "UTF-8"); |
| | | String mtype = URLEncoder.encode(mechanism.getMtype(), "UTF-8"); |
| | | String loutype = URLEncoder.encode(mechanism.getLoutype(), "UTF-8"); |
| | | String xtype = URLEncoder.encode(mechanism.getXtype(), "UTF-8"); |
| | | String campus = URLEncoder.encode(mechanism.getCampus(), "UTF-8"); |
| | | String heading = URLEncoder.encode(mechanism.getHeading(), "UTF-8"); |
| | | String pitch = URLEncoder.encode(mechanism.getPitch(), "UTF-8"); |
| | | String roll = URLEncoder.encode(mechanism.getRoll(), "UTF-8"); |
| | |
| | | "&type=" + type + |
| | | "&mtype=" + mtype + |
| | | "&loutype=" + loutype + |
| | | "&xtype=" + xtype + |
| | | "&campus=" + campus + |
| | | "&heading=" + heading + |
| | | "&pitch=" + pitch + |
| | | "&roll=" + roll + |
| | |
| | | * 所属校区 |
| | | */ |
| | | @ApiModelProperty(value = "所属校区") |
| | | private String xtype; |
| | | private String campus; |
| | | /** |
| | | * 偏航角 |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectList") |
| | | public R selectList() { |
| | | return R.data(roadService.selectList()); |
| | | public R selectList(RoadVO road) { |
| | | return R.data(roadService.selectList(road)); |
| | | } |
| | | |
| | | |
| | |
| | | * y轴 |
| | | */ |
| | | private String y; |
| | | /** |
| | | * 所属校区 |
| | | */ |
| | | @ApiModelProperty(value = "所属校区") |
| | | private String campus; |
| | | } |
| | |
| | | */ |
| | | package org.springblade.modules.road.mapper; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.road.entity.Road; |
| | | import org.springblade.modules.road.vo.RoadVO; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | |
| | | * @return |
| | | */ |
| | | List<RoadVO> selectRoadPage(IPage page, RoadVO road); |
| | | List selectList(); |
| | | |
| | | List selectList(@Param("road") RoadVO road); |
| | | |
| | | } |
| | |
| | | |
| | | <select id="selectList" resultType="java.util.HashMap"> |
| | | select roadName as roadname,jd,wd,x from sys_road |
| | | where 1=1 |
| | | <if test="road.campus!=null and road.campus!=''"> |
| | | and campus = #{road.campus} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | * @return |
| | | */ |
| | | IPage<RoadVO> selectRoadPage(IPage<RoadVO> page, RoadVO road); |
| | | List selectList(); |
| | | List selectList(RoadVO road); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List selectList() { |
| | | return baseMapper.selectList(); |
| | | public List selectList(RoadVO road) { |
| | | return baseMapper.selectList(road); |
| | | } |
| | | |
| | | } |
| | |
| | | * y轴 |
| | | */ |
| | | private String y; |
| | | /** |
| | | * 所属校区 |
| | | */ |
| | | @ApiModelProperty(value = "所属校区") |
| | | private String campus; |
| | | } |
| | |
| | | * y轴 |
| | | */ |
| | | private String y; |
| | | /** |
| | | * 所属校区 |
| | | */ |
| | | @ApiModelProperty(value = "所属校区") |
| | | private String campus; |
| | | |
| | | } |
| | |
| | | * y轴 |
| | | */ |
| | | private String y; |
| | | /** |
| | | * 所属校区 |
| | | */ |
| | | @ApiModelProperty(value = "所属校区") |
| | | private String campus; |
| | | |
| | | } |
| | |
| | | # nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003 |
| | | # commandTimeout: 5000 |
| | | datasource: |
| | | url: jdbc:mysql://localhost:3306/bladex_boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | url: jdbc:mysql://localhost:3306/zhxy?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | username: root |
| | | password: root |
| | | password: Zhxy@2023 |
| | | |
| | | #第三方登陆 |
| | | social: |
| | |
| | | # url: jdbc:mysql://localhost:3306/bladex_boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | # username: root |
| | | # password: root |
| | | url: jdbc:mysql://192.168.0.126:3306/zhxyys?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | url: jdbc:mysql://127.0.0.1:3308/zhxyys?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true |
| | | username: root |
| | | password: NCzhba@2022 |
| | | password: root |
| | | |
| | | #第三方登陆 |
| | | social: |