|
|
|
@ -232,7 +232,7 @@ public class HeartService {
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case USER_DATA:
|
|
|
|
|
if (needExec(info.getDepartment(), info.getWarehouseDict(), info.getUserData())) {
|
|
|
|
|
if (needExec(info.getBasicDept(), info.getBasicInv(), info.getSysUser())) {
|
|
|
|
|
uploadData(exportType, taskId, x -> x.getUserData(info, taskId, now, syncTime));
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
@ -572,7 +572,7 @@ public class HeartService {
|
|
|
|
|
syncTimeMap.put("oldDate", syncTime);
|
|
|
|
|
|
|
|
|
|
//确认有开启部门信息同步
|
|
|
|
|
if (needExec(info.getDepartment())) {
|
|
|
|
|
if (needExec(info.getBasicDept())) {
|
|
|
|
|
Map<String, Object> map;
|
|
|
|
|
if (syncTime == null) {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.DEPT_DATA);
|
|
|
|
@ -602,7 +602,7 @@ public class HeartService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//确认有开启仓库字典同步
|
|
|
|
|
if (needExec(info.getWarehouseDict())) {
|
|
|
|
|
if (needExec(info.getBasicInv())) {
|
|
|
|
|
Map<String, Object> map;
|
|
|
|
|
if (syncTime == null) {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.WAREHOUSE_DICT);
|
|
|
|
@ -656,7 +656,7 @@ public class HeartService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//确认有开启用户信息同步
|
|
|
|
|
if (needExec(info.getUserData())) {
|
|
|
|
|
if (needExec(info.getSysUser())) {
|
|
|
|
|
Map<String, Object> map;
|
|
|
|
|
if (syncTime == null) {
|
|
|
|
|
map = basicExportStatusTimeInfo(now, BasicExportStatusTimeEnum.USER_DATA);
|
|
|
|
@ -1098,7 +1098,7 @@ public class HeartService {
|
|
|
|
|
basicDownloadStatusEntity.setUpdateTime(new Date());
|
|
|
|
|
basicDownloadStatusEntity.setEndTime(new Date());
|
|
|
|
|
basicDownloadStatusEntity.setRemark(remark.toString());
|
|
|
|
|
basicDownloadStatusEntity.setStatus(ConstantStatus.SYNC_STATUS_SUCCESS);
|
|
|
|
|
basicDownloadStatusEntity.setStatus(BasicExportStatusEnum.SUCCESS.getCode());
|
|
|
|
|
basicDownloadService.updateDownloadStatus(basicDownloadStatusEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1111,7 +1111,7 @@ public class HeartService {
|
|
|
|
|
// 下载最近更新国家库数据-上级服务
|
|
|
|
|
@Transactional(propagation = Propagation.NESTED)
|
|
|
|
|
public void dlAllDiProducts() {
|
|
|
|
|
BaseResponse<List<BasicExportStatusEntity>> baseResponse = spGetHttp.getBasicStatus(BasicProcessStatus.NEW_ALL_DI + "");
|
|
|
|
|
BaseResponse<List<BasicExportStatusEntity>> baseResponse = spGetHttp.getBasicStatus(BasicExportTypeEnum.COUNTRY_DI_DATA.getRemark() + "");
|
|
|
|
|
List<BasicExportStatusEntity> pageSimpleResponse = baseResponse.getData();
|
|
|
|
|
if (pageSimpleResponse != null) {
|
|
|
|
|
List<BasicExportStatusEntity> basicExportStatusEntities = pageSimpleResponse;
|
|
|
|
@ -1165,7 +1165,7 @@ public class HeartService {
|
|
|
|
|
basicDownloadStatusEntity.setUpdateTime(new Date());
|
|
|
|
|
basicDownloadStatusEntity.setEndTime(new Date());
|
|
|
|
|
basicDownloadStatusEntity.setRemark(remark.toString());
|
|
|
|
|
basicDownloadStatusEntity.setStatus(ConstantStatus.SYNC_STATUS_SUCCESS);
|
|
|
|
|
basicDownloadStatusEntity.setStatus(BasicExportStatusEnum.SUCCESS.getCode());
|
|
|
|
|
basicDownloadService.updateDownloadStatus(basicDownloadStatusEntity);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -1272,8 +1272,7 @@ public class HeartService {
|
|
|
|
|
relevanceDao.insertOrUpdateBatch(relevanceList);
|
|
|
|
|
}
|
|
|
|
|
if (CollectionUtil.isNotEmpty(corpList)) {
|
|
|
|
|
for (BasicCorpEntity basicCorpEntity : corpList)
|
|
|
|
|
corpDao.importBasicUnitMaintain(basicCorpEntity);
|
|
|
|
|
corpDao.insertOrUpdateBatch(corpList);
|
|
|
|
|
}
|
|
|
|
|
if (CollectionUtil.isNotEmpty(supCertList)) {
|
|
|
|
|
supCertDao.insertOrUpdateBatch(supCertList);
|
|
|
|
|