fix: selectBatchIds 已过期

This commit is contained in:
xingyu4j 2025-05-26 14:06:02 +08:00
parent 837f155668
commit 5caf990920
63 changed files with 101 additions and 101 deletions

View File

@ -89,7 +89,7 @@ public class AiImageServiceImpl implements AiImageService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return imageMapper.selectBatchIds(ids); return imageMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -200,7 +200,7 @@ public class AiKnowledgeDocumentServiceImpl implements AiKnowledgeDocumentServic
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return knowledgeDocumentMapper.selectBatchIds(ids); return knowledgeDocumentMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -351,7 +351,7 @@ public class AiKnowledgeSegmentServiceImpl implements AiKnowledgeSegmentService
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return segmentMapper.selectBatchIds(ids); return segmentMapper.selectByIds(ids);
} }
} }

View File

@ -163,7 +163,7 @@ public class AiChatRoleServiceImpl implements AiChatRoleService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return chatRoleMapper.selectBatchIds(ids); return chatRoleMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -84,7 +84,7 @@ public class AiToolServiceImpl implements AiToolService {
@Override @Override
public List<AiToolDO> getToolList(Collection<Long> ids) { public List<AiToolDO> getToolList(Collection<Long> ids) {
return toolMapper.selectBatchIds(ids); return toolMapper.selectByIds(ids);
} }
@Override @Override
@ -97,4 +97,4 @@ public class AiToolServiceImpl implements AiToolService {
return toolMapper.selectListByStatus(status); return toolMapper.selectListByStatus(status);
} }
} }

View File

@ -80,7 +80,7 @@ public class BpmFormServiceImpl implements BpmFormService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return formMapper.selectBatchIds(ids); return formMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -70,7 +70,7 @@ public class BpmUserGroupServiceImpl implements BpmUserGroupService {
@Override @Override
public List<BpmUserGroupDO> getUserGroupList(Collection<Long> ids) { public List<BpmUserGroupDO> getUserGroupList(Collection<Long> ids) {
return userGroupMapper.selectBatchIds(ids); return userGroupMapper.selectByIds(ids);
} }
@ -90,7 +90,7 @@ public class BpmUserGroupServiceImpl implements BpmUserGroupService {
return; return;
} }
// 获得用户组信息 // 获得用户组信息
List<BpmUserGroupDO> userGroups = userGroupMapper.selectBatchIds(ids); List<BpmUserGroupDO> userGroups = userGroupMapper.selectByIds(ids);
Map<Long, BpmUserGroupDO> userGroupMap = convertMap(userGroups, BpmUserGroupDO::getId); Map<Long, BpmUserGroupDO> userGroupMap = convertMap(userGroups, BpmUserGroupDO::getId);
// 校验 // 校验
ids.forEach(id -> { ids.forEach(id -> {

View File

@ -328,7 +328,7 @@ public class CrmBusinessServiceImpl implements CrmBusinessService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return businessMapper.selectBatchIds(ids); return businessMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -160,7 +160,7 @@ public class CrmBusinessStatusServiceImpl implements CrmBusinessStatusService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return businessStatusTypeMapper.selectBatchIds(ids); return businessStatusTypeMapper.selectByIds(ids);
} }
@Override @Override
@ -175,7 +175,7 @@ public class CrmBusinessStatusServiceImpl implements CrmBusinessStatusService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return businessStatusMapper.selectBatchIds(ids); return businessStatusMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -262,7 +262,7 @@ public class CrmContactServiceImpl implements CrmContactService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return contactMapper.selectBatchIds(ids); return contactMapper.selectByIds(ids);
} }
@Override @Override
@ -303,4 +303,4 @@ public class CrmContactServiceImpl implements CrmContactService {
return contactMapper.selectListByCustomerIdOwnerUserId(customerId, ownerUserId); return contactMapper.selectListByCustomerIdOwnerUserId(customerId, ownerUserId);
} }
} }

View File

