Commit 00ac4a0a by 刘鑫

pref(工作队): 工作队名称长度添加校验

1 parent 0a89d6ba
package com.dituhui.pea.order.dto;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.util.List;
public class BusinessTeamAddDTO {
......@@ -17,6 +20,8 @@ public class BusinessTeamAddDTO {
/**
* 工作队名称
*/
@NotBlank(message = "工作队名称不能为空")
@Length(min = 1, max = 100, message = "工作队名称长度限制100字符内")
private String teamName;
/**
* 配件仓Id
......
package com.dituhui.pea.order.dto;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.util.List;
public class BusinessTeamUpdateDTO {
......@@ -24,6 +27,8 @@ public class BusinessTeamUpdateDTO {
/**
* 工作队名称
*/
@NotBlank(message = "工作队名称不能为空")
@Length(min = 1, max = 100, message = "工作队名称长度限制100字符内")
private String teamName;
/**
* 配件仓Id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!