更新批量导入数据功能调整数值异常时返回的语句
This commit is contained in:
@@ -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的整数");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user