@ -341,7 +341,7 @@ public class CrmContractServiceImpl implements CrmContractService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return contractMapper.selectBatchIds(ids); return contractMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -392,7 +392,7 @@ public class CrmCustomerServiceImpl implements CrmCustomerService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void receiveCustomer(List<Long> ids, Long ownerUserId, Boolean isReceive) { public void receiveCustomer(List<Long> ids, Long ownerUserId, Boolean isReceive) {
// 1.1 校验存在 // 1.1 校验存在
List<CrmCustomerDO> customers = customerMapper.selectBatchIds(ids); List<CrmCustomerDO> customers = customerMapper.selectByIds(ids);
if (customers.size() != ids.size()) { if (customers.size() != ids.size()) {
throw exception(CUSTOMER_NOT_EXISTS); throw exception(CUSTOMER_NOT_EXISTS);
} }
@ -496,7 +496,7 @@ public class CrmCustomerServiceImpl implements CrmCustomerService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return customerMapper.selectBatchIds(ids); return customerMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -187,7 +187,7 @@ public class CrmPermissionServiceImpl implements CrmPermissionService {
} }
private void validatePermissionExists(Collection<Long> ids) { private void validatePermissionExists(Collection<Long> ids) {
List<CrmPermissionDO> permissionList = permissionMapper.selectBatchIds(ids); List<CrmPermissionDO> permissionList = permissionMapper.selectByIds(ids);
if (ObjUtil.notEqual(permissionList.size(), ids.size())) { if (ObjUtil.notEqual(permissionList.size(), ids.size())) {
throw exception(CRM_PERMISSION_NOT_EXISTS); throw exception(CRM_PERMISSION_NOT_EXISTS);
} }
@ -268,7 +268,7 @@ public class CrmPermissionServiceImpl implements CrmPermissionService {
@Override @Override
public void deletePermissionBatch(Collection<Long> ids, Long userId) { public void deletePermissionBatch(Collection<Long> ids, Long userId) {
List<CrmPermissionDO> permissions = permissionMapper.selectBatchIds(ids); List<CrmPermissionDO> permissions = permissionMapper.selectByIds(ids);
if (CollUtil.isEmpty(permissions)) { if (CollUtil.isEmpty(permissions)) {
throw exception(CRM_PERMISSION_NOT_EXISTS); throw exception(CRM_PERMISSION_NOT_EXISTS);
} }

View File

@ -132,7 +132,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
@Override @Override
public List<CrmProductCategoryDO> getProductCategoryList(Collection<Long> ids) { public List<CrmProductCategoryDO> getProductCategoryList(Collection<Long> ids) {
return productCategoryMapper.selectBatchIds(ids); return productCategoryMapper.selectByIds(ids);
} }
} }

View File

@ -158,7 +158,7 @@ public class CrmProductServiceImpl implements CrmProductService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
List<CrmProductDO> list = productMapper.selectBatchIds(ids); List<CrmProductDO> list = productMapper.selectByIds(ids);
Map<Long, CrmProductDO> productMap = convertMap(list, CrmProductDO::getId); Map<Long, CrmProductDO> productMap = convertMap(list, CrmProductDO::getId);
for (Long id : ids) { for (Long id : ids) {
CrmProductDO product = productMap.get(id); CrmProductDO product = productMap.get(id);
@ -177,7 +177,7 @@ public class CrmProductServiceImpl implements CrmProductService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return productMapper.selectBatchIds(ids); return productMapper.selectByIds(ids);
} }
} }

View File

@ -165,7 +165,7 @@ public class CrmReceivablePlanServiceImpl implements CrmReceivablePlanService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return receivablePlanMapper.selectBatchIds(ids); return receivablePlanMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -277,7 +277,7 @@ public class CrmReceivableServiceImpl implements CrmReceivableService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return receivableMapper.selectBatchIds(ids); return receivableMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -101,7 +101,7 @@ public class ErpAccountServiceImpl implements ErpAccountService {
@Override @Override
public List<ErpAccountDO> getAccountList(Collection<Long> ids) { public List<ErpAccountDO> getAccountList(Collection<Long> ids) {
return accountMapper.selectBatchIds(ids); return accountMapper.selectByIds(ids);
} }
@Override @Override
@ -109,4 +109,4 @@ public class ErpAccountServiceImpl implements ErpAccountService {
return accountMapper.selectPage(pageReqVO); return accountMapper.selectPage(pageReqVO);
} }
} }

View File

@ -214,7 +214,7 @@ public class ErpFinancePaymentServiceImpl implements ErpFinancePaymentService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteFinancePayment(List<Long> ids) { public void deleteFinancePayment(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpFinancePaymentDO> payments = financePaymentMapper.selectBatchIds(ids); List<ErpFinancePaymentDO> payments = financePaymentMapper.selectByIds(ids);
if (CollUtil.isEmpty(payments)) { if (CollUtil.isEmpty(payments)) {
return; return;
} }
@ -270,4 +270,4 @@ public class ErpFinancePaymentServiceImpl implements ErpFinancePaymentService {
return financePaymentItemMapper.selectListByPaymentIds(paymentIds); return financePaymentItemMapper.selectListByPaymentIds(paymentIds);
} }
} }

