超市售卖商品绑定门店

This commit is contained in:
seesaw
2024-10-29 18:00:28 +08:00
parent 7b6e1913db
commit 3bff7c906a
5 changed files with 20 additions and 2 deletions

View File

@ -4,6 +4,6 @@ public interface CashregisterinfoApi {
String getStoreName(String equipmentCode);
Long getStoreId(String equipmentCode);
}

View File

@ -29,4 +29,14 @@ public class CashregisterinfoApiImpl implements CashregisterinfoApi{
}
return "";
}
@Override
public Long getStoreId(String equipmentCode) {
List<CashRegisterInfoDO> cashRegisterInfoDOS = cashRegisterInfoMapper.selectList(Wrappers.<CashRegisterInfoDO>lambdaQuery().eq(CashRegisterInfoDO::getEquipmentCode, equipmentCode));
if(CollectionUtil.isNotEmpty(cashRegisterInfoDOS)){
CashRegisterInfoDO cashRegisterInfoDO = cashRegisterInfoDOS.get(0);
return cashRegisterInfoDO.getCarteenId();
}
return null;
}
}