puzhibing
2026-09-29 e665bc906ba6ef715acfa55ebe3ad2370154626d
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
package com.ruoyi.account.controller;
 
import com.ruoyi.account.service.FleetUnbindService;
import com.ruoyi.common.core.domain.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * <p>
 * 车队解绑内部接口 前端控制器(other 服务删除车队链路使用,无管理端权限)
 * </p>
 *
 * @author mxcd
 * @since 2026-09-29
 */
@RestController
@RequestMapping("/fleet-unbind")
public class FleetUnbindController {
 
    @Autowired
    private FleetUnbindService fleetUnbindService;
 
    /**
     * 内部接口:按车队ID批量解绑 VIN码/充电卡/白名单的车队归属(单事务,返回实际解绑数量)
     */
    @ApiOperation(value = "内部接口:按车队批量解绑(清空三表 fleet_id,返回实际解绑数量)")
    @PostMapping("/inner/unbind")
    public R<Integer> unbindByFleetIds(@RequestBody List<Integer> fleetIds) {
        return R.ok(fleetUnbindService.unbindByFleetIds(fleetIds));
    }
}