修改人员脚本

This commit is contained in:
lvleigang 2024-06-25 15:40:34 +08:00
parent 465ede3d79
commit dfd77dc842
1 changed files with 6 additions and 4 deletions

View File

@ -42,10 +42,12 @@ public class GroovyIntegrationServiceImpl implements IGroovyIntegrationService {
com.alibaba.fastjson.JSONObject data = reqData.getJSONObject("data"); com.alibaba.fastjson.JSONObject data = reqData.getJSONObject("data");
com.alibaba.fastjson.JSONObject returnObject = new com.alibaba.fastjson.JSONObject(); com.alibaba.fastjson.JSONObject returnObject = new com.alibaba.fastjson.JSONObject();
com.alibaba.fastjson.JSONObject bodys = new com.alibaba.fastjson.JSONObject(); com.alibaba.fastjson.JSONObject bodys = new com.alibaba.fastjson.JSONObject();
bodys.put("userName", data.get("mobile")); bodys.put("userName", data.get("login_name"));
bodys.put("gender", data.get("sex")); if(data.get("gender") != null){
bodys.put("userTrueName", data.get("name")); bodys.put("gender", data.get("gender"));
bodys.put("userPwd", "123456"); }
bodys.put("userTrueName", data.get("user_name"));
bodys.put("userPwd", "Hzya@1314");
bodys.put("mobile", data.get("mobile")); bodys.put("mobile", data.get("mobile"));
returnObject.put("bodys",bodys.toJSONString()); returnObject.put("bodys",bodys.toJSONString());
return returnObject.toJSONString(); return returnObject.toJSONString();