1
2
3
4
5 package gboat2.web.action;
6
7 import gboat2.base.core.web.BaseActionSupport;
8 import gboat2.base.core.web.JsonResultSupport;
9 import gboat2.web.business.IGroupRoleBusiness;
10 import gboat2.web.model.GroupRoleVO;
11
12 import java.io.IOException;
13 import java.util.List;
14
15 import org.apache.struts2.convention.annotation.ParentPackage;
16 import org.springframework.beans.factory.annotation.Autowired;
17
18
19
20
21
22
23
24
25
26 @ParentPackage(value="desktop")
27 public class GroupRoleAction extends BaseActionSupport {
28
29
30
31 private static final long serialVersionUID = 1L;
32
33 @Autowired
34 private IGroupRoleBusiness resBusi;
35
36 private String inputValue;
37
38 public String getInputValue() {
39 return inputValue;
40 }
41 public void setInputValue(String inputValue) {
42 this.inputValue = inputValue;
43 }
44
45 public String fineGroupRole() throws IOException {
46 List<GroupRoleVO> list = resBusi.findGroupRoleVOByGRID(inputValue);
47 JsonResultSupport.output(JsonResultSupport.wrap(list));
48 return null;
49 }
50 }