1234567891011121314151617 |
- <?php
- declare (strict_types = 1);
- namespace app\report\model;
- use think\Model;
- /**
- * @mixin \think\Model
- */
- class Sale extends Model
- {
- protected $append=["addr_num"];
- public function GetAddrNumAttr($v,$row){
- return (new OrderAddr())->where(["orderCode"=>$row["orderCode"],"is_del"=>0])->sum("receipt_quantity");
- }
- }
|