代码备份

dev_unify
yewj 8 months ago
parent 4db47217c4
commit 90e09f8bff

@ -77,7 +77,7 @@ public enum BasicExportTypeEnum {
/**
*
*/
DRUG_DATA_TASK("drug_data_task", "药品关联信息任"),
DRUG_DATA_TASK("drug_data_task", "药品关联关系"),
;
@EnumValue
private String key;

@ -74,8 +74,10 @@ public class SyncDataSetEntity {
private int deviceRepairApply;//报修管理
private int deviceUpkeep;//设备保养
private int produceBusiness;//生产企业 PRODUCE_BUSINESS_DATA
private int drugDataTask;//药品关联信息
/**
*
*/
private int drugDataTask;
}

@ -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
*

@ -1188,3 +1188,6 @@ CALL Pro_Temp_ColumnWork('basic_products', 'detailSort',
' tinyint DEFAULT NULL COMMENT ''明细分类''',
1);
CALL Pro_Temp_ColumnWork('sync_data_set', 'drugDataTask',
' tinyint NULL DEFAULT NULL COMMENT ''药品关联关系同步''',
1);

Loading…
Cancel
Save