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
3848464f
Commit
3848464f
authored
Oct 22, 2020
by
王悦
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert 直购
parent
34f48293
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
18 deletions
+7
-18
center-order/app/base/service/impl/dbneed/needinfoSve.js
+2
-1
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+3
-15
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
+2
-2
No files found.
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
3848464f
...
@@ -174,7 +174,8 @@ class NeedinfoService extends ServiceBase {
...
@@ -174,7 +174,8 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
}
}
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
solutionitem
.
needNo
);
var
item
=
await
this
.
dao
.
getItemByNeedNo
(
solutionitem
.
needNo
);
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
Area
+
`(
${
solutionitem
.
solutionContent
.
solution
.
ActionType
}
)`
//北京(新办);
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
Area
;
//item.solutionProvince = solutionitem.solutionContent.solution.Area + `(${solutionitem.solutionContent.solution.ActionType})`//北京(新办);
item
.
solutionContent
=
solutionitem
.
solutionContent
item
.
solutionContent
=
solutionitem
.
solutionContent
item
.
channelSolutionNo
=
solutionitem
.
channelSolutionNo
item
.
channelSolutionNo
=
solutionitem
.
channelSolutionNo
if
(
!
item
)
{
if
(
!
item
)
{
...
...
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
3848464f
...
@@ -485,17 +485,6 @@ class NeedsolutionService extends ServiceBase {
...
@@ -485,17 +485,6 @@ class NeedsolutionService extends ServiceBase {
if
(
!
app
||
!
app
.
uapp_id
)
{
if
(
!
app
||
!
app
.
uapp_id
)
{
return
system
.
getResultFail
(
-
100
,
"未知渠道"
);
return
system
.
getResultFail
(
-
100
,
"未知渠道"
);
}
}
var
ns
// 2020 1021 lin 修改 if (ab.isDirectBuy 为 ==true 原因 实际传的是字符串不是布尔
if
(
ab
.
isDirectBuy
===
"true"
){
//直购先创建空方案
var
solutionNo
=
await
this
.
getBusUid
(
"ns"
);
ns
=
await
this
.
create
({
solutionNo
,
...
ab
,
status
:
"ywc"
,
solutionContent
:
JSON
.
stringify
({
totalSum
:
Number
(
ab
.
orderPrice
||
"0"
)})
})
}
else
{
if
(
!
ab
.
channelSolutionNo
)
{
if
(
!
ab
.
channelSolutionNo
)
{
return
system
.
getResultFail
(
-
101
,
"渠道方案编号不能为空"
);
return
system
.
getResultFail
(
-
101
,
"渠道方案编号不能为空"
);
}
}
...
@@ -503,8 +492,8 @@ class NeedsolutionService extends ServiceBase {
...
@@ -503,8 +492,8 @@ class NeedsolutionService extends ServiceBase {
// return system.getResultFail(-102,"状态不能为空");
// return system.getResultFail(-102,"状态不能为空");
// }
// }
var
needsolutioninfo
=
await
this
.
dao
.
model
.
findOne
({
var
needsolutioninfo
=
await
this
.
dao
.
model
.
findOne
({
attributes
:
[
"id"
,
"solutionContent"
,
"status"
,
"orderNo"
],
attributes
:[
"id"
,
"solutionContent"
,
"status"
,
"orderNo"
],
where
:
{
channelSolutionNo
:
ab
.
channelSolutionNo
,
isInvalid
:
0
},
raw
:
true
where
:
{
channelSolutionNo
:
ab
.
channelSolutionNo
,
isInvalid
:
0
},
raw
:
true
});
});
if
(
!
needsolutioninfo
||
!
needsolutioninfo
.
id
)
{
if
(
!
needsolutioninfo
||
!
needsolutioninfo
.
id
)
{
return
system
.
getResultFail
(
-
400
,
"未知方案"
);
return
system
.
getResultFail
(
-
400
,
"未知方案"
);
...
@@ -524,10 +513,9 @@ class NeedsolutionService extends ServiceBase {
...
@@ -524,10 +513,9 @@ class NeedsolutionService extends ServiceBase {
}
}
needsolutioninfo
.
solutionContent
=
JSON
.
stringify
(
solutionContent
);
needsolutioninfo
.
solutionContent
=
JSON
.
stringify
(
solutionContent
);
await
this
.
dao
.
update
(
needsolutioninfo
);
await
this
.
dao
.
update
(
needsolutioninfo
);
ns
=
await
this
.
dao
.
model
.
findOne
({
var
ns
=
await
this
.
dao
.
model
.
findOne
({
where
:
{
id
:
needsolutioninfo
.
id
},
raw
:
true
where
:
{
id
:
needsolutioninfo
.
id
},
raw
:
true
});
});
}
return
system
.
getResultSuccess
(
ns
);
return
system
.
getResultSuccess
(
ns
);
}
}
...
...
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
View file @
3848464f
...
@@ -251,9 +251,9 @@ class AliyunQcService {
...
@@ -251,9 +251,9 @@ class AliyunQcService {
if
(
!
solution
.
Area
)
{
if
(
!
solution
.
Area
)
{
return
system
.
getResultFail
(
-
107
,
"区域不能为空"
);
return
system
.
getResultFail
(
-
107
,
"区域不能为空"
);
}
}
if
(
!
solution
.
ActionType
)
{
/*
if (!solution.ActionType) {
return system.getResultFail(-108, "办理类型不能为空");
return system.getResultFail(-108, "办理类型不能为空");
}
}
*/
var
solutionFlowList
=
ab
.
solutionContent
.
solutionFlowList
||
[];
var
solutionFlowList
=
ab
.
solutionContent
.
solutionFlowList
||
[];
solutionFlowList
.
push
({
solutionFlowList
.
push
({
status
:
"SOLUTION_SUBMIT"
,
statusName
:
this
.
icpSolutionStatusReference
.
SOLUTION_SUBMIT
,
updated_at
:
new
Date
()
status
:
"SOLUTION_SUBMIT"
,
statusName
:
this
.
icpSolutionStatusReference
.
SOLUTION_SUBMIT
,
updated_at
:
new
Date
()
...
...
王悦
@wangyue
mentioned in commit
fda0a2a6
Oct 23, 2020
mentioned in commit
fda0a2a6
mentioned in commit fda0a2a6b6936e99f4f4e605e0f0f392a277c3ba
Toggle commit list
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