|
@@ -9,47 +9,9 @@ class refill_query_errModel extends Model
|
|
|
parent::__construct('refill_query_err');
|
|
|
}
|
|
|
|
|
|
- public function getThirdProductList($condition, $pagesize = '', $field = '*', $order = '', $limit = '')
|
|
|
- {
|
|
|
- $list = $this->table('third_product')->field($field)->where($condition)->page($pagesize)->order($order)->limit($limit)->select();
|
|
|
- if (empty($list)) return [];
|
|
|
- return $list;
|
|
|
- }
|
|
|
-
|
|
|
- public function addThirdProduct($insert)
|
|
|
- {
|
|
|
- return $this->table('third_product')->insert($insert);
|
|
|
- }
|
|
|
-
|
|
|
- public function findThirdProduct($system_code)
|
|
|
- {
|
|
|
- return $this->table('third_product')->where(['system_code' => $system_code])->find();
|
|
|
- }
|
|
|
-
|
|
|
- public function editThirdProduct($system_code, $data){
|
|
|
- return $this->table('third_product')->where(['system_code' => $system_code])->update($data);
|
|
|
- }
|
|
|
-
|
|
|
- public function getProviderProductList($condition, $pagesize = '', $field = '*', $order = '', $limit = '')
|
|
|
- {
|
|
|
- $list = $this->table('third_proprice')->field($field)->where($condition)->page($pagesize)->order($order)->limit($limit)->select();
|
|
|
- if (empty($list)) return [];
|
|
|
- return $list;
|
|
|
- }
|
|
|
-
|
|
|
public function add($insert)
|
|
|
{
|
|
|
$insert['query_time'] = time();
|
|
|
return $this->insert($insert);
|
|
|
}
|
|
|
-
|
|
|
- public function edit_provider_product($system_code,$store_id,$goods_id,$data)
|
|
|
- {
|
|
|
- return $this->table('third_proprice')->where(['store_id' => $store_id,'goods_id' => $goods_id,'system_code' => $system_code])->update($data);
|
|
|
- }
|
|
|
-
|
|
|
- public function del_provider_product($system_code,$store_id,$goods_id)
|
|
|
- {
|
|
|
- return $this->table('third_proprice')->where(['store_id' => $store_id,'goods_id' => $goods_id,'system_code' => $system_code])->delete();
|
|
|
- }
|
|
|
}
|