|
|
|
@ -28745,6 +28745,7 @@ namespace TradeManageNew
|
|
|
|
|
ImageUrls = JsonConvert.DeserializeObject<List<string>>(pageItem.ImageUrls),
|
|
|
|
|
ShippingMethod = pageItem.ShippingMethod,
|
|
|
|
|
IsNew = pageItem.IsNew,
|
|
|
|
|
AppointmentTime = pageItem.AppointmentTime,
|
|
|
|
|
CreationTime = pageItem.CreationTime,
|
|
|
|
|
CreatorId = pageItem.CreatorId,
|
|
|
|
|
PublishMessage = pageItem.PublishMessage,
|
|
|
|
@ -29954,7 +29955,54 @@ namespace TradeManageNew
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 自提填写预约时间
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="Id"></param>
|
|
|
|
|
/// <param name="appointmentTime"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[WebMethod(EnableSession = true)]
|
|
|
|
|
public APIReturnModel SelfPickupOrderUsedSalePlatform(int Id, DateTime? appointmentTime)
|
|
|
|
|
{
|
|
|
|
|
// PagesNew.Login(base.Session);
|
|
|
|
|
using (var db = new TradeUsedSale.Repositories.ErpDbContext())
|
|
|
|
|
{
|
|
|
|
|
var orderUsedSalePlatform = db.DT_OrderUsedSalePlatform.FirstOrDefault(x => x.Id == Id);
|
|
|
|
|
|
|
|
|
|
if (orderUsedSalePlatform is null)
|
|
|
|
|
{
|
|
|
|
|
return new APIReturnModel
|
|
|
|
|
{
|
|
|
|
|
Code = 0,
|
|
|
|
|
Message = $"不存在Id为{Id}的二手售卖商品",
|
|
|
|
|
Datas = null
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (orderUsedSalePlatform.ShippingMethod != ShippingMethod.SelfPickup)
|
|
|
|
|
{
|
|
|
|
|
return new APIReturnModel
|
|
|
|
|
{
|
|
|
|
|
Code = 0,
|
|
|
|
|
Message = $"Barcode[{orderUsedSalePlatform.BarCode}]非自提订单",
|
|
|
|
|
Datas = null
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
db.DT_OrderUsedSalePlatform.Where(x => x.Id == Id)
|
|
|
|
|
.Set(x => x.AppointmentTime, value: appointmentTime)
|
|
|
|
|
.Update();
|
|
|
|
|
|
|
|
|
|
return new APIReturnModel
|
|
|
|
|
{
|
|
|
|
|
Code = 1,
|
|
|
|
|
Message = "Success",
|
|
|
|
|
Datas = null
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static string[] SplitAddress(string address, int maxLength)
|
|
|
|
|
{
|
|
|
|
|
List<string> addressLines = new List<string>();
|
|
|
|
|