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
5eb45076
Commit
5eb45076
authored
Apr 15, 2021
by
宋毅
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'center-order' of gitlab.gongsibao.com:jiangyong/zhichan into center-order
parents
50b57699
a7de9b61
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
5 deletions
+19
-5
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
+3
-0
center-order/app/base/service/impl/qcutils/baseqcSve.js
+7
-4
center-order/app/base/service/impl/qcutils/ncSve.js
+3
-0
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
+3
-1
center-order/app/base/service/impl/qcutils/rtSve.js
+3
-0
No files found.
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
View file @
5eb45076
...
...
@@ -96,6 +96,9 @@ class AliyunQcService {
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
});
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-3"
);
}
...
...
center-order/app/base/service/impl/qcutils/baseqcSve.js
View file @
5eb45076
...
...
@@ -84,13 +84,16 @@ class BaseQcService {
});
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-2"
);
}
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
if
(
flowStatus
&&
[
"SOLUTION_SUBMIT"
,
"PAID"
,
"USER_UPLOADED"
,
"MATERIAL_UNCONFIRM"
,
"USER_CONFIRMED"
,
"GXB_REFUSE"
,
"CLOSE"
].
indexOf
(
flowStatus
)
>=
0
)
{
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
if
(
flowStatus
&&
[
"SOLUTION_SUBMIT"
,
"PAID"
,
"USER_UPLOADED"
,
"MATERIAL_UNCONFIRM"
,
"USER_CONFIRMED"
,
"GXB_REFUSE"
,
"CLOSE"
].
indexOf
(
flowStatus
)
>=
0
)
{
var
self
=
this
;
return
await
this
.
needsolutionDao
.
db
.
transaction
(
async
function
(
t
)
{
var
needObj
=
{
...
...
center-order/app/base/service/impl/qcutils/ncSve.js
View file @
5eb45076
...
...
@@ -575,6 +575,9 @@ class NcService {
});
// var newFlowStatus = [];
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-4"
);
}
...
...
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
View file @
5eb45076
...
...
@@ -963,6 +963,9 @@ class RegCenterOrderService{
var
nsLength
=
ns
.
rows
.
length
if
(
nsLength
>
0
)
{
for
(
i
=
0
;
i
<
nsLength
;
i
++
)
{
if
(
ns
.
rows
[
i
].
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
rows
[
i
].
id
)
{
ns
.
rows
[
i
][
'uapp_id'
]
=
uappId
;
if
(
ns
.
rows
[
i
].
status
==
"ywc"
)
{
...
...
@@ -983,7 +986,6 @@ class RegCenterOrderService{
status
:
"ygb"
,
notes
:
ab
.
note
};
await
self
.
needinfoDao
.
updateByWhere
(
needObj
,
{
where
:{
id
:
needinfo
.
id
},
t
});
//关闭需求
// await self.needsolutionDao.update({ status: "yzf", isInvalid: 1 }, { where: { id: ns.rows[i].id }, transaction: t });//方案废弃
var
a
=
await
self
.
needsolutionDao
.
updateByWhere
(
updateSolution
,
{
where
:
{
id
:
ns
.
rows
[
i
].
id
},
t
});
//方案废弃
console
.
log
(
"aaaa---"
,
a
)
})
...
...
center-order/app/base/service/impl/qcutils/rtSve.js
View file @
5eb45076
...
...
@@ -574,6 +574,9 @@ class RtService {
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
});
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
}
...
...
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