Browse Source

[feat]工程管理:实现物料料号前几位查询

dev
zhangsiqi 6 months ago
parent
commit
ccf37699b9
  1. 2
      ruoyi-admin/src/main/resources/mapper/erp/ErpMaterialMapper.xml

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

@ -87,7 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> <where>
<if test="createBy != null and createBy != ''"> and erp.create_by = #{createBy}</if> <if test="createBy != null and createBy != ''"> and erp.create_by = #{createBy}</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and erp.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if> <if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and erp.create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
<if test="params.materialNo != null and params.materialNo != ''"> and erp.material_no like concat('%', #{params.materialNo}, '%')</if> <if test="params.materialNo != null and params.materialNo != ''"> and erp.material_no like concat( #{params.materialNo}, '%')</if>
<if test="materialNo != null and materialNo != ''"> and erp.material_no like concat(#{materialNo}, '%')</if> <if test="materialNo != null and materialNo != ''"> and erp.material_no like concat(#{materialNo}, '%')</if>
<if test="bomNo != null and bomNo != ''"> and erp.bomNo = #{bomNo}</if> <if test="bomNo != null and bomNo != ''"> and erp.bomNo = #{bomNo}</if>
<if test="materialName != null and materialName != ''"> and erp.material_name like concat('%', #{materialName}, '%')</if> <if test="materialName != null and materialName != ''"> and erp.material_name like concat('%', #{materialName}, '%')</if>

Loading…
Cancel
Save