Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
qinhaitao
taobao-mini-template
Commits
15c80a56
Commit
15c80a56
authored
Oct 15, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
🐛
时间误差
parent
3ce4a255
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
awards.controller.ts
server/duibats/src/controller/awards.controller.ts
+6
-3
activityconfig.service.ts
server/duibats/src/service/activityconfig.service.ts
+2
-1
No files found.
server/duibats/src/controller/awards.controller.ts
View file @
15c80a56
...
@@ -214,7 +214,10 @@ export default class BaseController {
...
@@ -214,7 +214,10 @@ export default class BaseController {
v
.
name
||
''
,
v
.
name
||
''
,
v
.
type
==
1
?
'/'
:
v
.
receiveName
||
''
,
v
.
type
==
1
?
'/'
:
v
.
receiveName
||
''
,
v
.
type
==
1
?
'/'
:
v
.
phone
||
'未填'
,
v
.
type
==
1
?
'/'
:
v
.
phone
||
'未填'
,
v
.
type
==
1
?
'/'
:
v
.
province
?
v
.
province
+
v
.
city
+
v
.
area
+
v
.
addressdetail
:
'未填'
,
v
.
type
==
1
?
'/'
:
v
.
province
?
v
.
province
:
'未填'
,
v
.
type
==
1
?
'/'
:
v
.
city
?
v
.
city
:
'未填'
,
v
.
type
==
1
?
'/'
:
v
.
area
?
v
.
area
:
'未填'
,
v
.
type
==
1
?
'/'
:
v
.
addressdetail
?
v
.
addressdetail
:
'未填'
,
v
.
type
==
1
?
'/'
:
shipMsg
[
v
.
shipStatus
],
v
.
type
==
1
?
'/'
:
shipMsg
[
v
.
shipStatus
],
v
.
type
==
1
?
'/'
:
v
.
shipCompany
||
'/'
,
v
.
type
==
1
?
'/'
:
v
.
shipCompany
||
'/'
,
v
.
type
==
1
?
'/'
:
v
.
shipNum
||
'/'
v
.
type
==
1
?
'/'
:
v
.
shipNum
||
'/'
...
@@ -332,8 +335,8 @@ export default class BaseController {
...
@@ -332,8 +335,8 @@ export default class BaseController {
let
ad
=
item
.
province
+
item
.
city
+
item
.
area
+
item
.
addressdetail
,
let
ad
=
item
.
province
+
item
.
city
+
item
.
area
+
item
.
addressdetail
,
type0
=
item
.
type
type0
=
item
.
type
item
.
prizeId
=
item
.
_id
item
.
prizeId
=
item
.
_id
item
.
createTime
=
formatTime
(
new
Date
(
item
.
createTime
))
||
''
item
.
createTime
=
formatTime
(
new
Date
(
item
.
createTime
+
EIGHT_HOURS
))
||
''
item
.
receiveTime
=
item
.
receiveTime
?
formatTime
(
new
Date
(
item
.
receiveTime
))
:
'未填'
item
.
receiveTime
=
item
.
receiveTime
?
formatTime
(
new
Date
(
item
.
receiveTime
+
EIGHT_HOURS
))
:
'未填'
item
.
prizeDataType
=
prizePoolType
[
item
.
prizeDataType
]
item
.
prizeDataType
=
prizePoolType
[
item
.
prizeDataType
]
item
.
type
=
prizeKind
[
item
.
type
]
item
.
type
=
prizeKind
[
item
.
type
]
item
.
receiveName
=
type0
==
3
?
item
.
receiveName
||
'未填'
:
'/'
item
.
receiveName
=
type0
==
3
?
item
.
receiveName
||
'未填'
:
'/'
...
...
server/duibats/src/service/activityconfig.service.ts
View file @
15c80a56
...
@@ -137,13 +137,14 @@ export default class ActivityConfigService {
...
@@ -137,13 +137,14 @@ export default class ActivityConfigService {
// 更新单条数据
// 更新单条数据
async
updateOnePrizeById
(
id
,
data
)
{
async
updateOnePrizeById
(
id
,
data
)
{
const
{
useStock
,
...
rest
}
=
data
;
return
await
this
.
activityconfigPrizeDao
.
update
(
return
await
this
.
activityconfigPrizeDao
.
update
(
{
{
_id
:
id
_id
:
id
},
},
{
{
$set
:
{
$set
:
{
...
data
,
...
rest
,
updateTime
:
Date
.
now
(),
updateTime
:
Date
.
now
(),
deleteStatus
:
DELETE_STATUS
.
EXIST
deleteStatus
:
DELETE_STATUS
.
EXIST
}
}
...
...
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