新增快递100回调

This commit is contained in:
2023-04-13 16:07:56 +08:00
parent 81a47d72e0
commit d5cd0ac053
5 changed files with 157 additions and 15 deletions
+21
View File
@@ -67,4 +67,25 @@ class OrderProductLogistic extends Model
{
return self::where($params)->exists();
}
/**
* 新增
* @param array $data
* @return \Hyperf\Database\Model\Model|OrderProductLogistic
*/
public static function addOrderProductLogistic(array $data): \Hyperf\Database\Model\Model|OrderProductLogistic
{
return self::create($data);
}
/**
* 修改
* @param array $params
* @param array $data
* @return int
*/
public static function edit(array $params = [], array $data = []): int
{
return self::where($params)->update($data);
}
}