parent
463d1bf61c
commit
2fb6724844
|
@ -55,8 +55,8 @@ public class UserVideoController {
|
|||
|
||||
//我的钱包
|
||||
@GetMapping("/findUserWallet")
|
||||
public HealthR<List<UserWalletEntity>> findUserWallet(@RequestHeader Integer userId){
|
||||
List<UserWalletEntity> userWallets = userVideoService.findUserWallet(userId);
|
||||
public HealthR<List<UserWalletEntity>> findUserWallet(){
|
||||
List<UserWalletEntity> userWallets = userVideoService.findUserWallet();
|
||||
return HealthR.ok(userWallets);
|
||||
}
|
||||
//用户消费记录
|
||||
|
|
|
@ -24,7 +24,7 @@ public interface UserVideoMapper {
|
|||
|
||||
void deleteVideoBuy(@Param("videoId") Integer videoId);
|
||||
|
||||
List<UserWalletEntity> findUserWallet(@Param("userId") Integer userId);
|
||||
List<UserWalletEntity> findUserWallet();
|
||||
|
||||
List<UserConsumptionRecordEntity> findUserConsumptionRecordList();
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ public interface UserVideoService {
|
|||
|
||||
void deleteVideoBuy(Integer videoId);
|
||||
|
||||
List<UserWalletEntity> findUserWallet(Integer userId);
|
||||
List<UserWalletEntity> findUserWallet();
|
||||
|
||||
List<UserVideoCollectionVo> findVideoCollectionList(Integer userId);
|
||||
|
||||
|
|
|
@ -141,8 +141,8 @@ public class UserVideoServiceImpl implements UserVideoService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public List<UserWalletEntity> findUserWallet(Integer userId) {
|
||||
return userVideoMapper.findUserWallet(userId);
|
||||
public List<UserWalletEntity> findUserWallet() {
|
||||
return userVideoMapper.findUserWallet();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -88,7 +88,7 @@ weight = #{weight}
|
|||
</select>
|
||||
<select id="findUserWallet" resultType="doctor.domain.entity.UserWalletEntity">
|
||||
select *
|
||||
from user_wallet where user_id=#{userId}
|
||||
from user_wallet
|
||||
</select>
|
||||
<select id="findUserConsumptionRecordList" resultType="doctor.domain.entity.UserConsumptionRecordEntity">
|
||||
select *
|
||||
|
|
Loading…
Reference in New Issue