|
|
@@ -32,7 +32,7 @@ public class FeishuDocSyncServiceImpl implements IFeishuDocSyncService {
|
|
|
@Autowired
|
|
|
BytedanceProductDocProperties productDocProperties;
|
|
|
@Override
|
|
|
- public void syncBytedanceProductPlatform() {
|
|
|
+ public String syncBytedanceProductPlatform() {
|
|
|
String readToken;
|
|
|
try {
|
|
|
//iaa
|
|
|
@@ -44,14 +44,14 @@ public class FeishuDocSyncServiceImpl implements IFeishuDocSyncService {
|
|
|
List<String> all = bytedanceProductUpdateMapper.allPlatform();
|
|
|
list.removeIf(a -> all.contains(a.getPlatformId()));
|
|
|
if (!list.isEmpty()){
|
|
|
- System.out.println("新增商品库:"+JSON.toJSONString(list));
|
|
|
bytedanceProductUpdateMapper.batchInsertPlatform(list);
|
|
|
+ return "新增商品库:"+JSON.toJSONString(list);
|
|
|
}
|
|
|
}catch (Exception e){
|
|
|
log.error("获取飞书文档读权限token失败",e);
|
|
|
- return;
|
|
|
+ return "商品库同步失败";
|
|
|
}
|
|
|
-
|
|
|
+ return null;
|
|
|
|
|
|
}
|
|
|
|