Commit 6a737b81 authored by 赵啸非's avatar 赵啸非

添加每日接口同步考勤数据

parent 827a1414
...@@ -13,7 +13,7 @@ public class DoorEventInfo{ ...@@ -13,7 +13,7 @@ public class DoorEventInfo{
private String doorName; private String doorName;
private String orgIndexCode; private String orgIndexCode;
private String doorIndexCode; private String doorIndexCode;
private int eventType; private Integer eventType;
private String devIndexCode; private String devIndexCode;
private String identityCardUri; private String identityCardUri;
private String readerDevName; private String readerDevName;
...@@ -26,7 +26,7 @@ public class DoorEventInfo{ ...@@ -26,7 +26,7 @@ public class DoorEventInfo{
private String readerDevIndexCode; private String readerDevIndexCode;
private String certNo; private String certNo;
private String doorRegionIndexCode; private String doorRegionIndexCode;
private int inAndOutType; private Integer inAndOutType;
private String picUri; private String picUri;
private String jobNo; private String jobNo;
@JSONField(format = "yyyy-MM-dd'T'HH:mm:ssXXX") @JSONField(format = "yyyy-MM-dd'T'HH:mm:ssXXX")
......
...@@ -36,7 +36,7 @@ public class HikDoorServiceImpl extends AbstractHikService implements IHikDoorSe ...@@ -36,7 +36,7 @@ public class HikDoorServiceImpl extends AbstractHikService implements IHikDoorSe
try { try {
log.info("door events req=>{}", JSON.toJSONString(doorEventReq)); log.info("door events req=>{}", JSON.toJSONString(doorEventReq));
String respJson = ArtemisHttpUtil.doPostStringArtemis(config, path, JSON.toJSONString(doorEventReq), null, null, "application/json"); String respJson = ArtemisHttpUtil.doPostStringArtemis(config, path, JSON.toJSONString(doorEventReq), null, null, "application/json");
log.info("door events error resp=>{}", respJson); // log.info("door events error resp=>{}", respJson);
HikApiRest<DoorEventDataInfo> rest = JSON.parseObject(respJson, new TypeReference<HikApiRest<DoorEventDataInfo>>() { HikApiRest<DoorEventDataInfo> rest = JSON.parseObject(respJson, new TypeReference<HikApiRest<DoorEventDataInfo>>() {
}); });
if(rest.getCode()=="0"){ if(rest.getCode()=="0"){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment