增加日志输出

This commit is contained in:
liubozhi 2025-04-11 09:58:33 +08:00
parent c8a77cc381
commit 4c9b30cbbe

View File

@ -1,6 +1,8 @@
package com.tmerclub.cloud.multishop.controller.platform;
import com.alibaba.fastjson2.JSONObject;
import com.google.gson.Gson;
import com.tmerclub.cloud.common.constant.Constant;
import com.tmerclub.cloud.common.database.dto.PageDTO;
import com.tmerclub.cloud.common.database.vo.PageVO;
@ -15,6 +17,7 @@ import com.tmerclub.cloud.multishop.vo.ShopCompanyAuditingVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@ -28,6 +31,7 @@ import java.util.Objects;
@RequestMapping("/mup/companyAuditing")
//@RequestMapping("/p/shop_company_auditing")
@Tag(name = "platform-审核店铺工商信息")
@Slf4j
public class CompanyAuditingController {
@Autowired
@ -38,6 +42,7 @@ public class CompanyAuditingController {
@GetMapping("/page")
@Operation(summary = "分页获取待审核的工商信息", description = "分页获取待审核的工商信息")
public ServerResponseEntity<PageVO<ShopCompanyAuditingVO>> getCompanyAuditingPage(PageDTO pageDTO, ShopCompanyAuditingDTO shopCompanyAuditingDTO) {
log.debug("AuthUserContext:{}", new Gson().toJson(AuthUserContext.get()));
if (!Objects.equals(Constant.PLATFORM_SHOP_ID, AuthUserContext.get().getTenantId())) {
throw new LuckException(ResponseEnum.UNAUTHORIZED);
}