Commit d25e7906bfa815523c30e20a33c9388fac213841
1 parent
d965d46472
Exists in
master
and in
6 other branches
追访
Showing 1 changed file with 2 additions and 1 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
d25e790
... | ... | @@ -251,6 +251,7 @@ |
251 | 251 | AntExRecordQuery antExRecordQuery = new AntExRecordQuery(); |
252 | 252 | antExRecordQuery.setPid(co.getUserId()); |
253 | 253 | antExRecordQuery.setBarCode(co.getSequenceId()); |
254 | + System.out.println("优惠券使用脏数据SQL:"+antExRecordQuery.convertToQuery().convertToMongoQuery()); | |
254 | 255 | List<AntExRecordModel> antExRecordModels = antExRecordService.queryAntExRecords(antExRecordQuery); |
255 | 256 | System.out.println(co.getUserId()+":按条件查询结果:"+antExRecordModels.size()); |
256 | 257 | if (CollectionUtils.isNotEmpty(antExRecordModels)) { |
... | ... | @@ -260,7 +261,7 @@ |
260 | 261 | map.put("id", co.getId()); |
261 | 262 | map.put("usedId", antExRecordModel.getId()); |
262 | 263 | couponMapper.updateUsed(map); |
263 | - System.out.println(co.getId()+":更新优惠券使用表"); | |
264 | + System.out.println(co.getId()+":更新优惠券使用表usedId修改为:"+antExRecordModel.getId()); | |
264 | 265 | } |
265 | 266 | } |
266 | 267 | } |