|
|
@ -155,6 +155,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<select id="selectAllErpMaterialList" resultMap="ErpMaterialResult"> |
|
|
|
<include refid="selectErpMaterialVo"/> |
|
|
|
where use_status = 1 and audit_status = 1 |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectAllErpMaterialListWithBom" resultMap="ErpMaterialResult"> |
|
|
@ -166,6 +167,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
left join erp_bom eb on em.material_no = eb.material_no |
|
|
|
<where> |
|
|
|
<if test="materialNo != null and materialNo != ''"> and em.material_no like concat(#{materialNo}, '%')</if> |
|
|
|
<if test="auditStatus != null and auditStatus != ''"> and em.audit_status = #{auditStatus}</if> |
|
|
|
<if test="useStatus != null and useStatus != ''"> and em.use_status = #{useStatus}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@ -182,13 +185,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
where parent_id = (select id from sys_category where code = 'materialType') ) |
|
|
|
)cate on erp.material_type = cate.code |
|
|
|
where cate.parent_id in (select id from sys_category where code in ('cp','bcp')) |
|
|
|
and erp.del_flag = '0' and erp.audit_status = '1' |
|
|
|
and erp.del_flag = '0' and erp.audit_status = '1' and erp.use_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> |
|
|
|
<if test="auditStatus != null and auditStatus != ''"> and audit_status = #{auditStatus}</if> |
|
|
|
<if test="useStatus != null and useStatus != ''"> and use_status = #{useStatus}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
|