From 4450dd41e8d5828e5da4d277c86e54551a6b6c15 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Thu, 16 Dec 2021 09:06:28 +0800 Subject: [PATCH] 设备新增,修改是工艺字段可以为多个,修改mapper,sql --- screen-common/src/main/java/com/moral/pojo/VerificationCode.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/screen-common/src/main/java/com/moral/pojo/VerificationCode.java b/screen-common/src/main/java/com/moral/pojo/VerificationCode.java index f524a9f..03a2210 100644 --- a/screen-common/src/main/java/com/moral/pojo/VerificationCode.java +++ b/screen-common/src/main/java/com/moral/pojo/VerificationCode.java @@ -1,6 +1,7 @@ package com.moral.pojo; import lombok.Data; +import org.springframework.util.ObjectUtils; /** * @ClassName VerificationCode @@ -14,5 +15,17 @@ private String key; - private String value; + private String encode; + + private String inputText; + + public boolean valid(){ + if ( + ObjectUtils.isEmpty(key) || + ObjectUtils.isEmpty(inputText) || + inputText.length()!=4 + ) + return false; + return true; + } } -- Gitblit v1.8.0