diff --git a/aucma-base/src/main/java/com/aucma/base/domain/BaseProductLine.java b/aucma-base/src/main/java/com/aucma/base/domain/BaseProductLine.java index f6b9ca3..2b3d249 100644 --- a/aucma-base/src/main/java/com/aucma/base/domain/BaseProductLine.java +++ b/aucma-base/src/main/java/com/aucma/base/domain/BaseProductLine.java @@ -23,21 +23,27 @@ public class BaseProductLine extends BaseEntity { private Long objId; /** - * 产线编号 + * 产线/工位编号 */ - @Excel(name = "产线编号") + @Excel(name = "产线/工位编号") private String productLineCode; + /** 父产线/工位名称 */ + private String parentName; + + /** 父产线/工位编号 */ + private String parentId; + /** * 产线名称 */ - @Excel(name = "产线名称") + @Excel(name = "产线产线/工位名称") private String productLineName; /** * 产线类别(1-产线;2-工位) */ - @Excel(name = "产线类别", readConverterExp = "1=-产线;2-工位") + @Excel(name = "类别", readConverterExp = "1=-产线;2-工位") private Long productLineType; /** @@ -84,6 +90,21 @@ public class BaseProductLine extends BaseEntity { @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") private Date updatedTime; + public String getParentName() { + return parentName; + } + + public void setParentName(String parentName) { + this.parentName = parentName; + } + + public String getParentId() { + return parentId; + } + + public void setParentId(String parentId) { + this.parentId = parentId; + } public String getPlantName() { return plantName; diff --git a/aucma-base/src/main/resources/mapper/base/BaseProductLineMapper.xml b/aucma-base/src/main/resources/mapper/base/BaseProductLineMapper.xml index e56d82f..27dd64c 100644 --- a/aucma-base/src/main/resources/mapper/base/BaseProductLineMapper.xml +++ b/aucma-base/src/main/resources/mapper/base/BaseProductLineMapper.xml @@ -16,6 +16,8 @@ + + @@ -29,9 +31,12 @@ bpl.created_by, bpl.created_time, bpl.updated_by, - bpl.updated_time + bpl.updated_time, + bpl.PARENT_ID, + b2.PRODUCT_LINE_NAME parentName from base_productline bpl left join base_factory bf on bf.factory_code = bpl.plant_code + left join base_productline b2 on b2.PRODUCT_LINE_CODE = bpl.PARENT_ID @@ -71,6 +77,7 @@ created_time, updated_by, updated_time, + parent_id, #{objId}, @@ -83,6 +90,7 @@ #{createdTime}, #{updatedBy}, #{updatedTime}, + #{parentId}, @@ -98,6 +106,7 @@ created_time = #{createdTime}, updated_by = #{updatedBy}, updated_time = #{updatedTime}, + parent_id = #{parentId}, where obj_id = #{objId}