兴安优化

This commit is contained in:
zc
2025-09-08 15:15:31 +08:00
parent c7a2bc5276
commit 4fb615c695
3 changed files with 28 additions and 4 deletions

View File

@@ -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();