Commit 26b3fd4ce2a7bf5ec760bf4281cc43e1e15f23d1
1 parent
4dfebff899
Exists in
master
and in
6 other branches
临时建档bug修复
Showing 1 changed file with 2 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TemporaryUserServiceImpl.java
View file @
26b3fd4
... | ... | @@ -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()); |