Commit 8baa6b2a authored by chenhao's avatar chenhao

解决水源信息中excle导入没有装备code 的问题

parent bf981480
......@@ -1047,6 +1047,25 @@ public class ExcelServiceImpl {
item.setEquipName(equipCategory[0]);
item.setEquipCategoryId(Long.parseLong(equipCategory[2]));
item.setEquipCategoryName(equipCategory[3]);
switch (equipCategory[3]) {
case "天然水源":
item.setEquipCategoryCode("93060300");
break;
case "水源-消火栓":
item.setEquipCategoryCode("93060400");
break;
case "消火栓":
item.setEquipCategoryCode("93060400");
break;
case "消防水池":
item.setEquipCategoryCode("93060100");
break;
case "消防水鹤":
item.setEquipCategoryCode("93060200");
break;
default:
break;
}
}
if (item.getContactUser() != null) {
String[] contactUser = item.getContactUser().split("@");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment