|
|
@ -35,19 +35,22 @@ public class BasicGenExcelService {
|
|
|
|
SyncDataSetService syncDataSetService;
|
|
|
|
SyncDataSetService syncDataSetService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
HttpOkClient httpOkClient;
|
|
|
|
HttpOkClient httpOkClient;
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
public String getIpUrl() {
|
|
|
|
public String getIpUrl() {
|
|
|
|
SyncDataSetEntity syncDataSetEntity = syncDataSetService.findSet();
|
|
|
|
SyncDataSetEntity syncDataSetEntity = syncDataSetService.findSet();
|
|
|
|
return syncDataSetEntity.getSyncIp();
|
|
|
|
return syncDataSetEntity.getSyncIp();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
BasicCorpExportLogService basicCorpExportLogService;
|
|
|
|
BasicCorpExportLogService basicCorpExportLogService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
BasicCorpService basicUnitMaintainService;
|
|
|
|
BasicCorpService basicUnitMaintainService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
BasicProductsExportLogService basicProductsExportLogService;
|
|
|
|
BasicProductsExportLogService basicProductsExportLogService;
|
|
|
|
// @Resource
|
|
|
|
|
|
|
|
|
|
|
|
// @Resource
|
|
|
|
// UdiRelevanceService udiRelevanceService;
|
|
|
|
// UdiRelevanceService udiRelevanceService;
|
|
|
|
// @Resource
|
|
|
|
// @Resource
|
|
|
|
// SystemParamConfigService systemParamConfigService;
|
|
|
|
// SystemParamConfigService systemParamConfigService;
|
|
|
@ -81,8 +84,8 @@ public class BasicGenExcelService {
|
|
|
|
excelData.add(head);
|
|
|
|
excelData.add(head);
|
|
|
|
//选中导出
|
|
|
|
//选中导出
|
|
|
|
if (basicCorpsExportRequest.getIds() != null && basicCorpsExportRequest.getIds().size() > 0) {
|
|
|
|
if (basicCorpsExportRequest.getIds() != null && basicCorpsExportRequest.getIds().size() > 0) {
|
|
|
|
List<Integer> ids = basicCorpsExportRequest.getIds();
|
|
|
|
List<Long> ids = basicCorpsExportRequest.getIds();
|
|
|
|
for (Integer id : ids) {
|
|
|
|
for (Long id : ids) {
|
|
|
|
BasicUnitMaintainFilterRequest filterRequest = new BasicUnitMaintainFilterRequest();
|
|
|
|
BasicUnitMaintainFilterRequest filterRequest = new BasicUnitMaintainFilterRequest();
|
|
|
|
filterRequest.setId(id);
|
|
|
|
filterRequest.setId(id);
|
|
|
|
List<List<String>> genDatas = genExcelData(filterRequest);
|
|
|
|
List<List<String>> genDatas = genExcelData(filterRequest);
|
|
|
@ -114,7 +117,8 @@ public class BasicGenExcelService {
|
|
|
|
corpExportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS);
|
|
|
|
corpExportLogEntity.setStatus(BasicProcessStatus.UDIINFO_IMPORT_SUCCESS);
|
|
|
|
basicCorpExportLogService.updateCorpExportLog(corpExportLogEntity);
|
|
|
|
basicCorpExportLogService.updateCorpExportLog(corpExportLogEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// //上传往来单位SMP
|
|
|
|
// //上传往来单位SMP
|
|
|
|
// @Async
|
|
|
|
// @Async
|
|
|
|
// public void uploadCorpSmp(String genKey, CorpsExportRequest corpsExportRequest) {
|
|
|
|
// public void uploadCorpSmp(String genKey, CorpsExportRequest corpsExportRequest) {
|
|
|
@ -193,7 +197,8 @@ public class BasicGenExcelService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
basicCorpExportLogService.updateCorpExportLog(corpExportLogEntity);
|
|
|
|
basicCorpExportLogService.updateCorpExportLog(corpExportLogEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// @Async
|
|
|
|
// @Async
|
|
|
|
// public void exportUdiInfo(String genKey, UdiInfoExportRequest udiInfoExportRequest) {
|
|
|
|
// public void exportUdiInfo(String genKey, UdiInfoExportRequest udiInfoExportRequest) {
|
|
|
@ -262,7 +267,8 @@ public class BasicGenExcelService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
basicProductsExportLogService.updateUdiInfoExportLog(basicProductsExportLogEntity);
|
|
|
|
basicProductsExportLogService.updateUdiInfoExportLog(basicProductsExportLogEntity);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// @Async
|
|
|
|
// @Async
|
|
|
|
// public void uploadProductsSmp(String genKey, UdiInfoExportRequest udiInfoExportRequest) {
|
|
|
|
// public void uploadProductsSmp(String genKey, UdiInfoExportRequest udiInfoExportRequest) {
|
|
|
|