Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨亮
hnxtbaboot
Commits
629c0ccc
Commit
629c0ccc
authored
Feb 24, 2023
by
wuchengwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
简要案情:去除双引号与单引号
parent
67e66a45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
+22
-1
hnxtba-core/src/main/java/com/founder/service/impl/AutoTbXwRycjServiceImpl.java
+22
-1
No files found.
hnxtba-core/src/main/java/com/founder/service/impl/AutoTbXwRycjServiceImpl.java
View file @
629c0ccc
...
...
@@ -6,6 +6,7 @@ import com.founder.model.AutoTbStRyDto;
import
com.founder.service.AutoTbXwRycjService
;
import
com.founder.utils.DateFormatUtils
;
import
com.founder.utils.EasyuiPage
;
import
com.founder.utils.StringUtil
;
import
com.founder.xzxtcxDao.XzxtCxDao
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -328,16 +329,36 @@ public class AutoTbXwRycjServiceImpl extends BaseService<AutoTbStRy> implements
@Override
public
boolean
insertRyxx
(
AutoTbStRy
entity
){
AutoTbStRy
xyrC
=
new
AutoTbStRy
();
if
(!
StringUtils
.
isEmpty
(
entity
.
getJyaq
())){
entity
.
setJyaq
(
entity
.
getJyaq
().
replace
(
"\""
,
""
));
entity
.
setJyaq
(
entity
.
getJyaq
().
replace
(
"“"
,
""
));
entity
.
setJyaq
(
entity
.
getJyaq
().
replace
(
"”"
,
""
));
}
if
(!
StringUtils
.
isEmpty
(
entity
.
getWffzjlms
())){
entity
.
setWffzjlms
(
entity
.
getWffzjlms
().
replace
(
"\""
,
""
));
entity
.
setWffzjlms
(
entity
.
getWffzjlms
().
replace
(
"“"
,
""
));
entity
.
setWffzjlms
(
entity
.
getWffzjlms
().
replace
(
"”"
,
""
));
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"entity"
,
entity
);
//boolean bool = mapper.insertRyxx_new(map);
boolean
bool
=
mapper
.
insertRyxx
(
map
);
return
bool
;
}
@Override
public
boolean
updateRyxx
(
AutoTbStRy
entity
){
if
(!
StringUtils
.
isEmpty
(
entity
.
getJyaq
())){
entity
.
setJyaq
(
entity
.
getJyaq
().
replace
(
"\""
,
""
));
entity
.
setJyaq
(
entity
.
getJyaq
().
replace
(
"“"
,
""
));
entity
.
setJyaq
(
entity
.
getJyaq
().
replace
(
"”"
,
""
));
}
if
(!
StringUtils
.
isEmpty
(
entity
.
getWffzjlms
())){
entity
.
setWffzjlms
(
entity
.
getWffzjlms
().
replace
(
"\""
,
""
));
entity
.
setWffzjlms
(
entity
.
getWffzjlms
().
replace
(
"“"
,
""
));
entity
.
setWffzjlms
(
entity
.
getWffzjlms
().
replace
(
"”"
,
""
));
}
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"entity"
,
entity
);
boolean
bool
=
mapper
.
updateRyxx
(
map
);
...
...
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