huangbo %!s(int64=9) %!d(string=hace) años
padre
commit
29837f3d26
Se han modificado 1 ficheros con 25 adiciones y 33 borrados
  1. 25 33
      display-server/src/com/ai/server/bean/PersonBean.java

+ 25 - 33
display-server/src/com/ai/server/bean/PersonBean.java

@ -4,38 +4,30 @@ import com.ai.server.core.bean.DisplayBean;
4 4
import com.ailk.common.data.IData;
5 5
import com.ailk.common.data.impl.DataMap;
6 6

7
public class PersonBean extends DisplayBean
8
{
7
public class PersonBean extends DisplayBean {
9 8

10
    public IData getPersonDetailMore(IData param)
11
    {
12
        IData result = new DataMap();
13
        int personId = param.getInt("id");
14
        if (personId <= 0)
15
        {
16
            throw new RuntimeException("获取参数失败!");
17
        }
18
        if (personId == 1)
19
        {
20
            result.put("name", "小胖");
21
            result.put("age", 20);
22
            result.put("gender", "男");
23
            result.put("dept", "移动部门");
24
        }
25
        else if (personId == 2)
26
        {
27
            result.put("name", "张三");
28
            result.put("age", 22);
29
            result.put("gender", "");
30
            result.put("dept", "联通部门");
31
        }
32
        else if (personId == 3)
33
        {
34
            result.put("name", "李四");
35
            result.put("age", 24);
36
            result.put("gender", "女");
37
            result.put("dept", "财务部门");
38
        }
39
        return result;
40
    }
9
	public IData getPersonDetailMore(IData param) {
10
		IData result = new DataMap();
11
		int personId = param.getInt("id");
12
		if (personId <= 0) {
13
			throw new RuntimeException("获取参数失败!");
14
		}
15
		if (personId == 1) {
16
			result.put("name", "小胖");
17
			result.put("age", 20);
18
			result.put("gender", "男");
19
			result.put("dept", "移动部门");
20
		} else if (personId == 2) {
21
			result.put("name", "张三");
22
			result.put("age", 22);
23
			result.put("gender", "男");
24
			result.put("dept", "联通部门");
25
		} else if (personId == 3) {
26
			result.put("name", "李四");
27
			result.put("age", 24);
28
			result.put("gender", "");
29
			result.put("dept", "财务部门");
30
		}
31
		return result;
32
	}
41 33
}