| | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.account.api.dto.ChargingCardAllocateDTO; |
| | | import com.ruoyi.account.api.dto.ChargingCardAuthDTO; |
| | | import com.ruoyi.account.api.dto.ChargingCardBalanceDTO; |
| | | import com.ruoyi.account.api.dto.ChargingCardDeductDTO; |
| | |
| | | import com.ruoyi.account.api.dto.ChargingCardSaveDTO; |
| | | import com.ruoyi.account.api.dto.ChargingCardStatusDTO; |
| | | import com.ruoyi.account.api.model.TChargingCard; |
| | | import com.ruoyi.account.api.vo.ChargingCardAllocateVO; |
| | | import com.ruoyi.account.api.vo.ChargingCardDeductVO; |
| | | |
| | | import java.util.List; |
| | |
| | | |
| | | boolean updateBalance(ChargingCardBalanceDTO dto); |
| | | |
| | | /** |
| | | * 额度分配概览:公司可分配余额(available_balance)与总账户余额(累计充值到账)。 |
| | | * 仅分配模式(account_mode=2)的公司可执行额度分配。 |
| | | * |
| | | * @param companyId 公司ID |
| | | * @return 概览信息;公司不存在时抛出业务异常 |
| | | */ |
| | | ChargingCardAllocateVO getAllocateOverview(Integer companyId); |
| | | |
| | | /** |
| | | * 卡片额度分配(公司可用余额 → 卡片余额)。 |
| | | * 校验公司为启用且分配模式、卡片归属该公司且未在充电,禁止透支; |
| | | * 每张卡片写入余额变更流水,失败时回滚并退还公司已扣金额。 |
| | | * |
| | | * @param dto 分配参数(公司、卡片明细、备注、操作密码) |
| | | * @return 分配后的公司概览(可分配余额为最新值) |
| | | */ |
| | | ChargingCardAllocateVO allocateQuota(ChargingCardAllocateDTO dto); |
| | | |
| | | List<ChargingCardExcelDTO> selectExportList(ChargingCardQueryDTO query); |
| | | |
| | | String importCards(List<ChargingCardExcelDTO> cards); |