excel读取修改,api导入房间名添加

This commit is contained in:
lym
2025-01-17 16:39:05 +08:00
parent 2025f35965
commit addbf16eed
4 changed files with 10 additions and 10 deletions
@@ -975,8 +975,8 @@ public class ApiTypeRealize {
.filterType("")
.remark(remark)
.organId(organId)
// .roomName(bodyInfos.get(plate.getLong(ProduceApiConstants.BD_BOX_ID)).getRoomName())
.bodyName(plate.getString(ProduceApiConstants.BD_BOX_ID)) // 之后再改成名称
.roomName(plate.getString(ProduceApiConstants.BD_ROOM_NAME))
.bodyName(plate.getString(ProduceApiConstants.BD_BOX_NAME)) // 之后再改成名称
.customPlateNoBuilder(new StringBuilder())
.build();
partsInfos.put(plate.getString(ProduceApiConstants.BD_BLOCK_NO), plateInfo);
@@ -337,8 +337,8 @@ public class ExcelCheckListUtil {
isNotEmptyAndBack(vo.getGoodsThickness(), errList, "板材厚度", flag);
isEmptyAndPositiveNumberSize(vo.getGoodsThickness(), Double.class, 5, 3, errList, "板材厚度", flag);
// 房间、柜体、板名称 不可以为空
isEmpty(vo.getRoomsName(), errList, "房间名称", 64, flag);
isEmpty(vo.getCabinetsName(), errList, "柜体名称", 64, flag);
isEmptyAndSize(vo.getRoomsName(), 64, errList, "房间名称" , flag);
isEmptyAndSize(vo.getCabinetsName(), 64, errList, "柜体名称", flag);
isEmpty(vo.getName(), errList, "板材名称", 64, flag);
//成品长、成品宽、拆单长、拆单宽、厚、左封边、右封边、上封边、下封边 不能为空
isNotEmptyAndBack(vo.getHeight(), errList, "成品长度", flag);
@@ -101,17 +101,17 @@ public class LargeFilesUtils {
private OrderPlateImportExcelVO createOrderPlateFromRow(Row row) {
OrderPlateImportExcelVO vo = new OrderPlateImportExcelVO();
int columnIndex = 0;
for (Cell cell : row) {
setOrderPlateProperty(vo, cell, columnIndex++);
setOrderPlateProperty(vo, cell);
}
return vo;
}
private void setOrderPlateProperty(OrderPlateImportExcelVO vo, Cell cell, int index) {
private void setOrderPlateProperty(OrderPlateImportExcelVO vo, Cell cell) {
String value = cell.getStringCellValue();
int index = cell.getColumnIndex();
switch (index) {
case 0:
@@ -117,9 +117,9 @@ public class OrderPlateImportExcelVO {
@JsonIgnore
private String cabinetsName;
@ExcelIgnore
@JsonIgnore
private String synthesis;
// @ExcelIgnore
// @JsonIgnore
// private String synthesis;
@JsonIgnore
@ExcelProperty(value = "加工组类型")