|
@@ -11,14 +11,15 @@ class Set
|
|
{
|
|
{
|
|
$where['status'] = 1;
|
|
$where['status'] = 1;
|
|
|
|
|
|
- $data = Dever::db('goods/info')->select($where);
|
|
+ if ($type != 'factory_id') {
|
|
|
|
+ $where['price_type'] = '1,2,3';
|
|
|
|
+ }
|
|
|
|
+ $data = Dever::db('goods/info')->getData($where);
|
|
|
|
|
|
$result = array();
|
|
$result = array();
|
|
if ($data) {
|
|
if ($data) {
|
|
foreach ($data as $k => $v) {
|
|
foreach ($data as $k => $v) {
|
|
- if ($type != 'factory_id' && $v['price_type'] == 4) {
|
|
+
|
|
- continue;
|
|
|
|
- }
|
|
|
|
$sku = Dever::db('goods/info_sku')->select(array('info_id' => $v['id']));
|
|
$sku = Dever::db('goods/info_sku')->select(array('info_id' => $v['id']));
|
|
|
|
|
|
if ($sku) {
|
|
if ($sku) {
|