one
This commit is contained in:
@@ -6,5 +6,7 @@
|
||||
select *
|
||||
from xfsg_franchise_fee
|
||||
where shop_id = #{shopId}
|
||||
order by create_time desc
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -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