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
638278cc
Commit
638278cc
authored
Jul 18, 2025
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
20b31340
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDjjcController.java
+5
-6
src/main/java/com/ruoyi/project/zt/domain/Jsaa.java
+2
-2
src/main/java/com/ruoyi/project/zt/service/impl/DjdcServiceImpl.java
+5
-3
src/main/resources/mybatis/zt/JsaaMapper.xml
+4
-4
No files found.
src/main/java/com/ruoyi/project/zjsgfa/controller/SjDjjcController.java
View file @
638278cc
...
...
@@ -228,7 +228,7 @@ public class SjDjjcController extends BaseController
@PreAuthorize
(
"@ss.hasPermi('designInformation:sjDjjc:importData')"
)
@PostMapping
(
"/importData"
)
@ResponseBody
public
AjaxResult
importData
(
MultipartFile
file
,
boolean
updateSupport
)
throws
Exception
public
AjaxResult
importData
(
MultipartFile
file
,
boolean
updateSupport
,
String
jh
)
throws
Exception
{
XSSFWorkbook
workbook
=
null
;
try
{
...
...
@@ -237,7 +237,6 @@ public class SjDjjcController extends BaseController
// 获取井基础信息表,下标从0开始
XSSFSheet
sheet
=
workbook
.
getSheetAt
(
0
);
int
lastRowNum
=
sheet
.
getLastRowNum
();
String
jh
=
""
;
// 通过循环,逐行取出表中每行数据
for
(
int
i
=
0
;
i
<=
lastRowNum
;
i
++){
//跳过第一行
...
...
@@ -250,10 +249,10 @@ public class SjDjjcController extends BaseController
continue
;
}
SjDjjc
info
=
new
SjDjjc
();
jh
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
0
));
if
(
StringUtils
.
isEmpty
(
jh
)){
return
AjaxResult
.
error
(
"井基础信息中第"
+(
i
+
1
)+
"行井号不能为空"
);
}
//
jh=new DataFormatter().formatCellValue(row.getCell(0));
//
if(StringUtils.isEmpty(jh)){
//
return AjaxResult.error("井基础信息中第"+(i+1)+"行井号不能为空");
//
}
info
.
setJh
(
jh
);
String
jb
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
1
));
...
...
src/main/java/com/ruoyi/project/zt/domain/Jsaa.java
View file @
638278cc
...
...
@@ -249,9 +249,9 @@ public class Jsaa extends BaseEntity
//完井开始日期
private
String
wj
rq
ks
;
private
String
wj
sj
ks
;
//完井结束日期
private
String
wj
rq
js
;
private
String
wj
sj
js
;
//井数量
private
Integer
jsl
;
...
...
src/main/java/com/ruoyi/project/zt/service/impl/DjdcServiceImpl.java
View file @
638278cc
...
...
@@ -132,9 +132,11 @@ public class DjdcServiceImpl implements DjdcService {
Jswa
jswapa
=
new
Jswa
();
jswapa
.
setJh
(
item
.
getJh
());
jswapa
.
setJs
(
item
.
getJs
());
Jswa
md
=
jswaMapper
.
selectMd
(
jswapa
);
if
(
md
!=
null
){
item
.
setZjymd
(
md
.
getMd
());
if
(
item
.
getJs
()!=
null
){
Jswa
md
=
jswaMapper
.
selectMd
(
jswapa
);
if
(
md
!=
null
){
item
.
setZjymd
(
md
.
getMd
());
}
}
Map
<
Integer
,
Integer
>
valueCountMap
=
new
TreeMap
<>();
// 使用TreeMap自动按值排序
...
...
src/main/resources/mybatis/zt/JsaaMapper.xml
View file @
638278cc
...
...
@@ -178,11 +178,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"cyc != null and cyc != ''"
>
and cyc = #{cyc}
</if>
<if
test=
"czds != null "
>
and czds = #{czds}
</if>
<if
test=
"sjcw != null and sjcw != ''"
>
and sjcw = #{sjcw}
</if>
<if
test=
"wj
rqks!=null and wjrq
ks!=''"
>
and to_char(WJRQ,'YYYY')>=#{wj
rq
ks}
<if
test=
"wj
sjks!=null and wjsj
ks!=''"
>
and to_char(WJRQ,'YYYY')>=#{wj
sj
ks}
</if>
<if
test=
"wj
rqjs!=null and wjrq
js!=''"
>
and to_char(WJRQ,'YYYY')
<
=#{wj
rq
js}
<if
test=
"wj
sjjs!=null and wjsj
js!=''"
>
and to_char(WJRQ,'YYYY')
<
=#{wj
sj
js}
</if>
</where>
</select>
...
...
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