Commit 821ac03b authored by 张晓林's avatar 张晓林

用过列表修改

parent fa351147
......@@ -161,26 +161,35 @@ class ShopUserListController extends BaseController
return $result;
}
/**
* @OA\POST(
* path="/backend/web/v1/shopuser/shop-user-lists/user-update",
* tags={"用户&员工接口"},
* summary="用户信息更新(张晓林)",
* description="用户信息更新",
* @OA\Parameter(name="USERGUID",description="用户GUID",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="NAME",description="昵称",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="CODE",description="工号/手机号",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="CONSUMPTION_POINT",description="积分",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="MEMBERGRADEGUID",description="所属用户组",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="MOBILE_PHONE",description="手机",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="CONTACT_SEX",description="性别",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="CONTACTBIRTH_DATE",description="出生日期",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="EMPLOYEE_CODE",description="员工工号",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="EMPLOYEE_GUID",description="门店代码",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="MEMBER_NO",description="会员卡号",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="LABEL",description="会员标签",in="query",@OA\Schema(type="string")),
* @OA\Parameter(name="IS_HS_DISTRIBUTOR_PARENT",description="是否为惠氏分销商上级",in="query",@OA\Schema(type="string")),
* @OA\Response(response="200",description="操作成功"),
* security={{"Authorization": {}}}
* @OA\POST(
* path="/backend/web/v1/shopuser/shop-user-lists/user-update",
* tags={"用户&员工接口"},
* summary="用户详情修改(张晓林)",
* description="用户详情修改",
* * @OA\RequestBody(
* required=true,
* @OA\MediaType(
* mediaType="application/x-www-form-urlencoded",
* @OA\Schema(
* type="object",
* @OA\Property(property="USERGUID",description="用户GUID",type="string"),
* @OA\Property(property="NAME",description="昵称",type="string"),
* @OA\Property(property="CODE",description="工号/手机号",type="string"),
* @OA\Property(property="CONSUMPTION_POINT",description="积分",type="string"),
* @OA\Property(property="MEMBERGRADEGUID",description="所属用户组",type="string"),
* @OA\Property(property="MOBILE_PHONE",description="手机",type="string"),
* @OA\Property(property="CONTACT_SEX",description="性别",type="string"),
* @OA\Property(property="CONTACTBIRTH_DATE",description="出生日期",type="string"),
* @OA\Property(property="EMPLOYEE_CODE",description="员工工号",type="string"),
* @OA\Property(property="EMPLOYEE_GUID",description="门店代码",type="string"),
* @OA\Property(property="MEMBER_NO",description="会员卡号",type="string"),
* @OA\Property(property="LABEL",description="会员标签",type="string"),
* @OA\Property(property="IS_HS_DISTRIBUTOR_PARENT",description="是否为惠氏分销商上级",type="string"),
* )
* )
* ),
* @OA\Response(response=200,description="success"),
* security={{"Authorization": {}}}
* )
*/
public function actionUserUpdate(){
......@@ -188,6 +197,7 @@ class ShopUserListController extends BaseController
$userModel = new ShopUserList();
$userModel->scenario = 'userUpdate';
$userGuid = $param['USERGUID'];
//删除用户所有组数据
$shopRaletionModel = new ShopUserMembergradeRelation();
$shopRaletionModel::deleteAll(['SHOP_USER_GUID'=>$userGuid]);
// $param['USERMEMBERGRADEGUID'] = array('4448C9C8-51F5-4CF2-B76D-C1D32ED0730E','5106F87B-D687-4C4A-97A3-3576B0025B73');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment