TP5.1连续查询同一个表时,where条件会累计,有没有办法清除where条件

浏览:1112 发布日期:2020/07/11 分类:ThinkPHP5专区
protected $weav_db;
protected $weav_material_price_db;
/**
* test
*/
public function Index($value='')
{
//测试查询条件是否累计
$this->weav_material_price_db = Db::table('weav_material_price');
$data = $this->weav_material_price_db->where(['material_name'=>'9UM'])->value('material_price');
$data1 = $this->weav_material_price_db->where(['material_name'=>'DE75'])->value('material_price');
dump($data);
dump($data1);

}
最佳答案
评论( 相关
后面还有条评论,点击查看>>