GoodsService.php 290 B

12345678910111213141516
  1. <?php
  2. namespace app\admin\service\statistics;
  3. use app\model\Goods;
  4. use app\model\GoodsRunning;
  5. class GoodsService
  6. {
  7. public static function getGoods()
  8. {
  9. $data['storageWarning'] = GoodsRunning::where("goods_running_storage",'<=',10)->count();
  10. return $data;
  11. }
  12. }