Browse Source

[fix] 工程管理

物料模块根据料号前缀查询匹配物料后端接口:新增审核状态和使用状态,只有审核状态为1和使用状态为1的物料才能被正常使用,去掉delflag作为筛选条件
dev
liuxiaoxu 2 months ago
parent
commit
30b833a803
  1. 4
      ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml

4
ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml

@ -185,7 +185,7 @@ 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.use_status = '1'
and erp.audit_status = '1' and erp.use_status = '1'
</select>
<select id="selectAllErpMaterialListByMaterialVo" parameterType="ErpMaterial" resultMap="ErpMaterialResult">
@ -355,7 +355,7 @@ 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.audit_status = '1' and erp.use_status = '1'
and material_no like concat(#{prefix}, '%') escape '\\'
</select>

Loading…
Cancel
Save