Commit 265727c8 authored by eddie.woo's avatar eddie.woo

抽取分发bug

parent 07b735d8
...@@ -1881,11 +1881,12 @@ public class DataImportService extends BaseService { ...@@ -1881,11 +1881,12 @@ public class DataImportService extends BaseService {
String effectiveDateTo = param.getEffectiveDateTo(); String effectiveDateTo = param.getEffectiveDateTo();
List<Future> resList = Lists.newArrayList(); List<Future> resList = Lists.newArrayList();
List<Integer> dataTypes = param.getDataTypes(); List<Integer> dataTypes = param.getDataTypes();
String operator = authUserHelper.getCurrentAuditor().get();
dataTypes.forEach(type -> { dataTypes.forEach(type -> {
orgs.forEach(o -> { orgs.forEach(o -> {
try { try {
Callable callEbs = new CallEbsThread(type, o,ebsCallUrl,dataImportLogMapper,authUserHelper, Callable callEbs = new CallEbsThread(type, o,ebsCallUrl,dataImportLogMapper,authUserHelper,
idService,dtsTokenService,period, effectiveDateFrom, effectiveDateTo); idService,dtsTokenService,period, effectiveDateFrom, effectiveDateTo, operator);
executorService.submit(callEbs); executorService.submit(callEbs);
// resList.add(future); // resList.add(future);
} catch (RejectedExecutionException rje) { } catch (RejectedExecutionException rje) {
...@@ -2004,10 +2005,11 @@ public class DataImportService extends BaseService { ...@@ -2004,10 +2005,11 @@ public class DataImportService extends BaseService {
private String effectiveDateFrom; private String effectiveDateFrom;
private String effectiveDateTo; private String effectiveDateTo;
private String operator;
CallEbsThread(int type, Organization org, String ebsCallUrl, DataImportLogMapper dataImportLogMapper, CallEbsThread(int type, Organization org, String ebsCallUrl, DataImportLogMapper dataImportLogMapper,
AuthUserHelper authUserHelper, DistributedIdService idService, DtsTokenService dtsTokenService, AuthUserHelper authUserHelper, DistributedIdService idService, DtsTokenService dtsTokenService,
String period,String effectiveDateFrom, String effectiveDateTo) { String period,String effectiveDateFrom, String effectiveDateTo, String operator) {
this.type = type; this.type = type;
this.org = org; this.org = org;
this.period = period; this.period = period;
...@@ -2018,6 +2020,7 @@ public class DataImportService extends BaseService { ...@@ -2018,6 +2020,7 @@ public class DataImportService extends BaseService {
this.dataImportLogMapper = dataImportLogMapper; this.dataImportLogMapper = dataImportLogMapper;
this.effectiveDateFrom = effectiveDateFrom; this.effectiveDateFrom = effectiveDateFrom;
this.effectiveDateTo = effectiveDateTo; this.effectiveDateTo = effectiveDateTo;
this.operator = operator;
} }
@Override @Override
...@@ -2038,7 +2041,7 @@ public class DataImportService extends BaseService { ...@@ -2038,7 +2041,7 @@ public class DataImportService extends BaseService {
log.setType(EnumImportType.ExtractFinancialData.getCode()); log.setType(EnumImportType.ExtractFinancialData.getCode());
log.setFileType(EnumEbsExtractType.getNameByCode(type)); log.setFileType(EnumEbsExtractType.getNameByCode(type));
log.setPeriodStatus("EBS抽取"); log.setPeriodStatus("EBS抽取");
log.setOperator(authUserHelper.getCurrentAuditor().get()); log.setOperator(operator);
try { try {
if (StringUtils.isEmpty(org.getEnterpriseAccountCode())) { if (StringUtils.isEmpty(org.getEnterpriseAccountCode())) {
log.setId(idService.nextId()); log.setId(idService.nextId());
......
...@@ -188,7 +188,17 @@ ...@@ -188,7 +188,17 @@
allowHeaderFiltering: false, allowHeaderFiltering: false,
width: '20%', width: '20%',
caption: $translate.instant('Status') caption: $translate.instant('Status')
} }, {
dataField: "operator",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('LogOperationUser')
}, {
dataField: "operateTime",
allowHeaderFiltering: false,
width: '10%',
caption: $translate.instant('LogOperationTime')
}
], ],
onContentReady: function (e) { onContentReady: function (e) {
$scope.extractFinancialInstance = e.component; $scope.extractFinancialInstance = e.component;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment