change - 工位信息

master
yinq 2 years ago
parent 980f771f2d
commit 98d03d365f

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

@ -16,6 +16,8 @@
<result property="createdTime" column="created_time" />
<result property="updatedBy" column="updated_by" />
<result property="updatedTime" column="updated_time" />
<result property="parentId" column="parent_id" />
<result property="parentName" column="parentName" />
</resultMap>
<sql id="selectBaseProductLineVo">
@ -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
</sql>
<select id="selectBaseProductLineList" parameterType="BaseProductLine" resultMap="BaseProductLineResult">
@ -46,6 +51,7 @@
<if test="createdTime != null "> and bpl.created_time = #{createdTime}</if>
<if test="updatedBy != null and updatedBy != ''"> and bpl.updated_by = #{updatedBy}</if>
<if test="updatedTime != null "> and bpl.updated_time = #{updatedTime}</if>
<if test="parentId != null "> and bpl.parent_id = #{parentId}</if>
</where>
order by bpl.PRODUCT_LINE_CODE
</select>
@ -71,6 +77,7 @@
<if test="createdTime != null">created_time,</if>
<if test="updatedBy != null">updated_by,</if>
<if test="updatedTime != null">updated_time,</if>
<if test="parentId != null">parent_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="objId != null">#{objId},</if>
@ -83,6 +90,7 @@
<if test="createdTime != null">#{createdTime},</if>
<if test="updatedBy != null">#{updatedBy},</if>
<if test="updatedTime != null">#{updatedTime},</if>
<if test="parentId != null">#{parentId},</if>
</trim>
</insert>
@ -98,6 +106,7 @@
<if test="createdTime != null">created_time = #{createdTime},</if>
<if test="updatedBy != null">updated_by = #{updatedBy},</if>
<if test="updatedTime != null">updated_time = #{updatedTime},</if>
<if test="parentId != null">parent_id = #{parentId},</if>
</trim>
where obj_id = #{objId}
</update>

Loading…
Cancel
Save