用户登录问题修改
This commit is contained in:
parent
03b15ec97e
commit
eea5aac6ff
|
|
@ -103,12 +103,11 @@ public class FaceGroupsServiceImpl implements FaceGroupsService {
|
||||||
@Override
|
@Override
|
||||||
public AjaxResult deleteFaceGroupsByGroupIds(Long[] groupIds) {
|
public AjaxResult deleteFaceGroupsByGroupIds(Long[] groupIds) {
|
||||||
try {
|
try {
|
||||||
int rows = faceGroupsMapper.deleteFaceGroupsByGroupIds(groupIds);
|
|
||||||
for (Long groupId : groupIds) {
|
for (Long groupId : groupIds) {
|
||||||
FaceGroupsEntity faceGroupsEntity = faceGroupsMapper.selectFaceGroupsByGroupId(groupId);
|
FaceGroupsEntity faceGroupsEntity = faceGroupsMapper.selectFaceGroupsByGroupId(groupId);
|
||||||
int i = faceGroupsMapper.deleteFaceDataByGroupCode(faceGroupsEntity.getGroupCode());
|
int i = faceGroupsMapper.deleteFaceDataByGroupCode(faceGroupsEntity.getGroupCode());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
int rows = faceGroupsMapper.deleteFaceGroupsByGroupIds(groupIds);
|
||||||
return rows > 0 ? AjaxResult.success() : AjaxResult.error();
|
return rows > 0 ? AjaxResult.success() : AjaxResult.error();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return AjaxResult.error();
|
return AjaxResult.error();
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,9 @@ public class FaceUtils {
|
||||||
Map<String, Object> params = new HashMap<String, Object>();
|
Map<String, Object> params = new HashMap<String, Object>();
|
||||||
params.put("name", faceData.getName());
|
params.put("name", faceData.getName());
|
||||||
params.put("idCard", faceData.getIdCard());
|
params.put("idCard", faceData.getIdCard());
|
||||||
|
if (faceData.getOtherInfo() != null && !faceData.getOtherInfo().isEmpty()) {
|
||||||
params.put("otherInfo", faceData.getOtherInfo());
|
params.put("otherInfo", faceData.getOtherInfo());
|
||||||
|
}
|
||||||
params.put("image", FileUtils.convertToBase64WithPrefix(faceData.getFile()));
|
params.put("image", FileUtils.convertToBase64WithPrefix(faceData.getFile()));
|
||||||
params.put("groupCode", faceData.getGroupCode());
|
params.put("groupCode", faceData.getGroupCode());
|
||||||
String s = HttpRequestHelper.postJson(faceConfig.getUrl(), ADD_FACE_DATA, JSON.toJSONString(params), new HashMap<String, String>());
|
String s = HttpRequestHelper.postJson(faceConfig.getUrl(), ADD_FACE_DATA, JSON.toJSONString(params), new HashMap<String, String>());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue