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
ee7ac0ba
Commit
ee7ac0ba
authored
Sep 01, 2021
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
094a2440
b0e12f05
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
10 deletions
+27
-10
ListObjectTypeEnum.cs
Mall.Common/Enum/TradePavilion/ListObjectTypeEnum.cs
+2
-2
ListStateEnum.cs
Mall.Common/Enum/TradePavilion/ListStateEnum.cs
+6
-1
FirstShopListModule.cs
Mall.Module.TradePavilion/FirstShopListModule.cs
+9
-2
RB_FirstShop_ListRepository.cs
Mall.Repository/TradePavilion/RB_FirstShop_ListRepository.cs
+6
-2
AppletTradeController.cs
...WebApi/Controllers/TradePavilion/AppletTradeController.cs
+4
-3
No files found.
Mall.Common/Enum/TradePavilion/ListObjectTypeEnum.cs
View file @
ee7ac0ba
...
...
@@ -23,7 +23,7 @@ namespace Mall.Common.Enum.TradePavilion
/// <summary>
/// 服务商
/// </summary>
[
EnumField
(
"服务商"
)]
Servicer
=
3
//
[EnumField("服务商")]
//
Servicer = 3
}
}
Mall.Common/Enum/TradePavilion/ListStateEnum.cs
View file @
ee7ac0ba
...
...
@@ -29,6 +29,11 @@ namespace Mall.Common.Enum.TradePavilion
/// 取消
/// </summary>
[
EnumField
(
"取消"
)]
Cancel
=
4
Cancel
=
4
,
/// <summary>
/// 未开始
/// </summary>
[
EnumField
(
"未开始"
)]
NotStarted
=
5
}
}
Mall.Module.TradePavilion/FirstShopListModule.cs
View file @
ee7ac0ba
...
...
@@ -57,8 +57,11 @@ namespace Mall.Module.TradePavilion
{
foreach
(
var
item
in
list
)
{
if
(
item
.
ListState
==
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Enroll
&&
item
.
EndDate
<=
DateTime
.
Now
)
if
(
item
.
ListState
==
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Enroll
&&
item
.
StartDate
>
DateTime
.
Now
)
{
item
.
ListState
=
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
NotStarted
;
}
else
if
(
item
.
ListState
==
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Enroll
&&
item
.
EndDate
<=
DateTime
.
Now
)
{
item
.
ListState
=
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Rating
;
}
...
...
@@ -351,6 +354,10 @@ namespace Mall.Module.TradePavilion
/// <returns></returns>
public
string
SetAppletFirstShopListInfo
(
RB_FirstShop_ListEnroll_Extend
demodel
)
{
#
region
验证用户是否已认证
var
companyModel
=
companyRepository
.
GetCompanyRepository
(
new
RB_Company_Extend
()
{
MallBaseId
=
demodel
.
MallBaseId
,
CreateBy
=
demodel
.
UserId
});
if
(
companyModel
==
null
||
companyModel
.
CompanyStatus
!=
1
)
{
return
"未认证,无法进行报名"
;
}
#
endregion
var
listModel
=
firstShop_ListRepository
.
GetEntity
(
demodel
.
ListId
);
if
(
listModel
==
null
||
listModel
.
Status
==
1
||
listModel
.
ListState
==
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Cancel
)
{
...
...
Mall.Repository/TradePavilion/RB_FirstShop_ListRepository.cs
View file @
ee7ac0ba
...
...
@@ -40,11 +40,15 @@ namespace Mall.Repository.TradePavilion
}
if
(
dmodel
.
ObjectTypeId
>
0
)
{
where
+=
$@" and find_in_set('
{
dmodel
.
ObjectTypeId
}
',w.
{
nameof
(
RB_FirstShop_List_Extend
.
ListType
)}
)"
;
where
+=
$@" and find_in_set('
{
dmodel
.
ObjectTypeId
}
',w.
{
nameof
(
RB_FirstShop_List_Extend
.
ObjectTypeIds
)}
)"
;
}
if
(
dmodel
.
ListState
>
0
)
{
if
(
dmodel
.
ListState
==
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Enroll
)
if
(
dmodel
.
ListState
==
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
NotStarted
)
{
where
+=
$@" and w.
{
nameof
(
RB_FirstShop_List_Extend
.
ListState
)}
=
{(
int
)
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Enroll
}
"
;
where
+=
$@" and w.
{
nameof
(
RB_FirstShop_List_Extend
.
StartDate
)}
>'
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
'"
;
}
else
if
(
dmodel
.
ListState
==
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Enroll
)
{
where
+=
$@" and w.
{
nameof
(
RB_FirstShop_List_Extend
.
ListState
)}
=
{(
int
)
Common
.
Enum
.
TradePavilion
.
ListStateEnum
.
Enroll
}
"
;
where
+=
$@" and w.
{
nameof
(
RB_FirstShop_List_Extend
.
StartDate
)}
<='
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
'"
;
...
...
Mall.WebApi/Controllers/TradePavilion/AppletTradeController.cs
View file @
ee7ac0ba
...
...
@@ -2093,14 +2093,14 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetAppletFirstShopListPageList
()
{
var
userInfo
=
base
.
AppletUserInfo
;
var
req
=
base
.
RequestParm
;
ResultPageModel
pageModel
=
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
req
.
msg
.
ToString
());
RB_FirstShop_List_Extend
demodel
=
JsonHelper
.
DeserializeObject
<
RB_FirstShop_List_Extend
>(
req
.
msg
.
ToString
());
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
demodel
.
TenantId
=
req
.
TenantId
;
demodel
.
MallBaseId
=
req
.
MallBaseId
;
demodel
.
IsAppletSelectNor
=
1
;
demodel
.
OrderBy
=
1
;
...
...
@@ -2295,6 +2295,7 @@ namespace Mall.WebApi.Controllers.TradePavilion
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
GetListTypeEnumList
()
{
var
list
=
EnumHelper
.
GetEnumList
(
typeof
(
Common
.
Enum
.
TradePavilion
.
ListTypeEnum
));
...
...
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