|
|
@@ -243,6 +243,44 @@ public class StorePlatformUserRoleController {
|
|
|
return R.fail("更新子账号信息失败");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("更新子账号信息")
|
|
|
+ @ApiOperationSupport(order = 10)
|
|
|
+ @PlatformOperationLog(
|
|
|
+ module = "账号操作记录",
|
|
|
+ type = "修改子账号",
|
|
|
+ content = "修改子账号,用户ID:#{#p0.userId},手机号:#{#p0.phone},账号名:#{#p0.accountName}"
|
|
|
+ )
|
|
|
+ @PostMapping("/updateSubAccountNew")
|
|
|
+ public R<String> updateSubAccountNew(@RequestBody UpdateAccountDto updateAccountDto) {
|
|
|
+ log.info("StorePlatformUserRoleController.updateSubAccount?userId={}, phone={}, accountName={}, storeId={}, roleId={}",
|
|
|
+ updateAccountDto.getUserId(), updateAccountDto.getPhone(), updateAccountDto.getAccountName(),
|
|
|
+ updateAccountDto.getStoreId(), updateAccountDto.getRoleId());
|
|
|
+
|
|
|
+ if (updateAccountDto.getUserId() == null) {
|
|
|
+ return R.fail("用户ID不能为空");
|
|
|
+ }
|
|
|
+ if (updateAccountDto.getStoreId() == null) {
|
|
|
+ return R.fail("店铺ID不能为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ boolean result = storePlatformUserRoleService.updateSubAccountNew(
|
|
|
+ updateAccountDto.getUserId(),
|
|
|
+ updateAccountDto.getPhone(),
|
|
|
+ updateAccountDto.getAccountName(),
|
|
|
+ updateAccountDto.getStoreId(),
|
|
|
+ updateAccountDto.getRoleId(),
|
|
|
+ updateAccountDto.getId()
|
|
|
+ );
|
|
|
+ if (result) {
|
|
|
+ return R.success("更新子账号信息成功");
|
|
|
+ }
|
|
|
+ return R.fail("更新子账号信息失败");
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation("查询所有子账号信息(分页)")
|
|
|
@ApiOperationSupport(order = 11)
|
|
|
@ApiImplicitParams({
|