Commit 24bbc068 by danmo

活码排期任务修改

1 parent 8ff7392c
...@@ -50,12 +50,12 @@ public class WeQrCodeUpdateTask { ...@@ -50,12 +50,12 @@ public class WeQrCodeUpdateTask {
Map<Long, List<WeQrScopeVo>> qrCodeMap = weQrScopeList.stream().collect(Collectors.groupingBy(WeQrScopeVo::getQrId)); Map<Long, List<WeQrScopeVo>> qrCodeMap = weQrScopeList.stream().collect(Collectors.groupingBy(WeQrScopeVo::getQrId));
qrCodeMap.forEach((qrId,scopeList) ->{ qrCodeMap.forEach((qrId,scopeList) ->{
WeQrCode weQrCode = weQrCodeService.getById(qrId); WeQrCode weQrCode = weQrCodeService.getById(qrId);
WeQrScopeVo weCustomizeQrScope = weQrScopeList.stream() WeQrScopeVo weCustomizeQrScope = scopeList.stream()
.filter(item -> ObjectUtil.equal(1, item.getType())).findFirst().orElse(null); .filter(item -> ObjectUtil.equal(1, item.getType())).findFirst().orElse(null);
if(weCustomizeQrScope != null){ if(weCustomizeQrScope != null){
extracted(weCustomizeQrScope,weQrCode.getConfigId()); extracted(weCustomizeQrScope,weQrCode.getConfigId());
}else { }else {
WeQrScopeVo weDefaultQrScope = weQrScopeList.stream() WeQrScopeVo weDefaultQrScope = scopeList.stream()
.filter(item -> ObjectUtil.equal(0, item.getType())).findFirst().orElse(null); .filter(item -> ObjectUtil.equal(0, item.getType())).findFirst().orElse(null);
extracted(weDefaultQrScope,weQrCode.getConfigId()); extracted(weDefaultQrScope,weQrCode.getConfigId());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!