Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zjsgfa_mysql
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
zjsgfa_mysql
Commits
40031266
Commit
40031266
authored
Jul 28, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
aba00f44
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
0 deletions
+71
-0
src/main/java/com/ruoyi/project/zjsgfa/controller/SjJygjGdsjgdcsController.java
+13
-0
src/main/java/com/ruoyi/project/zjsgfa/service/ISjJygjGdsjgdcsService.java
+2
-0
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjJygjGdsjgdcsServiceImpl.java
+56
-0
No files found.
src/main/java/com/ruoyi/project/zjsgfa/controller/SjJygjGdsjgdcsController.java
View file @
40031266
...
@@ -119,4 +119,17 @@ public class SjJygjGdsjgdcsController extends BaseController
...
@@ -119,4 +119,17 @@ public class SjJygjGdsjgdcsController extends BaseController
return
jsonString
;
return
jsonString
;
}
}
/**
* 查询井眼轨迹三维图
*/
@GetMapping
(
"/jygjSw"
)
public
String
jygjSw
(
SjJygjGdsjgdcs
sjJygjGdsjgdcs
)
{
Map
jsjgt
=
sjJygjGdsjgdcsService
.
jygjSw
(
sjJygjGdsjgdcs
);
JSONObject
jsonObject
=
new
JSONObject
(
jsjgt
);
String
jsonString
=
jsonObject
.
toJSONString
();
return
jsonString
;
}
}
}
src/main/java/com/ruoyi/project/zjsgfa/service/ISjJygjGdsjgdcsService.java
View file @
40031266
...
@@ -63,4 +63,6 @@ public interface ISjJygjGdsjgdcsService
...
@@ -63,4 +63,6 @@ public interface ISjJygjGdsjgdcsService
Map
jygjEw
(
SjJygjGdsjgdcs
sjJygjGdsjgdcs
);
Map
jygjEw
(
SjJygjGdsjgdcs
sjJygjGdsjgdcs
);
Map
jygjSw
(
SjJygjGdsjgdcs
sjJygjGdsjgdcs
);
}
}
src/main/java/com/ruoyi/project/zjsgfa/service/impl/SjJygjGdsjgdcsServiceImpl.java
View file @
40031266
...
@@ -171,6 +171,62 @@ public class SjJygjGdsjgdcsServiceImpl implements ISjJygjGdsjgdcsService
...
@@ -171,6 +171,62 @@ public class SjJygjGdsjgdcsServiceImpl implements ISjJygjGdsjgdcsService
return
map
;
return
map
;
}
}
@Override
public
Map
jygjSw
(
SjJygjGdsjgdcs
sjJygjGdsjgdcs
)
{
List
<
SjJygjGdsjgdcs
>
gjlist
=
sjJygjGdsjgdcsMapper
.
selectSjJygjGdsjgdcsList
(
sjJygjGdsjgdcs
);
// 三维坐标
Map
swmap
=
new
HashMap
();
List
swList
=
new
ArrayList
<>();
swmap
.
put
(
"lineData"
,
swList
);
Double
maxcs
=
gjlist
.
stream
().
map
(
SjJygjGdsjgdcs:
:
getCs
).
max
(
Double:
:
compare
).
get
();;
Double
maxnb
=
0.0
;
Double
minnb
=
0.0
;
Double
maxdx
=
0.0
;
Double
mindx
=
0.0
;
maxcs
=
gjlist
.
stream
().
map
(
SjJygjGdsjgdcs:
:
getCs
).
max
(
Double:
:
compare
).
get
();
maxnb
=
gjlist
.
stream
().
map
(
SjJygjGdsjgdcs:
:
getNbwy
).
max
(
Double:
:
compare
).
get
();
minnb
=
gjlist
.
stream
().
map
(
SjJygjGdsjgdcs:
:
getNbwy
).
min
(
Double:
:
compare
).
get
();
maxdx
=
gjlist
.
stream
().
map
(
SjJygjGdsjgdcs:
:
getDxwy
).
max
(
Double:
:
compare
).
get
();
mindx
=
gjlist
.
stream
().
map
(
SjJygjGdsjgdcs:
:
getDxwy
).
min
(
Double:
:
compare
).
get
();
for
(
int
i
=
0
;
i
<
gjlist
.
size
();
i
++){
SjJygjGdsjgdcs
dw
=
gjlist
.
get
(
i
);
if
(
dw
.
getCs
()==
null
||
dw
.
getNbwy
()==
null
||
dw
.
getDxwy
()==
null
)
{
return
back
(
"数据存在空值"
);
}
Double
cs
=
dw
.
getCs
();
// 垂深
Double
nb
=
dw
.
getNbwy
();
// 南北
Double
dx
=
dw
.
getDxwy
();
// 东西
Double
gtd
=
dw
.
getQjbhl
();
// 狗腿度
Map
swd
=
new
HashMap
();
// 三维的点
swd
.
put
(
"value"
,
new
String
[]
{
dx
.
toString
(),
nb
.
toString
(),
cs
.
toString
()});
swd
.
put
(
"params"
,
gtd
);
// 狗腿度
swList
.
add
(
swd
);
}
swmap
.
put
(
"xmax"
,
maxdx
+
100
);
// +100
swmap
.
put
(
"xmin"
,
mindx
-
100
);
// -100
swmap
.
put
(
"ymax"
,
maxnb
+
100
);
// +100
swmap
.
put
(
"ymin"
,
minnb
-
100
);
// -100
swmap
.
put
(
"zmax"
,
new
BigDecimal
(
0
)
);
// +100
swmap
.
put
(
"zmin"
,
maxcs
+
1000
);
// +1000
Map
map
=
new
HashMap
();
map
.
put
(
"code"
,
200
);
map
.
put
(
"msg"
,
"成功"
);
map
.
put
(
"swmap"
,
swmap
);
return
map
;
}
public
static
Map
back
(
String
msg
)
{
public
static
Map
back
(
String
msg
)
{
Map
map
=
new
HashMap
();
Map
map
=
new
HashMap
();
map
.
put
(
"code"
,
500
);
map
.
put
(
"code"
,
500
);
...
...
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