| | |
| | | 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; |
| | | |
| | |
| | | * 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; |
| | | } |