首页查询报错增加日志

This commit is contained in:
张松 2025-03-20 17:22:16 +08:00
parent 37d129f1c8
commit 30d8f741f1
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ import com.czg.product.vo.RecommendProVO;
import com.czg.resp.CzgResult;
import com.mybatisflex.core.paginate.Page;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -15,6 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
* 小程序主页相关接口
* @author Administrator
*/
@Slf4j
@RestController
@RequestMapping("/user/home")
public class HomeController {
@ -43,6 +45,7 @@ public class HomeController {
*/
@GetMapping("/product")
public CzgResult<Page<RecommendProVO>> home(String lng, String lat, String address, Integer categoryId, Integer orderType, Integer distanceType, String name) {
log.info("请求参数, lng: {}, lat: {}, address: {}, caId: {}, orderType: {}, distan: {}, name: {}", lng,lat,address, categoryId, orderType, distanceType, name);
return CzgResult.success(homePageService.getProd(lng, lat, address, categoryId, orderType, distanceType, name));
}
}