完善用户信息2

zmy
fjj 2024-01-19 20:28:34 +08:00
parent ca1c7154cd
commit 463d1bf61c
5 changed files with 7 additions and 7 deletions

View File

@ -55,8 +55,8 @@ public class UserVideoController {
//我的钱包
@GetMapping("/findUserWallet")
public HealthR<List<UserWalletEntity>> findUserWallet(){
List<UserWalletEntity> userWallets = userVideoService.findUserWallet();
public HealthR<List<UserWalletEntity>> findUserWallet(@RequestHeader Integer userId){
List<UserWalletEntity> userWallets = userVideoService.findUserWallet(userId);
return HealthR.ok(userWallets);
}
//用户消费记录

View File

@ -24,7 +24,7 @@ public interface UserVideoMapper {
void deleteVideoBuy(@Param("videoId") Integer videoId);
List<UserWalletEntity> findUserWallet();
List<UserWalletEntity> findUserWallet(@Param("userId") Integer userId);
List<UserConsumptionRecordEntity> findUserConsumptionRecordList();

View File

@ -21,7 +21,7 @@ public interface UserVideoService {
void deleteVideoBuy(Integer videoId);
List<UserWalletEntity> findUserWallet();
List<UserWalletEntity> findUserWallet(Integer userId);
List<UserVideoCollectionVo> findVideoCollectionList(Integer userId);

View File

@ -141,8 +141,8 @@ public class UserVideoServiceImpl implements UserVideoService {
}
@Override
public List<UserWalletEntity> findUserWallet() {
return userVideoMapper.findUserWallet();
public List<UserWalletEntity> findUserWallet(Integer userId) {
return userVideoMapper.findUserWallet(userId);
}

View File

@ -88,7 +88,7 @@ weight = #{weight}
</select>
<select id="findUserWallet" resultType="doctor.domain.entity.UserWalletEntity">
select *
from user_wallet
from user_wallet where user_id=#{userId}
</select>
<select id="findUserConsumptionRecordList" resultType="doctor.domain.entity.UserConsumptionRecordEntity">
select *