余额列表接口

This commit is contained in:
张松 2025-09-26 15:07:40 +08:00
parent 9c44754b58
commit 70b8a5e9cc
3 changed files with 12 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import java.util.List;
public interface MkShopRechargeService extends IService<MkShopRecharge> {
MkShopRechargeVO detail(Long shopId);
MkShopRechargeVO detailApp(Long shopId);
Boolean edit(Long shopId, MkShopRechargeDTO shopRechargeDTO);

View File

@ -200,7 +200,7 @@ public class UShopUserServiceImpl implements UShopUserService {
@Override
public ShopUserDetailDTO getInfo(Long shopId, long userId) {
Long mainId = shopInfoService.getMainIdByShopId(shopId);
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getMainShopId, mainId).eq(ShopUser::getUserId, userId));
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getSourceShopId, shopId).eq(ShopUser::getUserId, userId));
UserInfo userInfo = userInfoService.getById(userId);
if (userInfo == null) {
throw new ApiNotPrintException("用户信息不存在");

View File

@ -67,6 +67,16 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
@DubboReference
private ShopInfoService shopInfoService;
@Override
public MkShopRechargeVO detailApp(Long shopId) {
Long mainShopId = shopInfoService.getMainIdByShopId(shopId);
MkShopRechargeVO rechargeVO = detail(mainShopId);
if (rechargeVO.getShopIdList().contains(shopId)){
return rechargeVO;
}
return null;
}
@Override
public MkShopRechargeVO detail(Long shopId) {
ShopInfo shopInfo = shopInfoService.getById(shopId);