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
3aa9ffa3
Commit
3aa9ffa3
authored
Jan 12, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wdy
parent
f93e5843
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
igirl-channel/app/base/db/models/dbneed/needinfo.js
+1
-0
igirl-channel/app/base/service/impl/dbneed/needinfoSve.js
+15
-14
No files found.
igirl-channel/app/base/db/models/dbneed/needinfo.js
View file @
3aa9ffa3
...
@@ -7,6 +7,7 @@ module.exports = (db, DataTypes) => {
...
@@ -7,6 +7,7 @@ module.exports = (db, DataTypes) => {
needNo
:
DataTypes
.
STRING
(
64
),
//需求单号
needNo
:
DataTypes
.
STRING
(
64
),
//需求单号
needDesc
:
DataTypes
.
STRING
(
255
),
//
needDesc
:
DataTypes
.
STRING
(
255
),
//
needUserMoblie
:
DataTypes
.
STRING
(
20
),
//
needUserMoblie
:
DataTypes
.
STRING
(
20
),
//
needUserName
:
DataTypes
.
STRING
(
20
),
//
notes
:
DataTypes
.
STRING
(
255
),
//
notes
:
DataTypes
.
STRING
(
255
),
//
opNotes
:
DataTypes
.
STRING
(
500
),
//
opNotes
:
DataTypes
.
STRING
(
500
),
//
channelUserName
:
DataTypes
.
STRING
(
50
),
// 渠道用户登录名
channelUserName
:
DataTypes
.
STRING
(
50
),
// 渠道用户登录名
...
...
igirl-channel/app/base/service/impl/dbneed/needinfoSve.js
View file @
3aa9ffa3
...
@@ -7,29 +7,30 @@ class NeedInfoService extends ServiceBase {
...
@@ -7,29 +7,30 @@ class NeedInfoService extends ServiceBase {
super
(
"dbneed"
,
ServiceBase
.
getDaoName
(
NeedInfoService
));
super
(
"dbneed"
,
ServiceBase
.
getDaoName
(
NeedInfoService
));
}
}
async
subNeed
(
obj
,
req
)
{
async
subNeed
(
obj
,
req
)
{
var
user
=
obj
.
channelUser
;
var
user
=
obj
.
channelUser
;
var
app
=
req
.
app
;
var
app
=
req
.
app
;
// if(!user){
// if(!user){
// return system.getResultFail(-100, "未知用户");
// return system.getResultFail(-100, "未知用户");
// }
// }
if
(
!
app
)
{
if
(
!
app
)
{
return
system
.
getResultFail
(
-
101
,
"未知渠道"
);
return
system
.
getResultFail
(
-
101
,
"未知渠道"
);
}
}
var
needNo
=
await
this
.
getBusUid
(
"ni"
);
var
needNo
=
await
this
.
getBusUid
(
"ni"
);
var
needObj
=
{
var
needObj
=
{
app_id
:
app
.
id
,
app_id
:
app
.
id
,
needNo
:
needNo
,
needNo
:
needNo
,
needDesc
:
obj
.
needDesc
,
needDesc
:
obj
.
needDesc
,
needUserMoblie
:
obj
.
needUserMoblie
,
needUserMoblie
:
obj
.
needUserMoblie
,
notes
:
obj
.
notes
,
needUserName
:
obj
.
needUserName
,
channelUserName
:
user
.
channelUserName
,
notes
:
obj
.
notes
,
auditStatus
:
"00"
,
channelUserName
:
user
.
channelUserName
,
createuser_id
:
user
.
channelUserId
,
auditStatus
:
"00"
,
itemCode
:
obj
.
itemCode
createuser_id
:
user
.
channelUserId
,
itemCode
:
obj
.
itemCode
};
};
var
need
=
await
this
.
dao
.
create
(
needObj
);
var
need
=
await
this
.
dao
.
create
(
needObj
);
return
system
.
getResultSuccess
(
need
);
return
system
.
getResultSuccess
(
need
);
}
}
}
}
module
.
exports
=
NeedInfoService
;
module
.
exports
=
NeedInfoService
;
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