소스 검색

fixed 开卡赠礼问题

fushengqian 6 달 전
부모
커밋
c840a11df0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      fuint-application/src/main/java/com/fuint/common/service/impl/OpenGiftServiceImpl.java

+ 3 - 0
fuint-application/src/main/java/com/fuint/common/service/impl/OpenGiftServiceImpl.java

@@ -248,6 +248,9 @@ public class OpenGiftServiceImpl extends ServiceImpl<MtOpenGiftMapper, MtOpenGif
         if (user == null) {
             throw new BusinessCheckException("会员状态异常");
         }
+        if (user.getIsStaff().equals(YesOrNoEnum.YES.getKey())) {
+            return false;
+        }
         if (user.getGradeId() == null && StringUtil.isEmpty(user.getGradeId())) {
             user.setGradeId("0");
         }