AreaAction.java
1.03 KB
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
40
package com.cjs.site.action.pub;
import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cjs.site.util.t2.T2Result;
import com.cjs.site.util.t2.T2Util;
/**
* 恒生开户地区信息
*
* @author tongxiaochuan
*
*/
@Controller
@RequestMapping("/area")
public class AreaAction {
/**获取省份列表*/
@RequestMapping("/province")
public T2Result province() {
Map<String, Object> params = new HashMap<String, Object>();
params.put("bank_no", "99");
return T2Util.request(params, "619835");
}
/**获取城市列表*/
@RequestMapping("/city")
public @ResponseBody T2Result city(String provinceCode) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("bank_no", "99");
params.put("province_code", provinceCode);
return T2Util.request(params, "619836");
}
}