|
@@ -84,9 +84,9 @@ public class CouponController extends BaseController<Coupon, CouponQuery> {
|
|
|
String userMobile = CurrentUserInfo.userMobile();
|
|
|
UserInfoEntity userByMobile = iUserInfoService.getUserByMobile(userMobile);
|
|
|
if (userByMobile != null) {
|
|
|
- List<Role> byUserIdList = roleService.getByUserId(userByMobile.getUserId());
|
|
|
- for (Role byUserId : byUserIdList) {
|
|
|
- if (byUserId.getCode().equals("REGION_DIRECTOR")) {// 区域主管审核
|
|
|
+ List<Role> currentUserRoleList = roleService.getByUserId(userByMobile.getUserId());
|
|
|
+ for (Role role : currentUserRoleList) {
|
|
|
+ if (role.getCode().equals("REGION_DIRECTOR")) {// 区域主管审核
|
|
|
if (neDto.getCheckFalg() == 1) {
|
|
|
couponService.updateSatus(neDto.getId(), 3, 0);
|
|
|
return RestResponse.success("审批成功,等待财务审核");
|
|
@@ -95,7 +95,7 @@ public class CouponController extends BaseController<Coupon, CouponQuery> {
|
|
|
return RestResponse.success("驳回成功");
|
|
|
}
|
|
|
}
|
|
|
- if (byUserId.getCode().equals("FINANCE")) {// 财务审核
|
|
|
+ if (role.getCode().equals("FINANCE")) {// 财务审核
|
|
|
if (neDto.getCheckFalg() == 1) {
|
|
|
couponService.updateSatus(neDto.getId(), 1, 1);
|
|
|
return RestResponse.success("审批通过");
|