mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 21:52:07 +08:00
1、数据源创建内置类型错误修复;2、ureport包更新;
This commit is contained in:
+6
@@ -97,6 +97,12 @@ public class ReportDatasourceServiceImpl implements ReportDatasourceService {
|
|||||||
validateSystemDatasource(createReqVO.getBuildinType());
|
validateSystemDatasource(createReqVO.getBuildinType());
|
||||||
// 插入
|
// 插入
|
||||||
ReportDatasourceDO datasource = BeanUtils.toBean(createReqVO, ReportDatasourceDO.class);
|
ReportDatasourceDO datasource = BeanUtils.toBean(createReqVO, ReportDatasourceDO.class);
|
||||||
|
// 超管创建的作为内置数据源
|
||||||
|
if (SecurityFrameworkUtils.isSuperAdmin()) {
|
||||||
|
datasource.setBuildinType(ReportTemplateTypeEnum.SYSTEM);
|
||||||
|
} else {
|
||||||
|
datasource.setBuildinType(ReportTemplateTypeEnum.CUSTOM);
|
||||||
|
}
|
||||||
// 生成id
|
// 生成id
|
||||||
datasource.setId((Long) snowFlakeGenerator.nextId(null));
|
datasource.setId((Long) snowFlakeGenerator.nextId(null));
|
||||||
datasourceMapper.insert(datasource);
|
datasourceMapper.insert(datasource);
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user