|
|
@ -31,13 +31,13 @@ public class GetUserInfo_controller {
|
|
|
|
private DataSetService dataSetService;
|
|
|
|
private DataSetService dataSetService;
|
|
|
|
@RequestMapping("/getUserInfo")
|
|
|
|
@RequestMapping("/getUserInfo")
|
|
|
|
public WeaResult<JSONObject> run(@RequestParam Map<String,Object> params) {
|
|
|
|
public WeaResult<JSONObject> run(@RequestParam Map<String,Object> params) {
|
|
|
|
log.error("getgsjc_controller execute start");
|
|
|
|
log.error("GetUserInfo_controller execute start");
|
|
|
|
log.error("getgsjc_controller execute params : " + params);
|
|
|
|
log.error("GetUserInfo_controller execute params : " + params);
|
|
|
|
JSONObject json = new JSONObject();
|
|
|
|
JSONObject json = new JSONObject();
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String id = null2String(params.get("id"));
|
|
|
|
String id = null2String(params.get("id"));
|
|
|
|
String sql = "select * from eteams.employee where id = " + id;
|
|
|
|
String sql = "select * from eteams.dbo.employee where id = " + id;
|
|
|
|
log.error("getgsjc_controller sql--" + sql);
|
|
|
|
log.error("GetUserInfo_controller sql--" + sql);
|
|
|
|
String sourceType = null2String(SourceType.LOGIC);
|
|
|
|
String sourceType = null2String(SourceType.LOGIC);
|
|
|
|
String groupId = "weaver-hr-service";
|
|
|
|
String groupId = "weaver-hr-service";
|
|
|
|
Map<String, Object> datas = executeForQuery(sourceType, groupId, sql);
|
|
|
|
Map<String, Object> datas = executeForQuery(sourceType, groupId, sql);
|
|
|
@ -54,7 +54,7 @@ public class GetUserInfo_controller {
|
|
|
|
log.error("getUserId status-->"+ datas.get("status"));
|
|
|
|
log.error("getUserId status-->"+ datas.get("status"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}catch (Exception e){
|
|
|
|
}catch (Exception e){
|
|
|
|
log.error("getgsjc_controller execute error : " ,e);
|
|
|
|
log.error("GetUserInfo_controller execute error : " ,e);
|
|
|
|
return WeaResult.fail(500, "getgsjc_controller execute error", e);
|
|
|
|
return WeaResult.fail(500, "getgsjc_controller execute error", e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return WeaResult.success(json);
|
|
|
|
return WeaResult.success(json);
|
|
|
|