From f14fd39c5c66dab806e9bce1d8229c30a63c22ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=8D=E5=96=9C?= Date: Wed, 18 Dec 2024 10:26:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E6=96=99=E7=AE=B1=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ktg/mes/wm/domain/UcmCtBase.java | 126 ++++---- .../resources/mapper/wm/UcmCtBaseMapper.xml | 282 +++++++++++++----- 2 files changed, 264 insertions(+), 144 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/domain/UcmCtBase.java b/ktg-mes/src/main/java/com/ktg/mes/wm/domain/UcmCtBase.java index 74f2b9d..c31952d 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/domain/UcmCtBase.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/domain/UcmCtBase.java @@ -1,112 +1,116 @@ package com.ktg.mes.wm.domain; -import com.ktg.mes.md.domain.BaseKnife; -import com.ktg.mes.md.domain.MbbProduBom; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; import com.ktg.common.annotation.Excel; import com.ktg.common.core.domain.BaseEntity; +import com.ktg.mes.md.domain.BaseKnife; import java.util.List; /** * 料箱管理对象 UCM_CT_BASE - * + * * @author yinjinlu * @date 2024-10-31 */ -public class UcmCtBase extends BaseEntity -{ +public class UcmCtBase extends BaseEntity { private static final long serialVersionUID = 1L; - /** 料箱id */ + /** + * 料箱id + */ private String ctBaseId; - /** 料箱编码 */ + /** + * 料箱编码 + */ @Excel(name = "料箱编码") private String code; - /** 料箱状态:0-正常,1-绑定,2-解绑 */ + /** + * 料箱状态:0-正常,1-绑定,2-解绑 + */ @Excel(name = "料箱状态:0-正常,1-绑定,2-解绑") private String type; - /** 预留字段1 */ + /** + * 预留字段1 + */ private String attr1; - /** 预留字段2 */ + /** + * 预留字段2 + */ private String attr2; - /** 预留字段3,为空或者0表示普通料箱,为1表示大号料箱 */ - private String attr3; + /** + * 预留字段3,为空或者0表示普通料箱,为1表示大号料箱 + */ + private Integer attr3; - /** 预留字段4 */ - private String attr4; + /** + * 预留字段4 + */ + private Integer attr4; - /** BOM物料信息 */ + /** + * BOM物料信息 + */ private List baseKnifeList; - public void setCtBaseId(String ctBaseId) - { + public void setCtBaseId(String ctBaseId) { this.ctBaseId = ctBaseId; } - public String getCtBaseId() - { + public String getCtBaseId() { return ctBaseId; } - public void setCode(String code) - { + + public void setCode(String code) { this.code = code; } - public String getCode() - { + public String getCode() { return code; } - public void setType(String type) - { + + public void setType(String type) { this.type = type; } - public String getType() - { + public String getType() { return type; } - public void setAttr1(String attr1) - { + + public void setAttr1(String attr1) { this.attr1 = attr1; } - public String getAttr1() - { + public String getAttr1() { return attr1; } - public void setAttr2(String attr2) - { + + public void setAttr2(String attr2) { this.attr2 = attr2; } - public String getAttr2() - { + public String getAttr2() { return attr2; } - public void setAttr3(String attr3) - { + + public Integer getAttr3() { + return attr3; + } + + public void setAttr3(Integer attr3) { this.attr3 = attr3; } - public String getAttr3() - { - return attr3; - } - public void setAttr4(String attr4) - { - this.attr4 = attr4; + public Integer getAttr4() { + return attr4; } - public String getAttr4() - { - return attr4; + public void setAttr4(Integer attr4) { + this.attr4 = attr4; } public List getBaseKnifeList() { @@ -119,19 +123,15 @@ public class UcmCtBase extends BaseEntity @Override public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("ctBaseId", getCtBaseId()) - .append("code", getCode()) - .append("type", getType()) - .append("remark", getRemark()) - .append("attr1", getAttr1()) - .append("attr2", getAttr2()) - .append("attr3", getAttr3()) - .append("attr4", getAttr4()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .toString(); + return "UcmCtBase{" + + "ctBaseId='" + ctBaseId + '\'' + + ", code='" + code + '\'' + + ", type='" + type + '\'' + + ", attr1='" + attr1 + '\'' + + ", attr2='" + attr2 + '\'' + + ", attr3=" + attr3 + + ", attr4=" + attr4 + + ", baseKnifeList=" + baseKnifeList + + '}'; } } diff --git a/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml b/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml index 6a5882d..094e046 100644 --- a/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml +++ b/ktg-mes/src/main/resources/mapper/wm/UcmCtBaseMapper.xml @@ -1,67 +1,116 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - - - - - + + + + + + + + + + + + - + - - - - + + + + - select CT_BASE_ID, CODE, TYPE, REMARK, ATTR1, ATTR2, ATTR3, ATTR4, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME from UCM_CT_BASE + select CT_BASE_ID, + CODE, + TYPE, + REMARK, + ATTR1, + ATTR2, + ATTR3, + ATTR4, + CREATE_BY, + CREATE_TIME, + UPDATE_BY, + UPDATE_TIME + from UCM_CT_BASE - + - + insert into UCM_CT_BASE - CODE, - TYPE, - REMARK, - ATTR1, - ATTR2, - ATTR3, - ATTR4, - CREATE_BY, - CREATE_TIME, - UPDATE_BY, - UPDATE_TIME, - + + CODE, + + + TYPE, + + + REMARK, + + + ATTR1, + + + ATTR2, + + + ATTR3, + + + ATTR4, + + + CREATE_BY, + + + CREATE_TIME, + + + UPDATE_BY, + + + UPDATE_TIME, + + - #{code}, - #{type}, - #{remark}, - #{attr1}, - #{attr2}, - #{attr3}, - #{attr4}, - #{createBy}, - #{createTime}, - #{updateBy}, - #{updateTime}, - + + #{code}, + + + #{type}, + + + #{remark}, + + + #{attr1}, + + + #{attr2}, + + + #{attr3}, + + + #{attr4}, + + + #{createBy}, + + + #{createTime}, + + + #{updateBy}, + + + #{updateTime}, + + update UCM_CT_BASE - CODE = #{code}, - TYPE = #{type}, - REMARK = #{remark}, - ATTR1 = #{attr1}, - ATTR2 = #{attr2}, - ATTR3 = #{attr3}, - ATTR4 = #{attr4}, - CREATE_BY = #{createBy}, - CREATE_TIME = #{createTime}, - UPDATE_BY = #{updateBy}, - UPDATE_TIME = #{updateTime}, + + CODE = #{code}, + + + TYPE = #{type}, + + + REMARK = #{remark}, + + + ATTR1 = #{attr1}, + + + ATTR2 = #{attr2}, + + + ATTR3 = #{attr3}, + + + ATTR4 = #{attr4}, + + + CREATE_BY = #{createBy}, + + + CREATE_TIME = #{createTime}, + + + UPDATE_BY = #{updateBy}, + + + UPDATE_TIME = #{updateTime}, + where CT_BASE_ID = #{ctBaseId} - delete from UCM_CT_BASE where CT_BASE_ID = #{ctBaseId} + delete + from UCM_CT_BASE + where CT_BASE_ID = #{ctBaseId} - delete from UCM_CT_BASE where CT_BASE_ID in + delete + from UCM_CT_BASE where CT_BASE_ID in #{ctBaseId} - delete from UCM_CT_MATERIAL where ct_base_id = #{ctBaseId} + delete + from UCM_CT_MATERIAL + where ct_base_id = #{ctBaseId} - insert into ucm_ct_material( ct_base_id, base_knife_id, CREATE_BY, CREATE_TIME) values - ( #{ctBaseId}, #{baseKnifeId}, #{createBy}, #{createTime}) + insert into ucm_ct_material(ct_base_id, base_knife_id, CREATE_BY, CREATE_TIME) + values (#{ctBaseId}, #{baseKnifeId}, #{createBy}, #{createTime}) - \ No newline at end of file +