Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
07212404
Commit
07212404
authored
Aug 18, 2021
by
terrfly
Browse files
订单页的支付方式筛选项添加权限并可分配: 避免API权限导致页面出现异常
parent
36cf3dd5
Changes
4
Show whitespace changes
Inline
Side-by-side
docs/sql/init.sql
View file @
07212404
...
@@ -457,6 +457,7 @@ insert into t_sys_entitlement values('ENT_ORDER', '订单管理', 'transaction',
...
@@ -457,6 +457,7 @@ insert into t_sys_entitlement values('ENT_ORDER', '订单管理', 'transaction',
insert
into
t_sys_entitlement
values
(
'ENT_ORDER_LIST'
,
'页面:订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_ORDER_LIST'
,
'页面:订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_REFUND'
,
'按钮:订单退款'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_REFUND'
,
'按钮:订单退款'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_SEARCH_PAY_WAY'
,
'筛选项:支付方式'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER'
,
'退款订单'
,
'exception'
,
'/refund'
,
'RefundOrderListPage'
,
'ML'
,
0
,
1
,
'ENT_ORDER'
,
'20'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER'
,
'退款订单'
,
'exception'
,
'/refund'
,
'RefundOrderListPage'
,
'ML'
,
0
,
1
,
'ENT_ORDER'
,
'20'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_LIST'
,
'页面:退款订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_LIST'
,
'页面:退款订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
...
@@ -558,6 +559,7 @@ insert into t_sys_entitlement values('ENT_ORDER', '订单中心', 'transaction',
...
@@ -558,6 +559,7 @@ insert into t_sys_entitlement values('ENT_ORDER', '订单中心', 'transaction',
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER'
,
'订单管理'
,
'account-book'
,
'/pay'
,
'PayOrderListPage'
,
'ML'
,
0
,
1
,
'ENT_ORDER'
,
'10'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER'
,
'订单管理'
,
'account-book'
,
'/pay'
,
'PayOrderListPage'
,
'ML'
,
0
,
1
,
'ENT_ORDER'
,
'10'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_ORDER_LIST'
,
'页面:订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_ORDER_LIST'
,
'页面:订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_SEARCH_PAY_WAY'
,
'筛选项:支付方式'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER'
,
'退款记录'
,
'exception'
,
'/refund'
,
'RefundOrderListPage'
,
'ML'
,
0
,
1
,
'ENT_ORDER'
,
'20'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER'
,
'退款记录'
,
'exception'
,
'/refund'
,
'RefundOrderListPage'
,
'ML'
,
0
,
1
,
'ENT_ORDER'
,
'20'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_LIST'
,
'页面:退款订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_LIST'
,
'页面:退款订单列表'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_REFUND_ORDER_VIEW'
,
'按钮:详情'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_REFUND_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
...
...
docs/sql/patch.sql
View file @
07212404
...
@@ -94,3 +94,12 @@ insert into t_sys_entitlement values('ENT_MCH_TRANSFER_CHANNEL_USER', '按钮:
...
@@ -94,3 +94,12 @@ insert into t_sys_entitlement values('ENT_MCH_TRANSFER_CHANNEL_USER', '按钮:
insert
into
t_sys_entitlement
values
(
'ENT_MCH_TRANSFER_DO'
,
'按钮:发起转账'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_MCH_TRANSFER'
,
'0'
,
'MCH'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_MCH_TRANSFER_DO'
,
'按钮:发起转账'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_MCH_TRANSFER'
,
'0'
,
'MCH'
,
now
(),
now
());
##
-- ++++ ++++
##
-- ++++ ++++
##
-- ++++ [v1.6.0] ===> [未确定] ++++
-- 订单页的支付方式筛选项添加权限并可分配: 避免API权限导致页面出现异常
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_SEARCH_PAY_WAY'
,
'筛选项:支付方式'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MGR'
,
now
(),
now
());
insert
into
t_sys_entitlement
values
(
'ENT_PAY_ORDER_SEARCH_PAY_WAY'
,
'筛选项:支付方式'
,
'no-icon'
,
''
,
''
,
'PB'
,
0
,
1
,
'ENT_PAY_ORDER'
,
'0'
,
'MCH'
,
now
(),
now
());
##
-- ++++ ++++
jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/ctrl/payconfig/PayWayController.java
View file @
07212404
...
@@ -54,7 +54,7 @@ public class PayWayController extends CommonCtrl {
...
@@ -54,7 +54,7 @@ public class PayWayController extends CommonCtrl {
* @Description: list
* @Description: list
* @Date: 15:52 2021/4/27
* @Date: 15:52 2021/4/27
*/
*/
@PreAuthorize
(
"hasAuthority('ENT_PC_WAY_LIST')"
)
@PreAuthorize
(
"hasA
nyA
uthority('ENT_PC_WAY_LIST'
, 'ENT_PAY_ORDER_SEARCH_PAY_WAY'
)"
)
@GetMapping
@GetMapping
public
ApiRes
list
()
{
public
ApiRes
list
()
{
...
...
jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/ctrl/payconfig/PayWayController.java
View file @
07212404
...
@@ -25,6 +25,7 @@ import com.jeequan.jeepay.service.impl.PayOrderService;
...
@@ -25,6 +25,7 @@ import com.jeequan.jeepay.service.impl.PayOrderService;
import
com.jeequan.jeepay.service.impl.PayWayService
;
import
com.jeequan.jeepay.service.impl.PayWayService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -49,7 +50,7 @@ public class PayWayController extends CommonCtrl {
...
@@ -49,7 +50,7 @@ public class PayWayController extends CommonCtrl {
* @Description: list
* @Description: list
* @Date: 15:52 2021/4/27
* @Date: 15:52 2021/4/27
*/
*/
//
@PreAuthorize("hasAuthority('ENT_P
C_WAY_LIST
')")
@PreAuthorize
(
"hasAuthority('ENT_P
AY_ORDER_SEARCH_PAY_WAY
')"
)
@GetMapping
@GetMapping
public
ApiRes
list
()
{
public
ApiRes
list
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment