liujie
2026-06-09 c96fbe6b0aeb413a17c429133ee6d81d138144b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.xiaopeng.operation.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaopeng.api.model.account.SysUser;
import com.xiaopeng.api.model.operation.XpTargetedService;
import com.xiaopeng.api.query.operation.XpTargetedServiceQuery;
import com.xiaopeng.api.vo.operation.XpTargetedServiceVehicleVo;
import com.xiaopeng.api.vo.operation.XpTargetedServiceVo;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.common.core.web.page.PageInfo;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.List;
import java.util.Set;
 
public interface XpTargetedServiceService extends IService<XpTargetedService> {
 
 
    PageInfo<XpTargetedServiceVo> pageList(XpTargetedServiceQuery query);
 
    XpTargetedServiceVo getById(Long id);
 
    @Transactional
    boolean add(XpTargetedServiceVo dto, SysUser sysUser);
 
    @Transactional
    boolean edit(XpTargetedServiceVo dto, SysUser sysUser);
 
    boolean updateStatus(Long id, Integer status, SysUser sysUser);
 
    R deleteByIds(List<Long> ids, SysUser sysUser);
 
    List<XpTargetedServiceVehicleVo> findListByUserIdAndCityCode(Long appUserId, String cityCode);
 
    List<String> findSetVehicleVinByUserIdAndCityCode(Long appUserId, String cityCode);
 
 
    /**
     * 获取定向服务权重
     * @param appUserId
     * @param cityCode
     * @return
     */
    Integer getTargetedServiceWeight(Long appUserId, String cityCode);
}