Sfoglia il codice sorgente

更新了更新条件

lwh 2 settimane fa
parent
commit
c4d9640704

+ 1 - 1
yudao-module-museum/yudao-module-museum-biz/src/main/java/cn/iocoder/yudao/module/museum/controller/admin/museuminfo/vo/MuseumInfoSaveVO.java

@@ -65,7 +65,7 @@ public class MuseumInfoSaveVO {
     private BigDecimal weight;
 
     @Schema(description = "来源")
-    private String origin;
+    private Integer origin;
 
     @Schema(description = "描述")
     private String bewrite;

+ 1 - 1
yudao-module-museum/yudao-module-museum-biz/src/main/java/cn/iocoder/yudao/module/museum/service/museuminfo/MuseumInfoService.java

@@ -15,7 +15,7 @@ public interface MuseumInfoService {
    /**
     * 创建标本
    * */
-   Integer createMuseumInfo(MuseumInfoSaveVO saveVO);
+   Integer createMuseumInfo(@Valid MuseumInfoSaveVO saveVO);
 
    /**
     * 更新标本