View File

@ -214,7 +214,7 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteFinanceReceipt(List<Long> ids) { public void deleteFinanceReceipt(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpFinanceReceiptDO> receipts = financeReceiptMapper.selectBatchIds(ids); List<ErpFinanceReceiptDO> receipts = financeReceiptMapper.selectByIds(ids);
if (CollUtil.isEmpty(receipts)) { if (CollUtil.isEmpty(receipts)) {
return; return;
} }
@ -270,4 +270,4 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService {
return financeReceiptItemMapper.selectListByReceiptIds(receiptIds); return financeReceiptItemMapper.selectListByReceiptIds(receiptIds);
} }
} }

View File

@ -143,7 +143,7 @@ public class ErpProductCategoryServiceImpl implements ErpProductCategoryService
@Override @Override
public List<ErpProductCategoryDO> getProductCategoryList(Collection<Long> ids) { public List<ErpProductCategoryDO> getProductCategoryList(Collection<Long> ids) {
return erpProductCategoryMapper.selectBatchIds(ids); return erpProductCategoryMapper.selectByIds(ids);
} }
} }

View File

@ -72,7 +72,7 @@ public class ErpProductServiceImpl implements ErpProductService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
List<ErpProductDO> list = productMapper.selectBatchIds(ids); List<ErpProductDO> list = productMapper.selectByIds(ids);
Map<Long, ErpProductDO> productMap = convertMap(list, ErpProductDO::getId); Map<Long, ErpProductDO> productMap = convertMap(list, ErpProductDO::getId);
for (Long id : ids) { for (Long id : ids) {
ErpProductDO product = productMap.get(id); ErpProductDO product = productMap.get(id);
@ -108,7 +108,7 @@ public class ErpProductServiceImpl implements ErpProductService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
List<ErpProductDO> list = productMapper.selectBatchIds(ids); List<ErpProductDO> list = productMapper.selectByIds(ids);
return buildProductVOList(list); return buildProductVOList(list);
} }
@ -144,4 +144,4 @@ public class ErpProductServiceImpl implements ErpProductService {
return productMapper.selectCountByUnitId(unitId); return productMapper.selectCountByUnitId(unitId);
} }
} }

View File

@ -105,7 +105,7 @@ public class ErpProductUnitServiceImpl implements ErpProductUnitService {
@Override @Override
public List<ErpProductUnitDO> getProductUnitList(Collection<Long> ids) { public List<ErpProductUnitDO> getProductUnitList(Collection<Long> ids) {
return productUnitMapper.selectBatchIds(ids); return productUnitMapper.selectByIds(ids);
} }
} }

View File

@ -240,7 +240,7 @@ public class ErpPurchaseInServiceImpl implements ErpPurchaseInService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deletePurchaseIn(List<Long> ids) { public void deletePurchaseIn(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpPurchaseInDO> purchaseIns = purchaseInMapper.selectBatchIds(ids); List<ErpPurchaseInDO> purchaseIns = purchaseInMapper.selectByIds(ids);
if (CollUtil.isEmpty(purchaseIns)) { if (CollUtil.isEmpty(purchaseIns)) {
return; return;
} }
@ -305,4 +305,4 @@ public class ErpPurchaseInServiceImpl implements ErpPurchaseInService {
return purchaseInItemMapper.selectListByInIds(inIds); return purchaseInItemMapper.selectListByInIds(inIds);
} }
} }

View File

@ -231,7 +231,7 @@ public class ErpPurchaseOrderServiceImpl implements ErpPurchaseOrderService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deletePurchaseOrder(List<Long> ids) { public void deletePurchaseOrder(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpPurchaseOrderDO> purchaseOrders = purchaseOrderMapper.selectBatchIds(ids); List<ErpPurchaseOrderDO> purchaseOrders = purchaseOrderMapper.selectByIds(ids);
if (CollUtil.isEmpty(purchaseOrders)) { if (CollUtil.isEmpty(purchaseOrders)) {
return; return;
} }
@ -292,4 +292,4 @@ public class ErpPurchaseOrderServiceImpl implements ErpPurchaseOrderService {
return purchaseOrderItemMapper.selectListByOrderIds(orderIds); return purchaseOrderItemMapper.selectListByOrderIds(orderIds);
} }
} }

