Преглед на файлове

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");
         }