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
2bf175d3
Commit
2bf175d3
authored
Jan 08, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
93d25f12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
74 additions
and
74 deletions
+74
-74
xggsve-order/app/base/db/models/order/obusinessmen.js
+0
-0
xggsve-order/app/base/db/models/order/oorder.js
+18
-18
xggsve-order/app/base/db/models/order/oorderdeliver.js
+15
-15
xggsve-order/app/base/db/models/order/oorderinforeg.js
+20
-20
xggsve-order/app/base/db/models/order/oorderprocess.js
+6
-6
xggsve-order/app/base/db/models/order/osource.js
+3
-3
xggsve-order/app/base/db/models/product/oprocess.js
+3
-3
xggsve-order/app/base/db/models/product/oproduct.js
+4
-4
xggsve-order/app/base/db/models/product/oproductprocess.js
+5
-5
No files found.
xggsve-order/app/base/db/models/order/obusinessmen.js
View file @
2bf175d3
This diff is collapsed.
Click to expand it.
xggsve-order/app/base/db/models/order/oorder.js
View file @
2bf175d3
...
@@ -4,27 +4,27 @@
...
@@ -4,27 +4,27 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorder'
,
{
return
db
.
define
(
'oorder'
,
{
merchant
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'merchant_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'商户id, 为了兼容司机宝'
},
merchant
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'merchant_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'商户id, 为了兼容司机宝'
},
channelOrderNo
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单ID'
},
order_id
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单ID'
},
busi
T
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务类型 1个体户 2...暂不知道'
},
busi
_t
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务类型 1个体户 2...暂不知道'
},
busi
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_id'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'业务id'
},
busi
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'busi_id'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'业务id'
},
product
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'产品id'
},
product
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'产品id'
},
price
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'price'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'订单价格'
},
price
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'price'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'订单价格'
},
status
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'status'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'订单状态'
},
status
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'status'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'订单状态'
},
assign
T
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'assign_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'分配时间'
},
assign
_t
ime
:
{
type
:
DataTypes
.
DATE
,
field
:
'assign_time'
,
allowNull
:
true
,
defaultValue
:
null
,
comment
:
'分配时间'
},
assign
UserI
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'assign_user_id'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'分配人id'
},
assign
_user_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'assign_user_id'
,
allowNull
:
true
,
defaultValue
:
'0'
,
comment
:
'分配人id'
},
deliver
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商id common微服务下'
},
deliver
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商id common微服务下'
},
desc
:
{
type
:
DataTypes
.
STRING
,
field
:
'desc'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'订单信息'
},
desc
:
{
type
:
DataTypes
.
STRING
,
field
:
'desc'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'订单信息'
},
bd
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'bd_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员id'
},
bd
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'bd_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员id'
},
bd
P
ath
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'bd_path'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
},
bd
_p
ath
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'bd_path'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
},
service
I
tems
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_items'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务项json'
},
service
_i
tems
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_items'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务项json'
},
service
R
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务信息备注'
},
service
_r
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'service_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'服务信息备注'
},
source
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'source_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'来源id'
},
source
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'source_id'
,
allowNull
:
true
,
defaultValue
:
0
,
comment
:
'来源id'
},
source
N
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'source_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'来源订单号'
},
source
_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'source_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'来源订单号'
},
contact
M
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'contact_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
contact
_m
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'contact_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/oorderdeliver.js
View file @
2bf175d3
...
@@ -4,21 +4,21 @@
...
@@ -4,21 +4,21 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorderdeliver'
,
{
return
db
.
define
(
'oorderdeliver'
,
{
order
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
false
,
comment
:
'订单ID'
},
order
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'order_id'
,
allowNull
:
false
,
comment
:
'订单ID'
},
deliver
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
false
,
comment
:
'交付商id'
},
deliver
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
false
,
comment
:
'交付商id'
},
deliver
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_name'
,
allowNull
:
false
,
comment
:
'交付商名称'
},
deliver
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_name'
,
allowNull
:
false
,
comment
:
'交付商名称'
},
deliver
D
ivide
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_divide'
,
allowNull
:
false
,
comment
:
'订单分成'
},
deliver
_d
ivide
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_divide'
,
allowNull
:
false
,
comment
:
'订单分成'
},
audit
R
esult
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_result'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'审核结果'
},
audit
_r
esult
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_result'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'审核结果'
},
audit
R
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付审核备注'
},
audit
_r
emark
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_remark'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付审核备注'
},
deliver
MailA
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付地址'
},
deliver
_mail_a
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付地址'
},
deliver
MailT
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'收件人'
},
deliver
_mail_t
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'收件人'
},
deliver
MailM
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
deliver
_mail_m
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'联系电话'
},
deliver
C
ontent
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_content'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付内容'
},
deliver
_c
ontent
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_content'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付内容'
},
deliver
MailN
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号'
},
deliver
_mail_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号'
},
deliver
MailI
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
deliver
_mail_i
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/oorderinforeg.js
View file @
2bf175d3
...
@@ -4,29 +4,29 @@
...
@@ -4,29 +4,29 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorderinforeg'
,
{
return
db
.
define
(
'oorderinforeg'
,
{
legal
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人姓名'
},
legal
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'legal_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人姓名'
},
id
C
ard
:
{
type
:
DataTypes
.
STRING
,
field
:
'id_card'
,
allowNull
:
true
,
comment
:
'法人身份证'
},
id
_c
ard
:
{
type
:
DataTypes
.
STRING
,
field
:
'id_card'
,
allowNull
:
true
,
comment
:
'法人身份证'
},
legal
M
obile
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'legal_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人电话'
},
legal
_m
obile
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'legal_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'法人电话'
},
names
:
{
type
:
DataTypes
.
STRING
,
field
:
'names'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'个体户名称'
},
names
:
{
type
:
DataTypes
.
STRING
,
field
:
'names'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'个体户名称'
},
capital
:
{
type
:
DataTypes
.
STRING
,
field
:
'capital'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'注册资本'
},
capital
:
{
type
:
DataTypes
.
STRING
,
field
:
'capital'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'注册资本'
},
domicile
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地id'
},
domicile
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地id'
},
domicile
N
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地名称'
},
domicile
_n
ame
:
{
type
:
DataTypes
.
STRING
,
field
:
'domicile_name'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'注册地名称'
},
business
ScopeI
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围id'
},
business
_scope_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope_id'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围id'
},
business
T
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围'
},
business
_t
ype
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_type'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围'
},
business
S
cope
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围详情'
},
business
_s
cope
:
{
type
:
DataTypes
.
STRING
,
field
:
'business_scope'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'经营范围详情'
},
idcard
F
ront
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_front'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证正面照片'
},
idcard
_f
ront
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_front'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证正面照片'
},
idcard
B
ack
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_back'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证反面照片'
},
idcard
_b
ack
:
{
type
:
DataTypes
.
STRING
,
field
:
'idcard_back'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'身份证反面照片'
},
other
F
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'other_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'其他文件'
},
other
_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'other_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'其他文件'
},
notes
:
{
type
:
DataTypes
.
STRING
,
field
:
'notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'备注'
},
notes
:
{
type
:
DataTypes
.
STRING
,
field
:
'notes'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'备注'
},
guest
MailA
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'邮寄客户地址'
},
guest
_mail_a
ddr
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_addr'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'邮寄客户地址'
},
guest
MailT
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人'
},
guest
_mail_t
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_to'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人'
},
guest
MailM
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人电话'
},
guest
_mail_m
obile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_mobile'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户收件人电话'
},
guest
MailN
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户快递单号'
},
guest
_mail_n
o
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_no'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户快递单号'
},
guest
MailI
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
guest
_mail_i
mg
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_mail_img'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'交付商交付快递单号图片'
},
guest
AccpetF
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_accpet_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户验收文件'
},
guest
_accpet_f
ile
:
{
type
:
DataTypes
.
STRING
,
field
:
'guest_accpet_file'
,
allowNull
:
true
,
defaultValue
:
''
,
comment
:
'客户验收文件'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/oorderprocess.js
View file @
2bf175d3
...
@@ -4,20 +4,20 @@
...
@@ -4,20 +4,20 @@
*/
*/
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oorderprocess'
,
{
return
db
.
define
(
'oorderprocess'
,
{
product
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
product
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
order
I
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单号'
},
order
_i
d
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'order_id'
,
allowNull
:
true
,
comment
:
'订单号'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品名称'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品名称'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
true
,
comment
:
'状态'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
true
,
comment
:
'状态'
},
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
next
S
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
next
_s
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
sort
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
sort
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/order/osource.js
View file @
2bf175d3
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'osource'
,
{
return
db
.
define
(
'osource'
,
{
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'平台来源'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'平台来源'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/product/oprocess.js
View file @
2bf175d3
...
@@ -6,9 +6,9 @@ module.exports = function (db, DataTypes) {
...
@@ -6,9 +6,9 @@ module.exports = function (db, DataTypes) {
return
db
.
define
(
'oorderdeliver'
,
{
return
db
.
define
(
'oorderdeliver'
,
{
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程名称'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程名称'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程状态'
},
status
:
{
type
:
DataTypes
.
STRING
,
field
:
'status'
,
allowNull
:
false
,
defaultValue
:
''
,
comment
:
'流程状态'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
}
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/product/oproduct.js
View file @
2bf175d3
...
@@ -8,11 +8,11 @@ module.exports = function (db, DataTypes) {
...
@@ -8,11 +8,11 @@ module.exports = function (db, DataTypes) {
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
true
,
comment
:
'产品名称'
},
name
:
{
type
:
DataTypes
.
STRING
,
field
:
'name'
,
allowNull
:
true
,
comment
:
'产品名称'
},
desc
:
{
type
:
DataTypes
.
STRING
(
200
),
field
:
'desc'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品描述'
},
desc
:
{
type
:
DataTypes
.
STRING
(
200
),
field
:
'desc'
,
allowNull
:
false
,
defaultValue
:
""
,
comment
:
'产品描述'
},
pid
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'pid'
,
allowNull
:
true
,
comment
:
'父ID'
},
pid
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'pid'
,
allowNull
:
true
,
comment
:
'父ID'
},
is
C
hoose
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_choose'
,
allowNull
:
false
,
defaultValue
:
false
,
comment
:
'是否选择'
},
is
_c
hoose
:
{
type
:
DataTypes
.
BOOLEAN
,
field
:
'is_choose'
,
allowNull
:
false
,
defaultValue
:
false
,
comment
:
'是否选择'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1000
,
comment
:
'排序'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
xggsve-order/app/base/db/models/product/oproductprocess.js
View file @
2bf175d3
...
@@ -5,19 +5,19 @@
...
@@ -5,19 +5,19 @@
module
.
exports
=
function
(
db
,
DataTypes
)
{
module
.
exports
=
function
(
db
,
DataTypes
)
{
return
db
.
define
(
'oproductprocess'
,
{
return
db
.
define
(
'oproductprocess'
,
{
product
I
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
product
_i
d
:
{
type
:
DataTypes
.
STRING
,
field
:
'product_id'
,
allowNull
:
true
,
comment
:
'产品ID'
},
// name: { type: DataTypes.STRING(200), field: 'name', allowNull: false, defaultValue:"", comment:'产品名称'},
// name: { type: DataTypes.STRING(200), field: 'name', allowNull: false, defaultValue:"", comment:'产品名称'},
// status: {type: DataTypes.STRING, field: 'status', allowNull: true, comment:'状态' },
// status: {type: DataTypes.STRING, field: 'status', allowNull: true, comment:'状态' },
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
func
:
{
type
:
DataTypes
.
STRING
,
field
:
'func'
,
allowNull
:
false
,
comment
:
'状态执行方法名称'
},
next
S
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
next
_s
tatus
:
{
type
:
DataTypes
.
STRING
,
field
:
'next_status'
,
allowNull
:
true
,
comment
:
'下一个状态'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name1
:
{
type
:
DataTypes
.
STRING
,
field
:
'name1'
,
allowNull
:
true
,
comment
:
'状态1'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name2
:
{
type
:
DataTypes
.
STRING
,
field
:
'name2'
,
allowNull
:
true
,
comment
:
'状态2'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name3
:
{
type
:
DataTypes
.
STRING
,
field
:
'name3'
,
allowNull
:
true
,
comment
:
'状态3'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
name4
:
{
type
:
DataTypes
.
STRING
,
field
:
'name4'
,
allowNull
:
true
,
comment
:
'状态4'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1
,
comment
:
'排序'
},
sort
:
{
type
:
DataTypes
.
INTEGER
,
field
:
'sort'
,
allowNull
:
false
,
defaultValue
:
1
,
comment
:
'排序'
},
created
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
created
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
updated
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
},
deleted
A
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
deleted
_a
t
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
},
},
},
{
{
timestamps
:
true
,
timestamps
:
true
,
...
...
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