one
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user