修复civilCode判断错误导致civilCode丢失

pull/964/head
648540858 2023-07-19 20:48:15 +08:00
parent 9cd63f0105
commit 77d9da25c4
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ public class XmlUtil {
if (!ObjectUtils.isEmpty(civilCode)
&& civilCode.length() <= 8
&& NumberUtils.isParsable(civilCode)
&& Integer.parseInt(civilCode)%2 == 0
&& civilCode.length()%2 == 0
) {
deviceChannel.setCivilCode(civilCode);
}