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
cc8825c7
Commit
cc8825c7
authored
Aug 08, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opNeed add functions
parent
15ce8f2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
9 deletions
+22
-9
center-order/app/base/api/impl/action/opNeed.js
+7
-7
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
+15
-2
No files found.
center-order/app/base/api/impl/action/opNeed.js
View file @
cc8825c7
...
...
@@ -30,16 +30,16 @@ class IcAPI extends APIBase {
async
opActionProcess
(
pobj
,
action_type
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
case
"
s
ubmitNeed"
:
//提交需求 2020 0807 lin 新增
opResult
=
await
this
.
opNeedInfoSve
.
s
ubmitNeed
(
pobj
,
pobj
.
actionBody
,
req
);
case
"
opS
ubmitNeed"
:
//提交需求 2020 0807 lin 新增
opResult
=
await
this
.
opNeedInfoSve
.
opS
ubmitNeed
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"
n
eedList"
:
//需求列表
opResult
=
await
this
.
opNeedInfoSve
.
n
eedList
(
pobj
,
pobj
.
actionBody
);
case
"
opN
eedList"
:
//需求列表
opResult
=
await
this
.
opNeedInfoSve
.
opN
eedList
(
pobj
,
pobj
.
actionBody
);
break
;
case
"
n
eedClose"
:
//关闭需求
opResult
=
await
this
.
opNeedInfoSve
.
n
eedClose
(
pobj
,
pobj
.
actionBody
,
req
);
case
"
opN
eedClose"
:
//关闭需求
opResult
=
await
this
.
opNeedInfoSve
.
opN
eedClose
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"
g
etItemByNeedNo"
:
//获取需求详情
case
"
opG
etItemByNeedNo"
:
//获取需求详情
opResult
=
await
this
.
needinfoSve
.
getItemByNeedNo
(
pobj
);
break
;
default
:
...
...
center-order/app/base/service/impl/dbneed/opneedinfoSve.js
View file @
cc8825c7
...
...
@@ -20,7 +20,7 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultSuccess
(
item
);
}
async
s
ubmitNeed
(
pobj
,
actionBody
,
req
)
{
async
opS
ubmitNeed
(
pobj
,
actionBody
,
req
)
{
var
needNo
=
await
this
.
getBusUid
(
"n"
);
if
(
!
actionBody
.
mobile
)
{
return
system
.
getResultFail
(
-
5002
,
"mobile不能为空"
);
...
...
@@ -47,7 +47,20 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultSuccess
();
}
async
needClose
(
pobj
,
actionBody
,
req
)
{
async
opNeedList
(
pobj
,
actionBody
,
req
)
{
// 时间段,分页,排序,需求状态 条件展示未做
var
needinfo
=
await
this
.
dao
.
model
.
findAll
({
where
:{
channelUserId
:
pobj
.
userInfo
.
channel_userid
},
order
:
[[
"id"
,
'desc'
]],
attributes
:
[
"needNo"
,
"status"
,
"statusName"
],
raw
:
true
});
return
system
.
getResult
(
needinfo
);
}
async
opNeedClose
(
pobj
,
actionBody
,
req
)
{
var
needinfo
=
await
this
.
findOne
({
channelNeedNo
:
actionBody
.
needNo
});
if
(
!
needinfo
)
{
return
system
.
getResultFail
(
-
5004
,
"需求不存在"
);
...
...
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