修复bug

This commit is contained in:
18942506660
2023-11-30 10:57:55 +08:00
parent 904f6a11f6
commit efd19df5b8
3 changed files with 40 additions and 1 deletions

View File

@@ -70,6 +70,7 @@ namespace WMS.Web.Api.Controllers
return "";
}
[HttpGet]
[Route("Refresh")]
public async Task<string> Refresh()
@@ -125,8 +126,39 @@ namespace WMS.Web.Api.Controllers
}
private void GetList()
{
List<OpsBoxResponse> list = new List<OpsBoxResponse>();
for (int i = 0; i < 200; i++)
{
OpsBoxResponse response = new OpsBoxResponse()
{
BoxBillNo = "Gys" + (500 + i).ToString(),
OpsBoxId = 100 + i,
CompleteCartonTime = DateTime.Now,
CompleteCartonUser = "02",
CreateTime = DateTime.Now,
CreateUser = "01",
OrgId = 0,
SupplierId = 10897
};
list.Add(response);
}
}
private string GetStr()
{
var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var Charsarr = new char[11];
var random = new Random();
for (int i = 0; i < Charsarr.Length; i++)
{
Charsarr[i] = characters[random.Next(characters.Length)];
}
return new String(Charsarr);
}
/// <summary>
/// 测试:同步