jianghaiqing 4 months ago
commit 76e7ad908d

@ -14,6 +14,7 @@ using Myshipping.Core.Entity;
using Myshipping.Core.Service; using Myshipping.Core.Service;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using NPOI.XWPF.UserModel;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
@ -526,7 +527,9 @@ namespace Myshipping.Application.Event
//订舱编号和客户端BSNO //订舱编号和客户端BSNO
ord.BSNO = item.GetStringValue("orderId"); ord.BSNO = item.GetStringValue("orderId");
ord.CUSTNO = item.GetStringValue("custNO"); ord.CUSTNO = item.GetStringValue("custNO");
await repoOrder.AsUpdateable(ord).UpdateColumns(x => new { x.BSNO, x.CUSTNO }).ExecuteCommandAsync(); ord.CUSTOMERNAME = custOrder.BookingTenantName;
ord.LANENAME = ord.LANECODE;
await repoOrder.AsUpdateable(ord).UpdateColumns(x => new { x.BSNO, x.CUSTOMERNAME, x.LANENAME }).ExecuteCommandAsync();
_logger.LogInformation($"生成了订舱台账数据 {ord.Id}"); _logger.LogInformation($"生成了订舱台账数据 {ord.Id}");

@ -2373,7 +2373,9 @@ namespace Myshipping.Application
var bkOrder = await CustomerToOrder(model); var bkOrder = await CustomerToOrder(model);
bkOrder.BSNO = custBookId; bkOrder.BSNO = custBookId;
await _repOrder.AsUpdateable(bkOrder).UpdateColumns(x => new { x.BSNO }).ExecuteCommandAsync(); bkOrder.CUSTOMERNAME = model.BookingTenantName;
bkOrder.LANENAME = bkOrder.LANECODE;
await _repOrder.AsUpdateable(bkOrder).UpdateColumns(x => new { x.BSNO, x.CUSTOMERNAME, x.LANENAME }).ExecuteCommandAsync();
model.BookingId = bkOrder.Id; //客户订舱数据与订舱台账数据关联 model.BookingId = bkOrder.Id; //客户订舱数据与订舱台账数据关联
await _rep.UpdateAsync(model); await _rep.UpdateAsync(model);

@ -36,7 +36,7 @@ namespace Myshipping.Core.Service
[HttpGet("/DjyApiAuth/page")] [HttpGet("/DjyApiAuth/page")]
public async Task<dynamic> Page([FromQuery] QueryDjyApiAuthInput input) public async Task<dynamic> Page([FromQuery] QueryDjyApiAuthInput input)
{ {
var entities = await _rep.AsQueryable() var entities = await _rep.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false)
.WhereIF(!string.IsNullOrWhiteSpace(input.ApiCode), u => u.ApiCode.Contains(input.ApiCode)) .WhereIF(!string.IsNullOrWhiteSpace(input.ApiCode), u => u.ApiCode.Contains(input.ApiCode))
.WhereIF(!string.IsNullOrWhiteSpace(input.ApiName), u => u.ApiName.Contains(input.ApiName)) .WhereIF(!string.IsNullOrWhiteSpace(input.ApiName), u => u.ApiName.Contains(input.ApiName))
.WhereIF(!string.IsNullOrWhiteSpace(input.TenantName), u => u.TenantName == input.TenantName) .WhereIF(!string.IsNullOrWhiteSpace(input.TenantName), u => u.TenantName == input.TenantName)

Loading…
Cancel
Save