Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
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
bp
goods
Commits
0aba4b7a
Commit
0aba4b7a
authored
Aug 24, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 临时修改
parent
78a355b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
53 deletions
+2
-53
ColonelDistributorColonel.php
...tion/models/marketing/mysql/ColonelDistributorColonel.php
+2
-2
PindanActivityInfo.php
application/models/marketing/mysql/PindanActivityInfo.php
+0
-51
No files found.
application/models/marketing/mysql/
PindanActivity
Colonel.php
→
application/models/marketing/mysql/
ColonelDistributor
Colonel.php
View file @
0aba4b7a
...
...
@@ -9,9 +9,9 @@ namespace App\Models\marketing\mysql;
use
Api\PhpUtils\Mysql\MysqlBase
;
class
PindanActivity
Colonel
extends
MysqlBase
class
ColonelDistributor
Colonel
extends
MysqlBase
{
const
TABLE_NAME
=
'
pindan_activity
_colonel'
;
const
TABLE_NAME
=
'
colonel_distributor
_colonel'
;
const
CONFIG_INDEX
=
'marketing'
;
const
PRIMARY_KEY
=
'colonel_id'
;
...
...
application/models/marketing/mysql/PindanActivityInfo.php
deleted
100644 → 0
View file @
78a355b3
<?php
namespace
App\Models\marketing\mysql
;
use
Api\PhpUtils\Mysql\MysqlBase
;
class
PindanActivityInfo
extends
MysqlBase
{
const
TABLE_NAME
=
'pindan_activity_info'
;
const
CONFIG_INDEX
=
'marketing'
;
const
PRIMARY_KEY
=
'pindan_activity_id'
;
public
static
function
getRecord
(
$where
,
$columns
=
[],
$options
=
[])
{
if
(
empty
(
$columns
))
{
$columns
=
'*'
;
}
return
self
::
get
(
$columns
,
$where
,
$options
);
}
public
static
function
getRecordMaster
(
$where
,
$columns
=
[],
$options
=
[])
{
if
(
empty
(
$columns
))
{
$columns
=
'*'
;
}
return
self
::
selectMaster
(
$columns
,
$where
,
$options
);
}
public
static
function
insertRecord
(
$columns
,
$options
=
[])
{
return
self
::
insert
(
$columns
,
$options
);
}
public
static
function
updateRecord
(
$columns
,
$where
)
{
return
self
::
update
(
$columns
,
$where
);
}
public
static
function
save
(
$data
,
$where
=
[],
$options
=
[])
{
if
(
empty
(
$where
))
{
return
self
::
insert
(
$data
,
$options
);
}
return
self
::
update
(
$data
,
$where
);
}
public
static
function
deleteRecord
(
$where
)
{
return
self
::
delete
(
$where
);
}
}
\ 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