View File

@ -236,7 +236,7 @@ public class ErpPurchaseReturnServiceImpl implements ErpPurchaseReturnService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deletePurchaseReturn(List<Long> ids) { public void deletePurchaseReturn(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpPurchaseReturnDO> purchaseReturns = purchaseReturnMapper.selectBatchIds(ids); List<ErpPurchaseReturnDO> purchaseReturns = purchaseReturnMapper.selectByIds(ids);
if (CollUtil.isEmpty(purchaseReturns)) { if (CollUtil.isEmpty(purchaseReturns)) {
return; return;
} }
@ -301,4 +301,4 @@ public class ErpPurchaseReturnServiceImpl implements ErpPurchaseReturnService {
return purchaseReturnItemMapper.selectListByReturnIds(returnIds); return purchaseReturnItemMapper.selectListByReturnIds(returnIds);
} }
} }

View File

@ -78,7 +78,7 @@ public class ErpSupplierServiceImpl implements ErpSupplierService {
@Override @Override
public List<ErpSupplierDO> getSupplierList(Collection<Long> ids) { public List<ErpSupplierDO> getSupplierList(Collection<Long> ids) {
return supplierMapper.selectBatchIds(ids); return supplierMapper.selectByIds(ids);
} }
@Override @Override
@ -91,4 +91,4 @@ public class ErpSupplierServiceImpl implements ErpSupplierService {
return supplierMapper.selectListByStatus(status); return supplierMapper.selectListByStatus(status);
} }
} }

View File

@ -81,7 +81,7 @@ public class ErpCustomerServiceImpl implements ErpCustomerService {
@Override @Override
public List<ErpCustomerDO> getCustomerList(Collection<Long> ids) { public List<ErpCustomerDO> getCustomerList(Collection<Long> ids) {
return customerMapper.selectBatchIds(ids); return customerMapper.selectByIds(ids);
} }
@Override @Override
@ -94,4 +94,4 @@ public class ErpCustomerServiceImpl implements ErpCustomerService {
return customerMapper.selectListByStatus(status); return customerMapper.selectListByStatus(status);
} }
} }

View File

@ -243,7 +243,7 @@ public class ErpSaleOrderServiceImpl implements ErpSaleOrderService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteSaleOrder(List<Long> ids) { public void deleteSaleOrder(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpSaleOrderDO> saleOrders = saleOrderMapper.selectBatchIds(ids); List<ErpSaleOrderDO> saleOrders = saleOrderMapper.selectByIds(ids);
if (CollUtil.isEmpty(saleOrders)) { if (CollUtil.isEmpty(saleOrders)) {
return; return;
} }
@ -304,4 +304,4 @@ public class ErpSaleOrderServiceImpl implements ErpSaleOrderService {
return saleOrderItemMapper.selectListByOrderIds(orderIds); return saleOrderItemMapper.selectListByOrderIds(orderIds);
} }
} }

View File

@ -248,7 +248,7 @@ public class ErpSaleOutServiceImpl implements ErpSaleOutService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteSaleOut(List<Long> ids) { public void deleteSaleOut(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpSaleOutDO> saleOuts = saleOutMapper.selectBatchIds(ids); List<ErpSaleOutDO> saleOuts = saleOutMapper.selectByIds(ids);
if (CollUtil.isEmpty(saleOuts)) { if (CollUtil.isEmpty(saleOuts)) {
return; return;
} }
@ -313,4 +313,4 @@ public class ErpSaleOutServiceImpl implements ErpSaleOutService {
return saleOutItemMapper.selectListByOutIds(outIds); return saleOutItemMapper.selectListByOutIds(outIds);
} }
} }

View File

@ -248,7 +248,7 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteSaleReturn(List<Long> ids) { public void deleteSaleReturn(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpSaleReturnDO> saleReturns = saleReturnMapper.selectBatchIds(ids); List<ErpSaleReturnDO> saleReturns = saleReturnMapper.selectByIds(ids);
if (CollUtil.isEmpty(saleReturns)) { if (CollUtil.isEmpty(saleReturns)) {
return; return;
} }
@ -313,4 +313,4 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService {
return saleReturnItemMapper.selectListByReturnIds(returnIds); return saleReturnItemMapper.selectListByReturnIds(returnIds);
} }
} }

View File

