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
ef054ea1
Commit
ef054ea1
authored
Mar 01, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
03f2f8af
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
17 deletions
+45
-17
compass_db_schema.txt
doc/DB/compass_db_schema.txt
+8
-4
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
DonationsEventDat.inc
src/cn/compass/entity/DonationsEventDat.inc
+18
-12
VolunteerEventDat.inc
src/cn/compass/entity/VolunteerEventDat.inc
+7
-1
AcountModule.inc
src/cn/compass/entity/definition/AcountModule.inc
+12
-0
No files found.
doc/DB/compass_db_schema.txt
View file @
ef054ea1
...
@@ -379,6 +379,8 @@ CREATE TABLE IF NOT EXISTS volunteer_event_dat(
...
@@ -379,6 +379,8 @@ CREATE TABLE IF NOT EXISTS volunteer_event_dat(
account_id int8 NOT NULL DEFAULT '0',
account_id int8 NOT NULL DEFAULT '0',
author varchar(64) NOT NULL,
author varchar(64) NOT NULL,
author_role int8 NOT NULL DEFAULT '0',
author_role int8 NOT NULL DEFAULT '0',
auditor_id int8,
auditor_name varchar(64),
school_no varchar(64) NOT NULL DEFAULT '0',
school_no varchar(64) NOT NULL DEFAULT '0',
original_source int8 NOT NULL DEFAULT '0',
original_source int8 NOT NULL DEFAULT '0',
province varchar(64),
province varchar(64),
...
@@ -540,10 +542,10 @@ Create INDEX user_media_dat_course_id_idx ON user_media_dat(course_id);
...
@@ -540,10 +542,10 @@ Create INDEX user_media_dat_course_id_idx ON user_media_dat(course_id);
Create INDEX user_media_dat_media_id_idx ON user_media_dat(media_id);
Create INDEX user_media_dat_media_id_idx ON user_media_dat(media_id);
##----donation_event_dat create
##----donation
s
_event_dat create
DROP TABLE IF EXISTS donation_event_dat;
DROP TABLE IF EXISTS donation
s
_event_dat;
CREATE TABLE IF NOT EXISTS donation_event_dat(
CREATE TABLE IF NOT EXISTS donation
s
_event_dat(
id bigint unsigned NOT NULL PRIMARY KEY auto_increment,
id bigint unsigned NOT NULL PRIMARY KEY auto_increment,
registration_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
registration_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
title text NOT NULL,
title text NOT NULL,
...
@@ -553,13 +555,15 @@ CREATE TABLE IF NOT EXISTS donation_event_dat(
...
@@ -553,13 +555,15 @@ CREATE TABLE IF NOT EXISTS donation_event_dat(
front_image text NOT NULL,
front_image text NOT NULL,
author varchar(64) NOT NULL,
author varchar(64) NOT NULL,
author_role int8 NOT NULL DEFAULT '0',
author_role int8 NOT NULL DEFAULT '0',
auditor_id int8,
auditor_name varchar(64),
max_money float(10,2) NOT NULL DEFAULT '0',
max_money float(10,2) NOT NULL DEFAULT '0',
money float(10,2) NOT NULL DEFAULT '0',
money float(10,2) NOT NULL DEFAULT '0',
status varchar(64) NOT NULL,
status varchar(64) NOT NULL,
delete_flg tinyint(1) NOT NULL DEFAULT '0'
delete_flg tinyint(1) NOT NULL DEFAULT '0'
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
) ENGINE = INNODB DEFAULT CHARSET=utf8mb4;
Create INDEX donation
_event_dat_id_idx ON donation
_event_dat(id);
Create INDEX donation
s_event_dat_id_idx ON donations
_event_dat(id);
##----user_donation_dat create
##----user_donation_dat create
...
...
doc/DB/compass_db_schema.xlsx
View file @
ef054ea1
No preview for this file type
src/cn/compass/entity/DonationsEventDat.inc
View file @
ef054ea1
<?php
<?php
/**
/**
* DonationsEventDat Entity
* DonationsEventDat Entity
* $Id: DonationsEventDat.inc,v 1.1 2020/2/2
7 14:40:01
Exp $
* $Id: DonationsEventDat.inc,v 1.1 2020/2/2
9 18:34:09
Exp $
* @author zb
* @author zb
* @package jp.compass.entity
* @package jp.compass.entity
* @access public
* @access public
...
@@ -15,6 +15,8 @@ class DonationsEventDat extends CompassDynamicData
...
@@ -15,6 +15,8 @@ class DonationsEventDat extends CompassDynamicData
var
$front_image
;
var
$front_image
;
var
$author
;
var
$author
;
var
$author_role
;
var
$author_role
;
var
$auditor_id
;
var
$auditor_name
;
var
$max_money
;
var
$max_money
;
var
$money
;
var
$money
;
var
$status
;
var
$status
;
...
@@ -30,17 +32,19 @@ class DonationsEventDat extends CompassDynamicData
...
@@ -30,17 +32,19 @@ class DonationsEventDat extends CompassDynamicData
{
{
parent
::
constructor
(
$record
);
parent
::
constructor
(
$record
);
$this
->
title
=
$record
[
"title"
];
$this
->
title
=
$record
[
"title"
];
$this
->
comment
=
$record
[
"comment"
];
$this
->
comment
=
$record
[
"comment"
];
$this
->
start_time
=
$record
[
"start_time"
];
$this
->
start_time
=
$record
[
"start_time"
];
$this
->
finish_time
=
$record
[
"finish_time"
];
$this
->
finish_time
=
$record
[
"finish_time"
];
$this
->
front_image
=
$record
[
"front_image"
];
$this
->
front_image
=
$record
[
"front_image"
];
$this
->
author
=
$record
[
"author"
];
$this
->
author
=
$record
[
"author"
];
$this
->
author_role
=
$record
[
"author_role"
];
$this
->
author_role
=
$record
[
"author_role"
];
$this
->
max_money
=
$record
[
"max_money"
];
$this
->
auditor_id
=
$record
[
"auditor_id"
];
$this
->
money
=
$record
[
"money"
];
$this
->
auditor_name
=
$record
[
"auditor_name"
];
$this
->
status
=
$record
[
"status"
];
$this
->
max_money
=
$record
[
"max_money"
];
$this
->
delete_flg
=
$record
[
"delete_flg"
];
$this
->
money
=
$record
[
"money"
];
$this
->
status
=
$record
[
"status"
];
$this
->
delete_flg
=
$record
[
"delete_flg"
];
}
}
/**
/**
...
@@ -111,6 +115,8 @@ class DonationsEventDat extends CompassDynamicData
...
@@ -111,6 +115,8 @@ class DonationsEventDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"front_image"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"front_image"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author_role"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author_role"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"auditor_id"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"auditor_name"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"max_money"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"max_money"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"money"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"money"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"status"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"status"
);
...
...
src/cn/compass/entity/VolunteerEventDat.inc
View file @
ef054ea1
<?php
<?php
/**
/**
* VolunteerEventDat Entity
* VolunteerEventDat Entity
* $Id: VolunteerEventDat.inc,v 1.1 2020/2/2
7 14:40:01
Exp $
* $Id: VolunteerEventDat.inc,v 1.1 2020/2/2
9 18:34:09
Exp $
* @author zb
* @author zb
* @package jp.compass.entity
* @package jp.compass.entity
* @access public
* @access public
...
@@ -20,6 +20,8 @@ class VolunteerEventDat extends CompassDynamicData
...
@@ -20,6 +20,8 @@ class VolunteerEventDat extends CompassDynamicData
var
$account_id
;
var
$account_id
;
var
$author
;
var
$author
;
var
$author_role
;
var
$author_role
;
var
$auditor_id
;
var
$auditor_name
;
var
$school_no
;
var
$school_no
;
var
$original_source
;
var
$original_source
;
var
$province
;
var
$province
;
...
@@ -58,6 +60,8 @@ class VolunteerEventDat extends CompassDynamicData
...
@@ -58,6 +60,8 @@ class VolunteerEventDat extends CompassDynamicData
$this
->
account_id
=
$record
[
"account_id"
];
$this
->
account_id
=
$record
[
"account_id"
];
$this
->
author
=
$record
[
"author"
];
$this
->
author
=
$record
[
"author"
];
$this
->
author_role
=
$record
[
"author_role"
];
$this
->
author_role
=
$record
[
"author_role"
];
$this
->
auditor_id
=
$record
[
"auditor_id"
];
$this
->
auditor_name
=
$record
[
"auditor_name"
];
$this
->
school_no
=
$record
[
"school_no"
];
$this
->
school_no
=
$record
[
"school_no"
];
$this
->
original_source
=
$record
[
"original_source"
];
$this
->
original_source
=
$record
[
"original_source"
];
$this
->
province
=
$record
[
"province"
];
$this
->
province
=
$record
[
"province"
];
...
@@ -148,6 +152,8 @@ class VolunteerEventDat extends CompassDynamicData
...
@@ -148,6 +152,8 @@ class VolunteerEventDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"account_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"account_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author_role"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"author_role"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"auditor_id"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"auditor_name"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"school_no"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"school_no"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"original_source"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"original_source"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"province"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"province"
);
...
...
src/cn/compass/entity/definition/AcountModule.inc
View file @
ef054ea1
...
@@ -64,6 +64,18 @@ class AcountModule
...
@@ -64,6 +64,18 @@ class AcountModule
$tmp
=
array
(
"id"
=>
13
,
"module"
=>
"机构用户管理"
);
$tmp
=
array
(
"id"
=>
13
,
"module"
=>
"机构用户管理"
);
array_push
(
$data
,
$tmp
);
array_push
(
$data
,
$tmp
);
$tmp
=
array
(
"id"
=>
14
,
"module"
=>
"志愿者活动发布"
);
array_push
(
$data
,
$tmp
);
$tmp
=
array
(
"id"
=>
15
,
"module"
=>
"志愿者活动审核"
);
array_push
(
$data
,
$tmp
);
$tmp
=
array
(
"id"
=>
16
,
"module"
=>
"证书管理"
);
array_push
(
$data
,
$tmp
);
$tmp
=
array
(
"id"
=>
17
,
"module"
=>
"证书申请"
);
array_push
(
$data
,
$tmp
);
$result
=
array
();
$result
=
array
();
foreach
(
$data
as
$row
)
{
foreach
(
$data
as
$row
)
{
$tmp2
=
new
AcountModule
(
$row
);
$tmp2
=
new
AcountModule
(
$row
);
...
...
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