zepengdev
2025-09-17 0b37408e5f92f2c7f1dee8f4eb121db92a4edaa4
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("新增商户信息")