88e030b7
王彪总
init project
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
package com.java110.user.api;
import com.java110.dto.org.OrgDto;
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;
import java.util.List;
/**
* @ClassName OrgApi
* @Description TODO
* @Author wuxw
* @Date 2020/7/12 20:01
* @Version 1.0
* add by wuxw 2020/7/12
**/
@RestController
@RequestMapping("/org")
public class OrgApi {
@Autowired
private IQueryOrgsBMO queryOrgsBMOImpl;
@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 = queryOrgsBMOImpl.queryOrgs(orgDto);
return orgDtos;
}
}
|