mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
1、报表复制异常修复;2、部分报表模板请求组织id归属修复;
This commit is contained in:
+4
-3
@@ -175,7 +175,7 @@ public class ReportTemplateServiceImpl implements ReportTemplateService {
|
||||
// 超管/管理端操作的就是公共模版
|
||||
boolean isPublic = (isSuperAdmin || manageEndPoint) && ObjectUtil.isNull(targetOrganId);
|
||||
|
||||
Long organId = isPublic ? loginOrganId : targetOrganId;
|
||||
Long organId = ObjectUtil.defaultIfNull(targetOrganId, loginOrganId);
|
||||
|
||||
Long templateId = createReqVO.getId();
|
||||
// 校验存在
|
||||
@@ -204,6 +204,7 @@ public class ReportTemplateServiceImpl implements ReportTemplateService {
|
||||
copyTemplateDO.setType(ReportTemplateTypeEnum.SYSTEM);
|
||||
} else {
|
||||
// 重置所属机构
|
||||
copyTemplateDO.setOrganId(organId);
|
||||
copyTemplateDO.setType(ReportTemplateTypeEnum.CUSTOM);
|
||||
}
|
||||
templateMapper.insert(copyTemplateDO);
|
||||
@@ -220,7 +221,7 @@ public class ReportTemplateServiceImpl implements ReportTemplateService {
|
||||
// 超管/管理端操作的就是公共模版
|
||||
boolean isPublic = (isSuperAdmin || manageEndPoint) && ObjectUtil.isNull(targetOrganId);
|
||||
|
||||
Long organId = isPublic ? loginOrganId : targetOrganId;
|
||||
Long organId = ObjectUtil.defaultIfNull(targetOrganId, loginOrganId);
|
||||
|
||||
Long templateId = updateReqVO.getId();
|
||||
// 校验存在
|
||||
@@ -801,7 +802,7 @@ public class ReportTemplateServiceImpl implements ReportTemplateService {
|
||||
// 超管/管理端操作的就是公共模版
|
||||
boolean isPublic = (isSuperAdmin || manageEndPoint) && ObjectUtil.isNull(targetOrganId);
|
||||
|
||||
Long organId = isPublic ? loginOrganId : targetOrganId;
|
||||
Long organId = ObjectUtil.defaultIfNull(targetOrganId, loginOrganId);
|
||||
|
||||
try {
|
||||
// 读取文件json
|
||||
|
||||
Reference in New Issue
Block a user