admin
2020-07-03 651a15c78f668bef3859d9ed1bb7ad0b669d3600
fanli/src/main/java/com/yeshi/fanli/service/impl/order/LostOrderServiceImpl.java
@@ -10,6 +10,9 @@
import javax.annotation.Resource;
import com.yeshi.fanli.entity.SystemEnum;
import com.yeshi.fanli.entity.bus.user.UserInfo;
import com.yeshi.fanli.service.inter.user.UserInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -49,6 +52,9 @@
   @Resource
   private TaoBaoPunishOrderService taoBaoPunishOrderService;
    @Resource
    private UserInfoService userInfoService;
   @Transactional
   @Override
@@ -91,9 +97,11 @@
      if (hongBaoOrderService.countByOrderNoAndHongBaoType(orderId, HongBaoV2.TYPE_SHARE_GOODS, type) > 0)
         return -5;
        SystemEnum system = userInfoService.getUserSystem(lostOrder.getUserInfo().getId());
      // 次数限制
      long count = lostOrderMapper.countTodayAppeal(lostOrder.getUserInfo().getId());
      String countMax = configService.get(ConfigKeyEnum.orderAppealCountDay.getKey());
        String countMax = configService.getValue(ConfigKeyEnum.orderAppealCountDay.getKey(), system);
      if (countMax != null && countMax.trim().length() > 0 && count >= Long.parseLong(countMax)) {
         return -7;
      }