|
@@ -355,7 +355,7 @@ public class AcsService {
|
|
|
if (userInfoArray != null) {
|
|
|
String msg = addFaceByUrl(employeeNo, photoUrl);
|
|
|
if (msg.contains("下发人脸成功") && msg.contains("但是有异常情况")) {
|
|
|
- return "更新照片失败,请检查照片大小";
|
|
|
+ return "更新照片失败,请检查照片大小并确保包含人脸";
|
|
|
} else {
|
|
|
if (user != null) {
|
|
|
user.setPhotoUrl(photoUrl);
|
|
@@ -373,7 +373,7 @@ public class AcsService {
|
|
|
public attendanceImportRespVO importUserList(List<attendanceImportExcelVO> importUsers) {
|
|
|
|
|
|
attendanceImportRespVO respVO = attendanceImportRespVO.builder().createUsernames(new ArrayList<>())
|
|
|
- .updateUsernames(new ArrayList<>()).failureUsernames(new LinkedHashMap<>()).build();
|
|
|
+ .existUsernames(new ArrayList<>()).failureUsernames(new LinkedHashMap<>()).build();
|
|
|
importUsers.forEach(importUser -> {
|
|
|
|
|
|
try {
|
|
@@ -386,6 +386,8 @@ public class AcsService {
|
|
|
if (userInfoArray==null) {//没有userInfo
|
|
|
UserManage.addUserInfo(lUserID, importUser.getEmployeeNo(), importUser.getName());
|
|
|
respVO.getCreateUsernames().add(importUser.getName());
|
|
|
+ }else{
|
|
|
+ respVO.getExistUsernames().add(importUser.getName());
|
|
|
}
|
|
|
} catch (UnsupportedEncodingException | InterruptedException | JSONException e) {
|
|
|
throw new RuntimeException("添加用户信息失败: " + e.getMessage(), e);
|