Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
6e38a0be
Commit
6e38a0be
authored
Jan 17, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5fa6a03c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
1 deletion
+82
-1
compass_db_init.sql
doc/DB/compass_db_init.sql
+2
-1
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
OrderStatus.inc
src/cn/compass/entity/definition/OrderStatus.inc
+79
-0
compass_include.inc
src/settings/compass_include.inc
+1
-0
No files found.
doc/DB/compass_db_init.sql
View file @
6e38a0be
...
@@ -5,4 +5,5 @@ insert into account_mst(login,password,name,contact,role,modules)values('admin12
...
@@ -5,4 +5,5 @@ insert into account_mst(login,password,name,contact,role,modules)values('admin12
insert
into
account_mst
(
login
,
password
,
name
,
contact
,
role
)
values
(
'admin123'
,
'admin123'
,
'系统管理员'
,
'123456'
,
'99'
)
insert
into
account_mst
(
login
,
password
,
name
,
contact
,
role
)
values
(
'admin123'
,
'admin123'
,
'系统管理员'
,
'123456'
,
'99'
)
##
系统常量表
##
##
系统常量表
##
insert
into
system_constant_dat
(
name
,
title
,
constant_value
)
values
(
'ORGNAZATION_RULE'
,
'机构认证说明'
,
'请输入文本'
)
insert
into
system_constant_dat
(
name
,
title
,
constant_value
)
values
(
'ORGNAZATION_RULE'
,
'机构认证说明'
,
'请输入文本'
);
insert
into
system_constant_dat
(
name
,
title
,
constant_value
)
values
(
'COURSE_RATE'
,
'利率'
,
'0.6'
);
doc/DB/compass_db_schema.xlsx
View file @
6e38a0be
No preview for this file type
src/cn/compass/entity/definition/OrderStatus.inc
0 → 100644
View file @
6e38a0be
<?php
/**
* 用户订单状态表
* $Id$
* @author zongbiao
* @package jp.fishow.entity.definition
*/
class
OrderStatus
{
public
$id
;
public
$name
;
public
$title
;
function
__construct
(
$record
)
{
$this
->
id
=
$record
[
"id"
];
$this
->
name
=
$record
[
"name"
];
$this
->
title
=
$record
[
"title"
];
}
/**
* 返回示例的列表
* @return array ImageType一覧
*/
public
static
function
getList
()
{
static
$result
;
if
((
!
is_array
(
$result
))
||
(
count
(
$result
)
<
1
))
{
$data
=
array
();
$tmp
=
array
(
"id"
=>
1
,
"name"
=>
"NEW"
,
"title"
=>
"订单生成"
);
array_push
(
$data
,
$tmp
);
$tmp
=
array
(
"id"
=>
2
,
"name"
=>
"SUCCESS"
,
"title"
=>
"支付成功"
);
array_push
(
$data
,
$tmp
);
$tmp
=
array
(
"id"
=>
3
,
"name"
=>
"CANCEL"
,
"title"
=>
"取消支付"
);
array_push
(
$data
,
$tmp
);
$tmp
=
array
(
"id"
=>
4
,
"name"
=>
"NG"
,
"title"
=>
"其他错误"
);
array_push
(
$data
,
$tmp
);
$result
=
array
();
foreach
(
$data
as
$row
)
{
$tmp2
=
new
OrderStatus
(
$row
);
array_push
(
$result
,
$tmp2
);
}
}
return
$result
;
}
/**
* 通过定义名称获取object
* @return OrderStatus 对应实例。没有的时候返回null。
*/
public
static
function
getByName
(
$name
)
{
$list
=
OrderStatus
::
getList
();
foreach
(
$list
as
$tmp
)
{
if
(
$tmp
->
name
==
$name
)
{
return
$tmp
;
}
}
return
null
;
}
/**
* 通过定义名称获取title
*/
public
static
function
getTitleByName
(
$name
)
{
$list
=
OrderStatus
::
getList
();
foreach
(
$list
as
$tmp
)
{
if
(
$tmp
->
name
==
$name
)
{
return
$tmp
->
title
;
}
}
return
null
;
}
}
\ No newline at end of file
src/settings/compass_include.inc
View file @
6e38a0be
...
@@ -52,6 +52,7 @@ require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/definition/AuthorityLevel.in
...
@@ -52,6 +52,7 @@ require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/definition/AuthorityLevel.in
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/definition/SystemFunction.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/definition/SystemFunction.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/definition/OrganizationStatus.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/definition/OrganizationStatus.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/definition/AcountModule.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/definition/AcountModule.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/definition/OrderStatus.inc"
);
// Action
// Action
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/action/TemplateAction.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/action/TemplateAction.inc"
);
...
...
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