1.排队取号 取号校验手机号

This commit is contained in:
2024-09-19 15:24:58 +08:00
parent 3ee0bbcd4a
commit 7d6ac6e33d
2 changed files with 5 additions and 4 deletions

View File

@@ -4,12 +4,15 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
@EqualsAndHashCode(callSuper = true)
@Data
public class TakeNumberDTO extends BaseCallTableDTO{
@NotNull
@NotBlank
@Pattern(regexp = "^1\\d{10}$|^(0\\d{2,3}-?|\\(0\\d{2,3}\\))?[1-9]\\d{4,7}(-\\d{1,8})?$",message = "手机号码格式错误")
private String phone;
private String note;
private String name;

View File

@@ -102,9 +102,7 @@ public class TbCallServiceImpl implements TbCallService {
callQueue.setCreateDay(DateUtil.today());
boolean save = callQueueService.save(callQueue);
// 打印排号票信息
if (save) {
mQUtils.printCallNumTicket(callQueue.getId(), callQueue.getShopId());
}
mQUtils.printCallNumTicket(callQueue.getId(), callQueue.getShopId());
return save;
}