Commit 12df845b authored by 黄奎's avatar 黄奎

11

parent df54ac65
......@@ -52,7 +52,7 @@ namespace Mall.Model.Entity.TradePavilion
public string OperationTime { get; set; }
/// <summary>
/// 楼宇等级
/// 企业分类
/// </summary>
public int CategoryId { get; set; }
......@@ -142,7 +142,7 @@ namespace Mall.Model.Entity.TradePavilion
public DateStateEnum Status { get; set; }
/// <summary>
/// 企业类别
/// 楼宇等级
/// </summary>
public int EType { get; set; }
}
......
......@@ -9,12 +9,12 @@ namespace Mall.Model.Extend.TradePavilion
public class RB_EnterpriseServices_Extend : RB_EnterpriseServices
{
/// <summary>
/// 分类名称
/// 企业分类
/// </summary>
public string CategoryName { get; set; }
/// <summary>
/// 企业类别名称
/// 楼宇等级
/// </summary>
public string ETypeName { get; set; }
......
......@@ -14,6 +14,7 @@ using RabbitMQ.Client.Framing.Impl;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using VT.FW.DB;
using static ICSharpCode.SharpZipLib.Zip.ExtendedUnixData;
......@@ -1351,39 +1352,57 @@ namespace Mall.Module.TradePavilion
var BrandModel = brandList.FirstOrDefault();
var brandEnterpriseModel = new RB_Brand_Enterprise_Extend()
{
FullBrandName = BrandModel.FullBrandName,
BrandName = BrandModel.BrandName,
VideoUrl = BrandModel.VideoUrl,
Logo = BrandModel.Logo,
Banner = BrandModel.Banner,
CategoryId = BrandModel.BrandClassId,
Introduce = BrandModel.Introduce,
ShopNum = BrandModel.ShopNum,
AreaRequirement = BrandModel.ShopNum,
CustomerType = BrandModel.CustomerType,
BrandType = BrandModel.BrandType,
Cooperation = BrandModel.Cooperation,
PropertyDemand = BrandModel.PropertyDemand,
Complementary = BrandModel.Complementary,
ContactName = BrandModel.ContactName,
ContactPhone = BrandModel.ContactPhone,
BrandEnterpriseType = BrandModel.BrandEnterpriseType,
TenantId = BrandModel.TenantId,
MallBaseId = BrandModel.MallBaseId,
};
if (BrandModel.ExistBrandId > 0)
{
Dictionary<string, object> filedsBrand = new Dictionary<string, object>()
{
{ nameof(RB_Brand_Enterprise_Extend.FullBrandName),BrandModel.FullBrandName},
{ nameof(RB_Brand_Enterprise_Extend.BrandName),BrandModel.BrandName},
{ nameof(RB_Brand_Enterprise_Extend.VideoUrl),BrandModel.VideoUrl},
{ nameof(RB_Brand_Enterprise_Extend.Logo),BrandModel.Logo},
{ nameof(RB_Brand_Enterprise_Extend.Banner),BrandModel.Banner},
{ nameof(RB_Brand_Enterprise_Extend.CategoryId),BrandModel.BrandClassId},
{ nameof(RB_Brand_Enterprise_Extend.Introduce),BrandModel.Introduce},
{ nameof(RB_Brand_Enterprise_Extend.ShopNum),BrandModel.ShopNum},
{ nameof(RB_Brand_Enterprise_Extend.AreaRequirement),BrandModel.ShopNum},
{ nameof(RB_Brand_Enterprise_Extend.CustomerType),BrandModel.CustomerType},
{ nameof(RB_Brand_Enterprise_Extend.BrandType),BrandModel.BrandType},
{ nameof(RB_Brand_Enterprise_Extend.Cooperation),BrandModel.Cooperation},
{ nameof(RB_Brand_Enterprise_Extend.PropertyDemand),BrandModel.PropertyDemand},
{ nameof(RB_Brand_Enterprise_Extend.Complementary),BrandModel.Complementary},
{ nameof(RB_Brand_Enterprise_Extend.ContactName),BrandModel.ContactName},
{ nameof(RB_Brand_Enterprise_Extend.ContactPhone),BrandModel.ContactPhone},
{ nameof(RB_Brand_Enterprise_Extend.BrandEnterpriseType),BrandModel.BrandEnterpriseType},
{ nameof(RB_Brand_Enterprise_Extend.FullBrandName),brandEnterpriseModel.FullBrandName},
{ nameof(RB_Brand_Enterprise_Extend.BrandName),brandEnterpriseModel.BrandName},
{ nameof(RB_Brand_Enterprise_Extend.VideoUrl),brandEnterpriseModel.VideoUrl},
{ nameof(RB_Brand_Enterprise_Extend.Logo),brandEnterpriseModel.Logo},
{ nameof(RB_Brand_Enterprise_Extend.Banner),brandEnterpriseModel.Banner},
{ nameof(RB_Brand_Enterprise_Extend.CategoryId),brandEnterpriseModel.BrandClassId},
{ nameof(RB_Brand_Enterprise_Extend.Introduce),brandEnterpriseModel.Introduce},
{ nameof(RB_Brand_Enterprise_Extend.ShopNum),brandEnterpriseModel.ShopNum},
{ nameof(RB_Brand_Enterprise_Extend.AreaRequirement),brandEnterpriseModel.ShopNum},
{ nameof(RB_Brand_Enterprise_Extend.CustomerType),brandEnterpriseModel.CustomerType},
{ nameof(RB_Brand_Enterprise_Extend.BrandType),brandEnterpriseModel.BrandType},
{ nameof(RB_Brand_Enterprise_Extend.Cooperation),brandEnterpriseModel.Cooperation},
{ nameof(RB_Brand_Enterprise_Extend.PropertyDemand),brandEnterpriseModel.PropertyDemand},
{ nameof(RB_Brand_Enterprise_Extend.Complementary),brandEnterpriseModel.Complementary},
{ nameof(RB_Brand_Enterprise_Extend.ContactName),brandEnterpriseModel.ContactName},
{ nameof(RB_Brand_Enterprise_Extend.ContactPhone),brandEnterpriseModel.ContactPhone},
{ nameof(RB_Brand_Enterprise_Extend.BrandEnterpriseType),brandEnterpriseModel.BrandEnterpriseType},
};
brand_EnterpriseRepository.Update(filedsBrand, new WhereHelper(nameof(RB_Brand_Enterprise_Extend.ID), BrandModel.ExistBrandId), trans);
}
else
{
var inserBModel = BrandModel.RefMapperTo<RB_Brand_Enterprise_Extend>();
inserBModel.ID = 0;
inserBModel.CategoryId = BrandModel.BrandClassId;
inserBModel.UserId = cmodel.CreateBy;
brand_EnterpriseRepository.Insert(inserBModel, trans);
brandEnterpriseModel.ID = 0;
brandEnterpriseModel.CategoryId = BrandModel.BrandClassId;
brandEnterpriseModel.UserId = cmodel.CreateBy;
brandEnterpriseModel.CreateDate = DateTime.Now;
brand_EnterpriseRepository.Insert(brandEnterpriseModel, trans);
}
}
}
......@@ -1497,7 +1516,6 @@ namespace Mall.Module.TradePavilion
else
{
#region 新增载体
buildingCarrierModel.ID = 0;
buildingCarrierModel.UserId = cmodel.CreateBy;
if (!string.IsNullOrWhiteSpace(CarrierModel.StartingInfo))
......
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