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
368593ea
Commit
368593ea
authored
Aug 12, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
need
parent
7b18f95c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletions
+43
-1
center-order/app/base/api/impl/action/diagnosisneedbus.js
+8
-1
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
+35
-0
No files found.
center-order/app/base/api/impl/action/diagnosisneedbus.js
View file @
368593ea
...
@@ -4,8 +4,9 @@ class DiagnosisNeedBusAPI extends APIBase {
...
@@ -4,8 +4,9 @@ class DiagnosisNeedBusAPI extends APIBase {
constructor
()
{
constructor
()
{
super
();
super
();
this
.
dnbSve
=
system
.
getObject
(
"service.dbneed.diagnosisneedbusSve"
);
this
.
dnbSve
=
system
.
getObject
(
"service.dbneed.diagnosisneedbusSve"
);
this
.
needSve
=
system
.
getObject
(
'service.dbneed.opneedinfoSve'
)
}
}
async
springBoard
(
pobj
,
qobj
,
req
)
{
async
springBoard
(
pobj
,
qobj
,
req
)
{
// if (!pobj.actionType) {
// if (!pobj.actionType) {
// return system.getResult(null, "actionType参数不能为空");
// return system.getResult(null, "actionType参数不能为空");
...
@@ -33,6 +34,12 @@ class DiagnosisNeedBusAPI extends APIBase {
...
@@ -33,6 +34,12 @@ class DiagnosisNeedBusAPI extends APIBase {
case
"doEAV"
:
// 审核
case
"doEAV"
:
// 审核
opResult
=
await
this
.
dnbSve
.
doEAV
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
dnbSve
.
doEAV
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
case
'getNeedList'
:
// 需求列表
opResult
=
await
this
.
needSve
.
opNeedListBak
(
pobj
,
pobj
.
actionBody
,
req
);
break
case
'getNeedDetail'
:
// 需求详情
opResult
=
await
this
.
needSve
.
getItemByNeedNo
(
pobj
);
break
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"actionType参数错误"
);
opResult
=
system
.
getResult
(
null
,
"actionType参数错误"
);
break
;
break
;
...
...
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
View file @
368593ea
...
@@ -70,6 +70,41 @@ class NeedinfoService extends ServiceBase {
...
@@ -70,6 +70,41 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultSuccess
(
r
);
return
system
.
getResultSuccess
(
r
);
}
}
async
opNeedListBak
(
pobj
,
actionBody
,
req
)
{
let
statusDic
=
[
'wts'
,
'yts'
,
'ygj'
,
'ygb'
,
'ycd'
]
var
sobj
=
{
search
:
{
},
pageInfo
:
{
pageNo
:
Number
(
actionBody
.
pageNumber
)
||
1
,
pageSize
:
Number
(
actionBody
.
pageSize
)
||
10
}
}
if
(
pobj
.
appInfo
.
uapp_id
)
{
sobj
.
search
.
uapp_id
=
pobj
.
appInfo
.
uapp_id
}
if
(
actionBody
.
typeCode
)
{
sobj
.
search
.
typeCode
=
actionBody
.
typeCode
;
}
if
(
actionBody
.
status
&&
statusDic
.
indexOf
(
actionBody
.
status
)
!=
-
1
)
{
sobj
.
search
.
status
=
actionBody
.
status
;
}
if
(
actionBody
.
needNo
)
{
sobj
.
search
.
needNo
=
actionBody
.
needNo
}
if
(
actionBody
.
publishName
)
{
sobj
.
search
.
publishName
=
actionBody
.
publishName
}
if
(
actionBody
.
publishMobile
)
{
sobj
.
search
.
publishMobile
=
actionBody
.
publishMobile
}
if
(
actionBody
.
updatedAt
)
{
sobj
.
search
.
updatedAt
=
actionBody
.
updatedAt
}
var
r
=
await
this
.
dao
.
findAndCountAll
(
sobj
);
return
system
.
getResultSuccess
(
r
);
}
async
opNeedClose
(
pobj
,
actionBody
,
req
)
{
async
opNeedClose
(
pobj
,
actionBody
,
req
)
{
var
needinfo
=
await
this
.
findOne
({
channelNeedNo
:
actionBody
.
needNo
});
var
needinfo
=
await
this
.
findOne
({
channelNeedNo
:
actionBody
.
needNo
});
if
(
!
needinfo
)
{
if
(
!
needinfo
)
{
...
...
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