JSK 人员进出记录问题解决

This commit is contained in:
jiask 2026-01-16 17:24:53 +08:00
parent a5cf4725b7
commit 0e12b59f12
3 changed files with 9 additions and 6 deletions

View File

@ -108,8 +108,13 @@ public class KitchenStaffInfoFaceTask {
/**
* 定时初始化厨房门禁设备权柄防止设备突发出现断联
*/
boolean flage=true;
@Scheduled(fixedDelay = 10 * 60 * 1000)
public void InitDev() throws InterruptedException {
if(flage){
flage=false;
return;
}
System.out.println("检查门禁设备及初始化设备!");
boolean dd=initServer.hCNetSDK.NET_DVR_RemoteControl(initServer.lUserID,20005,null,0);
if(dd){

View File

@ -60,22 +60,20 @@ public class initServer implements CommandLineRunner {
}
}
boolean dd=initServer.hCNetSDK.NET_DVR_RemoteControl(initServer.lUserID,20005,null,0);
if(dd){
if(!dd){
System.out.println("初始:"+devIp);
Login(devIp,devUser,devPass,(short) 8000,1); //登陆
Thread.sleep(2000);
Alarm.SetAlarm(initServer.lUserID);
}
dd=initServer.hCNetSDK.NET_DVR_RemoteControl(initServer.lUserID2,20005,null,0);
if(dd){
if(!dd){
System.out.println("初始:"+devIp2);
Login(devIp2,devUser,devPass,(short) 8000,2); //登陆
}
dd=initServer.hCNetSDK.NET_DVR_RemoteControl(initServer.lUserID3,20005,null,0);
if(dd){
if(!dd){
System.out.println("初始:"+devIp3);
Login(devIp3,devUser,devPass,(short) 8000,3); //登陆
Thread.sleep(2000);
Alarm.SetAlarm(initServer.lUserID3);
}
System.err.println("hCNetSDK1111111111111=="+hCNetSDK);

View File

@ -57,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="articleTitle != null and articleTitle != ''"> and (kst.staff_name like concat('%', #{articleTitle}, '%') or kst.mobile like concat('%', #{articleTitle}, '%'))</if>
<if test="staffId != null "> and kseer.staff_id = #{staffId}</if>
<if test="enterImgUrl != null and enterImgUrl != ''"> and kseer.enter_img_url = #{enterImgUrl}</if>
<if test="startDate != null "> and substring(kseer.enter_time,1,10) >= #{startDate} and #{endDate}>= substring(kseer.enter_time,1,10)</if>
<if test="startDate != null "> and substring(kseer.create_time,1,10) >= #{startDate} and #{endDate}>= substring(kseer.create_time,1,10)</if>
<if test="areaId != null and areaId != ''"> and kst.area_id = #{areaId}</if>
<if test="canteenId != null and canteenId != ''"> and kst.canteen_id = #{canteenId}</if>