|
|
@@ -27,7 +27,7 @@ class OwnerStoreOutFeeDetail extends Model
|
|
|
'barcode',//商品条码
|
|
|
'work_name',//作业名称
|
|
|
'fee',//费用
|
|
|
- ];
|
|
|
+ ];
|
|
|
|
|
|
public function ownerFeeDetail(): BelongsTo
|
|
|
{
|
|
|
@@ -48,4 +48,22 @@ class OwnerStoreOutFeeDetail extends Model
|
|
|
{
|
|
|
return $this->belongsTo(Unit::class);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据参数条件删除
|
|
|
+ * @param $data
|
|
|
+ */
|
|
|
+ public static function uDelete($data)
|
|
|
+ {
|
|
|
+ self::query()
|
|
|
+ ->where('owner_fee_detail_id',$data['owner_fee_detail_id'])
|
|
|
+ ->where('commodity_id',$data['commodity_id'])
|
|
|
+ ->where('owner_id',$data['owner_id'])
|
|
|
+ ->where('source_bill',$data['source_bill'])
|
|
|
+ ->where('unit_id',$data['unit_id'])
|
|
|
+ ->where('sku',$data['sku'])
|
|
|
+ ->where('barcode',$data['barcode'])
|
|
|
+ ->where('work_name',$data['work_name'])
|
|
|
+ ->delete();
|
|
|
+ }
|
|
|
}
|