人员入场

This commit is contained in:
lSun 2025-05-19 15:44:39 +08:00
parent e92d85f58c
commit ae2e0f9ade
2 changed files with 10 additions and 12 deletions

View File

@ -226,12 +226,12 @@ public class PersonComprehensiveServiceImp implements PersonComprehensiveService
dao.updateSysUser(o);
}
}
// if(StringUtils.isNotEmpty(o.getFacePhoto())){
// if(StringUtils.isNotEmpty(o.getFaceFeature())){
// o.setFaceFeatureByte(Base64.getDecoder().decode(o.getFaceFeature()));
// }
// dao.insertPersonFacePhoto(o);
// }
if(StringUtils.isNotEmpty(o.getFacePhoto())){
if(StringUtils.isNotEmpty(o.getFaceFeature())){
o.setFaceFeatureByte(Base64.getDecoder().decode(o.getFaceFeature()));
}
dao.insertPersonFacePhoto(o);
}
if(StringUtils.isNotEmpty(o.getCheckupFilePath())){
dao.insertCheckupFilePath(o);
}
@ -499,13 +499,12 @@ public class PersonComprehensiveServiceImp implements PersonComprehensiveService
}
}
/*if(StringUtils.isNotEmpty(o.getFacePhoto())){
if(StringUtils.isNotEmpty(o.getFacePhoto())){
if(StringUtils.isNotEmpty(o.getFaceFeature())){
o.setFaceFeatureByte(Base64.getDecoder().decode(o.getFaceFeature()));
}
dao.insertPersonFacePhoto(o);
}*/
}
if(StringUtils.isNotEmpty(o.getCheckupFilePath())){
//先删除之前体检报告

View File

@ -1449,8 +1449,7 @@ function faceDetection(path){
data: JSON.stringify({facePhoto : path}),
success: function (data) {
layer.close(loadingMsg); // 关闭提示层
faceFeatures = "ynRealName/face/2025/02/24/16de7e87e5524d088646c4dba74b7313.jpg";
/*if (data.code == 200) {
if (data.code == 200) {
if(data.data !== null){
faceFeatures = data.data.features;
}else{
@ -1464,7 +1463,7 @@ function faceDetection(path){
$("#facePath").val('');
let img = document.getElementById("face_img");
img.src = '';
}*/
}
},
error: function (XMLHttpRequest, textStatus, e) {
layer.close(loadingMsg);