Esse commit está contido em:
CaiXiang 2020-01-12 14:26:22 +08:00
commit ee7431504b
2 arquivos alterados com 15 adições e 0 exclusões

Ver arquivo

@ -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}, '%')

Ver arquivo

@ -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;
}
/**
* 备注
**/