chengf
2026-01-27 b6184e2ddf3db37a94f7efb3b619bbc64642a292
service-api/src/main/java/com/java110/api/importData/adapt/ImportRoomOwnerDataV2CleaningAdapt.java
@@ -55,16 +55,20 @@
            if (oList.get(osIndex)[0] == null) {
                break;
            }
            Object[] os = new Object[168];
            System.arraycopy(oList.get(osIndex), 0, os, 0, oList.get(osIndex).length);
            Assert.hasValue(os[3], (osIndex + 1) + "行项目编码不能为空");
            Object[] os = new Object[170];
            try {
                System.arraycopy(oList.get(osIndex), 0, os, 0, oList.get(osIndex).length);
            } catch (ArrayIndexOutOfBoundsException e) {
                throw new IllegalArgumentException("Excel长度过长!");
            }
//            Assert.hasValue(os[3], (osIndex + 1) + "行项目编码不能为空");
            Assert.hasValue(os[5], (osIndex + 1) + "行路不能为空");
            Assert.hasValue(os[7], (osIndex + 1) + "行门号不能为空");
            Assert.hasValue(os[8], (osIndex + 1) + "行室号不能为空");
            Assert.hasValue(os[9], (osIndex + 1) + "行门室号不能为空");
//            Assert.hasValue(os[9], (osIndex + 1) + "行门室号不能为空");
            Assert.hasValue(os[10], (osIndex + 1) + "行业主地址不能为空");
            Assert.hasValue(os[16], (osIndex + 1) + "行住宅面积不能为空");
            os[167] = result.getUserId();
            os[169] = result.getUserId();
            ownerRoomDtos.add(os);
@@ -79,20 +83,23 @@
            if (oList.get(osIndex)[0] == null) {
                break;
            }
            Object[] os = new Object[168];
            Object[] os = new Object[170];
            System.arraycopy(oList.get(osIndex), 0, os, 0, oList.get(osIndex).length);
            Assert.hasValue(os[3], (osIndex + 1) + "行项目编码不能为空");
//            Assert.hasValue(os[3], (osIndex + 1) + "行项目编码不能为空");
            Assert.hasValue(os[5], (osIndex + 1) + "行路不能为空");
            Assert.hasValue(os[7], (osIndex + 1) + "行门号不能为空");
            Assert.hasValue(os[8], (osIndex + 1) + "行室号不能为空");
            Assert.hasValue(os[9], (osIndex + 1) + "行门室号不能为空");
//            Assert.hasValue(os[9], (osIndex + 1) + "行门室号不能为空");
            Assert.hasValue(os[10], (osIndex + 1) + "行业主地址不能为空");
            Assert.hasValue(os[16], (osIndex + 1) + "行住宅面积不能为空");
            os[167] = result.getUserId();
            os[169] = result.getUserId();
            ownerRoomDtos.add(os);
        }
        if (ownerRoomDtos.size() == 0) {
            throw new IllegalArgumentException("sheet内容为空");
        }
    }