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 83df0b69
authored
Jul 23, 2021
by
zhouhb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]rop修改
1 parent
637a1942
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
20 deletions
src/main/java/cn/com/glsx/merchants/controller/MerchantController.java
src/main/java/cn/com/glsx/merchants/response/LogResponse.java
src/main/java/cn/com/glsx/merchants/response/MerchantRopResponse.java
src/main/java/cn/com/glsx/merchants/response/ProductRelationResponse.java
src/main/java/cn/com/glsx/merchants/controller/MerchantController.java
View file @
83df0b6
...
@@ -90,17 +90,17 @@ public class MerchantController {
...
@@ -90,17 +90,17 @@ public class MerchantController {
}
}
/**
/**
*
更新商户权限信息
*
查询商户详情
*
*
* @param merchant
Tree
Request 入参
* @param merchant
Detail
Request 入参
* @return
* @return
*/
*/
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.merchant.
updatePermissions
"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.merchant.
findMerchantDetail
"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"
更新商户权限信息
"
)
@ApiOperation
(
"
查询商户详情
"
)
public
RopResponse
<
Boolean
>
updatePermissions
(
@RequestBody
MerchantTreeRopRequest
merchantTree
Request
)
{
public
RopResponse
<
MerchantRopResponse
>
findMerchantDetail
(
MerchantDetailRequest
merchantDetail
Request
)
{
try
{
try
{
merchantService
.
updatePermissions
(
merchantTree
Request
);
MerchantRopResponse
merchantResponse
=
merchantService
.
findMerchantDetail
(
merchantDetail
Request
);
return
RopResponse
.
success
(
tru
e
);
return
RopResponse
.
success
(
merchantRespons
e
);
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======MerchantController__invoke__updatePermissions__exception:{}"
,
e
.
getMessage
());
log
.
info
(
"=======MerchantController__invoke__updatePermissions__exception:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
...
@@ -108,17 +108,17 @@ public class MerchantController {
...
@@ -108,17 +108,17 @@ public class MerchantController {
}
}
/**
/**
*
查询商户详情
*
更新商户权限信息
*
*
* @param merchant
Detail
Request 入参
* @param merchant
Tree
Request 入参
* @return
* @return
*/
*/
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.merchant.
findMerchantDetail
"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.merchant.
updatePermissions
"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"
查询商户详情
"
)
@ApiOperation
(
"
更新商户权限信息
"
)
public
RopResponse
<
MerchantRopResponse
>
findMerchantDetail
(
MerchantDetailRequest
merchantDetail
Request
)
{
public
RopResponse
<
Boolean
>
updatePermissions
(
@RequestBody
MerchantTreeRopRequest
merchantTree
Request
)
{
try
{
try
{
MerchantRopResponse
merchantResponse
=
merchantService
.
findMerchantDetail
(
merchantDetail
Request
);
merchantService
.
updatePermissions
(
merchantTree
Request
);
return
RopResponse
.
success
(
merchantRespons
e
);
return
RopResponse
.
success
(
tru
e
);
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======MerchantController__invoke__updatePermissions__exception:{}"
,
e
.
getMessage
());
log
.
info
(
"=======MerchantController__invoke__updatePermissions__exception:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
...
...
src/main/java/cn/com/glsx/merchants/response/LogResponse.java
View file @
83df0b6
...
@@ -13,7 +13,7 @@ import java.util.Date;
...
@@ -13,7 +13,7 @@ import java.util.Date;
* @date 2021/7/14 16:20
* @date 2021/7/14 16:20
*/
*/
@Data
@Data
public
class
LogResponse
implements
Serializable
{
public
class
LogResponse
{
/**
/**
* 主键
* 主键
...
...
src/main/java/cn/com/glsx/merchants/response/MerchantRopResponse.java
View file @
83df0b6
package
cn
.
com
.
glsx
.
merchants
.
response
;
package
cn
.
com
.
glsx
.
merchants
.
response
;
import
c
n.com.glsx.merchants.model.response.AccountTypeTreeResponse
;
import
c
om.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
@Data
@Data
public
class
MerchantRopResponse
implements
Serializable
{
public
class
MerchantRopResponse
{
@ApiModelProperty
(
name
=
"id"
,
notes
=
"商户id"
,
dataType
=
"Integer"
,
required
=
true
,
example
=
"1"
,
value
=
"商户id"
)
@ApiModelProperty
(
name
=
"id"
,
notes
=
"商户id"
,
dataType
=
"Integer"
,
required
=
true
,
example
=
"1"
,
value
=
"商户id"
)
private
Integer
id
;
private
Integer
id
;
...
@@ -96,7 +95,8 @@ public class MerchantRopResponse implements Serializable {
...
@@ -96,7 +95,8 @@ public class MerchantRopResponse implements Serializable {
/**
/**
* 创建时间
* 创建时间
*/
*/
@ApiModelProperty
(
name
=
"createdTime"
,
notes
=
"创建时间"
,
dataType
=
"Date"
,
required
=
true
,
example
=
"1"
)
@ApiModelProperty
(
name
=
"createdTime"
,
notes
=
"创建时间"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createdTime
;
private
Date
createdTime
;
...
@@ -128,18 +128,21 @@ public class MerchantRopResponse implements Serializable {
...
@@ -128,18 +128,21 @@ public class MerchantRopResponse implements Serializable {
* 营业开始时间
* 营业开始时间
*/
*/
@ApiModelProperty
(
name
=
"bussinessBegintime"
,
notes
=
"营业开始时间"
,
dataType
=
"Date"
,
required
=
true
,
example
=
"1"
)
@ApiModelProperty
(
name
=
"bussinessBegintime"
,
notes
=
"营业开始时间"
,
dataType
=
"Date"
,
required
=
true
,
example
=
"1"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
bussinessBegintime
;
private
Date
bussinessBegintime
;
/**
/**
* 营业结束时间
* 营业结束时间
*/
*/
@ApiModelProperty
(
name
=
"bussinessEndtime"
,
notes
=
"营业结束时间"
,
dataType
=
"Date"
,
required
=
true
,
example
=
"1"
)
@ApiModelProperty
(
name
=
"bussinessEndtime"
,
notes
=
"营业结束时间"
,
dataType
=
"Date"
,
required
=
true
,
example
=
"1"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
bussinessEndtime
;
private
Date
bussinessEndtime
;
/**
/**
* 商户过期时间
* 商户过期时间
*/
*/
@ApiModelProperty
(
name
=
"expireDate"
,
notes
=
"商户过期时间"
,
dataType
=
"Date"
,
required
=
true
,
example
=
"1"
)
@ApiModelProperty
(
name
=
"expireDate"
,
notes
=
"商户过期时间"
,
dataType
=
"Date"
,
required
=
true
,
example
=
"1"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
expireDate
;
private
Date
expireDate
;
/**
/**
...
...
src/main/java/cn/com/glsx/merchants/response/ProductRelationResponse.java
View file @
83df0b6
...
@@ -13,7 +13,7 @@ import java.util.List;
...
@@ -13,7 +13,7 @@ import java.util.List;
* @date 2021/7/16 16:50
* @date 2021/7/16 16:50
*/
*/
@Data
@Data
public
class
ProductRelationResponse
implements
Serializable
{
public
class
ProductRelationResponse
{
/**
/**
* 产品id
* 产品id
...
...
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