这个提交包含在:
CaiXiang 2020-01-12 14:26:22 +08:00
父节点 4e7e52f7b9
当前提交 ee7431504b
共有 2 个文件被更改,包括 15 次插入0 次删除

查看文件

@ -36,6 +36,7 @@
<resultMap extends="BaseResultMap" id="mtAloneProcessMaterialsBomVO" type="com.deer.wms.produce.manage.model.MaterialsInfoVO">
<result column="process_bom_id" jdbcType="INTEGER" property="processBomId" />
<result column="dosage" jdbcType="REAL" property="dosage" />
<result column="unit_name" jdbcType="VARCHAR" property="unitName" />
</resultMap>
@ -138,6 +139,7 @@
<select id="findMaterialsByKeyWords" parameterType="com.deer.wms.produce.manage.model.MaterialsInfoParams" resultMap="mtAloneProcessMaterialsBomVO">
SELECT * from mt_alone_materials_info materialsInfo
LEFT JOIN unit u ON materialsInfo.unit_id = u.unit_id
<where>
<if test="keywords != null and keywords != ''">
AND materialsInfo.materials_name LIKE CONCAT('%', #{keywords}, '%')

查看文件

@ -36,6 +36,19 @@ public class MaterialsInfoVO extends MaterialsInfo {
**/
private Integer unitId;
/**
* 单位名称
**/
private String unitName;
public String getUnitName() {
return unitName;
}
public void setUnitName(String unitName) {
this.unitName = unitName;
}
/**
* 备注
**/