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
f93e5843
Commit
f93e5843
authored
Jan 12, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
9a1f666d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
9 deletions
+34
-9
igirl-channel/app/base/api/impl/action/needOrder.js
+2
-2
igirl-channel/app/base/service/impl/dbneed/businesschanceSve.js
+25
-0
igirl-channel/app/base/service/impl/dbneed/needinfoSve.js
+7
-7
No files found.
igirl-channel/app/base/api/impl/action/needOrder.js
View file @
f93e5843
...
...
@@ -36,7 +36,7 @@ class NeedOrderAPI extends APIBase {
// }
return
result
;
}
async
opActionProcess
(
action_process
,
action_type
,
action_body
)
{
async
opActionProcess
(
action_process
,
action_type
,
action_body
,
pobj
,
req
)
{
var
opResult
=
null
;
switch
(
action_type
)
{
// sy
...
...
@@ -44,7 +44,7 @@ class NeedOrderAPI extends APIBase {
opResult
=
system
.
getResultSuccess
(
null
,
"测试成功"
);
break
;
case
"subNeed"
:
//提交需求
opResult
=
await
this
.
needinfoSve
.
subNeed
(
action_body
);
opResult
=
await
this
.
needinfoSve
.
subNeed
(
action_body
,
req
);
break
;
default
:
opResult
=
system
.
getResult
(
null
,
"action_type参数错误"
);
...
...
igirl-channel/app/base/service/impl/dbneed/businesschanceSve.js
View file @
f93e5843
...
...
@@ -25,6 +25,31 @@ class BusinesschanceService extends ServiceBase {
return
payUserIds
;
}
async
subNeed
(
obj
){
var
user
=
obj
.
user
;
var
app
=
obj
.
app
;
if
(
!
user
){
return
system
.
getResultFail
(
-
100
,
"未知用户"
);
}
if
(
!
app
){
return
system
.
getResultFail
(
-
101
,
"未知渠道"
);
}
var
needNo
=
await
this
.
getBusUid
(
"ni"
);
var
needObj
=
{
app_id
:
app
.
id
,
needNo
:
needNo
,
needDesc
:
obj
.
needDesc
,
needUserMoblie
:
obj
.
needUserMoblie
,
notes
:
obj
.
notes
,
channelUserName
:
user
.
channelUserName
,
auditStatus
:
"00"
,
createuser_id
:
user
.
id
,
itemCode
:
obj
.
itemCode
};
var
need
=
await
this
.
dao
.
create
(
needObj
);
return
system
.
getResultSuccess
(
need
);
}
async
zc2channel
()
{
try
{
var
lastsql
=
"select id from h_business_chance order by id desc"
;
...
...
igirl-channel/app/base/service/impl/dbneed/needinfoSve.js
View file @
f93e5843
...
...
@@ -7,12 +7,12 @@ class NeedInfoService extends ServiceBase {
super
(
"dbneed"
,
ServiceBase
.
getDaoName
(
NeedInfoService
));
}
async
subNeed
(
obj
){
var
user
=
obj
.
u
ser
;
var
app
=
obj
.
app
;
if
(
!
user
){
return
system
.
getResultFail
(
-
100
,
"未知用户"
);
}
async
subNeed
(
obj
,
req
){
var
user
=
obj
.
channelU
ser
;
var
app
=
req
.
app
;
//
if(!user){
//
return system.getResultFail(-100, "未知用户");
//
}
if
(
!
app
){
return
system
.
getResultFail
(
-
101
,
"未知渠道"
);
}
...
...
@@ -25,7 +25,7 @@ class NeedInfoService extends ServiceBase {
notes
:
obj
.
notes
,
channelUserName
:
user
.
channelUserName
,
auditStatus
:
"00"
,
createuser_id
:
user
.
i
d
,
createuser_id
:
user
.
channelUserI
d
,
itemCode
:
obj
.
itemCode
};
var
need
=
await
this
.
dao
.
create
(
needObj
);
...
...
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