diff --git a/ktg-mes/src/main/java/com/ktg/mes/stl/domain/StlMaterial.java b/ktg-mes/src/main/java/com/ktg/mes/stl/domain/StlMaterial.java new file mode 100644 index 0000000..0f63656 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/stl/domain/StlMaterial.java @@ -0,0 +1,163 @@ +package com.ktg.mes.stl.domain; + +import com.ktg.common.annotation.Excel; +import lombok.Data; + +import java.math.BigDecimal; +import java.util.Date; + +/** + * 小型刀具库-物料信息 + */ +@Data +public class StlMaterial { + @Excel(name = "品号") + private String productNumber; + + @Excel(name = "品名") + private String productName; + + @Excel(name = "规格") + private String specification; + + @Excel(name = "单位") + private String unit; + + @Excel(name = "图片") + private byte[] image; + + @Excel(name = "主仓库") + private String mainWarehouse; + + @Excel(name = "库存成本") + private BigDecimal inventoryCost; + + @Excel(name = "图片更新栏位") + private String imageUpdateColumn; + + @Excel(name = "最低库存") + private BigDecimal minimumInventory; + + @Excel(name = "物料类型一") + private String materialTypeOne; + + @Excel(name = "物料类型二") + private String materialTypeTwo; + + @Excel(name = "品牌") + private String brand; + + @Excel(name = "厂家品号") + private String manufacturerProductNumber; + + @Excel(name = "领用类型(领用/借用)") + private String consumptionType; + + @Excel(name = "单品管理") + private String individualItemManagement; + + @Excel(name = "领用权限控制") + private String consumptionPermissionControl; + + @Excel(name = "未归还数控制") + private String unreturnedNumberControl; + + @Excel(name = "个人/设备 总领用量控制") + private String totalConsumptionControl; + + @Excel(name = "归还对象限定类型") + private String returnObjectRestrictionType; + + @Excel(name = "有效码(有效,限制,停止)") + private String validityCode; + + @Excel(name = "备注一") + private String remarkOne; + + @Excel(name = "备注二") + private String remarkTwo; + + @Excel(name = "物料类型三") + private String materialTypeThree; + + @Excel(name = "物料柜类型") + private String materialCabinetType; + + @Excel(name = "条码") + private String barcode; + + @Excel(name = "库位管理是否") + private String locationManagementEnabled; + + @Excel(name = "显示类型") + private String displayType; + + @Excel(name = "物料序号管理是否") + private String materialSerialNumberManagementEnabled; + + @Excel(name = "采购单位") + private String purchaseUnit; + + @Excel(name = "采购提醒量") + private BigDecimal purchaseReminderQuantity; + + @Excel(name = "补货周期单位") + private String replenishmentCycleUnit; + + @Excel(name = "补货周期数值") + private BigDecimal replenishmentCycleValue; + + @Excel(name = "主供应商") + private String mainSupplier; + + @Excel(name = "采购单位库存单位换算") + private BigDecimal purchaseUnitInventoryConversion; + + @Excel(name = "有限期单位") + private String expirationUnit; + + @Excel(name = "有限期值") + private BigDecimal expirationValue; + + @Excel(name = "信用期单位") + private String creditTermUnit; + + @Excel(name = "信用期数值") + private BigDecimal creditTermValue; + + @Excel(name = "包装单位") + private String packagingUnit; + + @Excel(name = "品号库位号") + private String productLocationNumber; + + @Excel(name = "自定义字段3") + private String customField3; + + @Excel(name = "自定义字段4") + private String customField4; + + @Excel(name = "自定义字段5") + private String customField5; + + @Excel(name = "包装单位库存单位换算") + private BigDecimal packagingUnitInventoryConversion; + + @Excel(name = "修磨成本") + private BigDecimal sharpeningCost; + + @Excel(name = "自定义字段8") + private BigDecimal customField8; + + @Excel(name = "自定义字段9") + private BigDecimal customField9; + + @Excel(name = "自定义字段10") + private BigDecimal customField10; + + @Excel(name = "录入人") + private String entryPerson; + + @Excel(name = "录入时间") + private Date entryTime; +} diff --git a/ktg-mes/src/main/java/com/ktg/mes/stl/mapper/StlMaterialMapper.java b/ktg-mes/src/main/java/com/ktg/mes/stl/mapper/StlMaterialMapper.java new file mode 100644 index 0000000..557c2a4 --- /dev/null +++ b/ktg-mes/src/main/java/com/ktg/mes/stl/mapper/StlMaterialMapper.java @@ -0,0 +1,20 @@ +package com.ktg.mes.stl.mapper; + +import com.ktg.common.annotation.DataSource; +import com.ktg.common.enums.DataSourceType; +import com.ktg.mes.md.domain.AP0AD; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * @author luo26 + */ +@Mapper +public interface StlMaterialMapper { + @DataSource(DataSourceType.SQLSERVER) + List selectOutNewData(); + + @DataSource(DataSourceType.SQLSERVER) + int updateOutDataToOld(AP0AD ap0ad); +} diff --git a/ktg-mes/src/main/resources/mapper/stl/StlMaterialMapper.xml b/ktg-mes/src/main/resources/mapper/stl/StlMaterialMapper.xml new file mode 100644 index 0000000..834c660 --- /dev/null +++ b/ktg-mes/src/main/resources/mapper/stl/StlMaterialMapper.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select AA001, + AA002, + AA003, + AA004, + AA005, + AA006, + AA007, + AA008, + AA009, + AA010, + AA011, + AA012, + AA013, + AA014, + AA015, + AA016, + AA017, + AA018, + AA019, + AA020, + AA021, + AA022, + AA023, + AA024, + AA025, + AA026, + AA027, + AA028, + AA029, + AA030, + AA031, + AA032, + AA033, + AA034, + AA035, + AA036, + AA037, + AA038, + UDF01, + UDF02, + UDF03, + UDF04, + UDF05, + UDF51, + UDF52, + UDF53, + UDF54, + UDF55, + USER01, + DATE01, + from AP0AA + + + + \ No newline at end of file