liurunyu
4 天以前 12477079efd139b97b59668dcf3c39ab69520f37
pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/mqtt/manure/ManureDto.java
@@ -3,6 +3,7 @@
import com.dy.pipIrrGlobal.pojoPr.PrStManure;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
/**
@@ -20,6 +21,12 @@
    public String id;
    /**
     * 水肥机FBox序列号
     */
    @NotEmpty(message = "水肥机FBox序列号") //不能为空也不能为null
    public String fboxId;
    /**
     * 水肥机名称
     */
    @NotEmpty(message = "水肥机名称不能为空") //不能为空也不能为null
@@ -27,7 +34,7 @@
    /**
     * 水肥机编号
     */
    @NotEmpty(message = "水肥机编号不能为空") //不能为空也不能为null
    @NotNull(message = "水肥机编号不能为空") //不能为空也不能为null
    public Integer no;
@@ -48,6 +55,7 @@
    public PrStManure toNewPo(){
        PrStManure po = new PrStManure();
        po.fboxId = this.fboxId;
        po.name = this.name;
        po.no = this.no;
        po.lng = this.lng;