agv 调整

This commit is contained in:
qianhao.xu 2024-05-16 09:30:54 +08:00
parent 5c108fb878
commit 9e24508cf1
2 changed files with 6 additions and 4 deletions

View File

@ -26,8 +26,8 @@
"IsAutoCloseConnection": true,
"DbName": "ZrAdmin" //
},
"corsUrls": [ "http://localhost:8887", "http://localhost:8886" ], //","
"corsUrls": [ "http://localhost:8887", "http://localhost:8886", "http://192.168.60.251:8877" ], //","
"JwtSettings": {
"Issuer": "ZRAdmin.NET", //token
"Audience": "ZRAdmin.NET", //token

View File

@ -80,7 +80,8 @@ namespace ZR.Service.mes.mm
/// <returns></returns>
public (List<ProWorkorder_v2>, int) Getworkorderlist(WorkorderqueryDto query)
{
DateTime datetimespan = query.datetimespan;
DateTime datetimespan = new DateTime(query.datetimespan.Year, query.datetimespan.Month, query.datetimespan.Day, 0, 0, 0);
// 获取年份和周数
Calendar calendar = new GregorianCalendar();
@ -90,7 +91,8 @@ namespace ZR.Service.mes.mm
// 获取这一周中的第几天
DayOfWeek dayOfWeek = datetimespan.DayOfWeek;
int dayOfWeekNumber = (int)dayOfWeek; // 将 DayOfWeek 枚举转换为从 1 开始的数字
Console.WriteLine("<-获取工单列表-> "+ year+"年"+week+"周"+ dayOfWeekNumber+"日");
logger.Error("<-获取工单列表-> " + year + "年" + week + "周" + dayOfWeekNumber + "日");
//todo 已经和正在配料的工单号和毛坯号不能变??????
int total = 0;
List<ProWorkorder_v2> WorkorderList = Context.Queryable<ProWorkorder_v2>()