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
517fdd1c
Commit
517fdd1c
authored
Jul 17, 2021
by
jianghaiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:set
parent
89306b3c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
2 deletions
+36
-2
GoodsAddValidate.php
application/library/Validate/GoodsAddValidate.php
+2
-2
Distributor.php
application/modules/Marketing/controllers/Distributor.php
+8
-0
Marketing.php
application/modules/Marketing/controllers/Marketing.php
+7
-0
DistributorService.php
application/services/marketing/DistributorService.php
+11
-0
MarketingService.php
application/services/marketing/MarketingService.php
+8
-0
No files found.
application/library/Validate/GoodsAddValidate.php
View file @
517fdd1c
...
@@ -22,7 +22,7 @@ class GoodsAddValidate extends BaseValidate
...
@@ -22,7 +22,7 @@ class GoodsAddValidate extends BaseValidate
'sub_shop_ids'
=>
'require'
,
'sub_shop_ids'
=>
'require'
,
'rule_refund'
=>
'require'
,
'rule_refund'
=>
'require'
,
'introduce'
=>
'length:0,200'
,
'introduce'
=>
'length:0,200'
,
'inventory
_add
'
=>
'require'
,
'inventory'
=>
'require'
,
];
];
protected
$message
=
[
protected
$message
=
[
...
@@ -36,6 +36,6 @@ class GoodsAddValidate extends BaseValidate
...
@@ -36,6 +36,6 @@ class GoodsAddValidate extends BaseValidate
'sub_shop_ids'
=>
'门店id不能为空'
,
'sub_shop_ids'
=>
'门店id不能为空'
,
'rule_refund'
=>
'请选择退款规则'
,
'rule_refund'
=>
'请选择退款规则'
,
'introduce'
=>
'商品介绍内容不能过长'
,
'introduce'
=>
'商品介绍内容不能过长'
,
'inventory
_add
'
=>
'请填写库存'
,
'inventory'
=>
'请填写库存'
,
];
];
}
}
\ No newline at end of file
application/modules/Marketing/controllers/Distributor.php
View file @
517fdd1c
...
@@ -9,6 +9,14 @@ use \Validate\CheckIsDistributorValidate;
...
@@ -9,6 +9,14 @@ use \Validate\CheckIsDistributorValidate;
class
DistributorController
extends
Base
class
DistributorController
extends
Base
{
{
public
function
get_distributorAction
()
{
$params
=
$this
->
params
;
$distributionList
=
DistributorService
::
getDistributorList
(
$params
);
$this
->
success
([
'result'
=>
$distributionList
]);
}
public
function
importAction
()
public
function
importAction
()
{
{
$distributionList
=
DistributorService
::
import
();
$distributionList
=
DistributorService
::
import
();
...
...
application/modules/Marketing/controllers/Marketing.php
View file @
517fdd1c
...
@@ -9,6 +9,13 @@ use \Validate\MarketingGoodsRateValidate;
...
@@ -9,6 +9,13 @@ use \Validate\MarketingGoodsRateValidate;
class
MarketingController
extends
Base
class
MarketingController
extends
Base
{
{
public
function
get_marketing_listAction
()
{
$params
=
$this
->
params
;
$list
=
MarketingService
::
getMarketingList
(
$params
);
$distributionList
[
'result'
]
=
$list
;
$this
->
success
(
$distributionList
);
}
/**
/**
* 营销列表
* 营销列表
* 后台管理
* 后台管理
...
...
application/services/marketing/DistributorService.php
View file @
517fdd1c
...
@@ -428,6 +428,17 @@ class DistributorService
...
@@ -428,6 +428,17 @@ class DistributorService
return
$info
;
return
$info
;
}
}
public
static
function
getDistributorList
(
$params
)
{
$where
[
'user_id'
]
=
!
empty
(
$params
[
'user_id'
])
?
$params
[
'user_id'
]
:
''
;
$info
=
Distributor
::
getRecords
(
$where
);
return
$info
;
}
/**
/**
* 更新数据
* 更新数据
*
*
...
...
application/services/marketing/MarketingService.php
View file @
517fdd1c
...
@@ -378,6 +378,14 @@ class MarketingService
...
@@ -378,6 +378,14 @@ class MarketingService
return
$info
;
return
$info
;
}
}
public
static
function
getMarketingList
(
$params
)
{
$where
[
'marketing_id'
]
=
!
empty
(
$params
[
'marketing_id'
])
?
$params
[
'marketing_id'
]
:
''
;
$marketing_list
=
Marketing
::
getMarketingList
(
$where
);
return
$marketing_list
;
}
...
...
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