Commit ab8cfc437346ab393cafd89360eacb6a2036d332

Authored by 徐泉
1 parent 0d02a0e3
Exists in master

修改提交

cloud/haikangface/src/main/java/com/sincere/haikangface/service/impl/UserOperateServiceImpl.java
@@ -377,7 +377,7 @@ public class UserOperateServiceImpl implements UserOperateService { @@ -377,7 +377,7 @@ public class UserOperateServiceImpl implements UserOperateService {
377 //以学籍号为名的文件名 377 //以学籍号为名的文件名
378 String fileName = studentCode + ".png"; 378 String fileName = studentCode + ".png";
379 String facePath = ""; 379 String facePath = "";
380 - if(file.isEmpty()) facePath = baseService.getFilePath(schoolId,typeName,fileName,file); 380 + if(!file.isEmpty()) facePath = baseService.getFilePath(schoolId,typeName,fileName,file);
381 else facePath = baseService.checkUserFace(studentBean,userType,schoolId); 381 else facePath = baseService.checkUserFace(studentBean,userType,schoolId);
382 String targetPath = FileUtils.picPathComp + file.getName(); 382 String targetPath = FileUtils.picPathComp + file.getName();
383 try { 383 try {