|
@@ -8,7 +8,6 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.gree.mall.manager.bean.ums.SubsidyApplyTraceBean;
|
|
|
import com.gree.mall.manager.logic.common.UMSLogic;
|
|
|
import com.gree.mall.manager.logic.ums.FileSftpUploaderLogic;
|
|
|
-import com.gree.mall.manager.plus.entity.AdminCompanyWechat;
|
|
|
import com.gree.mall.manager.plus.entity.AdminWebsit;
|
|
|
import com.gree.mall.manager.plus.entity.UmsSupplementRecord;
|
|
|
import com.gree.mall.manager.plus.service.AdminCompanyWechatService;
|
|
@@ -59,29 +58,17 @@ public class YueHuanXinSchedule {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- final List<AdminCompanyWechat> companyWechatList = adminCompanyWechatService.lambdaQuery()
|
|
|
- .list();
|
|
|
-
|
|
|
final List<AdminWebsit> websitList = adminWebsitService.lambdaQuery()
|
|
|
.in(AdminWebsit::getWebsitId, recordList.stream()
|
|
|
.map(UmsSupplementRecord::getWebsitId)
|
|
|
.collect(Collectors.toList()))
|
|
|
.list();
|
|
|
|
|
|
- final Map<String, AdminCompanyWechat> companyWechatMap = companyWechatList.stream()
|
|
|
- .collect(Collectors.toMap(AdminCompanyWechat::getCompanyWechatId, Function.identity()));
|
|
|
-
|
|
|
final Map<String, AdminWebsit> adminWebsitMap = websitList.stream()
|
|
|
.collect(Collectors.toMap(AdminWebsit::getWebsitId, Function.identity()));
|
|
|
|
|
|
for (UmsSupplementRecord record : recordList) {
|
|
|
- final AdminCompanyWechat companyWechat = companyWechatMap.get(record.getCompanyWechatId());
|
|
|
final AdminWebsit websit = adminWebsitMap.get(record.getWebsitId());
|
|
|
- if (Objects.isNull(companyWechat)) {
|
|
|
- record.setErrCount(record.getErrCount() + 1)
|
|
|
- .setSysErr("缺少商户信息");
|
|
|
- continue;
|
|
|
- }
|
|
|
if (Objects.isNull(websit)) {
|
|
|
record.setErrCount(record.getErrCount() + 1)
|
|
|
.setSysErr("缺少商家信息");
|
|
@@ -207,29 +194,18 @@ public class YueHuanXinSchedule {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- final List<AdminCompanyWechat> companyWechatList = adminCompanyWechatService.lambdaQuery()
|
|
|
- .list();
|
|
|
-
|
|
|
final List<AdminWebsit> websitList = adminWebsitService.lambdaQuery()
|
|
|
.in(AdminWebsit::getWebsitId, recordList.stream()
|
|
|
.map(UmsSupplementRecord::getWebsitId)
|
|
|
.collect(Collectors.toList()))
|
|
|
.list();
|
|
|
|
|
|
- final Map<String, AdminCompanyWechat> companyWechatMap = companyWechatList.stream()
|
|
|
- .collect(Collectors.toMap(AdminCompanyWechat::getCompanyWechatId, Function.identity()));
|
|
|
-
|
|
|
final Map<String, AdminWebsit> adminWebsitMap = websitList.stream()
|
|
|
.collect(Collectors.toMap(AdminWebsit::getWebsitId, Function.identity()));
|
|
|
|
|
|
for (UmsSupplementRecord record : recordList) {
|
|
|
- final AdminCompanyWechat companyWechat = companyWechatMap.get(record.getCompanyWechatId());
|
|
|
final AdminWebsit websit = adminWebsitMap.get(record.getWebsitId());
|
|
|
- if (Objects.isNull(companyWechat)) {
|
|
|
- record.setErrCount(record.getErrCount() + 1)
|
|
|
- .setSysErr("缺少商户信息");
|
|
|
- continue;
|
|
|
- }
|
|
|
+
|
|
|
if (Objects.isNull(websit)) {
|
|
|
record.setErrCount(record.getErrCount() + 1)
|
|
|
.setSysErr("缺少商家信息");
|
|
@@ -281,29 +257,17 @@ public class YueHuanXinSchedule {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- final List<AdminCompanyWechat> companyWechatList = adminCompanyWechatService.lambdaQuery()
|
|
|
- .list();
|
|
|
-
|
|
|
final List<AdminWebsit> websitList = adminWebsitService.lambdaQuery()
|
|
|
.in(AdminWebsit::getWebsitId, recordList.stream()
|
|
|
.map(UmsSupplementRecord::getWebsitId)
|
|
|
.collect(Collectors.toList()))
|
|
|
.list();
|
|
|
|
|
|
- final Map<String, AdminCompanyWechat> companyWechatMap = companyWechatList.stream()
|
|
|
- .collect(Collectors.toMap(AdminCompanyWechat::getCompanyWechatId, Function.identity()));
|
|
|
-
|
|
|
final Map<String, AdminWebsit> adminWebsitMap = websitList.stream()
|
|
|
.collect(Collectors.toMap(AdminWebsit::getWebsitId, Function.identity()));
|
|
|
|
|
|
for (UmsSupplementRecord record : recordList) {
|
|
|
- final AdminCompanyWechat companyWechat = companyWechatMap.get(record.getCompanyWechatId());
|
|
|
final AdminWebsit websit = adminWebsitMap.get(record.getWebsitId());
|
|
|
- if (Objects.isNull(companyWechat)) {
|
|
|
- record.setErrCount(record.getErrCount() + 1)
|
|
|
- .setSysErr("缺少商户信息");
|
|
|
- continue;
|
|
|
- }
|
|
|
if (Objects.isNull(websit)) {
|
|
|
record.setErrCount(record.getErrCount() + 1)
|
|
|
.setSysErr("缺少商家信息");
|