门禁卡图片路径打印

This commit is contained in:
cwchen 2025-03-18 18:12:06 +08:00
parent 8521a6b390
commit 88677813b0
1 changed files with 10 additions and 0 deletions

View File

@ -447,10 +447,13 @@ public class NewCardService {
for (String str : photoArr) { for (String str : photoArr) {
newPhoto += baseService.getImageBase64(str) + ","; newPhoto += baseService.getImageBase64(str) + ",";
} }
newPhoto = newPhoto.substring(0, newPhoto.lastIndexOf(","));
System.err.println("职工卡证件照片:" + newPhoto);
vo2.setPhoto(newPhoto); vo2.setPhoto(newPhoto);
} }
if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片 if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片
vo2.setIdPhoto(baseService.getImageBase64(idPhoto)); vo2.setIdPhoto(baseService.getImageBase64(idPhoto));
System.err.println("职工卡人脸照片:" + vo2.getIdPhoto());
} }
} }
cardVo.setUserInfoVos(userInfoVos); cardVo.setUserInfoVos(userInfoVos);
@ -513,13 +516,17 @@ public class NewCardService {
for (String str : photoArr) { for (String str : photoArr) {
newPhoto += baseService.getImageBase64(str) + ","; newPhoto += baseService.getImageBase64(str) + ",";
} }
newPhoto = newPhoto.substring(0, newPhoto.lastIndexOf(","));
System.err.println("第三方人员证件照片:" + newPhoto);
vo2.setPhoto(newPhoto); vo2.setPhoto(newPhoto);
} }
if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片 if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片
vo2.setIdPhoto(baseService.getImageBase64(idPhoto)); vo2.setIdPhoto(baseService.getImageBase64(idPhoto));
System.err.println("第三方人员人脸照片:" + vo2.getIdPhoto());
} }
if (StringUtils.isNotBlank(documentation)) { // 情况说明 if (StringUtils.isNotBlank(documentation)) { // 情况说明
vo2.setDocumentation(baseService.getImageBase64(documentation)); vo2.setDocumentation(baseService.getImageBase64(documentation));
System.err.println("第三方人员情况说明:" + vo2.getDocumentation());
} }
} }
cardVo.setUserInfoVos(userInfoVos); cardVo.setUserInfoVos(userInfoVos);
@ -567,6 +574,7 @@ public class NewCardService {
String documentation = cardVo.getDocumentation(); String documentation = cardVo.getDocumentation();
if (StringUtils.isNotBlank(documentation)) { if (StringUtils.isNotBlank(documentation)) {
cardVo.setDocumentation(baseService.getImageBase64(documentation)); cardVo.setDocumentation(baseService.getImageBase64(documentation));
System.err.println("VIP贵宾附件照片" + cardVo.getDocumentation());
} }
// 查询审核详情 // 查询审核详情
List<AuditVo> auditVos = getAudits(vo); List<AuditVo> auditVos = getAudits(vo);
@ -622,6 +630,7 @@ public class NewCardService {
String idPhoto = vo2.getIdPhoto(); String idPhoto = vo2.getIdPhoto();
if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片 if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片
vo2.setIdPhoto(baseService.getImageBase64(idPhoto)); vo2.setIdPhoto(baseService.getImageBase64(idPhoto));
System.err.println("临时出入证人脸照片:" + vo2.getIdPhoto());
} }
} }
cardVo.setUserInfoVos(userInfoVos); cardVo.setUserInfoVos(userInfoVos);
@ -678,6 +687,7 @@ public class NewCardService {
String idPhoto = vo2.getIdPhoto(); String idPhoto = vo2.getIdPhoto();
if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片 if (StringUtils.isNotBlank(idPhoto)) { // 人脸照片
vo2.setIdPhoto(baseService.getImageBase64(idPhoto)); vo2.setIdPhoto(baseService.getImageBase64(idPhoto));
System.err.println("施工出入证人脸照片:" + vo2.getIdPhoto());
} }
} }
cardVo.setUserInfoVos(userInfoVos); cardVo.setUserInfoVos(userInfoVos);