|
@@ -1,8 +1,10 @@
|
|
|
package com.ym.mec.web.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.tenant.TenantHandler;
|
|
|
import com.ym.mec.biz.dal.entity.SysEmail;
|
|
|
import com.ym.mec.biz.service.SysEmailService;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -40,7 +42,8 @@ public class SysEmailController extends BaseController {
|
|
|
@GetMapping("/query")
|
|
|
@PreAuthorize("@pcs.hasPermissions('sysEmail/query')")
|
|
|
public HttpResponseResult<SysEmail> query() {
|
|
|
- return succeed(sysEmailService.query());
|
|
|
+ Integer tenantId = TenantContextHolder.getTenantId();
|
|
|
+ return succeed(sysEmailService.query(tenantId));
|
|
|
}
|
|
|
|
|
|
}
|