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
5e522afa
Commit
5e522afa
authored
Aug 04, 2021
by
suntengda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update 供应商&&自提点列表计算总数
parent
8917c141
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
66 deletions
+2
-66
TakePlace.php
application/models/marketing/mysql/TakePlace.php
+1
-1
Spell.php
application/modules/Marketing/controllers/Spell.php
+0
-64
OtaService.php
application/services/goods/OtaService.php
+1
-1
No files found.
application/models/marketing/mysql/TakePlace.php
View file @
5e522afa
...
@@ -43,8 +43,8 @@ class TakePlace extends MysqlBase
...
@@ -43,8 +43,8 @@ class TakePlace extends MysqlBase
$where
[
'ORDER'
]
=
[
'take_place_id'
=>
'DESC'
];
$where
[
'ORDER'
]
=
[
'take_place_id'
=>
'DESC'
];
$where
[
'LIMIT'
]
=
[
$offset
,
$limit
];
$where
[
'LIMIT'
]
=
[
$offset
,
$limit
];
// $e = TakePlace::debug();
$res
[
'list'
]
=
self
::
select
(
'*'
,
$where
);
$res
[
'list'
]
=
self
::
select
(
'*'
,
$where
);
unset
(
$where
[
'ORDER'
],
$where
[
'LIMIT'
]);
$res
[
'total'
]
=
self
::
count
(
'*'
,
$where
);
$res
[
'total'
]
=
self
::
count
(
'*'
,
$where
);
return
$res
;
return
$res
;
...
...
application/modules/Marketing/controllers/Spell.php
deleted
100644 → 0
View file @
8917c141
<?php
/**
* Author : Tengda
* Date : 2021/7/29
* Time : 17:59 下午
*/
use
App\Base\Base
;
//use App\Services\marketing\SpellService;
//use \Validate\Spell\detailValidate;
class
SpellController
extends
Base
{
public
function
detailAction
()
{
// (new detailValidate())->validate();
//
// $name = $this->params['name'] ?? '';
// $printerSn = $this->params['printer_sn'] ?? '';
// $printerKey = $this->params['printer_key'] ?? '';
// $offset = $this->params['offset'] ?? 0;
// $limit = $this->params['limit'] ?? 20;
// $res = TakePlaceService::list($name,$printerSn,$printerKey,$offset,$limit);
$data
=
[
'detail'
=>
[],
];
$this
->
success
([
'data'
=>
$data
]);
}
public
function
listAction
()
{
$data
=
[
'list'
=>
[
[
'uid'
=>
123
,
'username'
=>
'aaa'
,
'avator'
=>
'aaaaaa.jpg'
,
'id'
=>
1
,
'name'
=>
'一起拼一定赢'
,
'desc'
=>
'吃喝玩乐'
,
'create_time'
=>
'2021-07-29 20:03:08'
,
'sold_num'
=>
123
,
'min_price'
=>
15
,
'max_price'
=>
89
,
],
[
'uid'
=>
234
,
'username'
=>
'bbbbb'
,
'avator'
=>
'aaaaaa1.jpg'
,
'id'
=>
1
,
'name'
=>
'俺是打款就'
,
'desc'
=>
'吃喝玩乐'
,
'create_time'
=>
'2021-07-29 20:03:08'
,
'sold_num'
=>
345
,
'min_price'
=>
13
,
'max_price'
=>
99
,
]
],
'total'
=>
2
];
$this
->
success
([
'data'
=>
$data
]);
}
}
\ No newline at end of file
application/services/goods/OtaService.php
View file @
5e522afa
...
@@ -27,8 +27,8 @@ class OtaService
...
@@ -27,8 +27,8 @@ class OtaService
$where
[
'ORDER'
]
=
[
'ota_id'
=>
'DESC'
];
$where
[
'ORDER'
]
=
[
'ota_id'
=>
'DESC'
];
$where
[
'LIMIT'
]
=
[
$offset
,
$limit
];
$where
[
'LIMIT'
]
=
[
$offset
,
$limit
];
// $e = Ota::debug();
$res
[
'list'
]
=
Ota
::
select
(
self
::
COLUMNS
,
$where
);
$res
[
'list'
]
=
Ota
::
select
(
self
::
COLUMNS
,
$where
);
unset
(
$where
[
'ORDER'
],
$where
[
'LIMIT'
]);
$res
[
'total'
]
=
Ota
::
count
(
'*'
,
$where
);
$res
[
'total'
]
=
Ota
::
count
(
'*'
,
$where
);
return
$res
;
return
$res
;
...
...
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