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
31f9215e
Commit
31f9215e
authored
Feb 15, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5e8dc2c0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
compass_db_schema.txt
doc/DB/compass_db_schema.txt
+3
-1
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
GovernmentQrDat.inc
src/cn/compass/entity/GovernmentQrDat.inc
+6
-0
No files found.
doc/DB/compass_db_schema.txt
View file @
31f9215e
...
@@ -41,12 +41,14 @@ CREATE TABLE IF NOT EXISTS government_qr_dat(
...
@@ -41,12 +41,14 @@ CREATE TABLE IF NOT EXISTS government_qr_dat(
province varchar(64) NOT NULL,
province varchar(64) NOT NULL,
city varchar(64),
city varchar(64),
district varchar(64),
district varchar(64),
front_image text NOT NULL,
use_count int8 NOT NULL DEFAULT '0',
max_count int8 NOT NULL DEFAULT '0',
max_count int8 NOT NULL DEFAULT '0',
limit_date timestamp NOT NULL,
limit_date timestamp NOT NULL,
title text NOT NULL,
title text 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 government_qr_dat_id_idx ON government_qr_dat(id);
Create INDEX government_qr_dat_province_idx ON government_qr_dat(province);
Create INDEX government_qr_dat_province_idx ON government_qr_dat(province);
Create INDEX government_qr_dat_city_idx ON government_qr_dat(city);
Create INDEX government_qr_dat_city_idx ON government_qr_dat(city);
Create INDEX government_qr_dat_district_idx ON government_qr_dat(district);
Create INDEX government_qr_dat_district_idx ON government_qr_dat(district);
...
...
doc/DB/compass_db_schema.xlsx
View file @
31f9215e
No preview for this file type
src/cn/compass/entity/GovernmentQrDat.inc
View file @
31f9215e
...
@@ -12,6 +12,8 @@ class GovernmentQrDat extends CompassDynamicData
...
@@ -12,6 +12,8 @@ class GovernmentQrDat extends CompassDynamicData
var
$province
;
var
$province
;
var
$city
;
var
$city
;
var
$district
;
var
$district
;
var
$qr_image
;
var
$use_count
;
var
$max_count
;
var
$max_count
;
var
$limit_date
;
var
$limit_date
;
var
$title
;
var
$title
;
...
@@ -31,6 +33,8 @@ class GovernmentQrDat extends CompassDynamicData
...
@@ -31,6 +33,8 @@ class GovernmentQrDat extends CompassDynamicData
$this
->
province
=
$record
[
"province"
];
$this
->
province
=
$record
[
"province"
];
$this
->
city
=
$record
[
"city"
];
$this
->
city
=
$record
[
"city"
];
$this
->
district
=
$record
[
"district"
];
$this
->
district
=
$record
[
"district"
];
$this
->
qr_image
=
$record
[
"qr_image"
];
$this
->
use_count
=
$record
[
"use_count"
];
$this
->
max_count
=
$record
[
"max_count"
];
$this
->
max_count
=
$record
[
"max_count"
];
$this
->
limit_date
=
$record
[
"limit_date"
];
$this
->
limit_date
=
$record
[
"limit_date"
];
$this
->
title
=
$record
[
"title"
];
$this
->
title
=
$record
[
"title"
];
...
@@ -102,6 +106,8 @@ class GovernmentQrDat extends CompassDynamicData
...
@@ -102,6 +106,8 @@ class GovernmentQrDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"province"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"province"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"city"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"city"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"district"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"district"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"qr_image"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"use_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"max_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"max_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"limit_date"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"limit_date"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"title"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"title"
);
...
...
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