Commit 4ddb8a4b by suxiaochun

通过GTIN查询 增加14位限制

parent 7bb493d6
......@@ -64,6 +64,12 @@ public class GLNOutController {
if (StringUtils.isBlank(vo.getGtin())) {
return R.error("请输入GTIN");
}
if (vo.getGtin().length() < 13 || vo.getGtin().length() > 14) {
return R.error("请输入14位GTIN码");
}
if (vo.getGtin().length() == 13) {
vo.setGtin("0" + vo.getGtin());
}
if (!sysCaptchaService.validate(vo.getUuid(), vo.getCaptcha())) {
return R.error("验证码不正确");
}
......
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