更新批量导入数据功能调整数值异常时返回的语句

This commit is contained in:
fanzongzhe
2023-12-22 14:01:42 +08:00
parent c5adb3383b
commit 6a3ba709bb

View File

@@ -1345,12 +1345,12 @@ public class LpkGiftCardService extends MybatisBaseService<LpkGiftCardMapper, Lp
importVoList.add(details); importVoList.add(details);
} }
if (!isNum(temp)) { if (!isNum(temp)) {
setMsg.add("" + (r + 1) + "行菜品数量必须为大于0的整数"); setMsg.add("" + (r + 1) + "行菜品数量必须为大于等于0的整数");
} else { } else {
if (temp.contains(".")) { if (temp.contains(".")) {
String num = temp.substring(temp.indexOf(".") + 1); String num = temp.substring(temp.indexOf(".") + 1);
if (Integer.parseInt(num) != 0) { if (Integer.parseInt(num) != 0) {
setMsg.add("" + (r + 1) + "行菜品数量必须为大于0的整数"); setMsg.add("" + (r + 1) + "行菜品数量必须为大于等于0的整数");
} }
} }
} }