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
718c0d8e
Commit
718c0d8e
authored
Jul 15, 2022
by
wuchengwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人像采集时修改保存状态
parent
1b8837ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
9 deletions
+34
-9
hnxtba-core/src/main/java/com/founder/controller/TbXwRycjController.java
+26
-8
hnxtba-core/src/main/resources/static/js/catchpic.chrome.js
+8
-1
No files found.
hnxtba-core/src/main/java/com/founder/controller/TbXwRycjController.java
View file @
718c0d8e
...
...
@@ -1292,6 +1292,8 @@ public class TbXwRycjController {
String
tstzimg2
=
null
;
String
bjimg1
=
null
;
String
bjimg2
=
null
;
AutoTbRyZp
ryzp_pd
=
null
;
//保存特殊体征照片
if
(
PHOTO_LENGTH
.
equals
(
zbfzxyr
.
getBjflag1
())){
if
(
zbfzxyr
.
getBj1Base64
()
!=
null
&&
zbfzxyr
.
getBj1Base64
().
length
()
>
0
)
{
...
...
@@ -1589,14 +1591,6 @@ public class TbXwRycjController {
FileUtils
.
saveXmlFile
(
getPsnXml
(
xyrC
,
user
),
xyrC
.
getRybh
(),
zplj
,
"JBXX-"
+
xyrC
.
getRybh
()
+
".xml"
,
user
);
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
File
filejia1
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"1.jpg"
);
if
(
filejia1
.
exists
())
{
String
zpBase64
=
getImageStrs
(
filePath
+
"/"
+
rybhstr
+
"1.jpg"
);
//insPic2(hcfilePath,zpBase64,rybhstr,"1");
xyrC
.
setEdzzpStr64
(
zpBase64
);
//xyrC.setEdzzplj("static/img"+savePath+"/"+rybhstr+"1.jpg");
xyrC
.
setEDZZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
File
filejia2
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"2.jpg"
);
if
(
filejia2
.
exists
())
{
String
zpBase64
=
getImageStrs
(
filePath
+
"/"
+
rybhstr
+
"2.jpg"
);
...
...
@@ -1604,6 +1598,14 @@ public class TbXwRycjController {
xyrC
.
setZmzpStr64
(
zpBase64
);
//xyrC.setZmzplj("static/img"+savePath+"/"+rybhstr+"2.jpg");
xyrC
.
setZMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
else
if
(
xyrC
.
getZmzpxxbh
()
!=
null
&&
!
""
.
equals
(
xyrC
.
getZmzpxxbh
()))
{
ryzp_pd
=
tbRyRyzpService
.
getTbRyRyzpById
(
xyrC
.
getZmzpxxbh
(),
user
.
getUnitcode
());
if
(
ryzp_pd
!=
null
)
{
// 转为字符串
String
zpBase64
=
new
BASE64Encoder
().
encode
(
ryzp_pd
.
getDzwjnr
()).
replace
(
"\r\n"
,
""
);
xyrC
.
setZmzpStr64
(
zpBase64
);
xyrC
.
setZMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
}
File
filejia3
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"3.jpg"
);
if
(
filejia3
.
exists
())
{
...
...
@@ -1612,6 +1614,14 @@ public class TbXwRycjController {
xyrC
.
setCmzpStr64
(
zpBase64
);
//xyrC.setCmzplj("static/img"+savePath+"/"+rybhstr+"3.jpg");
xyrC
.
setCMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
else
if
(
xyrC
.
getCmzpxxbh
()
!=
null
&&
!
""
.
equals
(
xyrC
.
getCmzpxxbh
()))
{
ryzp_pd
=
tbRyRyzpService
.
getTbRyRyzpById
(
xyrC
.
getCmzpxxbh
(),
user
.
getUnitcode
());
if
(
ryzp_pd
!=
null
)
{
// 转为字符串
String
zpBase64
=
new
BASE64Encoder
().
encode
(
ryzp_pd
.
getDzwjnr
()).
replace
(
"\r\n"
,
""
);
xyrC
.
setCmzpStr64
(
zpBase64
);
xyrC
.
setCMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
}
File
filejia4
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"4.jpg"
);
if
(
filejia4
.
exists
())
{
...
...
@@ -1620,6 +1630,14 @@ public class TbXwRycjController {
xyrC
.
setYcmzpStr64
(
zpBase64
);
//xyrC.setYcmzplj("static/img"+savePath+"/"+rybhstr+"4.jpg");
xyrC
.
setYCMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
else
if
(
xyrC
.
getYcmzpxxbh
()
!=
null
&&
!
""
.
equals
(
xyrC
.
getYcmzpxxbh
()))
{
ryzp_pd
=
tbRyRyzpService
.
getTbRyRyzpById
(
xyrC
.
getYcmzpxxbh
(),
user
.
getUnitcode
());
if
(
ryzp_pd
!=
null
)
{
// 转为字符串
String
zpBase64
=
new
BASE64Encoder
().
encode
(
ryzp_pd
.
getDzwjnr
()).
replace
(
"\r\n"
,
""
);
xyrC
.
setYcmzpStr64
(
zpBase64
);
xyrC
.
setYCMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
}
File
filejia21
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"21.jpg"
);
...
...
hnxtba-core/src/main/resources/static/js/catchpic.chrome.js
View file @
718c0d8e
...
...
@@ -178,7 +178,14 @@ function setTP(tpCode,tpFile,tpShow,tpName,index){//将控件采集的信息放
tpShow.attr("
src
","
data
:
image
/
jpg
;
base64
,
"+str);
//tpShow.src = "
data
:
image
/
jpg
;
base64
,
"+str;
}
if(index==31){
if(index==2){
document.getElementById("
zmzpflag
").value="
1
";
}else if(index==3){
document.getElementById("
cmzpflag
").value="
1
";
}else if(index==4){
document.getElementById("
ycmzpflag
").value="
1
";
}else if(index==31){
frminput.tstzflag1.value = "
0
";
}else if(index==32){
frminput.tstzflag2.value = "
0
";
...
...
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