Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zlmy-cloud
Project
Project
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
zlmy
zlmy-cloud
Commits
a59d9658
Commit
a59d9658
authored
1 month ago
by
鲁鸿波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监督检查管理开发,测试环境信息变更
parent
83c0f224
dev_2.6.0
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
13 deletions
+8
-13
THazardWorkPlanCheckDao.java
...com/testor/module/hazard/dao/THazardWorkPlanCheckDao.java
+1
-1
THazardWorkPlanCheckServiceImpl.java
.../hazard/service/impl/THazardWorkPlanCheckServiceImpl.java
+4
-11
application-db-kingbase-dev.yml
...y-boot/src/main/resources/application-db-kingbase-dev.yml
+1
-1
THazardWorkPlanCheck.xml
...src/main/resources/mapper/hazard/THazardWorkPlanCheck.xml
+2
-0
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/hazard/dao/THazardWorkPlanCheckDao.java
View file @
a59d9658
...
...
@@ -49,7 +49,7 @@ public interface THazardWorkPlanCheckDao extends SuperDao<THazardWorkPlanCheck>
* @param tHazardWorkPlanCheckParam 危险作业计划监督检查主键
* @return 危险作业计划监督检查
*/
Page
<
THazardWorkPlanCheck
>
selectTHazardWorkPlanCheckManageExportList
(
@Param
(
"param"
)
THazardWorkPlanCheckParam
tHazardWorkPlanCheckParam
);
List
<
THazardWorkPlanCheck
>
selectTHazardWorkPlanCheckManageExportList
(
@Param
(
"param"
)
THazardWorkPlanCheckParam
tHazardWorkPlanCheckParam
);
/**
* 查询危险作业计划监督检查详情
...
...
This diff is collapsed.
Click to expand it.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/hazard/service/impl/THazardWorkPlanCheckServiceImpl.java
View file @
a59d9658
...
...
@@ -101,11 +101,10 @@ public class THazardWorkPlanCheckServiceImpl extends SuperServiceImpl<THazardWor
public
void
exportEntity
(
THazardWorkPlanCheckParam
param
,
HttpServletResponse
response
)
{
try
{
List
<
HazardWorkPlanCheckVO
>
hazardWorkPlanCheckVOList
=
new
ArrayList
<>();
Page
<
THazardWorkPlanCheck
>
tHazardWorkPlanCheckPage
=
this
.
baseMapper
.
selectTHazardWorkPlanCheckManageExportList
(
param
);
List
<
THazardWorkPlanCheck
>
records
=
tHazardWorkPlanCheckPage
.
getRecords
();
List
<
THazardWorkPlanCheck
>
tHazardWorkPlanCheckPage
=
this
.
baseMapper
.
selectTHazardWorkPlanCheckManageExportList
(
param
);
int
i
=
1
;
for
(
THazardWorkPlanCheck
entity
:
records
)
{
for
(
THazardWorkPlanCheck
entity
:
tHazardWorkPlanCheckPage
)
{
HazardWorkPlanCheckVO
vo
=
new
HazardWorkPlanCheckVO
();
BeanUtils
.
copyProperties
(
entity
,
vo
);
// 复制属性
vo
.
setNumber
(
i
);
...
...
@@ -114,14 +113,8 @@ public class THazardWorkPlanCheckServiceImpl extends SuperServiceImpl<THazardWor
}
logger
.
info
(
"**************************************写入模板*****************************"
);
// response.setContentType("application/vnd.ms-excel");
// response.setCharacterEncoding("utf-8");
// String fileName = URLEncoder.encode("隐患台账", "utf-8");
// response.setHeader("Content-Disposition", "attachment;filename=" + fileName + ".xlsx");
// response.addHeader("Pargam", "no-cache");
// response.addHeader("Cache-Control", "no-cache");
String
fileName
=
"隐患台账"
;
String
fileName
=
"监督检查导出明细"
;
response
.
setContentType
(
"application/vnd.ms-excel;charset=utf-8"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename="
+
URLEncoder
.
encode
(
fileName
,
"UTF-8"
)
+
".xlsx"
);
...
...
This diff is collapsed.
Click to expand it.
zlmy-modules/zlmy-boot/src/main/resources/application-db-kingbase-dev.yml
View file @
a59d9658
...
...
@@ -53,5 +53,5 @@ spring:
kingbase
:
driver-class-name
:
com.kingbase8.Driver
url
:
jdbc:kingbase8://101.126.159.207:54322/public?currentSchema=public&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf-8
username
:
root
username
:
system
password
:
ZLmy654321
\ No newline at end of file
This diff is collapsed.
Click to expand it.
zlmy-modules/zlmy-boot/src/main/resources/mapper/hazard/THazardWorkPlanCheck.xml
View file @
a59d9658
...
...
@@ -20,6 +20,8 @@
<id
column=
"stakeholderWork"
property=
"stakeholderWork"
/>
<id
column=
"check_signature_time"
property=
"checkSignatureTime"
/>
<id
column=
"check_name"
property=
"checkName"
/>
<id
column=
"check_id"
property=
"checkId"
/>
<id
column=
"basic_id"
property=
"basicId"
/>
</resultMap>
<select
id=
"selectTHazardWorkPlanCheckList"
resultMap=
"BaseResultMap"
>
...
...
This diff is collapsed.
Click to expand it.
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