This commit is contained in:
guohb
2024-05-29 09:35:36 +08:00
parent f95b2a147e
commit 1a37bdcc78
2 changed files with 3 additions and 3 deletions

View File

@@ -73,9 +73,7 @@ public class FranchiseFeeServiceImpl implements FranchiseFeeService {
@Override
public FranchiseFeeResponse getDetail(Long shopId) {
FranchiseFeeDO franchiseFeeDO = new FranchiseFeeDO();
franchiseFeeDO.setShopId(shopId);
FranchiseFeeDO result = franchiseFeeMapper.selectOne(franchiseFeeDO);
FranchiseFeeDO result = franchiseFeeMapper.selectByShopId(shopId);
if (Objects.isNull(result)){
return new FranchiseFeeResponse();
}