|
|
@ -185,6 +185,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
and erp.del_flag = '0' and erp.audit_status = '1' |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectAllErpMaterialListByMaterialVo" parameterType="ErpMaterial" resultMap="ErpMaterialResult"> |
|
|
|
<include refid="selectErpMaterialVo"/> |
|
|
|
<where> |
|
|
|
<if test="materialNo != null and materialNo != ''"> and material_no like concat(#{materialNo}, '%')</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertErpMaterial" parameterType="ErpMaterial" useGeneratedKeys="true" keyProperty="id"> |
|
|
|
insert into erp_material |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
@ -342,4 +350,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
and erp.del_flag = '0' and erp.audit_status = '1' |
|
|
|
and material_no like concat(#{prefix}, '%') escape '\\' |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |