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
0cdb5c7d
Commit
0cdb5c7d
authored
Aug 12, 2020
by
wkliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
need user
parent
1ebb37c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
center-order/app/base/api/impl/action/diagnosis.js
+9
-3
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
+15
-2
No files found.
center-order/app/base/api/impl/action/diagnosis.js
View file @
0cdb5c7d
...
@@ -2,28 +2,34 @@ var APIBase = require("../../api.base");
...
@@ -2,28 +2,34 @@ var APIBase = require("../../api.base");
var
system
=
require
(
"../../../system"
);
var
system
=
require
(
"../../../system"
);
var
settings
=
require
(
"../../../../config/settings"
);
var
settings
=
require
(
"../../../../config/settings"
);
class
DiagnosisAPI
extends
APIBase
{
class
DiagnosisAPI
extends
APIBase
{
constructor
()
{
constructor
()
{
super
();
super
();
this
.
diagnosisSve
=
system
.
getObject
(
"service.dbneed.diagnosisSve"
);
this
.
diagnosisSve
=
system
.
getObject
(
"service.dbneed.diagnosisSve"
);
this
.
needSve
=
system
.
getObject
(
'service.dbneed.opneedinfoSve'
)
}
}
/**
/**
* 接口跳转-POST请求
* 接口跳转-POST请求
* action_type 执行的类型
* action_type 执行的类型
* action_body 执行的参数
* action_body 执行的参数
*/
*/
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参数不能为空"
);
}
}
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
var
result
=
await
this
.
opActionProcess
(
pobj
,
pobj
.
actionType
,
req
);
return
result
;
return
result
;
}
}
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
var
opResult
=
null
;
switch
(
action_type
)
{
switch
(
action_type
)
{
case
"manualEvaluation"
:
//提交需求 2020 0807 lin 新增
case
"manualEvaluation"
:
//提交需求 2020 0807 lin 新增
opResult
=
await
this
.
diagnosisSve
.
manualEvaluation
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
diagnosisSve
.
manualEvaluation
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
case
'getNeedList'
:
// 需求列表 20 08 12 liang
opResult
=
await
this
.
needSve
.
opNeedList
(
pobj
,
pobj
.
actionBody
,
req
);
break
case
'getNeedDetail'
:
// 需求详情 20 08 12 liang
opResult
=
await
this
.
needSve
.
getItemByNeedNo
(
pobj
);
default
:
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
break
;
break
;
...
...
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
View file @
0cdb5c7d
...
@@ -63,9 +63,22 @@ class NeedinfoService extends ServiceBase {
...
@@ -63,9 +63,22 @@ class NeedinfoService extends ServiceBase {
if
(
actionBody
.
ConsultType
)
{
if
(
actionBody
.
ConsultType
)
{
sobj
.
search
.
consult_type
=
actionBody
.
consultType
;
sobj
.
search
.
consult_type
=
actionBody
.
consultType
;
}
}
if
(
actionBody
.
status
)
{
// liang 追加筛选条件
if
(
actionBody
.
status
&&
statusDic
.
indexOf
(
actionBody
.
status
)
!=
-
1
)
{
sobj
.
search
.
status
=
actionBody
.
status
;
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
.
updated_at
=
actionBody
.
updatedAt
}
var
r
=
await
this
.
dao
.
findAndCountAll
(
sobj
);
var
r
=
await
this
.
dao
.
findAndCountAll
(
sobj
);
return
system
.
getResultSuccess
(
r
);
return
system
.
getResultSuccess
(
r
);
}
}
...
@@ -99,7 +112,7 @@ class NeedinfoService extends ServiceBase {
...
@@ -99,7 +112,7 @@ class NeedinfoService extends ServiceBase {
sobj
.
search
.
publishMobile
=
actionBody
.
publishMobile
sobj
.
search
.
publishMobile
=
actionBody
.
publishMobile
}
}
if
(
actionBody
.
updatedAt
)
{
if
(
actionBody
.
updatedAt
)
{
sobj
.
search
.
updated
A
t
=
actionBody
.
updatedAt
sobj
.
search
.
updated
_a
t
=
actionBody
.
updatedAt
}
}
var
r
=
await
this
.
dao
.
findAndCountAll
(
sobj
);
var
r
=
await
this
.
dao
.
findAndCountAll
(
sobj
);
return
system
.
getResultSuccess
(
r
);
return
system
.
getResultSuccess
(
r
);
...
...
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