Compare commits

...

2 Commits

Author SHA1 Message Date
c44cd027c5 feat(小型刀具库): 物料信息表 2024-12-12 15:17:37 +08:00
5d9a9a71a8 refactor: lombok 2024-12-12 15:17:09 +08:00
4 changed files with 307 additions and 376 deletions

View File

@ -1,7 +1,15 @@
package com.ktg.mes.md.domain;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
/**
* @author luo26
*/
@Setter
@Getter
public class AP0AE {
private String AE001 = null;
private String AE002 = null;
@ -105,382 +113,6 @@ public class AP0AE {
this.DATE02 = DATE02;
}
public String getAE001() {
return AE001;
}
public void setAE001(String AE001) {
this.AE001 = AE001;
}
public String getAE002() {
return AE002;
}
public void setAE002(String AE002) {
this.AE002 = AE002;
}
public Date getAE003() {
return AE003;
}
public void setAE003(Date AE003) {
this.AE003 = AE003;
}
public String getAE004() {
return AE004;
}
public void setAE004(String AE004) {
this.AE004 = AE004;
}
public String getAE005() {
return AE005;
}
public void setAE005(String AE005) {
this.AE005 = AE005;
}
public String getAE006() {
return AE006;
}
public void setAE006(String AE006) {
this.AE006 = AE006;
}
public String getAE007() {
return AE007;
}
public void setAE007(String AE007) {
this.AE007 = AE007;
}
public String getAE008() {
return AE008;
}
public void setAE008(String AE008) {
this.AE008 = AE008;
}
public String getAE009() {
return AE009;
}
public void setAE009(String AE009) {
this.AE009 = AE009;
}
public String getAE010() {
return AE010;
}
public void setAE010(String AE010) {
this.AE010 = AE010;
}
public String getAE011() {
return AE011;
}
public void setAE011(String AE011) {
this.AE011 = AE011;
}
public String getAE012() {
return AE012;
}
public void setAE012(String AE012) {
this.AE012 = AE012;
}
public String getAE013() {
return AE013;
}
public void setAE013(String AE013) {
this.AE013 = AE013;
}
public String getAE014() {
return AE014;
}
public void setAE014(String AE014) {
this.AE014 = AE014;
}
public String getAE015() {
return AE015;
}
public void setAE015(String AE015) {
this.AE015 = AE015;
}
public String getAE016() {
return AE016;
}
public void setAE016(String AE016) {
this.AE016 = AE016;
}
public Double getAE017() {
return AE017;
}
public void setAE017(Double AE017) {
this.AE017 = AE017;
}
public Double getAE018() {
return AE018;
}
public void setAE018(Double AE018) {
this.AE018 = AE018;
}
public Double getAE019() {
return AE019;
}
public void setAE019(Double AE019) {
this.AE019 = AE019;
}
public String getAE020() {
return AE020;
}
public void setAE020(String AE020) {
this.AE020 = AE020;
}
public String getAE021() {
return AE021;
}
public void setAE021(String AE021) {
this.AE021 = AE021;
}
public Double getAE022() {
return AE022;
}
public void setAE022(Double AE022) {
this.AE022 = AE022;
}
public String getAE023() {
return AE023;
}
public void setAE023(String AE023) {
this.AE023 = AE023;
}
public String getAE024() {
return AE024;
}
public void setAE024(String AE024) {
this.AE024 = AE024;
}
public String getAE025() {
return AE025;
}
public void setAE025(String AE025) {
this.AE025 = AE025;
}
public String getAE026() {
return AE026;
}
public void setAE026(String AE026) {
this.AE026 = AE026;
}
public String getAE027() {
return AE027;
}
public void setAE027(String AE027) {
this.AE027 = AE027;
}
public String getAE028() {
return AE028;
}
public void setAE028(String AE028) {
this.AE028 = AE028;
}
public String getUDF01() {
return UDF01;
}
public void setUDF01(String UDF01) {
this.UDF01 = UDF01;
}
public String getUDF02() {
return UDF02;
}
public void setUDF02(String UDF02) {
this.UDF02 = UDF02;
}
public String getUDF03() {
return UDF03;
}
public void setUDF03(String UDF03) {
this.UDF03 = UDF03;
}
public String getUDF04() {
return UDF04;
}
public void setUDF04(String UDF04) {
this.UDF04 = UDF04;
}
public String getUDF05() {
return UDF05;
}
public void setUDF05(String UDF05) {
this.UDF05 = UDF05;
}
public String getUDF06() {
return UDF06;
}
public void setUDF06(String UDF06) {
this.UDF06 = UDF06;
}
public String getUDF07() {
return UDF07;
}
public void setUDF07(String UDF07) {
this.UDF07 = UDF07;
}
public String getUDF08() {
return UDF08;
}
public void setUDF08(String UDF08) {
this.UDF08 = UDF08;
}
public String getUDF09() {
return UDF09;
}
public void setUDF09(String UDF09) {
this.UDF09 = UDF09;
}
public String getUDF10() {
return UDF10;
}
public void setUDF10(String UDF10) {
this.UDF10 = UDF10;
}
public Double getUDF51() {
return UDF51;
}
public void setUDF51(Double UDF51) {
this.UDF51 = UDF51;
}
public Double getUDF52() {
return UDF52;
}
public void setUDF52(Double UDF52) {
this.UDF52 = UDF52;
}
public Double getUDF53() {
return UDF53;
}
public void setUDF53(Double UDF53) {
this.UDF53 = UDF53;
}
public Double getUDF54() {
return UDF54;
}
public void setUDF54(Double UDF54) {
this.UDF54 = UDF54;
}
public Double getUDF55() {
return UDF55;
}
public void setUDF55(Double UDF55) {
this.UDF55 = UDF55;
}
public String getUSER01() {
return USER01;
}
public void setUSER01(String USER01) {
this.USER01 = USER01;
}
public String getUSER02() {
return USER02;
}
public void setUSER02(String USER02) {
this.USER02 = USER02;
}
public Date getDATE01() {
return DATE01;
}
public void setDATE01(Date DATE01) {
this.DATE01 = DATE01;
}
public Date getDATE02() {
return DATE02;
}
public void setDATE02(Date DATE02) {
this.DATE02 = DATE02;
}
@Override
public String toString() {
return "AP0AE{" +

View 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;
}

View File

@ -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);
}

View 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>