修正查看特权

This commit is contained in:
2026-05-22 22:49:06 +08:00
parent e3e3a625b4
commit 27de5decc3
4 changed files with 168 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import com.rj.entity.LbPurchaseApply;
import jakarta.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;
public interface ILbPurchaseApplyService extends IService<LbPurchaseApply> {
@@ -34,6 +35,12 @@ public interface ILbPurchaseApplyService extends IService<LbPurchaseApply> {
Map<String, Object> syncHxrAdminUserVipByApplyDateRange(
LocalDate applyDateStart, LocalDate applyDateEnd, String tenantId, Integer maxOrder);
/**
* 按用户 ID 列表批量调用 hxrd 用户更新接口,开通或关闭特权(不计算 viptime使用入参
*/
Map<String, Object> updateHxrAdminUserVipByUserIds(
String tenantId, List<Long> userIds, Integer isVip, String vipTime, Integer maxOrder);
/**
* 按申请日期区间与租户筛选进货申请,对每条记录的 {@code colleague_phone} 调用 hxrd 用户查询与更新,
* 仅当 {@code colleague_name} 能在 {@code lb_daily_user_trade}(同租户、按 nickname中查到时才开通