!42 modify contact query

Merge pull request !42 from 徐黔南/master
This commit is contained in:
openharmony_ci 2022-08-12 01:50:11 +00:00 committed by Gitee
commit d940951d5e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -40,6 +40,7 @@ export default class ContactManager {
const columns = ['id', 'display_name', 'detail_info'];
const predicates = new dataAbility.DataAbilityPredicates();
predicates.equalTo('detail_info', callData.accountNumber);
predicates.equalTo('is_deleted', 0);
const dataAbilityHelper = await featureAbility.acquireDataAbilityHelper(DBbaseUri);
const resSet = await dataAbilityHelper.query(DBUri, columns, predicates);
HiLog.i(TAG, "getContactInfo resSet : %s" + JSON.stringify(resSet))