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
d258fc7e
Commit
d258fc7e
authored
Jun 28, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
c0d08e85
57301dd3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
197 additions
and
81 deletions
+197
-81
MiniProgramModule.cs
Mall.Module.User/MiniProgramModule.cs
+1
-1
RB_Finance_RecordDetailRepository.cs
Mall.Repository/Finance/RB_Finance_RecordDetailRepository.cs
+34
-3
AppletUserController.cs
Mall.WebApi/Controllers/User/AppletUserController.cs
+55
-0
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+107
-77
No files found.
Mall.Module.User/MiniProgramModule.cs
View file @
d258fc7e
...
...
@@ -1779,7 +1779,7 @@ namespace Mall.Module.User
}
else
{
LogHelper
.
Write
(
string
.
Format
(
"
SendMemberLevelMsg
:wenXinResult:{0}"
,
wenXinResult
));
LogHelper
.
Write
(
string
.
Format
(
"
GetLiveInfo
:wenXinResult:{0}"
,
wenXinResult
));
}
}
return
false
;
...
...
Mall.Repository/Finance/RB_Finance_RecordDetailRepository.cs
View file @
d258fc7e
...
...
@@ -22,19 +22,50 @@ namespace Mall.Repository.Finance
string
where
=
$" where 1=1 "
;
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Finance_Record
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
where
+=
$@" and
{
nameof
(
RB_Finance_Record
Detail
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Finance_Record
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
where
+=
$@" and
{
nameof
(
RB_Finance_Record
Detail
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
if
(
dmodel
.
Type
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Finance_Record
.
Type
)}
=
{
dmodel
.
Type
}
"
;
where
+=
$@" and
{
nameof
(
RB_Finance_Record
Detail
.
Type
)}
=
{
dmodel
.
Type
}
"
;
}
string
sql
=
$@"SELECT * FROM
{
TableName
}
{
where
}
order by Id asc"
;
return
Get
<
RB_Finance_RecordDetail
>(
sql
).
ToList
();
}
/// <summary>
/// 获取列表
/// </summary>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Finance_RecordDetail
>
GetListByOrderIds
(
string
orderIds
,
RB_Finance_RecordDetail
dmodel
)
{
string
where
=
$" where 1=1 "
;
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Finance_RecordDetail
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Finance_RecordDetail
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
if
(
dmodel
.
Type
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Finance_RecordDetail
.
Type
)}
=
{
dmodel
.
Type
}
"
;
}
if
(!
string
.
IsNullOrWhiteSpace
(
orderIds
))
{
where
+=
$@" and
{
nameof
(
RB_Finance_RecordDetail
.
OrderId
)}
in (
{
orderIds
}
)"
;
}
string
sql
=
$@"SELECT * FROM
{
TableName
}
{
where
}
order by Id asc"
;
return
Get
<
RB_Finance_RecordDetail
>(
sql
).
ToList
();
}
}
}
Mall.WebApi/Controllers/User/AppletUserController.cs
View file @
d258fc7e
...
...
@@ -31,6 +31,8 @@ namespace Mall.WebApi.Controllers.User
private
readonly
UserModule
userModule
=
new
UserModule
();
private
readonly
Module
.
MarketingCenter
.
CouponModule
couponModule
=
new
Module
.
MarketingCenter
.
CouponModule
();
private
readonly
Module
.
MarketingCenter
.
RechargeModule
rechargeModule
=
new
Module
.
MarketingCenter
.
RechargeModule
();
private
readonly
MiniProgramModule
appletWeChatModule
=
new
MiniProgramModule
();
#
region
收货地址
/// <summary>
...
...
@@ -1115,5 +1117,58 @@ namespace Mall.WebApi.Controllers.User
return
ApiResult
.
Success
(
""
,
new
{
rechargeRules
,
rechargeSettings
});
}
#
endregion
#
region
直播房间信息
[
HttpPost
]
[
Obsolete
]
public
ApiResult
GetLiveHouseList
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
Model
.
Entity
.
AppletWeChat
.
RB_Live_House
demodel
=
JsonConvert
.
DeserializeObject
<
Model
.
Entity
.
AppletWeChat
.
RB_Live_House
>(
RequestParm
.
msg
.
ToString
());
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
var
list
=
appletWeChatModule
.
GetLiveHousePageList
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
pagelist
.
pageData
=
list
.
Select
(
x
=>
new
{
x
.
ID
,
x
.
roomid
,
x
.
name
,
x
.
anchor_img
,
x
.
anchor_name
,
x
.
cover_img
,
x
.
live_status
,
start_time
=
GetTime
(
x
.
start_time
),
end_time
=
GetTime
(
x
.
end_time
),
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
/// <summary>
/// 时间戳转为C#格式时间
/// </summary>
/// <param name="timeStamp">Unix时间戳格式</param>
/// <returns>C#格式时间</returns>
[
Obsolete
]
public
static
string
GetTime
(
string
timeStamp
)
{
try
{
DateTime
dtStart
=
TimeZone
.
CurrentTimeZone
.
ToLocalTime
(
new
DateTime
(
1970
,
1
,
1
));
long
lTime
=
long
.
Parse
(
timeStamp
+
"0000000"
);
TimeSpan
toNow
=
new
TimeSpan
(
lTime
);
return
dtStart
.
Add
(
toNow
).
ToString
(
"yyyy-MM-dd HH:mm:ss"
);
}
catch
(
Exception
)
{
return
""
;
}
}
#
endregion
}
}
\ No newline at end of file
Mall.WindowsService/Module/FinanceModule.cs
View file @
d258fc7e
This diff is collapsed.
Click to expand it.
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