Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
mall.oytour.com
Commits
b332a3f6
Commit
b332a3f6
authored
Dec 11, 2024
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
2686ee7a
2213f791
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
3 deletions
+27
-3
RB_EnterpriseServices.cs
Mall.Model/Entity/TradePavilion/RB_EnterpriseServices.cs
+5
-0
RB_EnterpriseServices_Extend.cs
...odel/Extend/TradePavilion/RB_EnterpriseServices_Extend.cs
+5
-0
BuildingCarrierModule.cs
Mall.Module.TradePavilion/BuildingCarrierModule.cs
+10
-2
RB_EnterpriseServicesRepository.cs
...pository/TradePavilion/RB_EnterpriseServicesRepository.cs
+2
-1
YBTradeController.cs
Mall.WebApi/Controllers/TradePavilion/YBTradeController.cs
+5
-0
No files found.
Mall.Model/Entity/TradePavilion/RB_EnterpriseServices.cs
View file @
b332a3f6
...
@@ -140,5 +140,10 @@ namespace Mall.Model.Entity.TradePavilion
...
@@ -140,5 +140,10 @@ namespace Mall.Model.Entity.TradePavilion
/// 删除状态
/// 删除状态
/// </summary>
/// </summary>
public
DateStateEnum
Status
{
get
;
set
;
}
public
DateStateEnum
Status
{
get
;
set
;
}
/// <summary>
/// 企业类别
/// </summary>
public
int
EType
{
get
;
set
;
}
}
}
}
}
Mall.Model/Extend/TradePavilion/RB_EnterpriseServices_Extend.cs
View file @
b332a3f6
...
@@ -13,6 +13,11 @@ namespace Mall.Model.Extend.TradePavilion
...
@@ -13,6 +13,11 @@ namespace Mall.Model.Extend.TradePavilion
/// </summary>
/// </summary>
public
string
CategoryName
{
get
;
set
;
}
public
string
CategoryName
{
get
;
set
;
}
/// <summary>
/// 企业类别名称
/// </summary>
public
string
ETypeName
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 轮播图
/// 轮播图
/// </summary>
/// </summary>
...
...
Mall.Module.TradePavilion/BuildingCarrierModule.cs
View file @
b332a3f6
...
@@ -563,6 +563,7 @@ namespace Mall.Module.TradePavilion
...
@@ -563,6 +563,7 @@ namespace Mall.Module.TradePavilion
{
nameof
(
RB_EnterpriseServices_Extend
.
ContactPhone
),
model
.
ContactPhone
},
{
nameof
(
RB_EnterpriseServices_Extend
.
ContactPhone
),
model
.
ContactPhone
},
{
nameof
(
RB_EnterpriseServices_Extend
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_EnterpriseServices_Extend
.
UpdateBy
),
model
.
UpdateBy
},
{
nameof
(
RB_EnterpriseServices_Extend
.
UpdateDate
),
model
.
UpdateDate
},
{
nameof
(
RB_EnterpriseServices_Extend
.
UpdateDate
),
model
.
UpdateDate
},
{
nameof
(
RB_EnterpriseServices_Extend
.
EType
),
model
.
EType
},
};
};
flag
=
enterpriseServicesRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_EnterpriseServices_Extend
.
ServiceId
),
model
.
ServiceId
));
flag
=
enterpriseServicesRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_EnterpriseServices_Extend
.
ServiceId
),
model
.
ServiceId
));
}
}
...
@@ -583,9 +584,16 @@ namespace Mall.Module.TradePavilion
...
@@ -583,9 +584,16 @@ namespace Mall.Module.TradePavilion
public
RB_EnterpriseServices_Extend
GetEnterpriseServicesInfoModule
(
int
ServiceId
,
bool
isVisit
=
false
)
public
RB_EnterpriseServices_Extend
GetEnterpriseServicesInfoModule
(
int
ServiceId
,
bool
isVisit
=
false
)
{
{
var
extModel
=
enterpriseServicesRepository
.
GetEntity
<
RB_EnterpriseServices_Extend
>(
ServiceId
);
var
extModel
=
enterpriseServicesRepository
.
GetEntity
<
RB_EnterpriseServices_Extend
>(
ServiceId
);
if
(
extModel
!=
null
&&
extModel
.
CategoryId
>
0
)
if
(
extModel
!=
null
)
{
{
extModel
.
CategoryName
=
brandClassRepository
.
GetEntity
(
extModel
.
CategoryId
)?.
ClassName
??
""
;
if
(
extModel
.
CategoryId
>
0
)
{
extModel
.
CategoryName
=
brandClassRepository
.
GetEntity
(
extModel
.
CategoryId
)?.
ClassName
??
""
;
}
if
(
extModel
.
EType
>
0
)
{
extModel
.
ETypeName
=
brandClassRepository
.
GetEntity
(
extModel
.
EType
)?.
ClassName
??
""
;
}
}
}
extModel
.
BannerList
=
new
List
<
string
>();
extModel
.
BannerList
=
new
List
<
string
>();
if
(!
string
.
IsNullOrWhiteSpace
(
extModel
.
Banner
))
if
(!
string
.
IsNullOrWhiteSpace
(
extModel
.
Banner
))
...
...
Mall.Repository/TradePavilion/RB_EnterpriseServicesRepository.cs
View file @
b332a3f6
...
@@ -27,8 +27,9 @@ namespace Mall.Repository.TradePavilion
...
@@ -27,8 +27,9 @@ namespace Mall.Repository.TradePavilion
DynamicParameters
parameters
=
new
DynamicParameters
();
DynamicParameters
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
builder
.
AppendFormat
(
@"
SELECT A.*,IFNULL(B.ClassName,'') AS CategoryName
SELECT A.*,IFNULL(B.ClassName,'') AS CategoryName
,IFNULL(C.ClassName,'') AS ETypeName
FROM rb_enterpriseservices AS A LEFT JOIN rb_brandclass AS B ON A.CategoryId=B.ID
FROM rb_enterpriseservices AS A LEFT JOIN rb_brandclass AS B ON A.CategoryId=B.ID
LEFT JOIN rb_brandclass AS C ON A.EType=C.ID
WHERE 1=1
WHERE 1=1
"
);
"
);
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_EnterpriseServices_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
builder
.
AppendFormat
(
@" AND A.{0}={1} "
,
nameof
(
RB_EnterpriseServices_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
...
...
Mall.WebApi/Controllers/TradePavilion/YBTradeController.cs
View file @
b332a3f6
...
@@ -511,6 +511,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -511,6 +511,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
item
.
RentFee
,
item
.
RentFee
,
item
.
ContactName
,
item
.
ContactName
,
item
.
ContactPhone
,
item
.
ContactPhone
,
item
.
ETypeName
,
item
.
EType
,
CreateDate
=
Common
.
ConvertHelper
.
FormatDate
(
item
.
CreateDate
),
CreateDate
=
Common
.
ConvertHelper
.
FormatDate
(
item
.
CreateDate
),
});
});
}
}
...
@@ -545,6 +547,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -545,6 +547,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
RentFee
=
parms
.
GetDecimal
(
"RentFee"
),
RentFee
=
parms
.
GetDecimal
(
"RentFee"
),
ContactName
=
parms
.
GetStringValue
(
"ContactName"
),
ContactName
=
parms
.
GetStringValue
(
"ContactName"
),
ContactPhone
=
parms
.
GetStringValue
(
"ContactPhone"
),
ContactPhone
=
parms
.
GetStringValue
(
"ContactPhone"
),
EType
=
parms
.
GetInt
(
"EType"
),
};
};
List
<
string
>
BannerList
=
new
List
<
string
>();
List
<
string
>
BannerList
=
new
List
<
string
>();
string
bannerListStr
=
parms
.
GetStringValue
(
"BannerList"
);
string
bannerListStr
=
parms
.
GetStringValue
(
"BannerList"
);
...
@@ -622,6 +625,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -622,6 +625,8 @@ namespace Mall.WebApi.Controllers.TradePavilion
RentFee
=
extModel
?.
RentFee
??
0
,
RentFee
=
extModel
?.
RentFee
??
0
,
ContactName
=
extModel
?.
ContactName
??
""
,
ContactName
=
extModel
?.
ContactName
??
""
,
ContactPhone
=
extModel
?.
ContactPhone
??
""
,
ContactPhone
=
extModel
?.
ContactPhone
??
""
,
EType
=
extModel
?.
EType
??
0
,
ETypeName
=
extModel
?.
ETypeName
??
""
,
BannerList
,
BannerList
,
};
};
return
ApiResult
.
Success
(
data
:
dataObj
);
return
ApiResult
.
Success
(
data
:
dataObj
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment