src/Services/Wms_stockoutServices.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using IRepository;
using IServices;
using Microsoft.AspNetCore.Hosting;
using SqlSugar;
using System;
using System.IO;
using System.Linq;
using YL.Core.Dto;
using YL.Core.Entity;
using YL.Utils.Check;
using YL.Utils.Extensions;
using YL.Utils.Files;
using YL.Utils.Json;
using YL.Utils.Pub;
using YL.Utils.Table;
namespace Services
{
public class Wms_stockoutServices : BaseServices<Wms_stockout>, IWms_stockoutServices
{
private readonly IWms_stockoutRepository _repository;
private readonly SqlSugarClient _client;
private readonly IWebHostEnvironment _env;
private readonly IWms_stockoutdetailRepository _detail;
private readonly IWms_inventoryRepository _inventory;
public Wms_stockoutServices(SqlSugarClient client,
IWms_stockoutRepository repository,
IWebHostEnvironment env,
IWms_stockoutdetailRepository detail,
IWms_inventoryRepository inventory
) : base(repository)
{
_client = client;
_repository = repository;
_env = env;
_detail = detail;
_inventory = inventory;
}
public string PageList(PubParams.StockOutBootstrapParams bootstrap)
{
int totalNumber = 0;
if (bootstrap.offset != 0)
{
bootstrap.offset = bootstrap.offset / bootstrap.limit + 1;
}
var query = _client.Queryable<Wms_stockout, Wms_Customer, Sys_dict, Sys_user, Sys_user>
((s, p, d, c, u) => new object[] {
JoinType.Left,s.CustomerId==p.CustomerId,
JoinType.Left,s.StockOutType==d.DictId,
JoinType.Left,s.CreateBy==c.UserId,
JoinType.Left,s.ModifiedBy==u.UserId,
})
.Where((s, p, d, c, u) => s.IsDel == 1 && d.IsDel == 1 && c.IsDel == 1)
.Select((s, p, d, c, u) => new
{
StockOutId = s.StockOutId.ToString(),
StockOutType = d.DictName,
StockOutTypeId = s.StockOutType.ToString(),
后面还有 148 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。