新增客户备注字段
This commit is contained in:
+1
@@ -189,6 +189,7 @@ public class AdminManagerController {
|
||||
userDTO.setPhone(phone.isEmpty() ? null : phone);
|
||||
userDTO.setContactPhone(phone.isEmpty() ? null : phone);
|
||||
userDTO.setAccount(account);
|
||||
userDTO.setSignature(dto.getRemark() == null ? "" : dto.getRemark().trim());
|
||||
userDTO.setType(0);
|
||||
userDTO.setShopId(shopId);
|
||||
userDTO.setShopIds(List.of(shopId));
|
||||
|
||||
+4
@@ -4,6 +4,7 @@ import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Pattern;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
@Data
|
||||
public class ManagerCustomerCreateDTO {
|
||||
@@ -13,4 +14,7 @@ public class ManagerCustomerCreateDTO {
|
||||
|
||||
@Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
|
||||
private String phone;
|
||||
|
||||
@Size(max = 200, message = "客户备注不能超过200个字符")
|
||||
private String remark;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user