| | |
| | |
|
| | | 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;
|
| | |
|
| | |
| | |
|
| | | @Resource
|
| | | private TaoBaoPunishOrderService taoBaoPunishOrderService;
|
| | |
|
| | | @Resource
|
| | | private UserInfoService userInfoService;
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | |
| | | 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;
|
| | | }
|