Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
08aa7e94
Commit
08aa7e94
authored
Jul 24, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
花名册修改
parent
3d0ab125
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+6
-6
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+0
-6
No files found.
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
08aa7e94
...
...
@@ -5097,7 +5097,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TDispatchSocialExportVo
.
class
).
includeColumnFieldNames
(
searchVo
.
getExportFields
()
).
build
();
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
).
build
();
WriteSheet
writeSheet
;
WriteTable
writeTable0
;
WriteTable
writeTable1
;
...
...
@@ -5117,7 +5117,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
list
.
add
(
vo
);
}
}
writeSheet
=
EasyExcel
.
writerSheet
(
"增员"
).
needHead
(
Boolean
.
FALSE
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
"增员"
).
build
();
writeTable0
=
EasyExcel
.
writerTable
(
0
).
head
(
head
(
searchVo
.
getSocialHouseholdName
(),
searchVo
.
getCustomerNo
())).
build
();
writeTable1
=
EasyExcel
.
writerTable
(
1
).
head
(
head1
()).
build
();
// 第一次写入会创建头
...
...
@@ -5144,7 +5144,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
list
.
add
(
vo
);
}
}
writeSheet
=
EasyExcel
.
writerSheet
(
"减员"
).
needHead
(
Boolean
.
FALSE
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
"减员"
).
build
();
writeTable0
=
EasyExcel
.
writerTable
(
0
).
head
(
head
(
searchVo
.
getSocialHouseholdName
(),
searchVo
.
getCustomerNo
())).
build
();
writeTable1
=
EasyExcel
.
writerTable
(
1
).
head
(
head1
()).
build
();
// 第一次写入会创建头
...
...
@@ -5180,7 +5180,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
response
.
setContentType
(
CommonConstants
.
MULTIPART_FORM_DATA
);
response
.
setHeader
(
CommonConstants
.
CONTENT_DISPOSITION
,
CommonConstants
.
ATTACHMENT_FILENAME
+
URLEncoder
.
encode
(
fileName
,
CommonConstants
.
UTF8
));
// 这里 需要指定写用哪个class去写,然后写到第一个sheet,然后文件流会自动关闭
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
,
TDispatchSocialPersionExportVo
.
class
).
includeColumnFieldNames
(
searchVo
.
getExportFields
()
).
build
();
ExcelWriter
excelWriter
=
EasyExcel
.
write
(
out
).
build
();
WriteSheet
writeSheet
;
WriteTable
writeTable0
;
WriteTable
writeTable1
;
...
...
@@ -5200,7 +5200,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
list
.
add
(
vo
);
}
}
writeSheet
=
EasyExcel
.
writerSheet
(
"增员"
).
needHead
(
Boolean
.
FALSE
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
"增员"
).
build
();
writeTable0
=
EasyExcel
.
writerTable
(
0
).
head
(
persionHead
(
searchVo
.
getSocialHouseholdName
(),
searchVo
.
getCustomerNo
())).
build
();
writeTable1
=
EasyExcel
.
writerTable
(
1
).
head
(
persionHead1
()).
build
();
// 第一次写入会创建头
...
...
@@ -5227,7 +5227,7 @@ public class TDispatchInfoServiceImpl extends ServiceImpl<TDispatchInfoMapper, T
list
.
add
(
vo
);
}
}
writeSheet
=
EasyExcel
.
writerSheet
(
"减员"
).
needHead
(
Boolean
.
FALSE
).
build
();
writeSheet
=
EasyExcel
.
writerSheet
(
"减员"
).
build
();
writeTable0
=
EasyExcel
.
writerTable
(
0
).
head
(
persionHead
(
searchVo
.
getSocialHouseholdName
(),
searchVo
.
getCustomerNo
())).
build
();
writeTable1
=
EasyExcel
.
writerTable
(
1
).
head
(
persionHead1
()).
build
();
// 第一次写入会创建头
...
...
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
08aa7e94
...
...
@@ -1687,9 +1687,6 @@
<if
test=
"tDispatchInfo.type != null and tDispatchInfo.type.trim() != ''"
>
AND a.TYPE = #{tDispatchInfo.type}
</if>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
</if>
<if
test=
"tDispatchInfo.disMonth != null and tDispatchInfo.disMonth.trim() != ''"
>
AND replace(DATE_FORMAT(a.CREATE_TIME,"%Y-%m"),'-','') = #{tDispatchInfo.disMonth}
</if>
...
...
@@ -1714,9 +1711,6 @@
<if
test=
"tDispatchInfo.type != null and tDispatchInfo.type.trim() != ''"
>
AND a.TYPE = #{tDispatchInfo.type}
</if>
<if
test=
"tDispatchInfo.socialHouseholdName != null and tDispatchInfo.socialHouseholdName.trim() != ''"
>
AND a.SOCIAL_HOUSEHOLD_NAME = #{tDispatchInfo.socialHouseholdName}
</if>
<if
test=
"tDispatchInfo.disMonth != null and tDispatchInfo.disMonth.trim() != ''"
>
AND replace(DATE_FORMAT(a.CREATE_TIME,"%Y-%m"),'-','') = #{tDispatchInfo.disMonth}
</if>
...
...
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