feat: 增加校验
This commit is contained in:
parent
d4121b1e6d
commit
f5ff21cdc1
|
|
@ -18,6 +18,7 @@ public class InProduceOrderReceiveMaterialQO {
|
|||
/**
|
||||
* 储位编号列表
|
||||
*/
|
||||
@NotBlank
|
||||
private String binNos;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.nflg.wms.common.pojo.qo;
|
||||
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
|
@ -18,6 +19,7 @@ public class InProduceOrderReceiveQO {
|
|||
/**
|
||||
* 物料列表
|
||||
*/
|
||||
@Valid
|
||||
@NotEmpty
|
||||
private List<InProduceOrderReceiveMaterialQO> items;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue