|
|
@@ -171,7 +171,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
private final UserMirrorShopMapper userMirrorShopMapper;
|
|
|
|
|
|
@Override
|
|
|
- public SearchResult<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, String customId, String account, String orderNo, Integer cmt, Integer ast) {
|
|
|
+ public SearchResult<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, String customId, String account, String orderNo, Integer cmt) {
|
|
|
User u = userMapper.selectById(userId);
|
|
|
if (u == null) throw BusinessRuntimeException.getGatewayApiCode(GatewayApiCode.CMS_TOKEN_VALID);
|
|
|
if (u.getIsBlack()) {
|
|
|
@@ -198,8 +198,8 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
String conditionSql = String.format("(gr.expiry_time is null or gr.expiry_time > '%s'", now);
|
|
|
//镜像车票 过期7天后清除
|
|
|
//ast!=1时,镜像店铺过期过期车票
|
|
|
- if (ast == null || ast != 1) {
|
|
|
- conditionSql = String.format(conditionSql, String.format(" or (sku.is_mirror and gr.expiry_time > '%s')", DateUtil.offsetDay(now, -7)));
|
|
|
+ if (cmt == null || cmt != 2) {
|
|
|
+ conditionSql += String.format(" or (sku.is_mirror and gr.expiry_time > '%s')", DateUtil.offsetDay(now, -7));
|
|
|
}
|
|
|
conditionSql += ")";
|
|
|
if (StrUtil.isNotEmpty(orderNo)) {
|