This commit is contained in:
aiShuiJiaoDeXioShou 2024-09-10 15:58:58 +08:00
parent ddd1bde192
commit 0b0a0d9663
6 changed files with 8 additions and 8 deletions

BIN
acdr-admin.zip Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
<template>
<view
:class="[
'pos-fixed z-999 left-[10px] flex gap-[10px] items-center content-center justify-center',
'pos-fixed z-999 left-[1px] flex gap-[5px] items-center content-center justify-center',
isH5 ? 'top-[20px]' : 'top-[40px]',
]"
>

View File

@ -2,7 +2,7 @@
<view class="w-full h-full">
<wd-search
v-model="value"
placeholder="每一次搜索与众不同"
placeholder="搜索..."
cancel-txt="搜索"
@search="search"
@cancel="search"

View File

@ -12,7 +12,7 @@
<Banner />
<AddressCell />
<!-- 这里放搜索框 -->
<view class="w-[80vw] pos-absolute top-[53vw]">
<view class="w-[70vw] pos-absolute top-[3vw] right-0">
<Search />
</view>
<loading-animation v-model="isLoading" />

View File

@ -3,6 +3,7 @@ package com.yskj.acdr.master.pet.controller;
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yskj.acdr.common.response.GlobalResponse;
import com.yskj.acdr.master.file.service.FileMapService;
import com.yskj.acdr.master.pet.entity.PetExpertCertification;
@ -159,10 +160,9 @@ public class PetController {
*/
@GetMapping("/index")
public GlobalResponse<PetInfo> index() {
PetInfo one = petInfoService.lambdaQuery()
.eq(PetInfo::getUserId, StpUtil.getLoginIdAsLong())
.one();
return GlobalResponse.success(one);
List<PetInfo> one = petInfoService.list(new LambdaQueryWrapper<PetInfo>()
.eq(PetInfo::getUserId, StpUtil.getLoginIdAsLong()));
return GlobalResponse.success(one.getFirst());
}
}

View File

@ -90,7 +90,7 @@ mybatis-plus:
mapper-locations: classpath*:com/yskj/**/master/**/mapper/xml/*.xml
configuration:
# 开启MyBatis的SQL打印
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
# 当使用非实体类接收返回数据时字段值若为空则返回null不设置此项会忽略为null的字段
call-setters-on-nulls: true