物料查询接口加分页-2

This commit is contained in:
luolm 2024-10-12 11:44:26 +08:00
parent ff9330816a
commit cc257fdfa5
1 changed files with 11 additions and 1 deletions

View File

@ -228,6 +228,16 @@
<if test="query.materialDesc != null and query.materialDesc != ''">
and material_desc like concat('%',#{query.materialDesc},'%')
</if>
order by orderMfiled
<choose>
<when test="query.materialNo != null and query.materialNo != ''" >
order by orderMaterialNo
</when>
<when test="query.drawingNo != null and query.drawingNo != ''">
order by orderDrawingNo
</when>
<when test="query.materialDesc != null and query.materialDesc != ''">
order by orderMaterialDesc
</when>
</choose>
</select>
</mapper>