Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
9015702a
Commit
9015702a
authored
May 24, 2021
by
Sxy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 套餐 截止时间
parent
bb724402
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
icp-deliver/app/base/service/impl/delivery/companycaseSve.js
+8
-4
icp-deliver/app/base/utils/toQft/gongshangClient.js
+2
-2
No files found.
icp-deliver/app/base/service/impl/delivery/companycaseSve.js
View file @
9015702a
...
...
@@ -116,13 +116,17 @@ class CompanycaseService extends ServiceBase {
(
system
.
SERVICECODE
.
AGENTCASE1
===
deliverData
.
product_code
&&
deliverData
.
delivery_status
===
system
.
SERVERSESTATUS
.
RECEIVED
)
)
{
if
(
!
pobj
.
startTime
||
!
pobj
.
endTime
)
{
if
(
!
pobj
.
startTime
)
{
throw
new
Error
(
"请传入 服务的起止时间"
)
}
else
{
const
delivery_info
=
{
...
deliverData
.
delivery_info
,
startTime
:
system
.
SERVICECODE
.
REGADDRCASE1
===
deliverData
.
product_code
?
moment
(
pobj
.
startTime
).
format
(
'YYYY-MM-DD'
)
:
moment
(
pobj
.
startTime
).
format
(
'YYYY-MM'
),
endTime
:
system
.
SERVICECODE
.
REGADDRCASE1
===
deliverData
.
product_code
?
moment
(
pobj
.
endTime
).
format
(
'YYYY-MM-DD'
)
:
moment
(
pobj
.
endTime
).
format
(
'YYYY-MM'
)
...
deliverData
.
delivery_info
,
// Moment(time).startOf("month").format("YYYY-MM-DD HH:mm:ss"),
startTime
:
system
.
SERVICECODE
.
REGADDRCASE1
===
deliverData
.
product_code
?
moment
(
pobj
.
startTime
).
startOf
(
"day"
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
moment
(
pobj
.
startTime
).
startOf
(
"month"
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
endTime
:
system
.
SERVICECODE
.
REGADDRCASE1
===
deliverData
.
product_code
?
moment
(
pobj
.
startTime
).
add
(
11
,
'month'
).
endOf
(
"day"
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
moment
(
pobj
.
startTime
).
add
(
11
,
'month'
).
endOf
(
"month"
).
format
(
'YYYY-MM-DD HH:mm:ss'
),
}
updateData
=
{
delivery_status
:
status
,
...
...
icp-deliver/app/base/utils/toQft/gongshangClient.js
View file @
9015702a
...
...
@@ -69,7 +69,7 @@ class GongshangClient extends BaseClient {
case
system
.
SERVERSESTATUS
.
ENGRAVING
:
// 刻章环节
status
=
this
.
CIRCUITSTATUS
.
ENGRAVING
;
break
case
system
.
SERVERSESTATUS
.
SUCCESS
:
// 服务中
case
system
.
SERVERSESTATUS
.
SUCCESS
:
return
"SUCCESS"
default
:
throw
new
Error
(
"此状态手动不能更改"
);
...
...
@@ -139,7 +139,7 @@ class GongshangClient extends BaseClient {
status
=
this
.
CIRCUITSTATUS
.
SUCCESS
;
break
case
system
.
SERVERSESTATUS
.
SERVICEING
:
// 服务中
status
=
system
.
SERVERSE
STATUS
.
SUCCESS
;
status
=
this
.
CIRCUIT
STATUS
.
SUCCESS
;
break
default
:
throw
new
Error
(
"此状态手动不能更改"
);
...
...
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