zoujiajian 2 лет назад
Родитель
Сommit
4d14475a8e

+ 1 - 1
netflix-web/src/main/java/com/cyksj/web/controller/manage/goods/shop/YhShopUserController.java

@@ -232,7 +232,7 @@ public class YhShopUserController {
 	@GetMapping("/get/orders/goods")
 	public Result<List<GoodsDon>> getGoodsList() {
 		long yhShopUserId = StpYhShopManageUser.getLoginIdAsLong();
-		YhShop yhShop = yhShopMapper.selectById(Wrappers.lambdaQuery(YhShop.class)
+		YhShop yhShop = yhShopMapper.selectOne(Wrappers.lambdaQuery(YhShop.class)
 				.eq(YhShop::getUserId, yhShopUserId)
 				.eq(YhShop::getVerifyStatus, YhShop.Status.success)
 				.last("limit 1"));