客户转让
This commit is contained in:
@@ -392,7 +392,7 @@ class CustomerController
|
|||||||
*/
|
*/
|
||||||
public function cede(Request $request)
|
public function cede(Request $request)
|
||||||
{
|
{
|
||||||
$customerId = Util::getParam($request, 'customer_id');
|
$customerId = Util::getParam($request, 'customer_id',[]);
|
||||||
$userId = Util::getParam($request, 'user_id');
|
$userId = Util::getParam($request, 'user_id');
|
||||||
$selfId = $request->user['id'];
|
$selfId = $request->user['id'];
|
||||||
if (Util::isEmpty($userId)) {
|
if (Util::isEmpty($userId)) {
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\model;
|
||||||
|
|
||||||
|
|
||||||
|
use app\util\Util;
|
||||||
|
use config\constants\Constants;
|
||||||
|
use DateTimeInterface;
|
||||||
|
use Illuminate\Support\Carbon;
|
||||||
|
use support\Model;
|
||||||
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||||
|
|
||||||
|
class Corp extends Model
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The table associated with the model.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $table = 'corp';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The primary key associated with the table.
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $primaryKey = 'id';
|
||||||
|
|
||||||
|
//设置黑名单
|
||||||
|
protected $guarded = ['id','created_at','updated_at'];
|
||||||
|
|
||||||
|
// 指定日期字段存储格式为时间戳
|
||||||
|
protected $dateFormat = 'U';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates if the model should be timestamped.
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
public $timestamps = true;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user