Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常超
map-parent
Commits
4a683c28
Commit
4a683c28
authored
Jul 11, 2021
by
Jbb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图层数据上传功能完善
parent
d0cffb90
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
109 additions
and
13 deletions
+109
-13
common/common_utils/src/main/java/com/founder/commonutils/viewEntity/TbStLayer.java
+31
-0
common/common_utils/src/main/java/com/founder/commonutils/viewEntity/TbStLayerData.java
+19
-1
service/view/src/main/java/com/founder/view/config/MybatisBaseDbConfig.java
+4
-4
service/view/src/main/java/com/founder/view/config/MybatisQgDbConfig.java
+4
-4
service/view/src/main/java/com/founder/view/controller/TbStLayerDataController.java
+0
-0
service/view/src/main/java/com/founder/view/mapper/TbStLayerDataMapper.java
+2
-0
service/view/src/main/java/com/founder/view/mapper/TbStLayerMapper.java
+4
-3
service/view/src/main/java/com/founder/view/mapper/xml/TbStLayerDataMapper.xml
+3
-1
service/view/src/main/java/com/founder/view/mapper/xml/TbStLayerMapper.xml
+5
-0
service/view/src/main/java/com/founder/view/service/TbStLayerDataService.java
+2
-0
service/view/src/main/java/com/founder/view/service/TbStLayerService.java
+9
-0
service/view/src/main/java/com/founder/view/service/impl/TbStLayerDataServiceImpl.java
+8
-0
service/view/src/main/java/com/founder/view/service/impl/TbStLayerServiceImpl.java
+18
-0
No files found.
common/common_utils/src/main/java/com/founder/commonutils/viewEntity/TbStLayer.java
0 → 100644
View file @
4a683c28
package
com
.
founder
.
commonutils
.
viewEntity
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@Accessors
(
chain
=
true
)
@TableName
(
"tb_st_layer"
)
@ApiModel
(
value
=
"图层对象"
,
description
=
"图层信息数据"
)
public
class
TbStLayer
{
@TableId
(
value
=
"xxzjbh"
)
private
String
xxzjbh
;
private
String
name
;
private
Double
threshold
;
private
String
lrr
;
private
String
lrdwdm
;
private
String
lrdwdc
;
private
Date
lrsj
;
private
String
gxr
;
private
String
gxdwdm
;
private
String
gxdwdc
;
private
Date
gxsj
;
}
common/common_utils/src/main/java/com/founder/commonutils/viewEntity/TbStLayerData.java
View file @
4a683c28
...
...
@@ -10,13 +10,15 @@ import java.util.Date;
@EqualsAndHashCode
(
callSuper
=
false
)
@Accessors
(
chain
=
true
)
@TableName
(
"
TB_ST_LAYER_DATA
"
)
@TableName
(
"
tb_st_layer_data
"
)
@ApiModel
(
value
=
"图层数据对象"
,
description
=
"图层数据"
)
public
class
TbStLayerData
implements
Serializable
{
private
String
xxzjbh
;
private
String
gl_xxzjbh
;
private
double
x
;
//经度
private
double
y
;
//纬度
private
String
xStr
;
//保存错误的经度
private
String
yStr
;
//保存错误的纬度
private
String
title
;
//事故提示
private
Date
time
;
//事故时间
...
...
@@ -52,6 +54,22 @@ public class TbStLayerData implements Serializable {
this
.
y
=
y
;
}
public
String
getxStr
()
{
return
xStr
;
}
public
void
setxStr
(
String
xStr
)
{
this
.
xStr
=
xStr
;
}
public
String
getyStr
()
{
return
yStr
;
}
public
void
setyStr
(
String
yStr
)
{
this
.
yStr
=
yStr
;
}
public
String
getTitle
()
{
return
title
;
}
...
...
service/view/src/main/java/com/founder/view/config/MybatisBaseDbConfig.java
View file @
4a683c28
...
...
@@ -16,12 +16,12 @@ import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import
org.springframework.core.io.support.ResourcePatternResolver
;
@Configuration
@MapperScan
(
basePackages
=
{
"com.founder.view.mapper"
},
sqlSessionTemplateRef
=
"xzxtSqlTemplate"
)
/*
@MapperScan(basePackages = {"com.founder.view.mapper"},
sqlSessionTemplateRef = "xzxtSqlTemplate")
*/
public
class
MybatisBaseDbConfig
{
@Bean
(
name
=
"xzxtdbDatasource"
)
/*
@Bean(name = "xzxtdbDatasource")
@ConfigurationProperties(prefix = "spring.datasource.xzxtdb")
public DruidDataSource druidXzxtdbDatasource()
{
...
...
@@ -51,5 +51,5 @@ public class MybatisBaseDbConfig {
SqlSessionFactory sqlSessionFactory)
{
return new SqlSessionTemplate(sqlSessionFactory);
}
}
*/
}
service/view/src/main/java/com/founder/view/config/MybatisQgDbConfig.java
View file @
4a683c28
...
...
@@ -15,11 +15,11 @@ import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import
org.springframework.core.io.support.ResourcePatternResolver
;
@Configuration
@MapperScan
(
basePackages
=
{
"com.founder.view.qgxzMapper"
},
sqlSessionTemplateRef
=
"qgSqlTemplate"
)
/*
@MapperScan(basePackages = {"com.founder.view.qgxzMapper"},
sqlSessionTemplateRef = "qgSqlTemplate")
*/
public
class
MybatisQgDbConfig
{
@Bean
(
name
=
"qgdbDatasource"
)
/*
@Bean(name = "qgdbDatasource")
@ConfigurationProperties(prefix = "spring.datasource.qgdb")
public DruidDataSource druidQgdbDatasource()
{
...
...
@@ -43,5 +43,5 @@ public class MybatisQgDbConfig {
SqlSessionFactory sqlSessionFactory)
{
return new SqlSessionTemplate(sqlSessionFactory);
}
}
*/
}
service/view/src/main/java/com/founder/view/controller/TbStLayerDataController.java
View file @
4a683c28
This diff is collapsed.
Click to expand it.
service/view/src/main/java/com/founder/view/mapper/TbStLayerDataMapper.java
View file @
4a683c28
...
...
@@ -16,4 +16,6 @@ import org.apache.ibatis.annotations.Mapper;
@Mapper
public
interface
TbStLayerDataMapper
extends
BaseMapper
<
TbStLayerData
>
{
void
deleteByGlId
(
String
layerId
);
}
service/view/src/main/java/com/founder/view/mapper/
AccidentPoint
Mapper.java
→
service/view/src/main/java/com/founder/view/mapper/
TbStLayer
Mapper.java
View file @
4a683c28
...
...
@@ -2,8 +2,8 @@ package com.founder.view.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.founder.commonutils.
publicEntity.SysUs
er
;
import
com.founder.commonutils.viewEntity.
AccidentPoint
;
import
com.founder.commonutils.
viewEntity.TbStLay
er
;
import
com.founder.commonutils.viewEntity.
TbStLayerData
;
import
org.apache.ibatis.annotations.Mapper
;
/**
...
...
@@ -15,6 +15,7 @@ import org.apache.ibatis.annotations.Mapper;
* @since 2021-03-11
*/
@Mapper
public
interface
AccidentPointMapper
extends
BaseMapper
<
AccidentPoint
>
{
public
interface
TbStLayerMapper
extends
BaseMapper
<
TbStLayer
>
{
}
service/view/src/main/java/com/founder/view/mapper/xml/TbStLayerDataMapper.xml
View file @
4a683c28
<?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.founder.view.mapper.TbStLayerDataMapper"
>
<delete
id=
"deleteByGlId"
parameterType=
"String"
>
delete from tb_st_layer_data where gl_xxzjbh = #{layerId}
</delete>
</mapper>
service/view/src/main/java/com/founder/view/mapper/xml/TbStLayerMapper.xml
0 → 100644
View file @
4a683c28
<?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.founder.view.mapper.TbStLayerMapper"
>
</mapper>
service/view/src/main/java/com/founder/view/service/TbStLayerDataService.java
View file @
4a683c28
...
...
@@ -4,4 +4,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
import
com.founder.commonutils.viewEntity.TbStLayerData
;
public
interface
TbStLayerDataService
extends
IService
<
TbStLayerData
>
{
void
deleteByGlId
(
String
layerId
);
}
service/view/src/main/java/com/founder/view/service/TbStLayerService.java
0 → 100644
View file @
4a683c28
package
com
.
founder
.
view
.
service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.founder.commonutils.viewEntity.TbStLayer
;
import
com.founder.commonutils.viewEntity.TbStLayerData
;
public
interface
TbStLayerService
extends
IService
<
TbStLayer
>
{
}
service/view/src/main/java/com/founder/view/service/impl/TbStLayerDataServiceImpl.java
View file @
4a683c28
...
...
@@ -6,7 +6,15 @@ import com.founder.view.mapper.TbStLayerDataMapper;
import
com.founder.view.service.TbStLayerDataService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
@Service
public
class
TbStLayerDataServiceImpl
extends
ServiceImpl
<
TbStLayerDataMapper
,
TbStLayerData
>
implements
TbStLayerDataService
{
@Resource
TbStLayerDataMapper
tbStLayerDataMapper
;
@Override
public
void
deleteByGlId
(
String
layerId
)
{
tbStLayerDataMapper
.
deleteByGlId
(
layerId
);
}
}
service/view/src/main/java/com/founder/view/service/impl/TbStLayerServiceImpl.java
0 → 100644
View file @
4a683c28
package
com
.
founder
.
view
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.founder.commonutils.viewEntity.TbStLayer
;
import
com.founder.commonutils.viewEntity.TbStLayerData
;
import
com.founder.view.mapper.TbStLayerDataMapper
;
import
com.founder.view.mapper.TbStLayerMapper
;
import
com.founder.view.service.TbStLayerDataService
;
import
com.founder.view.service.TbStLayerService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
@Service
public
class
TbStLayerServiceImpl
extends
ServiceImpl
<
TbStLayerMapper
,
TbStLayer
>
implements
TbStLayerService
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment