退款公用接口

This commit is contained in:
“wanyongkang”
2021-03-06 13:25:34 +08:00
parent 825b29f28c
commit 6022ad093f
2 changed files with 6 additions and 1 deletions

View File

@@ -25,4 +25,9 @@ class ProductOrder extends Model
{
return $this->field($fields)->where($where)->where($where2)->order($order)->limit($limit)->fetchAll();
}
public function getOpenCount($where = [],$where2 = '')
{
return $this->field('count(1) as count')->where($where)->where($where2)->fetch();
}
}