Commit ef054ea1 by biao

11

parent 03f2f8af
...@@ -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 ##----donations_event_dat create
DROP TABLE IF EXISTS donation_event_dat; DROP TABLE IF EXISTS donations_event_dat;
CREATE TABLE IF NOT EXISTS donation_event_dat( CREATE TABLE IF NOT EXISTS donations_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 donations_event_dat_id_idx ON donations_event_dat(id);
##----user_donation_dat create ##----user_donation_dat create
......
<?php <?php
/** /**
* DonationsEventDat Entity * DonationsEventDat Entity
* $Id: DonationsEventDat.inc,v 1.1 2020/2/27 14:40:01 Exp $ * $Id: DonationsEventDat.inc,v 1.1 2020/2/29 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");
......
<?php <?php
/** /**
* VolunteerEventDat Entity * VolunteerEventDat Entity
* $Id: VolunteerEventDat.inc,v 1.1 2020/2/27 14:40:01 Exp $ * $Id: VolunteerEventDat.inc,v 1.1 2020/2/29 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");
......
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment