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
a73f91f5
Commit
a73f91f5
authored
Aug 24, 2021
by
luhongguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'colonel' of
https://git.yidian-inc.com:8021/bp/goods
into colonel
parents
ae3ee325
c37457ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
ColonelDistributorColonelApply.php
...models/marketing/mysql/ColonelDistributorColonelApply.php
+5
-0
ColonelService.php
application/services/marketing/ColonelService.php
+4
-1
TakePlaceService.php
application/services/marketing/TakePlaceService.php
+1
-0
No files found.
application/models/marketing/mysql/ColonelDistributorColonelApply.php
View file @
a73f91f5
...
...
@@ -32,6 +32,11 @@ class ColonelDistributorColonelApply extends MysqlBase
return
self
::
get
(
$column
,
$where
);
}
public
static
function
updateRecord
(
array
$columns
,
array
$where
)
{
return
self
::
update
(
$columns
,
$where
);
}
public
static
function
getPages
(
array
$where
=
[],
$column
=
'*'
,
int
$page
,
int
$pageSize
,
array
$orderBy
=
[
'colonel_apply_id'
=>
'DESC'
])
{
if
(
empty
(
$column
))
{
...
...
application/services/marketing/ColonelService.php
View file @
a73f91f5
...
...
@@ -45,6 +45,9 @@ class ColonelService
'area'
=>
$params
[
'area'
]
??
''
,
];
try
{
if
(
!
empty
(
$colonelData
[
'take_place_name'
]))
{
$colonelData
[
'take_place_name'
]
=
"【团长】
{
$colonelData
[
'take_place_name'
]
}
"
;
}
if
(
!
$applyId
=
ColonelDistributorColonelApply
::
insertRecord
(
$colonelData
))
{
throw
new
MarketingException
(
MarketingException
::
COLONEL_APPLY_FAILED
);
}
...
...
@@ -124,7 +127,7 @@ class ColonelService
try
{
ColonelDistributorColonelApply
::
beginTransaction
();
// 修改申请状态
$updateStatus
=
ColonelDistributorColonelApply
::
update
([
'audit_status'
=>
$auditStatus
],
[
'colonel_apply_id'
=>
$applyId
,
'audit_status'
=>
ColonelDistributorColonelApply
::
STATUS_AUDIT
]);
$updateStatus
=
ColonelDistributorColonelApply
::
update
Record
([
'audit_status'
=>
$auditStatus
],
[
'colonel_apply_id'
=>
$applyId
,
'audit_status'
=>
ColonelDistributorColonelApply
::
STATUS_AUDIT
]);
if
(
empty
(
$updateStatus
))
{
throw
new
MarketingException
(
MarketingException
::
COLONEL_AUDIT_STATUS_FAILED
);
}
...
...
application/services/marketing/TakePlaceService.php
View file @
a73f91f5
...
...
@@ -66,6 +66,7 @@ class TakePlaceService
$data
[
'life_account_id'
]
=
$params
[
'life_account_id'
]
??
$lifeAccountId
;
$data
[
'take_place_name'
]
=
$params
[
'name'
];
$data
[
'take_place_pic'
]
=
$params
[
'take_place_pic'
]
??
''
;
$data
[
'longitude'
]
=
$params
[
'longitude'
];
$data
[
'latitude'
]
=
$params
[
'latitude'
];
$data
[
'location'
]
=
$params
[
'location'
];
...
...
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