Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 87cc26f6
authored
Aug 19, 2021
by
zhouhb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码修改
1 parent
d89c1e1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
src/main/java/cn/com/glsx/merchants/response/MerchantRopResponse.java
src/main/java/cn/com/glsx/merchants/service/MerchantUserService.java
src/main/java/cn/com/glsx/merchants/response/MerchantRopResponse.java
View file @
87cc26f
...
...
@@ -266,6 +266,16 @@ public class MerchantRopResponse {
private
Long
numberOfSubMerchants
;
/**
* 经度
*/
private
Float
lng
;
/**
* 纬度
*/
private
Float
lat
;
/**
* 关联关系
*/
private
List
<
AccountTypeTreeRopResponse
>
accountTypes
;
...
...
src/main/java/cn/com/glsx/merchants/service/MerchantUserService.java
View file @
87cc26f
package
cn
.
com
.
glsx
.
merchants
.
service
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.merchants.contants.Contants
;
import
cn.com.glsx.merchants.request.user.MerchantUser
;
import
com.rop.AbstractRopRequest
;
...
...
@@ -39,12 +41,8 @@ public class MerchantUserService {
user
.
setRealname
((
String
)
session
.
getAttribute
(
Contants
.
USER_NAME
));
user
.
setId
((
Integer
)
session
.
getAttribute
(
Contants
.
USER_ID
));
}
else
{
user
.
setId
(
9
);
user
.
setUsername
(
"123456"
);
user
.
setRealname
(
"超级管理员"
);
throw
new
RpcServiceException
(
DefaultErrorEnum
.
SERVER_ERROR
);
}
//throw new RpcServiceException(DefaultErrorEnum.SERVER_ERROR);
merchantUser
.
setSource
(
Contants
.
SYSTEM_SOURCE_USER
);
}
else
{
merchantUser
.
setSource
(
Contants
.
SYSTEM_SOURCE_OPERATION
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment