Commit e6192c4e authored by lijd's avatar lijd

修改新增订单的权限校验

parent 65be681c
......@@ -57,7 +57,6 @@ public class OrderForm {
* 货物类型
*/
@Positive(message = "参数货物类型不合法", groups = {ValidatorInsert.class, ValidatorUpdate.class})
@Range(min = 1, max = 19, message = "无效的货物类型", groups = {ValidatorInsert.class, ValidatorUpdate.class, ValidatorList.class})
@NotNull(message = "参数货物类型不能为空", groups = {ValidatorInsert.class, ValidatorUpdate.class})
private Integer goodsType;
......
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