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
c0cf194a
Commit
c0cf194a
authored
Mar 17, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zhuangbing
parent
bd6f5132
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
center-order/app/base/db/metadata/apps/platform.js
+1
-1
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+7
-4
No files found.
center-order/app/base/db/metadata/apps/platform.js
View file @
c0cf194a
...
@@ -72,7 +72,7 @@ module.exports = {
...
@@ -72,7 +72,7 @@ module.exports = {
"push_chance_type"
:
{
"wts"
:
"未推送"
,
"yts"
:
"已推送"
,
"ygj"
:
"已跟进"
,
"ycd"
:
"已成单"
},
"push_chance_type"
:
{
"wts"
:
"未推送"
,
"yts"
:
"已推送"
,
"ygj"
:
"已跟进"
,
"ycd"
:
"已成单"
},
"policy_type"
:{
'fzbt'
:
'租金减免'
,
'jrdk'
:
'金融贷款'
,
'zdfc'
:
'行政措施'
,
'ssjm'
:
'税收优惠'
,
'rlzy'
:
'人力资源'
},
"policy_type"
:{
'fzbt'
:
'租金减免'
,
'jrdk'
:
'金融贷款'
,
'zdfc'
:
'行政措施'
,
'ssjm'
:
'税收优惠'
,
'rlzy'
:
'人力资源'
},
"customer_intention"
:{
"dgj"
:
"待跟进"
,
"yyx"
:
"有意向"
,
"wyx"
:
"无意向"
},
"customer_intention"
:{
"dgj"
:
"待跟进"
,
"yyx"
:
"有意向"
,
"wyx"
:
"无意向"
},
"solution_status"
:{
"
ytj"
:
"已提交"
,
"yfk"
:
"已付款"
,
"yzf"
:
"已作废"
,
"ytk"
:
"已退款
"
},
"solution_status"
:{
"
dqr"
:
"待确认"
,
"ywc"
:
"已完成"
,
"yzf"
:
"已作废
"
},
},
},
}
}
...
...
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
c0cf194a
...
@@ -45,7 +45,7 @@ class NeedsolutionService extends ServiceBase {
...
@@ -45,7 +45,7 @@ class NeedsolutionService extends ServiceBase {
ab
[
"channelNeedNo"
]
=
needinfo
.
channelNeedNo
;
ab
[
"channelNeedNo"
]
=
needinfo
.
channelNeedNo
;
var
solutionNo
=
await
this
.
getBusUid
(
"ns"
);
var
solutionNo
=
await
this
.
getBusUid
(
"ns"
);
ab
[
"solutionNo"
]
=
solutionNo
;
ab
[
"solutionNo"
]
=
solutionNo
;
ab
[
"status"
]
=
"
ytj
"
;
ab
[
"status"
]
=
"
dqr
"
;
ab
.
solutionContent
=
JSON
.
stringify
(
ab
.
solutionContent
);
ab
.
solutionContent
=
JSON
.
stringify
(
ab
.
solutionContent
);
var
od
=
await
this
.
dao
.
create
(
ab
);
var
od
=
await
this
.
dao
.
create
(
ab
);
if
(
od
&&
od
.
id
){
if
(
od
&&
od
.
id
){
...
@@ -217,13 +217,13 @@ class NeedsolutionService extends ServiceBase {
...
@@ -217,13 +217,13 @@ class NeedsolutionService extends ServiceBase {
if
(
ab
.
operateType
==
"INVALID"
){
// INVALID:作废
if
(
ab
.
operateType
==
"INVALID"
){
// INVALID:作废
status
=
"yzf"
;
status
=
"yzf"
;
}
else
if
(
ab
.
operateType
==
"REFUND"
){
// REFUND:退款
}
else
if
(
ab
.
operateType
==
"REFUND"
){
// REFUND:退款
status
=
"y
tk
"
;
status
=
"y
zf
"
;
}
else
if
(
ab
.
operateType
==
"PAID"
){
// PAID:支付
}
else
if
(
ab
.
operateType
==
"PAID"
){
// PAID:支付
status
=
"y
fk
"
;
status
=
"y
wc
"
;
}
else
{
}
else
{
return
system
.
getResultFail
(
-
104
,
"操作类型有误"
);
return
system
.
getResultFail
(
-
104
,
"操作类型有误"
);
}
}
var
solution_status
=
{
"
ytj"
:
"已提交"
,
"yfk"
:
"已付款"
,
"yzf"
:
"已作废"
,
"ytk"
:
"已退款
"
};
var
solution_status
=
{
"
dqr"
:
"待确认"
,
"ywc"
:
"已完成"
,
"yzf"
:
"已作废
"
};
solutionContent
[
"deliveryStatus"
]
=
status
;
solutionContent
[
"deliveryStatus"
]
=
status
;
solutionContent
[
"deliveryStatusName"
]
=
solution_status
[
status
];
solutionContent
[
"deliveryStatusName"
]
=
solution_status
[
status
];
solutionContent
[
"updated"
]
=
new
Date
();
solutionContent
[
"updated"
]
=
new
Date
();
...
@@ -254,6 +254,9 @@ class NeedsolutionService extends ServiceBase {
...
@@ -254,6 +254,9 @@ class NeedsolutionService extends ServiceBase {
if
(
!
ns
||
!
ns
.
id
){
if
(
!
ns
||
!
ns
.
id
){
return
system
.
getResultFail
(
-
102
,
"未知方案"
);
return
system
.
getResultFail
(
-
102
,
"未知方案"
);
}
}
if
(
ns
.
status
!=
"dqr"
){
return
system
.
getResultFail
(
-
103
,
"方案状态错误,只能废弃待确认方案"
);
}
await
this
.
dao
.
update
({
id
:
ns
.
id
,
status
:
"yzf"
});
//方案废弃
await
this
.
dao
.
update
({
id
:
ns
.
id
,
status
:
"yzf"
});
//方案废弃
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