Tento commit je obsažen v:
CaiXiang 2020-01-12 14:26:22 +08:00
rodič 4e7e52f7b9
revize ee7431504b
2 změnil soubory, kde provedl 15 přidání a 0 odebrání

Zobrazit soubor

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

Zobrazit soubor

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