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
8982dca6
Commit
8982dca6
authored
Jul 16, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
3d17bd4f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
16 deletions
+81
-16
src/main/java/com/ruoyi/project/zt/controller/DjdcController.java
+30
-0
src/main/java/com/ruoyi/project/zt/domain/Ljjw.java
+51
-16
No files found.
src/main/java/com/ruoyi/project/zt/controller/DjdcController.java
View file @
8982dca6
...
...
@@ -2,12 +2,17 @@ package com.ruoyi.project.zt.controller;
import
cn.hutool.http.HttpRequest
;
import
com.google.gson.*
;
import
com.ruoyi.common.utils.poi.ExcelUtil
;
import
com.ruoyi.framework.aspectj.lang.annotation.Log
;
import
com.ruoyi.framework.aspectj.lang.enums.BusinessType
;
import
com.ruoyi.framework.web.domain.AjaxResult
;
import
com.ruoyi.project.zt.domain.*
;
import
com.ruoyi.project.zt.service.DjdcService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
java.lang.reflect.Field
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -243,6 +248,31 @@ public class DjdcController {
}
/**
* 导出地质简介基本数据列表
*/
// @PreAuthorize("@ss.hasPermi('system:jsba:export')")
// @Log(title = "地质简介基本数据", businessType = BusinessType.EXPORT)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
CommonParam
param
)
{
String
path
=
param
.
getPath
();
switch
(
path
)
{
case
"exportLjjw"
:
List
<
Ljjw
>
ljjwList2
=
djdcService
.
getLjjwList
(
param
);
ExcelUtil
<
Ljjw
>
util
=
new
ExcelUtil
<
Ljjw
>(
Ljjw
.
class
);
util
.
exportExcel
(
response
,
ljjwList2
,
"Sheet1"
);
default
:
}
}
// 生成Markdown表格
public
static
String
listToMarkdownTable
(
List
<
Ljjw
>
ljjwList
)
{
StringBuilder
markdownTable
=
new
StringBuilder
();
...
...
src/main/java/com/ruoyi/project/zt/domain/Ljjw.java
View file @
8982dca6
package
com
.
ruoyi
.
project
.
zt
.
domain
;
import
com.ruoyi.framework.aspectj.lang.annotation.Excel
;
import
lombok.Data
;
/**
...
...
@@ -9,43 +10,77 @@ import lombok.Data;
public
class
Ljjw
{
//井号
@Excel
(
name
=
"井号"
)
private
String
jh
;
//井口横坐标
private
Double
jkhzb
;
//井口纵坐标
private
Double
jkzzb
;
//井底横坐标
private
Double
jdhzb
;
//井底纵坐标
private
Double
jdzzb
;
//井型
@Excel
(
name
=
"井型"
)
private
String
jx
;
//井别
private
String
jb
;
//井深
@Excel
(
name
=
"斜深"
)
private
Double
wjjs
;
//垂深
@Excel
(
name
=
"垂深"
)
private
Double
wjczjs
;
//完钻层位
@Excel
(
name
=
"完钻层位"
)
private
String
wzcw
;
//开次
@Excel
(
name
=
"总开次"
)
private
String
kc
;
//完井周期
private
Double
wjzq
;
//钻井周期
@Excel
(
name
=
"钻井周期"
)
private
Double
zjzq
;
//完井周期
@Excel
(
name
=
"钻完周期"
)
private
Double
wjzq
;
//井口距离
@Excel
(
name
=
"井口距离"
)
private
Double
jkjl
;
//井底距离
@Excel
(
name
=
"井底距离"
)
private
Double
jdjl
;
//井口纵距离,
private
Double
jkzjl
;
//井口横坐标
@Excel
(
name
=
"井口横坐标"
)
private
Double
jkhzb
;
//井口纵坐标
@Excel
(
name
=
"井口纵坐标"
)
private
Double
jkzzb
;
//井口横距离
@Excel
(
name
=
"井口横距离"
)
private
Double
jkhjl
;
//井底纵距离
private
Double
jdzjl
;
//井口纵距离,
@Excel
(
name
=
"井口纵距离"
)
private
Double
jkzjl
;
//井底横坐标
@Excel
(
name
=
"井底横坐标"
)
private
Double
jdhzb
;
//井底纵坐标
@Excel
(
name
=
"井底纵坐标"
)
private
Double
jdzzb
;
//井底横距离
@Excel
(
name
=
"井底横距离"
)
private
Double
jdhjl
;
//井底纵距离
@Excel
(
name
=
"井底纵距离"
)
private
Double
jdzjl
;
//井别
private
String
jb
;
}
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