|
@@ -5,16 +5,20 @@ import com.ym.mec.biz.service.ChargeTypeService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.page.QueryInfo;
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
|
import com.yonge.log.model.AuditLogAnnotation;
|
|
|
+
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@RequestMapping("chargeType")
|
|
|
@Api(tags = "收费类型服务")
|
|
@@ -53,7 +57,9 @@ public class ChargeTypeController extends BaseController {
|
|
|
@GetMapping("/findAll")
|
|
|
@PreAuthorize("@pcs.hasPermissions('chargeType/findAll')")
|
|
|
public HttpResponseResult<List<ChargeType>> findAll() {
|
|
|
- return succeed(chargeTypeService.findAll(new HashMap<>()));
|
|
|
+ Map<String, Object> params = new HashMap<String, Object>();
|
|
|
+ params.put("tenantId", TenantContextHolder.getTenantId());
|
|
|
+ return succeed(chargeTypeService.findAll(params));
|
|
|
}
|
|
|
|
|
|
}
|