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
faaa185c
Commit
faaa185c
authored
Jan 15, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
27004092
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
222 deletions
+0
-222
MiniplayTrafficClickDat.inc
src/cn/compass/entity/MiniplayTrafficClickDat.inc
+0
-117
MiniplayTrafficClickLog.inc
src/cn/compass/entity/MiniplayTrafficClickLog.inc
+0
-105
No files found.
src/cn/compass/entity/MiniplayTrafficClickDat.inc
deleted
100644 → 0
View file @
27004092
<?php
/**
* MiniplayTrafficClickDat Entity
* $Id: MiniplayTrafficClickDat.inc,v 1.1 2020/1/15 11:01:52 Exp $
* @author lixq
* @package jp.compass.entity
* @access public
*/
class
MiniplayTrafficClickDat
extends
CompassDynamicData
{
var
$object_date
;
var
$channel_id
;
var
$click_count
;
var
$click_count_real
;
var
$unique_click_count
;
var
$unique_click_count_real
;
var
$history_unique_click_count
;
var
$history_unique_click_count_real
;
var
$delete_flg
;
/**
* 构造实现。miniplay_traffic_click_dat创建实例。
*
* @access public
* @param mixed miniplay_traffic_click_dat
*/
function
constructor
(
$record
)
{
parent
::
constructor
(
$record
);
$this
->
object_date
=
$record
[
"object_date"
];
$this
->
channel_id
=
$record
[
"channel_id"
];
$this
->
click_count
=
$record
[
"click_count"
];
$this
->
click_count_real
=
$record
[
"click_count_real"
];
$this
->
unique_click_count
=
$record
[
"unique_click_count"
];
$this
->
unique_click_count_real
=
$record
[
"unique_click_count_real"
];
$this
->
history_unique_click_count
=
$record
[
"history_unique_click_count"
];
$this
->
history_unique_click_count_real
=
$record
[
"history_unique_click_count_real"
];
$this
->
delete_flg
=
$record
[
"delete_flg"
];
}
/**
* 根据条件,获取数据列表。
* 条件与DBManager的doSelect相同。
* @access public
* @static
* @param array 检索条件
* @return array Entity的队列
*/
public
static
function
getList
(
$w_param
=
null
,
$orderkey
=
null
,
$direction
=
"ASC"
,
$offset
=
null
,
$limit
=
null
)
{
if
(
$w_param
==
null
)
{
$w_param
=
array
();
$w_param
[
"delete_flg"
]
=
"false"
;
}
return
CompassDBHandler
::
getList
(
"MiniplayTrafficClickDat"
,
"miniplay_traffic_click_dat"
,
$w_param
,
$orderkey
,
$direction
,
$offset
,
$limit
);
}
/**
* 根据条件,获取数据列表的件数。
* 条件与DBManager的doSelect相同。
* @access public
* @static
* @param array 检索条件
* @return array Entity的队列
*/
public
static
function
getListCount
(
$w_param
=
null
)
{
if
(
$w_param
==
null
)
{
$w_param
=
array
();
$w_param
[
"delete_flg"
]
=
"false"
;
}
$db
=
CompassDBManager
::
getInstance
();
$result
=
$db
->
doSelect
(
"miniplay_traffic_click_dat"
,
$w_param
,
null
,
null
,
null
,
null
,
"count(*) as count"
);
return
$result
[
0
][
"count"
];
}
/**
* 获得此类指定ID的实例。
*/
public
static
function
getById
(
$id
)
{
// delete_flg
$param
=
array
();
$param
[
"delete_flg"
]
=
false
;
return
CompassDBHandler
::
getById
(
"MiniplayTrafficClickDat"
,
"miniplay_traffic_click_dat"
,
$id
,
$param
);
}
// -- 这里开始Dynamic ---
/**
* 将此实例写入DB。
* DynamicData共用的保存方法。
* @access public
* @return int 写入实例的ID
*/
public
function
save
()
{
$v_param
=
array
();
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"object_date"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"channel_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"click_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"click_count_real"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"unique_click_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"unique_click_count_real"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"history_unique_click_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"history_unique_click_count_real"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"delete_flg"
);
// 保存
parent
::
_save
(
"miniplay_traffic_click_dat"
,
$v_param
);
}
}
\ No newline at end of file
src/cn/compass/entity/MiniplayTrafficClickLog.inc
deleted
100644 → 0
View file @
27004092
<?php
/**
* MiniplayTrafficClickLog Entity
* $Id: MiniplayTrafficClickLog.inc,v 1.1 2020/1/15 11:01:52 Exp $
* @author lixq
* @package jp.compass.entity
* @access public
*/
class
MiniplayTrafficClickLog
extends
CompassDynamicData
{
var
$channel_id
;
var
$openid
;
var
$adid
;
var
$is_ok
;
var
$delete_flg
;
/**
* 构造实现。miniplay_traffic_click_log创建实例。
*
* @access public
* @param mixed miniplay_traffic_click_log
*/
function
constructor
(
$record
)
{
parent
::
constructor
(
$record
);
$this
->
channel_id
=
$record
[
"channel_id"
];
$this
->
openid
=
$record
[
"openid"
];
$this
->
adid
=
$record
[
"adid"
];
$this
->
is_ok
=
$record
[
"is_ok"
];
$this
->
delete_flg
=
$record
[
"delete_flg"
];
}
/**
* 根据条件,获取数据列表。
* 条件与DBManager的doSelect相同。
* @access public
* @static
* @param array 检索条件
* @return array Entity的队列
*/
public
static
function
getList
(
$w_param
=
null
,
$orderkey
=
null
,
$direction
=
"ASC"
,
$offset
=
null
,
$limit
=
null
)
{
if
(
$w_param
==
null
)
{
$w_param
=
array
();
$w_param
[
"delete_flg"
]
=
"false"
;
}
return
CompassDBHandler
::
getList
(
"MiniplayTrafficClickLog"
,
"miniplay_traffic_click_log"
,
$w_param
,
$orderkey
,
$direction
,
$offset
,
$limit
);
}
/**
* 根据条件,获取数据列表的件数。
* 条件与DBManager的doSelect相同。
* @access public
* @static
* @param array 检索条件
* @return array Entity的队列
*/
public
static
function
getListCount
(
$w_param
=
null
)
{
if
(
$w_param
==
null
)
{
$w_param
=
array
();
$w_param
[
"delete_flg"
]
=
"false"
;
}
$db
=
CompassDBManager
::
getInstance
();
$result
=
$db
->
doSelect
(
"miniplay_traffic_click_log"
,
$w_param
,
null
,
null
,
null
,
null
,
"count(*) as count"
);
return
$result
[
0
][
"count"
];
}
/**
* 获得此类指定ID的实例。
*/
public
static
function
getById
(
$id
)
{
// delete_flg
$param
=
array
();
$param
[
"delete_flg"
]
=
false
;
return
CompassDBHandler
::
getById
(
"MiniplayTrafficClickLog"
,
"miniplay_traffic_click_log"
,
$id
,
$param
);
}
// -- 这里开始Dynamic ---
/**
* 将此实例写入DB。
* DynamicData共用的保存方法。
* @access public
* @return int 写入实例的ID
*/
public
function
save
()
{
$v_param
=
array
();
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"channel_id"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"openid"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"adid"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"is_ok"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"delete_flg"
);
// 保存
parent
::
_save
(
"miniplay_traffic_click_log"
,
$v_param
);
}
}
\ No newline at end of file
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