修改数量

This commit is contained in:
2025-08-06 10:33:15 +08:00
parent 5066f932c9
commit d129c5e234
2 changed files with 5 additions and 1 deletions

View File

@@ -138,6 +138,10 @@ namespace BarCode.Web.Domain.Services
{ {
d.Number = 1000; d.Number = 1000;
} }
else if(d.Number==0)
{
continue;
}
if (d.isTwo == 0)//如果套装数为0那么自动变成1 if (d.isTwo == 0)//如果套装数为0那么自动变成1
{ {
d.isTwo = 1; d.isTwo = 1;

View File

@@ -24,7 +24,7 @@ namespace BarCode.Web.Domain.Values
public static ValueTuple<int, string> NoDateError = (40005, "数据不存在"); public static ValueTuple<int, string> NoDateError = (40005, "数据不存在");
public static ValueTuple<int, string> NoOrgError = (40006, "组织信息不存在"); public static ValueTuple<int, string> NoOrgError = (40006, "组织信息不存在");
public static ValueTuple<int, string> IsTwoError = (70001, "两件装产品,数量需填双数"); public static ValueTuple<int, string> IsTwoError = (70001, "两件装产品,数量需填双数");
public static ValueTuple<int, string> IsZeroError = (70002, "数量不能为0");
/// <summary> /// <summary>
/// 没有菜单权限,无法登录 /// 没有菜单权限,无法登录
/// </summary> /// </summary>