Commit 8c142cdc authored by zhuwei's avatar zhuwei

1

parent 78c96072
...@@ -27,15 +27,14 @@ class CostDetailValidate extends Validate { ...@@ -27,15 +27,14 @@ class CostDetailValidate extends Validate {
'setting_date.require' => '时间为必填字段', 'setting_date.require' => '时间为必填字段',
'district_id.require' => 'store_id为必填字段', 'district_id.require' => 'district_id为必填字段',
'district_id.number' => 'store_id只能为数字', 'district_id.number' => 'district_id只能为数字',
'district_id.gt' => 'store_id必须大于0', 'district_id.gt' => 'district_id必须大于0',
]; ];
protected $scene = [ protected $scene = [
'getCostInfo' => [ 'id', 'type' ], 'getCostInfo' => [ 'id', 'type' ],
'getMyCostDetailList' => [ 'store_id', 'setting_date' ],
'getAllStoreCost' => [ 'district_id' ], 'getAllStoreCost' => [ 'district_id' ],
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment