TASK: sketchboard library数据添加年龄组

This commit is contained in:
2025-07-08 16:09:01 +08:00
parent d379f778dc
commit 5472e59a84
3 changed files with 9 additions and 2 deletions

View File

@@ -47,6 +47,8 @@ public class Library implements Serializable {
private String level3Type;
private String ageGroup;
/**
* 元素名
*/

View File

@@ -35,6 +35,9 @@ public class LibraryUpdateVo implements Serializable {
@ApiModelProperty("二级类型")
private String level2Type;
@ApiModelProperty("年龄段")
private String ageGroup;
@ApiModelProperty("名字")
private String name;

View File

@@ -168,7 +168,8 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
}
if (!StringUtils.isEmpty(query.getAgeGroup())) {
queryWrapper.eq("level3_type", query.getAgeGroup());
// queryWrapper.eq("level3_type", query.getAgeGroup());
queryWrapper.eq("age_group", query.getAgeGroup());
}
if (query.getBrandId() != null) {
@@ -747,10 +748,11 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
library.setCreateDate(DateUtil.getByTimeZone(uploadDTO.getTimeZone()));
if (uploadDTO.getModelType().equals(ModelType.LIBRARY.getValue())) {
library.setLevel2Type(uploadDTO.getModelSex());
library.setLevel3Type(uploadDTO.getAgeGroup());
// library.setLevel3Type(uploadDTO.getAgeGroup());
} else {
library.setLevel3Type(uploadDTO.getModelSex());
}
library.setAgeGroup(uploadDTO.getAgeGroup());
libraryMapper.insert(library);
return library;
} else if (uploadDTO.getModelType().equals(ModelType.SYSTEM.getValue())) {