2025-12-19bug修改

This commit is contained in:
2025-12-19 18:19:33 +08:00
parent 541d674072
commit 41541c3735
4 changed files with 13 additions and 3 deletions

View File

@ -9,6 +9,8 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*; import jakarta.validation.constraints.*;
import java.math.BigDecimal;
/** /**
* 工程量清单业务对象 bus_billofquantities * 工程量清单业务对象 bus_billofquantities
* *
@ -72,7 +74,7 @@ public class BusBillofquantitiesBo extends BaseEntity {
/** /**
* 数量 * 数量
*/ */
private Long quantity; private BigDecimal quantity;
/** /**
* 备注 * 备注

View File

@ -10,6 +10,7 @@ import lombok.Data;
import java.io.Serial; import java.io.Serial;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
@ -84,7 +85,7 @@ public class BusBillofquantitiesVo implements Serializable {
* 数量 * 数量
*/ */
@ExcelProperty(value = "数量") @ExcelProperty(value = "数量")
private Long quantity; private BigDecimal quantity;
/** /**
* 备注 * 备注

View File

@ -342,7 +342,11 @@ public class MatMaterialsInventoryServiceImpl extends ServiceImpl<MatMaterialsIn
.select(MatMaterials::getId) .select(MatMaterials::getId)
.like(MatMaterials::getMaterialsName, materialsName); .like(MatMaterials::getMaterialsName, materialsName);
List<Long> materialsIdList = materialsService.listObjs(materialsQueryWrapper, obj -> (Long) obj); List<Long> materialsIdList = materialsService.listObjs(materialsQueryWrapper, obj -> (Long) obj);
lqw.in(MatMaterialsInventory::getMaterialsId, materialsIdList); if (CollUtil.isNotEmpty(materialsIdList)){
lqw.in(MatMaterialsInventory::getMaterialsId, materialsIdList);
}else {
lqw.eq(MatMaterialsInventory::getMaterialsId, -1);
}
} }
// 模糊查询 // 模糊查询
lqw.like(StringUtils.isNotBlank(operator), MatMaterialsInventory::getOperator, operator); lqw.like(StringUtils.isNotBlank(operator), MatMaterialsInventory::getOperator, operator);

View File

@ -2682,6 +2682,9 @@ public class PgsProgressCategoryServiceImpl extends ServiceImpl<PgsProgressCateg
} }
} }
} }
if (listValues.isEmpty()){
throw new ServiceException("没有数据");
}
try { try {
ExcelUtil.exportMultiSheetExcelEnhanced(listValues, names, PgsProgressCategoryVo.class, null, response); ExcelUtil.exportMultiSheetExcelEnhanced(listValues, names, PgsProgressCategoryVo.class, null, response);
} catch (IOException e) { } catch (IOException e) {