查询条件设置数据源编码

This commit is contained in:
xiang2lin 2025-03-28 15:19:18 +08:00
parent 3609b2eef9
commit e3aa2dcf73
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ public class InventoryExtServiceImpl extends BaseService<InventoryExtEntity,Str
if (null != entity && StrUtil.isNotEmpty(entity.getcInvCode())){
InventoryExtEntity extEntity = new InventoryExtEntity();
extEntity.setCInvCode(entity.getCInvCode());
extEntity.setDataSourceCode(entity.getDataSourceCode());
List<InventoryExtEntity> query = inventoryextDao.query(extEntity);
if (CollectionUtils.isNotEmpty(query)){
if (query.size() > 1){

View File

@ -41,6 +41,7 @@ public class InventorySubServiceImpl extends BaseService<InventorySubEntity,Stri
if (null != entity && StrUtil.isNotEmpty(entity.getcInvSubCode())){
InventorySubEntity subEntity = new InventorySubEntity();
subEntity.setcInvSubCode(entity.getcInvSubCode());
subEntity.setDataSourceCode(entity.getDataSourceCode());
List<InventorySubEntity> query = inventorySubDao.query(subEntity);
if (CollectionUtils.isNotEmpty(query)){
if (query.size() > 1){