This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
ci4s
/
ci4sManagement-cloud
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
1
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
编写不重复时提示注解
pull/7/head
fanshuai
1 year ago
parent
2d18d30fd1
commit
d9530a2a43
3 changed files
with
3 additions
and
3 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/DatasetServiceImpl.java
+1
-1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/DatasetVersionServiceImpl.java
+1
-1
ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/DatasetDaoMapper.xml
+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/DatasetServiceImpl.java
View File
@@ -356,7 +356,7 @@ public class DatasetServiceImpl implements DatasetService {
for (Field field : fields) {
for (Field field : fields) {
if (field.isAnnotationPresent(CheckDuplicate.class)) {
if (field.isAnnotationPresent(CheckDuplicate.class)) {
CheckDuplicate annotation = field.getAnnotation(CheckDuplicate.class);
CheckDuplicate annotation = field.getAnnotation(CheckDuplicate.class);
throw new Exception(
annotation.value()
+ "不能重复");
throw new Exception(
field.getName()
+ "不能重复");
}
}
}
}
}
}
+ 1
- 1
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/DatasetVersionServiceImpl.java
View File
@@ -162,7 +162,7 @@ public class DatasetVersionServiceImpl implements DatasetVersionService {
for (Field field : fields) {
for (Field field : fields) {
if (field.isAnnotationPresent(CheckDuplicate.class)) {
if (field.isAnnotationPresent(CheckDuplicate.class)) {
CheckDuplicate annotation = field.getAnnotation(CheckDuplicate.class);
CheckDuplicate annotation = field.getAnnotation(CheckDuplicate.class);
throw new Exception(
annotation.valu
e() + "不能重复");
throw new Exception(
field.getNam
e() + "不能重复");
}
}
}
}
}
}
+ 1
- 1
ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/DatasetDaoMapper.xml
View File
@@ -29,7 +29,7 @@
select
select
id,name,description,available_range,data_type,data_tag,create_by,create_time,update_by,update_time,state
id,name,description,available_range,data_type,data_tag,create_by,create_time,update_by,update_time,state
from dataset
from dataset
where name = #{name} and state = 1
where name = #{name} and state = 1
limit 1
</select>
</select>
<!--查询指定行数据-->
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="DatasetMap">
<select id="queryAllByLimit" resultMap="DatasetMap">
Write
Preview
Loading…
Cancel
Save