@ -177,7 +177,7 @@ public class ErpStockCheckServiceImpl implements ErpStockCheckService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteStockCheck(List<Long> ids) { public void deleteStockCheck(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpStockCheckDO> stockChecks = stockCheckMapper.selectBatchIds(ids); List<ErpStockCheckDO> stockChecks = stockCheckMapper.selectByIds(ids);
if (CollUtil.isEmpty(stockChecks)) { if (CollUtil.isEmpty(stockChecks)) {
return; return;
} }
@ -229,4 +229,4 @@ public class ErpStockCheckServiceImpl implements ErpStockCheckService {
return stockCheckItemMapper.selectListByCheckIds(checkIds); return stockCheckItemMapper.selectListByCheckIds(checkIds);
} }
} }

View File

@ -173,7 +173,7 @@ public class ErpStockInServiceImpl implements ErpStockInService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteStockIn(List<Long> ids) { public void deleteStockIn(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpStockInDO> stockIns = stockInMapper.selectBatchIds(ids); List<ErpStockInDO> stockIns = stockInMapper.selectByIds(ids);
if (CollUtil.isEmpty(stockIns)) { if (CollUtil.isEmpty(stockIns)) {
return; return;
} }
@ -225,4 +225,4 @@ public class ErpStockInServiceImpl implements ErpStockInService {
return stockInItemMapper.selectListByInIds(inIds); return stockInItemMapper.selectListByInIds(inIds);
} }
} }

View File

@ -174,7 +174,7 @@ public class ErpStockMoveServiceImpl implements ErpStockMoveService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteStockMove(List<Long> ids) { public void deleteStockMove(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpStockMoveDO> stockMoves = stockMoveMapper.selectBatchIds(ids); List<ErpStockMoveDO> stockMoves = stockMoveMapper.selectByIds(ids);
if (CollUtil.isEmpty(stockMoves)) { if (CollUtil.isEmpty(stockMoves)) {
return; return;
} }
@ -226,4 +226,4 @@ public class ErpStockMoveServiceImpl implements ErpStockMoveService {
return stockMoveItemMapper.selectListByMoveIds(moveIds); return stockMoveItemMapper.selectListByMoveIds(moveIds);
} }
} }

View File

@ -173,7 +173,7 @@ public class ErpStockOutServiceImpl implements ErpStockOutService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void deleteStockOut(List<Long> ids) { public void deleteStockOut(List<Long> ids) {
// 1. 校验不处于已审批 // 1. 校验不处于已审批
List<ErpStockOutDO> stockOuts = stockOutMapper.selectBatchIds(ids); List<ErpStockOutDO> stockOuts = stockOutMapper.selectByIds(ids);
if (CollUtil.isEmpty(stockOuts)) { if (CollUtil.isEmpty(stockOuts)) {
return; return;
} }
@ -225,4 +225,4 @@ public class ErpStockOutServiceImpl implements ErpStockOutService {
return stockOutItemMapper.selectListByOutIds(outIds); return stockOutItemMapper.selectListByOutIds(outIds);
} }
} }

View File

@ -93,7 +93,7 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
List<ErpWarehouseDO> list = warehouseMapper.selectBatchIds(ids); List<ErpWarehouseDO> list = warehouseMapper.selectByIds(ids);
Map<Long, ErpWarehouseDO> warehouseMap = convertMap(list, ErpWarehouseDO::getId); Map<Long, ErpWarehouseDO> warehouseMap = convertMap(list, ErpWarehouseDO::getId);
for (Long id : ids) { for (Long id : ids) {
ErpWarehouseDO warehouse = warehouseMap.get(id); ErpWarehouseDO warehouse = warehouseMap.get(id);
@ -114,7 +114,7 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService {
@Override @Override
public List<ErpWarehouseDO> getWarehouseList(Collection<Long> ids) { public List<ErpWarehouseDO> getWarehouseList(Collection<Long> ids) {
return warehouseMapper.selectBatchIds(ids); return warehouseMapper.selectByIds(ids);
} }
@Override @Override
@ -122,4 +122,4 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService {
return warehouseMapper.selectPage(pageReqVO); return warehouseMapper.selectPage(pageReqVO);
} }
} }

View File

