feat(小型刀具库): 物料信息表
This commit is contained in:
parent
5d9a9a71a8
commit
c44cd027c5
163
ktg-mes/src/main/java/com/ktg/mes/stl/domain/StlMaterial.java
Normal file
163
ktg-mes/src/main/java/com/ktg/mes/stl/domain/StlMaterial.java
Normal file
@ -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;
|
||||
}
|
@ -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<AP0AD> selectOutNewData();
|
||||
|
||||
@DataSource(DataSourceType.SQLSERVER)
|
||||
int updateOutDataToOld(AP0AD ap0ad);
|
||||
}
|
116
ktg-mes/src/main/resources/mapper/stl/StlMaterialMapper.xml
Normal file
116
ktg-mes/src/main/resources/mapper/stl/StlMaterialMapper.xml
Normal file
@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ktg.mes.stl.mapper.StlMaterialMapper">
|
||||
<resultMap type="StlMaterial" id="StlMaterialResult">
|
||||
<result property="productNumber" column="AA001"/>
|
||||
<result property="productName" column="AA002"/>
|
||||
<result property="specification" column="AA003"/>
|
||||
<result property="unit" column="AA004"/>
|
||||
<result property="image" column="AA005"/>
|
||||
<result property="mainWarehouse" column="AA006"/>
|
||||
<result property="inventoryCost" column="AA007"/>
|
||||
<result property="imageUpdateColumn" column="AA008"/>
|
||||
<result property="minimumInventory" column="AA009"/>
|
||||
<result property="materialTypeOne" column="AA010"/>
|
||||
<result property="materialTypeTwo" column="AA011"/>
|
||||
<result property="brand" column="AA012"/>
|
||||
<result property="manufacturerProductNumber" column="AA013"/>
|
||||
<result property="consumptionType" column="AA014"/>
|
||||
<result property="individualItemManagement" column="AA015"/>
|
||||
<result property="consumptionPermissionControl" column="AA016"/>
|
||||
<result property="unreturnedNumberControl" column="AA017"/>
|
||||
<result property="totalConsumptionControl" column="AA018"/>
|
||||
<result property="returnObjectRestrictionType" column="AA019"/>
|
||||
<result property="validityCode" column="AA020"/>
|
||||
<result property="remarkOne" column="AA021"/>
|
||||
<result property="remarkTwo" column="AA022"/>
|
||||
<result property="materialTypeThree" column="AA023"/>
|
||||
<result property="materialCabinetType" column="AA024"/>
|
||||
<result property="barcode" column="AA025"/>
|
||||
<result property="locationManagementEnabled" column="AA026"/>
|
||||
<result property="displayType" column="AA027"/>
|
||||
<result property="materialSerialNumberManagementEnabled" column="AA028"/>
|
||||
<result property="purchaseUnit" column="AA029"/>
|
||||
<result property="purchaseReminderQuantity" column="AA030"/>
|
||||
<result property="replenishmentCycleUnit" column="AA031"/>
|
||||
<result property="replenishmentCycleValue" column="AA032"/>
|
||||
<result property="mainSupplier" column="AA033"/>
|
||||
<result property="purchaseUnitInventoryConversion" column="AA034"/>
|
||||
<result property="expirationUnit" column="AA035"/>
|
||||
<result property="expirationValue" column="AA036"/>
|
||||
<result property="creditTermUnit" column="AA037"/>
|
||||
<result property="creditTermValue" column="AA038"/>
|
||||
<result property="packagingUnit" column="UDF01"/>
|
||||
<result property="productLocationNumber" column="UDF02"/>
|
||||
<result property="customField3" column="UDF03"/>
|
||||
<result property="customField4" column="UDF04"/>
|
||||
<result property="customField5" column="UDF05"/>
|
||||
<result property="packagingUnitInventoryConversion" column="UDF51"/>
|
||||
<result property="sharpeningCost" column="UDF52"/>
|
||||
<result property="customField8" column="UDF53"/>
|
||||
<result property="customField9" column="UDF54"/>
|
||||
<result property="customField10" column="UDF55"/>
|
||||
<result property="entryPerson" column="USER01"/>
|
||||
<result property="entryTime" column="DATE01"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="StlMaterialSelectAllCol">
|
||||
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
|
||||
</sql>
|
||||
|
||||
<select id="selectList" resultMap="StlMaterialResult">
|
||||
<include refid="StlMaterialSelectAllCol"/>
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user