Commit bff38e8279500d8515451775a5d0a509f56c22a9
1 parent
7037a3c065
Exists in
master
and in
6 other branches
追访
Showing 1 changed file with 3 additions and 0 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/service/impl/CouponServiceImpl.java
View file @
bff38e8
| ... | ... | @@ -246,11 +246,13 @@ |
| 246 | 246 | public BaseObjectResponse distErrorData() { |
| 247 | 247 | List<CouponInfo> couponInfos = couponMapper.findErrorData(); |
| 248 | 248 | if (CollectionUtils.isNotEmpty(couponInfos)) { |
| 249 | + System.out.println("优惠券使用脏数据处理量:"+couponInfos.size()); | |
| 249 | 250 | for (CouponInfo co : couponInfos) { |
| 250 | 251 | AntExRecordQuery antExRecordQuery = new AntExRecordQuery(); |
| 251 | 252 | antExRecordQuery.setPid(co.getUserId()); |
| 252 | 253 | antExRecordQuery.setBarCode(co.getSequenceId()); |
| 253 | 254 | List<AntExRecordModel> antExRecordModels = antExRecordService.queryAntExRecords(antExRecordQuery); |
| 255 | + System.out.println(co.getUserId()+":按条件查询结果:"+antExRecordModels.size()); | |
| 254 | 256 | if (CollectionUtils.isNotEmpty(antExRecordModels)) { |
| 255 | 257 | AntExRecordModel antExRecordModel = antExRecordModels.get(0); |
| 256 | 258 | if (antExRecordModel != null) { |
| ... | ... | @@ -258,6 +260,7 @@ |
| 258 | 260 | map.put("id", co.getId()); |
| 259 | 261 | map.put("usedId", antExRecordModel.getId()); |
| 260 | 262 | couponMapper.updateUsed(map); |
| 263 | + System.out.println(co.getId()+":更新优惠券使用表"); | |
| 261 | 264 | } |
| 262 | 265 | } |
| 263 | 266 | } |