Commit 9b88673e authored by yanzg's avatar yanzg

默认日期格式的支持

parent 9f840119
...@@ -275,9 +275,6 @@ public final class CheckerHelper { ...@@ -275,9 +275,6 @@ public final class CheckerHelper {
* @return * @return
*/ */
public CheckerHelper checkNumberLength(String paramName, String paramVal, int length) { public CheckerHelper checkNumberLength(String paramName, String paramVal, int length) {
if (!isValid()) {
return this;
}
if (StringHelper.isEmpty(paramVal)) { if (StringHelper.isEmpty(paramVal)) {
return this; return this;
} }
...@@ -286,6 +283,16 @@ public final class CheckerHelper { ...@@ -286,6 +283,16 @@ public final class CheckerHelper {
return this; return this;
} }
/**
* 校验地区Id
*
* @param paramVal
* @return
*/
public CheckerHelper checkAreaId(String paramName, String paramVal) {
return this.checkNumberLength(paramName, paramVal, 9);
}
/** /**
* 长度检查 * 长度检查
* *
......
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