Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-activity-platform
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
陈峰
6 years ago
Commit
058dc1717c535c1a1347d7c234f6bdeec10bb727
2 parents
7440a09c
6d1e9922
Merge branch 'feature/yoluck' into 'release/6.8.3'
fix sql See merge request
!86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
apps/activity/models/zero-buy.js
apps/activity/models/zero-buy.js
View file @
058dc17
...
...
@@ -535,7 +535,7 @@ module.exports = class extends global.yoho.BaseModel {
}
else
{
insert
=
await
mysqlCli
.
insert
(
`
insert
into
$
{
TABLE_ACT_PRIZE_PRODUCT_USER
}
(
$
{
keyArr
.
join
(
','
)})
select
:
actPrizeId
as
act_prize_id
,
:
uid
as
uid
,
user_name
,
user_thumb
,
union_id
,
:
prizeCode
as
prize_code
,
:
isShareTake
as
is_share_take
,
:
shareUid
as
share_uid
from
$
{
TABLE_ACT_PRIZE_PRODUCT_USER
}
where
uid
=
:
uid
limit
1
;
`
,
{
:
isShareTake
as
is_share_take
,
:
shareUid
as
share_uid
from
$
{
TABLE_ACT_PRIZE_PRODUCT_USER
}
where
uid
=
:
uid
and
act_prize_id
=
:
actPrizeId
limit
1
;
`
,
{
actPrizeId
,
uid
,
prizeCode
,
...
...
Please
register
or
login
to post a comment