兴安优化
This commit is contained in:
@@ -3,6 +3,7 @@ package com.dcsoft.system.uniubi.controller;
|
||||
|
||||
import cn.hutool.http.HttpUtil;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.dcsoft.common.core.constant.Constants;
|
||||
import com.dcsoft.common.core.domain.R;
|
||||
@@ -351,8 +352,8 @@ public class SysSdkController {
|
||||
SysPeople sysPeople=new SysPeople();
|
||||
sysPeople.setGuid(info.getPersonId());
|
||||
SysPeople people= peopleService.selectByGuid(sysPeople);
|
||||
if(people!=null){
|
||||
peopleRecord.setPeopleId(people.getId()+"");
|
||||
if (people != null) {
|
||||
peopleRecord.setPeopleId(people.getId() + "");
|
||||
//考勤版本
|
||||
// ;
|
||||
// peopleRecord.setFlag("0");
|
||||
@@ -368,6 +369,19 @@ public class SysSdkController {
|
||||
//标准版本
|
||||
// String imgUrl=getImg(info.getPath(),info.getIp(),eqs.getPassword());
|
||||
// peopleRecord.setFilePath(imgUrl);
|
||||
} else {
|
||||
try {
|
||||
String urls = "http://" + eqs.getIp() + ":8090/person/find?pass=" + eqs.getPassword() + "&id=" + info.getPersonId();
|
||||
String body = HttpUtil.createGet(urls)
|
||||
.timeout(5000)
|
||||
.execute()
|
||||
.body();
|
||||
JSONObject jsonObject1 = JSONObject.parseObject(body);
|
||||
JSONObject data = (JSONObject) jsonObject1.getJSONArray("data").get(0);
|
||||
String name = data.getString("name");
|
||||
peopleRecord.setAdmitName(name);
|
||||
} catch (Exception e) {
|
||||
}
|
||||
}
|
||||
if(StringUtils.isNotEmpty(info.getPath())){//考勤版本
|
||||
String urls="http://"+eqs.getIp()+":8090/download/image?pass="+eqs.getPassword()+"&filename="+info.getPath();
|
||||
|
||||
Reference in New Issue
Block a user