Commit 6b940574 authored by eddie.woo's avatar eddie.woo

fix

parent 4fdea1d5
......@@ -2119,11 +2119,11 @@ public class DataImportService extends BaseService {
}
dataImportLogMapper.insertSelective(log);
} catch (Exception e) {
logger.error(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), e.getMessage()), e);
log.setId(idService.nextId());
log.setImportResult(false);
log.setErrorMsg(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), e.getMessage()));
dataImportLogMapper.insertSelective(log);
logger.error(String.format(EnumApiCodeMsg.CALLFAILED.getMsg(), e.getMessage()), e);
}
return 1;
}
......
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