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