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