Commit 40eaf7fe authored by wujiang's avatar wujiang

提交

parent 66c9f6bf
...@@ -620,9 +620,18 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -620,9 +620,18 @@ public class FireFightingSystemController extends AbstractBaseController {
for (int i = 0; i < result.length; i++) { for (int i = 0; i < result.length; i++) {
map.put(i, Integer.valueOf(result[i])); map.put(i, Integer.valueOf(result[i]));
} }
if (StringUtil.isNotEmpty(equipTypeAmountPage.getEquipmentClassificationCode())) { if (StringUtil.isNotEmpty(equipTypeAmountPage.getEquipmentClassificationCode())) {
EquipmentCategory equipmentCategory = equipmentCategoryService.getById(equipTypeAmountPage.getEquipmentClassificationCode());
QueryWrapper<EquipmentCategory> equipmentCategoryQueryWrapper = new QueryWrapper<>(); QueryWrapper<EquipmentCategory> equipmentCategoryQueryWrapper = new QueryWrapper<>();
if(equipmentCategory!=null)
{
equipmentCategoryQueryWrapper.eq("code", equipmentCategory.getCode());
}else
{
equipmentCategoryQueryWrapper.eq("code", equipTypeAmountPage.getEquipmentClassificationCode()); equipmentCategoryQueryWrapper.eq("code", equipTypeAmountPage.getEquipmentClassificationCode());
}
equipmentCategoryQueryWrapper.eq("industry_code", equipTypeAmountPage.getIndustryCode()); equipmentCategoryQueryWrapper.eq("industry_code", equipTypeAmountPage.getIndustryCode());
List<EquipmentCategory> equipmentCategoryList = equipmentCategoryService.list(equipmentCategoryQueryWrapper); List<EquipmentCategory> equipmentCategoryList = equipmentCategoryService.list(equipmentCategoryQueryWrapper);
if (CollectionUtils.isEmpty(equipmentCategoryList)) { if (CollectionUtils.isEmpty(equipmentCategoryList)) {
......
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