|
|
@ -76,7 +76,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.GoodsCode.Contains(queryKey) || a.GoodName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.GoodsCode.Contains(queryKey) || a.GoodName.Contains(queryKey))
|
|
|
|
.Select<CodeGoodsSelectRes>()
|
|
|
|
.Select<CodeGoodsSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.Goods + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.Goods}{user.TenantId}")
|
|
|
|
.ToListAsync();
|
|
|
|
.ToListAsync();
|
|
|
|
return await Task.FromResult(DataResult<List<CodeGoodsSelectRes>>.Success("获取数据成功!", list));
|
|
|
|
return await Task.FromResult(DataResult<List<CodeGoodsSelectRes>>.Success("获取数据成功!", list));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -105,7 +105,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.Where(a => a.Status == StatusEnum.Enable.ToEnumInt() && ids.Contains(a.Id))
|
|
|
|
.Where(a => a.Status == StatusEnum.Enable.ToEnumInt() && ids.Contains(a.Id))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToListAsync();
|
|
|
|
.ToListAsync();
|
|
|
|
return await Task.FromResult(DataResult<List<UserSelectRes>>.Success(data));
|
|
|
|
return await Task.FromResult(DataResult<List<UserSelectRes>>.Success(data));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -134,7 +134,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
Value = a.Id,
|
|
|
|
Value = a.Id,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToListAsync();
|
|
|
|
.ToListAsync();
|
|
|
|
return DataResult<List<ApiSelectViewModel>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<ApiSelectViewModel>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1005,7 +1005,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<SaleSelectListRes>()
|
|
|
|
.Select<SaleSelectListRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
if (list.Count > 0)
|
|
|
|
if (list.Count > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1110,7 +1110,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
BLContent = a.BLContent,
|
|
|
|
BLContent = a.BLContent,
|
|
|
|
PinYinCode = a.ShortName + "(" + a.CodeName + ")"
|
|
|
|
PinYinCode = a.ShortName + "(" + a.CodeName + ")"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
).Take(20).WithCache(SqlSugarCacheConst.InfoClient + user.TenantId).ToListAsync();
|
|
|
|
).Take(20).WithCache($"{SqlSugarCacheConst.InfoClient}{user.TenantId}").ToListAsync();
|
|
|
|
return await Task.FromResult(DataResult<List<ClientSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess));
|
|
|
|
return await Task.FromResult(DataResult<List<ClientSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -1590,7 +1590,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.PackageName.Contains(queryKey) || a.EdiCode.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.PackageName.Contains(queryKey) || a.EdiCode.Contains(queryKey))
|
|
|
|
.Select<CodePackageSelectRes>()
|
|
|
|
.Select<CodePackageSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.Package + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.Package}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<CodePackageSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<CodePackageSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1606,7 +1606,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.VesselName.Contains(queryKey) || a.EdiCode.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.VesselName.Contains(queryKey) || a.EdiCode.Contains(queryKey))
|
|
|
|
.Select<CodeVesselSelectRes>()
|
|
|
|
.Select<CodeVesselSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.Vessel + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.Vessel}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<CodeVesselSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<CodeVesselSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1622,7 +1622,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.VoyNo.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.VoyNo.Contains(queryKey))
|
|
|
|
.Select<CodeVoynoSelectRes>()
|
|
|
|
.Select<CodeVoynoSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.Voyno + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.Voyno}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<CodeVoynoSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<CodeVoynoSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1663,7 +1663,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1679,7 +1679,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1694,7 +1694,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1710,7 +1710,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1726,7 +1726,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1742,7 +1742,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1758,7 +1758,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1773,7 +1773,7 @@ public class ClientCommonService : IClientCommonService
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(queryKey), a => a.UserCode.Contains(queryKey) || a.UserName.Contains(queryKey))
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Select<UserSelectRes>()
|
|
|
|
.Take(20)
|
|
|
|
.Take(20)
|
|
|
|
.WithCache(SqlSugarCacheConst.User + user.TenantId)
|
|
|
|
.WithCache($"{SqlSugarCacheConst.User}{user.TenantId}")
|
|
|
|
.ToList();
|
|
|
|
.ToList();
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
return DataResult<List<UserSelectRes>>.Success("获取数据成功!", data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
}
|
|
|
|
}
|
|
|
|