@ -155,7 +155,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void updateDeviceGroup(IotDeviceUpdateGroupReqVO updateReqVO) { public void updateDeviceGroup(IotDeviceUpdateGroupReqVO updateReqVO) {
// 1.1 校验设备存在 // 1.1 校验设备存在
List<IotDeviceDO> devices = deviceMapper.selectBatchIds(updateReqVO.getIds()); List<IotDeviceDO> devices = deviceMapper.selectByIds(updateReqVO.getIds());
if (CollUtil.isEmpty(devices)) { if (CollUtil.isEmpty(devices)) {
return; return;
} }
@ -193,7 +193,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return; return;
} }
List<IotDeviceDO> devices = deviceMapper.selectBatchIds(ids); List<IotDeviceDO> devices = deviceMapper.selectByIds(ids);
if (CollUtil.isEmpty(devices)) { if (CollUtil.isEmpty(devices)) {
return; return;
} }
@ -451,4 +451,4 @@ public class IotDeviceServiceImpl implements IotDeviceService {
)); ));
} }
} }

View File

@ -78,7 +78,7 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return CollUtil.newArrayList(); return CollUtil.newArrayList();
} }
return iotProductCategoryMapper.selectBatchIds(ids); return iotProductCategoryMapper.selectByIds(ids);
} }
@Override @Override
@ -120,4 +120,4 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService
return categoryDeviceCountMap; return categoryDeviceCountMap;
} }
} }

View File

