|
|
|
@ -2567,6 +2567,54 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 查询历史放舱数据(用于历史引入)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost("/BookingOrder/LetterYardHis")]
|
|
|
|
|
public async Task<SqlSugarPagedList<BookingLetteryardHisOutput>> LetterYardHis(BookingLetteryardHisInput input)
|
|
|
|
|
{
|
|
|
|
|
var list =await _repLetterYard.AsQueryable()
|
|
|
|
|
.InnerJoin<BookingOrder>((ly, ord) => ly.BookingId == ord.Id)
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.MBLNO), (ly, ord) => ord.MBLNO.Contains(input.MBLNO))
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.HBLNO), (ly, ord) => ord.HBLNO.Contains(input.HBLNO))
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.BOOKINGNO), (ly, ord) => ord.BOOKINGNO.Contains(input.BOOKINGNO))
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.CUSTOMERNAME), (ly, ord) => ord.CUSTOMERNAME.Contains(input.CUSTOMERNAME))
|
|
|
|
|
.WhereIF(input.BETD.HasValue, (ly, ord) => ord.ETD > input.BETD.Value)
|
|
|
|
|
.WhereIF(input.EETD.HasValue, (ly, ord) => ord.ETD < input.EETD.Value.AddDays(1))
|
|
|
|
|
.OrderByDescending((ly, ord) => ly.CreatedTime)
|
|
|
|
|
.Select((ly, ord) => new BookingLetteryardHisOutput()
|
|
|
|
|
{
|
|
|
|
|
MBLNO = ord.MBLNO,
|
|
|
|
|
HBLNO = ord.HBLNO,
|
|
|
|
|
BOOKINGNO = ord.BOOKINGNO,
|
|
|
|
|
ETD = ord.ETD.Value.ToString("yyyy-MM-dd"),
|
|
|
|
|
CUSTOMERNAME = ord.CUSTOMERNAME,
|
|
|
|
|
ToName = ly.ToName,
|
|
|
|
|
Attn = ly.Attn,
|
|
|
|
|
AttnMail = ly.AttnMail,
|
|
|
|
|
AttnPhone = ly.AttnPhone,
|
|
|
|
|
AttnTel = ly.AttnTel,
|
|
|
|
|
FromMail = ly.FromMail,
|
|
|
|
|
FromName = ly.FromName,
|
|
|
|
|
FromPhone = ly.FromPhone,
|
|
|
|
|
FromTel = ly.FromTel,
|
|
|
|
|
Description = ly.Description,
|
|
|
|
|
CloseDocTime = ly.CloseDocTime,
|
|
|
|
|
ClosingTime = ly.ClosingTime,
|
|
|
|
|
VgmTime = ly.VgmTime,
|
|
|
|
|
YARD = ly.YARD,
|
|
|
|
|
YARDCONTRACT = ly.YARDCONTRACT,
|
|
|
|
|
YARDCONTRACTTEL = ly.YARDCONTRACTTEL,
|
|
|
|
|
YARDID = ly.YARDID,
|
|
|
|
|
Remark = ly.Remark,
|
|
|
|
|
})
|
|
|
|
|
.ToPagedListAsync(input.PageNo, input.PageSize); ;
|
|
|
|
|
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 打印
|
|
|
|
@ -5020,7 +5068,8 @@ namespace Myshipping.Application
|
|
|
|
|
var url = _cache.GetAllDictData().Result.Where(x => x.Code == "xiangManCangPostUrl").Select(x => x.Value).FirstOrDefault();
|
|
|
|
|
|
|
|
|
|
var account = _webAccountConfig.GetAccountConfig("XiangManCang", UserManager.UserId).Result;
|
|
|
|
|
if (account==null) {
|
|
|
|
|
if (account == null)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
throw Oops.Bah("未配置箱满仓账号!");
|
|
|
|
|
}
|
|
|
|
@ -7991,7 +8040,8 @@ namespace Myshipping.Application
|
|
|
|
|
public async Task SetGoodsStatus(string code, long bookingId)
|
|
|
|
|
{
|
|
|
|
|
var CreatedUserId = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == bookingId).Select(x => x.CreatedUserId).First();
|
|
|
|
|
if (CreatedUserId!=null) {
|
|
|
|
|
if (CreatedUserId != null)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var gsCfg = _goodsStatusConfig.FirstOrDefault(x => x.SystemCode == code && x.CreatedUserId == (long)CreatedUserId);
|
|
|
|
|
if (gsCfg != null)
|
|
|
|
|