卡券数量不能0

This commit is contained in:
2023-12-28 09:54:25 +08:00
parent fdf15d0ab9
commit 8da1c3a1f5

View File

@@ -340,7 +340,7 @@ public class EmpCardGiftService extends MybatisBaseService<EmpCardGiftMapper, Em
return rb.setMsg("卡券数量不是数字,请重新填写"); return rb.setMsg("卡券数量不是数字,请重新填写");
} }
if(count==0){ if(count==0){
count=1; return rb.setMsg("卡券数量不能为0请重新填写");
} }
if (StringUtils.isBlank(dto.getEmpCardSid())) { if (StringUtils.isBlank(dto.getEmpCardSid())) {
return rb.setMsg("请选择企业卡"); return rb.setMsg("请选择企业卡");