Commit db322aed authored by liudong1993's avatar liudong1993

1

parent 8ef1c357
......@@ -154,19 +154,29 @@ namespace Mall.Module.Product
{
var model = guideCar_BaseRepository.GetList(new RB_GuideCar_Base_Extend() { TenantId = tenantId, MallBaseId = mallBaseId }).FirstOrDefault();
if (model == null) {
model = new RB_GuideCar_Base_Extend() {
AdvanceDay=1,
MallBaseId=mallBaseId,
CancelHour=1,
CostPrice=0,
Id=0,
InsuranceDescription="",
InsuranceName="",
IsConfirm=1,
PagePath="",
model = new RB_GuideCar_Base_Extend()
{
AdvanceDay = 1,
MallBaseId = mallBaseId,
CancelHour = 1,
CostPrice = 0,
Id = 0,
InsuranceDescription = "",
InsuranceName = "",
IsConfirm = 1,
PagePath = "",
SalePrice = 0,
TenantId = tenantId,
};
}
if (model.OrderStateJson == null || model.OrderStateJson == "") {
var list = EnumHelper.GetEnumList(typeof(Common.Enum.Goods.OrderStatusEnum));
//list.OrderBy(x => Convert.ToInt32(x.Value)).Select(x => new
//{
// Name = x.Key,
// Id = Convert.ToInt32(x.Value)
//}))
}
return model;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment