xin
2025-09-25 6416e025afd6b3d19347610b3e441ac6a12a0f8f
oying-system/src/main/java/com/oying/modules/system/rest/MerchantController.java
@@ -5,6 +5,7 @@
import com.oying.modules.system.service.MerchantService;
import com.oying.modules.system.domain.dto.MerchantsQueryCriteria;
import com.oying.utils.R;
import com.oying.utils.SecurityUtils;
import lombok.RequiredArgsConstructor;
import java.util.List;
@@ -48,6 +49,13 @@
        return new ResponseEntity<>(R.success(merchantService.queryAll(criteria, page)), HttpStatus.OK);
    }
    @GetMapping("findByUserId")
    @ApiOperation("根据用户查询商户信息")
    @PreAuthorize("@el.check('merchant:list')")
    public ResponseEntity<Object> findByUserId() {
        return new ResponseEntity<>(R.success(merchantService.findByUserId(SecurityUtils.getCurrentUserId())), HttpStatus.OK);
    }
    @PostMapping
    @Log("新增商户信息")
    @ApiOperation("新增商户信息")