Commit 4ae92e36dd6806d541515a3216c59132df22f032

Authored by liquanyu

Merge branch 'master' of https://git.healthbaby.com.cn/jiangjiazhi/regional-platform

Showing 1 changed file

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TemporaryUserServiceImpl.java View file @ 4ae92e3
... ... @@ -55,7 +55,8 @@
55 55 }
56 56 if (StringUtils.isNotEmpty(temporaryUser.getCardID()) || StringUtils.isNotEmpty(temporaryUser.getPhone())) {
57 57 Criteria criteria = new Criteria();
58   - criteria = criteria.orOperator(Criteria.where("cardID").is(temporaryUser.getCardID()), Criteria.where("phone").is(temporaryUser.getPhone()));
  58 + //身份证号和电话精确匹配,原来是用的orOperator
  59 + criteria = criteria.andOperator(Criteria.where("cardID").is(temporaryUser.getCardID()), Criteria.where("phone").is(temporaryUser.getPhone()));
59 60 TemporaryUserModel temporaryUserModels = mongoTemplate.findOne(Query.query(criteria), TemporaryUserModel.class);
60 61 if (temporaryUserModels != null) {
61 62 temporaryUser.setModified(new Date());