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
c316056f
Commit
c316056f
authored
Jan 08, 2020
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
59b77ba8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
xggsve-order/app/base/db/models/order/osource.js
+1
-1
xggsve-order/app/base/service/impl/order/oorderSve.js
+38
-1
No files found.
xggsve-order/app/base/db/models/order/osource.js
View file @
c316056f
...
...
@@ -4,7 +4,7 @@
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'osource'
,
{
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'
merchant_id
'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'平台来源'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'
name
'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'平台来源'
},
createdAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updatedAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deletedAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
...
...
xggsve-order/app/base/service/impl/order/oorderSve.js
View file @
c316056f
const
system
=
require
(
"../../../system"
);
const
ServiceBase
=
require
(
"../../sve.base"
)
/**
* 订单产品表
*/
...
...
@@ -7,8 +8,43 @@ class OorderService extends ServiceBase {
constructor
()
{
super
(
"order"
,
ServiceBase
.
getDaoName
(
OorderService
));
}
/**
* 新增渠道订单
* @returns {Promise<void>}
*/
async
addSourceOrder
(
params
)
{
// 整理参数
let
productId
=
Number
(
params
.
productId
);
let
sourceId
=
Number
(
params
.
sourceId
);
// 查询产品订单状态
// 合并订单状态
// 开启事务
// 插入订单数据
// 插入订单状态数据
}
/**
* 新建进度
* @param params
* @returns {Promise<void>}
*/
async
createProcess
(
params
)
{
// 整理参数 变成这个格式,id, status, params
// 查询订单
// 找出订单下个状态,于参数订单状态匹配
// 调用状态func(order, nextObj, params)
}
}
module
.
exports
=
OorderService
;
\ No newline at end of file
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