|
|
|
@ -232,6 +232,14 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
logger.LogInformation("批次={no} 接收到创建任务报文 报文={msg}", batchNo, JsonConvert.SerializeObject(info));
|
|
|
|
|
|
|
|
|
|
SqlSugarScopeProvider tenantDb = saasDbService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
//var sql = tenantDb.Queryable<SeaExport>().Where(x => x.Id > 232 ).ToSqlString();
|
|
|
|
|
|
|
|
|
|
//var a = user.UserId;
|
|
|
|
|
//var aa = user.TenantId;
|
|
|
|
|
//var a343 = user.GetTenantId();
|
|
|
|
|
//var sfdfd = user.TenantName;
|
|
|
|
|
//var b = user.GetOrgId();
|
|
|
|
|
//var b232 = user.OrgId;
|
|
|
|
|
|
|
|
|
|
TaskBaseInfo taskInfo = null;
|
|
|
|
|
|
|
|
|
@ -1763,6 +1771,8 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
bc.PRICE_CALCULATION_DATE
|
|
|
|
|
})
|
|
|
|
|
.Distinct().ToQueryPageAsync(querySearch.PageCondition);
|
|
|
|
|
|
|
|
|
|
//var sql = queryable.ToSqlString();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
case TaskBaseTypeEnum.SI_FEEDBACK:
|
|
|
|
@ -2119,6 +2129,8 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
public async Task<DataResult<TaskUserStatResultInfo>> GetCurrentTotalStat(bool isReCalc)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TaskUserStatResultInfo resultInfo = new TaskUserStatResultInfo
|
|
|
|
|
{
|
|
|
|
|
LevelTop = new List<TaskUserStatItem>(),
|
|
|
|
@ -2150,6 +2162,15 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
|
|
|
|
|
var tenantDb = saasDbService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
|
|
|
|
|
//var sql = tenantDb.Queryable<SeaExport>().Where(x => x.Id > 232).ToSqlString();
|
|
|
|
|
|
|
|
|
|
//var a = user.UserId;
|
|
|
|
|
//var aa = user.TenantId;
|
|
|
|
|
//var a343 = user.GetTenantId();
|
|
|
|
|
//var sfdfd = user.TenantName;
|
|
|
|
|
//var b = user.GetOrgId();
|
|
|
|
|
//var b232 = user.OrgId;
|
|
|
|
|
|
|
|
|
|
//await MatchTask();
|
|
|
|
|
|
|
|
|
|
var userId = long.Parse(user.UserId);
|
|
|
|
@ -2168,6 +2189,8 @@ namespace DS.WMS.Core.TaskPlat.Method
|
|
|
|
|
IsPublic = t.IS_PUBLIC
|
|
|
|
|
}).ToListAsync();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var sql = tenantDb.Queryable<TaskBaseInfo>()
|
|
|
|
|
// .LeftJoin<TaskBaseAllocation>((t, a) => t.Id == a.TaskId)
|
|
|
|
|
// .Where((t, a) => t.IS_PUBLIC == 1 || (t.IS_PUBLIC == 0 && a.Status != null && (t.CreateBy == userId || a.UserId == userId)))
|
|
|
|
|