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 9c09c6cd
authored
Jul 12, 2021
by
zhouhb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]商户模块
1 parent
505fb16d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
33 deletions
src/main/java/cn/com/glsx/merchants/controller/MerchantFunctionController.java
src/main/java/cn/com/glsx/merchants/controller/MerchantMenuController.java
src/main/java/cn/com/glsx/merchants/request/menu/MenuListSearchRequest.java
src/main/java/cn/com/glsx/merchants/request/menu/MenuSaveRequest.java
src/main/java/cn/com/glsx/merchants/request/menu/MenuUpdateRequest.java
src/main/java/cn/com/glsx/merchants/request/product/ProductSaveRequest.java
src/main/java/cn/com/glsx/merchants/request/product/ProductUpdateRequest.java
src/main/java/cn/com/glsx/merchants/controller/MerchantFunctionController.java
View file @
9c09c6c
package
cn
.
com
.
glsx
.
merchants
.
controller
;
package
cn
.
com
.
glsx
.
merchants
.
controller
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.response.FunctionResponse
;
import
cn.com.glsx.merchants.response.MenuResponse
;
import
cn.com.glsx.merchants.service.MerchantFunctionService
;
import
cn.com.glsx.merchants.service.MerchantFunctionService
;
import
cn.com.glsx.merchants.util.Pagination
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -21,5 +25,4 @@ public class MerchantFunctionController {
...
@@ -21,5 +25,4 @@ public class MerchantFunctionController {
@Autowired
@Autowired
private
MerchantFunctionService
merchantFunctionService
;
private
MerchantFunctionService
merchantFunctionService
;
}
}
src/main/java/cn/com/glsx/merchants/controller/MerchantMenuController.java
View file @
9c09c6c
...
@@ -95,13 +95,13 @@ public class MerchantMenuController {
...
@@ -95,13 +95,13 @@ public class MerchantMenuController {
* @return
* @return
*/
*/
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.menu.updateMerchantProductMenuRemote"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.menu.updateMerchantProductMenuRemote"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"
查询菜单树
"
)
@ApiOperation
(
"
更新菜单
"
)
public
RopResponse
<
Boolean
>
updateMerchantProductMenuRemote
(
MenuUpdateRequest
menuUpdateRequest
)
{
public
RopResponse
<
Boolean
>
updateMerchantProductMenuRemote
(
MenuUpdateRequest
menuUpdateRequest
)
{
try
{
try
{
merchantMenuService
.
updateMerchantProductMenuRemote
(
menuUpdateRequest
);
merchantMenuService
.
updateMerchantProductMenuRemote
(
menuUpdateRequest
);
return
RopResponse
.
success
(
true
);
return
RopResponse
.
success
(
true
);
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======MerchantMenuController__invoke__
findMerProMenuByPage
Remote__exception:{}"
,
e
.
getMessage
());
log
.
info
(
"=======MerchantMenuController__invoke__
updateMerchantProductMenu
Remote__exception:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getError
());
return
RopResponse
.
error
(
e
.
getError
());
}
}
}
}
...
...
src/main/java/cn/com/glsx/merchants/request/menu/MenuListSearchRequest.java
View file @
9c09c6c
...
@@ -25,10 +25,10 @@ public class MenuListSearchRequest extends AbstractRopRequest {
...
@@ -25,10 +25,10 @@ public class MenuListSearchRequest extends AbstractRopRequest {
@ApiModelProperty
(
notes
=
"产品id"
)
@ApiModelProperty
(
notes
=
"产品id"
)
private
Integer
productId
;
private
Integer
productId
;
@ApiModelProperty
(
notes
=
"分页数"
)
@ApiModelProperty
(
notes
=
"分页数"
,
required
=
true
)
private
Integer
pageSize
;
private
Integer
pageSize
;
@ApiModelProperty
(
notes
=
"当前页"
)
@ApiModelProperty
(
notes
=
"当前页"
,
required
=
true
)
private
Integer
pageNumer
;
private
Integer
pageNumer
;
}
}
src/main/java/cn/com/glsx/merchants/request/menu/MenuSaveRequest.java
View file @
9c09c6c
...
@@ -35,7 +35,7 @@ public class MenuSaveRequest extends AbstractRopRequest {
...
@@ -35,7 +35,7 @@ public class MenuSaveRequest extends AbstractRopRequest {
/**
/**
* 父id
* 父id
*/
*/
@ApiModelProperty
(
notes
=
"父id"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"父id"
)
private
Integer
parentid
;
private
Integer
parentid
;
/**
/**
...
...
src/main/java/cn/com/glsx/merchants/request/menu/MenuUpdateRequest.java
View file @
9c09c6c
...
@@ -25,41 +25,36 @@ public class MenuUpdateRequest extends AbstractRopRequest {
...
@@ -25,41 +25,36 @@ public class MenuUpdateRequest extends AbstractRopRequest {
/**
/**
* 菜单名称
* 菜单名称
*/
*/
@ApiModelProperty
(
notes
=
"菜单名称"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"菜单名称"
)
@NotNull
private
String
menuName
;
private
String
menuName
;
/**
/**
* 菜单编号
* 菜单编号
*/
*/
@ApiModelProperty
(
notes
=
"菜单编号"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"菜单编号"
)
@NotNull
private
String
menuCode
;
private
String
menuCode
;
/**
/**
* 菜单路由
* 菜单路由
*/
*/
@ApiModelProperty
(
notes
=
"菜单路由"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"菜单路由"
)
@NotNull
private
String
menuUrl
;
private
String
menuUrl
;
/**
/**
* 父id
* 父id
*/
*/
@ApiModelProperty
(
notes
=
"父id"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"父id"
)
private
Integer
parentid
;
private
Integer
parentid
;
/**
/**
* 所属产品id
* 所属产品id
*/
*/
@ApiModelProperty
(
notes
=
"所属产品id"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"所属产品id"
)
@NotNull
private
Integer
productId
;
private
Integer
productId
;
/**
/**
* 排序
* 排序
*/
*/
@ApiModelProperty
(
notes
=
"排序"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"排序"
)
@NotNull
private
Integer
sort
;
private
Integer
sort
;
}
}
src/main/java/cn/com/glsx/merchants/request/product/ProductSaveRequest.java
View file @
9c09c6c
...
@@ -40,7 +40,7 @@ public class ProductSaveRequest extends AbstractRopRequest implements Serializab
...
@@ -40,7 +40,7 @@ public class ProductSaveRequest extends AbstractRopRequest implements Serializab
/**
/**
* 产品简介
* 产品简介
*/
*/
@ApiModelProperty
(
notes
=
"产品简介"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"产品简介"
)
private
String
productDetail
;
private
String
productDetail
;
/**
/**
...
@@ -55,9 +55,4 @@ public class ProductSaveRequest extends AbstractRopRequest implements Serializab
...
@@ -55,9 +55,4 @@ public class ProductSaveRequest extends AbstractRopRequest implements Serializab
@ApiModelProperty
(
notes
=
"创建人"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"创建人"
,
required
=
true
)
private
Integer
createdBy
;
private
Integer
createdBy
;
/**
* 是否删除:0=正常,-1=删除
*/
@ApiModelProperty
(
notes
=
"是否删除:0=正常,-1=删除"
,
required
=
true
)
private
Byte
delFlag
;
}
}
src/main/java/cn/com/glsx/merchants/request/product/ProductUpdateRequest.java
View file @
9c09c6c
...
@@ -15,7 +15,7 @@ import java.io.Serializable;
...
@@ -15,7 +15,7 @@ import java.io.Serializable;
public
class
ProductUpdateRequest
extends
AbstractRopRequest
implements
Serializable
{
public
class
ProductUpdateRequest
extends
AbstractRopRequest
implements
Serializable
{
/**
/**
* 产品
名称
* 产品
id
*/
*/
@ApiModelProperty
(
notes
=
"产品id"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"产品id"
,
required
=
true
)
@NotNull
@NotNull
...
@@ -24,40 +24,37 @@ public class ProductUpdateRequest extends AbstractRopRequest implements Serializ
...
@@ -24,40 +24,37 @@ public class ProductUpdateRequest extends AbstractRopRequest implements Serializ
/**
/**
* 产品名称
* 产品名称
*/
*/
@ApiModelProperty
(
notes
=
"产品名称"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"产品名称"
)
@NotNull
private
String
productName
;
private
String
productName
;
/**
/**
* 产品类型取字典数据
* 产品类型取字典数据
*/
*/
@ApiModelProperty
(
notes
=
"产品类型"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"产品类型"
)
@NotNull
private
Integer
productType
;
private
Integer
productType
;
/**
/**
* 产品编号
* 产品编号
*/
*/
@ApiModelProperty
(
notes
=
"产品编号"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"产品编号"
)
@NotNull
private
String
productCode
;
private
String
productCode
;
/**
/**
* 产品简介
* 产品简介
*/
*/
@ApiModelProperty
(
notes
=
"产品简介"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"产品简介"
)
private
String
productDetail
;
private
String
productDetail
;
/**
/**
* 产品地址
* 产品地址
*/
*/
@ApiModelProperty
(
notes
=
"产品地址"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"产品地址"
)
private
String
productAddress
;
private
String
productAddress
;
/**
/**
* 更新人
* 更新人
*/
*/
@ApiModelProperty
(
notes
=
"更新人"
,
required
=
true
)
@ApiModelProperty
(
notes
=
"更新人"
)
private
Integer
updatedBy
;
private
Integer
updatedBy
;
}
}
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