兴安优化
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();
|
||||
|
||||
@@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select spr.id, spr.people_id, spr.equipment_id, spr.device_ip, spr.admit_guid, spr.rec_mode, spr.file_path, spr.show_time, spr.show_date, spr.alive_type,
|
||||
spr.rec_score, spr.device_no, spr.device_version, spr.source, spr.type, spr.card_no, spr.device_name, spr.rec_type, spr.result, spr.permission_time_type,
|
||||
spr.pass_time_type, spr.rec_mode_type, spr.storage_id, spr.timestamp, spr.admit_name, spr.remark, spr.create_by, spr.create_time, spr.update_by, spr.update_time,
|
||||
e.name equipmentName,spr.flag,spr.group_id,p.name people_name,p.gh,spr.sign
|
||||
e.name equipmentName,spr.flag,spr.group_id,ifnull(p.name,spr.admit_name) people_name,p.gh,spr.sign
|
||||
from sys_people_record spr
|
||||
left join sys_equipment e on spr.equipment_id=e.id
|
||||
left join sys_people p on spr.people_id=p.id
|
||||
|
||||
Reference in New Issue
Block a user