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
dccf462b
Commit
dccf462b
authored
Apr 14, 2021
by
兰国旗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消关闭需求时关闭订单,并加有订单不能关闭需求的逻辑
parent
91793771
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 @
dccf462b
...
@@ -96,6 +96,9 @@ class AliyunQcService {
...
@@ -96,6 +96,9 @@ class AliyunQcService {
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
});
});
if
(
ns
&&
ns
.
id
)
{
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-3"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-3"
);
}
}
...
...
center-order/app/base/service/impl/qcutils/baseqcSve.js
View file @
dccf462b
...
@@ -84,13 +84,16 @@ class BaseQcService {
...
@@ -84,13 +84,16 @@ class BaseQcService {
});
});
if
(
ns
&&
ns
.
id
)
{
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-2"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-2"
);
}
}
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
if
(
flowStatus
&&
[
if
(
flowStatus
&&
[
"SOLUTION_SUBMIT"
,
"PAID"
,
"USER_UPLOADED"
,
"MATERIAL_UNCONFIRM"
,
"USER_CONFIRMED"
,
"GXB_REFUSE"
,
"CLOSE"
"SOLUTION_SUBMIT"
,
"PAID"
,
"USER_UPLOADED"
,
"MATERIAL_UNCONFIRM"
,
"USER_CONFIRMED"
,
"GXB_REFUSE"
,
"CLOSE"
].
indexOf
(
flowStatus
)
>=
0
)
{
].
indexOf
(
flowStatus
)
>=
0
)
{
var
self
=
this
;
var
self
=
this
;
return
await
this
.
needsolutionDao
.
db
.
transaction
(
async
function
(
t
)
{
return
await
this
.
needsolutionDao
.
db
.
transaction
(
async
function
(
t
)
{
var
needObj
=
{
var
needObj
=
{
...
...
center-order/app/base/service/impl/qcutils/ncSve.js
View file @
dccf462b
...
@@ -575,6 +575,9 @@ class NcService {
...
@@ -575,6 +575,9 @@ class NcService {
});
});
// var newFlowStatus = [];
// var newFlowStatus = [];
if
(
ns
&&
ns
.
id
)
{
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-4"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案-4"
);
}
}
...
...
center-order/app/base/service/impl/qcutils/regCenterOrderSve.js
View file @
dccf462b
...
@@ -963,6 +963,9 @@ class RegCenterOrderService{
...
@@ -963,6 +963,9 @@ class RegCenterOrderService{
var
nsLength
=
ns
.
rows
.
length
var
nsLength
=
ns
.
rows
.
length
if
(
nsLength
>
0
)
{
if
(
nsLength
>
0
)
{
for
(
i
=
0
;
i
<
nsLength
;
i
++
)
{
for
(
i
=
0
;
i
<
nsLength
;
i
++
)
{
if
(
ns
.
rows
[
i
].
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
rows
[
i
].
id
)
{
if
(
ns
.
rows
[
i
].
id
)
{
ns
.
rows
[
i
][
'uapp_id'
]
=
uappId
;
ns
.
rows
[
i
][
'uapp_id'
]
=
uappId
;
if
(
ns
.
rows
[
i
].
status
==
"ywc"
)
{
if
(
ns
.
rows
[
i
].
status
==
"ywc"
)
{
...
@@ -983,7 +986,6 @@ class RegCenterOrderService{
...
@@ -983,7 +986,6 @@ class RegCenterOrderService{
status
:
"ygb"
,
notes
:
ab
.
note
status
:
"ygb"
,
notes
:
ab
.
note
};
};
await
self
.
needinfoDao
.
updateByWhere
(
needObj
,
{
where
:{
id
:
needinfo
.
id
},
t
});
//关闭需求
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
});
//方案废弃
var
a
=
await
self
.
needsolutionDao
.
updateByWhere
(
updateSolution
,
{
where
:
{
id
:
ns
.
rows
[
i
].
id
},
t
});
//方案废弃
console
.
log
(
"aaaa---"
,
a
)
console
.
log
(
"aaaa---"
,
a
)
})
})
...
...
center-order/app/base/service/impl/qcutils/rtSve.js
View file @
dccf462b
...
@@ -574,6 +574,9 @@ class RtService {
...
@@ -574,6 +574,9 @@ class RtService {
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
});
});
if
(
ns
&&
ns
.
id
)
{
if
(
ns
&&
ns
.
id
)
{
if
(
ns
.
orderNo
)
{
return
system
.
getResultFail
(
-
102
,
"该需求已生成订单,不能关闭!"
);
}
if
(
ns
.
status
==
"ywc"
)
{
if
(
ns
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
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