用户登录问题修改

This commit is contained in:
jiang 2024-12-15 16:42:35 +08:00
parent 03b15ec97e
commit eea5aac6ff
2 changed files with 4 additions and 3 deletions

View File

@ -103,12 +103,11 @@ public class FaceGroupsServiceImpl implements FaceGroupsService {
@Override
public AjaxResult deleteFaceGroupsByGroupIds(Long[] groupIds) {
try {
int rows = faceGroupsMapper.deleteFaceGroupsByGroupIds(groupIds);
for (Long groupId : groupIds) {
FaceGroupsEntity faceGroupsEntity = faceGroupsMapper.selectFaceGroupsByGroupId(groupId);
int i = faceGroupsMapper.deleteFaceDataByGroupCode(faceGroupsEntity.getGroupCode());
}
int rows = faceGroupsMapper.deleteFaceGroupsByGroupIds(groupIds);
return rows > 0 ? AjaxResult.success() : AjaxResult.error();
} catch (Exception e) {
return AjaxResult.error();

View File

@ -34,7 +34,9 @@ public class FaceUtils {
Map<String, Object> params = new HashMap<String, Object>();
params.put("name", faceData.getName());
params.put("idCard", faceData.getIdCard());
params.put("otherInfo", faceData.getOtherInfo());
if (faceData.getOtherInfo() != null && !faceData.getOtherInfo().isEmpty()) {
params.put("otherInfo", faceData.getOtherInfo());
}
params.put("image", FileUtils.convertToBase64WithPrefix(faceData.getFile()));
params.put("groupCode", faceData.getGroupCode());
String s = HttpRequestHelper.postJson(faceConfig.getUrl(), ADD_FACE_DATA, JSON.toJSONString(params), new HashMap<String, String>());