编辑银行网点代码
1.39 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
41
42
43
44
45
46
47
48
49
50
/**
* 编辑银行网点收展服务人员
* @param bankCode
* @param empNo
* @return
*/
@RequestMapping("modifyBankEmp")
@ResponseBody
public ServerResponse<Map<String, String>> modiyfBankEmp (String bankCode,String empNo){
if(StringUtils.isEmpty(bankCode)){
return ServerResponse.createByErrorMessage("银行网点代码不能为空");
}
if(StringUtils.isEmpty(empNo)){
return ServerResponse.createByErrorMessage("收展服务人员代码不能为空");
}
JSONObject retjson=new JSONObject();
Map<String,String> paramMap=new HashMap<String,String>();
Map<String,String> retMap=new HashMap<String,String>();
retMap.put("isFlag", MyConstant.ISPASS_NO);
retMap.put("msg", "系统繁忙");
paramMap.put(bankCode,empNo);
try
{
retjson=ruleDealService.addBankEmp(paramMap);
if(retjson!=null){
retMap.put("msg", retjson.getString("msg"));
if(Integer.parseInt(retjson.getString("success"))>0){
retMap.put("isFlag", MyConstant.ISPASS_YES);
}
}
}
catch (Exception e)
{
e.printStackTrace();
}
return ServerResponse.createBySuccess(retMap);
}