Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
ed9503f4
Commit
ed9503f4
authored
May 30, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(JG):监管履历信息功能开发,转义特殊字符
parent
d4a3d7e9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
JgResumeInfoController.java
...boot/module/jg/biz/controller/JgResumeInfoController.java
+2
-2
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+2
-1
JgResumeInfoServiceImpl.java
...t/module/jg/biz/service/impl/JgResumeInfoServiceImpl.java
+3
-4
WordTemplateUtils.java
...join/amos/boot/module/jg/biz/utils/WordTemplateUtils.java
+1
-1
JgFeignClient.java
...eejoin/amos/boot/module/jyjc/biz/feign/JgFeignClient.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgResumeInfoController.java
View file @
ed9503f4
...
...
@@ -51,8 +51,8 @@ public class JgResumeInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/saveBatchResume"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"批量新增"
,
notes
=
"批量新增"
)
public
boolean
saveBatchResume
(
@RequestBody
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
return
jgResumeInfoServiceImpl
.
saveBatchResume
(
jgResumeInfoDtoList
);
public
void
saveBatchResume
(
@RequestBody
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
jgResumeInfoServiceImpl
.
saveBatchResume
(
jgResumeInfoDtoList
);
}
/**
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
View file @
ed9503f4
...
...
@@ -79,6 +79,7 @@ import java.util.concurrent.TimeUnit;
import
java.util.function.Function
;
import
java.util.stream.Collectors
;
import
static
com
.
alibaba
.
fastjson
.
JSON
.
parseArray
;
import
static
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
utils
.
WordTemplateUtils
.
escapeSpecialCharacters
;
/**
* 服务实现类
...
...
@@ -460,7 +461,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
// jgInstallationNotice.setNoticeReportUrl(url);
// this.updateById(jgInstallationNotice);
WordTemplateUtils
.
templateToPdfDownload
(
tempFileName
,
"installation-notification-report.ftl"
,
placeholders
,
response
);
WordTemplateUtils
.
templateToPdfDownload
(
tempFileName
,
"installation-notification-report.ftl"
,
escapeSpecialCharacters
(
placeholders
)
,
response
);
}
public
Map
<
String
,
Object
>
fullFillTemplateObj
(
List
<
Map
<
String
,
Object
>>
informationList
,
String
businessType
)
{
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgResumeInfoServiceImpl.java
View file @
ed9503f4
...
...
@@ -7,7 +7,6 @@ import com.yeejoin.amos.boot.module.jg.api.mapper.JgResumeInfoMapper;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgResumeInfoService
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
java.util.Collection
;
import
java.util.List
;
...
...
@@ -35,8 +34,7 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum
return
this
.
queryForList
(
""
,
false
);
}
@Transactional
public
boolean
saveBatchResume
(
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
public
void
saveBatchResume
(
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
)
{
Collection
<
JgResumeInfo
>
jgResumeInfoCollection
=
jgResumeInfoDtoList
.
stream
()
.
map
(
dto
->
{
JgResumeInfo
info
=
new
JgResumeInfo
();
...
...
@@ -44,6 +42,6 @@ public class JgResumeInfoServiceImpl extends BaseService<JgResumeInfoDto,JgResum
return
info
;
})
.
collect
(
Collectors
.
toList
());
return
this
.
saveBatch
(
jgResumeInfoCollection
);
this
.
saveBatch
(
jgResumeInfoCollection
);
}
}
\ No newline at end of file
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/utils/WordTemplateUtils.java
View file @
ed9503f4
...
...
@@ -230,7 +230,7 @@ public class WordTemplateUtils {
/**
* 下载填充模板的字段,特殊符号转义
*/
p
rivate
static
Map
<
String
,
Object
>
escapeSpecialCharacters
(
Map
<
String
,
?>
inputMap
)
{
p
ublic
static
Map
<
String
,
Object
>
escapeSpecialCharacters
(
Map
<
String
,
?>
inputMap
)
{
Map
<
String
,
Object
>
escapedMap
=
new
HashMap
<>();
for
(
Map
.
Entry
<
String
,
?>
entry
:
inputMap
.
entrySet
())
{
String
key
=
entry
.
getKey
();
...
...
amos-boot-system-tzs/amos-boot-module-jyjc/amos-boot-module-jyjc-biz/src/main/java/com/yeejoin/amos/boot/module/jyjc/biz/feign/JgFeignClient.java
View file @
ed9503f4
...
...
@@ -24,6 +24,6 @@ public interface JgFeignClient {
* 设备注册信息分页查询
* */
@RequestMapping
(
value
=
"/jg-resume-info/saveBatchResume"
,
method
=
RequestMethod
.
POST
)
FeignClientResult
<
Boolean
>
saveBatchResume
(
@RequestBody
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
);
FeignClientResult
saveBatchResume
(
@RequestBody
List
<
JgResumeInfoDto
>
jgResumeInfoDtoList
);
}
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