Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
d2f7924b54
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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>());
|
||||
|
|
|
|||
Loading…
Reference in New Issue