|
@@ -84,9 +84,15 @@ public class WarningImportListener extends AnalysisEventListener<WarningImportVo
|
|
|
private void setBo(WarningBo warningBo) {
|
|
|
warningBo.setVersion(0);
|
|
|
warningBo.setSortieNo(sortieNo);
|
|
|
- warningBo.setCreateBy(loginUser.getUserId());
|
|
|
- warningBo.setUpdateBy(loginUser.getUserId());
|
|
|
- warningBo.setTenantId(loginUser.getTenantId());
|
|
|
+ if (ObjectUtil.isNull(loginUser)) {
|
|
|
+ warningBo.setCreateBy(1L);
|
|
|
+ warningBo.setUpdateBy(1L);
|
|
|
+ warningBo.setTenantId(0L);
|
|
|
+ } else {
|
|
|
+ warningBo.setUpdateBy(loginUser.getUserId());
|
|
|
+ warningBo.setCreateBy(loginUser.getUserId());
|
|
|
+ warningBo.setTenantId(loginUser.getTenantId());
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|