|
|
@@ -22,6 +22,7 @@ import com.cyksj.mapper.manage.distribute.DistributeGeneralSkuRateMapper;
|
|
|
import com.cyksj.mapper.manage.distribute.UserDistributeMapper;
|
|
|
import com.cyksj.mapper.manage.distribute.UserPlatDistributeRateMapper;
|
|
|
import com.cyksj.mapper.manage.distribute.UserPlatSkuDistributeRateMapper;
|
|
|
+import com.cyksj.mapper.mirrorshop.UserMirrorShopMapper;
|
|
|
import com.cyksj.mapper.renew.RenewUpgradePackageMapper;
|
|
|
import com.cyksj.mapper.sys.SysEmailMapper;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
@@ -155,8 +156,10 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
|
|
|
private final AccountMapper accountMapper;
|
|
|
|
|
|
+ private final UserMirrorShopMapper userMirrorShopMapper;
|
|
|
+
|
|
|
@Override
|
|
|
- public SearchResult<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, String customId, String account) {
|
|
|
+ public SearchResult<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, String customId, String account, Integer cmt) {
|
|
|
User u = userMapper.selectById(userId);
|
|
|
if (u == null) throw BusinessRuntimeException.getGatewayApiCode(GatewayApiCode.CMS_TOKEN_VALID);
|
|
|
if (u.getIsBlack()) {
|
|
|
@@ -164,6 +167,14 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
List<Long> userIds = userBindRelationService.getRelationUserIdList(userId, u);
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
+ if (cmt != null && cmt == 2 && StrUtil.isNotBlank(customId)) {
|
|
|
+ UserMirrorShop userMirrorShop = userMirrorShopMapper.selectOne(Wrappers.lambdaQuery(UserMirrorShop.class)
|
|
|
+ .eq(UserMirrorShop::getCustomId, customId)
|
|
|
+ .last("limit 1"));
|
|
|
+ if (userMirrorShop != null) {
|
|
|
+ builder.field(RenewalView::getCmt, cmt).field(RenewalView::getYhsId, userMirrorShop.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
//Long yhsId = yhShopFrontService.getYhsIdByCustomId(customId);
|
|
|
DateTime now = DateTime.now();
|
|
|
if (StrUtil.isNotBlank(account)) {
|