fix:物料产品管理(BOM组成)、到货通知单(物料信息)的单位名称问题解决。
This commit is contained in:
parent
fdb428a022
commit
1fe2da5cea
@ -43,6 +43,9 @@ public class MdProductBom extends BaseEntity
|
|||||||
@Excel(name = "BOM物料单位")
|
@Excel(name = "BOM物料单位")
|
||||||
private String unitOfMeasure;
|
private String unitOfMeasure;
|
||||||
|
|
||||||
|
/** BOM物料单位名称 */
|
||||||
|
private String unitName;
|
||||||
|
|
||||||
/** 产品物料标识 */
|
/** 产品物料标识 */
|
||||||
@Excel(name = "产品物料标识")
|
@Excel(name = "产品物料标识")
|
||||||
private String itemOrProduct;
|
private String itemOrProduct;
|
||||||
@ -67,6 +70,14 @@ public class MdProductBom extends BaseEntity
|
|||||||
/** 预留字段4 */
|
/** 预留字段4 */
|
||||||
private Long attr4;
|
private Long attr4;
|
||||||
|
|
||||||
|
public String getUnitName() {
|
||||||
|
return unitName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitName(String unitName) {
|
||||||
|
this.unitName = unitName;
|
||||||
|
}
|
||||||
|
|
||||||
public void setBomId(Long bomId)
|
public void setBomId(Long bomId)
|
||||||
{
|
{
|
||||||
this.bomId = bomId;
|
this.bomId = bomId;
|
||||||
@ -204,6 +215,7 @@ public class MdProductBom extends BaseEntity
|
|||||||
.append("bomItemName", getBomItemName())
|
.append("bomItemName", getBomItemName())
|
||||||
.append("bomItemSpec", getBomItemSpec())
|
.append("bomItemSpec", getBomItemSpec())
|
||||||
.append("unitOfMeasure", getUnitOfMeasure())
|
.append("unitOfMeasure", getUnitOfMeasure())
|
||||||
|
.append("unitName", getUnitName())
|
||||||
.append("itemOrProduct", getItemOrProduct())
|
.append("itemOrProduct", getItemOrProduct())
|
||||||
.append("quantity", getQuantity())
|
.append("quantity", getQuantity())
|
||||||
.append("enableFlag", getEnableFlag())
|
.append("enableFlag", getEnableFlag())
|
||||||
|
@ -43,6 +43,9 @@ public class WmArrivalNoticeLine extends BaseEntity
|
|||||||
@Excel(name = "单位")
|
@Excel(name = "单位")
|
||||||
private String unitOfMeasure;
|
private String unitOfMeasure;
|
||||||
|
|
||||||
|
/** 单位名称 */
|
||||||
|
private String unitName;
|
||||||
|
|
||||||
/** 到货数量 */
|
/** 到货数量 */
|
||||||
@Excel(name = "到货数量")
|
@Excel(name = "到货数量")
|
||||||
private BigDecimal quantityArrival;
|
private BigDecimal quantityArrival;
|
||||||
@ -75,6 +78,14 @@ public class WmArrivalNoticeLine extends BaseEntity
|
|||||||
/** 预留字段4 */
|
/** 预留字段4 */
|
||||||
private Long attr4;
|
private Long attr4;
|
||||||
|
|
||||||
|
public String getUnitName() {
|
||||||
|
return unitName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUnitName(String unitName) {
|
||||||
|
this.unitName = unitName;
|
||||||
|
}
|
||||||
|
|
||||||
public void setLineId(Long lineId)
|
public void setLineId(Long lineId)
|
||||||
{
|
{
|
||||||
this.lineId = lineId;
|
this.lineId = lineId;
|
||||||
|
@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="bomItemName" column="bom_item_name" />
|
<result property="bomItemName" column="bom_item_name" />
|
||||||
<result property="bomItemSpec" column="bom_item_spec" />
|
<result property="bomItemSpec" column="bom_item_spec" />
|
||||||
<result property="unitOfMeasure" column="unit_of_measure" />
|
<result property="unitOfMeasure" column="unit_of_measure" />
|
||||||
|
<result property="unitName" column="unit_name" />
|
||||||
<result property="itemOrProduct" column="item_or_product" />
|
<result property="itemOrProduct" column="item_or_product" />
|
||||||
<result property="quantity" column="quantity" />
|
<result property="quantity" column="quantity" />
|
||||||
<result property="enableFlag" column="enable_flag" />
|
<result property="enableFlag" column="enable_flag" />
|
||||||
@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectMdProductBomVo">
|
<sql id="selectMdProductBomVo">
|
||||||
select bom_id, item_id, bom_item_id, bom_item_code, bom_item_name, bom_item_spec, unit_of_measure, item_or_product, quantity, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from md_product_bom
|
select bom_id, item_id, bom_item_id, bom_item_code, bom_item_name, bom_item_spec, unit_of_measure, unit_name, item_or_product, quantity, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from md_product_bom
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectMdProductBomList" parameterType="MdProductBom" resultMap="MdProductBomResult">
|
<select id="selectMdProductBomList" parameterType="MdProductBom" resultMap="MdProductBomResult">
|
||||||
@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="bomItemName != null and bomItemName != ''"> and bom_item_name like concat('%', #{bomItemName}, '%')</if>
|
<if test="bomItemName != null and bomItemName != ''"> and bom_item_name like concat('%', #{bomItemName}, '%')</if>
|
||||||
<if test="bomItemSpec != null and bomItemSpec != ''"> and bom_item_spec = #{bomItemSpec}</if>
|
<if test="bomItemSpec != null and bomItemSpec != ''"> and bom_item_spec = #{bomItemSpec}</if>
|
||||||
<if test="unitOfMeasure != null and unitOfMeasure != ''"> and unit_of_measure = #{unitOfMeasure}</if>
|
<if test="unitOfMeasure != null and unitOfMeasure != ''"> and unit_of_measure = #{unitOfMeasure}</if>
|
||||||
|
<if test="unitName != null and unitName != ''">and unit_name = #{unitName}</if>
|
||||||
<if test="itemOrProduct != null and itemOrProduct != ''"> and item_or_product = #{itemOrProduct}</if>
|
<if test="itemOrProduct != null and itemOrProduct != ''"> and item_or_product = #{itemOrProduct}</if>
|
||||||
<if test="quantity != null "> and quantity = #{quantity}</if>
|
<if test="quantity != null "> and quantity = #{quantity}</if>
|
||||||
<if test="enableFlag != null and enableFlag != ''"> and enable_flag = #{enableFlag}</if>
|
<if test="enableFlag != null and enableFlag != ''"> and enable_flag = #{enableFlag}</if>
|
||||||
@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="bomItemName != null and bomItemName != ''">bom_item_name,</if>
|
<if test="bomItemName != null and bomItemName != ''">bom_item_name,</if>
|
||||||
<if test="bomItemSpec != null">bom_item_spec,</if>
|
<if test="bomItemSpec != null">bom_item_spec,</if>
|
||||||
<if test="unitOfMeasure != null and unitOfMeasure != ''">unit_of_measure,</if>
|
<if test="unitOfMeasure != null and unitOfMeasure != ''">unit_of_measure,</if>
|
||||||
|
<if test="unitName != null and unitName != ''">unit_name,</if>
|
||||||
<if test="itemOrProduct != null and itemOrProduct != ''">item_or_product,</if>
|
<if test="itemOrProduct != null and itemOrProduct != ''">item_or_product,</if>
|
||||||
<if test="quantity != null">quantity,</if>
|
<if test="quantity != null">quantity,</if>
|
||||||
<if test="enableFlag != null and enableFlag != ''">enable_flag,</if>
|
<if test="enableFlag != null and enableFlag != ''">enable_flag,</if>
|
||||||
@ -82,6 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="bomItemName != null and bomItemName != ''">#{bomItemName},</if>
|
<if test="bomItemName != null and bomItemName != ''">#{bomItemName},</if>
|
||||||
<if test="bomItemSpec != null">#{bomItemSpec},</if>
|
<if test="bomItemSpec != null">#{bomItemSpec},</if>
|
||||||
<if test="unitOfMeasure != null and unitOfMeasure != ''">#{unitOfMeasure},</if>
|
<if test="unitOfMeasure != null and unitOfMeasure != ''">#{unitOfMeasure},</if>
|
||||||
|
<if test="unitName != null and unitName != ''">#{unitName},</if>
|
||||||
<if test="itemOrProduct != null and itemOrProduct != ''">#{itemOrProduct},</if>
|
<if test="itemOrProduct != null and itemOrProduct != ''">#{itemOrProduct},</if>
|
||||||
<if test="quantity != null">#{quantity},</if>
|
<if test="quantity != null">#{quantity},</if>
|
||||||
<if test="enableFlag != null and enableFlag != ''">#{enableFlag},</if>
|
<if test="enableFlag != null and enableFlag != ''">#{enableFlag},</if>
|
||||||
@ -106,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="bomItemName != null and bomItemName != ''">bom_item_name = #{bomItemName},</if>
|
<if test="bomItemName != null and bomItemName != ''">bom_item_name = #{bomItemName},</if>
|
||||||
<if test="bomItemSpec != null">bom_item_spec = #{bomItemSpec},</if>
|
<if test="bomItemSpec != null">bom_item_spec = #{bomItemSpec},</if>
|
||||||
<if test="unitOfMeasure != null and unitOfMeasure != ''">unit_of_measure = #{unitOfMeasure},</if>
|
<if test="unitOfMeasure != null and unitOfMeasure != ''">unit_of_measure = #{unitOfMeasure},</if>
|
||||||
|
<if test="unitName != null and unitName != ''">unit_name = #{unitName}</if>
|
||||||
<if test="itemOrProduct != null and itemOrProduct != ''">item_or_product = #{itemOrProduct},</if>
|
<if test="itemOrProduct != null and itemOrProduct != ''">item_or_product = #{itemOrProduct},</if>
|
||||||
<if test="quantity != null">quantity = #{quantity},</if>
|
<if test="quantity != null">quantity = #{quantity},</if>
|
||||||
<if test="enableFlag != null and enableFlag != ''">enable_flag = #{enableFlag},</if>
|
<if test="enableFlag != null and enableFlag != ''">enable_flag = #{enableFlag},</if>
|
||||||
|
@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="itemName" column="item_name" />
|
<result property="itemName" column="item_name" />
|
||||||
<result property="specification" column="specification" />
|
<result property="specification" column="specification" />
|
||||||
<result property="unitOfMeasure" column="unit_of_measure" />
|
<result property="unitOfMeasure" column="unit_of_measure" />
|
||||||
|
<result property="unitName" column="unit_name" />
|
||||||
<result property="quantityArrival" column="quantity_arrival" />
|
<result property="quantityArrival" column="quantity_arrival" />
|
||||||
<result property="quantityQuanlified" column="quantity_quanlified" />
|
<result property="quantityQuanlified" column="quantity_quanlified" />
|
||||||
<result property="iqcCheck" column="iqc_check" />
|
<result property="iqcCheck" column="iqc_check" />
|
||||||
@ -29,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="selectWmArrivalNoticeLineVo">
|
<sql id="selectWmArrivalNoticeLineVo">
|
||||||
select line_id, notice_id, item_id, item_code, item_name, specification, unit_of_measure, quantity_arrival, quantity_quanlified, iqc_check, iqc_id, iqc_code, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_arrival_notice_line
|
select line_id, notice_id, item_id, item_code, item_name, specification, unit_of_measure, unit_name, quantity_arrival, quantity_quanlified, iqc_check, iqc_id, iqc_code, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_arrival_notice_line
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectWmArrivalNoticeLineList" parameterType="WmArrivalNoticeLine" resultMap="WmArrivalNoticeLineResult">
|
<select id="selectWmArrivalNoticeLineList" parameterType="WmArrivalNoticeLine" resultMap="WmArrivalNoticeLineResult">
|
||||||
@ -41,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="itemName != null and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
|
<if test="itemName != null and itemName != ''"> and item_name like concat('%', #{itemName}, '%')</if>
|
||||||
<if test="specification != null and specification != ''"> and specification = #{specification}</if>
|
<if test="specification != null and specification != ''"> and specification = #{specification}</if>
|
||||||
<if test="unitOfMeasure != null and unitOfMeasure != ''"> and unit_of_measure = #{unitOfMeasure}</if>
|
<if test="unitOfMeasure != null and unitOfMeasure != ''"> and unit_of_measure = #{unitOfMeasure}</if>
|
||||||
|
<if test="unitName != null and unitName != ''">and unit_name = #{unitName}</if>
|
||||||
<if test="quantityArrival != null "> and quantity_arrival = #{quantityArrival}</if>
|
<if test="quantityArrival != null "> and quantity_arrival = #{quantityArrival}</if>
|
||||||
<if test="quantityQuanlified != null "> and quantity_quanlified = #{quantityQuanlified}</if>
|
<if test="quantityQuanlified != null "> and quantity_quanlified = #{quantityQuanlified}</if>
|
||||||
<if test="iqcCheck != null and iqcCheck != ''"> and iqc_check = #{iqcCheck}</if>
|
<if test="iqcCheck != null and iqcCheck != ''"> and iqc_check = #{iqcCheck}</if>
|
||||||
@ -70,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="itemName != null">item_name,</if>
|
<if test="itemName != null">item_name,</if>
|
||||||
<if test="specification != null">specification,</if>
|
<if test="specification != null">specification,</if>
|
||||||
<if test="unitOfMeasure != null">unit_of_measure,</if>
|
<if test="unitOfMeasure != null">unit_of_measure,</if>
|
||||||
|
<if test="unitName != null and unitName != ''">unit_name,</if>
|
||||||
<if test="quantityArrival != null">quantity_arrival,</if>
|
<if test="quantityArrival != null">quantity_arrival,</if>
|
||||||
<if test="quantityQuanlified != null">quantity_quanlified,</if>
|
<if test="quantityQuanlified != null">quantity_quanlified,</if>
|
||||||
<if test="iqcCheck != null">iqc_check,</if>
|
<if test="iqcCheck != null">iqc_check,</if>
|
||||||
@ -92,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="itemName != null">#{itemName},</if>
|
<if test="itemName != null">#{itemName},</if>
|
||||||
<if test="specification != null">#{specification},</if>
|
<if test="specification != null">#{specification},</if>
|
||||||
<if test="unitOfMeasure != null">#{unitOfMeasure},</if>
|
<if test="unitOfMeasure != null">#{unitOfMeasure},</if>
|
||||||
|
<if test="unitName != null and unitName != ''">#{unitName},</if>
|
||||||
<if test="quantityArrival != null">#{quantityArrival},</if>
|
<if test="quantityArrival != null">#{quantityArrival},</if>
|
||||||
<if test="quantityQuanlified != null">#{quantityQuanlified},</if>
|
<if test="quantityQuanlified != null">#{quantityQuanlified},</if>
|
||||||
<if test="iqcCheck != null">#{iqcCheck},</if>
|
<if test="iqcCheck != null">#{iqcCheck},</if>
|
||||||
@ -118,6 +122,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="itemName != null">item_name = #{itemName},</if>
|
<if test="itemName != null">item_name = #{itemName},</if>
|
||||||
<if test="specification != null">specification = #{specification},</if>
|
<if test="specification != null">specification = #{specification},</if>
|
||||||
<if test="unitOfMeasure != null">unit_of_measure = #{unitOfMeasure},</if>
|
<if test="unitOfMeasure != null">unit_of_measure = #{unitOfMeasure},</if>
|
||||||
|
<if test="unitName != null and unitName != ''">unit_name = #{unitName}</if>
|
||||||
<if test="quantityArrival != null">quantity_arrival = #{quantityArrival},</if>
|
<if test="quantityArrival != null">quantity_arrival = #{quantityArrival},</if>
|
||||||
<if test="quantityQuanlified != null">quantity_quanlified = #{quantityQuanlified},</if>
|
<if test="quantityQuanlified != null">quantity_quanlified = #{quantityQuanlified},</if>
|
||||||
<if test="iqcCheck != null">iqc_check = #{iqcCheck},</if>
|
<if test="iqcCheck != null">iqc_check = #{iqcCheck},</if>
|
||||||
|
Loading…
Reference in New Issue
Block a user