@ -90,7 +90,7 @@ public class ProductBrandServiceImpl implements ProductBrandService {
@Override @Override
public List<ProductBrandDO> getBrandList(Collection<Long> ids) { public List<ProductBrandDO> getBrandList(Collection<Long> ids) {
return brandMapper.selectBatchIds(ids); return brandMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -109,7 +109,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
return; return;
} }
// 获得商品分类信息 // 获得商品分类信息
List<ProductCategoryDO> list = productCategoryMapper.selectBatchIds(ids); List<ProductCategoryDO> list = productCategoryMapper.selectByIds(ids);
Map<Long, ProductCategoryDO> categoryMap = CollectionUtils.convertMap(list, ProductCategoryDO::getId); Map<Long, ProductCategoryDO> categoryMap = CollectionUtils.convertMap(list, ProductCategoryDO::getId);
// 校验 // 校验
ids.forEach(id -> { ids.forEach(id -> {

View File

@ -106,7 +106,7 @@ public class ProductPropertyServiceImpl implements ProductPropertyService {
@Override @Override
public List<ProductPropertyDO> getPropertyList(Collection<Long> ids) { public List<ProductPropertyDO> getPropertyList(Collection<Long> ids) {
return productPropertyMapper.selectBatchIds(ids); return productPropertyMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -81,7 +81,7 @@ public class ProductSkuServiceImpl implements ProductSkuService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return productSkuMapper.selectBatchIds(ids); return productSkuMapper.selectByIds(ids);
} }
@Override @Override
@ -268,7 +268,7 @@ public class ProductSkuServiceImpl implements ProductSkuService {
}); });
// 更新 SPU 库存 // 更新 SPU 库存
List<ProductSkuDO> skus = productSkuMapper.selectBatchIds( List<ProductSkuDO> skus = productSkuMapper.selectByIds(
convertSet(updateStockReqDTO.getItems(), ProductSkuUpdateStockReqDTO.Item::getId)); convertSet(updateStockReqDTO.getItems(), ProductSkuUpdateStockReqDTO.Item::getId));
Map<Long, Integer> spuStockIncrCounts = ProductSkuConvert.INSTANCE.convertSpuStockMap( Map<Long, Integer> spuStockIncrCounts = ProductSkuConvert.INSTANCE.convertSpuStockMap(
updateStockReqDTO.getItems(), skus); updateStockReqDTO.getItems(), skus);

View File

@ -137,7 +137,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
return Collections.emptyList(); return Collections.emptyList();
} }
// 获得商品信息 // 获得商品信息
List<ProductSpuDO> list = productSpuMapper.selectBatchIds(ids); List<ProductSpuDO> list = productSpuMapper.selectByIds(ids);
Map<Long, ProductSpuDO> spuMap = CollectionUtils.convertMap(list, ProductSpuDO::getId); Map<Long, ProductSpuDO> spuMap = CollectionUtils.convertMap(list, ProductSpuDO::getId);
// 校验 // 校验
ids.forEach(id -> { ids.forEach(id -> {
@ -202,7 +202,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
Map<Long, ProductSpuDO> spuMap = convertMap(productSpuMapper.selectBatchIds(ids), ProductSpuDO::getId); Map<Long, ProductSpuDO> spuMap = convertMap(productSpuMapper.selectByIds(ids), ProductSpuDO::getId);
// 需要按照 ids 顺序返回例如说店铺装修选择了 [3, 1, 2] 三个商品返回结果还是 [3, 1, 2] 这样的顺序 // 需要按照 ids 顺序返回例如说店铺装修选择了 [3, 1, 2] 三个商品返回结果还是 [3, 1, 2] 这样的顺序
return convertList(ids, spuMap::get); return convertList(ids, spuMap::get);
} }

View File

@ -154,7 +154,7 @@ public class BargainActivityServiceImpl implements BargainActivityService {
@Override @Override
public List<BargainActivityDO> getBargainActivityList(Set<Long> ids) { public List<BargainActivityDO> getBargainActivityList(Set<Long> ids) {
return bargainActivityMapper.selectBatchIds(ids); return bargainActivityMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -132,7 +132,7 @@ public class CouponTemplateServiceImpl implements CouponTemplateService {
@Override @Override
public List<CouponTemplateDO> getCouponTemplateList(Collection<Long> ids) { public List<CouponTemplateDO> getCouponTemplateList(Collection<Long> ids) {
return couponTemplateMapper.selectBatchIds(ids); return couponTemplateMapper.selectByIds(ids);
} }
} }

View File

@ -104,7 +104,7 @@ public class DiyPageServiceImpl implements DiyPageService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return diyPageMapper.selectBatchIds(ids); return diyPageMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -132,7 +132,7 @@ public class SeckillConfigServiceImpl implements SeckillConfigService {
return; return;
} }
// 1. 如果有数量不匹配说明有不存在的则抛出 SECKILL_CONFIG_NOT_EXISTS 业务异常 // 1. 如果有数量不匹配说明有不存在的则抛出 SECKILL_CONFIG_NOT_EXISTS 业务异常
List<SeckillConfigDO> configs = seckillConfigMapper.selectBatchIds(ids); List<SeckillConfigDO> configs = seckillConfigMapper.selectByIds(ids);
if (configs.size() != ids.size()) { if (configs.size() != ids.size()) {
throw exception(SECKILL_CONFIG_NOT_EXISTS); throw exception(SECKILL_CONFIG_NOT_EXISTS);
} }

View File

@ -176,7 +176,7 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla
@Override @Override
public List<DeliveryExpressTemplateDO> getDeliveryExpressTemplateList(Collection<Long> ids) { public List<DeliveryExpressTemplateDO> getDeliveryExpressTemplateList(Collection<Long> ids) {
return expressTemplateMapper.selectBatchIds(ids); return expressTemplateMapper.selectByIds(ids);
} }
@Override @Override
@ -205,7 +205,7 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyMap(); return Collections.emptyMap();
} }
List<DeliveryExpressTemplateDO> templateList = expressTemplateMapper.selectBatchIds(ids); List<DeliveryExpressTemplateDO> templateList = expressTemplateMapper.selectByIds(ids);
// 查询 templateCharge 数组 // 查询 templateCharge 数组
List<DeliveryExpressTemplateChargeDO> chargeList = expressTemplateChargeMapper.selectByTemplateIds(ids); List<DeliveryExpressTemplateChargeDO> chargeList = expressTemplateChargeMapper.selectByTemplateIds(ids);
// 查询 templateFree 数组 // 查询 templateFree 数组

View File

@ -75,7 +75,7 @@ public class DeliveryPickUpStoreServiceImpl implements DeliveryPickUpStoreServic
@Override @Override
public List<DeliveryPickUpStoreDO> getDeliveryPickUpStoreList(Collection<Long> ids) { public List<DeliveryPickUpStoreDO> getDeliveryPickUpStoreList(Collection<Long> ids) {
return deliveryPickUpStoreMapper.selectBatchIds(ids); return deliveryPickUpStoreMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -84,7 +84,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return tradeOrderMapper.selectBatchIds(ids); return tradeOrderMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -87,7 +87,7 @@ public class MemberGroupServiceImpl implements MemberGroupService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return memberGroupMapper.selectBatchIds(ids); return memberGroupMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -169,7 +169,7 @@ public class MemberLevelServiceImpl implements MemberLevelService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return memberLevelMapper.selectBatchIds(ids); return memberLevelMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -109,7 +109,7 @@ public class MemberTagServiceImpl implements MemberTagService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return memberTagMapper.selectBatchIds(ids); return memberTagMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -137,7 +137,7 @@ public class MemberUserServiceImpl implements MemberUserService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return ListUtil.empty(); return ListUtil.empty();
} }
return memberUserMapper.selectBatchIds(ids); return memberUserMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -67,7 +67,7 @@ public class MpUserServiceImpl implements MpUserService {
@Override @Override
public List<MpUserDO> getUserList(Collection<Long> ids) { public List<MpUserDO> getUserList(Collection<Long> ids) {
return mpUserMapper.selectBatchIds(ids); return mpUserMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -121,7 +121,7 @@ public class PayAppServiceImpl implements PayAppService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return appMapper.selectBatchIds(ids); return appMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -89,7 +89,7 @@ public class PayOrderServiceImpl implements PayOrderService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return orderMapper.selectBatchIds(ids); return orderMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -159,7 +159,7 @@ public class DeptServiceImpl implements DeptService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return deptMapper.selectBatchIds(ids); return deptMapper.selectByIds(ids);
} }
@Override @Override

View File

@ -113,7 +113,7 @@ public class PostServiceImpl implements PostService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return postMapper.selectBatchIds(ids); return postMapper.selectByIds(ids);
} }
@Override @Override
@ -137,7 +137,7 @@ public class PostServiceImpl implements PostService {
return; return;
} }
// 获得岗位信息 // 获得岗位信息
List<PostDO> posts = postMapper.selectBatchIds(ids); List<PostDO> posts = postMapper.selectByIds(ids);
Map<Long, PostDO> postMap = convertMap(posts, PostDO::getId); Map<Long, PostDO> postMap = convertMap(posts, PostDO::getId);
// 校验 // 校验
ids.forEach(id -> { ids.forEach(id -> {

View File

@ -187,7 +187,7 @@ public class MenuServiceImpl implements MenuService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Lists.newArrayList(); return Lists.newArrayList();
} }
return menuMapper.selectBatchIds(ids); return menuMapper.selectByIds(ids);
} }
/** /**

View File

@ -200,7 +200,7 @@ public class RoleServiceImpl implements RoleService {
if (CollectionUtil.isEmpty(ids)) { if (CollectionUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return roleMapper.selectBatchIds(ids); return roleMapper.selectByIds(ids);
} }
@Override @Override
@ -236,7 +236,7 @@ public class RoleServiceImpl implements RoleService {
return; return;
} }
// 获得角色信息 // 获得角色信息
List<RoleDO> roles = roleMapper.selectBatchIds(ids); List<RoleDO> roles = roleMapper.selectByIds(ids);
Map<Long, RoleDO> roleMap = convertMap(roles, RoleDO::getId); Map<Long, RoleDO> roleMap = convertMap(roles, RoleDO::getId);
// 校验 // 校验
ids.forEach(id -> { ids.forEach(id -> {

View File

@ -54,7 +54,7 @@ public class SocialUserServiceImpl implements SocialUserService {
return Collections.emptyList(); return Collections.emptyList();
} }
// 获得社交用户 // 获得社交用户
return socialUserMapper.selectBatchIds(convertSet(socialUserBinds, SocialUserBindDO::getSocialUserId)); return socialUserMapper.selectByIds(convertSet(socialUserBinds, SocialUserBindDO::getSocialUserId));
} }
@Override @Override

View File

@ -291,7 +291,7 @@ public class AdminUserServiceImpl implements AdminUserService {
if (CollUtil.isEmpty(userIds)) { if (CollUtil.isEmpty(userIds)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return userMapper.selectBatchIds(userIds); return userMapper.selectByIds(userIds);
} }
@Override @Override
@ -299,7 +299,7 @@ public class AdminUserServiceImpl implements AdminUserService {
if (CollUtil.isEmpty(ids)) { if (CollUtil.isEmpty(ids)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return userMapper.selectBatchIds(ids); return userMapper.selectByIds(ids);
} }
@Override @Override
@ -308,7 +308,7 @@ public class AdminUserServiceImpl implements AdminUserService {
return; return;
} }
// 获得岗位信息 // 获得岗位信息
List<AdminUserDO> users = userMapper.selectBatchIds(ids); List<AdminUserDO> users = userMapper.selectByIds(ids);
Map<Long, AdminUserDO> userMap = CollectionUtils.convertMap(users, AdminUserDO::getId); Map<Long, AdminUserDO> userMap = CollectionUtils.convertMap(users, AdminUserDO::getId);
// 校验 // 校验
ids.forEach(id -> { ids.forEach(id -> {