| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ruoyi.account.api.dto.VinAppletBindDTO; |
| | | import com.ruoyi.account.api.dto.VinManagementAllocateDTO; |
| | | import com.ruoyi.account.api.dto.VinManagementExcelDTO; |
| | | import com.ruoyi.account.api.dto.VinManagementQueryDTO; |
| | | import com.ruoyi.account.api.dto.VinManagementSaveDTO; |
| | | import com.ruoyi.account.api.model.TVinManagement; |
| | | import com.ruoyi.account.api.vo.VinManagementAllocateVO; |
| | | import com.ruoyi.account.service.TVinManagementService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.poi.ExcelUtil; |
| | |
| | | import com.ruoyi.common.security.annotation.Logical; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | return R.ok(service.unbindAppletVehicle(id, tokenService.getLoginUserApplet().getUserId())); |
| | | } |
| | | |
| | | @ApiOperation(value = "额度分配概览(公司总账户余额、可分配余额)") |
| | | @RequiresPermissions(value = {"/vinManagement/allocate"}, logical = Logical.OR) |
| | | @GetMapping("/allocate-overview") |
| | | public R<VinManagementAllocateVO> allocateOverview(@RequestParam("companyId") Integer companyId) { |
| | | return R.ok(service.getAllocateOverview(companyId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "VIN码额度分配(公司可用余额划入VIN初始分配额度)") |
| | | @RequiresPermissions(value = {"/vinManagement/allocate"}, logical = Logical.OR) |
| | | @PostMapping("/allocate") |
| | | public R<VinManagementAllocateVO> allocate(@RequestBody VinManagementAllocateDTO dto) { |
| | | return R.ok(service.allocateQuota(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 内部接口:根据VIN码查询未删除的VIN记录(订单侧VIN鉴权使用) |
| | | */ |