Commit 4813be8a authored by yangyw's avatar yangyw

feature: 过滤资料库分类

parent 63f1090e
......@@ -6,6 +6,7 @@ import com.mybatisflex.annotation.KeyType;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class WikiSaveDto implements Serializable {
......@@ -37,7 +38,7 @@ public class WikiSaveDto implements Serializable {
* 资料分类ID
*/
@JsonProperty("wiki_category_id")
private Integer wikiCategoryId;
private List<Integer> wikiCategoryId;
/**
* 场景分类ID
......
......@@ -1011,8 +1011,8 @@ public class AppExamineService {
* @param dto
*/
public void saveWiki(WikiSaveDto dto) {
WikiSaveModel model = BeanUtil.copyProperties(dto, WikiSaveModel.class);
model.setWikiCategoryId(CollUtil.getLast(dto.getWikiCategoryId()));
examineService.saveWiki(model);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment