name: hikvision-clear-expired-person-auth
Use this skill when the likely problem is a historical personal leave permission that was never recycled on Hikvision.
auth_config/search.auth_config/delete.auth_config/search and require the matched count to become 0.Collect these before deleting:
RYIDXMRYHpersonIdRCIDKSSJ ~ JSSJauth_config/search result proving the exact old window still existsDo not delete if:
Prefer a one-off Java probe in the project tmp/ directory that:
RCHKLA.RESOURCE_KEYS or RCHKLA_ITEM.RESOURCE_KEYSpersonIdauth_config/searchstartTime/endTimeresourceInfos only from the matched rowsauth_config/deleteauth_config/search until the matched row count becomes 0This is safer than deleting by a broad all-device search result without filtering the exact window.
Read these project scripts first and copy the nearest one into a new one-off probe:
tmp/prod_delete_lusiyu_expired_auth_probe.javatmp/prod_delete_yuanweiqi_expired_auth_probe.javatmp/prod_delete_two_students_expired_auth_probe.javaUse prod_delete_lusiyu_expired_auth_probe.java as the default starting point for a single student.
When cloning a probe, normally only change these constants:
private static final String XM = "学生姓名";
private static final String PERSON_ID = "海康personId";
private static final String EXPECT_BEG = "yyyy-MM-dd HH:mm:ss";
private static final String EXPECT_END = "yyyy-MM-dd HH:mm:ss";
If the resource set comes from a head-only old record, keep loading resource_keys from RCHKLA.
If the record already has RCHKLA_ITEM, prefer the item-level resource_keys.
From the PMS project root:
javac -cp 'tmp;.;out\artifacts\PMS_war_exploded\WEB-INF\lib\*' 'tmp\your_probe.java'
java -cp 'tmp;.;out\artifacts\PMS_war_exploded\WEB-INF\lib\*' your_probe
Deletion is only considered successful if all of these hold:
auth_config/delete returns code=0 or an accepted taskIdauth_config/search exact-window matched count is 0Report in this order:
personIdRCID and expired windowtaskId