Commit 718c0d8e by wuchengwu

人像采集时修改保存状态

parent 1b8837ef
......@@ -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");
......
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment