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

@@ -6,5 +6,7 @@
select * select *
from xfsg_franchise_fee from xfsg_franchise_fee
where shop_id = #{shopId} where shop_id = #{shopId}
order by create_time desc
limit 1
</select> </select>
</mapper> </mapper>

View File

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