From 7d55f35e2aaa689ef4a02ec811f3ac7dbeeb59d2 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 13 七月 2020 19:39:10 +0800
Subject: [PATCH] 优化采购
---
service-user/src/main/java/com/java110/user/api/OrgApi.java | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/service-user/src/main/java/com/java110/user/api/OrgApi.java b/service-user/src/main/java/com/java110/user/api/OrgApi.java
index 3d0e406..f2c5db7 100644
--- a/service-user/src/main/java/com/java110/user/api/OrgApi.java
+++ b/service-user/src/main/java/com/java110/user/api/OrgApi.java
@@ -1,9 +1,10 @@
package com.java110.user.api;
import com.java110.dto.org.OrgDto;
-import com.java110.intf.user.org.IOrgApi;
-import com.java110.user.service.org.IQueryOrgsService;
+import com.java110.user.bmo.org.IQueryOrgsBMO;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@@ -18,19 +19,20 @@
* add by wuxw 2020/7/12
**/
@RestController
-public class OrgApi implements IOrgApi {
+@RequestMapping("/org")
+public class OrgApi {
@Autowired
- private IQueryOrgsService queryOrgsServiceImpl;
+ private IQueryOrgsBMO queryOrgsBMOImpl;
- @Override
+ @RequestMapping(value = "/queryOrgs", method = RequestMethod.GET)
public List<OrgDto> queryOrgs(@RequestParam(value = "orgId", required = false) String orgId,
@RequestParam(value = "staffId", required = false) String staffId) {
OrgDto orgDto = new OrgDto();
orgDto.setOrgId(orgId);
orgDto.setStaffId(staffId);
- List<OrgDto> orgDtos = queryOrgsServiceImpl.queryOrgs(orgDto);
+ List<OrgDto> orgDtos = queryOrgsBMOImpl.queryOrgs(orgDto);
return orgDtos;
}
--
Gitblit v1.8.0