Commit 5caf99092018eb75843be991a42b35c651517d63

Authored by xingyu4j
1 parent 837f1556

fix: selectBatchIds 已过期

Showing 63 changed files with 101 additions and 101 deletions
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageServiceImpl.java
@@ -89,7 +89,7 @@ public class AiImageServiceImpl implements AiImageService { @@ -89,7 +89,7 @@ public class AiImageServiceImpl implements AiImageService {
89 if (CollUtil.isEmpty(ids)) { 89 if (CollUtil.isEmpty(ids)) {
90 return Collections.emptyList(); 90 return Collections.emptyList();
91 } 91 }
92 - return imageMapper.selectBatchIds(ids); 92 + return imageMapper.selectByIds(ids);
93 } 93 }
94 94
95 @Override 95 @Override
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/service/knowledge/AiKnowledgeDocumentServiceImpl.java
@@ -200,7 +200,7 @@ public class AiKnowledgeDocumentServiceImpl implements AiKnowledgeDocumentServic @@ -200,7 +200,7 @@ public class AiKnowledgeDocumentServiceImpl implements AiKnowledgeDocumentServic
200 if (CollUtil.isEmpty(ids)) { 200 if (CollUtil.isEmpty(ids)) {
201 return Collections.emptyList(); 201 return Collections.emptyList();
202 } 202 }
203 - return knowledgeDocumentMapper.selectBatchIds(ids); 203 + return knowledgeDocumentMapper.selectByIds(ids);
204 } 204 }
205 205
206 @Override 206 @Override
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/service/knowledge/AiKnowledgeSegmentServiceImpl.java
@@ -351,7 +351,7 @@ public class AiKnowledgeSegmentServiceImpl implements AiKnowledgeSegmentService @@ -351,7 +351,7 @@ public class AiKnowledgeSegmentServiceImpl implements AiKnowledgeSegmentService
351 if (CollUtil.isEmpty(ids)) { 351 if (CollUtil.isEmpty(ids)) {
352 return Collections.emptyList(); 352 return Collections.emptyList();
353 } 353 }
354 - return segmentMapper.selectBatchIds(ids); 354 + return segmentMapper.selectByIds(ids);
355 } 355 }
356 356
357 } 357 }
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/service/model/AiChatRoleServiceImpl.java
@@ -163,7 +163,7 @@ public class AiChatRoleServiceImpl implements AiChatRoleService { @@ -163,7 +163,7 @@ public class AiChatRoleServiceImpl implements AiChatRoleService {
163 if (CollUtil.isEmpty(ids)) { 163 if (CollUtil.isEmpty(ids)) {
164 return Collections.emptyList(); 164 return Collections.emptyList();
165 } 165 }
166 - return chatRoleMapper.selectBatchIds(ids); 166 + return chatRoleMapper.selectByIds(ids);
167 } 167 }
168 168
169 @Override 169 @Override
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/service/model/AiToolServiceImpl.java
@@ -84,7 +84,7 @@ public class AiToolServiceImpl implements AiToolService { @@ -84,7 +84,7 @@ public class AiToolServiceImpl implements AiToolService {
84 84
85 @Override 85 @Override
86 public List<AiToolDO> getToolList(Collection<Long> ids) { 86 public List<AiToolDO> getToolList(Collection<Long> ids) {
87 - return toolMapper.selectBatchIds(ids); 87 + return toolMapper.selectByIds(ids);
88 } 88 }
89 89
90 @Override 90 @Override
@@ -97,4 +97,4 @@ public class AiToolServiceImpl implements AiToolService { @@ -97,4 +97,4 @@ public class AiToolServiceImpl implements AiToolService {
97 return toolMapper.selectListByStatus(status); 97 return toolMapper.selectListByStatus(status);
98 } 98 }
99 99
100 -}  
101 \ No newline at end of file 100 \ No newline at end of file
  101 +}
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/service/definition/BpmFormServiceImpl.java
@@ -80,7 +80,7 @@ public class BpmFormServiceImpl implements BpmFormService { @@ -80,7 +80,7 @@ public class BpmFormServiceImpl implements BpmFormService {
80 if (CollUtil.isEmpty(ids)) { 80 if (CollUtil.isEmpty(ids)) {
81 return Collections.emptyList(); 81 return Collections.emptyList();
82 } 82 }
83 - return formMapper.selectBatchIds(ids); 83 + return formMapper.selectByIds(ids);
84 } 84 }
85 85
86 @Override 86 @Override
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/service/definition/BpmUserGroupServiceImpl.java
@@ -70,7 +70,7 @@ public class BpmUserGroupServiceImpl implements BpmUserGroupService { @@ -70,7 +70,7 @@ public class BpmUserGroupServiceImpl implements BpmUserGroupService {
70 70
71 @Override 71 @Override
72 public List<BpmUserGroupDO> getUserGroupList(Collection<Long> ids) { 72 public List<BpmUserGroupDO> getUserGroupList(Collection<Long> ids) {
73 - return userGroupMapper.selectBatchIds(ids); 73 + return userGroupMapper.selectByIds(ids);
74 } 74 }
75 75
76 76
@@ -90,7 +90,7 @@ public class BpmUserGroupServiceImpl implements BpmUserGroupService { @@ -90,7 +90,7 @@ public class BpmUserGroupServiceImpl implements BpmUserGroupService {
90 return; 90 return;
91 } 91 }
92 // 获得用户组信息 92 // 获得用户组信息
93 - List<BpmUserGroupDO> userGroups = userGroupMapper.selectBatchIds(ids); 93 + List<BpmUserGroupDO> userGroups = userGroupMapper.selectByIds(ids);
94 Map<Long, BpmUserGroupDO> userGroupMap = convertMap(userGroups, BpmUserGroupDO::getId); 94 Map<Long, BpmUserGroupDO> userGroupMap = convertMap(userGroups, BpmUserGroupDO::getId);
95 // 校验 95 // 校验
96 ids.forEach(id -> { 96 ids.forEach(id -> {
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessServiceImpl.java
@@ -328,7 +328,7 @@ public class CrmBusinessServiceImpl implements CrmBusinessService { @@ -328,7 +328,7 @@ public class CrmBusinessServiceImpl implements CrmBusinessService {
328 if (CollUtil.isEmpty(ids)) { 328 if (CollUtil.isEmpty(ids)) {
329 return ListUtil.empty(); 329 return ListUtil.empty();
330 } 330 }
331 - return businessMapper.selectBatchIds(ids); 331 + return businessMapper.selectByIds(ids);
332 } 332 }
333 333
334 @Override 334 @Override
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessStatusServiceImpl.java
@@ -160,7 +160,7 @@ public class CrmBusinessStatusServiceImpl implements CrmBusinessStatusService { @@ -160,7 +160,7 @@ public class CrmBusinessStatusServiceImpl implements CrmBusinessStatusService {
160 if (CollUtil.isEmpty(ids)) { 160 if (CollUtil.isEmpty(ids)) {
161 return Collections.emptyList(); 161 return Collections.emptyList();
162 } 162 }
163 - return businessStatusTypeMapper.selectBatchIds(ids); 163 + return businessStatusTypeMapper.selectByIds(ids);
164 } 164 }
165 165
166 @Override 166 @Override
@@ -175,7 +175,7 @@ public class CrmBusinessStatusServiceImpl implements CrmBusinessStatusService { @@ -175,7 +175,7 @@ public class CrmBusinessStatusServiceImpl implements CrmBusinessStatusService {
175 if (CollUtil.isEmpty(ids)) { 175 if (CollUtil.isEmpty(ids)) {
176 return Collections.emptyList(); 176 return Collections.emptyList();
177 } 177 }
178 - return businessStatusMapper.selectBatchIds(ids); 178 + return businessStatusMapper.selectByIds(ids);
179 } 179 }
180 180
181 @Override 181 @Override
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contact/CrmContactServiceImpl.java
@@ -262,7 +262,7 @@ public class CrmContactServiceImpl implements CrmContactService { @@ -262,7 +262,7 @@ public class CrmContactServiceImpl implements CrmContactService {
262 if (CollUtil.isEmpty(ids)) { 262 if (CollUtil.isEmpty(ids)) {
263 return ListUtil.empty(); 263 return ListUtil.empty();
264 } 264 }
265 - return contactMapper.selectBatchIds(ids); 265 + return contactMapper.selectByIds(ids);
266 } 266 }
267 267
268 @Override 268 @Override
@@ -303,4 +303,4 @@ public class CrmContactServiceImpl implements CrmContactService { @@ -303,4 +303,4 @@ public class CrmContactServiceImpl implements CrmContactService {
303 return contactMapper.selectListByCustomerIdOwnerUserId(customerId, ownerUserId); 303 return contactMapper.selectListByCustomerIdOwnerUserId(customerId, ownerUserId);
304 } 304 }
305 305
306 -}  
307 \ No newline at end of file 306 \ No newline at end of file
  307 +}
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/contract/CrmContractServiceImpl.java
@@ -341,7 +341,7 @@ public class CrmContractServiceImpl implements CrmContractService { @@ -341,7 +341,7 @@ public class CrmContractServiceImpl implements CrmContractService {
341 if (CollUtil.isEmpty(ids)) { 341 if (CollUtil.isEmpty(ids)) {
342 return ListUtil.empty(); 342 return ListUtil.empty();
343 } 343 }
344 - return contractMapper.selectBatchIds(ids); 344 + return contractMapper.selectByIds(ids);
345 } 345 }
346 346
347 @Override 347 @Override
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/customer/CrmCustomerServiceImpl.java
@@ -392,7 +392,7 @@ public class CrmCustomerServiceImpl implements CrmCustomerService { @@ -392,7 +392,7 @@ public class CrmCustomerServiceImpl implements CrmCustomerService {
392 @Transactional(rollbackFor = Exception.class) 392 @Transactional(rollbackFor = Exception.class)
393 public void receiveCustomer(List<Long> ids, Long ownerUserId, Boolean isReceive) { 393 public void receiveCustomer(List<Long> ids, Long ownerUserId, Boolean isReceive) {
394 // 1.1 校验存在 394 // 1.1 校验存在
395 - List<CrmCustomerDO> customers = customerMapper.selectBatchIds(ids); 395 + List<CrmCustomerDO> customers = customerMapper.selectByIds(ids);
396 if (customers.size() != ids.size()) { 396 if (customers.size() != ids.size()) {
397 throw exception(CUSTOMER_NOT_EXISTS); 397 throw exception(CUSTOMER_NOT_EXISTS);
398 } 398 }
@@ -496,7 +496,7 @@ public class CrmCustomerServiceImpl implements CrmCustomerService { @@ -496,7 +496,7 @@ public class CrmCustomerServiceImpl implements CrmCustomerService {
496 if (CollUtil.isEmpty(ids)) { 496 if (CollUtil.isEmpty(ids)) {
497 return Collections.emptyList(); 497 return Collections.emptyList();
498 } 498 }
499 - return customerMapper.selectBatchIds(ids); 499 + return customerMapper.selectByIds(ids);
500 } 500 }
501 501
502 @Override 502 @Override
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/permission/CrmPermissionServiceImpl.java
@@ -187,7 +187,7 @@ public class CrmPermissionServiceImpl implements CrmPermissionService { @@ -187,7 +187,7 @@ public class CrmPermissionServiceImpl implements CrmPermissionService {
187 } 187 }
188 188
189 private void validatePermissionExists(Collection<Long> ids) { 189 private void validatePermissionExists(Collection<Long> ids) {
190 - List<CrmPermissionDO> permissionList = permissionMapper.selectBatchIds(ids); 190 + List<CrmPermissionDO> permissionList = permissionMapper.selectByIds(ids);
191 if (ObjUtil.notEqual(permissionList.size(), ids.size())) { 191 if (ObjUtil.notEqual(permissionList.size(), ids.size())) {
192 throw exception(CRM_PERMISSION_NOT_EXISTS); 192 throw exception(CRM_PERMISSION_NOT_EXISTS);
193 } 193 }
@@ -268,7 +268,7 @@ public class CrmPermissionServiceImpl implements CrmPermissionService { @@ -268,7 +268,7 @@ public class CrmPermissionServiceImpl implements CrmPermissionService {
268 268
269 @Override 269 @Override
270 public void deletePermissionBatch(Collection<Long> ids, Long userId) { 270 public void deletePermissionBatch(Collection<Long> ids, Long userId) {
271 - List<CrmPermissionDO> permissions = permissionMapper.selectBatchIds(ids); 271 + List<CrmPermissionDO> permissions = permissionMapper.selectByIds(ids);
272 if (CollUtil.isEmpty(permissions)) { 272 if (CollUtil.isEmpty(permissions)) {
273 throw exception(CRM_PERMISSION_NOT_EXISTS); 273 throw exception(CRM_PERMISSION_NOT_EXISTS);
274 } 274 }
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/product/CrmProductCategoryServiceImpl.java
@@ -132,7 +132,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService @@ -132,7 +132,7 @@ public class CrmProductCategoryServiceImpl implements CrmProductCategoryService
132 132
133 @Override 133 @Override
134 public List<CrmProductCategoryDO> getProductCategoryList(Collection<Long> ids) { 134 public List<CrmProductCategoryDO> getProductCategoryList(Collection<Long> ids) {
135 - return productCategoryMapper.selectBatchIds(ids); 135 + return productCategoryMapper.selectByIds(ids);
136 } 136 }
137 137
138 } 138 }
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/product/CrmProductServiceImpl.java
@@ -158,7 +158,7 @@ public class CrmProductServiceImpl implements CrmProductService { @@ -158,7 +158,7 @@ public class CrmProductServiceImpl implements CrmProductService {
158 if (CollUtil.isEmpty(ids)) { 158 if (CollUtil.isEmpty(ids)) {
159 return Collections.emptyList(); 159 return Collections.emptyList();
160 } 160 }
161 - List<CrmProductDO> list = productMapper.selectBatchIds(ids); 161 + List<CrmProductDO> list = productMapper.selectByIds(ids);
162 Map<Long, CrmProductDO> productMap = convertMap(list, CrmProductDO::getId); 162 Map<Long, CrmProductDO> productMap = convertMap(list, CrmProductDO::getId);
163 for (Long id : ids) { 163 for (Long id : ids) {
164 CrmProductDO product = productMap.get(id); 164 CrmProductDO product = productMap.get(id);
@@ -177,7 +177,7 @@ public class CrmProductServiceImpl implements CrmProductService { @@ -177,7 +177,7 @@ public class CrmProductServiceImpl implements CrmProductService {
177 if (CollUtil.isEmpty(ids)) { 177 if (CollUtil.isEmpty(ids)) {
178 return Collections.emptyList(); 178 return Collections.emptyList();
179 } 179 }
180 - return productMapper.selectBatchIds(ids); 180 + return productMapper.selectByIds(ids);
181 } 181 }
182 182
183 } 183 }
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/receivable/CrmReceivablePlanServiceImpl.java
@@ -165,7 +165,7 @@ public class CrmReceivablePlanServiceImpl implements CrmReceivablePlanService { @@ -165,7 +165,7 @@ public class CrmReceivablePlanServiceImpl implements CrmReceivablePlanService {
165 if (CollUtil.isEmpty(ids)) { 165 if (CollUtil.isEmpty(ids)) {
166 return ListUtil.empty(); 166 return ListUtil.empty();
167 } 167 }
168 - return receivablePlanMapper.selectBatchIds(ids); 168 + return receivablePlanMapper.selectByIds(ids);
169 } 169 }
170 170
171 @Override 171 @Override
yudao-module-crm/src/main/java/cn/iocoder/yudao/module/crm/service/receivable/CrmReceivableServiceImpl.java
@@ -277,7 +277,7 @@ public class CrmReceivableServiceImpl implements CrmReceivableService { @@ -277,7 +277,7 @@ public class CrmReceivableServiceImpl implements CrmReceivableService {
277 if (CollUtil.isEmpty(ids)) { 277 if (CollUtil.isEmpty(ids)) {
278 return ListUtil.empty(); 278 return ListUtil.empty();
279 } 279 }
280 - return receivableMapper.selectBatchIds(ids); 280 + return receivableMapper.selectByIds(ids);
281 } 281 }
282 282
283 @Override 283 @Override
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/finance/ErpAccountServiceImpl.java
@@ -101,7 +101,7 @@ public class ErpAccountServiceImpl implements ErpAccountService { @@ -101,7 +101,7 @@ public class ErpAccountServiceImpl implements ErpAccountService {
101 101
102 @Override 102 @Override
103 public List<ErpAccountDO> getAccountList(Collection<Long> ids) { 103 public List<ErpAccountDO> getAccountList(Collection<Long> ids) {
104 - return accountMapper.selectBatchIds(ids); 104 + return accountMapper.selectByIds(ids);
105 } 105 }
106 106
107 @Override 107 @Override
@@ -109,4 +109,4 @@ public class ErpAccountServiceImpl implements ErpAccountService { @@ -109,4 +109,4 @@ public class ErpAccountServiceImpl implements ErpAccountService {
109 return accountMapper.selectPage(pageReqVO); 109 return accountMapper.selectPage(pageReqVO);
110 } 110 }
111 111
112 -}  
113 \ No newline at end of file 112 \ No newline at end of file
  113 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/finance/ErpFinancePaymentServiceImpl.java
@@ -214,7 +214,7 @@ public class ErpFinancePaymentServiceImpl implements ErpFinancePaymentService { @@ -214,7 +214,7 @@ public class ErpFinancePaymentServiceImpl implements ErpFinancePaymentService {
214 @Transactional(rollbackFor = Exception.class) 214 @Transactional(rollbackFor = Exception.class)
215 public void deleteFinancePayment(List<Long> ids) { 215 public void deleteFinancePayment(List<Long> ids) {
216 // 1. 校验不处于已审批 216 // 1. 校验不处于已审批
217 - List<ErpFinancePaymentDO> payments = financePaymentMapper.selectBatchIds(ids); 217 + List<ErpFinancePaymentDO> payments = financePaymentMapper.selectByIds(ids);
218 if (CollUtil.isEmpty(payments)) { 218 if (CollUtil.isEmpty(payments)) {
219 return; 219 return;
220 } 220 }
@@ -270,4 +270,4 @@ public class ErpFinancePaymentServiceImpl implements ErpFinancePaymentService { @@ -270,4 +270,4 @@ public class ErpFinancePaymentServiceImpl implements ErpFinancePaymentService {
270 return financePaymentItemMapper.selectListByPaymentIds(paymentIds); 270 return financePaymentItemMapper.selectListByPaymentIds(paymentIds);
271 } 271 }
272 272
273 -}  
274 \ No newline at end of file 273 \ No newline at end of file
  274 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/finance/ErpFinanceReceiptServiceImpl.java
@@ -214,7 +214,7 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService { @@ -214,7 +214,7 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService {
214 @Transactional(rollbackFor = Exception.class) 214 @Transactional(rollbackFor = Exception.class)
215 public void deleteFinanceReceipt(List<Long> ids) { 215 public void deleteFinanceReceipt(List<Long> ids) {
216 // 1. 校验不处于已审批 216 // 1. 校验不处于已审批
217 - List<ErpFinanceReceiptDO> receipts = financeReceiptMapper.selectBatchIds(ids); 217 + List<ErpFinanceReceiptDO> receipts = financeReceiptMapper.selectByIds(ids);
218 if (CollUtil.isEmpty(receipts)) { 218 if (CollUtil.isEmpty(receipts)) {
219 return; 219 return;
220 } 220 }
@@ -270,4 +270,4 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService { @@ -270,4 +270,4 @@ public class ErpFinanceReceiptServiceImpl implements ErpFinanceReceiptService {
270 return financeReceiptItemMapper.selectListByReceiptIds(receiptIds); 270 return financeReceiptItemMapper.selectListByReceiptIds(receiptIds);
271 } 271 }
272 272
273 -}  
274 \ No newline at end of file 273 \ No newline at end of file
  274 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/product/ErpProductCategoryServiceImpl.java
@@ -143,7 +143,7 @@ public class ErpProductCategoryServiceImpl implements ErpProductCategoryService @@ -143,7 +143,7 @@ public class ErpProductCategoryServiceImpl implements ErpProductCategoryService
143 143
144 @Override 144 @Override
145 public List<ErpProductCategoryDO> getProductCategoryList(Collection<Long> ids) { 145 public List<ErpProductCategoryDO> getProductCategoryList(Collection<Long> ids) {
146 - return erpProductCategoryMapper.selectBatchIds(ids); 146 + return erpProductCategoryMapper.selectByIds(ids);
147 } 147 }
148 148
149 -}  
150 \ No newline at end of file 149 \ No newline at end of file
  150 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/product/ErpProductServiceImpl.java
@@ -72,7 +72,7 @@ public class ErpProductServiceImpl implements ErpProductService { @@ -72,7 +72,7 @@ public class ErpProductServiceImpl implements ErpProductService {
72 if (CollUtil.isEmpty(ids)) { 72 if (CollUtil.isEmpty(ids)) {
73 return Collections.emptyList(); 73 return Collections.emptyList();
74 } 74 }
75 - List<ErpProductDO> list = productMapper.selectBatchIds(ids); 75 + List<ErpProductDO> list = productMapper.selectByIds(ids);
76 Map<Long, ErpProductDO> productMap = convertMap(list, ErpProductDO::getId); 76 Map<Long, ErpProductDO> productMap = convertMap(list, ErpProductDO::getId);
77 for (Long id : ids) { 77 for (Long id : ids) {
78 ErpProductDO product = productMap.get(id); 78 ErpProductDO product = productMap.get(id);
@@ -108,7 +108,7 @@ public class ErpProductServiceImpl implements ErpProductService { @@ -108,7 +108,7 @@ public class ErpProductServiceImpl implements ErpProductService {
108 if (CollUtil.isEmpty(ids)) { 108 if (CollUtil.isEmpty(ids)) {
109 return Collections.emptyList(); 109 return Collections.emptyList();
110 } 110 }
111 - List<ErpProductDO> list = productMapper.selectBatchIds(ids); 111 + List<ErpProductDO> list = productMapper.selectByIds(ids);
112 return buildProductVOList(list); 112 return buildProductVOList(list);
113 } 113 }
114 114
@@ -144,4 +144,4 @@ public class ErpProductServiceImpl implements ErpProductService { @@ -144,4 +144,4 @@ public class ErpProductServiceImpl implements ErpProductService {
144 return productMapper.selectCountByUnitId(unitId); 144 return productMapper.selectCountByUnitId(unitId);
145 } 145 }
146 146
147 -}  
148 \ No newline at end of file 147 \ No newline at end of file
  148 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/product/ErpProductUnitServiceImpl.java
@@ -105,7 +105,7 @@ public class ErpProductUnitServiceImpl implements ErpProductUnitService { @@ -105,7 +105,7 @@ public class ErpProductUnitServiceImpl implements ErpProductUnitService {
105 105
106 @Override 106 @Override
107 public List<ErpProductUnitDO> getProductUnitList(Collection<Long> ids) { 107 public List<ErpProductUnitDO> getProductUnitList(Collection<Long> ids) {
108 - return productUnitMapper.selectBatchIds(ids); 108 + return productUnitMapper.selectByIds(ids);
109 } 109 }
110 110
111 -}  
112 \ No newline at end of file 111 \ No newline at end of file
  112 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/purchase/ErpPurchaseInServiceImpl.java
@@ -240,7 +240,7 @@ public class ErpPurchaseInServiceImpl implements ErpPurchaseInService { @@ -240,7 +240,7 @@ public class ErpPurchaseInServiceImpl implements ErpPurchaseInService {
240 @Transactional(rollbackFor = Exception.class) 240 @Transactional(rollbackFor = Exception.class)
241 public void deletePurchaseIn(List<Long> ids) { 241 public void deletePurchaseIn(List<Long> ids) {
242 // 1. 校验不处于已审批 242 // 1. 校验不处于已审批
243 - List<ErpPurchaseInDO> purchaseIns = purchaseInMapper.selectBatchIds(ids); 243 + List<ErpPurchaseInDO> purchaseIns = purchaseInMapper.selectByIds(ids);
244 if (CollUtil.isEmpty(purchaseIns)) { 244 if (CollUtil.isEmpty(purchaseIns)) {
245 return; 245 return;
246 } 246 }
@@ -305,4 +305,4 @@ public class ErpPurchaseInServiceImpl implements ErpPurchaseInService { @@ -305,4 +305,4 @@ public class ErpPurchaseInServiceImpl implements ErpPurchaseInService {
305 return purchaseInItemMapper.selectListByInIds(inIds); 305 return purchaseInItemMapper.selectListByInIds(inIds);
306 } 306 }
307 307
308 -}  
309 \ No newline at end of file 308 \ No newline at end of file
  309 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/purchase/ErpPurchaseOrderServiceImpl.java
@@ -231,7 +231,7 @@ public class ErpPurchaseOrderServiceImpl implements ErpPurchaseOrderService { @@ -231,7 +231,7 @@ public class ErpPurchaseOrderServiceImpl implements ErpPurchaseOrderService {
231 @Transactional(rollbackFor = Exception.class) 231 @Transactional(rollbackFor = Exception.class)
232 public void deletePurchaseOrder(List<Long> ids) { 232 public void deletePurchaseOrder(List<Long> ids) {
233 // 1. 校验不处于已审批 233 // 1. 校验不处于已审批
234 - List<ErpPurchaseOrderDO> purchaseOrders = purchaseOrderMapper.selectBatchIds(ids); 234 + List<ErpPurchaseOrderDO> purchaseOrders = purchaseOrderMapper.selectByIds(ids);
235 if (CollUtil.isEmpty(purchaseOrders)) { 235 if (CollUtil.isEmpty(purchaseOrders)) {
236 return; 236 return;
237 } 237 }
@@ -292,4 +292,4 @@ public class ErpPurchaseOrderServiceImpl implements ErpPurchaseOrderService { @@ -292,4 +292,4 @@ public class ErpPurchaseOrderServiceImpl implements ErpPurchaseOrderService {
292 return purchaseOrderItemMapper.selectListByOrderIds(orderIds); 292 return purchaseOrderItemMapper.selectListByOrderIds(orderIds);
293 } 293 }
294 294
295 -}  
296 \ No newline at end of file 295 \ No newline at end of file
  296 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/purchase/ErpPurchaseReturnServiceImpl.java
@@ -236,7 +236,7 @@ public class ErpPurchaseReturnServiceImpl implements ErpPurchaseReturnService { @@ -236,7 +236,7 @@ public class ErpPurchaseReturnServiceImpl implements ErpPurchaseReturnService {
236 @Transactional(rollbackFor = Exception.class) 236 @Transactional(rollbackFor = Exception.class)
237 public void deletePurchaseReturn(List<Long> ids) { 237 public void deletePurchaseReturn(List<Long> ids) {
238 // 1. 校验不处于已审批 238 // 1. 校验不处于已审批
239 - List<ErpPurchaseReturnDO> purchaseReturns = purchaseReturnMapper.selectBatchIds(ids); 239 + List<ErpPurchaseReturnDO> purchaseReturns = purchaseReturnMapper.selectByIds(ids);
240 if (CollUtil.isEmpty(purchaseReturns)) { 240 if (CollUtil.isEmpty(purchaseReturns)) {
241 return; 241 return;
242 } 242 }
@@ -301,4 +301,4 @@ public class ErpPurchaseReturnServiceImpl implements ErpPurchaseReturnService { @@ -301,4 +301,4 @@ public class ErpPurchaseReturnServiceImpl implements ErpPurchaseReturnService {
301 return purchaseReturnItemMapper.selectListByReturnIds(returnIds); 301 return purchaseReturnItemMapper.selectListByReturnIds(returnIds);
302 } 302 }
303 303
304 -}  
305 \ No newline at end of file 304 \ No newline at end of file
  305 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/purchase/ErpSupplierServiceImpl.java
@@ -78,7 +78,7 @@ public class ErpSupplierServiceImpl implements ErpSupplierService { @@ -78,7 +78,7 @@ public class ErpSupplierServiceImpl implements ErpSupplierService {
78 78
79 @Override 79 @Override
80 public List<ErpSupplierDO> getSupplierList(Collection<Long> ids) { 80 public List<ErpSupplierDO> getSupplierList(Collection<Long> ids) {
81 - return supplierMapper.selectBatchIds(ids); 81 + return supplierMapper.selectByIds(ids);
82 } 82 }
83 83
84 @Override 84 @Override
@@ -91,4 +91,4 @@ public class ErpSupplierServiceImpl implements ErpSupplierService { @@ -91,4 +91,4 @@ public class ErpSupplierServiceImpl implements ErpSupplierService {
91 return supplierMapper.selectListByStatus(status); 91 return supplierMapper.selectListByStatus(status);
92 } 92 }
93 93
94 -}  
95 \ No newline at end of file 94 \ No newline at end of file
  95 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/sale/ErpCustomerServiceImpl.java
@@ -81,7 +81,7 @@ public class ErpCustomerServiceImpl implements ErpCustomerService { @@ -81,7 +81,7 @@ public class ErpCustomerServiceImpl implements ErpCustomerService {
81 81
82 @Override 82 @Override
83 public List<ErpCustomerDO> getCustomerList(Collection<Long> ids) { 83 public List<ErpCustomerDO> getCustomerList(Collection<Long> ids) {
84 - return customerMapper.selectBatchIds(ids); 84 + return customerMapper.selectByIds(ids);
85 } 85 }
86 86
87 @Override 87 @Override
@@ -94,4 +94,4 @@ public class ErpCustomerServiceImpl implements ErpCustomerService { @@ -94,4 +94,4 @@ public class ErpCustomerServiceImpl implements ErpCustomerService {
94 return customerMapper.selectListByStatus(status); 94 return customerMapper.selectListByStatus(status);
95 } 95 }
96 96
97 -}  
98 \ No newline at end of file 97 \ No newline at end of file
  98 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/sale/ErpSaleOrderServiceImpl.java
@@ -243,7 +243,7 @@ public class ErpSaleOrderServiceImpl implements ErpSaleOrderService { @@ -243,7 +243,7 @@ public class ErpSaleOrderServiceImpl implements ErpSaleOrderService {
243 @Transactional(rollbackFor = Exception.class) 243 @Transactional(rollbackFor = Exception.class)
244 public void deleteSaleOrder(List<Long> ids) { 244 public void deleteSaleOrder(List<Long> ids) {
245 // 1. 校验不处于已审批 245 // 1. 校验不处于已审批
246 - List<ErpSaleOrderDO> saleOrders = saleOrderMapper.selectBatchIds(ids); 246 + List<ErpSaleOrderDO> saleOrders = saleOrderMapper.selectByIds(ids);
247 if (CollUtil.isEmpty(saleOrders)) { 247 if (CollUtil.isEmpty(saleOrders)) {
248 return; 248 return;
249 } 249 }
@@ -304,4 +304,4 @@ public class ErpSaleOrderServiceImpl implements ErpSaleOrderService { @@ -304,4 +304,4 @@ public class ErpSaleOrderServiceImpl implements ErpSaleOrderService {
304 return saleOrderItemMapper.selectListByOrderIds(orderIds); 304 return saleOrderItemMapper.selectListByOrderIds(orderIds);
305 } 305 }
306 306
307 -}  
308 \ No newline at end of file 307 \ No newline at end of file
  308 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/sale/ErpSaleOutServiceImpl.java
@@ -248,7 +248,7 @@ public class ErpSaleOutServiceImpl implements ErpSaleOutService { @@ -248,7 +248,7 @@ public class ErpSaleOutServiceImpl implements ErpSaleOutService {
248 @Transactional(rollbackFor = Exception.class) 248 @Transactional(rollbackFor = Exception.class)
249 public void deleteSaleOut(List<Long> ids) { 249 public void deleteSaleOut(List<Long> ids) {
250 // 1. 校验不处于已审批 250 // 1. 校验不处于已审批
251 - List<ErpSaleOutDO> saleOuts = saleOutMapper.selectBatchIds(ids); 251 + List<ErpSaleOutDO> saleOuts = saleOutMapper.selectByIds(ids);
252 if (CollUtil.isEmpty(saleOuts)) { 252 if (CollUtil.isEmpty(saleOuts)) {
253 return; 253 return;
254 } 254 }
@@ -313,4 +313,4 @@ public class ErpSaleOutServiceImpl implements ErpSaleOutService { @@ -313,4 +313,4 @@ public class ErpSaleOutServiceImpl implements ErpSaleOutService {
313 return saleOutItemMapper.selectListByOutIds(outIds); 313 return saleOutItemMapper.selectListByOutIds(outIds);
314 } 314 }
315 315
316 -}  
317 \ No newline at end of file 316 \ No newline at end of file
  317 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/sale/ErpSaleReturnServiceImpl.java
@@ -248,7 +248,7 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService { @@ -248,7 +248,7 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService {
248 @Transactional(rollbackFor = Exception.class) 248 @Transactional(rollbackFor = Exception.class)
249 public void deleteSaleReturn(List<Long> ids) { 249 public void deleteSaleReturn(List<Long> ids) {
250 // 1. 校验不处于已审批 250 // 1. 校验不处于已审批
251 - List<ErpSaleReturnDO> saleReturns = saleReturnMapper.selectBatchIds(ids); 251 + List<ErpSaleReturnDO> saleReturns = saleReturnMapper.selectByIds(ids);
252 if (CollUtil.isEmpty(saleReturns)) { 252 if (CollUtil.isEmpty(saleReturns)) {
253 return; 253 return;
254 } 254 }
@@ -313,4 +313,4 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService { @@ -313,4 +313,4 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService {
313 return saleReturnItemMapper.selectListByReturnIds(returnIds); 313 return saleReturnItemMapper.selectListByReturnIds(returnIds);
314 } 314 }
315 315
316 -}  
317 \ No newline at end of file 316 \ No newline at end of file
  317 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/stock/ErpStockCheckServiceImpl.java
@@ -177,7 +177,7 @@ public class ErpStockCheckServiceImpl implements ErpStockCheckService { @@ -177,7 +177,7 @@ public class ErpStockCheckServiceImpl implements ErpStockCheckService {
177 @Transactional(rollbackFor = Exception.class) 177 @Transactional(rollbackFor = Exception.class)
178 public void deleteStockCheck(List<Long> ids) { 178 public void deleteStockCheck(List<Long> ids) {
179 // 1. 校验不处于已审批 179 // 1. 校验不处于已审批
180 - List<ErpStockCheckDO> stockChecks = stockCheckMapper.selectBatchIds(ids); 180 + List<ErpStockCheckDO> stockChecks = stockCheckMapper.selectByIds(ids);
181 if (CollUtil.isEmpty(stockChecks)) { 181 if (CollUtil.isEmpty(stockChecks)) {
182 return; 182 return;
183 } 183 }
@@ -229,4 +229,4 @@ public class ErpStockCheckServiceImpl implements ErpStockCheckService { @@ -229,4 +229,4 @@ public class ErpStockCheckServiceImpl implements ErpStockCheckService {
229 return stockCheckItemMapper.selectListByCheckIds(checkIds); 229 return stockCheckItemMapper.selectListByCheckIds(checkIds);
230 } 230 }
231 231
232 -}  
233 \ No newline at end of file 232 \ No newline at end of file
  233 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/stock/ErpStockInServiceImpl.java
@@ -173,7 +173,7 @@ public class ErpStockInServiceImpl implements ErpStockInService { @@ -173,7 +173,7 @@ public class ErpStockInServiceImpl implements ErpStockInService {
173 @Transactional(rollbackFor = Exception.class) 173 @Transactional(rollbackFor = Exception.class)
174 public void deleteStockIn(List<Long> ids) { 174 public void deleteStockIn(List<Long> ids) {
175 // 1. 校验不处于已审批 175 // 1. 校验不处于已审批
176 - List<ErpStockInDO> stockIns = stockInMapper.selectBatchIds(ids); 176 + List<ErpStockInDO> stockIns = stockInMapper.selectByIds(ids);
177 if (CollUtil.isEmpty(stockIns)) { 177 if (CollUtil.isEmpty(stockIns)) {
178 return; 178 return;
179 } 179 }
@@ -225,4 +225,4 @@ public class ErpStockInServiceImpl implements ErpStockInService { @@ -225,4 +225,4 @@ public class ErpStockInServiceImpl implements ErpStockInService {
225 return stockInItemMapper.selectListByInIds(inIds); 225 return stockInItemMapper.selectListByInIds(inIds);
226 } 226 }
227 227
228 -}  
229 \ No newline at end of file 228 \ No newline at end of file
  229 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/stock/ErpStockMoveServiceImpl.java
@@ -174,7 +174,7 @@ public class ErpStockMoveServiceImpl implements ErpStockMoveService { @@ -174,7 +174,7 @@ public class ErpStockMoveServiceImpl implements ErpStockMoveService {
174 @Transactional(rollbackFor = Exception.class) 174 @Transactional(rollbackFor = Exception.class)
175 public void deleteStockMove(List<Long> ids) { 175 public void deleteStockMove(List<Long> ids) {
176 // 1. 校验不处于已审批 176 // 1. 校验不处于已审批
177 - List<ErpStockMoveDO> stockMoves = stockMoveMapper.selectBatchIds(ids); 177 + List<ErpStockMoveDO> stockMoves = stockMoveMapper.selectByIds(ids);
178 if (CollUtil.isEmpty(stockMoves)) { 178 if (CollUtil.isEmpty(stockMoves)) {
179 return; 179 return;
180 } 180 }
@@ -226,4 +226,4 @@ public class ErpStockMoveServiceImpl implements ErpStockMoveService { @@ -226,4 +226,4 @@ public class ErpStockMoveServiceImpl implements ErpStockMoveService {
226 return stockMoveItemMapper.selectListByMoveIds(moveIds); 226 return stockMoveItemMapper.selectListByMoveIds(moveIds);
227 } 227 }
228 228
229 -}  
230 \ No newline at end of file 229 \ No newline at end of file
  230 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/stock/ErpStockOutServiceImpl.java
@@ -173,7 +173,7 @@ public class ErpStockOutServiceImpl implements ErpStockOutService { @@ -173,7 +173,7 @@ public class ErpStockOutServiceImpl implements ErpStockOutService {
173 @Transactional(rollbackFor = Exception.class) 173 @Transactional(rollbackFor = Exception.class)
174 public void deleteStockOut(List<Long> ids) { 174 public void deleteStockOut(List<Long> ids) {
175 // 1. 校验不处于已审批 175 // 1. 校验不处于已审批
176 - List<ErpStockOutDO> stockOuts = stockOutMapper.selectBatchIds(ids); 176 + List<ErpStockOutDO> stockOuts = stockOutMapper.selectByIds(ids);
177 if (CollUtil.isEmpty(stockOuts)) { 177 if (CollUtil.isEmpty(stockOuts)) {
178 return; 178 return;
179 } 179 }
@@ -225,4 +225,4 @@ public class ErpStockOutServiceImpl implements ErpStockOutService { @@ -225,4 +225,4 @@ public class ErpStockOutServiceImpl implements ErpStockOutService {
225 return stockOutItemMapper.selectListByOutIds(outIds); 225 return stockOutItemMapper.selectListByOutIds(outIds);
226 } 226 }
227 227
228 -}  
229 \ No newline at end of file 228 \ No newline at end of file
  229 +}
yudao-module-erp/src/main/java/cn/iocoder/yudao/module/erp/service/stock/ErpWarehouseServiceImpl.java
@@ -93,7 +93,7 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService { @@ -93,7 +93,7 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService {
93 if (CollUtil.isEmpty(ids)) { 93 if (CollUtil.isEmpty(ids)) {
94 return Collections.emptyList(); 94 return Collections.emptyList();
95 } 95 }
96 - List<ErpWarehouseDO> list = warehouseMapper.selectBatchIds(ids); 96 + List<ErpWarehouseDO> list = warehouseMapper.selectByIds(ids);
97 Map<Long, ErpWarehouseDO> warehouseMap = convertMap(list, ErpWarehouseDO::getId); 97 Map<Long, ErpWarehouseDO> warehouseMap = convertMap(list, ErpWarehouseDO::getId);
98 for (Long id : ids) { 98 for (Long id : ids) {
99 ErpWarehouseDO warehouse = warehouseMap.get(id); 99 ErpWarehouseDO warehouse = warehouseMap.get(id);
@@ -114,7 +114,7 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService { @@ -114,7 +114,7 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService {
114 114
115 @Override 115 @Override
116 public List<ErpWarehouseDO> getWarehouseList(Collection<Long> ids) { 116 public List<ErpWarehouseDO> getWarehouseList(Collection<Long> ids) {
117 - return warehouseMapper.selectBatchIds(ids); 117 + return warehouseMapper.selectByIds(ids);
118 } 118 }
119 119
120 @Override 120 @Override
@@ -122,4 +122,4 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService { @@ -122,4 +122,4 @@ public class ErpWarehouseServiceImpl implements ErpWarehouseService {
122 return warehouseMapper.selectPage(pageReqVO); 122 return warehouseMapper.selectPage(pageReqVO);
123 } 123 }
124 124
125 -}  
126 \ No newline at end of file 125 \ No newline at end of file
  126 +}
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/device/IotDeviceServiceImpl.java
@@ -155,7 +155,7 @@ public class IotDeviceServiceImpl implements IotDeviceService { @@ -155,7 +155,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
155 @Transactional(rollbackFor = Exception.class) 155 @Transactional(rollbackFor = Exception.class)
156 public void updateDeviceGroup(IotDeviceUpdateGroupReqVO updateReqVO) { 156 public void updateDeviceGroup(IotDeviceUpdateGroupReqVO updateReqVO) {
157 // 1.1 校验设备存在 157 // 1.1 校验设备存在
158 - List<IotDeviceDO> devices = deviceMapper.selectBatchIds(updateReqVO.getIds()); 158 + List<IotDeviceDO> devices = deviceMapper.selectByIds(updateReqVO.getIds());
159 if (CollUtil.isEmpty(devices)) { 159 if (CollUtil.isEmpty(devices)) {
160 return; 160 return;
161 } 161 }
@@ -193,7 +193,7 @@ public class IotDeviceServiceImpl implements IotDeviceService { @@ -193,7 +193,7 @@ public class IotDeviceServiceImpl implements IotDeviceService {
193 if (CollUtil.isEmpty(ids)) { 193 if (CollUtil.isEmpty(ids)) {
194 return; 194 return;
195 } 195 }
196 - List<IotDeviceDO> devices = deviceMapper.selectBatchIds(ids); 196 + List<IotDeviceDO> devices = deviceMapper.selectByIds(ids);
197 if (CollUtil.isEmpty(devices)) { 197 if (CollUtil.isEmpty(devices)) {
198 return; 198 return;
199 } 199 }
@@ -451,4 +451,4 @@ public class IotDeviceServiceImpl implements IotDeviceService { @@ -451,4 +451,4 @@ public class IotDeviceServiceImpl implements IotDeviceService {
451 )); 451 ));
452 } 452 }
453 453
454 -}  
455 \ No newline at end of file 454 \ No newline at end of file
  455 +}
yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/product/IotProductCategoryServiceImpl.java
@@ -78,7 +78,7 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService @@ -78,7 +78,7 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService
78 if (CollUtil.isEmpty(ids)) { 78 if (CollUtil.isEmpty(ids)) {
79 return CollUtil.newArrayList(); 79 return CollUtil.newArrayList();
80 } 80 }
81 - return iotProductCategoryMapper.selectBatchIds(ids); 81 + return iotProductCategoryMapper.selectByIds(ids);
82 } 82 }
83 83
84 @Override 84 @Override
@@ -120,4 +120,4 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService @@ -120,4 +120,4 @@ public class IotProductCategoryServiceImpl implements IotProductCategoryService
120 return categoryDeviceCountMap; 120 return categoryDeviceCountMap;
121 } 121 }
122 122
123 -}  
124 \ No newline at end of file 123 \ No newline at end of file
  124 +}
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/service/brand/ProductBrandServiceImpl.java
@@ -90,7 +90,7 @@ public class ProductBrandServiceImpl implements ProductBrandService { @@ -90,7 +90,7 @@ public class ProductBrandServiceImpl implements ProductBrandService {
90 90
91 @Override 91 @Override
92 public List<ProductBrandDO> getBrandList(Collection<Long> ids) { 92 public List<ProductBrandDO> getBrandList(Collection<Long> ids) {
93 - return brandMapper.selectBatchIds(ids); 93 + return brandMapper.selectByIds(ids);
94 } 94 }
95 95
96 @Override 96 @Override
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/service/category/ProductCategoryServiceImpl.java
@@ -109,7 +109,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService { @@ -109,7 +109,7 @@ public class ProductCategoryServiceImpl implements ProductCategoryService {
109 return; 109 return;
110 } 110 }
111 // 获得商品分类信息 111 // 获得商品分类信息
112 - List<ProductCategoryDO> list = productCategoryMapper.selectBatchIds(ids); 112 + List<ProductCategoryDO> list = productCategoryMapper.selectByIds(ids);
113 Map<Long, ProductCategoryDO> categoryMap = CollectionUtils.convertMap(list, ProductCategoryDO::getId); 113 Map<Long, ProductCategoryDO> categoryMap = CollectionUtils.convertMap(list, ProductCategoryDO::getId);
114 // 校验 114 // 校验
115 ids.forEach(id -> { 115 ids.forEach(id -> {
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/service/property/ProductPropertyServiceImpl.java
@@ -106,7 +106,7 @@ public class ProductPropertyServiceImpl implements ProductPropertyService { @@ -106,7 +106,7 @@ public class ProductPropertyServiceImpl implements ProductPropertyService {
106 106
107 @Override 107 @Override
108 public List<ProductPropertyDO> getPropertyList(Collection<Long> ids) { 108 public List<ProductPropertyDO> getPropertyList(Collection<Long> ids) {
109 - return productPropertyMapper.selectBatchIds(ids); 109 + return productPropertyMapper.selectByIds(ids);
110 } 110 }
111 111
112 @Override 112 @Override
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/service/sku/ProductSkuServiceImpl.java
@@ -81,7 +81,7 @@ public class ProductSkuServiceImpl implements ProductSkuService { @@ -81,7 +81,7 @@ public class ProductSkuServiceImpl implements ProductSkuService {
81 if (CollUtil.isEmpty(ids)) { 81 if (CollUtil.isEmpty(ids)) {
82 return ListUtil.empty(); 82 return ListUtil.empty();
83 } 83 }
84 - return productSkuMapper.selectBatchIds(ids); 84 + return productSkuMapper.selectByIds(ids);
85 } 85 }
86 86
87 @Override 87 @Override
@@ -268,7 +268,7 @@ public class ProductSkuServiceImpl implements ProductSkuService { @@ -268,7 +268,7 @@ public class ProductSkuServiceImpl implements ProductSkuService {
268 }); 268 });
269 269
270 // 更新 SPU 库存 270 // 更新 SPU 库存
271 - List<ProductSkuDO> skus = productSkuMapper.selectBatchIds( 271 + List<ProductSkuDO> skus = productSkuMapper.selectByIds(
272 convertSet(updateStockReqDTO.getItems(), ProductSkuUpdateStockReqDTO.Item::getId)); 272 convertSet(updateStockReqDTO.getItems(), ProductSkuUpdateStockReqDTO.Item::getId));
273 Map<Long, Integer> spuStockIncrCounts = ProductSkuConvert.INSTANCE.convertSpuStockMap( 273 Map<Long, Integer> spuStockIncrCounts = ProductSkuConvert.INSTANCE.convertSpuStockMap(
274 updateStockReqDTO.getItems(), skus); 274 updateStockReqDTO.getItems(), skus);
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/service/spu/ProductSpuServiceImpl.java
@@ -137,7 +137,7 @@ public class ProductSpuServiceImpl implements ProductSpuService { @@ -137,7 +137,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
137 return Collections.emptyList(); 137 return Collections.emptyList();
138 } 138 }
139 // 获得商品信息 139 // 获得商品信息
140 - List<ProductSpuDO> list = productSpuMapper.selectBatchIds(ids); 140 + List<ProductSpuDO> list = productSpuMapper.selectByIds(ids);
141 Map<Long, ProductSpuDO> spuMap = CollectionUtils.convertMap(list, ProductSpuDO::getId); 141 Map<Long, ProductSpuDO> spuMap = CollectionUtils.convertMap(list, ProductSpuDO::getId);
142 // 校验 142 // 校验
143 ids.forEach(id -> { 143 ids.forEach(id -> {
@@ -202,7 +202,7 @@ public class ProductSpuServiceImpl implements ProductSpuService { @@ -202,7 +202,7 @@ public class ProductSpuServiceImpl implements ProductSpuService {
202 if (CollUtil.isEmpty(ids)) { 202 if (CollUtil.isEmpty(ids)) {
203 return Collections.emptyList(); 203 return Collections.emptyList();
204 } 204 }
205 - Map<Long, ProductSpuDO> spuMap = convertMap(productSpuMapper.selectBatchIds(ids), ProductSpuDO::getId); 205 + Map<Long, ProductSpuDO> spuMap = convertMap(productSpuMapper.selectByIds(ids), ProductSpuDO::getId);
206 // 需要按照 ids 顺序返回。例如说:店铺装修选择了 [3, 1, 2] 三个商品,返回结果还是 [3, 1, 2] 这样的顺序 206 // 需要按照 ids 顺序返回。例如说:店铺装修选择了 [3, 1, 2] 三个商品,返回结果还是 [3, 1, 2] 这样的顺序
207 return convertList(ids, spuMap::get); 207 return convertList(ids, spuMap::get);
208 } 208 }
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/service/bargain/BargainActivityServiceImpl.java
@@ -154,7 +154,7 @@ public class BargainActivityServiceImpl implements BargainActivityService { @@ -154,7 +154,7 @@ public class BargainActivityServiceImpl implements BargainActivityService {
154 154
155 @Override 155 @Override
156 public List<BargainActivityDO> getBargainActivityList(Set<Long> ids) { 156 public List<BargainActivityDO> getBargainActivityList(Set<Long> ids) {
157 - return bargainActivityMapper.selectBatchIds(ids); 157 + return bargainActivityMapper.selectByIds(ids);
158 } 158 }
159 159
160 @Override 160 @Override
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/service/coupon/CouponTemplateServiceImpl.java
@@ -132,7 +132,7 @@ public class CouponTemplateServiceImpl implements CouponTemplateService { @@ -132,7 +132,7 @@ public class CouponTemplateServiceImpl implements CouponTemplateService {
132 132
133 @Override 133 @Override
134 public List<CouponTemplateDO> getCouponTemplateList(Collection<Long> ids) { 134 public List<CouponTemplateDO> getCouponTemplateList(Collection<Long> ids) {
135 - return couponTemplateMapper.selectBatchIds(ids); 135 + return couponTemplateMapper.selectByIds(ids);
136 } 136 }
137 137
138 } 138 }
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/service/diy/DiyPageServiceImpl.java
@@ -104,7 +104,7 @@ public class DiyPageServiceImpl implements DiyPageService { @@ -104,7 +104,7 @@ public class DiyPageServiceImpl implements DiyPageService {
104 if (CollUtil.isEmpty(ids)) { 104 if (CollUtil.isEmpty(ids)) {
105 return ListUtil.empty(); 105 return ListUtil.empty();
106 } 106 }
107 - return diyPageMapper.selectBatchIds(ids); 107 + return diyPageMapper.selectByIds(ids);
108 } 108 }
109 109
110 @Override 110 @Override
yudao-module-mall/yudao-module-promotion/src/main/java/cn/iocoder/yudao/module/promotion/service/seckill/SeckillConfigServiceImpl.java
@@ -132,7 +132,7 @@ public class SeckillConfigServiceImpl implements SeckillConfigService { @@ -132,7 +132,7 @@ public class SeckillConfigServiceImpl implements SeckillConfigService {
132 return; 132 return;
133 } 133 }
134 // 1. 如果有数量不匹配,说明有不存在的,则抛出 SECKILL_CONFIG_NOT_EXISTS 业务异常 134 // 1. 如果有数量不匹配,说明有不存在的,则抛出 SECKILL_CONFIG_NOT_EXISTS 业务异常
135 - List<SeckillConfigDO> configs = seckillConfigMapper.selectBatchIds(ids); 135 + List<SeckillConfigDO> configs = seckillConfigMapper.selectByIds(ids);
136 if (configs.size() != ids.size()) { 136 if (configs.size() != ids.size()) {
137 throw exception(SECKILL_CONFIG_NOT_EXISTS); 137 throw exception(SECKILL_CONFIG_NOT_EXISTS);
138 } 138 }
yudao-module-mall/yudao-module-trade/src/main/java/cn/iocoder/yudao/module/trade/service/delivery/DeliveryExpressTemplateServiceImpl.java
@@ -176,7 +176,7 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla @@ -176,7 +176,7 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla
176 176
177 @Override 177 @Override
178 public List<DeliveryExpressTemplateDO> getDeliveryExpressTemplateList(Collection<Long> ids) { 178 public List<DeliveryExpressTemplateDO> getDeliveryExpressTemplateList(Collection<Long> ids) {
179 - return expressTemplateMapper.selectBatchIds(ids); 179 + return expressTemplateMapper.selectByIds(ids);
180 } 180 }
181 181
182 @Override 182 @Override
@@ -205,7 +205,7 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla @@ -205,7 +205,7 @@ public class DeliveryExpressTemplateServiceImpl implements DeliveryExpressTempla
205 if (CollUtil.isEmpty(ids)) { 205 if (CollUtil.isEmpty(ids)) {
206 return Collections.emptyMap(); 206 return Collections.emptyMap();
207 } 207 }
208 - List<DeliveryExpressTemplateDO> templateList = expressTemplateMapper.selectBatchIds(ids); 208 + List<DeliveryExpressTemplateDO> templateList = expressTemplateMapper.selectByIds(ids);
209 // 查询 templateCharge 数组 209 // 查询 templateCharge 数组
210 List<DeliveryExpressTemplateChargeDO> chargeList = expressTemplateChargeMapper.selectByTemplateIds(ids); 210 List<DeliveryExpressTemplateChargeDO> chargeList = expressTemplateChargeMapper.selectByTemplateIds(ids);
211 // 查询 templateFree 数组 211 // 查询 templateFree 数组
yudao-module-mall/yudao-module-trade/src/main/java/cn/iocoder/yudao/module/trade/service/delivery/DeliveryPickUpStoreServiceImpl.java
@@ -75,7 +75,7 @@ public class DeliveryPickUpStoreServiceImpl implements DeliveryPickUpStoreServic @@ -75,7 +75,7 @@ public class DeliveryPickUpStoreServiceImpl implements DeliveryPickUpStoreServic
75 75
76 @Override 76 @Override
77 public List<DeliveryPickUpStoreDO> getDeliveryPickUpStoreList(Collection<Long> ids) { 77 public List<DeliveryPickUpStoreDO> getDeliveryPickUpStoreList(Collection<Long> ids) {
78 - return deliveryPickUpStoreMapper.selectBatchIds(ids); 78 + return deliveryPickUpStoreMapper.selectByIds(ids);
79 } 79 }
80 80
81 @Override 81 @Override
yudao-module-mall/yudao-module-trade/src/main/java/cn/iocoder/yudao/module/trade/service/order/TradeOrderQueryServiceImpl.java
@@ -84,7 +84,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService { @@ -84,7 +84,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
84 if (CollUtil.isEmpty(ids)) { 84 if (CollUtil.isEmpty(ids)) {
85 return Collections.emptyList(); 85 return Collections.emptyList();
86 } 86 }
87 - return tradeOrderMapper.selectBatchIds(ids); 87 + return tradeOrderMapper.selectByIds(ids);
88 } 88 }
89 89
90 @Override 90 @Override
yudao-module-member/src/main/java/cn/iocoder/yudao/module/member/service/group/MemberGroupServiceImpl.java
@@ -87,7 +87,7 @@ public class MemberGroupServiceImpl implements MemberGroupService { @@ -87,7 +87,7 @@ public class MemberGroupServiceImpl implements MemberGroupService {
87 if (CollUtil.isEmpty(ids)) { 87 if (CollUtil.isEmpty(ids)) {
88 return ListUtil.empty(); 88 return ListUtil.empty();
89 } 89 }
90 - return memberGroupMapper.selectBatchIds(ids); 90 + return memberGroupMapper.selectByIds(ids);
91 } 91 }
92 92
93 @Override 93 @Override
yudao-module-member/src/main/java/cn/iocoder/yudao/module/member/service/level/MemberLevelServiceImpl.java
@@ -169,7 +169,7 @@ public class MemberLevelServiceImpl implements MemberLevelService { @@ -169,7 +169,7 @@ public class MemberLevelServiceImpl implements MemberLevelService {
169 if (CollUtil.isEmpty(ids)) { 169 if (CollUtil.isEmpty(ids)) {
170 return Collections.emptyList(); 170 return Collections.emptyList();
171 } 171 }
172 - return memberLevelMapper.selectBatchIds(ids); 172 + return memberLevelMapper.selectByIds(ids);
173 } 173 }
174 174
175 @Override 175 @Override
yudao-module-member/src/main/java/cn/iocoder/yudao/module/member/service/tag/MemberTagServiceImpl.java
@@ -109,7 +109,7 @@ public class MemberTagServiceImpl implements MemberTagService { @@ -109,7 +109,7 @@ public class MemberTagServiceImpl implements MemberTagService {
109 if (CollUtil.isEmpty(ids)) { 109 if (CollUtil.isEmpty(ids)) {
110 return ListUtil.empty(); 110 return ListUtil.empty();
111 } 111 }
112 - return memberTagMapper.selectBatchIds(ids); 112 + return memberTagMapper.selectByIds(ids);
113 } 113 }
114 114
115 @Override 115 @Override
yudao-module-member/src/main/java/cn/iocoder/yudao/module/member/service/user/MemberUserServiceImpl.java
@@ -137,7 +137,7 @@ public class MemberUserServiceImpl implements MemberUserService { @@ -137,7 +137,7 @@ public class MemberUserServiceImpl implements MemberUserService {
137 if (CollUtil.isEmpty(ids)) { 137 if (CollUtil.isEmpty(ids)) {
138 return ListUtil.empty(); 138 return ListUtil.empty();
139 } 139 }
140 - return memberUserMapper.selectBatchIds(ids); 140 + return memberUserMapper.selectByIds(ids);
141 } 141 }
142 142
143 @Override 143 @Override
yudao-module-mp/src/main/java/cn/iocoder/yudao/module/mp/service/user/MpUserServiceImpl.java
@@ -67,7 +67,7 @@ public class MpUserServiceImpl implements MpUserService { @@ -67,7 +67,7 @@ public class MpUserServiceImpl implements MpUserService {
67 67
68 @Override 68 @Override
69 public List<MpUserDO> getUserList(Collection<Long> ids) { 69 public List<MpUserDO> getUserList(Collection<Long> ids) {
70 - return mpUserMapper.selectBatchIds(ids); 70 + return mpUserMapper.selectByIds(ids);
71 } 71 }
72 72
73 @Override 73 @Override
yudao-module-pay/src/main/java/cn/iocoder/yudao/module/pay/service/app/PayAppServiceImpl.java
@@ -121,7 +121,7 @@ public class PayAppServiceImpl implements PayAppService { @@ -121,7 +121,7 @@ public class PayAppServiceImpl implements PayAppService {
121 if (CollUtil.isEmpty(ids)) { 121 if (CollUtil.isEmpty(ids)) {
122 return Collections.emptyList(); 122 return Collections.emptyList();
123 } 123 }
124 - return appMapper.selectBatchIds(ids); 124 + return appMapper.selectByIds(ids);
125 } 125 }
126 126
127 @Override 127 @Override
yudao-module-pay/src/main/java/cn/iocoder/yudao/module/pay/service/order/PayOrderServiceImpl.java
@@ -89,7 +89,7 @@ public class PayOrderServiceImpl implements PayOrderService { @@ -89,7 +89,7 @@ public class PayOrderServiceImpl implements PayOrderService {
89 if (CollUtil.isEmpty(ids)) { 89 if (CollUtil.isEmpty(ids)) {
90 return Collections.emptyList(); 90 return Collections.emptyList();
91 } 91 }
92 - return orderMapper.selectBatchIds(ids); 92 + return orderMapper.selectByIds(ids);
93 } 93 }
94 94
95 @Override 95 @Override
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/dept/DeptServiceImpl.java
@@ -159,7 +159,7 @@ public class DeptServiceImpl implements DeptService { @@ -159,7 +159,7 @@ public class DeptServiceImpl implements DeptService {
159 if (CollUtil.isEmpty(ids)) { 159 if (CollUtil.isEmpty(ids)) {
160 return Collections.emptyList(); 160 return Collections.emptyList();
161 } 161 }
162 - return deptMapper.selectBatchIds(ids); 162 + return deptMapper.selectByIds(ids);
163 } 163 }
164 164
165 @Override 165 @Override
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/dept/PostServiceImpl.java
@@ -113,7 +113,7 @@ public class PostServiceImpl implements PostService { @@ -113,7 +113,7 @@ public class PostServiceImpl implements PostService {
113 if (CollUtil.isEmpty(ids)) { 113 if (CollUtil.isEmpty(ids)) {
114 return Collections.emptyList(); 114 return Collections.emptyList();
115 } 115 }
116 - return postMapper.selectBatchIds(ids); 116 + return postMapper.selectByIds(ids);
117 } 117 }
118 118
119 @Override 119 @Override
@@ -137,7 +137,7 @@ public class PostServiceImpl implements PostService { @@ -137,7 +137,7 @@ public class PostServiceImpl implements PostService {
137 return; 137 return;
138 } 138 }
139 // 获得岗位信息 139 // 获得岗位信息
140 - List<PostDO> posts = postMapper.selectBatchIds(ids); 140 + List<PostDO> posts = postMapper.selectByIds(ids);
141 Map<Long, PostDO> postMap = convertMap(posts, PostDO::getId); 141 Map<Long, PostDO> postMap = convertMap(posts, PostDO::getId);
142 // 校验 142 // 校验
143 ids.forEach(id -> { 143 ids.forEach(id -> {
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/permission/MenuServiceImpl.java
@@ -187,7 +187,7 @@ public class MenuServiceImpl implements MenuService { @@ -187,7 +187,7 @@ public class MenuServiceImpl implements MenuService {
187 if (CollUtil.isEmpty(ids)) { 187 if (CollUtil.isEmpty(ids)) {
188 return Lists.newArrayList(); 188 return Lists.newArrayList();
189 } 189 }
190 - return menuMapper.selectBatchIds(ids); 190 + return menuMapper.selectByIds(ids);
191 } 191 }
192 192
193 /** 193 /**
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/permission/RoleServiceImpl.java
@@ -200,7 +200,7 @@ public class RoleServiceImpl implements RoleService { @@ -200,7 +200,7 @@ public class RoleServiceImpl implements RoleService {
200 if (CollectionUtil.isEmpty(ids)) { 200 if (CollectionUtil.isEmpty(ids)) {
201 return Collections.emptyList(); 201 return Collections.emptyList();
202 } 202 }
203 - return roleMapper.selectBatchIds(ids); 203 + return roleMapper.selectByIds(ids);
204 } 204 }
205 205
206 @Override 206 @Override
@@ -236,7 +236,7 @@ public class RoleServiceImpl implements RoleService { @@ -236,7 +236,7 @@ public class RoleServiceImpl implements RoleService {
236 return; 236 return;
237 } 237 }
238 // 获得角色信息 238 // 获得角色信息
239 - List<RoleDO> roles = roleMapper.selectBatchIds(ids); 239 + List<RoleDO> roles = roleMapper.selectByIds(ids);
240 Map<Long, RoleDO> roleMap = convertMap(roles, RoleDO::getId); 240 Map<Long, RoleDO> roleMap = convertMap(roles, RoleDO::getId);
241 // 校验 241 // 校验
242 ids.forEach(id -> { 242 ids.forEach(id -> {
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/social/SocialUserServiceImpl.java
@@ -54,7 +54,7 @@ public class SocialUserServiceImpl implements SocialUserService { @@ -54,7 +54,7 @@ public class SocialUserServiceImpl implements SocialUserService {
54 return Collections.emptyList(); 54 return Collections.emptyList();
55 } 55 }
56 // 获得社交用户 56 // 获得社交用户
57 - return socialUserMapper.selectBatchIds(convertSet(socialUserBinds, SocialUserBindDO::getSocialUserId)); 57 + return socialUserMapper.selectByIds(convertSet(socialUserBinds, SocialUserBindDO::getSocialUserId));
58 } 58 }
59 59
60 @Override 60 @Override
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/user/AdminUserServiceImpl.java
@@ -291,7 +291,7 @@ public class AdminUserServiceImpl implements AdminUserService { @@ -291,7 +291,7 @@ public class AdminUserServiceImpl implements AdminUserService {
291 if (CollUtil.isEmpty(userIds)) { 291 if (CollUtil.isEmpty(userIds)) {
292 return Collections.emptyList(); 292 return Collections.emptyList();
293 } 293 }
294 - return userMapper.selectBatchIds(userIds); 294 + return userMapper.selectByIds(userIds);
295 } 295 }
296 296
297 @Override 297 @Override
@@ -299,7 +299,7 @@ public class AdminUserServiceImpl implements AdminUserService { @@ -299,7 +299,7 @@ public class AdminUserServiceImpl implements AdminUserService {
299 if (CollUtil.isEmpty(ids)) { 299 if (CollUtil.isEmpty(ids)) {
300 return Collections.emptyList(); 300 return Collections.emptyList();
301 } 301 }
302 - return userMapper.selectBatchIds(ids); 302 + return userMapper.selectByIds(ids);
303 } 303 }
304 304
305 @Override 305 @Override
@@ -308,7 +308,7 @@ public class AdminUserServiceImpl implements AdminUserService { @@ -308,7 +308,7 @@ public class AdminUserServiceImpl implements AdminUserService {
308 return; 308 return;
309 } 309 }
310 // 获得岗位信息 310 // 获得岗位信息
311 - List<AdminUserDO> users = userMapper.selectBatchIds(ids); 311 + List<AdminUserDO> users = userMapper.selectByIds(ids);
312 Map<Long, AdminUserDO> userMap = CollectionUtils.convertMap(users, AdminUserDO::getId); 312 Map<Long, AdminUserDO> userMap = CollectionUtils.convertMap(users, AdminUserDO::getId);
313 // 校验 313 // 校验
314 ids.forEach(id -> { 314 ids.forEach(id -> {