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
fe5e8019
Commit
fe5e8019
authored
Jun 23, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Plain Diff
pull order
parents
12c8c62e
b4867ca2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
0 deletions
+47
-0
center-order/app/base/api/impl/action/need.js
+3
-0
center-order/app/base/db/models/dbcorder/orderproduct.js
+1
-0
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
+0
-0
center-order/app/base/service/impl/dbneed/needinfoSve.js
+43
-0
No files found.
center-order/app/base/api/impl/action/need.js
View file @
fe5e8019
...
@@ -33,6 +33,9 @@ class IcAPI extends APIBase {
...
@@ -33,6 +33,9 @@ class IcAPI extends APIBase {
case
"submitNeed"
:
//提交需求
case
"submitNeed"
:
//提交需求
opResult
=
await
this
.
needinfoSve
.
submitNeed
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
needinfoSve
.
submitNeed
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
case
"submitNeedH5"
:
//工商H5提交需求
opResult
=
await
this
.
needinfoSve
.
submitNeedH5
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
case
"getItemByNeedNo"
:
//获取需求详情
case
"getItemByNeedNo"
:
//获取需求详情
opResult
=
await
this
.
needinfoSve
.
getItemByNeedNo
(
pobj
);
opResult
=
await
this
.
needinfoSve
.
getItemByNeedNo
(
pobj
);
break
;
break
;
...
...
center-order/app/base/db/models/dbcorder/orderproduct.js
View file @
fe5e8019
...
@@ -22,6 +22,7 @@ module.exports = (db, DataTypes) => {
...
@@ -22,6 +22,7 @@ module.exports = (db, DataTypes) => {
quantity
:
DataTypes
.
INTEGER
,
// 订单数量(即产品的倍数,默认值为1)
quantity
:
DataTypes
.
INTEGER
,
// 订单数量(即产品的倍数,默认值为1)
opPayType
:
DataTypes
.
STRING
(
10
),
// 操作付款类型:00: 创建订单, 10: 补单
opPayType
:
DataTypes
.
STRING
(
10
),
// 操作付款类型:00: 创建订单, 10: 补单
serviceItemSnapshot
:
DataTypes
.
TEXT
(
'long'
),
//产品快照
serviceItemSnapshot
:
DataTypes
.
TEXT
(
'long'
),
//产品快照
orderSnapshot
:
DataTypes
.
TEXT
(
'long'
)
//订单快照
},
{
},
{
paranoid
:
true
,
//假的删除
paranoid
:
true
,
//假的删除
underscored
:
true
,
underscored
:
true
,
...
...
center-order/app/base/service/impl/dbcorder/orderinfoSve.js
View file @
fe5e8019
This diff is collapsed.
Click to expand it.
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
fe5e8019
...
@@ -93,6 +93,49 @@ class NeedinfoService extends ServiceBase {
...
@@ -93,6 +93,49 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
();
}
}
/**
* 工商H5 免费咨询
* @param pobj
* @param actionBody
* @param req
* @returns {Promise<{msg: *, data: *, status: *}|{msg: *, data: (*|null), status: number}>}
*/
async
submitNeedH5
(
pobj
,
actionBody
,
req
)
{
var
needNo
=
await
this
.
getBusUid
(
"n"
);
var
channelNeedNo
=
await
this
.
getBusUid
(
"i"
);
if
(
!
actionBody
.
mobile
)
{
return
system
.
getResultFail
(
-
5002
,
"mobile不能为空"
);
}
if
(
!
actionBody
.
type
)
{
return
system
.
getResultFail
(
-
5003
,
"type不能为空"
);
}
var
ninfo
=
await
this
.
findOne
({
channelNeedNo
:
actionBody
.
intentionBizId
});
if
(
ninfo
)
{
return
system
.
getResultSuccess
();
}
var
nobj
=
{
uapp_id
:
pobj
.
appInfo
.
uapp_id
,
channelNeedNo
:
channelNeedNo
,
needNo
:
needNo
,
channelUserId
:
actionBody
.
mobile
,
publishName
:
actionBody
.
userName
,
publishContent
:
actionBody
.
description
,
publishMobile
:
actionBody
.
mobile
,
city
:
actionBody
.
area
,
typeCode
:
actionBody
.
type_code
,
typeName
:
actionBody
.
type_name
,
channelTypeCode
:
actionBody
.
channel_type_code
,
channelTypeName
:
actionBody
.
channel_type_name
,
status
:
"wts"
}
if
(
nobj
.
channelTypeCode
==
7
||
nobj
.
channelTypeCode
==
5
){
nobj
.
province
=
nobj
.
city
,
nobj
.
city
=
""
;
}
await
this
.
dao
.
create
(
nobj
);
return
system
.
getResultSuccess
();
}
async
needClose
(
pobj
,
actionBody
,
req
)
{
async
needClose
(
pobj
,
actionBody
,
req
)
{
if
(
!
actionBody
.
intentionBizId
)
{
if
(
!
actionBody
.
intentionBizId
)
{
return
system
.
getResultFail
(
-
5005
,
"intentionBizId不能为空"
);
return
system
.
getResultFail
(
-
5005
,
"intentionBizId不能为空"
);
...
...
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