提交 2e11e5d6 authored 作者: 朱运伟's avatar 朱运伟

数字公路

上级 6dd64a05
package com.elephant.framework.galaxy.aroad.module.indexES.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* elasticsearch索引表
*
* @author wangjian
* @date 2019-05-14 10:24:55
*/
@Data
@TableName("baseindexdata")
@EqualsAndHashCode(callSuper = true)
public class Baseindexdata extends Model<Baseindexdata> {
private static final long serialVersionUID = 1L;
/**
* 序号
*/
@TableId
private Integer id;
/**
* elasticsearch索引的名称
*/
private String indexName;
/**
* elasticsearch类型名称
*/
private String indexType;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 备注
*/
private String beizhu;
}
package com.elephant.framework.galaxy.aroad.module.indexES.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.indexES.entity.Baseindexdata;
import org.apache.ibatis.annotations.Param;
/**
* elasticsearch索引表
*
* @author wangjian
* @date 2019-05-14 10:24:55
*/
public interface BaseindexdataMapper extends BaseMapper<Baseindexdata> {
/**
* 根据表名查询最新数据
* @param tableName
* @return
*/
Baseindexdata selectLatesByTableName(@Param("name") String tableName);
}
package com.elephant.framework.galaxy.aroad.module.indexES.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.indexES.entity.Baseindexdata;
/**
* elasticsearch索引表
*
* @author wangjian
* @date 2019-05-14 10:24:55
*/
public interface BaseindexdataService extends IService<Baseindexdata> {
Baseindexdata selectLatesByTableName(String tableName);
}
package com.elephant.framework.galaxy.aroad.module.indexES.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.indexES.entity.Baseindexdata;
import com.elephant.framework.galaxy.aroad.module.indexES.mapper.BaseindexdataMapper;
import com.elephant.framework.galaxy.aroad.module.indexES.service.BaseindexdataService;
import com.elephant.framework.galaxy.aroad.module.zhjc.mapper.ZhjcGhjhGhxmMapper;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
/**
* elasticsearch索引表
*
* @author wangjian
* @date 2019-05-14 10:24:55
*/
@Service
@AllArgsConstructor
public class BaseindexdataServiceImpl extends ServiceImpl<BaseindexdataMapper, Baseindexdata> implements BaseindexdataService {
private final BaseindexdataMapper baseindexdataMapper;
@Override
public Baseindexdata selectLatesByTableName(String tableName) {
return baseindexdataMapper.selectLatesByTableName(tableName);
}
}
......@@ -3,6 +3,10 @@ package com.elephant.framework.galaxy.aroad.module.szgl.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.bigdata.*;
import com.elephant.framework.galaxy.aroad.module.codegen.response.R;
import com.elephant.framework.galaxy.aroad.module.indexES.entity.Baseindexdata;
import com.elephant.framework.galaxy.aroad.module.indexES.mapper.BaseindexdataMapper;
import com.elephant.framework.galaxy.aroad.module.indexES.service.BaseindexdataService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
......@@ -15,7 +19,10 @@ import java.util.Map;
@RestController
@RequestMapping("/szgl")
@AllArgsConstructor
public class SzglController {
private final BaseindexdataService baseindexdataService;
/**
* 全局搜索路段、收费站、桥梁、隧道
* @Param keyword 搜索条件
......@@ -23,21 +30,14 @@ public class SzglController {
@GetMapping("/bigdata")
public R getBigData(String keyword, Page page) throws Exception {
List<Map<String,Object>> responseList = new ArrayList<>();
Baseindexdata ql = baseindexdataService.selectLatesByTableName("basebridgealldata");
Baseindexdata lx = baseindexdataService.selectLatesByTableName("basehighwayalldata");
Baseindexdata sd = baseindexdataService.selectLatesByTableName("basetunnelalldata");
long total = 0;
// 桥梁
Map<String,Object> luKeBridges = EsUtil_fanshe.queryBridge(keyword, "basebridgealldata", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
for(Basebridgealldata lnKeBridge : (List<Basebridgealldata>)luKeBridges.get("list")){
responseList.add(new HashMap<String,Object>(){{
put("name",lnKeBridge.getQiaoliangmingcheng());
put("iden","qiaoliang");
put("idenVal", "桥梁");
put("data", lnKeBridge);
}});
}
total+=(long)luKeBridges.get("total");
// 路线
// ArrayList<Basehighwayalldata> basehighwayalldataList = EsUtil_fanshe.queryHighWayLXBH(keyword, "basehighwayalldata", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
Map<String,Object> lukehighways = EsUtil_fanshe.queryHighWay(keyword, "basehighwayalldata", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
Map<String,Object> lukehighways = EsUtil_fanshe.queryHighWay(keyword, "basehighwayalldata", lx.getIndexType(), (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
for(Basehighwayalldata basehighwayalldata : (List<Basehighwayalldata>)lukehighways.get("list")){
responseList.add(new HashMap<String,Object>(){{
put("name",basehighwayalldata.getLuxianmingcheng());
......@@ -48,8 +48,20 @@ public class SzglController {
}});
}
total+=(long)lukehighways.get("total");
// 桥梁
Map<String,Object> luKeBridges = EsUtil_fanshe.queryBridge(keyword, "basebridgealldata", ql.getIndexType(), (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
for(Basebridgealldata lnKeBridge : (List<Basebridgealldata>)luKeBridges.get("list")){
responseList.add(new HashMap<String,Object>(){{
put("name",lnKeBridge.getQiaoliangmingcheng());
put("iden","qiaoliang");
put("idenVal", "桥梁");
put("data", lnKeBridge);
}});
}
total+=(long)luKeBridges.get("total");
// 隧道
Map<String,Object> basicTunnels = EsUtil_fanshe.queryTunnel(keyword, "basetunnelalldata", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
Map<String,Object> basicTunnels = EsUtil_fanshe.queryTunnel(keyword, "basetunnelalldata", sd.getIndexType(), (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
for(Basetunnelalldata basicTunnel : (List<Basetunnelalldata>)basicTunnels.get("list")){
responseList.add(new HashMap<String,Object>(){{
put("name",basicTunnel.getSuidaomingcheng());
......@@ -60,29 +72,29 @@ public class SzglController {
}});
}
total+=(long)basicTunnels.get("total");
// 收费站
Map<String,Object> baseRoadTollStrings = EsUtil_fanshe.queryBaseRoadTollString(keyword, "baseroadtolldata", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
for(BaseRoadToll_String baseRoadToll_String : (List<BaseRoadToll_String>)baseRoadTollStrings.get("list")){
responseList.add(new HashMap<String,Object>(){{
put("name",baseRoadToll_String.getShortName());
put("iden","shoufeizhan");
put("idenVal", "收费站");
put("data", baseRoadToll_String);
put("total", baseRoadTollStrings.get("total"));
}});
}
total+=(long)baseRoadTollStrings.get("total");
// 服务区
Map<String,Object> baseHighWayServices = EsUtil_fanshe.queryBaseHighWayService(keyword, "basehighwayservice", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
for(BaseHighWayService baseHighWayService : (List<BaseHighWayService>)baseHighWayServices.get("list")){
responseList.add(new HashMap<String,Object>(){{
put("name",baseHighWayService.getFwssmc());
put("iden","fuwuqu");
put("idenVal", "服务区");
put("data", baseHighWayService);
}});
}
total+=(long)baseHighWayServices.get("total");
// // 收费站
// Map<String,Object> baseRoadTollStrings = EsUtil_fanshe.queryBaseRoadTollString(keyword, "baseroadtolldata", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
// for(BaseRoadToll_String baseRoadToll_String : (List<BaseRoadToll_String>)baseRoadTollStrings.get("list")){
// responseList.add(new HashMap<String,Object>(){{
// put("name",baseRoadToll_String.getShortName());
// put("iden","shoufeizhan");
// put("idenVal", "收费站");
// put("data", baseRoadToll_String);
// put("total", baseRoadTollStrings.get("total"));
// }});
// }
// total+=(long)baseRoadTollStrings.get("total");
// // 服务区
// Map<String,Object> baseHighWayServices = EsUtil_fanshe.queryBaseHighWayService(keyword, "basehighwayservice", "2018", (int)((page.getCurrent()-1)*page.getSize()), (int)page.getSize());
// for(BaseHighWayService baseHighWayService : (List<BaseHighWayService>)baseHighWayServices.get("list")){
// responseList.add(new HashMap<String,Object>(){{
// put("name",baseHighWayService.getFwssmc());
// put("iden","fuwuqu");
// put("idenVal", "服务区");
// put("data", baseHighWayService);
// }});
// }
// total+=(long)baseHighWayServices.get("total");
Map<String,Object> responseMap = new HashMap<>();
responseMap.put("result",responseList);
responseMap.put("total",total);
......@@ -124,4 +136,59 @@ public class SzglController {
// ArrayList<BaseRoadToll_String> baseRoadTollStrings = EsUtil_fanshe.queryBaseRoadTollString(keyword, "baseroadtolldata", "2018", 0, 2000000000);
// return new R<>(baseRoadTollStrings);
// }
/**
* 获取普通国省道隧道
* @return
*/
@GetMapping("/getSdList")
public R getSdList(Page page) throws Exception {
int start =0;
int row =10000000;
if (page!=null){
start = (int)((page.getCurrent()-1)*page.getSize());
row = (int)(page.getSize());
}
Baseindexdata data = baseindexdataService.selectLatesByTableName("basetunnelalldata");
List<Basetunnelalldata> sdList = EsUtil_fanshe.queryTunnelAll("basetunnelalldata",data.getIndexType(),start,row);
return new R(sdList);
}
/**
* 获取普通国省道收费站
* @return
*/
@GetMapping("/getFwqList")
public R getFwqList(Page page) throws Exception {
int start =0;
int row =10000000;
if (page!=null){
start = (int)((page.getCurrent()-1)*page.getSize());
row = (int)(page.getSize());
}
Baseindexdata data = baseindexdataService.selectLatesByTableName("basehighwayservice");
List<BaseHighWayService> fwqList = EsUtil_fanshe.queryBaseHighWayServiceAll("basehighwayservice",data.getIndexType(),start,row);
return new R(fwqList);
}
/**
* 获取普通国省道收费站
* @return
*/
@GetMapping("/getSfzList")
public R getSfzList(Page page) throws Exception {
int start =0;
int row =10000000;
if (page!=null){
start = (int)((page.getCurrent()-1)*page.getSize());
row = (int)(page.getSize());
}
Baseindexdata data = baseindexdataService.selectLatesByTableName("baseroadtolldata");
List<BaseRoadToll_String> sfzList = EsUtil_fanshe.queryBaseRoadTollStringAll("baseroadtolldata",data.getIndexType(),start,row);
return new R(sfzList);
}
}
package com.elephant.framework.galaxy.aroad.module.szgl.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdGczService;
import com.elephant.framework.galaxy.aroad.response.R;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 数字公路-观测站
*
* @author zyw
* @date 2019-05-13 11:08:50
*/
@RestController
@AllArgsConstructor
@RequestMapping("/szgl/szglgsdgcz")
public class SzglGsdGczController extends BaseController {
private final SzglGsdGczService szglGsdGczService;
/**
* 查询全部观测站
*
* @param page
* @return
*/
@GetMapping("/page")
public R getSzglGsdGczPage(Page page) {
QueryWrapper<SzglGsdGcz> queryWrapper = new QueryWrapper<>();
queryWrapper.ne("jsdj","高速公路");
return new R<>(szglGsdGczService.page(page,queryWrapper));
}
/**
* 查询全部观测站
*
* @param szglGsdGcz 数字公路-观测站
* @return
*/
@GetMapping("/all")
public R getGczList(SzglGsdGcz szglGsdGcz) {
QueryWrapper<SzglGsdGcz> queryWrapper = new QueryWrapper<>();
queryWrapper.ne("jsdj","高速公路");
return new R<>(szglGsdGczService.list(queryWrapper));
}
}
package com.elephant.framework.galaxy.aroad.module.szgl.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.response.R;
import com.elephant.framework.galaxy.aroad.module.common.annotation.SysLog;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdLxjj;
import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdLxjjService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;
/**
* 数字公路-路线简介
*
* @author zyw
* @date 2019-05-13 11:10:24
*/
@RestController
@AllArgsConstructor
@RequestMapping("/szgl/szglgsdlxjj")
public class SzglGsdLxjjController extends BaseController {
private final SzglGsdLxjjService szglGsdLxjjService;
/**
* 通过id查询数字公路-路线简介
* @param szglGsdLxjj szglGsdLxjj
* @return R
*/
@GetMapping("/getLxjj")
public R getLxjjByLxbh( SzglGsdLxjj szglGsdLxjj){
return new R<>(szglGsdLxjjService.getOne(Wrappers.query(szglGsdLxjj)));
}
}
package com.elephant.framework.galaxy.aroad.module.szgl.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.response.R;
import com.elephant.framework.galaxy.aroad.module.common.annotation.SysLog;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdSpdw;
import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdSpdwService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;
/**
* 数字公路-视频点
*
* @author zyw
* @date 2019-05-13 11:10:42
*/
@RestController
@AllArgsConstructor
@RequestMapping("/szgl/szglgsdspdw")
public class SzglGsdSpdwController extends BaseController {
private final SzglGsdSpdwService szglGsdSpdwService;
/**
* 分页查询
* @param page 数字公路-视频点
* @return
*/
@GetMapping("/page")
public R getSzglGsdSpdwPage(Page page,SzglGsdSpdw szglGsdSpdw) {
return new R<>(szglGsdSpdwService.page(page,Wrappers.query(szglGsdSpdw)));
}
/**
* 分页查询
* @param szglGsdSpdw 数字公路-视频点
* @return
*/
@GetMapping("/all")
public R getSpdAll(SzglGsdSpdw szglGsdSpdw) {
return new R<>(szglGsdSpdwService.list(Wrappers.query(szglGsdSpdw)));
}
/**
* 通过id查询数字公路-视频点
* @param id id
* @return R
*/
@GetMapping("/{id}")
public R getById(@PathVariable("id") Integer id){
return new R<>(szglGsdSpdwService.getById(id));
}
}
package com.elephant.framework.galaxy.aroad.module.szgl.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 数字公路-观测站
*
* @author zyw
* @date 2019-05-13 11:08:50
*/
@Data
@TableName("t_szgl_gsd_gcz")
@EqualsAndHashCode(callSuper = true)
public class SzglGsdGcz extends Model<SzglGsdGcz> {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 观测站编号
*/
private String gczbh;
/**
* 观测站名称
*/
private String gczmc;
/**
* 路线编号
*/
private String lxbh;
/**
* 路线名称
*/
private String lxmc;
/**
* 行政区划
*/
private String xzqh;
/**
* 观测站类型
*/
private String gczlx;
/**
* 观测站桩号(KM)
*/
private Double gczzh;
/**
* 起点粧号(KM)
*/
private Double qdzh;
/**
* 终点桩号(KM)
*/
private Double zdzh;
/**
* 观测里程(KM)
*/
private Double gclc;
/**
* 起点名称
*/
private String qdmc;
/**
* 终点名称
*/
private String zdmc;
/**
* 技术等级
*/
private String jsdj;
/**
* 行车道数
*/
private Integer xcds;
/**
* 面层类型
*/
private String mclx;
/**
* 路面宽度(M)
*/
private Double lmkd;
/**
* 设计时速(KM/H)
*/
private Integer sjss;
/**
* 地形
*/
private String dx;
/**
* 停测月份
*/
private String tcyf;
/**
* 路线编码
*/
private String lxbm;
/**
* 桩号
*/
private Double zh;
/**
* 经度
*/
private Double jd;
/**
* 纬度
*/
private Double wd;
/**
* 国道或省道
*/
private String gs;
/**
*
*/
private Integer nian;
}
package com.elephant.framework.galaxy.aroad.module.szgl.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 数字公路-路线简介
*
* @author zyw
* @date 2019-05-13 11:10:24
*/
@Data
@TableName("t_szgl_gsd_lxjj")
@EqualsAndHashCode(callSuper = true)
public class SzglGsdLxjj extends Model<SzglGsdLxjj> {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 路线编号
*/
private String lxbh;
/**
* 路线名称
*/
private String lxmc;
/**
* 起点名称
*/
private String qdmc;
/**
* 止点名称
*/
private String zdmc;
/**
* 起点桩号
*/
private Double qdzh;
/**
* 止点桩号
*/
private Double zdzh;
/**
* 里程
*/
private Double lc;
/**
* 途径地市
*/
private String tjcs;
}
package com.elephant.framework.galaxy.aroad.module.szgl.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 数字公路-视频点
*
* @author zyw
* @date 2019-05-13 11:10:42
*/
@Data
@TableName("t_szgl_gsd_spdw")
@EqualsAndHashCode(callSuper = true)
public class SzglGsdSpdw extends Model<SzglGsdSpdw> {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 地区名称
*/
private String dqmc;
/**
* 路线编号
*/
private String lxbh;
/**
* 桩号1
*/
private String zh1;
/**
* 名称
*/
private String mc;
/**
* 管理单位
*/
private String gldw;
/**
* 是否通畅
*/
private String sftc;
/**
* 清晰度
*/
private String qxd;
/**
* 备注
*/
private String bz;
/**
* 路线编码
*/
private String lxbm;
/**
* 桩号
*/
private Double zh;
/**
* 经度
*/
private Double jd;
/**
* 纬度
*/
private Double wd;
}
package com.elephant.framework.galaxy.aroad.module.szgl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
/**
* 数字公路-观测站
*
* @author zyw
* @date 2019-05-13 11:08:50
*/
public interface SzglGsdGczMapper extends BaseMapper<SzglGsdGcz> {
}
package com.elephant.framework.galaxy.aroad.module.szgl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdLxjj;
/**
* 数字公路-路线简介
*
* @author zyw
* @date 2019-05-13 11:10:24
*/
public interface SzglGsdLxjjMapper extends BaseMapper<SzglGsdLxjj> {
}
package com.elephant.framework.galaxy.aroad.module.szgl.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdSpdw;
/**
* 数字公路-视频点
*
* @author zyw
* @date 2019-05-13 11:10:42
*/
public interface SzglGsdSpdwMapper extends BaseMapper<SzglGsdSpdw> {
}
package com.elephant.framework.galaxy.aroad.module.szgl.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
/**
* 数字公路-观测站
*
* @author zyw
* @date 2019-05-13 11:08:50
*/
public interface SzglGsdGczService extends IService<SzglGsdGcz> {
}
package com.elephant.framework.galaxy.aroad.module.szgl.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdLxjj;
/**
* 数字公路-路线简介
*
* @author zyw
* @date 2019-05-13 11:10:24
*/
public interface SzglGsdLxjjService extends IService<SzglGsdLxjj> {
}
package com.elephant.framework.galaxy.aroad.module.szgl.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdSpdw;
/**
* 数字公路-视频点
*
* @author zyw
* @date 2019-05-13 11:10:42
*/
public interface SzglGsdSpdwService extends IService<SzglGsdSpdw> {
}
package com.elephant.framework.galaxy.aroad.module.szgl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
import com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdGczMapper;
import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdGczService;
import org.springframework.stereotype.Service;
/**
* 数字公路-观测站
*
* @author zyw
* @date 2019-05-13 11:08:50
*/
@Service
public class SzglGsdGczServiceImpl extends ServiceImpl<SzglGsdGczMapper, SzglGsdGcz> implements SzglGsdGczService {
}
package com.elephant.framework.galaxy.aroad.module.szgl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdLxjj;
import com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdLxjjMapper;
import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdLxjjService;
import org.springframework.stereotype.Service;
/**
* 数字公路-路线简介
*
* @author zyw
* @date 2019-05-13 11:10:24
*/
@Service
public class SzglGsdLxjjServiceImpl extends ServiceImpl<SzglGsdLxjjMapper, SzglGsdLxjj> implements SzglGsdLxjjService {
}
package com.elephant.framework.galaxy.aroad.module.szgl.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdSpdw;
import com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdSpdwMapper;
import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdSpdwService;
import org.springframework.stereotype.Service;
/**
* 数字公路-视频点
*
* @author zyw
* @date 2019-05-13 11:10:42
*/
@Service
public class SzglGsdSpdwServiceImpl extends ServiceImpl<SzglGsdSpdwMapper, SzglGsdSpdw> implements SzglGsdSpdwService {
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elephant.framework.galaxy.aroad.module.indexES.mapper.BaseindexdataMapper">
<resultMap id="baseindexdataMap" type="com.elephant.framework.galaxy.aroad.module.indexES.entity.Baseindexdata">
<id property="id" column="id"/>
<result property="indexName" column="index_name"/>
<result property="indexType" column="index_type"/>
<result property="createTime" column="create_time"/>
<result property="beizhu" column="beizhu"/>
</resultMap>
<select id="selectLatesByTableName" resultMap="baseindexdataMap">
select index_name,index_type,create_time from baseindexdata
where create_time =(select max(create_time) from baseindexdata where index_name =#{name})
</select>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdGczMapper">
<resultMap id="szglGsdGczMap" type="com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz">
<id property="id" column="id"/>
<result property="gczbh" column="gczbh"/>
<result property="gczmc" column="gczmc"/>
<result property="lxbh" column="lxbh"/>
<result property="lxmc" column="lxmc"/>
<result property="xzqh" column="xzqh"/>
<result property="gczlx" column="gczlx"/>
<result property="gczzh" column="gczzh"/>
<result property="qdzh" column="qdzh"/>
<result property="zdzh" column="zdzh"/>
<result property="gclc" column="gclc"/>
<result property="qdmc" column="qdmc"/>
<result property="zdmc" column="zdmc"/>
<result property="jsdj" column="jsdj"/>
<result property="xcds" column="xcds"/>
<result property="mclx" column="mclx"/>
<result property="lmkd" column="lmkd"/>
<result property="sjss" column="sjss"/>
<result property="dx" column="dx"/>
<result property="tcyf" column="tcyf"/>
<result property="lxbm" column="lxbm"/>
<result property="zh" column="zh"/>
<result property="jd" column="jd"/>
<result property="wd" column="wd"/>
<result property="gs" column="gs"/>
<result property="nian" column="nian"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdLxjjMapper">
<resultMap id="szglGsdLxjjMap" type="com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdLxjj">
<id property="id" column="id"/>
<result property="lxbh" column="lxbh"/>
<result property="lxmc" column="lxmc"/>
<result property="qdmc" column="qdmc"/>
<result property="zdmc" column="zdmc"/>
<result property="qdzh" column="qdzh"/>
<result property="zdzh" column="zdzh"/>
<result property="lc" column="lc"/>
<result property="tjcs" column="tjcs"/>
</resultMap>
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdSpdwMapper">
<resultMap id="szglGsdSpdwMap" type="com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdSpdw">
<id property="id" column="id"/>
<result property="dqmc" column="dqmc"/>
<result property="lxbh" column="lxbh"/>
<result property="zh1" column="zh1"/>
<result property="mc" column="mc"/>
<result property="gldw" column="gldw"/>
<result property="sftc" column="sftc"/>
<result property="qxd" column="qxd"/>
<result property="bz" column="bz"/>
<result property="lxbm" column="lxbm"/>
<result property="zh" column="zh"/>
<result property="jd" column="jd"/>
<result property="wd" column="wd"/>
</resultMap>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论