修改派车任务

optimize
jianghaiqing 2 years ago
parent 972a88ca6a
commit df73c80a25

@ -143,10 +143,16 @@ namespace Myshipping.Application
/// </summary> /// </summary>
[Description("VGM反馈详情")] [Description("VGM反馈详情")]
VGM_FEEDBACK, VGM_FEEDBACK,
/// <summary>
/// 比对下货纸
/// </summary>
[Description("比对下货纸")]
SHIPPING_ORDER_COMPARE,
/// <summary> /// <summary>
/// 派车 /// 派车
/// </summary> /// </summary>
[Description("派车")] [Description("派车")]
TRUCK_DISPATCH TRUCK_DISPATCH,
} }
} }

@ -639,11 +639,10 @@ namespace Myshipping.Application
if (userTendInfo == null) if (userTendInfo == null)
throw Oops.Oh($"当前用户关联租户信息获取失败"); throw Oops.Oh($"当前用户关联租户信息获取失败");
var statList = _taskStatManageInfoRepository.AsQueryable().Where(t => (t.USER_ID == userTendInfo.User.Id //var statList = _taskStatManageInfoRepository.AsQueryable().Where(t => (t.USER_ID == userTendInfo.User.Id
&& t.STAT_TYPE == TaskStatLevelEnum.PERSON.ToString()) || (t.COMP_ID == userTendInfo.Tend.Id && t.STAT_TYPE == TaskStatLevelEnum.PUBLIC.ToString())).ToList(); //&& t.STAT_TYPE == TaskStatLevelEnum.PERSON.ToString()) || (t.COMP_ID == userTendInfo.Tend.Id && t.STAT_TYPE == TaskStatLevelEnum.PUBLIC.ToString())).ToList();
if (true)
{
//任务列表分组统计 //任务列表分组统计
var groupList = _taskBaseInfoRepository.AsQueryable() var groupList = _taskBaseInfoRepository.AsQueryable()
.Where(t => (t.CreatedUserId == UserManager.UserId && t.IS_PUBLIC == 0) || (t.TenantId == userTendInfo.Tend.Id && t.IS_PUBLIC == 1)) .Where(t => (t.CreatedUserId == UserManager.UserId && t.IS_PUBLIC == 0) || (t.TenantId == userTendInfo.Tend.Id && t.IS_PUBLIC == 1))
@ -818,7 +817,7 @@ namespace Myshipping.Application
}); });
} }
#endregion #endregion
}
} }
catch (Exception ex) catch (Exception ex)
{ {

Loading…
Cancel
Save