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
53286bfe
Commit
53286bfe
authored
Sep 02, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3c4ea52b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
209 additions
and
8 deletions
+209
-8
RB_Authentication_Extend.cs
Mall.Model/Extend/TradePavilion/RB_Authentication_Extend.cs
+5
-0
RB_Commerce_Consult_Extend.cs
....Model/Extend/TradePavilion/RB_Commerce_Consult_Extend.cs
+62
-4
CommerceConsultModule.cs
Mall.Module.TradePavilion/CommerceConsultModule.cs
+38
-1
RB_AuthenticationRepository.cs
Mall.Repository/TradePavilion/RB_AuthenticationRepository.cs
+4
-0
RB_Commerce_ConsultRepository.cs
...Repository/TradePavilion/RB_Commerce_ConsultRepository.cs
+76
-1
MallController.cs
Mall.WebApi/Controllers/Mall/MallController.cs
+4
-2
TradeController.cs
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
+20
-0
No files found.
Mall.Model/Extend/TradePavilion/RB_Authentication_Extend.cs
View file @
53286bfe
...
@@ -47,5 +47,10 @@ namespace Mall.Model.Extend.TradePavilion
...
@@ -47,5 +47,10 @@ namespace Mall.Model.Extend.TradePavilion
/// 奖项
/// 奖项
/// </summary>
/// </summary>
public
int
PrizeId
{
get
;
set
;
}
public
int
PrizeId
{
get
;
set
;
}
/// <summary>
/// 查询用户编号
/// </summary>
public
string
QCreateBy
{
get
;
set
;
}
}
}
}
}
Mall.Model/Extend/TradePavilion/RB_Commerce_Consult_Extend.cs
View file @
53286bfe
...
@@ -59,9 +59,12 @@ namespace Mall.Model.Extend.TradePavilion
...
@@ -59,9 +59,12 @@ namespace Mall.Model.Extend.TradePavilion
/// 性质名称
/// 性质名称
/// </summary>
/// </summary>
public
string
NatureName
{
get
{
return
this
.
Nature
.
GetEnumName
();
}
}
public
string
NatureName
{
get
{
return
this
.
Nature
.
GetEnumName
();
}
}
}
/// <summary>
/// 用户数量
/// </summary>
public
int
UserCount
{
get
;
set
;
}
}
/// <summary>
/// <summary>
/// 首店活动报名
/// 首店活动报名
...
@@ -103,8 +106,6 @@ namespace Mall.Model.Extend.TradePavilion
...
@@ -103,8 +106,6 @@ namespace Mall.Model.Extend.TradePavilion
public
class
FirstShopLinkManModel
public
class
FirstShopLinkManModel
{
{
/// <summary>
/// <summary>
/// 联系人
/// 联系人
/// </summary>
/// </summary>
...
@@ -126,4 +127,61 @@ namespace Mall.Model.Extend.TradePavilion
...
@@ -126,4 +127,61 @@ namespace Mall.Model.Extend.TradePavilion
/// </summary>
/// </summary>
public
string
CountryInfo
{
get
;
set
;
}
public
string
CountryInfo
{
get
;
set
;
}
}
}
/// <summary>
/// 报名信息
/// </summary>
public
class
ActivityUserItem
{
/// <summary>
/// 小程序用户编号
/// </summary>
public
int
UserId
{
get
;
set
;
}
/// <summary>
/// 小程序用户名称
/// </summary>
public
string
UserName
{
get
;
set
;
}
/// <summary>
/// 报名用户列表
/// </summary>
public
List
<
SignUserItem
>
SignUserList
{
get
;
set
;
}
}
/// <summary>
/// 报名详情
/// </summary>
public
class
SignUserItem
{
/// <summary>
/// 报名编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 活动编号
/// </summary>
public
int
ActivityId
{
get
;
set
;
}
/// <summary>
/// 联系人
/// </summary>
public
string
LinkMan
{
get
;
set
;
}
/// <summary>
/// 联系电话
/// </summary>
public
string
LinkTel
{
get
;
set
;
}
/// <summary>
/// 岗位
/// </summary>
public
string
Post
{
get
;
set
;
}
/// <summary>
/// 地址信息
/// </summary>
public
string
CountryInfo
{
get
;
set
;
}
}
}
}
Mall.Module.TradePavilion/CommerceConsultModule.cs
View file @
53286bfe
...
@@ -39,11 +39,48 @@ namespace Mall.Module.TradePavilion
...
@@ -39,11 +39,48 @@ namespace Mall.Module.TradePavilion
/// </summary>
/// </summary>
private
readonly
RB_Miai_MessageRepository
miai_MessageRepository
=
new
RB_Miai_MessageRepository
();
private
readonly
RB_Miai_MessageRepository
miai_MessageRepository
=
new
RB_Miai_MessageRepository
();
/// <summary>
/// 认证仓储层对象
/// </summary>
private
readonly
RB_AuthenticationRepository
authenticationRepository
=
new
RB_AuthenticationRepository
();
/// <summary>
/// <summary>
/// 获取商会活动报名分页列表
/// 获取商会活动报名分页列表
/// </summary>
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
ActivityUserItem
>
GetCommerceConsultPageModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Commerce_Consult_Extend
query
)
{
List
<
ActivityUserItem
>
result
=
new
List
<
ActivityUserItem
>();
var
list
=
consultRepository
.
GetCommerceConsultStatisticsPageRepository
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
if
(
list
!=
null
&&
list
.
Count
>
0
)
{
string
userids
=
string
.
Join
(
","
,
list
.
Select
(
qitem
=>
qitem
.
UserId
));
var
authList
=
authenticationRepository
.
GetList
(
new
RB_Authentication_Extend
()
{
QCreateBy
=
userids
});
var
memberList
=
member_UserRepository
.
GetList
(
new
RB_Member_User_Extend
()
{
UserIds
=
userids
});
var
userList
=
list
.
GroupBy
(
qitem
=>
new
{
qitem
.
UserId
,
qitem
.
ActivityId
}).
Select
(
qitem
=>
new
{
qitem
.
Key
.
UserId
,
qitem
.
Key
.
ActivityId
});
foreach
(
var
item
in
userList
)
{
var
userModel
=
memberList
?.
Where
(
qitem
=>
qitem
.
Id
==
item
.
UserId
)?.
FirstOrDefault
();
var
authModel
=
authList
?.
Where
(
qitem
=>
qitem
.
CreateBy
==
item
.
UserId
)?.
FirstOrDefault
();
ActivityUserItem
activity
=
new
ActivityUserItem
()
{
UserId
=
item
.
UserId
,
UserName
=
userModel
?.
Name
??
""
,
SignUserList
=
new
List
<
SignUserItem
>(),
};
result
.
Add
(
activity
);
}
};
return
result
;
}
/// <summary>
/// 获取商会活动报名列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="rowsCount"></param>
...
...
Mall.Repository/TradePavilion/RB_AuthenticationRepository.cs
View file @
53286bfe
...
@@ -132,6 +132,10 @@ namespace Mall.Repository.TradePavilion
...
@@ -132,6 +132,10 @@ namespace Mall.Repository.TradePavilion
{
{
builder
.
Append
(
$" AND
{
nameof
(
RB_Authentication_Extend
.
CreateBy
)}
=
{(
int
)
query
.
CreateBy
}
"
);
builder
.
Append
(
$" AND
{
nameof
(
RB_Authentication_Extend
.
CreateBy
)}
=
{(
int
)
query
.
CreateBy
}
"
);
}
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QCreateBy
))
{
builder
.
Append
(
$" AND
{
nameof
(
RB_Authentication_Extend
.
CreateBy
)}
IN(
{
query
.
QCreateBy
}
) "
);
}
if
(
query
.
AuditState
>
0
)
if
(
query
.
AuditState
>
0
)
{
{
builder
.
Append
(
$" AND
{
nameof
(
RB_Authentication_Extend
.
AuditState
)}
=
{
query
.
AuditState
}
"
);
builder
.
Append
(
$" AND
{
nameof
(
RB_Authentication_Extend
.
AuditState
)}
=
{
query
.
AuditState
}
"
);
...
...
Mall.Repository/TradePavilion/RB_Commerce_ConsultRepository.cs
View file @
53286bfe
...
@@ -15,7 +15,82 @@ namespace Mall.Repository.TradePavilion
...
@@ -15,7 +15,82 @@ namespace Mall.Repository.TradePavilion
public
class
RB_Commerce_ConsultRepository
:
BaseRepository
<
RB_Commerce_Consult
>
public
class
RB_Commerce_ConsultRepository
:
BaseRepository
<
RB_Commerce_Consult
>
{
{
/// <summary>
/// <summary>
/// 获取商会活动报名分页列表
/// 获取商会活动报名统计分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Commerce_Consult_Extend
>
GetCommerceConsultStatisticsPageRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_Commerce_Consult_Extend
query
)
{
rowsCount
=
0
;
DynamicParameters
parameters
=
new
DynamicParameters
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
SELECT ActivityId,UserId,Count(1) AS UserCount
FROM RB_Commerce_Consult
WHERE 1=1
"
);
if
(
query
==
null
)
{
return
new
List
<
RB_Commerce_Consult_Extend
>();
}
else
{
if
(
query
.
EnrollState
>
0
)
{
if
(
query
.
EnrollState
==
1
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
}
else
if
(
query
.
EnrollState
==
2
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
Status
),
(
int
)
DateStateEnum
.
Delete
);
}
}
else
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
Status
),
(
int
)
DateStateEnum
.
Normal
);
}
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
LinkMan
))
{
builder
.
AppendFormat
(
" AND {0} LIKE @Name "
,
nameof
(
RB_Commerce_Consult_Extend
.
LinkMan
));
parameters
.
Add
(
"Name"
,
"%"
+
query
.
LinkMan
.
Trim
()
+
"%"
);
}
if
(
query
.
ActivityId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
ActivityId
),
query
.
ActivityId
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QActivityIds
))
{
builder
.
AppendFormat
(
" AND {0} IN({1}) "
,
nameof
(
RB_Commerce_Consult_Extend
.
ActivityId
),
query
.
QActivityIds
);
}
if
(!
string
.
IsNullOrEmpty
(
query
.
QUserIds
))
{
builder
.
AppendFormat
(
" AND {0} IN({1}) "
,
nameof
(
RB_Commerce_Consult_Extend
.
UserId
),
query
.
QUserIds
);
}
if
(
query
.
UserId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Commerce_Consult_Extend
.
UserId
),
query
.
UserId
);
}
}
builder
.
Append
(
" GROUP BY ActivityId,UserId "
);
return
GetPage
<
RB_Commerce_Consult_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
(),
parameters
).
ToList
();
}
/// <summary>
/// 获取商会活动报名列表
/// </summary>
/// </summary>
/// <param name="query"></param>
/// <param name="query"></param>
/// <returns></returns>
/// <returns></returns>
...
...
Mall.WebApi/Controllers/Mall/MallController.cs
View file @
53286bfe
...
@@ -189,7 +189,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -189,7 +189,8 @@ namespace Mall.WebApi.Controllers.MallBase
name
=
item
.
NavName
,
name
=
item
.
NavName
,
page_id
=
0
,
page_id
=
0
,
template_id
=
item
.
Id
,
template_id
=
item
.
Id
,
template
=
templateData
template
=
templateData
,
templateBg
=
new
{
titleColor
=
"#111"
}
};
};
list
.
Add
(
tempObj
);
list
.
Add
(
tempObj
);
}
}
...
@@ -262,7 +263,8 @@ namespace Mall.WebApi.Controllers.MallBase
...
@@ -262,7 +263,8 @@ namespace Mall.WebApi.Controllers.MallBase
name
=
(
index
==
0
?
"首页"
:
item
.
NavName
),
name
=
(
index
==
0
?
"首页"
:
item
.
NavName
),
page_id
=
0
,
page_id
=
0
,
template_id
=
item
.
Id
,
template_id
=
item
.
Id
,
template
=
templateData
template
=
templateData
,
templateBg
=
new
{
titleColor
=
"#111"
}
};
};
list
.
Add
(
tempObj
);
list
.
Add
(
tempObj
);
index
++;
index
++;
...
...
Mall.WebApi/Controllers/TradePavilion/TradeController.cs
View file @
53286bfe
...
@@ -609,6 +609,26 @@ namespace Mall.WebApi.Controllers.TradePavilion
...
@@ -609,6 +609,26 @@ namespace Mall.WebApi.Controllers.TradePavilion
return
ApiResult
.
Success
(
data
:
list
);
return
ApiResult
.
Success
(
data
:
list
);
}
}
/// <summary>
/// 获取商会活动报名分页列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetCommerceConsultStaticPage
()
{
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
query
=
new
RB_Commerce_Consult_Extend
()
{
LinkMan
=
parms
.
GetStringValue
(
"LinkMan"
)
};
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
consultModule
.
GetCommerceConsultPageModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// <summary>
...
...
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