Merge branch 'master' of http://47.115.28.255:8110/r/TigerClouds-Tech/Server/TigerApi6_2024
| | |
| | | var result = new ApiAction(); |
| | | try |
| | | { |
| | | if (input.BatchNo.IsNullOrEmpty()) |
| | | { |
| | | result.IsSuccessed = false; |
| | | result.LocaleMsg = new($"工单批次号不能为空,是否未扫描工单?"); |
| | | } |
| | | result.Data = input.IsTry == "Y" ? Cache.CodeRule[input.Code]?.TryGenerate(input.Prefix, $"{input.BatchNo}-{input.Qty}-").Data.ToString() ?? "" : Cache.CodeRule[input.Code]?.Generate(input.Prefix, $"{input.BatchNo}-{input.Qty}-").Data.ToString() ?? ""; |
| | | } |
| | | catch (Exception ex) |