12345678910111213141516171819202122 |
- <?php
- declare (strict_types = 1);
- namespace app\report\model;
- use think\Model;
- /**
- * @mixin \think\Model
- */
- class OrderOutChild extends Model
- {
- // protected $append=["expire"];
- // public function GetExpireAttr($v,$row){
- // return date_diff(new \DateTime($row['sendtime']??date("Y-m-d H:i:s")),new \DateTime($row['addtime']))->days+1;
- // }
- public function WsmInfo(){
- return $this->belongsTo(Ware::class,"wsm_code","wsm_code")->bind(["contactor","contactor_name"]);
- }
-
-
- }
|