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

用过列表修改

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