将定时任务操作者改为,当前系统管理员
This commit is contained in:
@@ -581,6 +581,12 @@ namespace Tnb.WarehouseMgr
|
||||
public async Task<bool> GenPreTask(List<WmsPretaskH> preTasks, List<WmsPretaskCode> preTaskCodes)
|
||||
{
|
||||
//如果预任务出现起终库位相同,则删除对应预任务
|
||||
//modifiy by ly on 20230922 将当前预任务操作者设为四场管理员
|
||||
preTasks.ForEach(pt =>
|
||||
{
|
||||
pt.org_id = WmsWareHouseConst.AdministratorOrgId;
|
||||
pt.create_id = WmsWareHouseConst.AdministratorUserId;
|
||||
});
|
||||
if (preTasks.FindAll(it => it.startlocation_id == it.endlocation_id)?.Count > 0)
|
||||
{
|
||||
preTasks.RemoveAll(it => it.startlocation_id == it.endlocation_id);
|
||||
|
||||
Reference in New Issue
Block a user