修复civilCode判断错误导致civilCode丢失
parent
9cd63f0105
commit
77d9da25c4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue