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
b0d4e29f
Commit
b0d4e29f
authored
Dec 30, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
laolan
parent
03695764
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
+6
-4
No files found.
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
View file @
b0d4e29f
...
@@ -128,6 +128,7 @@ class RegCenterOrderService{
...
@@ -128,6 +128,7 @@ class RegCenterOrderService{
var
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
var
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
where
:
{
channelNeedNo
:
ab
.
intentionBizId
},
raw
:
true
where
:
{
channelNeedNo
:
ab
.
intentionBizId
},
raw
:
true
});
});
console
.
log
(
'needinfo-----reg---'
,
needinfo
)
if
(
!
needinfo
)
{
if
(
!
needinfo
)
{
return
system
.
getResultFail
(
-
104
,
"未知方案需求"
);
return
system
.
getResultFail
(
-
104
,
"未知方案需求"
);
}
}
...
@@ -145,15 +146,17 @@ class RegCenterOrderService{
...
@@ -145,15 +146,17 @@ class RegCenterOrderService{
var
i
;
var
i
;
var
nsLength
var
nsLength
var
needData
=
{
id
:
needinfo
.
id
};
var
needData
=
{
id
:
needinfo
.
id
};
if
(
!
ns
)
{
//如果没有方案直接关闭需求,更新需求状态
if
(
ab
.
intentionStatus
){
if
(
ab
.
intentionStatus
){
if
(
ab
.
intentionStatus
==
5
){
if
(
ab
.
intentionStatus
==
5
){
needData
[
'status'
]
=
'ygb'
needData
[
'status'
]
=
'ygb'
needData
[
'statusName'
]
=
'已关闭'
}
}
if
(
ab
.
intentionStatus
==
1
){
if
(
ab
.
intentionStatus
==
1
){
needData
[
"status"
]
=
"ygb"
;
needData
[
"status"
]
=
"ygb"
;
needData
[
'statusName'
]
=
'已关闭'
}
}
if
(
ns
.
length
<
1
)
{
//如果没有方案直接关闭需求,更新需求状态
await
this
.
needinfoDao
.
update
(
needData
);
//更新状态修改
await
this
.
needinfoDao
.
update
(
needData
);
//更新状态修改
}
}
}
else
{
}
else
{
...
@@ -165,11 +168,9 @@ class RegCenterOrderService{
...
@@ -165,11 +168,9 @@ class RegCenterOrderService{
solutionContent
=
ns
[
i
].
solutionContent
;
solutionContent
=
ns
[
i
].
solutionContent
;
solutionContent
.
customerRemark
=
ab
.
description
;
solutionContent
.
customerRemark
=
ab
.
description
;
solutionContent
.
needStatus
=
ab
.
intentionStatus
;
solutionContent
.
needStatus
=
ab
.
intentionStatus
;
if
(
ab
.
intentionStatus
==
1
)
{
if
(
ab
.
intentionStatus
==
1
)
{
updateObj
[
"status"
]
=
"ybh"
;
updateObj
[
"status"
]
=
"ybh"
;
updateObj
[
"isInvalid"
]
=
1
;
updateObj
[
"isInvalid"
]
=
1
;
}
else
if
(
ab
.
intentionStatus
==
2
)
{
}
else
if
(
ab
.
intentionStatus
==
2
)
{
updateObj
[
"status"
]
=
"dqr"
;
updateObj
[
"status"
]
=
"dqr"
;
}
else
if
(
ab
.
intentionStatus
==
3
)
{
}
else
if
(
ab
.
intentionStatus
==
3
)
{
...
@@ -186,6 +187,7 @@ class RegCenterOrderService{
...
@@ -186,6 +187,7 @@ class RegCenterOrderService{
solutionContent
=
JSON
.
stringify
(
solutionContent
);
solutionContent
=
JSON
.
stringify
(
solutionContent
);
updateObj
[
"solutionContent"
]
=
solutionContent
;
updateObj
[
"solutionContent"
]
=
solutionContent
;
await
this
.
needsolutionDao
.
update
(
updateObj
);
//方案状态修改
await
this
.
needsolutionDao
.
update
(
updateObj
);
//方案状态修改
await
this
.
needinfoDao
.
update
(
needData
);
//更新状态修改
}
}
}
}
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
...
...
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