Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qianhe-ydsj
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
qianhe-ydsj
Commits
2dd0b236
Commit
2dd0b236
authored
Aug 29, 2024
by
jiang'yun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
3a5ba16c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
12 deletions
+29
-12
qianhe-ydsj/src/main/java/com/qianhe/controller/SjZdbfJcdwkhpjController.java
+14
-6
qianhe-ydsj/src/main/java/com/qianhe/controller/SjZdbfZsdwkhpjController.java
+15
-6
No files found.
qianhe-ydsj/src/main/java/com/qianhe/controller/SjZdbfJcdwkhpjController.java
View file @
2dd0b236
...
...
@@ -285,7 +285,7 @@ public class SjZdbfJcdwkhpjController extends BaseController
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getKhxd
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getPjbzmc
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getSj
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getWtms
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getWtms
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getKhfz
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getId
());
cell
=
row
.
createCell
(
m
++);
cell
.
setCellStyle
(
cellStyle
);
cell
.
setCellValue
(
zsdwkhpj
.
getZbId
());
...
...
@@ -436,25 +436,33 @@ public class SjZdbfJcdwkhpjController extends BaseController
SjZdbfZsdwkhpj
zsdwkhpj
=
new
SjZdbfZsdwkhpj
();
System
.
out
.
println
(
row
);
//id
String
id
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
9
));
String
id
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
6
));
if
(
StringUtils
.
isEmpty
(
id
)){
return
AjaxResult
.
error
(
"id不能为空"
);
}
zsdwkhpj
.
setId
(
Long
.
parseLong
(
id
));
//主表id
String
zbid
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
10
));
String
zbid
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
7
));
if
(
StringUtils
.
isEmpty
(
zbid
)){
return
AjaxResult
.
error
(
"主表id不能为空"
);
}
zsdwkhpj
.
setZbId
(
Long
.
parseLong
(
zbid
));
String
khnr
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
1
));
zsdwkhpj
.
setKhnr
(
khnr
);
String
xd
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
2
));
zsdwkhpj
.
setKhxd
(
xd
);
String
pj
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
3
));
zsdwkhpj
.
setPjbzmc
(
pj
);
//数量
String
sl
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
6
));
String
sl
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
3
));
zsdwkhpj
.
setSj
(
sl
);
//问题描述
String
wtms
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
7
));
String
wtms
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
4
));
zsdwkhpj
.
setWtms
(
wtms
);
//考核分值
String
khfz
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
8
));
String
khfz
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
5
));
zsdwkhpj
.
setKhfz
(
khfz
);
list
.
add
(
zsdwkhpj
);
...
...
qianhe-ydsj/src/main/java/com/qianhe/controller/SjZdbfZsdwkhpjController.java
View file @
2dd0b236
...
...
@@ -445,25 +445,34 @@ public class SjZdbfZsdwkhpjController extends BaseController
SjZdbfZsdwkhpj
zsdwkhpj
=
new
SjZdbfZsdwkhpj
();
System
.
out
.
println
(
row
);
//id
String
id
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
9
));
String
id
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
6
));
if
(
StringUtils
.
isEmpty
(
id
)){
return
AjaxResult
.
error
(
"id不能为空"
);
}
zsdwkhpj
.
setId
(
Long
.
parseLong
(
id
));
//主表id
String
zbid
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
10
));
String
zbid
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
7
));
if
(
StringUtils
.
isEmpty
(
zbid
)){
return
AjaxResult
.
error
(
"主表id不能为空"
);
}
zsdwkhpj
.
setZbId
(
Long
.
parseLong
(
zbid
));
//数量
String
sl
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
6
));
String
khnr
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
1
));
zsdwkhpj
.
setKhnr
(
khnr
);
String
xd
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
2
));
zsdwkhpj
.
setKhxd
(
xd
);
String
pj
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
3
));
zsdwkhpj
.
setPjbzmc
(
pj
);
String
sl
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
3
));
zsdwkhpj
.
setSj
(
sl
);
//问题描述
String
wtms
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
7
));
String
wtms
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
4
));
zsdwkhpj
.
setWtms
(
wtms
);
//考核分值
String
khfz
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
8
));
String
khfz
=
new
DataFormatter
().
formatCellValue
(
row
.
getCell
(
5
));
zsdwkhpj
.
setKhfz
(
khfz
);
list
.
add
(
zsdwkhpj
);
...
...
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