|
|
|
@ -854,12 +854,12 @@ public class SpsSyncDownloadService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
DeviceInfoService deviceInfoService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设备信息同步
|
|
|
|
|
*
|
|
|
|
|
* @param info
|
|
|
|
|
* @param now
|
|
|
|
|
* @param createFile
|
|
|
|
@ -1164,6 +1164,7 @@ public class SpsSyncDownloadService {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
DeviceUpkeepDetailItemService deviceUpkeepDetailItemService;
|
|
|
|
|
|
|
|
|
|
protected boolean generateDeviceUpkeepFile(SyncDataSetResponse info, Date now, boolean createFile, Date syncTime) {
|
|
|
|
|
BasicExportTypeEnum exportType = BasicExportTypeEnum.DEVICE_UPKEEP_DATA;
|
|
|
|
|
//文件数据
|
|
|
|
@ -1248,8 +1249,10 @@ public class SpsSyncDownloadService {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
ThrManufacturerService thrManufacturerService;
|
|
|
|
|
|
|
|
|
|
// 生产企业 generateProBusFile
|
|
|
|
|
protected boolean generateProBusFile(SyncDataSetResponse info, Date now, boolean createFile, Date syncTime) {
|
|
|
|
|
BasicExportTypeEnum exportType = BasicExportTypeEnum.PRODUCE_BUSINESS_DATA;
|
|
|
|
@ -1333,7 +1336,7 @@ public class SpsSyncDownloadService {
|
|
|
|
|
ge = true;
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
//确认有开启报修设备管理信息由外向内同步
|
|
|
|
|
//确认有开启关联关系由外向内同步
|
|
|
|
|
if (needExec(info.getDrugDataTask())) {
|
|
|
|
|
Map<String, Object> map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.DRUG_DATA_TASK, createFile);
|
|
|
|
|
totalTimeMap.put(BasicExportStatusTimeEnum.DRUG_DATA_TASK, map);
|
|
|
|
@ -1354,7 +1357,7 @@ public class SpsSyncDownloadService {
|
|
|
|
|
dataResponse.setRelCodeDetails(list);
|
|
|
|
|
|
|
|
|
|
jsonMap.put(SpsSyncDrugDataTaskResponse.class.getSimpleName(), dataResponse);
|
|
|
|
|
remark.append("药品关联信息任务:").append(relCodeBatches.size()).append("条\n");
|
|
|
|
|
remark.append("药品关联关系任务:").append(relCodeBatches.size()).append("条\n");
|
|
|
|
|
boolean update = relCodeBatchService.update(new LambdaUpdateWrapper<RelCodeBatch>().set(RelCodeBatch::getUploadFlagDown, 1).in(RelCodeBatch::getId, batchIds));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1390,6 +1393,7 @@ public class SpsSyncDownloadService {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 插入 basicExportStatusTime表
|
|
|
|
|
*
|
|
|
|
|